@axiom-lattice/gateway 4.9.0 → 4.9.2
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/chunk-FGSFOXIX.mjs +157 -0
- package/dist/chunk-MWWLJMYN.mjs +44 -0
- package/dist/chunk-MWWLJMYN.mjs.map +1 -0
- package/dist/chunk-PAKR5N7U.mjs +116 -0
- package/dist/chunk-PAKR5N7U.mjs.map +1 -0
- package/dist/embed/embed-page-1c-3672YAN6.js +1 -0
- package/dist/embed/embed-page-AgentDetailSideApp-WQAMMDXN.js +1 -0
- package/dist/embed/embed-page-AgentGovernanceWorkbench-VKD4IZIO.js +5 -0
- package/dist/embed/embed-page-MessageGraph-C4EJWY3E.js +6 -0
- package/dist/embed/embed-page-ReactChart-TNT4TT4C.js +1 -0
- package/dist/embed/embed-page-ReactInfographic-5P36JLSX.js +574 -0
- package/dist/embed/embed-page-SkillFlow-WWRDU6GS.js +1 -0
- package/dist/embed/embed-page-TasksSideApp-73SJLGRY.js +254 -0
- package/dist/embed/embed-page-TeamWorkspace-6E4HAH7L.js +748 -0
- package/dist/embed/embed-page-TopologyRuntimeView-SXUNRFT4.js +6 -0
- package/dist/embed/embed-page-WorkflowAutomationView-I4VN6YY2.js +3 -0
- package/dist/embed/embed-page-abap-FC4M2D7P.js +1 -0
- package/dist/embed/embed-page-abnf-G525TQJB.js +1 -0
- package/dist/embed/embed-page-abnf-SHBHCAK2.js +1 -0
- package/dist/embed/embed-page-accesslog-2M55VTUX.js +1 -0
- package/dist/embed/embed-page-actionscript-RY67QSPU.js +1 -0
- package/dist/embed/embed-page-actionscript-SWESLOYW.js +1 -0
- package/dist/embed/embed-page-ada-3PKR63SZ.js +1 -0
- package/dist/embed/embed-page-ada-F6EBCIQQ.js +1 -0
- package/dist/embed/embed-page-agda-6M6MJD55.js +1 -0
- package/dist/embed/embed-page-al-4FBEFJFL.js +1 -0
- package/dist/embed/embed-page-all-NEJVJ4G7.js +1 -0
- package/dist/embed/embed-page-angelscript-PA3J3IPF.js +1 -0
- package/dist/embed/embed-page-antlr4-7EOUJSUC.js +1 -0
- package/dist/embed/embed-page-apache-MMXJDXBK.js +1 -0
- package/dist/embed/embed-page-apacheconf-F6T6KKIK.js +1 -0
- package/dist/embed/embed-page-apex-HKKUS4TG.js +1 -0
- package/dist/embed/embed-page-apl-VAHRWU2C.js +1 -0
- package/dist/embed/embed-page-applescript-OYNK2BWW.js +1 -0
- package/dist/embed/embed-page-applescript-XDVB6PQE.js +1 -0
- package/dist/embed/embed-page-aql-DISPQABZ.js +1 -0
- package/dist/embed/embed-page-arcade-RYRVHC4U.js +1 -0
- package/dist/embed/embed-page-architecture-U656AL7Q-CERCETXS.js +1 -0
- package/dist/embed/embed-page-architectureDiagram-VXUJARFQ-THUN2PFL.js +36 -0
- package/dist/embed/embed-page-arduino-6EVJOXM5.js +1 -0
- package/dist/embed/embed-page-arduino-DJNXANC5.js +1 -0
- package/dist/embed/embed-page-arff-6XP7STXD.js +1 -0
- package/dist/embed/embed-page-armasm-26G576PB.js +1 -0
- package/dist/embed/embed-page-armasm-DNR4RE6C.js +1 -0
- package/dist/embed/embed-page-arturo-GQUFBNDR.js +1 -0
- package/dist/embed/embed-page-asciidoc-J2O4XGSQ.js +1 -0
- package/dist/embed/embed-page-asciidoc-UUDIEEHY.js +1 -0
- package/dist/embed/embed-page-asm6502-VAOVLPA2.js +1 -0
- package/dist/embed/embed-page-asmatmel-W3BH5EWE.js +1 -0
- package/dist/embed/embed-page-aspectj-AHVD3GV3.js +1 -0
- package/dist/embed/embed-page-aspnet-SRK67AH2.js +1 -0
- package/dist/embed/embed-page-autohotkey-JYKSDDLP.js +1 -0
- package/dist/embed/embed-page-autohotkey-X32QT3KL.js +1 -0
- package/dist/embed/embed-page-autoit-GOJFTAT2.js +1 -0
- package/dist/embed/embed-page-autoit-NROL6NFJ.js +1 -0
- package/dist/embed/embed-page-avisynth-D7VVR5X3.js +1 -0
- package/dist/embed/embed-page-avrasm-6A57LBKN.js +1 -0
- package/dist/embed/embed-page-avro-idl-I4XNINTH.js +1 -0
- package/dist/embed/embed-page-awk-3BJHNUFT.js +1 -0
- package/dist/embed/embed-page-awk-7EH4I7QQ.js +1 -0
- package/dist/embed/embed-page-axapta-ARDJGTIF.js +1 -0
- package/dist/embed/embed-page-bash-EDMDMWNH.js +1 -0
- package/dist/embed/embed-page-bash-WZRCD7NA.js +1 -0
- package/dist/embed/embed-page-basic-BW7RBXOU.js +1 -0
- package/dist/embed/embed-page-basic-F67LLDZC.js +1 -0
- package/dist/embed/embed-page-batch-V6URKYVJ.js +1 -0
- package/dist/embed/embed-page-bbcode-TLSXHEZA.js +1 -0
- package/dist/embed/embed-page-bbj-2L7C2QFS.js +1 -0
- package/dist/embed/embed-page-bicep-GHUPVSTH.js +1 -0
- package/dist/embed/embed-page-birb-KO47ZYTN.js +1 -0
- package/dist/embed/embed-page-bison-FE7WSRNZ.js +1 -0
- package/dist/embed/embed-page-blockDiagram-VD42YOAC-K7OX6LIO.js +122 -0
- package/dist/embed/embed-page-bnf-JD3RND6H.js +1 -0
- package/dist/embed/embed-page-bnf-TCOKUGG5.js +1 -0
- package/dist/embed/embed-page-bqn-HE5FNDB5.js +1 -0
- package/dist/embed/embed-page-brainfuck-NAQTZWNH.js +1 -0
- package/dist/embed/embed-page-brainfuck-TNP2NG5F.js +1 -0
- package/dist/embed/embed-page-brightscript-OFCDBVYP.js +1 -0
- package/dist/embed/embed-page-bro-DJ7TL2KM.js +1 -0
- package/dist/embed/embed-page-bsl-IJMRFVNU.js +1 -0
- package/dist/embed/embed-page-c-B25UQBFM.js +1 -0
- package/dist/embed/embed-page-c-CK76BXS5.js +1 -0
- package/dist/embed/embed-page-c-like-T4YDK4KK.js +1 -0
- package/dist/embed/embed-page-c4Diagram-YG6GDRKO-DJDAF5AO.js +10 -0
- package/dist/embed/embed-page-cal-SBIKS2D6.js +1 -0
- package/dist/embed/embed-page-capnproto-N2Y45G3E.js +1 -0
- package/dist/embed/embed-page-ceylon-QFONS72N.js +1 -0
- package/dist/embed/embed-page-cfscript-LRGIODM5.js +1 -0
- package/dist/embed/embed-page-chaiscript-ZMWTI364.js +1 -0
- package/dist/embed/embed-page-chunk-23V2SA25.js +1 -0
- package/dist/embed/embed-page-chunk-2HO2QJPJ.js +1 -0
- package/dist/embed/embed-page-chunk-2JOBJV35.js +1 -0
- package/dist/embed/embed-page-chunk-2N7RAAAZ.js +1 -0
- package/dist/embed/embed-page-chunk-2QCNLPIR.js +1 -0
- package/dist/embed/embed-page-chunk-2RYHVL2R.js +1 -0
- package/dist/embed/embed-page-chunk-2SD7ELVM.js +1 -0
- package/dist/embed/embed-page-chunk-2XNRKJDC.js +1 -0
- package/dist/embed/embed-page-chunk-34FVRFPW.js +3 -0
- package/dist/embed/embed-page-chunk-3J6SXXOZ.js +1 -0
- package/dist/embed/embed-page-chunk-3O7HFNRM.js +1 -0
- package/dist/embed/embed-page-chunk-3UQBIIFT.js +1 -0
- package/dist/embed/embed-page-chunk-44ETUMBA.js +1 -0
- package/dist/embed/embed-page-chunk-4DUEWOCX.js +1 -0
- package/dist/embed/embed-page-chunk-4HDOHU33.js +1 -0
- package/dist/embed/embed-page-chunk-4JTFY2GD.js +1 -0
- package/dist/embed/embed-page-chunk-4OHP5BMV.js +1 -0
- package/dist/embed/embed-page-chunk-4PFTW74G.js +1 -0
- package/dist/embed/embed-page-chunk-4RV5IVDF.js +1 -0
- package/dist/embed/embed-page-chunk-55HDN6EZ.js +1 -0
- package/dist/embed/embed-page-chunk-57ESBUNV.js +1 -0
- package/dist/embed/embed-page-chunk-5EONYJU2.js +1 -0
- package/dist/embed/embed-page-chunk-5MSBT4RM.js +1 -0
- package/dist/embed/embed-page-chunk-5RO6PYBN.js +1 -0
- package/dist/embed/embed-page-chunk-5RU5MEE5.js +1 -0
- package/dist/embed/embed-page-chunk-6GSQ3MO3.js +1 -0
- package/dist/embed/embed-page-chunk-6LP24SGJ.js +1 -0
- package/dist/embed/embed-page-chunk-6YWLT47Z.js +1 -0
- package/dist/embed/embed-page-chunk-6Z7EO7WS.js +1 -0
- package/dist/embed/embed-page-chunk-76JAALDP.js +1 -0
- package/dist/embed/embed-page-chunk-7AA7XLQA.js +1 -0
- package/dist/embed/embed-page-chunk-7BD7YZ6R.js +1 -0
- package/dist/embed/embed-page-chunk-7EFHAONJ.js +1 -0
- package/dist/embed/embed-page-chunk-7KGFP2NP.js +1 -0
- package/dist/embed/embed-page-chunk-7SJL3ZUM.js +1 -0
- package/dist/embed/embed-page-chunk-7Z54P67B.js +1 -0
- package/dist/embed/embed-page-chunk-A2AHDN6K.js +220 -0
- package/dist/embed/embed-page-chunk-ACBAUMRP.js +1 -0
- package/dist/embed/embed-page-chunk-AE33JGV3.js +1 -0
- package/dist/embed/embed-page-chunk-AET7KVHE.js +1 -0
- package/dist/embed/embed-page-chunk-ARNGODUC.js +1 -0
- package/dist/embed/embed-page-chunk-ARQAOI6N.js +1 -0
- package/dist/embed/embed-page-chunk-B6LTCYUQ.js +1 -0
- package/dist/embed/embed-page-chunk-BDRTKD6X.js +1 -0
- package/dist/embed/embed-page-chunk-BEPURBGC.js +1 -0
- package/dist/embed/embed-page-chunk-BFUAZASY.js +1 -0
- package/dist/embed/embed-page-chunk-BOJO3UM6.js +3 -0
- package/dist/embed/embed-page-chunk-BQQ37SIH.js +1 -0
- package/dist/embed/embed-page-chunk-CHWTZDID.js +1 -0
- package/dist/embed/embed-page-chunk-CPOJ65KG.js +1 -0
- package/dist/embed/embed-page-chunk-CXHC4TNR.js +1 -0
- package/dist/embed/embed-page-chunk-CZVINPQK.js +1 -0
- package/dist/embed/embed-page-chunk-D3XPKX7F.js +1 -0
- package/dist/embed/embed-page-chunk-D5GP7FHH.js +5 -0
- package/dist/embed/embed-page-chunk-DBLOV72T.js +1 -0
- package/dist/embed/embed-page-chunk-DBQ7RYBB.js +1 -0
- package/dist/embed/embed-page-chunk-DBWLMNKE.js +1 -0
- package/dist/embed/embed-page-chunk-DCAYPVBD.js +1 -0
- package/dist/embed/embed-page-chunk-DEPFMNQL.js +1 -0
- package/dist/embed/embed-page-chunk-DNDB7A7P.js +1 -0
- package/dist/embed/embed-page-chunk-DOZHL42J.js +79 -0
- package/dist/embed/embed-page-chunk-DSQPKRCA.js +1 -0
- package/dist/embed/embed-page-chunk-DTRFJLVZ.js +7 -0
- package/dist/embed/embed-page-chunk-DU7FHHNO.js +1 -0
- package/dist/embed/embed-page-chunk-DUXOOPIC.js +1 -0
- package/dist/embed/embed-page-chunk-DXA7S5MI.js +1 -0
- package/dist/embed/embed-page-chunk-DXR73EFU.js +1 -0
- package/dist/embed/embed-page-chunk-DZZVEYCL.js +1 -0
- package/dist/embed/embed-page-chunk-EBUGKEEG.js +1 -0
- package/dist/embed/embed-page-chunk-EDMIU5JL.js +2 -0
- package/dist/embed/embed-page-chunk-EDWKSJEO.js +1 -0
- package/dist/embed/embed-page-chunk-EIKUMXEW.js +1 -0
- package/dist/embed/embed-page-chunk-ELO2N4OB.js +1 -0
- package/dist/embed/embed-page-chunk-ERWY6RJM.js +1 -0
- package/dist/embed/embed-page-chunk-ESQ5V77Q.js +1 -0
- package/dist/embed/embed-page-chunk-F2TRDKUW.js +1 -0
- package/dist/embed/embed-page-chunk-FD2PRLMW.js +1 -0
- package/dist/embed/embed-page-chunk-FNUP6NFP.js +1 -0
- package/dist/embed/embed-page-chunk-FRB6NW7O.js +1 -0
- package/dist/embed/embed-page-chunk-FV7T53BO.js +1 -0
- package/dist/embed/embed-page-chunk-G2RO6IBN.js +70 -0
- package/dist/embed/embed-page-chunk-G2YPDP7J.js +1 -0
- package/dist/embed/embed-page-chunk-G5NEOKZK.js +153 -0
- package/dist/embed/embed-page-chunk-G6JAPMJ5.js +1 -0
- package/dist/embed/embed-page-chunk-GPKFDKUK.js +1 -0
- package/dist/embed/embed-page-chunk-GSX5BYHL.js +1 -0
- package/dist/embed/embed-page-chunk-GWLTD7HW.js +1 -0
- package/dist/embed/embed-page-chunk-GZOXWFFV.js +1 -0
- package/dist/embed/embed-page-chunk-H345XYZQ.js +1 -0
- package/dist/embed/embed-page-chunk-H5QUHNDQ.js +1 -0
- package/dist/embed/embed-page-chunk-H6DZ2LNI.js +1 -0
- package/dist/embed/embed-page-chunk-HD75XQCG.js +1 -0
- package/dist/embed/embed-page-chunk-HIATKOMS.js +1 -0
- package/dist/embed/embed-page-chunk-HJKEB5FQ.js +1 -0
- package/dist/embed/embed-page-chunk-HQSRC2R4.js +3 -0
- package/dist/embed/embed-page-chunk-HUFFWUZD.js +1 -0
- package/dist/embed/embed-page-chunk-HYPA2PHA.js +1 -0
- package/dist/embed/embed-page-chunk-I347XR6R.js +1 -0
- package/dist/embed/embed-page-chunk-IICJRUNM.js +1 -0
- package/dist/embed/embed-page-chunk-IKX4MLGG.js +1 -0
- package/dist/embed/embed-page-chunk-IM57IYUL.js +3 -0
- package/dist/embed/embed-page-chunk-ISTKCEOH.js +1 -0
- package/dist/embed/embed-page-chunk-IT5DVEAN.js +1 -0
- package/dist/embed/embed-page-chunk-IWUMSTJF.js +15 -0
- package/dist/embed/embed-page-chunk-IYWWXQJG.js +1 -0
- package/dist/embed/embed-page-chunk-IZ7VTNMT.js +1 -0
- package/dist/embed/embed-page-chunk-J5AHS4PO.js +1 -0
- package/dist/embed/embed-page-chunk-JAYUMYFW.js +1 -0
- package/dist/embed/embed-page-chunk-JCN7X3Y6.js +1 -0
- package/dist/embed/embed-page-chunk-JDNBQS2R.js +1 -0
- package/dist/embed/embed-page-chunk-JGLRE3VC.js +1 -0
- package/dist/embed/embed-page-chunk-JL2IIW7T.js +1 -0
- package/dist/embed/embed-page-chunk-JSIH7Z7L.js +1 -0
- package/dist/embed/embed-page-chunk-JTDYN6JL.js +1 -0
- package/dist/embed/embed-page-chunk-JUZPOR5Y.js +2 -0
- package/dist/embed/embed-page-chunk-JV6C7M3X.js +1 -0
- package/dist/embed/embed-page-chunk-KFSTJCJL.js +1 -0
- package/dist/embed/embed-page-chunk-KGY27C6V.js +1 -0
- package/dist/embed/embed-page-chunk-KGY5CVSV.js +1 -0
- package/dist/embed/embed-page-chunk-KJWVD6VT.js +1 -0
- package/dist/embed/embed-page-chunk-KOTR4Y4Q.js +1 -0
- package/dist/embed/embed-page-chunk-KPA55C47.js +1 -0
- package/dist/embed/embed-page-chunk-KQM6SZUJ.js +1 -0
- package/dist/embed/embed-page-chunk-L46OSFPI.js +1 -0
- package/dist/embed/embed-page-chunk-L5V53OJW.js +1 -0
- package/dist/embed/embed-page-chunk-L63CMSVG.js +1 -0
- package/dist/embed/embed-page-chunk-L7HKGCDN.js +37 -0
- package/dist/embed/embed-page-chunk-LMFR22H4.js +1 -0
- package/dist/embed/embed-page-chunk-LOGXCEAD.js +1 -0
- package/dist/embed/embed-page-chunk-LXUYEJDH.js +1 -0
- package/dist/embed/embed-page-chunk-M43CIHMI.js +1 -0
- package/dist/embed/embed-page-chunk-M5WQZ6SQ.js +1 -0
- package/dist/embed/embed-page-chunk-MCL34C5S.js +1 -0
- package/dist/embed/embed-page-chunk-MCYCO2ZL.js +4 -0
- package/dist/embed/embed-page-chunk-MHGVD4EV.js +525 -0
- package/dist/embed/embed-page-chunk-MJZLFFU3.js +140 -0
- package/dist/embed/embed-page-chunk-MPFMNGH2.js +1 -0
- package/dist/embed/embed-page-chunk-MX4ORUXE.js +1 -0
- package/dist/embed/embed-page-chunk-N6JE6LR2.js +1 -0
- package/dist/embed/embed-page-chunk-NB7WIBPT.js +1 -0
- package/dist/embed/embed-page-chunk-NI3MO5JC.js +1 -0
- package/dist/embed/embed-page-chunk-NOPKRUYJ.js +1 -0
- package/dist/embed/embed-page-chunk-O3WFYUGJ.js +1 -0
- package/dist/embed/embed-page-chunk-OD4YWOUS.js +1 -0
- package/dist/embed/embed-page-chunk-OGGV5DFT.js +1 -0
- package/dist/embed/embed-page-chunk-OKE5VRNR.js +1 -0
- package/dist/embed/embed-page-chunk-OSVSIRYR.js +1 -0
- package/dist/embed/embed-page-chunk-P63ZLFVT.js +1 -0
- package/dist/embed/embed-page-chunk-PBAFSNKK.js +1 -0
- package/dist/embed/embed-page-chunk-PCOJGBJB.js +1 -0
- package/dist/embed/embed-page-chunk-PJRP6B4S.js +1 -0
- package/dist/embed/embed-page-chunk-PUFNMXJW.js +1 -0
- package/dist/embed/embed-page-chunk-PXMGIVIG.js +1 -0
- package/dist/embed/embed-page-chunk-Q3QU6ZNS.js +1 -0
- package/dist/embed/embed-page-chunk-QBTAJ2YI.js +1 -0
- package/dist/embed/embed-page-chunk-QBWATC6V.js +1 -0
- package/dist/embed/embed-page-chunk-QEUPFPLG.js +1 -0
- package/dist/embed/embed-page-chunk-QFMGN2VD.js +1 -0
- package/dist/embed/embed-page-chunk-QHRKYOSW.js +1 -0
- package/dist/embed/embed-page-chunk-QOWM3LMZ.js +28 -0
- package/dist/embed/embed-page-chunk-QQCU4DMV.js +1 -0
- package/dist/embed/embed-page-chunk-QQEOKVLC.js +1 -0
- package/dist/embed/embed-page-chunk-QULNM5O2.js +60 -0
- package/dist/embed/embed-page-chunk-QV7QAJ4N.js +14 -0
- package/dist/embed/embed-page-chunk-R2JB2RGW.js +1 -0
- package/dist/embed/embed-page-chunk-R4TTV3M2.js +1 -0
- package/dist/embed/embed-page-chunk-R5QL57JJ.js +14 -0
- package/dist/embed/embed-page-chunk-R6S34GWR.js +1 -0
- package/dist/embed/embed-page-chunk-R7TARC6K.js +1 -0
- package/dist/embed/embed-page-chunk-RN7DFY2Q.js +1 -0
- package/dist/embed/embed-page-chunk-RQVRVULF.js +1 -0
- package/dist/embed/embed-page-chunk-RQXI6NQX.js +2 -0
- package/dist/embed/embed-page-chunk-RTZOYCXY.js +1 -0
- package/dist/embed/embed-page-chunk-S2UQRVOM.js +1 -0
- package/dist/embed/embed-page-chunk-S4CZN7AY.js +1 -0
- package/dist/embed/embed-page-chunk-SDT2WN4L.js +1 -0
- package/dist/embed/embed-page-chunk-SJTGMRSC.js +1 -0
- package/dist/embed/embed-page-chunk-SSEF7Z6P.js +1 -0
- package/dist/embed/embed-page-chunk-STRFU5NU.js +1 -0
- package/dist/embed/embed-page-chunk-TEIHYMTL.js +6893 -0
- package/dist/embed/embed-page-chunk-TMY3SPAF.js +1 -0
- package/dist/embed/embed-page-chunk-TQB4K3W6.js +1 -0
- package/dist/embed/embed-page-chunk-TSANJE3N.js +1 -0
- package/dist/embed/embed-page-chunk-TSF4NEMC.js +1 -0
- package/dist/embed/embed-page-chunk-TUZM3I4D.js +1 -0
- package/dist/embed/embed-page-chunk-U4X7C5XL.js +1 -0
- package/dist/embed/embed-page-chunk-U5PAGSDU.js +1 -0
- package/dist/embed/embed-page-chunk-UD3YQQ3S.js +1 -0
- package/dist/embed/embed-page-chunk-UDM2TMDE.js +1 -0
- package/dist/embed/embed-page-chunk-UDSGGVJH.js +69 -0
- package/dist/embed/embed-page-chunk-UF2RW6L6.js +1 -0
- package/dist/embed/embed-page-chunk-UGVIO5X2.js +1 -0
- package/dist/embed/embed-page-chunk-UI6UN3LT.js +1 -0
- package/dist/embed/embed-page-chunk-UIRI4KPS.js +1 -0
- package/dist/embed/embed-page-chunk-UOKHPM3Y.js +1 -0
- package/dist/embed/embed-page-chunk-UPEC7H2U.js +1 -0
- package/dist/embed/embed-page-chunk-UQENI7PS.js +1 -0
- package/dist/embed/embed-page-chunk-URHR32UY.js +1 -0
- package/dist/embed/embed-page-chunk-UTSTPIDF.js +1 -0
- package/dist/embed/embed-page-chunk-UUJFXI6G.js +1 -0
- package/dist/embed/embed-page-chunk-UZQ3KJYM.js +1 -0
- package/dist/embed/embed-page-chunk-V2GBFWLG.js +31 -0
- package/dist/embed/embed-page-chunk-V4BVAZDM.js +1 -0
- package/dist/embed/embed-page-chunk-V5HCJYJK.js +1 -0
- package/dist/embed/embed-page-chunk-VCKMOKDX.js +1 -0
- package/dist/embed/embed-page-chunk-VHUKORYK.js +1 -0
- package/dist/embed/embed-page-chunk-VJCVYVWM.js +1 -0
- package/dist/embed/embed-page-chunk-VPBG5JF4.js +1 -0
- package/dist/embed/embed-page-chunk-VV2UPL6R.js +1 -0
- package/dist/embed/embed-page-chunk-VWLWYYRF.js +1 -0
- package/dist/embed/embed-page-chunk-W4PSILFT.js +1 -0
- package/dist/embed/embed-page-chunk-WB3JMX5B.js +1 -0
- package/dist/embed/embed-page-chunk-WFUFTRWA.js +1 -0
- package/dist/embed/embed-page-chunk-WO5XNP7I.js +1 -0
- package/dist/embed/embed-page-chunk-WOZR3XCU.js +41 -0
- package/dist/embed/embed-page-chunk-WTOAQDQN.js +1 -0
- package/dist/embed/embed-page-chunk-WUOHF2QZ.js +21 -0
- package/dist/embed/embed-page-chunk-WVZBB4NM.js +1 -0
- package/dist/embed/embed-page-chunk-WW6A23KM.js +1 -0
- package/dist/embed/embed-page-chunk-WWUV5JPP.js +1 -0
- package/dist/embed/embed-page-chunk-WZONQWXN.js +1 -0
- package/dist/embed/embed-page-chunk-X5OKT44T.js +1 -0
- package/dist/embed/embed-page-chunk-XJ74MITX.js +1 -0
- package/dist/embed/embed-page-chunk-XKGF5D6L.js +165 -0
- package/dist/embed/embed-page-chunk-XMONIZTW.js +1 -0
- package/dist/embed/embed-page-chunk-XSKNS3LY.js +54 -0
- package/dist/embed/embed-page-chunk-XUI3VYDW.js +1 -0
- package/dist/embed/embed-page-chunk-Y3FORBXC.js +1 -0
- package/dist/embed/embed-page-chunk-Y5FFKVQ6.js +1 -0
- package/dist/embed/embed-page-chunk-YDSSLETI.js +1 -0
- package/dist/embed/embed-page-chunk-YJ3Y6XAF.js +1 -0
- package/dist/embed/embed-page-chunk-YOVVAFEQ.js +1 -0
- package/dist/embed/embed-page-chunk-YRJZVKEX.js +1 -0
- package/dist/embed/embed-page-chunk-YX4ITHO2.js +1 -0
- package/dist/embed/embed-page-chunk-YZMHK63X.js +242 -0
- package/dist/embed/embed-page-chunk-Z3BS45FD.js +3 -0
- package/dist/embed/embed-page-chunk-Z6UDTHNI.js +1 -0
- package/dist/embed/embed-page-chunk-ZG2Z4PDI.js +2 -0
- package/dist/embed/embed-page-chunk-ZJ4WOYT5.js +1 -0
- package/dist/embed/embed-page-chunk-ZP5BDPGY.js +1 -0
- package/dist/embed/embed-page-chunk-ZRP4SO3U.js +1 -0
- package/dist/embed/embed-page-chunk-ZUXWS745.js +1 -0
- package/dist/embed/embed-page-chunk-ZVYDCPXL.js +1 -0
- package/dist/embed/embed-page-chunk-ZZ6UVQIY.js +1 -0
- package/dist/embed/embed-page-cil-EP36XC4Z.js +1 -0
- package/dist/embed/embed-page-cilkc-5UH3LFXC.js +1 -0
- package/dist/embed/embed-page-cilkcpp-Y4RQOSMF.js +1 -0
- package/dist/embed/embed-page-classDiagram-2ON5EDUG-VYHHMIKZ.js +1 -0
- package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-5AISLXUF.js +1 -0
- package/dist/embed/embed-page-clean-QZGRYRY5.js +1 -0
- package/dist/embed/embed-page-clike-GTL6WDYH.js +1 -0
- package/dist/embed/embed-page-clojure-ECJIJWSM.js +1 -0
- package/dist/embed/embed-page-clojure-EY2BXRJT.js +1 -0
- package/dist/embed/embed-page-clojure-repl-ENBUJRYQ.js +1 -0
- package/dist/embed/embed-page-cmake-RTALPFIA.js +1 -0
- package/dist/embed/embed-page-cmake-S6DRGTF2.js +1 -0
- package/dist/embed/embed-page-cobol-FXQMM6PB.js +1 -0
- package/dist/embed/embed-page-code-highlighter-IPU5ZNPJ.js +1 -0
- package/dist/embed/embed-page-coffeescript-IIDCJOCA.js +1 -0
- package/dist/embed/embed-page-coffeescript-POU3CIYC.js +1 -0
- package/dist/embed/embed-page-concurnas-F6SEEMEJ.js +1 -0
- package/dist/embed/embed-page-cooklang-LIFNSLRH.js +1 -0
- package/dist/embed/embed-page-coq-2JUBTUNS.js +1 -0
- package/dist/embed/embed-page-coq-IWCYQWGM.js +1 -0
- package/dist/embed/embed-page-core-352MEFFP.js +1 -0
- package/dist/embed/embed-page-core-AYEI4OZ6.js +1 -0
- package/dist/embed/embed-page-cos-F6EWDE62.js +1 -0
- package/dist/embed/embed-page-cose-bilkent-S5V4N54A-IV7O77S5.js +1 -0
- package/dist/embed/embed-page-cpp-HVOJ5BPL.js +1 -0
- package/dist/embed/embed-page-cpp-RZSYXWIK.js +1 -0
- package/dist/embed/embed-page-crmsh-PA4CUWCX.js +1 -0
- package/dist/embed/embed-page-crystal-BGRISHCP.js +1 -0
- package/dist/embed/embed-page-crystal-NBH5ARUS.js +1 -0
- package/dist/embed/embed-page-csharp-A4I76U77.js +1 -0
- package/dist/embed/embed-page-csharp-G66IJWBL.js +1 -0
- package/dist/embed/embed-page-cshtml-ZY7LJSTH.js +1 -0
- package/dist/embed/embed-page-csp-PLMAEO7V.js +1 -0
- package/dist/embed/embed-page-csp-T2MC22PT.js +1 -0
- package/dist/embed/embed-page-css-HEZPRVZR.js +1 -0
- package/dist/embed/embed-page-css-XIIU5NXE.js +1 -0
- package/dist/embed/embed-page-css-extras-4AP7AG4Z.js +1 -0
- package/dist/embed/embed-page-csv-35EH4CNE.js +1 -0
- package/dist/embed/embed-page-cue-5GIOQZOS.js +1 -0
- package/dist/embed/embed-page-cypher-XWLRPXSY.js +1 -0
- package/dist/embed/embed-page-d-ANNLHL5A.js +1 -0
- package/dist/embed/embed-page-d-HQGGYSAO.js +1 -0
- package/dist/embed/embed-page-dagre-6UL2VRFP-UQFZMKYW.js +4 -0
- package/dist/embed/embed-page-dart-2BS7EJLX.js +1 -0
- package/dist/embed/embed-page-dart-SNIZMFT4.js +1 -0
- package/dist/embed/embed-page-dataweave-SALDXGYS.js +1 -0
- package/dist/embed/embed-page-dax-2KOMLEC5.js +1 -0
- package/dist/embed/embed-page-delphi-VOPLSWR6.js +1 -0
- package/dist/embed/embed-page-dhall-RLDI6WAI.js +1 -0
- package/dist/embed/embed-page-diagram-PSM6KHXK-4IKXWNA4.js +24 -0
- package/dist/embed/embed-page-diagram-QEK2KX5R-245T32UF.js +43 -0
- package/dist/embed/embed-page-diagram-S2PKOQOG-BOA5MJA5.js +24 -0
- package/dist/embed/embed-page-diff-XHEIK6AT.js +1 -0
- package/dist/embed/embed-page-diff-YP5K4YQS.js +1 -0
- package/dist/embed/embed-page-django-FC5F6SPC.js +1 -0
- package/dist/embed/embed-page-django-XSYFOC3W.js +1 -0
- package/dist/embed/embed-page-dns-KDNRJ6UZ.js +1 -0
- package/dist/embed/embed-page-dns-zone-file-NX7ZHZCM.js +1 -0
- package/dist/embed/embed-page-docker-J7AMB47V.js +1 -0
- package/dist/embed/embed-page-dockerfile-XG6U5RN5.js +1 -0
- package/dist/embed/embed-page-dos-5YQ3E4SR.js +1 -0
- package/dist/embed/embed-page-dot-ZI64FDGN.js +1 -0
- package/dist/embed/embed-page-dsconfig-R7ACRXON.js +1 -0
- package/dist/embed/embed-page-dts-VYGRS3T2.js +1 -0
- package/dist/embed/embed-page-dust-7SNNDXYB.js +1 -0
- package/dist/embed/embed-page-ebnf-B4S6SDVV.js +1 -0
- package/dist/embed/embed-page-ebnf-WJWDOCWK.js +1 -0
- package/dist/embed/embed-page-echarts-QVSODBM4.js +1 -0
- package/dist/embed/embed-page-editorconfig-7RHQSHUS.js +1 -0
- package/dist/embed/embed-page-eiffel-ZEASYTUJ.js +1 -0
- package/dist/embed/embed-page-ejs-Q66OMKPX.js +1 -0
- package/dist/embed/embed-page-elixir-5PE5DZKY.js +1 -0
- package/dist/embed/embed-page-elixir-NP6NP6KG.js +1 -0
- package/dist/embed/embed-page-elm-6R3IXXLA.js +1 -0
- package/dist/embed/embed-page-elm-DJKOH2UD.js +1 -0
- package/dist/embed/embed-page-en-27OIE2UA.js +1 -0
- package/dist/embed/embed-page-en-2WLCQIB6.js +1 -0
- package/dist/embed/embed-page-en-5R5CQCHP.js +1 -0
- package/dist/embed/embed-page-en-7WXWAWGG.js +1 -0
- package/dist/embed/embed-page-en-A6F6L2TT.js +1 -0
- package/dist/embed/embed-page-en-CKNSRQK4.js +1 -0
- package/dist/embed/embed-page-en-FP6DWSG3.js +1 -0
- package/dist/embed/embed-page-en-FPTYKHAK.js +1 -0
- package/dist/embed/embed-page-en-GE4GI4D3.js +1 -0
- package/dist/embed/embed-page-en-GHTROC4H.js +1 -0
- package/dist/embed/embed-page-en-H66IJ36N.js +1 -0
- package/dist/embed/embed-page-en-OLZHSUC3.js +1 -0
- package/dist/embed/embed-page-en-P5NUAAD7.js +1 -0
- package/dist/embed/embed-page-en-PQZ2ZCEH.js +1 -0
- package/dist/embed/embed-page-en-RBT7ZUI5.js +1 -0
- package/dist/embed/embed-page-en-S4MXFPIU.js +1 -0
- package/dist/embed/embed-page-en-UWBIHR6I.js +1 -0
- package/dist/embed/embed-page-en-WB2EPS63.js +1 -0
- package/dist/embed/embed-page-en-YEFZNGUW.js +1 -0
- package/dist/embed/embed-page-erDiagram-Q2GNP2WA-S4J4SQPR.js +60 -0
- package/dist/embed/embed-page-erb-MSH3QRJT.js +1 -0
- package/dist/embed/embed-page-erb-QZRLSBWO.js +1 -0
- package/dist/embed/embed-page-erlang-CQVK2QYH.js +1 -0
- package/dist/embed/embed-page-erlang-OXIRDJPA.js +1 -0
- package/dist/embed/embed-page-erlang-repl-5EQDFU23.js +1 -0
- package/dist/embed/embed-page-etlua-LJBWGZT6.js +1 -0
- package/dist/embed/embed-page-excel-4AAUVD46.js +1 -0
- package/dist/embed/embed-page-excel-formula-5UFQN2A5.js +1 -0
- package/dist/embed/embed-page-factor-SQSMWXRS.js +1 -0
- package/dist/embed/embed-page-false-HPFNQHO6.js +1 -0
- package/dist/embed/embed-page-firestore-security-rules-USWPNDWW.js +1 -0
- package/dist/embed/embed-page-fix-XSUJ2Q7E.js +1 -0
- package/dist/embed/embed-page-flix-THNN66TB.js +1 -0
- package/dist/embed/embed-page-flow-ELHS4A2O.js +1 -0
- package/dist/embed/embed-page-flowDiagram-NV44I4VS-ZFIJXKMW.js +162 -0
- package/dist/embed/embed-page-fortran-JKZHDNSX.js +1 -0
- package/dist/embed/embed-page-fortran-Y75H5LWC.js +1 -0
- package/dist/embed/embed-page-fsharp-CAAQOKEY.js +1 -0
- package/dist/embed/embed-page-fsharp-FTJN7DZ6.js +1 -0
- package/dist/embed/embed-page-ftl-AARPORRD.js +1 -0
- package/dist/embed/embed-page-gams-N33H6AQH.js +1 -0
- package/dist/embed/embed-page-ganttDiagram-JELNMOA3-7MSIEWL4.js +267 -0
- package/dist/embed/embed-page-gap-325VM7KU.js +1 -0
- package/dist/embed/embed-page-gauss-WG2DOSWV.js +1 -0
- package/dist/embed/embed-page-gcode-COGO33QN.js +1 -0
- package/dist/embed/embed-page-gcode-MTMUEWBT.js +1 -0
- package/dist/embed/embed-page-gdscript-P65V36Y6.js +1 -0
- package/dist/embed/embed-page-gedcom-KIVDLFWB.js +1 -0
- package/dist/embed/embed-page-gettext-VJBX5C3N.js +1 -0
- package/dist/embed/embed-page-gherkin-45KEKCQV.js +1 -0
- package/dist/embed/embed-page-gherkin-TMUR4EKB.js +1 -0
- package/dist/embed/embed-page-git-CWKY2IU5.js +1 -0
- package/dist/embed/embed-page-gitGraph-F6HP7TQM-D6FONFDI.js +1 -0
- package/dist/embed/embed-page-gitGraphDiagram-NY62KEGX-F6KE6PZK.js +65 -0
- package/dist/embed/embed-page-glsl-HGFAVFRI.js +1 -0
- package/dist/embed/embed-page-glsl-OMDAXFC2.js +1 -0
- package/dist/embed/embed-page-gml-5YUXYDHR.js +1 -0
- package/dist/embed/embed-page-gml-6POV5M5K.js +1 -0
- package/dist/embed/embed-page-gn-2J264UNJ.js +1 -0
- package/dist/embed/embed-page-go-CQ6FKURK.js +1 -0
- package/dist/embed/embed-page-go-GPGHLW4Q.js +1 -0
- package/dist/embed/embed-page-go-module-3EAM2YAF.js +1 -0
- package/dist/embed/embed-page-golo-T36P3RQM.js +1 -0
- package/dist/embed/embed-page-gradle-LML76WO2.js +1 -0
- package/dist/embed/embed-page-gradle-MSQ6NT6K.js +1 -0
- package/dist/embed/embed-page-graphql-AUGVDFH4.js +1 -0
- package/dist/embed/embed-page-groovy-LAJS3HZW.js +1 -0
- package/dist/embed/embed-page-groovy-TPUU66PY.js +1 -0
- package/dist/embed/embed-page-haml-INZHFFL6.js +1 -0
- package/dist/embed/embed-page-haml-TUGWJH3H.js +1 -0
- package/dist/embed/embed-page-handlebars-EWWLI7DX.js +1 -0
- package/dist/embed/embed-page-handlebars-HFZUPSHJ.js +1 -0
- package/dist/embed/embed-page-haskell-7R7LSAUC.js +1 -0
- package/dist/embed/embed-page-haskell-ETHLNLDG.js +1 -0
- package/dist/embed/embed-page-haxe-EFDW6JB3.js +1 -0
- package/dist/embed/embed-page-haxe-GV4NRIN3.js +1 -0
- package/dist/embed/embed-page-hcl-JQENHTIJ.js +1 -0
- package/dist/embed/embed-page-hlsl-I7R3VOSD.js +1 -0
- package/dist/embed/embed-page-hoon-NO6AJCHS.js +1 -0
- package/dist/embed/embed-page-hpkp-DUTLA4JJ.js +1 -0
- package/dist/embed/embed-page-hsp-KDHBE7GU.js +1 -0
- package/dist/embed/embed-page-hsts-LSPKRH67.js +1 -0
- package/dist/embed/embed-page-html2canvas-3NXZSLAY.js +1 -0
- package/dist/embed/embed-page-htmlbars-R7K5JFL2.js +1 -0
- package/dist/embed/embed-page-http-BJUP7APM.js +1 -0
- package/dist/embed/embed-page-http-FXFSRB7K.js +1 -0
- package/dist/embed/embed-page-hy-3TXCRWRT.js +1 -0
- package/dist/embed/embed-page-ichigojam-BSRE4NMH.js +1 -0
- package/dist/embed/embed-page-icon-OIQTOJHE.js +1 -0
- package/dist/embed/embed-page-icu-message-format-JXAZ2J4H.js +1 -0
- package/dist/embed/embed-page-idris-OGTAIRIL.js +1 -0
- package/dist/embed/embed-page-iecst-SSWMWPLJ.js +1 -0
- package/dist/embed/embed-page-ignore-IMT74N46.js +1 -0
- package/dist/embed/embed-page-index.es-HZW2DARZ.js +23 -0
- package/dist/embed/embed-page-info-NVLQJR56-VJUPO6NF.js +1 -0
- package/dist/embed/embed-page-infoDiagram-WHAUD3N6-FQMKXERB.js +2 -0
- package/dist/embed/embed-page-inform7-JHGO5QGY.js +1 -0
- package/dist/embed/embed-page-inform7-M6DXCIW7.js +1 -0
- package/dist/embed/embed-page-ini-BHZSZJSE.js +1 -0
- package/dist/embed/embed-page-ini-LA7E7LKO.js +1 -0
- package/dist/embed/embed-page-io-IYBHSFY2.js +1 -0
- package/dist/embed/embed-page-irpf90-X3ZPUH4W.js +1 -0
- package/dist/embed/embed-page-isbl-SQQHGVCR.js +1 -0
- package/dist/embed/embed-page-j-4MEAELCY.js +1 -0
- package/dist/embed/embed-page-java-JZ4USR4X.js +1 -0
- package/dist/embed/embed-page-java-SOAI2TS3.js +1 -0
- package/dist/embed/embed-page-javadoc-JKAJWKCF.js +1 -0
- package/dist/embed/embed-page-javadoclike-JZC43M6A.js +1 -0
- package/dist/embed/embed-page-javascript-S7D6XRD5.js +1 -0
- package/dist/embed/embed-page-javascript-UNJ3T2XY.js +1 -0
- package/dist/embed/embed-page-javastacktrace-S5OKKFIR.js +1 -0
- package/dist/embed/embed-page-jboss-cli-64WXHREL.js +1 -0
- package/dist/embed/embed-page-jexl-WUZNMTGI.js +1 -0
- package/dist/embed/embed-page-jolie-M4JG6DUJ.js +1 -0
- package/dist/embed/embed-page-journeyDiagram-XKPGCS4Q-6VTW6GQ3.js +139 -0
- package/dist/embed/embed-page-jq-QXUJKBPW.js +1 -0
- package/dist/embed/embed-page-js-extras-ERDHBJIT.js +1 -0
- package/dist/embed/embed-page-js-templates-IYRYRWGI.js +1 -0
- package/dist/embed/embed-page-jsdoc-BDREHYLK.js +1 -0
- package/dist/embed/embed-page-json-X4JZ6JAX.js +1 -0
- package/dist/embed/embed-page-json-YAKJ2V4K.js +1 -0
- package/dist/embed/embed-page-json5-BD4GK3X3.js +1 -0
- package/dist/embed/embed-page-jsonp-FHMMQCWS.js +1 -0
- package/dist/embed/embed-page-jsstacktrace-4HBURHPI.js +1 -0
- package/dist/embed/embed-page-jsx-CVHZS4MY.js +1 -0
- package/dist/embed/embed-page-julia-EWRTSDI2.js +1 -0
- package/dist/embed/embed-page-julia-RDEVG5WO.js +1 -0
- package/dist/embed/embed-page-julia-repl-HSJTSANS.js +1 -0
- package/dist/embed/embed-page-kanban-definition-3W4ZIXB7-7IZYCLQZ.js +89 -0
- package/dist/embed/embed-page-katex-BT2N5EZD.js +261 -0
- package/dist/embed/embed-page-keepalived-476IUDO4.js +1 -0
- package/dist/embed/embed-page-keyman-OY6BKO7Z.js +1 -0
- package/dist/embed/embed-page-kotlin-S55S5R4P.js +1 -0
- package/dist/embed/embed-page-kotlin-XAOBD5O2.js +1 -0
- package/dist/embed/embed-page-kumir-WWK2NSXU.js +1 -0
- package/dist/embed/embed-page-kusto-LCKZZ63A.js +1 -0
- package/dist/embed/embed-page-lasso-N7XWII4U.js +1 -0
- package/dist/embed/embed-page-latex-MJXZS427.js +1 -0
- package/dist/embed/embed-page-latex-XCV4UIXJ.js +1 -0
- package/dist/embed/embed-page-latte-GTCOZILL.js +1 -0
- package/dist/embed/embed-page-ldif-3QI3A5YT.js +1 -0
- package/dist/embed/embed-page-leaf-34J3ETXE.js +1 -0
- package/dist/embed/embed-page-less-B3XVW4TS.js +1 -0
- package/dist/embed/embed-page-less-YKKG3LTY.js +1 -0
- package/dist/embed/embed-page-lilypond-C4SFVFTD.js +1 -0
- package/dist/embed/embed-page-linker-script-NCLUOL7U.js +1 -0
- package/dist/embed/embed-page-liquid-UMDLTLNZ.js +1 -0
- package/dist/embed/embed-page-lisp-IAK2LWR3.js +1 -0
- package/dist/embed/embed-page-lisp-XPU7XXVJ.js +1 -0
- package/dist/embed/embed-page-livecodeserver-XOUENXLN.js +1 -0
- package/dist/embed/embed-page-livescript-LXZV3II6.js +1 -0
- package/dist/embed/embed-page-livescript-WEFJFW2D.js +1 -0
- package/dist/embed/embed-page-llvm-MNTAJA6P.js +1 -0
- package/dist/embed/embed-page-llvm-S7T6BM7Y.js +1 -0
- package/dist/embed/embed-page-log-WIYUCDRC.js +1 -0
- package/dist/embed/embed-page-lolcode-RQ3RHGIN.js +1 -0
- package/dist/embed/embed-page-lsl-Q4VYUCM4.js +1 -0
- package/dist/embed/embed-page-lua-MS76YBEL.js +1 -0
- package/dist/embed/embed-page-lua-O3JFY7QV.js +1 -0
- package/dist/embed/embed-page-magma-T2QSG6WL.js +1 -0
- package/dist/embed/embed-page-makefile-FCAAXWLA.js +1 -0
- package/dist/embed/embed-page-makefile-HUX6TX3T.js +1 -0
- package/dist/embed/embed-page-markdown-M4IQETIU.js +1 -0
- package/dist/embed/embed-page-markdown-ORJXEJWZ.js +1 -0
- package/dist/embed/embed-page-markup-6L7LH3BP.js +1 -0
- package/dist/embed/embed-page-markup-templating-SGBIHIVT.js +1 -0
- package/dist/embed/embed-page-mata-IBELFW6D.js +1 -0
- package/dist/embed/embed-page-mathematica-QOFGMW6O.js +1 -0
- package/dist/embed/embed-page-matlab-OFVHPUWG.js +1 -0
- package/dist/embed/embed-page-matlab-UVGZH4MR.js +1 -0
- package/dist/embed/embed-page-maxima-QKETF4KK.js +1 -0
- package/dist/embed/embed-page-maxscript-4JOQWFTZ.js +1 -0
- package/dist/embed/embed-page-mel-N5TPETBR.js +1 -0
- package/dist/embed/embed-page-mel-UBADG2B3.js +1 -0
- package/dist/embed/embed-page-mercury-K2BU5CPB.js +1 -0
- package/dist/embed/embed-page-mermaid-3HOGUTLE.js +1 -0
- package/dist/embed/embed-page-mermaid-R7ZBUE3D.js +18 -0
- package/dist/embed/embed-page-metafont-5GBRPT6S.js +1 -0
- package/dist/embed/embed-page-mindmap-definition-VGOIOE7T-GKTOT34A.js +68 -0
- package/dist/embed/embed-page-mipsasm-PY7W6KSL.js +1 -0
- package/dist/embed/embed-page-mizar-DVZU4Z5G.js +1 -0
- package/dist/embed/embed-page-mizar-G7CLPIB4.js +1 -0
- package/dist/embed/embed-page-mojolicious-IZEGLU6D.js +1 -0
- package/dist/embed/embed-page-mongodb-DDLPZR6K.js +1 -0
- package/dist/embed/embed-page-monkey-MOOQCAL4.js +1 -0
- package/dist/embed/embed-page-monkey-VS64YP3U.js +1 -0
- package/dist/embed/embed-page-moonscript-AZ46ZBIM.js +1 -0
- package/dist/embed/embed-page-moonscript-CRMY2JD4.js +1 -0
- package/dist/embed/embed-page-n1ql-2KJNO6XB.js +1 -0
- package/dist/embed/embed-page-n1ql-PDFB7UNK.js +1 -0
- package/dist/embed/embed-page-n4js-IRXSSIEI.js +1 -0
- package/dist/embed/embed-page-nand2tetris-hdl-ZRN7FMME.js +1 -0
- package/dist/embed/embed-page-naniscript-OCPHPZGG.js +1 -0
- package/dist/embed/embed-page-nasm-YKWJDKQX.js +1 -0
- package/dist/embed/embed-page-neon-BOPIXPDZ.js +1 -0
- package/dist/embed/embed-page-nevod-DC4I4P7B.js +1 -0
- package/dist/embed/embed-page-nginx-GMUAMY3E.js +1 -0
- package/dist/embed/embed-page-nginx-LVSSTL4T.js +1 -0
- package/dist/embed/embed-page-nim-JUKXTUPM.js +1 -0
- package/dist/embed/embed-page-nim-YHYSKN6P.js +1 -0
- package/dist/embed/embed-page-nix-5OFINKMK.js +1 -0
- package/dist/embed/embed-page-nix-DCBWP2N3.js +1 -0
- package/dist/embed/embed-page-node-repl-RGX5UIER.js +1 -0
- package/dist/embed/embed-page-nsis-PMUAXVOZ.js +1 -0
- package/dist/embed/embed-page-nsis-Z233CWDB.js +1 -0
- package/dist/embed/embed-page-objectivec-QPU6XW5W.js +1 -0
- package/dist/embed/embed-page-objectivec-WCBIHUCL.js +1 -0
- package/dist/embed/embed-page-ocaml-D66F3JWE.js +1 -0
- package/dist/embed/embed-page-ocaml-DFTB5XJM.js +1 -0
- package/dist/embed/embed-page-odin-UVIZ67AX.js +1 -0
- package/dist/embed/embed-page-opencl-PWZHXB5K.js +1 -0
- package/dist/embed/embed-page-openqasm-J5APUJUZ.js +1 -0
- package/dist/embed/embed-page-openscad-CSIU7OOO.js +1 -0
- package/dist/embed/embed-page-oxygene-UYGSO2WS.js +1 -0
- package/dist/embed/embed-page-oz-7BPQJDOW.js +1 -0
- package/dist/embed/embed-page-packet-BFZMPI3H-CGY36HKT.js +1 -0
- package/dist/embed/embed-page-parigp-K3GW5JQK.js +1 -0
- package/dist/embed/embed-page-parser-Y7QJVKGQ.js +1 -0
- package/dist/embed/embed-page-parser3-UFIVQU6T.js +1 -0
- package/dist/embed/embed-page-pascal-NK6I64IW.js +1 -0
- package/dist/embed/embed-page-pascaligo-BRR5JZVC.js +1 -0
- package/dist/embed/embed-page-pcaxis-QE3XBICV.js +1 -0
- package/dist/embed/embed-page-peoplecode-CPDYV3FW.js +1 -0
- package/dist/embed/embed-page-perl-7VAM2D4R.js +1 -0
- package/dist/embed/embed-page-perl-ASB2WPB4.js +1 -0
- package/dist/embed/embed-page-pf-WM5LZO6U.js +1 -0
- package/dist/embed/embed-page-pgsql-VRK26X2N.js +1 -0
- package/dist/embed/embed-page-php-H63ZIEGX.js +1 -0
- package/dist/embed/embed-page-php-WXTJTG7Y.js +1 -0
- package/dist/embed/embed-page-php-extras-65E7KHEQ.js +1 -0
- package/dist/embed/embed-page-php-template-24QJMI6N.js +1 -0
- package/dist/embed/embed-page-phpdoc-63DUWR7J.js +1 -0
- package/dist/embed/embed-page-pie-7BOR55EZ-4HLXJT4Y.js +1 -0
- package/dist/embed/embed-page-pieDiagram-ADFJNKIX-VDPALO42.js +30 -0
- package/dist/embed/embed-page-plaintext-IZENJ2M7.js +1 -0
- package/dist/embed/embed-page-plant-uml-W6X5ABCR.js +1 -0
- package/dist/embed/embed-page-plsql-IOHHG4AA.js +1 -0
- package/dist/embed/embed-page-pony-HLBPRPYF.js +1 -0
- package/dist/embed/embed-page-powerquery-R7X7XPYS.js +1 -0
- package/dist/embed/embed-page-powershell-IEKYGEWU.js +1 -0
- package/dist/embed/embed-page-powershell-QSBD4DBE.js +1 -0
- package/dist/embed/embed-page-processing-ICXA7P62.js +1 -0
- package/dist/embed/embed-page-processing-QUY2VPZE.js +1 -0
- package/dist/embed/embed-page-profile-RRKDC4TI.js +1 -0
- package/dist/embed/embed-page-prolog-AVGV3CPE.js +1 -0
- package/dist/embed/embed-page-prolog-S4DPKDEM.js +1 -0
- package/dist/embed/embed-page-promql-YGCA6H25.js +1 -0
- package/dist/embed/embed-page-properties-NG7BHTON.js +1 -0
- package/dist/embed/embed-page-properties-S6AL2VXP.js +1 -0
- package/dist/embed/embed-page-protobuf-VRXE5EK5.js +1 -0
- package/dist/embed/embed-page-protobuf-YCLXECU6.js +1 -0
- package/dist/embed/embed-page-psl-FMXRDDEK.js +1 -0
- package/dist/embed/embed-page-pug-L2LBNDKO.js +1 -0
- package/dist/embed/embed-page-puppet-K2AJREJM.js +1 -0
- package/dist/embed/embed-page-puppet-LVO722GV.js +1 -0
- package/dist/embed/embed-page-pure-SWGKJCF2.js +1 -0
- package/dist/embed/embed-page-purebasic-254HNFPL.js +1 -0
- package/dist/embed/embed-page-purebasic-COBX6ILX.js +1 -0
- package/dist/embed/embed-page-purescript-XQK6XYUZ.js +1 -0
- package/dist/embed/embed-page-purify-CGI5OZWX.js +8 -0
- package/dist/embed/embed-page-python-H7Q33GPW.js +1 -0
- package/dist/embed/embed-page-python-UFPGXWSR.js +1 -0
- package/dist/embed/embed-page-python-repl-ONLR2WRR.js +1 -0
- package/dist/embed/embed-page-q-IO3SFP2Q.js +1 -0
- package/dist/embed/embed-page-q-Z7HHCB54.js +1 -0
- package/dist/embed/embed-page-qml-4PXGUUSJ.js +1 -0
- package/dist/embed/embed-page-qml-VFZG5LYU.js +1 -0
- package/dist/embed/embed-page-qore-7EZT2TQG.js +1 -0
- package/dist/embed/embed-page-qsharp-VUJ4VS4E.js +1 -0
- package/dist/embed/embed-page-quadrantDiagram-AYHSOK5B-QABGBCC5.js +7 -0
- package/dist/embed/embed-page-r-GKJZI446.js +1 -0
- package/dist/embed/embed-page-r-U5QEOQ72.js +1 -0
- package/dist/embed/embed-page-racket-5NHVAK45.js +1 -0
- package/dist/embed/embed-page-radar-NHE76QYJ-T44Q7XAQ.js +1 -0
- package/dist/embed/embed-page-reason-JDDTSF4U.js +1 -0
- package/dist/embed/embed-page-reasonml-DIFY5STL.js +1 -0
- package/dist/embed/embed-page-regex-2HY7ES3Y.js +1 -0
- package/dist/embed/embed-page-rego-6SOMFLXW.js +1 -0
- package/dist/embed/embed-page-renpy-BVTF3ODR.js +1 -0
- package/dist/embed/embed-page-requirementDiagram-UZGBJVZJ-LTZH6RTD.js +64 -0
- package/dist/embed/embed-page-rescript-V35OZ6DU.js +1 -0
- package/dist/embed/embed-page-rest-EDJN4JTB.js +1 -0
- package/dist/embed/embed-page-rib-HN474H6B.js +1 -0
- package/dist/embed/embed-page-rip-LZAKQC76.js +1 -0
- package/dist/embed/embed-page-roboconf-6SDS6UXM.js +1 -0
- package/dist/embed/embed-page-roboconf-TISCJRZP.js +1 -0
- package/dist/embed/embed-page-robotframework-YHO6QQ37.js +1 -0
- package/dist/embed/embed-page-routeros-BY7L6MA4.js +1 -0
- package/dist/embed/embed-page-rsl-URAO5CYW.js +1 -0
- package/dist/embed/embed-page-ruby-PPIJRZCG.js +1 -0
- package/dist/embed/embed-page-ruby-ZNE3GWEB.js +1 -0
- package/dist/embed/embed-page-ruleslanguage-ODJT22HF.js +1 -0
- package/dist/embed/embed-page-rust-FUQNUAJ4.js +1 -0
- package/dist/embed/embed-page-rust-Y3JBGGKI.js +1 -0
- package/dist/embed/embed-page-sankeyDiagram-TZEHDZUN-HGLEQLAP.js +10 -0
- package/dist/embed/embed-page-sas-AWQIVSTG.js +1 -0
- package/dist/embed/embed-page-sas-UDQKYPQP.js +1 -0
- package/dist/embed/embed-page-sass-WQOLGQNX.js +1 -0
- package/dist/embed/embed-page-scala-CMBEKXQ2.js +1 -0
- package/dist/embed/embed-page-scala-KFEFYVX7.js +1 -0
- package/dist/embed/embed-page-scheme-6KNZ6FIR.js +1 -0
- package/dist/embed/embed-page-scheme-ZDAY2PAQ.js +1 -0
- package/dist/embed/embed-page-scilab-STNLKUQZ.js +1 -0
- package/dist/embed/embed-page-scss-VC45Z2SH.js +1 -0
- package/dist/embed/embed-page-scss-YKSOAR66.js +1 -0
- package/dist/embed/embed-page-sequenceDiagram-WL72ISMW-LV6Q4SHW.js +145 -0
- package/dist/embed/embed-page-shell-42UWXCAN.js +1 -0
- package/dist/embed/embed-page-shell-session-M42I6EDG.js +1 -0
- package/dist/embed/embed-page-smali-6OACE5T7.js +1 -0
- package/dist/embed/embed-page-smali-7UXEUG3V.js +1 -0
- package/dist/embed/embed-page-smalltalk-R45Q7ME3.js +1 -0
- package/dist/embed/embed-page-smalltalk-UZXF72MN.js +1 -0
- package/dist/embed/embed-page-smarty-VFWX3D2X.js +1 -0
- package/dist/embed/embed-page-sml-AR7ORLES.js +1 -0
- package/dist/embed/embed-page-sml-FYK73WZQ.js +1 -0
- package/dist/embed/embed-page-solidity-KKZXHEJE.js +1 -0
- package/dist/embed/embed-page-solution-file-746HCQPI.js +1 -0
- package/dist/embed/embed-page-soy-R7QIZXS4.js +1 -0
- package/dist/embed/embed-page-sparql-73CVJATM.js +1 -0
- package/dist/embed/embed-page-splunk-spl-IOBHKLEC.js +1 -0
- package/dist/embed/embed-page-sqf-4WYGTJHK.js +1 -0
- package/dist/embed/embed-page-sqf-LLYWAOKR.js +1 -0
- package/dist/embed/embed-page-sql-3YZTOBDL.js +1 -0
- package/dist/embed/embed-page-sql-XXJRTR2M.js +1 -0
- package/dist/embed/embed-page-sql_more-ACEGOZKV.js +1 -0
- package/dist/embed/embed-page-squirrel-MQ2MSVQJ.js +1 -0
- package/dist/embed/embed-page-stan-C7ZJDWYV.js +1 -0
- package/dist/embed/embed-page-stan-NIFOXR5O.js +1 -0
- package/dist/embed/embed-page-stata-HPW3FR27.js +1 -0
- package/dist/embed/embed-page-stata-HT2C2JZA.js +1 -0
- package/dist/embed/embed-page-stateDiagram-FKZM4ZOC-U4NHQDNP.js +1 -0
- package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-G3EWQCOW.js +1 -0
- package/dist/embed/embed-page-step21-HQMTLDFR.js +1 -0
- package/dist/embed/embed-page-stylus-C2U234A4.js +1 -0
- package/dist/embed/embed-page-stylus-UKZPZWAO.js +1 -0
- package/dist/embed/embed-page-subunit-QGOU4E5Q.js +1 -0
- package/dist/embed/embed-page-supercollider-6VGG4F7Z.js +1 -0
- package/dist/embed/embed-page-swift-OQLWPQ4L.js +1 -0
- package/dist/embed/embed-page-swift-ZRCCOGNE.js +1 -0
- package/dist/embed/embed-page-systemd-KWM7EBJR.js +1 -0
- package/dist/embed/embed-page-t4-cs-F67MRDDS.js +1 -0
- package/dist/embed/embed-page-t4-templating-EW3AELKJ.js +1 -0
- package/dist/embed/embed-page-t4-vb-TJV35ESE.js +1 -0
- package/dist/embed/embed-page-taggerscript-ZRYMPKTX.js +1 -0
- package/dist/embed/embed-page-tap-GKISLBTY.js +1 -0
- package/dist/embed/embed-page-tap-TWDPZ7IY.js +1 -0
- package/dist/embed/embed-page-tcl-6DKOMCAK.js +1 -0
- package/dist/embed/embed-page-tcl-VNRAVJWS.js +1 -0
- package/dist/embed/embed-page-textile-H2STF43X.js +1 -0
- package/dist/embed/embed-page-thrift-NPTVHTIY.js +1 -0
- package/dist/embed/embed-page-timeline-definition-IT6M3QCI-VOXWEFHI.js +61 -0
- package/dist/embed/embed-page-toml-KY7YRJS5.js +1 -0
- package/dist/embed/embed-page-tp-MGMIXHG2.js +1 -0
- package/dist/embed/embed-page-treemap-KMMF4GRG-JWT5XZDP.js +1 -0
- package/dist/embed/embed-page-tremor-W5QL7C2V.js +1 -0
- package/dist/embed/embed-page-tsx-PNW7N5T4.js +1 -0
- package/dist/embed/embed-page-tt2-OCSYJGAV.js +1 -0
- package/dist/embed/embed-page-turtle-4OGUEYQW.js +1 -0
- package/dist/embed/embed-page-twig-2AVKA77U.js +1 -0
- package/dist/embed/embed-page-twig-CGMNN7JB.js +1 -0
- package/dist/embed/embed-page-typescript-3I3I2YV3.js +1 -0
- package/dist/embed/embed-page-typescript-NMSVSBFQ.js +1 -0
- package/dist/embed/embed-page-typoscript-ZER4ALDE.js +1 -0
- package/dist/embed/embed-page-unrealscript-AMMLGO66.js +1 -0
- package/dist/embed/embed-page-uorazor-MTLK5W3U.js +1 -0
- package/dist/embed/embed-page-uri-IF5LTG7Q.js +1 -0
- package/dist/embed/embed-page-v-VXMX4PPN.js +1 -0
- package/dist/embed/embed-page-vala-AGG7VBSS.js +1 -0
- package/dist/embed/embed-page-vala-H4USTVM2.js +1 -0
- package/dist/embed/embed-page-vbnet-K7KUWIY2.js +1 -0
- package/dist/embed/embed-page-vbnet-R6IQWWE6.js +1 -0
- package/dist/embed/embed-page-vbscript-OJYZO4J4.js +1 -0
- package/dist/embed/embed-page-vbscript-html-HMELJWWU.js +1 -0
- package/dist/embed/embed-page-velocity-BILR4RIQ.js +1 -0
- package/dist/embed/embed-page-verilog-FFV6SJPD.js +1 -0
- package/dist/embed/embed-page-verilog-UFCUUDIO.js +1 -0
- package/dist/embed/embed-page-vhdl-3HZBX766.js +1 -0
- package/dist/embed/embed-page-vhdl-THMXL3B7.js +1 -0
- package/dist/embed/embed-page-vim-2SI2OZX5.js +1 -0
- package/dist/embed/embed-page-vim-QAPHQLNR.js +1 -0
- package/dist/embed/embed-page-visual-basic-2Q4UJ52R.js +1 -0
- package/dist/embed/embed-page-warpscript-RTLTSCTI.js +1 -0
- package/dist/embed/embed-page-wasm-4BA4QVJ5.js +1 -0
- package/dist/embed/embed-page-web-idl-CT6FPCM4.js +1 -0
- package/dist/embed/embed-page-wgsl-SSLUKZOV.js +1 -0
- package/dist/embed/embed-page-wiki-ZBAVQKEP.js +1 -0
- package/dist/embed/embed-page-wolfram-7XG6ZVDA.js +1 -0
- package/dist/embed/embed-page-wren-ZSLQETFI.js +1 -0
- package/dist/embed/embed-page-x86asm-UVKZDRQL.js +1 -0
- package/dist/embed/embed-page-xeora-OQMJQFDI.js +1 -0
- package/dist/embed/embed-page-xl-PEEWU7MT.js +1 -0
- package/dist/embed/embed-page-xml-BD4O4WX7.js +1 -0
- package/dist/embed/embed-page-xml-doc-J6ZMU2EU.js +1 -0
- package/dist/embed/embed-page-xojo-ACSQQRRQ.js +1 -0
- package/dist/embed/embed-page-xquery-NASZ2VPP.js +1 -0
- package/dist/embed/embed-page-xquery-OVYQMYMU.js +1 -0
- package/dist/embed/embed-page-xychartDiagram-PRI3JC2R-VZSIXBFK.js +7 -0
- package/dist/embed/embed-page-yaml-7OQT7Q3B.js +1 -0
- package/dist/embed/embed-page-yaml-YSGFYKEJ.js +1 -0
- package/dist/embed/embed-page-yang-IDFSRGZV.js +1 -0
- package/dist/embed/embed-page-zephir-ICW265XT.js +1 -0
- package/dist/embed/embed-page-zh-5L4NNHXH.js +1 -0
- package/dist/embed/embed-page-zh-6ZDI4LQX.js +1 -0
- package/dist/embed/embed-page-zh-ACZNJ4X4.js +1 -0
- package/dist/embed/embed-page-zh-D3EX4GW4.js +1 -0
- package/dist/embed/embed-page-zh-EYLHUD5G.js +1 -0
- package/dist/embed/embed-page-zh-FXQGY5HD.js +1 -0
- package/dist/embed/embed-page-zh-GEYMOUQO.js +1 -0
- package/dist/embed/embed-page-zh-GTQRI6XG.js +1 -0
- package/dist/embed/embed-page-zh-HVQX6Q43.js +1 -0
- package/dist/embed/embed-page-zh-KC2E7UVY.js +1 -0
- package/dist/embed/embed-page-zh-NBMPWZ3W.js +1 -0
- package/dist/embed/embed-page-zh-NKHP3CFU.js +1 -0
- package/dist/embed/embed-page-zh-ODXFDX4F.js +1 -0
- package/dist/embed/embed-page-zh-OPUVZZSQ.js +1 -0
- package/dist/embed/embed-page-zh-SSMSF5LE.js +1 -0
- package/dist/embed/embed-page-zh-UHYXJQJ2.js +1 -0
- package/dist/embed/embed-page-zh-VH6J7XZO.js +1 -0
- package/dist/embed/embed-page-zh-XEYNKCTC.js +1 -0
- package/dist/embed/embed-page-zh-Y5X5Y2DF.js +1 -0
- package/dist/embed/embed-page-zig-B7SS5D6J.js +1 -0
- package/dist/embed/embed-page.js +2 -2
- package/dist/index.d.mts +82 -18
- package/dist/index.d.ts +82 -18
- package/dist/index.js +760 -528
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +471 -232
- package/dist/index.mjs.map +1 -1
- package/dist/open-FJ3BY3CL.mjs +346 -0
- package/dist/open-exposure-OX5NKWDG.mjs +97 -0
- package/dist/open-files-V3R2BFTV.mjs +146 -0
- package/dist/sandboxProvider-FILMFVIM.mjs +10 -0
- package/package.json +4 -4
- package/dist/chunk-73QZQQOT.mjs +0 -43
- package/dist/chunk-73QZQQOT.mjs.map +0 -1
- package/dist/chunk-NPHK4SZ6.mjs +0 -157
- package/dist/chunk-URXZPI2F.mjs +0 -116
- package/dist/chunk-URXZPI2F.mjs.map +0 -1
- package/dist/embed/embed-page-1c-75E4QIWF.js +0 -1
- package/dist/embed/embed-page-AgentDetailSideApp-BVJK7WIS.js +0 -1
- package/dist/embed/embed-page-AgentGovernanceWorkbench-L2YHPRNE.js +0 -5
- package/dist/embed/embed-page-MessageGraph-JOQ46UE2.js +0 -6
- package/dist/embed/embed-page-ReactChart-I5AYTSII.js +0 -1
- package/dist/embed/embed-page-ReactInfographic-IABAC7DO.js +0 -574
- package/dist/embed/embed-page-SkillFlow-YLB5XPFH.js +0 -1
- package/dist/embed/embed-page-TasksSideApp-QLJVB7UK.js +0 -254
- package/dist/embed/embed-page-TeamWorkspace-BZZEAYSB.js +0 -748
- package/dist/embed/embed-page-TopologyRuntimeView-FRA3AXQQ.js +0 -6
- package/dist/embed/embed-page-WorkflowAutomationView-D745PK3W.js +0 -3
- package/dist/embed/embed-page-abap-QKV7XZRP.js +0 -1
- package/dist/embed/embed-page-abnf-534KGIL5.js +0 -1
- package/dist/embed/embed-page-abnf-NNWX7KPS.js +0 -1
- package/dist/embed/embed-page-accesslog-K5DAETBI.js +0 -1
- package/dist/embed/embed-page-actionscript-MLTGVDIY.js +0 -1
- package/dist/embed/embed-page-actionscript-YXZSI3FP.js +0 -1
- package/dist/embed/embed-page-ada-SMIJQ6T7.js +0 -1
- package/dist/embed/embed-page-ada-Z5BYNU6B.js +0 -1
- package/dist/embed/embed-page-agda-WCRTGDJB.js +0 -1
- package/dist/embed/embed-page-al-2LSX2G2U.js +0 -1
- package/dist/embed/embed-page-all-RTJLYZHS.js +0 -1
- package/dist/embed/embed-page-angelscript-4S3XC2EJ.js +0 -1
- package/dist/embed/embed-page-antlr4-OLOPZLHD.js +0 -1
- package/dist/embed/embed-page-apache-RGO2UM6T.js +0 -1
- package/dist/embed/embed-page-apacheconf-EKQ6F4ZQ.js +0 -1
- package/dist/embed/embed-page-apex-ZJTOIW4M.js +0 -1
- package/dist/embed/embed-page-apl-W7YETB5L.js +0 -1
- package/dist/embed/embed-page-applescript-I4PV6U4X.js +0 -1
- package/dist/embed/embed-page-applescript-M2D2KKDY.js +0 -1
- package/dist/embed/embed-page-aql-V6TCDQAH.js +0 -1
- package/dist/embed/embed-page-arcade-TSPLEDM5.js +0 -1
- package/dist/embed/embed-page-architecture-U656AL7Q-55BYHO3H.js +0 -1
- package/dist/embed/embed-page-architectureDiagram-VXUJARFQ-GDHKRBZH.js +0 -36
- package/dist/embed/embed-page-arduino-7N264XVW.js +0 -1
- package/dist/embed/embed-page-arduino-XUEUIP7S.js +0 -1
- package/dist/embed/embed-page-arff-M7PKJV7Y.js +0 -1
- package/dist/embed/embed-page-armasm-OAQGLAMS.js +0 -1
- package/dist/embed/embed-page-armasm-PTMJUNBD.js +0 -1
- package/dist/embed/embed-page-arturo-VYVR5YRA.js +0 -1
- package/dist/embed/embed-page-asciidoc-6GDV5NP4.js +0 -1
- package/dist/embed/embed-page-asciidoc-PDLRDQNM.js +0 -1
- package/dist/embed/embed-page-asm6502-LVC7KLV5.js +0 -1
- package/dist/embed/embed-page-asmatmel-B4D7TBZY.js +0 -1
- package/dist/embed/embed-page-aspectj-QZFNA4MK.js +0 -1
- package/dist/embed/embed-page-aspnet-4JJQ3PPT.js +0 -1
- package/dist/embed/embed-page-autohotkey-4QUCSDML.js +0 -1
- package/dist/embed/embed-page-autohotkey-SVPZNOL7.js +0 -1
- package/dist/embed/embed-page-autoit-IXYC6T6A.js +0 -1
- package/dist/embed/embed-page-autoit-PFZZYGX5.js +0 -1
- package/dist/embed/embed-page-avisynth-MVQJIFSP.js +0 -1
- package/dist/embed/embed-page-avrasm-XYNKWFKC.js +0 -1
- package/dist/embed/embed-page-avro-idl-4AA2QRRU.js +0 -1
- package/dist/embed/embed-page-awk-JNS3RERS.js +0 -1
- package/dist/embed/embed-page-awk-RMGF56MA.js +0 -1
- package/dist/embed/embed-page-axapta-6U5QN2JT.js +0 -1
- package/dist/embed/embed-page-bash-UJJ4GKW6.js +0 -1
- package/dist/embed/embed-page-bash-VYDNQBY7.js +0 -1
- package/dist/embed/embed-page-basic-6KLN4O27.js +0 -1
- package/dist/embed/embed-page-basic-EJRJ7W4E.js +0 -1
- package/dist/embed/embed-page-batch-AJOBLMJ2.js +0 -1
- package/dist/embed/embed-page-bbcode-CIP6MR7G.js +0 -1
- package/dist/embed/embed-page-bbj-OPFURIS3.js +0 -1
- package/dist/embed/embed-page-bicep-7BI3OTK4.js +0 -1
- package/dist/embed/embed-page-birb-LWSJQUWN.js +0 -1
- package/dist/embed/embed-page-bison-HDVOA2OF.js +0 -1
- package/dist/embed/embed-page-blockDiagram-VD42YOAC-6GQBPG3N.js +0 -122
- package/dist/embed/embed-page-bnf-7O24GKM6.js +0 -1
- package/dist/embed/embed-page-bnf-TCLPD45L.js +0 -1
- package/dist/embed/embed-page-bqn-LADFOREK.js +0 -1
- package/dist/embed/embed-page-brainfuck-B2QDW5Y5.js +0 -1
- package/dist/embed/embed-page-brainfuck-HUZY5LJA.js +0 -1
- package/dist/embed/embed-page-brightscript-4E54PL3L.js +0 -1
- package/dist/embed/embed-page-bro-DEBMJONL.js +0 -1
- package/dist/embed/embed-page-bsl-5HTEKAYP.js +0 -1
- package/dist/embed/embed-page-c-LFRMHVS4.js +0 -1
- package/dist/embed/embed-page-c-X5PJHL4T.js +0 -1
- package/dist/embed/embed-page-c-like-UPVRYRH5.js +0 -1
- package/dist/embed/embed-page-c4Diagram-YG6GDRKO-UBUOGTT3.js +0 -10
- package/dist/embed/embed-page-cal-MS5NKCDW.js +0 -1
- package/dist/embed/embed-page-capnproto-VVJPMDQX.js +0 -1
- package/dist/embed/embed-page-ceylon-TOPAPEAZ.js +0 -1
- package/dist/embed/embed-page-cfscript-P3X63VSB.js +0 -1
- package/dist/embed/embed-page-chaiscript-QZLDHGV3.js +0 -1
- package/dist/embed/embed-page-chunk-2AUFZBHG.js +0 -1
- package/dist/embed/embed-page-chunk-2AX46B4A.js +0 -1
- package/dist/embed/embed-page-chunk-2BEHY2KL.js +0 -1
- package/dist/embed/embed-page-chunk-2CM5KQAO.js +0 -1
- package/dist/embed/embed-page-chunk-2GFIRW6Z.js +0 -1
- package/dist/embed/embed-page-chunk-2IURSVR2.js +0 -7
- package/dist/embed/embed-page-chunk-2NLG2PBF.js +0 -1
- package/dist/embed/embed-page-chunk-2SKSDKSN.js +0 -1
- package/dist/embed/embed-page-chunk-2U4LKIE3.js +0 -1
- package/dist/embed/embed-page-chunk-2V6IHON2.js +0 -1
- package/dist/embed/embed-page-chunk-2VJ7T35I.js +0 -1
- package/dist/embed/embed-page-chunk-2WL6TSEG.js +0 -1
- package/dist/embed/embed-page-chunk-33LYY5FY.js +0 -1
- package/dist/embed/embed-page-chunk-37BFU4NL.js +0 -1
- package/dist/embed/embed-page-chunk-3FQ3EELN.js +0 -1
- package/dist/embed/embed-page-chunk-3GRDXHWH.js +0 -1
- package/dist/embed/embed-page-chunk-3GTSDITA.js +0 -1
- package/dist/embed/embed-page-chunk-3MESXVLG.js +0 -1
- package/dist/embed/embed-page-chunk-3WRJEEZS.js +0 -31
- package/dist/embed/embed-page-chunk-3YID7Y73.js +0 -1
- package/dist/embed/embed-page-chunk-47OYOFAD.js +0 -1
- package/dist/embed/embed-page-chunk-4BKXE5ON.js +0 -14
- package/dist/embed/embed-page-chunk-4DT3DP4G.js +0 -3
- package/dist/embed/embed-page-chunk-4FS42IYM.js +0 -1
- package/dist/embed/embed-page-chunk-4JZFQLML.js +0 -1
- package/dist/embed/embed-page-chunk-4MNX7JDW.js +0 -2
- package/dist/embed/embed-page-chunk-4NIWV5BC.js +0 -1
- package/dist/embed/embed-page-chunk-4R5F5OQK.js +0 -1
- package/dist/embed/embed-page-chunk-4TEJCUD5.js +0 -1
- package/dist/embed/embed-page-chunk-4WBAN7QL.js +0 -6890
- package/dist/embed/embed-page-chunk-4WOTSHAW.js +0 -1
- package/dist/embed/embed-page-chunk-4ZIJQUGM.js +0 -1
- package/dist/embed/embed-page-chunk-53PYTL4U.js +0 -1
- package/dist/embed/embed-page-chunk-54DGJLXZ.js +0 -1
- package/dist/embed/embed-page-chunk-57BJJSAV.js +0 -1
- package/dist/embed/embed-page-chunk-5WMGNRUZ.js +0 -79
- package/dist/embed/embed-page-chunk-62XZFSLM.js +0 -1
- package/dist/embed/embed-page-chunk-6433URSF.js +0 -1
- package/dist/embed/embed-page-chunk-664ZGB66.js +0 -1
- package/dist/embed/embed-page-chunk-66PSFC5S.js +0 -1
- package/dist/embed/embed-page-chunk-6A6HYD7S.js +0 -1
- package/dist/embed/embed-page-chunk-6BL2XYV2.js +0 -1
- package/dist/embed/embed-page-chunk-6BUDTOPG.js +0 -54
- package/dist/embed/embed-page-chunk-6D23MLVG.js +0 -1
- package/dist/embed/embed-page-chunk-6FFWZNBJ.js +0 -1
- package/dist/embed/embed-page-chunk-6JFHQ7NQ.js +0 -1
- package/dist/embed/embed-page-chunk-6KCBXVIT.js +0 -60
- package/dist/embed/embed-page-chunk-6QTEF2NW.js +0 -1
- package/dist/embed/embed-page-chunk-6SFPT5PF.js +0 -1
- package/dist/embed/embed-page-chunk-6XZZ6A3N.js +0 -1
- package/dist/embed/embed-page-chunk-6Y3UYJ6Z.js +0 -1
- package/dist/embed/embed-page-chunk-6ZXRL3VU.js +0 -1
- package/dist/embed/embed-page-chunk-74YMVV5T.js +0 -1
- package/dist/embed/embed-page-chunk-76S2KVCN.js +0 -1
- package/dist/embed/embed-page-chunk-7GLQRV3J.js +0 -1
- package/dist/embed/embed-page-chunk-7JBDPIC6.js +0 -1
- package/dist/embed/embed-page-chunk-7KSOII2E.js +0 -1
- package/dist/embed/embed-page-chunk-7MYHMZR7.js +0 -1
- package/dist/embed/embed-page-chunk-7OYMAA4V.js +0 -1
- package/dist/embed/embed-page-chunk-7RPAJAU7.js +0 -1
- package/dist/embed/embed-page-chunk-7TMVQS3E.js +0 -1
- package/dist/embed/embed-page-chunk-7XMMIQFH.js +0 -1
- package/dist/embed/embed-page-chunk-A2QFCP3F.js +0 -1
- package/dist/embed/embed-page-chunk-A2XJ36CA.js +0 -1
- package/dist/embed/embed-page-chunk-ABFWMLOR.js +0 -1
- package/dist/embed/embed-page-chunk-AJPIJ5Q6.js +0 -1
- package/dist/embed/embed-page-chunk-AKPA6XS3.js +0 -2
- package/dist/embed/embed-page-chunk-AQTLXHTW.js +0 -1
- package/dist/embed/embed-page-chunk-AWTS5ZYY.js +0 -1
- package/dist/embed/embed-page-chunk-B43OSKKN.js +0 -1
- package/dist/embed/embed-page-chunk-B6767LVL.js +0 -1
- package/dist/embed/embed-page-chunk-BDE6VTZO.js +0 -1
- package/dist/embed/embed-page-chunk-BEZUVEQG.js +0 -1
- package/dist/embed/embed-page-chunk-BHFBNKCC.js +0 -1
- package/dist/embed/embed-page-chunk-BOBSU3BS.js +0 -1
- package/dist/embed/embed-page-chunk-BOEM7RR2.js +0 -1
- package/dist/embed/embed-page-chunk-BOGY5UJK.js +0 -1
- package/dist/embed/embed-page-chunk-BOQ4YJRC.js +0 -1
- package/dist/embed/embed-page-chunk-BR7RHIPR.js +0 -1
- package/dist/embed/embed-page-chunk-BSHGJSTY.js +0 -1
- package/dist/embed/embed-page-chunk-CCNLQNKX.js +0 -1
- package/dist/embed/embed-page-chunk-CTA4NVOR.js +0 -1
- package/dist/embed/embed-page-chunk-CV7IET55.js +0 -1
- package/dist/embed/embed-page-chunk-CZBGTBTK.js +0 -1
- package/dist/embed/embed-page-chunk-D2R2NSRR.js +0 -1
- package/dist/embed/embed-page-chunk-D5AJQJD5.js +0 -2
- package/dist/embed/embed-page-chunk-D63UWHSO.js +0 -1
- package/dist/embed/embed-page-chunk-D6DA3A6A.js +0 -1
- package/dist/embed/embed-page-chunk-D73UXOFT.js +0 -1
- package/dist/embed/embed-page-chunk-DCS7FNFS.js +0 -1
- package/dist/embed/embed-page-chunk-DDTPPBJY.js +0 -1
- package/dist/embed/embed-page-chunk-DE7BGENS.js +0 -1
- package/dist/embed/embed-page-chunk-DWJV4T7Q.js +0 -1
- package/dist/embed/embed-page-chunk-E7MYEYS3.js +0 -1
- package/dist/embed/embed-page-chunk-EAFE4NIS.js +0 -1
- package/dist/embed/embed-page-chunk-EG5CLCWE.js +0 -1
- package/dist/embed/embed-page-chunk-EKYNYNIX.js +0 -1
- package/dist/embed/embed-page-chunk-ESJEHJ5L.js +0 -140
- package/dist/embed/embed-page-chunk-EWKLGZMO.js +0 -1
- package/dist/embed/embed-page-chunk-EYRF75EG.js +0 -1
- package/dist/embed/embed-page-chunk-EYZS7M3F.js +0 -1
- package/dist/embed/embed-page-chunk-F45LQ3RS.js +0 -1
- package/dist/embed/embed-page-chunk-F7IBVBXT.js +0 -1
- package/dist/embed/embed-page-chunk-FEEJAFK4.js +0 -1
- package/dist/embed/embed-page-chunk-FUIKRW55.js +0 -1
- package/dist/embed/embed-page-chunk-FVMSMU4J.js +0 -242
- package/dist/embed/embed-page-chunk-FWGNJMXD.js +0 -37
- package/dist/embed/embed-page-chunk-FWTICTEC.js +0 -1
- package/dist/embed/embed-page-chunk-FWXSX2W4.js +0 -1
- package/dist/embed/embed-page-chunk-FZRTVFHF.js +0 -525
- package/dist/embed/embed-page-chunk-GH22I3LG.js +0 -1
- package/dist/embed/embed-page-chunk-GJCMO4YN.js +0 -1
- package/dist/embed/embed-page-chunk-GL7A7IDD.js +0 -1
- package/dist/embed/embed-page-chunk-GNEIDEFX.js +0 -1
- package/dist/embed/embed-page-chunk-GVZMVAXF.js +0 -70
- package/dist/embed/embed-page-chunk-GZBFDD4Y.js +0 -1
- package/dist/embed/embed-page-chunk-H3NYTZT4.js +0 -3
- package/dist/embed/embed-page-chunk-H7CZ6EXN.js +0 -1
- package/dist/embed/embed-page-chunk-HD5CA5Q2.js +0 -1
- package/dist/embed/embed-page-chunk-HDAHRUIT.js +0 -1
- package/dist/embed/embed-page-chunk-HGSQ4AUI.js +0 -1
- package/dist/embed/embed-page-chunk-HTEALTO4.js +0 -1
- package/dist/embed/embed-page-chunk-HUKTQVZB.js +0 -1
- package/dist/embed/embed-page-chunk-I2JNPKJK.js +0 -1
- package/dist/embed/embed-page-chunk-I4BCBOUA.js +0 -1
- package/dist/embed/embed-page-chunk-I55FBKLU.js +0 -3
- package/dist/embed/embed-page-chunk-I7YQ2TGZ.js +0 -1
- package/dist/embed/embed-page-chunk-IDJWNYLR.js +0 -1
- package/dist/embed/embed-page-chunk-IE6O7ZMQ.js +0 -15
- package/dist/embed/embed-page-chunk-IFCJLAOB.js +0 -1
- package/dist/embed/embed-page-chunk-IGIFLYCQ.js +0 -1
- package/dist/embed/embed-page-chunk-IT5VM3N7.js +0 -1
- package/dist/embed/embed-page-chunk-IX4WLWCY.js +0 -28
- package/dist/embed/embed-page-chunk-IZ6ZGFSG.js +0 -1
- package/dist/embed/embed-page-chunk-JFK56NZW.js +0 -1
- package/dist/embed/embed-page-chunk-JQQ6C3ST.js +0 -1
- package/dist/embed/embed-page-chunk-K2NBNWDK.js +0 -1
- package/dist/embed/embed-page-chunk-K5YYUAPL.js +0 -153
- package/dist/embed/embed-page-chunk-K7JAB46X.js +0 -1
- package/dist/embed/embed-page-chunk-KE32OJIP.js +0 -1
- package/dist/embed/embed-page-chunk-KEKB3BUG.js +0 -1
- package/dist/embed/embed-page-chunk-KW44NUT4.js +0 -1
- package/dist/embed/embed-page-chunk-KWRAXHKX.js +0 -1
- package/dist/embed/embed-page-chunk-L2QFIJ4P.js +0 -1
- package/dist/embed/embed-page-chunk-L6GX525D.js +0 -1
- package/dist/embed/embed-page-chunk-LEAHYMKH.js +0 -1
- package/dist/embed/embed-page-chunk-LIJVWBYO.js +0 -1
- package/dist/embed/embed-page-chunk-LJZ2VDC6.js +0 -1
- package/dist/embed/embed-page-chunk-LKBECLX2.js +0 -1
- package/dist/embed/embed-page-chunk-M2PV36MX.js +0 -2
- package/dist/embed/embed-page-chunk-MASNBRHM.js +0 -1
- package/dist/embed/embed-page-chunk-MB65DZAX.js +0 -14
- package/dist/embed/embed-page-chunk-MB77ZI4D.js +0 -1
- package/dist/embed/embed-page-chunk-MG5LALIS.js +0 -1
- package/dist/embed/embed-page-chunk-MHSEFTKR.js +0 -1
- package/dist/embed/embed-page-chunk-MKV2QNSI.js +0 -1
- package/dist/embed/embed-page-chunk-MMHCEL7E.js +0 -1
- package/dist/embed/embed-page-chunk-MMXDBRLY.js +0 -1
- package/dist/embed/embed-page-chunk-MSYFW3OJ.js +0 -1
- package/dist/embed/embed-page-chunk-MVLHDASB.js +0 -1
- package/dist/embed/embed-page-chunk-NJP7LGPJ.js +0 -1
- package/dist/embed/embed-page-chunk-NLZ6F3ON.js +0 -1
- package/dist/embed/embed-page-chunk-NN7VEJ2G.js +0 -1
- package/dist/embed/embed-page-chunk-NOMBKADH.js +0 -1
- package/dist/embed/embed-page-chunk-NQRVVPLU.js +0 -1
- package/dist/embed/embed-page-chunk-O2YMBFJK.js +0 -1
- package/dist/embed/embed-page-chunk-OCFVEAMV.js +0 -1
- package/dist/embed/embed-page-chunk-OF6SGGWX.js +0 -1
- package/dist/embed/embed-page-chunk-OK6DC5YX.js +0 -1
- package/dist/embed/embed-page-chunk-ONN5O5BX.js +0 -5
- package/dist/embed/embed-page-chunk-ONZ74YHS.js +0 -1
- package/dist/embed/embed-page-chunk-OOZDPBUK.js +0 -69
- package/dist/embed/embed-page-chunk-OWTE7YMF.js +0 -1
- package/dist/embed/embed-page-chunk-OZKVHTL6.js +0 -1
- package/dist/embed/embed-page-chunk-P4MXODKA.js +0 -1
- package/dist/embed/embed-page-chunk-P56KTNVT.js +0 -1
- package/dist/embed/embed-page-chunk-P5PFV3N7.js +0 -3
- package/dist/embed/embed-page-chunk-PADSMXWH.js +0 -3
- package/dist/embed/embed-page-chunk-PHVA2KHO.js +0 -1
- package/dist/embed/embed-page-chunk-PRYNHKKK.js +0 -1
- package/dist/embed/embed-page-chunk-PSTS2K7H.js +0 -1
- package/dist/embed/embed-page-chunk-PVOA7ARZ.js +0 -1
- package/dist/embed/embed-page-chunk-Q2HL7S3R.js +0 -41
- package/dist/embed/embed-page-chunk-Q2LWO44N.js +0 -1
- package/dist/embed/embed-page-chunk-Q4NFAO5G.js +0 -1
- package/dist/embed/embed-page-chunk-QA2R2R55.js +0 -165
- package/dist/embed/embed-page-chunk-QBSFVKIB.js +0 -1
- package/dist/embed/embed-page-chunk-QCLLEPYT.js +0 -1
- package/dist/embed/embed-page-chunk-QDBK4ZDE.js +0 -1
- package/dist/embed/embed-page-chunk-QENDQ7H3.js +0 -1
- package/dist/embed/embed-page-chunk-QF7NBK3B.js +0 -1
- package/dist/embed/embed-page-chunk-QFTY233A.js +0 -1
- package/dist/embed/embed-page-chunk-QIJBDPZP.js +0 -1
- package/dist/embed/embed-page-chunk-QQLF4AV6.js +0 -1
- package/dist/embed/embed-page-chunk-QRKEL65F.js +0 -1
- package/dist/embed/embed-page-chunk-R2BGZIR7.js +0 -1
- package/dist/embed/embed-page-chunk-R4FTAO2H.js +0 -1
- package/dist/embed/embed-page-chunk-RABAC5H3.js +0 -1
- package/dist/embed/embed-page-chunk-RG3BI65W.js +0 -1
- package/dist/embed/embed-page-chunk-RKPK7MLC.js +0 -1
- package/dist/embed/embed-page-chunk-RUOFG3OD.js +0 -1
- package/dist/embed/embed-page-chunk-RV2IAP52.js +0 -1
- package/dist/embed/embed-page-chunk-RXLB27EG.js +0 -1
- package/dist/embed/embed-page-chunk-SEH5ZYHX.js +0 -1
- package/dist/embed/embed-page-chunk-SRW4AAQ4.js +0 -1
- package/dist/embed/embed-page-chunk-T4AZ556W.js +0 -1
- package/dist/embed/embed-page-chunk-TAOVZBLV.js +0 -1
- package/dist/embed/embed-page-chunk-TBRAGK3D.js +0 -1
- package/dist/embed/embed-page-chunk-TKOSVUN2.js +0 -1
- package/dist/embed/embed-page-chunk-TP7772GL.js +0 -1
- package/dist/embed/embed-page-chunk-TPCI3CNJ.js +0 -1
- package/dist/embed/embed-page-chunk-TWDJUUXZ.js +0 -1
- package/dist/embed/embed-page-chunk-TWNAGURL.js +0 -4
- package/dist/embed/embed-page-chunk-U3B5KKSV.js +0 -1
- package/dist/embed/embed-page-chunk-U3YIXQYB.js +0 -1
- package/dist/embed/embed-page-chunk-U7OC25B3.js +0 -1
- package/dist/embed/embed-page-chunk-UCR4ZILJ.js +0 -1
- package/dist/embed/embed-page-chunk-UGBSF5HI.js +0 -1
- package/dist/embed/embed-page-chunk-UPUUWWBK.js +0 -1
- package/dist/embed/embed-page-chunk-V2V73RFB.js +0 -1
- package/dist/embed/embed-page-chunk-VRDH6A7Z.js +0 -1
- package/dist/embed/embed-page-chunk-VTUD3VPX.js +0 -1
- package/dist/embed/embed-page-chunk-VVTZ23LK.js +0 -1
- package/dist/embed/embed-page-chunk-WLZW4FEZ.js +0 -1
- package/dist/embed/embed-page-chunk-WMLR2GQK.js +0 -8
- package/dist/embed/embed-page-chunk-XA4KNRQW.js +0 -1
- package/dist/embed/embed-page-chunk-XIJHCNBW.js +0 -1
- package/dist/embed/embed-page-chunk-XQNO7AN3.js +0 -1
- package/dist/embed/embed-page-chunk-XR3Q4GDZ.js +0 -1
- package/dist/embed/embed-page-chunk-XTMDFHMJ.js +0 -1
- package/dist/embed/embed-page-chunk-XWRBMESB.js +0 -1
- package/dist/embed/embed-page-chunk-XXT7RMBT.js +0 -220
- package/dist/embed/embed-page-chunk-XY5NGMFT.js +0 -1
- package/dist/embed/embed-page-chunk-YFEUMUCL.js +0 -1
- package/dist/embed/embed-page-chunk-YJBX3AFL.js +0 -1
- package/dist/embed/embed-page-chunk-YJZJFCLP.js +0 -1
- package/dist/embed/embed-page-chunk-YLUGLAWD.js +0 -1
- package/dist/embed/embed-page-chunk-YMMUR7L6.js +0 -1
- package/dist/embed/embed-page-chunk-Z6N3GKM5.js +0 -1
- package/dist/embed/embed-page-chunk-Z6PDLQOB.js +0 -1
- package/dist/embed/embed-page-chunk-ZESVZCWO.js +0 -1
- package/dist/embed/embed-page-chunk-ZITVGQ52.js +0 -1
- package/dist/embed/embed-page-chunk-ZQ6WYVOD.js +0 -1
- package/dist/embed/embed-page-cil-ZQIVHSN6.js +0 -1
- package/dist/embed/embed-page-cilkc-AJET62TW.js +0 -1
- package/dist/embed/embed-page-cilkcpp-FRBVBYEF.js +0 -1
- package/dist/embed/embed-page-classDiagram-2ON5EDUG-S5GEC2UC.js +0 -1
- package/dist/embed/embed-page-classDiagram-v2-WZHVMYZB-NL3HKXC3.js +0 -1
- package/dist/embed/embed-page-clean-OPHY52MY.js +0 -1
- package/dist/embed/embed-page-clike-5NRFTOCK.js +0 -1
- package/dist/embed/embed-page-clojure-4GC77VYK.js +0 -1
- package/dist/embed/embed-page-clojure-7B3FI7TH.js +0 -1
- package/dist/embed/embed-page-clojure-repl-56WG27Z3.js +0 -1
- package/dist/embed/embed-page-cmake-F3SKZMUJ.js +0 -1
- package/dist/embed/embed-page-cmake-UIBPQIVG.js +0 -1
- package/dist/embed/embed-page-cobol-7TW6OZHG.js +0 -1
- package/dist/embed/embed-page-code-highlighter-NZBTSABL.js +0 -1
- package/dist/embed/embed-page-coffeescript-BCKZ4N2E.js +0 -1
- package/dist/embed/embed-page-coffeescript-N2ENFNNR.js +0 -1
- package/dist/embed/embed-page-concurnas-MCN7VYPE.js +0 -1
- package/dist/embed/embed-page-cooklang-JSLOQBDM.js +0 -1
- package/dist/embed/embed-page-coq-WH3J7SKF.js +0 -1
- package/dist/embed/embed-page-coq-XRXAXI5X.js +0 -1
- package/dist/embed/embed-page-core-Q6IGWM4Q.js +0 -1
- package/dist/embed/embed-page-core-TQNBW2MM.js +0 -1
- package/dist/embed/embed-page-cos-MP7YM5FO.js +0 -1
- package/dist/embed/embed-page-cose-bilkent-S5V4N54A-KJMAAFJL.js +0 -1
- package/dist/embed/embed-page-cpp-FFAXKUCJ.js +0 -1
- package/dist/embed/embed-page-cpp-PRCT5QAC.js +0 -1
- package/dist/embed/embed-page-crmsh-PF5MF5PC.js +0 -1
- package/dist/embed/embed-page-crystal-GYFU35L2.js +0 -1
- package/dist/embed/embed-page-crystal-W2TOACW4.js +0 -1
- package/dist/embed/embed-page-csharp-DHR2XRZW.js +0 -1
- package/dist/embed/embed-page-csharp-UNF62ZBO.js +0 -1
- package/dist/embed/embed-page-cshtml-G7ML4LE3.js +0 -1
- package/dist/embed/embed-page-csp-UDQUZUZW.js +0 -1
- package/dist/embed/embed-page-csp-YPF3N7BE.js +0 -1
- package/dist/embed/embed-page-css-774MOM42.js +0 -1
- package/dist/embed/embed-page-css-EHGZALYG.js +0 -1
- package/dist/embed/embed-page-css-extras-SI7Q5IJ6.js +0 -1
- package/dist/embed/embed-page-csv-MT4GPPO7.js +0 -1
- package/dist/embed/embed-page-cue-BMTFVAKL.js +0 -1
- package/dist/embed/embed-page-cypher-QDHM3LFO.js +0 -1
- package/dist/embed/embed-page-d-KHBJT5ZU.js +0 -1
- package/dist/embed/embed-page-d-VF7XFFMN.js +0 -1
- package/dist/embed/embed-page-dagre-6UL2VRFP-QSIK5LGS.js +0 -4
- package/dist/embed/embed-page-dart-3L3U2DJ3.js +0 -1
- package/dist/embed/embed-page-dart-6AOCMAXR.js +0 -1
- package/dist/embed/embed-page-dataweave-LNNDNKWG.js +0 -1
- package/dist/embed/embed-page-dax-J2FYUNXR.js +0 -1
- package/dist/embed/embed-page-delphi-T3RKZ33G.js +0 -1
- package/dist/embed/embed-page-dhall-MGZ2X6D6.js +0 -1
- package/dist/embed/embed-page-diagram-PSM6KHXK-PLOM5KG7.js +0 -24
- package/dist/embed/embed-page-diagram-QEK2KX5R-RUNGK25X.js +0 -43
- package/dist/embed/embed-page-diagram-S2PKOQOG-LWDHM5TL.js +0 -24
- package/dist/embed/embed-page-diff-AZNWSOQ3.js +0 -1
- package/dist/embed/embed-page-diff-BYMKQAM5.js +0 -1
- package/dist/embed/embed-page-django-5BVMXLOO.js +0 -1
- package/dist/embed/embed-page-django-OLTKKRJC.js +0 -1
- package/dist/embed/embed-page-dns-LKEA7NVQ.js +0 -1
- package/dist/embed/embed-page-dns-zone-file-MLDJYBWW.js +0 -1
- package/dist/embed/embed-page-docker-7ZWVGIHF.js +0 -1
- package/dist/embed/embed-page-dockerfile-YJABIQ3Q.js +0 -1
- package/dist/embed/embed-page-dos-CZOUXBDN.js +0 -1
- package/dist/embed/embed-page-dot-USOBKZIN.js +0 -1
- package/dist/embed/embed-page-dsconfig-5E37MQM4.js +0 -1
- package/dist/embed/embed-page-dts-DPBFPVA5.js +0 -1
- package/dist/embed/embed-page-dust-OAZ4NEIP.js +0 -1
- package/dist/embed/embed-page-ebnf-XFC6NV6I.js +0 -1
- package/dist/embed/embed-page-ebnf-XSYP4JUB.js +0 -1
- package/dist/embed/embed-page-echarts-7KZDMH4F.js +0 -1
- package/dist/embed/embed-page-editorconfig-FQHUYGTR.js +0 -1
- package/dist/embed/embed-page-eiffel-Z22STSPG.js +0 -1
- package/dist/embed/embed-page-ejs-VHHMOK6Y.js +0 -1
- package/dist/embed/embed-page-elixir-BGO72I74.js +0 -1
- package/dist/embed/embed-page-elixir-H3KPRECP.js +0 -1
- package/dist/embed/embed-page-elm-HZWFYFUN.js +0 -1
- package/dist/embed/embed-page-elm-IZAWNYFC.js +0 -1
- package/dist/embed/embed-page-erDiagram-Q2GNP2WA-C6CZYEPF.js +0 -60
- package/dist/embed/embed-page-erb-AK646PXX.js +0 -1
- package/dist/embed/embed-page-erb-YBV2NO4W.js +0 -1
- package/dist/embed/embed-page-erlang-6LMYF4BN.js +0 -1
- package/dist/embed/embed-page-erlang-PXGHX7XB.js +0 -1
- package/dist/embed/embed-page-erlang-repl-UJPNMOCE.js +0 -1
- package/dist/embed/embed-page-etlua-XNKJ7UTQ.js +0 -1
- package/dist/embed/embed-page-excel-PCWQ5ZDK.js +0 -1
- package/dist/embed/embed-page-excel-formula-CEZ7KVDN.js +0 -1
- package/dist/embed/embed-page-factor-3PZO4CCJ.js +0 -1
- package/dist/embed/embed-page-false-OX3DNOF4.js +0 -1
- package/dist/embed/embed-page-firestore-security-rules-IQBOB7PZ.js +0 -1
- package/dist/embed/embed-page-fix-Q3F7Z2HQ.js +0 -1
- package/dist/embed/embed-page-flix-LVDGNPRS.js +0 -1
- package/dist/embed/embed-page-flow-4UPRJEF2.js +0 -1
- package/dist/embed/embed-page-flowDiagram-NV44I4VS-DLT3KEOP.js +0 -162
- package/dist/embed/embed-page-fortran-65P3TPQ7.js +0 -1
- package/dist/embed/embed-page-fortran-LWYFHCCB.js +0 -1
- package/dist/embed/embed-page-fsharp-BSA736XP.js +0 -1
- package/dist/embed/embed-page-fsharp-GDIVPYAB.js +0 -1
- package/dist/embed/embed-page-ftl-27Y3T2XT.js +0 -1
- package/dist/embed/embed-page-gams-7UM23CTD.js +0 -1
- package/dist/embed/embed-page-ganttDiagram-JELNMOA3-YXTLQI5X.js +0 -267
- package/dist/embed/embed-page-gap-JNDMTZYG.js +0 -1
- package/dist/embed/embed-page-gauss-4OCQQOQQ.js +0 -1
- package/dist/embed/embed-page-gcode-7ZDB2FDS.js +0 -1
- package/dist/embed/embed-page-gcode-U2UWK2IF.js +0 -1
- package/dist/embed/embed-page-gdscript-UOAGAMMO.js +0 -1
- package/dist/embed/embed-page-gedcom-WSTJUY6R.js +0 -1
- package/dist/embed/embed-page-gettext-BNGNGT6W.js +0 -1
- package/dist/embed/embed-page-gherkin-CPRNYA24.js +0 -1
- package/dist/embed/embed-page-gherkin-IVS5YUAH.js +0 -1
- package/dist/embed/embed-page-git-WWKMYMUR.js +0 -1
- package/dist/embed/embed-page-gitGraph-F6HP7TQM-AT36TKLZ.js +0 -1
- package/dist/embed/embed-page-gitGraphDiagram-NY62KEGX-U36ULO4Y.js +0 -65
- package/dist/embed/embed-page-glsl-2QJTMF6X.js +0 -1
- package/dist/embed/embed-page-glsl-6C6F26XK.js +0 -1
- package/dist/embed/embed-page-gml-67HHHYLB.js +0 -1
- package/dist/embed/embed-page-gml-ZFY32X23.js +0 -1
- package/dist/embed/embed-page-gn-KO2XPJDA.js +0 -1
- package/dist/embed/embed-page-go-HAQ77N2R.js +0 -1
- package/dist/embed/embed-page-go-SYFPAV4X.js +0 -1
- package/dist/embed/embed-page-go-module-XICPRQ5N.js +0 -1
- package/dist/embed/embed-page-golo-KQZ2PQG7.js +0 -1
- package/dist/embed/embed-page-gradle-7PN7DUJT.js +0 -1
- package/dist/embed/embed-page-gradle-GN34ZONG.js +0 -1
- package/dist/embed/embed-page-graphql-CVSK5MA2.js +0 -1
- package/dist/embed/embed-page-groovy-3R2X7GQD.js +0 -1
- package/dist/embed/embed-page-groovy-YCAJV7XB.js +0 -1
- package/dist/embed/embed-page-haml-6VEPXH2O.js +0 -1
- package/dist/embed/embed-page-haml-TYLXIXHD.js +0 -1
- package/dist/embed/embed-page-handlebars-7Y74ECRG.js +0 -1
- package/dist/embed/embed-page-handlebars-WVRARLIY.js +0 -1
- package/dist/embed/embed-page-haskell-7U743UEW.js +0 -1
- package/dist/embed/embed-page-haskell-BATAJHBH.js +0 -1
- package/dist/embed/embed-page-haxe-C234CZTQ.js +0 -1
- package/dist/embed/embed-page-haxe-PYBC3T4M.js +0 -1
- package/dist/embed/embed-page-hcl-BITT4ESF.js +0 -1
- package/dist/embed/embed-page-hlsl-KYOSJMB5.js +0 -1
- package/dist/embed/embed-page-hoon-NTFQ2YYJ.js +0 -1
- package/dist/embed/embed-page-hpkp-KN6XKLGI.js +0 -1
- package/dist/embed/embed-page-hsp-QFZDPSDA.js +0 -1
- package/dist/embed/embed-page-hsts-5COZ5S32.js +0 -1
- package/dist/embed/embed-page-html2canvas-HMTC4TFR.js +0 -1
- package/dist/embed/embed-page-htmlbars-L7NSSG62.js +0 -1
- package/dist/embed/embed-page-http-ALSJXSOJ.js +0 -1
- package/dist/embed/embed-page-http-E4UEITFW.js +0 -1
- package/dist/embed/embed-page-hy-5ROLZHNZ.js +0 -1
- package/dist/embed/embed-page-ichigojam-T6UG6OA7.js +0 -1
- package/dist/embed/embed-page-icon-74CJY73I.js +0 -1
- package/dist/embed/embed-page-icu-message-format-2RX6DV2B.js +0 -1
- package/dist/embed/embed-page-idris-OH6VYNRJ.js +0 -1
- package/dist/embed/embed-page-iecst-SJFFJ4PC.js +0 -1
- package/dist/embed/embed-page-ignore-QLXHF7QX.js +0 -1
- package/dist/embed/embed-page-index.es-N6YIYNKZ.js +0 -23
- package/dist/embed/embed-page-info-NVLQJR56-2XLQRFF4.js +0 -1
- package/dist/embed/embed-page-infoDiagram-WHAUD3N6-2U2VIHJP.js +0 -2
- package/dist/embed/embed-page-inform7-6Y7MAAME.js +0 -1
- package/dist/embed/embed-page-inform7-HZB3RNF4.js +0 -1
- package/dist/embed/embed-page-ini-7C2L4IDF.js +0 -1
- package/dist/embed/embed-page-ini-TMKFFGPD.js +0 -1
- package/dist/embed/embed-page-io-X5SCSO5G.js +0 -1
- package/dist/embed/embed-page-irpf90-A5FIGB26.js +0 -1
- package/dist/embed/embed-page-isbl-Q77V4FXF.js +0 -1
- package/dist/embed/embed-page-j-MA6BTTGA.js +0 -1
- package/dist/embed/embed-page-java-CYPVO64F.js +0 -1
- package/dist/embed/embed-page-java-O37XO6YL.js +0 -1
- package/dist/embed/embed-page-javadoc-LWLUAHHX.js +0 -1
- package/dist/embed/embed-page-javadoclike-BMEJGG2H.js +0 -1
- package/dist/embed/embed-page-javascript-GU26522Z.js +0 -1
- package/dist/embed/embed-page-javascript-M37PIZZC.js +0 -1
- package/dist/embed/embed-page-javastacktrace-ENINDMIF.js +0 -1
- package/dist/embed/embed-page-jboss-cli-Q2WN2KZS.js +0 -1
- package/dist/embed/embed-page-jexl-EU2C4LRG.js +0 -1
- package/dist/embed/embed-page-jolie-WJIQVPRR.js +0 -1
- package/dist/embed/embed-page-journeyDiagram-XKPGCS4Q-D4A2GN62.js +0 -139
- package/dist/embed/embed-page-jq-BRF5PIAN.js +0 -1
- package/dist/embed/embed-page-js-extras-WQMVOPIZ.js +0 -1
- package/dist/embed/embed-page-js-templates-YO6IJU6R.js +0 -1
- package/dist/embed/embed-page-jsdoc-ZKI7O6VF.js +0 -1
- package/dist/embed/embed-page-json-MRFYB7NT.js +0 -1
- package/dist/embed/embed-page-json-PSHSOWQY.js +0 -1
- package/dist/embed/embed-page-json5-VQKDKRNE.js +0 -1
- package/dist/embed/embed-page-jsonp-ANEJBBKD.js +0 -1
- package/dist/embed/embed-page-jsstacktrace-XYAXX4Z3.js +0 -1
- package/dist/embed/embed-page-jsx-FZEE3QI5.js +0 -1
- package/dist/embed/embed-page-julia-5W6JANPT.js +0 -1
- package/dist/embed/embed-page-julia-EY2DW2U2.js +0 -1
- package/dist/embed/embed-page-julia-repl-O5XO6CSL.js +0 -1
- package/dist/embed/embed-page-kanban-definition-3W4ZIXB7-5JTDNV4G.js +0 -89
- package/dist/embed/embed-page-katex-BO63LHUI.js +0 -261
- package/dist/embed/embed-page-keepalived-OPG3P3WJ.js +0 -1
- package/dist/embed/embed-page-keyman-CXJENJBT.js +0 -1
- package/dist/embed/embed-page-kotlin-62Q32YH3.js +0 -1
- package/dist/embed/embed-page-kotlin-V4IBLBDP.js +0 -1
- package/dist/embed/embed-page-kumir-TIJGTYC3.js +0 -1
- package/dist/embed/embed-page-kusto-BXI53DND.js +0 -1
- package/dist/embed/embed-page-lasso-2CPND7XH.js +0 -1
- package/dist/embed/embed-page-latex-F3X5K6QF.js +0 -1
- package/dist/embed/embed-page-latex-MVG52AHA.js +0 -1
- package/dist/embed/embed-page-latte-J3LVOB6S.js +0 -1
- package/dist/embed/embed-page-ldif-5OWTENAQ.js +0 -1
- package/dist/embed/embed-page-leaf-EYR425IG.js +0 -1
- package/dist/embed/embed-page-less-S6CBMQQZ.js +0 -1
- package/dist/embed/embed-page-less-WDPLNQ5B.js +0 -1
- package/dist/embed/embed-page-lilypond-IJV67NKP.js +0 -1
- package/dist/embed/embed-page-linker-script-MIX3HOEH.js +0 -1
- package/dist/embed/embed-page-liquid-CFWS6T2J.js +0 -1
- package/dist/embed/embed-page-lisp-C6XPBZ5U.js +0 -1
- package/dist/embed/embed-page-lisp-IM4ILKS7.js +0 -1
- package/dist/embed/embed-page-livecodeserver-6F3SUK5W.js +0 -1
- package/dist/embed/embed-page-livescript-GNIYPIHH.js +0 -1
- package/dist/embed/embed-page-livescript-HOLSYBIG.js +0 -1
- package/dist/embed/embed-page-llvm-IWL5DLNH.js +0 -1
- package/dist/embed/embed-page-llvm-K2USHCCC.js +0 -1
- package/dist/embed/embed-page-log-BLJX5RSC.js +0 -1
- package/dist/embed/embed-page-lolcode-6COIIRQ6.js +0 -1
- package/dist/embed/embed-page-lsl-KDZSWM6S.js +0 -1
- package/dist/embed/embed-page-lua-5KEV5KHK.js +0 -1
- package/dist/embed/embed-page-lua-F7VBLUI5.js +0 -1
- package/dist/embed/embed-page-magma-TTQUX26J.js +0 -1
- package/dist/embed/embed-page-makefile-4VQZE7FW.js +0 -1
- package/dist/embed/embed-page-makefile-LDN5QGHW.js +0 -1
- package/dist/embed/embed-page-markdown-GU3NFA6A.js +0 -1
- package/dist/embed/embed-page-markdown-ODPEZXUU.js +0 -1
- package/dist/embed/embed-page-markup-W6JMQ64H.js +0 -1
- package/dist/embed/embed-page-markup-templating-RYGNVTG7.js +0 -1
- package/dist/embed/embed-page-mata-D4O4BNGS.js +0 -1
- package/dist/embed/embed-page-mathematica-YSU2VUX4.js +0 -1
- package/dist/embed/embed-page-matlab-6TYO6LKK.js +0 -1
- package/dist/embed/embed-page-matlab-DCIHZIZM.js +0 -1
- package/dist/embed/embed-page-maxima-K2VWPGLA.js +0 -1
- package/dist/embed/embed-page-maxscript-3ARRWLS6.js +0 -1
- package/dist/embed/embed-page-mel-E3F6H7ZF.js +0 -1
- package/dist/embed/embed-page-mel-YGI273IY.js +0 -1
- package/dist/embed/embed-page-mercury-LXCDDOJN.js +0 -1
- package/dist/embed/embed-page-mermaid-4FMYB3TJ.js +0 -1
- package/dist/embed/embed-page-mermaid-CK4ARQCM.js +0 -18
- package/dist/embed/embed-page-metafont-33QDNLJC.js +0 -1
- package/dist/embed/embed-page-mindmap-definition-VGOIOE7T-LVIRJQDW.js +0 -68
- package/dist/embed/embed-page-mipsasm-HSMSNEPP.js +0 -1
- package/dist/embed/embed-page-mizar-OTR4FHWG.js +0 -1
- package/dist/embed/embed-page-mizar-ZDNSLX4H.js +0 -1
- package/dist/embed/embed-page-mojolicious-2VJDUL4M.js +0 -1
- package/dist/embed/embed-page-mongodb-E62Y62DN.js +0 -1
- package/dist/embed/embed-page-monkey-KOVSP7SE.js +0 -1
- package/dist/embed/embed-page-monkey-MWSXB6DH.js +0 -1
- package/dist/embed/embed-page-moonscript-7DWCIDI5.js +0 -1
- package/dist/embed/embed-page-moonscript-AIMMMW7W.js +0 -1
- package/dist/embed/embed-page-n1ql-TKR2PAQ4.js +0 -1
- package/dist/embed/embed-page-n1ql-VSPMFQEE.js +0 -1
- package/dist/embed/embed-page-n4js-VQSAFSQG.js +0 -1
- package/dist/embed/embed-page-nand2tetris-hdl-ZN4LQDMB.js +0 -1
- package/dist/embed/embed-page-naniscript-FX42SAZY.js +0 -1
- package/dist/embed/embed-page-nasm-FGR3ELJL.js +0 -1
- package/dist/embed/embed-page-neon-4JXYQJP3.js +0 -1
- package/dist/embed/embed-page-nevod-2EHVRC32.js +0 -1
- package/dist/embed/embed-page-nginx-3W4BPZZB.js +0 -1
- package/dist/embed/embed-page-nginx-672JEBEN.js +0 -1
- package/dist/embed/embed-page-nim-CNSA5KTJ.js +0 -1
- package/dist/embed/embed-page-nim-CS7GVCRH.js +0 -1
- package/dist/embed/embed-page-nix-H37VR2HL.js +0 -1
- package/dist/embed/embed-page-nix-ODG6AI37.js +0 -1
- package/dist/embed/embed-page-node-repl-F5RCYIN3.js +0 -1
- package/dist/embed/embed-page-nsis-LEW5NHHS.js +0 -1
- package/dist/embed/embed-page-nsis-P73IQUMW.js +0 -1
- package/dist/embed/embed-page-objectivec-GOD2BEHI.js +0 -1
- package/dist/embed/embed-page-objectivec-UO34JBT5.js +0 -1
- package/dist/embed/embed-page-ocaml-ODOKMPKS.js +0 -1
- package/dist/embed/embed-page-ocaml-PW67TSNU.js +0 -1
- package/dist/embed/embed-page-odin-42BCJRMU.js +0 -1
- package/dist/embed/embed-page-opencl-FWU2AVTW.js +0 -1
- package/dist/embed/embed-page-openqasm-D2QQCO47.js +0 -1
- package/dist/embed/embed-page-openscad-LZPRFY2W.js +0 -1
- package/dist/embed/embed-page-oxygene-HZG7OO7G.js +0 -1
- package/dist/embed/embed-page-oz-MQNQCKRU.js +0 -1
- package/dist/embed/embed-page-packet-BFZMPI3H-JUHAABU6.js +0 -1
- package/dist/embed/embed-page-parigp-MAX3X22G.js +0 -1
- package/dist/embed/embed-page-parser-2WFCRGYE.js +0 -1
- package/dist/embed/embed-page-parser3-C3KVU5ZC.js +0 -1
- package/dist/embed/embed-page-pascal-LVXMXCNE.js +0 -1
- package/dist/embed/embed-page-pascaligo-6RIW5OHU.js +0 -1
- package/dist/embed/embed-page-pcaxis-ZO5S5UAO.js +0 -1
- package/dist/embed/embed-page-peoplecode-EAE6M4AF.js +0 -1
- package/dist/embed/embed-page-perl-CAUIKKUT.js +0 -1
- package/dist/embed/embed-page-perl-NCR5YMVT.js +0 -1
- package/dist/embed/embed-page-pf-TXMTVH7H.js +0 -1
- package/dist/embed/embed-page-pgsql-M7L7YRCD.js +0 -1
- package/dist/embed/embed-page-php-IE2N3QI4.js +0 -1
- package/dist/embed/embed-page-php-QCBSAYIC.js +0 -1
- package/dist/embed/embed-page-php-extras-VRZO47SA.js +0 -1
- package/dist/embed/embed-page-php-template-U54UCRKN.js +0 -1
- package/dist/embed/embed-page-phpdoc-ZQWB2OXG.js +0 -1
- package/dist/embed/embed-page-pie-7BOR55EZ-GU56BHQJ.js +0 -1
- package/dist/embed/embed-page-pieDiagram-ADFJNKIX-JXFHXEAJ.js +0 -30
- package/dist/embed/embed-page-plaintext-OINTKMAM.js +0 -1
- package/dist/embed/embed-page-plant-uml-3RVWLPWM.js +0 -1
- package/dist/embed/embed-page-plsql-XQEBXO73.js +0 -1
- package/dist/embed/embed-page-pony-UEK5X7OI.js +0 -1
- package/dist/embed/embed-page-powerquery-DEKKCZY7.js +0 -1
- package/dist/embed/embed-page-powershell-EBW7RZTN.js +0 -1
- package/dist/embed/embed-page-powershell-UMB53SPC.js +0 -1
- package/dist/embed/embed-page-processing-56OIROQG.js +0 -1
- package/dist/embed/embed-page-processing-ZIDQ7SB3.js +0 -1
- package/dist/embed/embed-page-profile-6SSPU7PG.js +0 -1
- package/dist/embed/embed-page-prolog-7JA2UBRP.js +0 -1
- package/dist/embed/embed-page-prolog-L55HYSKT.js +0 -1
- package/dist/embed/embed-page-promql-L4YBO3EF.js +0 -1
- package/dist/embed/embed-page-properties-O3BOEJXJ.js +0 -1
- package/dist/embed/embed-page-properties-VGZTUJ5E.js +0 -1
- package/dist/embed/embed-page-protobuf-F7X2PLJJ.js +0 -1
- package/dist/embed/embed-page-protobuf-GS5HMEMS.js +0 -1
- package/dist/embed/embed-page-psl-HLKSMRWT.js +0 -1
- package/dist/embed/embed-page-pug-MI7HPGUX.js +0 -1
- package/dist/embed/embed-page-puppet-2HD3DPH2.js +0 -1
- package/dist/embed/embed-page-puppet-BRWZHTKL.js +0 -1
- package/dist/embed/embed-page-pure-FVSDVQ2B.js +0 -1
- package/dist/embed/embed-page-purebasic-PPHAGMQH.js +0 -1
- package/dist/embed/embed-page-purebasic-UVZDR2HE.js +0 -1
- package/dist/embed/embed-page-purescript-Q3TGKQZY.js +0 -1
- package/dist/embed/embed-page-purify-QTVE4GEG.js +0 -8
- package/dist/embed/embed-page-python-NO3SIOCK.js +0 -1
- package/dist/embed/embed-page-python-YAPGCWHR.js +0 -1
- package/dist/embed/embed-page-python-repl-EIGKWV4T.js +0 -1
- package/dist/embed/embed-page-q-5YCCZLRO.js +0 -1
- package/dist/embed/embed-page-q-FWJ5L5RH.js +0 -1
- package/dist/embed/embed-page-qml-PNZK27ST.js +0 -1
- package/dist/embed/embed-page-qml-YVZULPLY.js +0 -1
- package/dist/embed/embed-page-qore-QU7W2FQD.js +0 -1
- package/dist/embed/embed-page-qsharp-FNGNB3PK.js +0 -1
- package/dist/embed/embed-page-quadrantDiagram-AYHSOK5B-4BXTDPJ4.js +0 -7
- package/dist/embed/embed-page-r-52DQANKK.js +0 -1
- package/dist/embed/embed-page-r-B2QMYOFX.js +0 -1
- package/dist/embed/embed-page-racket-OA22GPFB.js +0 -1
- package/dist/embed/embed-page-radar-NHE76QYJ-A7QQXLRI.js +0 -1
- package/dist/embed/embed-page-reason-QQ4RYUQI.js +0 -1
- package/dist/embed/embed-page-reasonml-CQAWSREB.js +0 -1
- package/dist/embed/embed-page-regex-5JJLL4V6.js +0 -1
- package/dist/embed/embed-page-rego-OLGGN4OK.js +0 -1
- package/dist/embed/embed-page-renpy-72F6BTO6.js +0 -1
- package/dist/embed/embed-page-requirementDiagram-UZGBJVZJ-WA3XXOP7.js +0 -64
- package/dist/embed/embed-page-rescript-VYN4PAG7.js +0 -1
- package/dist/embed/embed-page-rest-YZNSQW6O.js +0 -1
- package/dist/embed/embed-page-rib-U4ELGIV2.js +0 -1
- package/dist/embed/embed-page-rip-ZA4CVYFN.js +0 -1
- package/dist/embed/embed-page-roboconf-5IGYRDNH.js +0 -1
- package/dist/embed/embed-page-roboconf-HKSGWVI6.js +0 -1
- package/dist/embed/embed-page-robotframework-ARNA4YNR.js +0 -1
- package/dist/embed/embed-page-routeros-DKQKHPKR.js +0 -1
- package/dist/embed/embed-page-rsl-WZYNFUWJ.js +0 -1
- package/dist/embed/embed-page-ruby-DLLZKK7A.js +0 -1
- package/dist/embed/embed-page-ruby-TKJZO362.js +0 -1
- package/dist/embed/embed-page-ruleslanguage-7CSB4CWD.js +0 -1
- package/dist/embed/embed-page-rust-6JUJCSHC.js +0 -1
- package/dist/embed/embed-page-rust-ZZUD5RKM.js +0 -1
- package/dist/embed/embed-page-sankeyDiagram-TZEHDZUN-SAVUI2Q4.js +0 -10
- package/dist/embed/embed-page-sas-6H3LYHVP.js +0 -1
- package/dist/embed/embed-page-sas-EUBD2V4Z.js +0 -1
- package/dist/embed/embed-page-sass-U6G7R7AZ.js +0 -1
- package/dist/embed/embed-page-scala-HFYNBK2U.js +0 -1
- package/dist/embed/embed-page-scala-OJM3677P.js +0 -1
- package/dist/embed/embed-page-scheme-KBT7Z3ND.js +0 -1
- package/dist/embed/embed-page-scheme-QQ2VPTFQ.js +0 -1
- package/dist/embed/embed-page-scilab-LA3HLVKQ.js +0 -1
- package/dist/embed/embed-page-scss-FDEUPWYR.js +0 -1
- package/dist/embed/embed-page-scss-IH2AODYU.js +0 -1
- package/dist/embed/embed-page-sequenceDiagram-WL72ISMW-C2QRTOTL.js +0 -145
- package/dist/embed/embed-page-shell-O7OU7Y7F.js +0 -1
- package/dist/embed/embed-page-shell-session-CPCKA76Q.js +0 -1
- package/dist/embed/embed-page-smali-3HHDEBNE.js +0 -1
- package/dist/embed/embed-page-smali-L7H7BQUY.js +0 -1
- package/dist/embed/embed-page-smalltalk-KQLA6XRI.js +0 -1
- package/dist/embed/embed-page-smalltalk-WMM37MR4.js +0 -1
- package/dist/embed/embed-page-smarty-AF5LZRHA.js +0 -1
- package/dist/embed/embed-page-sml-4ARWLXZU.js +0 -1
- package/dist/embed/embed-page-sml-6BNN3PMR.js +0 -1
- package/dist/embed/embed-page-solidity-5WL56MR7.js +0 -1
- package/dist/embed/embed-page-solution-file-FJJU2R2L.js +0 -1
- package/dist/embed/embed-page-soy-54PPSPCO.js +0 -1
- package/dist/embed/embed-page-sparql-AC7LG2EE.js +0 -1
- package/dist/embed/embed-page-splunk-spl-YBP24JOS.js +0 -1
- package/dist/embed/embed-page-sqf-4E5P576B.js +0 -1
- package/dist/embed/embed-page-sqf-CSHANDQB.js +0 -1
- package/dist/embed/embed-page-sql-MGWNK6FE.js +0 -1
- package/dist/embed/embed-page-sql-ZOJORZUC.js +0 -1
- package/dist/embed/embed-page-sql_more-NACOUKSZ.js +0 -1
- package/dist/embed/embed-page-squirrel-XG35KUR2.js +0 -1
- package/dist/embed/embed-page-stan-GDB32LYB.js +0 -1
- package/dist/embed/embed-page-stan-UJ7WCNJT.js +0 -1
- package/dist/embed/embed-page-stata-DEQ57OIC.js +0 -1
- package/dist/embed/embed-page-stata-WJUFDMUW.js +0 -1
- package/dist/embed/embed-page-stateDiagram-FKZM4ZOC-6LDVHEHS.js +0 -1
- package/dist/embed/embed-page-stateDiagram-v2-4FDKWEC3-UJYGEYF5.js +0 -1
- package/dist/embed/embed-page-step21-6AYDKM5N.js +0 -1
- package/dist/embed/embed-page-stylus-CFL6FZN3.js +0 -1
- package/dist/embed/embed-page-stylus-MLEF22IY.js +0 -1
- package/dist/embed/embed-page-subunit-OZQ2HNNA.js +0 -1
- package/dist/embed/embed-page-supercollider-ZK2ECEDQ.js +0 -1
- package/dist/embed/embed-page-swift-MNLMKF5F.js +0 -1
- package/dist/embed/embed-page-swift-UJP2CPA4.js +0 -1
- package/dist/embed/embed-page-systemd-DQXTIGWD.js +0 -1
- package/dist/embed/embed-page-t4-cs-ZPHNHWPR.js +0 -1
- package/dist/embed/embed-page-t4-templating-OA7FNPXM.js +0 -1
- package/dist/embed/embed-page-t4-vb-XBX2HBI5.js +0 -1
- package/dist/embed/embed-page-taggerscript-XVALJYA3.js +0 -1
- package/dist/embed/embed-page-tap-EMOHKH5F.js +0 -1
- package/dist/embed/embed-page-tap-HZHER7FY.js +0 -1
- package/dist/embed/embed-page-tcl-GN4WSRHR.js +0 -1
- package/dist/embed/embed-page-tcl-T3WWKS3Q.js +0 -1
- package/dist/embed/embed-page-textile-OXFYF2DV.js +0 -1
- package/dist/embed/embed-page-thrift-Q26IKVBC.js +0 -1
- package/dist/embed/embed-page-timeline-definition-IT6M3QCI-OF6FTGVN.js +0 -61
- package/dist/embed/embed-page-toml-ZVNI7WJB.js +0 -1
- package/dist/embed/embed-page-tp-24NWOAQZ.js +0 -1
- package/dist/embed/embed-page-treemap-KMMF4GRG-HPTV3SYE.js +0 -1
- package/dist/embed/embed-page-tremor-443PBNWC.js +0 -1
- package/dist/embed/embed-page-tsx-PX2Z4GDU.js +0 -1
- package/dist/embed/embed-page-tt2-L43LNTGL.js +0 -1
- package/dist/embed/embed-page-turtle-IXYYTHLU.js +0 -1
- package/dist/embed/embed-page-twig-MZBQAWRC.js +0 -1
- package/dist/embed/embed-page-twig-WSAAZNH3.js +0 -1
- package/dist/embed/embed-page-typescript-5UWO3Y3K.js +0 -1
- package/dist/embed/embed-page-typescript-BPIRCQG7.js +0 -1
- package/dist/embed/embed-page-typoscript-UUKPTXPH.js +0 -1
- package/dist/embed/embed-page-unrealscript-G2VHZRFN.js +0 -1
- package/dist/embed/embed-page-uorazor-WYGVL7PT.js +0 -1
- package/dist/embed/embed-page-uri-NRWWZBB7.js +0 -1
- package/dist/embed/embed-page-v-LKVTPKDV.js +0 -1
- package/dist/embed/embed-page-vala-EL5BNKYD.js +0 -1
- package/dist/embed/embed-page-vala-MLIRE3PS.js +0 -1
- package/dist/embed/embed-page-vbnet-5JKSIZ56.js +0 -1
- package/dist/embed/embed-page-vbnet-KOGX2JTL.js +0 -1
- package/dist/embed/embed-page-vbscript-637T6GXI.js +0 -1
- package/dist/embed/embed-page-vbscript-html-YKWMMXG4.js +0 -1
- package/dist/embed/embed-page-velocity-7Q63BBW2.js +0 -1
- package/dist/embed/embed-page-verilog-B6EWQWMJ.js +0 -1
- package/dist/embed/embed-page-verilog-G566LGG4.js +0 -1
- package/dist/embed/embed-page-vhdl-R5JIOJNH.js +0 -1
- package/dist/embed/embed-page-vhdl-RMOYZXLG.js +0 -1
- package/dist/embed/embed-page-vim-47Q56RS4.js +0 -1
- package/dist/embed/embed-page-vim-KBCAYMER.js +0 -1
- package/dist/embed/embed-page-visual-basic-ZYE5FD6G.js +0 -1
- package/dist/embed/embed-page-warpscript-65UOMFFU.js +0 -1
- package/dist/embed/embed-page-wasm-MSBGNWUM.js +0 -1
- package/dist/embed/embed-page-web-idl-7WW5RGOI.js +0 -1
- package/dist/embed/embed-page-wgsl-FG3PI6M7.js +0 -1
- package/dist/embed/embed-page-wiki-DGVS4GPN.js +0 -1
- package/dist/embed/embed-page-wolfram-MOURXWVE.js +0 -1
- package/dist/embed/embed-page-wren-PYL5ZRVR.js +0 -1
- package/dist/embed/embed-page-x86asm-WQ6M3VHZ.js +0 -1
- package/dist/embed/embed-page-xeora-JSPZIDKL.js +0 -1
- package/dist/embed/embed-page-xl-DTY4E7YS.js +0 -1
- package/dist/embed/embed-page-xml-P5QA5BKM.js +0 -1
- package/dist/embed/embed-page-xml-doc-VAJOIYSW.js +0 -1
- package/dist/embed/embed-page-xojo-L2PDU7MC.js +0 -1
- package/dist/embed/embed-page-xquery-EWBQ7NVP.js +0 -1
- package/dist/embed/embed-page-xquery-RUKMMBO2.js +0 -1
- package/dist/embed/embed-page-xychartDiagram-PRI3JC2R-EWLR5Z3I.js +0 -7
- package/dist/embed/embed-page-yaml-76KRB6BP.js +0 -1
- package/dist/embed/embed-page-yaml-RR5MLWRK.js +0 -1
- package/dist/embed/embed-page-yang-J62Y5RPD.js +0 -1
- package/dist/embed/embed-page-zephir-OIOOQGNI.js +0 -1
- package/dist/embed/embed-page-zig-75SL5ZWR.js +0 -1
- package/dist/open-UVKMONVE.mjs +0 -346
- package/dist/open-exposure-27ESFWTB.mjs +0 -97
- package/dist/open-files-X3HXVEEM.mjs +0 -146
- package/dist/sandboxProvider-DUYWHYJN.mjs +0 -10
- /package/dist/{chunk-NPHK4SZ6.mjs.map → chunk-FGSFOXIX.mjs.map} +0 -0
- /package/dist/{open-UVKMONVE.mjs.map → open-FJ3BY3CL.mjs.map} +0 -0
- /package/dist/{open-exposure-27ESFWTB.mjs.map → open-exposure-OX5NKWDG.mjs.map} +0 -0
- /package/dist/{open-files-X3HXVEEM.mjs.map → open-files-V3R2BFTV.mjs.map} +0 -0
- /package/dist/{sandboxProvider-DUYWHYJN.mjs.map → sandboxProvider-FILMFVIM.mjs.map} +0 -0
|
@@ -1,574 +0,0 @@
|
|
|
1
|
-
import{a as a1,b as c1,d as Bl,n as l1}from"./embed-page-chunk-V7R2Y72J.js";import{a as s1}from"./embed-page-chunk-7TH7FFVA.js";import{q as Dl}from"./embed-page-chunk-IJPRKD63.js";import{B as gi,C as n1,D as i1,E as o1,f as t1,g as r1,k as gn}from"./embed-page-chunk-DM5ESF6C.js";import{a as Kg,b as Zg,c as Qg,d as Jg,e as e1}from"./embed-page-chunk-SV2BM3WO.js";import"./embed-page-chunk-S4XZPBRM.js";import{j as Ss}from"./embed-page-chunk-IGOT476M.js";import"./embed-page-chunk-QLA2XU73.js";import"./embed-page-chunk-IRP2UOPH.js";import{a as Ug}from"./embed-page-chunk-MB65DZAX.js";import{a as z9}from"./embed-page-chunk-4BKXE5ON.js";import{b as Vg,c as $9,e as Mo}from"./embed-page-chunk-6Y3UYJ6Z.js";var f9=Vg((k4e,d9)=>{"use strict";var u9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;d9.exports=function(e,t){t=t||{};var r=1,n=1;function i(k){var R=k.match(/\n/g);R&&(r+=R.length);var G=k.lastIndexOf(`
|
|
2
|
-
`);n=~G?k.length-G:n+k.length}function o(){var k={line:r,column:n};return function(R){return R.position=new s(k),x(),R}}function s(k){this.start=k,this.end={line:r,column:n},this.source=t.source}s.prototype.content=e;var a=[];function c(k){var R=new Error(t.source+":"+r+":"+n+": "+k);if(R.reason=k,R.filename=t.source,R.line=r,R.column=n,R.source=e,t.silent)a.push(R);else throw R}function l(){var k=h();return{type:"stylesheet",stylesheet:{source:t.source,rules:k,parsingErrors:a}}}function u(){return p(/^{\s*/)}function f(){return p(/^}/)}function h(){var k,R=[];for(x(),m(R);e.length&&e.charAt(0)!="}"&&(k=X()||D());)k!==!1&&(R.push(k),m(R));return R}function p(k){var R=k.exec(e);if(R){var G=R[0];return i(G),e=e.slice(G.length),R}}function x(){p(/^\s*/)}function m(k){var R;for(k=k||[];R=g();)R!==!1&&k.push(R);return k}function g(){var k=o();if(!(e.charAt(0)!="/"||e.charAt(1)!="*")){for(var R=2;e.charAt(R)!=""&&(e.charAt(R)!="*"||e.charAt(R+1)!="/");)++R;if(R+=2,e.charAt(R-1)==="")return c("End of comment missing");var G=e.slice(2,R-2);return n+=2,i(G),e=e.slice(R),n+=2,k({type:"comment",comment:G})}}function y(){var k=p(/^([^{]+)/);if(k)return mn(k[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(R){return R.replace(/,/g,"\u200C")}).split(/\s*(?![^(]*\)),\s*/).map(function(R){return R.replace(/\u200C/g,",")})}function b(){var k=o(),R=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(R){if(R=mn(R[0]),!p(/^:\s*/))return c("property missing ':'");var G=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),W=k({type:"declaration",property:R.replace(u9,""),value:G?mn(G[0]).replace(u9,""):""});return p(/^[;\s]*/),W}}function _(){var k=[];if(!u())return c("missing '{'");m(k);for(var R;R=b();)R!==!1&&(k.push(R),m(k));return f()?k:c("missing '}'")}function v(){for(var k,R=[],G=o();k=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)R.push(k[1]),p(/^,\s*/);if(R.length)return G({type:"keyframe",values:R,declarations:_()})}function w(){var k=o(),G=p(/^@([-\w]+)?keyframes\s*/);if(G){var R=G[1],G=p(/^([-\w]+)\s*/);if(!G)return c("@keyframes missing name");var W=G[1];if(!u())return c("@keyframes missing '{'");for(var N,L=m();N=v();)L.push(N),L=L.concat(m());return f()?k({type:"keyframes",name:W,vendor:R,keyframes:L}):c("@keyframes missing '}'")}}function q(){var k=o(),R=p(/^@supports *([^{]+)/);if(R){var G=mn(R[1]);if(!u())return c("@supports missing '{'");var W=m().concat(h());return f()?k({type:"supports",supports:G,rules:W}):c("@supports missing '}'")}}function C(){var k=o(),R=p(/^@host\s*/);if(R){if(!u())return c("@host missing '{'");var G=m().concat(h());return f()?k({type:"host",rules:G}):c("@host missing '}'")}}function S(){var k=o(),R=p(/^@media *([^{]+)/);if(R){var G=mn(R[1]);if(!u())return c("@media missing '{'");var W=m().concat(h());return f()?k({type:"media",media:G,rules:W}):c("@media missing '}'")}}function I(){var k=o(),R=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(R)return k({type:"custom-media",name:mn(R[1]),media:mn(R[2])})}function M(){var k=o(),R=p(/^@page */);if(R){var G=y()||[];if(!u())return c("@page missing '{'");for(var W=m(),N;N=b();)W.push(N),W=W.concat(m());return f()?k({type:"page",selectors:G,declarations:W}):c("@page missing '}'")}}function T(){var k=o(),R=p(/^@([-\w]+)?document *([^{]+)/);if(R){var G=mn(R[1]),W=mn(R[2]);if(!u())return c("@document missing '{'");var N=m().concat(h());return f()?k({type:"document",document:W,vendor:G,rules:N}):c("@document missing '}'")}}function P(){var k=o(),R=p(/^@font-face\s*/);if(R){if(!u())return c("@font-face missing '{'");for(var G=m(),W;W=b();)G.push(W),G=G.concat(m());return f()?k({type:"font-face",declarations:G}):c("@font-face missing '}'")}}var A=H("import"),j=H("charset"),B=H("namespace");function H(k){var R=new RegExp("^@"+k+"\\s*([^;]+);");return function(){var G=o(),W=p(R);if(W){var N={type:k};return N[k]=W[1].trim(),G(N)}}}function X(){if(e[0]=="@")return w()||S()||I()||q()||A()||j()||B()||T()||M()||C()||P()}function D(){var k=o(),R=y();return R?(m(),k({type:"rule",selectors:R,declarations:_()})):c("selector missing")}return Tg(l())};function mn(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Tg(e,t){var r=e&&typeof e.type=="string",n=r?e:t;for(var i in e){var o=e[i];Array.isArray(o)?o.forEach(function(s){Tg(s,n)}):o&&typeof o=="object"&&Tg(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}});var _9=Vg((W4e,Lg)=>{"use strict";var kL=Object.prototype.hasOwnProperty,rr="~";function ws(){}Object.create&&(ws.prototype=Object.create(null),new ws().__proto__||(rr=!1));function RL(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function b9(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new RL(r,n||e,i),s=rr?rr+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function El(e,t){--e._eventsCount===0?e._events=new ws:delete e._events[t]}function Yt(){this._events=new ws,this._eventsCount=0}Yt.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)kL.call(r,n)&&t.push(rr?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Yt.prototype.listeners=function(t){var r=rr?rr+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s};Yt.prototype.listenerCount=function(t){var r=rr?rr+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Yt.prototype.emit=function(t,r,n,i,o,s){var a=rr?rr+t:t;if(!this._events[a])return!1;var c=this._events[a],l=arguments.length,u,f;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,n),!0;case 4:return c.fn.call(c.context,r,n,i),!0;case 5:return c.fn.call(c.context,r,n,i,o),!0;case 6:return c.fn.call(c.context,r,n,i,o,s),!0}for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];c.fn.apply(c.context,u)}else{var h=c.length,p;for(f=0;f<h;f++)switch(c[f].once&&this.removeListener(t,c[f].fn,void 0,!0),l){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,r);break;case 3:c[f].fn.call(c[f].context,r,n);break;case 4:c[f].fn.call(c[f].context,r,n,i);break;default:if(!u)for(p=1,u=new Array(l-1);p<l;p++)u[p-1]=arguments[p];c[f].fn.apply(c[f].context,u)}}return!0};Yt.prototype.on=function(t,r,n){return b9(this,t,r,n,!1)};Yt.prototype.once=function(t,r,n){return b9(this,t,r,n,!0)};Yt.prototype.removeListener=function(t,r,n,i){var o=rr?rr+t:t;if(!this._events[o])return this;if(!r)return El(this,o),this;var s=this._events[o];if(s.fn)s.fn===r&&(!i||s.once)&&(!n||s.context===n)&&El(this,o);else{for(var a=0,c=[],l=s.length;a<l;a++)(s[a].fn!==r||i&&!s[a].once||n&&s[a].context!==n)&&c.push(s[a]);c.length?this._events[o]=c.length===1?c[0]:c:El(this,o)}return this};Yt.prototype.removeAllListeners=function(t){var r;return t?(r=rr?rr+t:t,this._events[r]&&El(this,r)):(this._events=new ws,this._eventsCount=0),this};Yt.prototype.off=Yt.prototype.removeListener;Yt.prototype.addListener=Yt.prototype.on;Yt.prefixed=rr;Yt.EventEmitter=Yt;typeof Lg<"u"&&(Lg.exports=Yt)});var u1={name:"@antv/infographic",version:"0.2.8",workspaces:["dev","site"],description:"An Infographic Generation and Rendering Framework, bring words to life!",keywords:["antv","infographic","visualization"],repository:"git@github.com:antvis/Infographic.git",license:"MIT",author:"Aarebecca",exports:{".":{types:"./esm/index.d.ts",require:"./lib/index.js",import:"./esm/index.js"},"./jsx-runtime":{types:"./esm/jsx-runtime.d.ts",require:"./lib/jsx-runtime.js",import:"./esm/jsx-runtime.js"},"./jsx-dev-runtime":{types:"./esm/jsx-dev-runtime.d.ts",require:"./lib/jsx-dev-runtime.js",import:"./esm/jsx-dev-runtime.js"},"./ssr":{types:"./lib/ssr/index.d.ts",require:"./lib/ssr/index.js",import:"./esm/ssr/index.js"}},main:"./lib/index.js",jsdelivr:"./dist/infographic.umd.min.js",unpkg:"./dist/infographic.umd.min.js",module:"./esm/index.js",types:"./esm/index.d.ts",files:["lib","esm","dist","src"],scripts:{build:"run-s clean build:esm build:cjs build:umd size","build:cjs":"tsc --module commonjs --outDir lib","build:esm":"tsc --module ESNext --outDir esm","build:site":"npm --prefix site run build:static","build:umd":"vite build","build:watch":"tsc -p tsconfig.json --watch","check:test":"tsc --noEmit -p __tests__",ci:"run-s build test lint",clean:"rimraf esm lib dist tsconfig.tsbuildinfo",dev:"cd dev && npm run dev",format:"prettier --write . --ignore-path ./.gitignore",lint:"run-s lint:root lint:site","lint:root":"eslint . --ext .ts,.tsx --ignore-pattern 'site/**' && npm run check:test","lint:site":"npm --prefix site run lint",prepublishOnly:"npm run ci",size:"size-limit",test:"vitest --run --coverage"},commitlint:{extends:["@commitlint/config-conventional"]},"lint-staged":{"*.{ts,tsx}":["eslint --fix","prettier --write"]},prettier:{plugins:["prettier-plugin-organize-imports","prettier-plugin-packagejson"],singleQuote:!0,overrides:[{files:["*.md","*.mdx"],options:{embeddedLanguageFormatting:"off"}}]},dependencies:{"@antv/hierarchy":"^0.7.0","@antv/layout":"^2.0.0-beta.0",css:"^3.0.0",culori:"^4.0.2",d3:"^7.9.0",eventemitter3:"^5.0.1",flru:"^1.0.2",linkedom:"^0.18.12","lodash-es":"^4.17.21",measury:"^0.1.3",roughjs:"^4.6.6","round-polygon":"^0.6.7",tinycolor2:"^1.6.0"},devDependencies:{"@commitlint/cli":"^19.8.1","@commitlint/config-conventional":"^19.8.1","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-node-resolve":"^16.0.3","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.3.0","@size-limit/file":"^11.2.0","@types/css":"^0.0.38","@types/culori":"^4.0.1","@types/d3":"^7.4.3","@types/jsdom":"^21.1.7","@types/lodash-es":"^4.17.12","@types/node":"^24.3.1","@types/tinycolor2":"^1.4.6","@vitest/coverage-v8":"^3.2.4","any-skills":"^0.1.1",csstype:"^3.2.2",eslint:"^9.35.0",globals:"^16.4.0","gzip-size":"^7.0.0",husky:"^9.1.7",jiti:"^2.5.1",jsdom:"^27.0.0","lint-staged":"^16.1.6","npm-run-all":"^4.1.5",prettier:"^3.6.2","prettier-plugin-organize-imports":"^4.2.0","prettier-plugin-packagejson":"^2.5.19",rimraf:"^6.1.0",rollup:"^4.53.2","rollup-plugin-visualizer":"^6.0.5","size-limit":"^11.2.0",typescript:"^5.9.2","typescript-eslint":"^8.43.0",vite:"^7.1.5","vite-node":"^3.2.4","vite-tsconfig-paths":"^5.1.4",vitest:"^3.2.4"},publishConfig:{access:"public",registry:"https://registry.npmjs.org/",tag:"latest"},"size-limit":[{gzip:!0,limit:"500 Kb",path:"dist/infographic.min.js"},{limit:"500 Kb",path:"dist/infographic.min.js"}]};var d1=new Map;function Nl(e,t){d1.set(e,t)}function Gl(e){return d1.get(e)}var Ao={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},Lo={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},f1={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},h1={type:"capsule-item"},p1={type:"circular-progress"},m1={type:"rounded-rect-node",positionH:"center"},g1={type:"compact-card"},F9=(e,t)=>({type:"hierarchy-mindmap",...t!==void 0?{edgeAlign:t}:{},...e}),Dr=(e,t,r,n)=>[e,{design:{structure:F9(t,n),item:r}}],x1=Object.fromEntries([Dr("hierarchy-mindmap-branch-gradient-lined-palette",Ao,f1,"bottom"),Dr("hierarchy-mindmap-level-gradient-lined-palette",Lo,f1,"bottom"),Dr("hierarchy-mindmap-branch-gradient-capsule-item",Ao,h1),Dr("hierarchy-mindmap-level-gradient-capsule-item",Lo,h1),Dr("hierarchy-mindmap-branch-gradient-circle-progress",Ao,p1,.4),Dr("hierarchy-mindmap-level-gradient-circle-progress",Lo,p1,.4),Dr("hierarchy-mindmap-branch-gradient-rounded-rect",Ao,m1),Dr("hierarchy-mindmap-level-gradient-rounded-rect",Lo,m1),Dr("hierarchy-mindmap-branch-gradient-compact-card",Ao,g1),Dr("hierarchy-mindmap-level-gradient-compact-card",Lo,g1)]);var y1={"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}};var j9={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},D9=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],Wl={},b1="hierarchy-tree",B9=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],N9=(e,t,r)=>e?`${b1}-${e}-${t}-${r}`:`${b1}-${t}-${r}`;for(let e of D9)for(let[t,r]of Object.entries(j9))for(let{key:n,orientation:i}of B9){let o=N9(n,t,e);Wl[o]={design:{structure:{type:"hierarchy-tree",...i?{orientation:i}:{},...r},item:{type:e}}}}var _1={"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}};var G9={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},Es={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},W9={tb:{...Es,rankdir:"TB",edgeRouting:"orth"},lr:{...Es,rankdir:"LR",edgeRouting:"orth"},"tb-animated":{...Es,rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1},"lr-animated":{...Es,rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}},Xl={},X9=["lr-capsule","tb-capsule"];Object.entries(W9).forEach(([e,t])=>{Object.entries(G9).forEach(([r,n])=>{let i=`${e}-${r}`;if(X9.includes(i))return;let o=`relation-dagre-flow-${i}`;Xl[o]={design:{title:"default",structure:t,item:n}}})});var v1={"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}};var w1={"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}};var Y9={"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:e=>`\u25CF ${e}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}},"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"pill-badge"}]}},...Wl,...x1,...v1,...w1,..._1,...Xl,...y1};Object.entries(Y9).forEach(([e,t])=>{Nl(e,t)});var De=Symbol.for("@antv/infographic/Fragment");function d(e,t={}){return{type:e,props:t}}var E=d;var Is=Symbol.for("@antv/infographic/Defs");function ke(e){return{type:Is,props:e}}function je(e){let{x:t=0,y:r=0,width:n=0,height:i=0}=e;return e.cx??(e.cx=t+n/2),e.cy??(e.cy=r+i/2),e.rx??(e.rx=n/2),e.ry??(e.ry=i/2),{type:"ellipse",props:e}}function O(e){let{x:t=0,y:r=0}=e;return(t||r)&&(e.transform||(e.transform=`translate(${t}, ${r})`)),{type:"g",props:e}}function ae(e){let{x:t,y:r}=e,n={...e};return(t!==void 0||r!==void 0)&&(n.transform=`translate(${t??0}, ${r??0})`),{type:"path",props:n}}function gt({points:e=[],...t}){let{x:r,y:n}=t,i=e.map(({x:a,y:c})=>`${a},${c}`).join(" "),o={...t,points:i};return(r!==void 0||n!==void 0)&&(o.transform=`translate(${r??0}, ${n??0})`+(o.transform||"")),{type:"polygon",props:o}}function we(e){return{type:"rect",props:e}}function Yl(e){return Object.keys(e[0]).reduce((t,r)=>{let n=r;return e.every(i=>i[n]===e[0][n])&&(t[n]=e[0][n]),t},{})}var V9=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Ts=V9;var U9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},q1=U9;var K9=e=>Ts(q1[e.toLowerCase()],6),C1=K9;var Z9=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Q9=e=>{let t;return(t=e.match(Z9))?Ts(parseInt(t[1],16),t[1].length):void 0},S1=Q9;var Zt="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Dk=`(?:${Zt}|none)`,ti=`${Zt}%`,Bk=`(?:${Zt}%|none)`,ko=`(?:${Zt}%|${Zt})`,J9=`(?:${Zt}%|${Zt}|none)`,E1=`(?:${Zt}(deg|grad|rad|turn)|${Zt})`,Nk=`(?:${Zt}(deg|grad|rad|turn)|${Zt}|none)`,xn="\\s*,\\s*";var Gk=new RegExp("^"+J9+"$");var eq=new RegExp(`^rgba?\\(\\s*${Zt}${xn}${Zt}${xn}${Zt}\\s*(?:,\\s*${ko}\\s*)?\\)$`),tq=new RegExp(`^rgba?\\(\\s*${ti}${xn}${ti}${xn}${ti}\\s*(?:,\\s*${ko}\\s*)?\\)$`),rq=e=>{let t={mode:"rgb"},r;if(r=e.match(eq))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(tq))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},I1=rq;var nq=(e,t)=>e===void 0?void 0:typeof e!="object"?Qt(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,T1=nq;var iq=(e="rgb")=>t=>(t=T1(t,e))!==void 0?t.mode===e?t:Rr[t.mode][e]?Rr[t.mode][e](t):e==="rgb"?Rr[t.mode].rgb(t):Rr.rgb[e](Rr[t.mode].rgb(t)):void 0,ri=iq;var Rr={},M1={},Ro=[],Vl={},oq=e=>e,lt=e=>(Rr[e.mode]={...Rr[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{Rr[t]||(Rr[t]={}),Rr[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=oq)}),M1[e.mode]=e,(e.parse||[]).forEach(t=>{A1(t,e.mode)}),ri(e.mode)),Ul=e=>M1[e],A1=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");Vl[e]=t}else typeof e=="function"&&Ro.indexOf(e)<0&&Ro.push(e)};var Kl=/[^\x00-\x7F]|[a-zA-Z_]/,sq=/[^\x00-\x7F]|[-\w]/,ce={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ne=0;function Ms(e){let t=e[Ne],r=e[Ne+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[Ne+2]):t==="."?/\d/.test(r):/\d/.test(t)}function Zl(e){if(Ne>=e.length)return!1;let t=e[Ne];if(Kl.test(t))return!0;if(t==="-"){if(e.length-Ne<2)return!1;let r=e[Ne+1];return!!(r==="-"||Kl.test(r))}return!1}var aq={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Po(e){let t="";if((e[Ne]==="-"||e[Ne]==="+")&&(t+=e[Ne++]),t+=As(e),e[Ne]==="."&&/\d/.test(e[Ne+1])&&(t+=e[Ne++]+As(e)),(e[Ne]==="e"||e[Ne]==="E")&&((e[Ne+1]==="-"||e[Ne+1]==="+")&&/\d/.test(e[Ne+2])?t+=e[Ne++]+e[Ne++]+As(e):/\d/.test(e[Ne+1])&&(t+=e[Ne++]+As(e))),Zl(e)){let r=Ls(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:ce.Hue,value:t*aq[r]}:void 0}return e[Ne]==="%"?(Ne++,{type:ce.Percentage,value:+t}):{type:ce.Number,value:+t}}function As(e){let t="";for(;/\d/.test(e[Ne]);)t+=e[Ne++];return t}function Ls(e){let t="";for(;Ne<e.length&&sq.test(e[Ne]);)t+=e[Ne++];return t}function cq(e){let t=Ls(e);return e[Ne]==="("?(Ne++,{type:ce.Function,value:t}):t==="none"?{type:ce.None,value:void 0}:{type:ce.Ident,value:t}}function lq(e=""){let t=e.trim(),r=[],n;for(Ne=0;Ne<t.length;){if(n=t[Ne++],n===`
|
|
3
|
-
`||n===" "||n===" "){for(;Ne<t.length&&(t[Ne]===`
|
|
4
|
-
`||t[Ne]===" "||t[Ne]===" ");)Ne++;continue}if(n===",")return;if(n===")"){r.push({type:ce.ParenClose});continue}if(n==="+"){if(Ne--,Ms(t)){r.push(Po(t));continue}return}if(n==="-"){if(Ne--,Ms(t)){r.push(Po(t));continue}if(Zl(t)){r.push({type:ce.Ident,value:Ls(t)});continue}return}if(n==="."){if(Ne--,Ms(t)){r.push(Po(t));continue}return}if(n==="/"){for(;Ne<t.length&&(t[Ne]===`
|
|
5
|
-
`||t[Ne]===" "||t[Ne]===" ");)Ne++;let i;if(Ms(t)&&(i=Po(t),i.type!==ce.Hue)){r.push({type:ce.Alpha,value:i});continue}if(Zl(t)&&Ls(t)==="none"){r.push({type:ce.Alpha,value:{type:ce.None,value:void 0}});continue}return}if(/\d/.test(n)){Ne--,r.push(Po(t));continue}if(Kl.test(n)){Ne--,r.push(cq(t));continue}return}return r}function uq(e){e._i=0;let t=e[e._i++];if(!t||t.type!==ce.Function||t.value!=="color"||(t=e[e._i++],t.type!==ce.Ident))return;let r=Vl[t.value];if(!r)return;let n={mode:r},i=L1(e,!1);if(!i)return;let o=Ul(r).channels;for(let s=0,a,c;s<o.length;s++)a=i[s],c=o[s],a.type!==ce.None&&(n[c]=a.type===ce.Number?a.value:a.value/100,c==="alpha"&&(n[c]=Math.max(0,Math.min(1,n[c]))));return n}function L1(e,t){let r=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===ce.None||n.type===ce.Number||n.type===ce.Alpha||n.type===ce.Percentage||t&&n.type===ce.Hue){r.push(n);continue}if(n.type===ce.ParenClose){if(e._i<e.length)return;continue}return}if(!(r.length<3||r.length>4)){if(r.length===4){if(r[3].type!==ce.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:ce.None,value:void 0}),r.every(i=>i.type!==ce.Alpha)?r:void 0}}function dq(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==ce.Function)return;let n=L1(e,t);if(n)return n.unshift(r.value),n}var fq=e=>{if(typeof e!="string")return;let t=lq(e),r=t?dq(t,!0):void 0,n,i=0,o=Ro.length;for(;i<o;)if((n=Ro[i++](e,r))!==void 0)return n;return t?uq(t):void 0},Qt=fq;function hq(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let r={mode:"rgb"},[,n,i,o,s]=t;if(!(n.type===ce.Hue||i.type===ce.Hue||o.type===ce.Hue))return n.type!==ce.None&&(r.r=n.type===ce.Number?n.value/255:n.value/100),i.type!==ce.None&&(r.g=i.type===ce.Number?i.value/255:i.value/100),o.type!==ce.None&&(r.b=o.type===ce.Number?o.value/255:o.value/100),s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var k1=hq;var pq=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,R1=pq;var P1=(e,t,r)=>e+r*(t-e);var mq=e=>{let t=[];for(let r=0;r<e.length-1;r++){let n=e[r],i=e[r+1];n===void 0&&i===void 0?t.push(void 0):n!==void 0&&i!==void 0?t.push([n,i]):t.push(n!==void 0?[n,n]:[i,i])}return t},O1=e=>t=>{let r=mq(t);return n=>{let i=n*r.length,o=n>=1?r.length-1:Math.max(Math.floor(i),0),s=r[o];return s===void 0?void 0:e(s[0],s[1],i-o)}};var ue=O1(P1);var nt=e=>{let t=!1,r=e.map(n=>n!==void 0?(t=!0,n):1);return t?r:e};var gq={mode:"rgb",channels:["r","g","b","alpha"],parse:[k1,S1,I1,C1,R1,"srgb"],serialize:"srgb",interpolate:{r:ue,g:ue,b:ue,alpha:{use:ue,fixup:nt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},br=gq;var Ql=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),xq=e=>{let t=Ql(e.r),r=Ql(e.g),n=Ql(e.b),i={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*n,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*n,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*n};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Jl=xq;var eu=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),yq=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"a98",r:eu(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:eu(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:eu(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return n!==void 0&&(i.alpha=n),i},tu=yq;var ru=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},bq=({r:e,g:t,b:r,alpha:n})=>{let i={mode:"lrgb",r:ru(e),g:ru(t),b:ru(r)};return n!==void 0&&(i.alpha=n),i},_r=bq;var _q=e=>{let{r:t,g:r,b:n,alpha:i}=_r(e),o={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*n,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*n,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*n};return i!==void 0&&(o.alpha=i),o},or=_q;var nu=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},vq=({r:e,g:t,b:r,alpha:n},i="rgb")=>{let o={mode:i,r:nu(e),g:nu(t),b:nu(r)};return n!==void 0&&(o.alpha=n),o},vr=vq;var wq=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=vr({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return n!==void 0&&(i.alpha=n),i},sr=wq;var qq={...br,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>tu(or(e)),xyz65:tu},toMode:{rgb:e=>sr(Jl(e)),xyz65:Jl}},$1=qq;var Cq=e=>(e=e%360)<0?e+360:e,xt=Cq;var Sq=(e,t)=>e.map((r,n,i)=>{if(r===void 0)return r;let o=xt(r);return n===0||e[n-1]===void 0?o:t(o-xt(i[n-1]))}).reduce((r,n)=>!r.length||n===void 0||r[r.length-1]===void 0?(r.push(n),r):(r.push(n+r[r.length-1]),r),[]),zt=e=>Sq(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var Pt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],z1=Math.PI/180,H1=180/Math.PI;var F1=Pt[3]*Pt[4],j1=Pt[1]*Pt[4],D1=Pt[1]*Pt[2]-Pt[0]*Pt[3],Eq=({r:e,g:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=(D1*r+e*F1-t*j1)/(D1+F1-j1),o=r-i,s=(Pt[4]*(t-i)-Pt[2]*o)/Pt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Pt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*H1-120),n!==void 0&&(a.alpha=n),a},B1=Eq;var Iq=({h:e,s:t,l:r,alpha:n})=>{let i={mode:"rgb"};e=(e===void 0?0:e+120)*z1,r===void 0&&(r=0);let o=t===void 0?0:t*r*(1-r),s=Math.cos(e),a=Math.sin(e);return i.r=r+o*(Pt[0]*s+Pt[1]*a),i.g=r+o*(Pt[2]*s+Pt[3]*a),i.b=r+o*(Pt[4]*s+Pt[5]*a),n!==void 0&&(i.alpha=n),i},N1=Iq;var yn=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=xt(e.h),n=xt(t.h),i=Math.sin((n-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},G1=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=xt(e.h),n=xt(t.h);return Math.abs(n-r)>180?r-(n-360*Math.sign(n-r)):n-r},bn=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=xt(e.h),n=xt(t.h),i=Math.sin((n-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i};var Ht=e=>{let t=e.reduce((n,i)=>{if(i!==void 0){let o=i*Math.PI/180;n.sin+=Math.sin(o),n.cos+=Math.cos(o)}return n},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r};var Tq={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:B1},toMode:{rgb:N1},interpolate:{h:{use:ue,fixup:zt},s:ue,l:ue,alpha:{use:ue,fixup:nt}},difference:{h:yn},average:{h:Ht}},W1=Tq;var Mq=({l:e,a:t,b:r,alpha:n},i="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let o=Math.sqrt(t*t+r*r),s={mode:i,l:e,c:o};return o&&(s.h=xt(Math.atan2(r,t)*180/Math.PI)),n!==void 0&&(s.alpha=n),s},mr=Mq;var Aq=({l:e,c:t,h:r,alpha:n},i="lab")=>{r===void 0&&(r=0);let o={mode:i,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return n!==void 0&&(o.alpha=n),o},gr=Aq;var ks=Math.pow(29,3)/Math.pow(3,3),Rs=Math.pow(6,3)/Math.pow(29,3);var qt={X:.9642956764295677,Y:1,Z:.8251046025104602},_n={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},nP=Math.pow(29,3)/Math.pow(3,3),iP=Math.pow(6,3)/Math.pow(29,3);var iu=e=>Math.pow(e,3)>Rs?Math.pow(e,3):(116*e-16)/ks,Lq=({l:e,a:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=(e+16)/116,o=t/500+i,s=i-r/200,a={mode:"xyz65",x:iu(o)*_n.X,y:iu(i)*_n.Y,z:iu(s)*_n.Z};return n!==void 0&&(a.alpha=n),a},Ps=Lq;var kq=e=>sr(Ps(e)),vn=kq;var ou=e=>e>Rs?Math.cbrt(e):(ks*e+16)/116,Rq=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=ou(e/_n.X),o=ou(t/_n.Y),s=ou(r/_n.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return n!==void 0&&(a.alpha=n),a},Os=Rq;var Pq=e=>{let t=Os(or(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},wn=Pq;var ni=.14444444444444443*Math.PI,xi=Math.cos(ni),yi=Math.sin(ni),$s=100/Math.log(139/100);var Oq=({l:e,c:t,h:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"lab65",l:(Math.exp(e*1/$s)-1)/.0039},o=(Math.exp(.0435*t*1*1)-1)/.075,s=o*Math.cos(r/180*Math.PI-ni),a=o*Math.sin(r/180*Math.PI-ni);return i.a=s*xi-a/.83*yi,i.b=s*yi+a/.83*xi,n!==void 0&&(i.alpha=n),i},$o=Oq;var $q=({l:e,a:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=t*xi+r*yi,o=.83*(r*xi-t*yi),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:$s/1*Math.log(1+.0039*e),c:Math.log(1+.075*s)/(.0435*1*1)};return a.c&&(a.h=xt((Math.atan2(o,i)+ni)/Math.PI*180)),n!==void 0&&(a.alpha=n),a},zo=$q;var X1=e=>$o(mr(e,"dlch")),Y1=e=>gr(zo(e),"dlab"),zq={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:X1,rgb:e=>vn(X1(e))},fromMode:{lab65:Y1,rgb:e=>Y1(wn(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ue,a:ue,b:ue,alpha:{use:ue,fixup:nt}}},V1=zq;var Hq={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:$o,dlab:e=>gr(e,"dlab"),rgb:e=>vn($o(e))},fromMode:{lab65:zo,dlab:e=>mr(e,"dlch"),rgb:e=>zo(wn(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ue,c:ue,h:{use:ue,fixup:zt},alpha:{use:ue,fixup:nt}},difference:{h:bn},average:{h:Ht}},U1=Hq;function au({h:e,s:t,i:r,alpha:n}){e=xt(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:r*(1+t*(3/(2-i)-1)),g:r*(1+t*(3*(1-i)/(2-i)-1)),b:r*(1-t)};break;case 1:o={r:r*(1+t*(3*(1-i)/(2-i)-1)),g:r*(1+t*(3/(2-i)-1)),b:r*(1-t)};break;case 2:o={r:r*(1-t),g:r*(1+t*(3/(2-i)-1)),b:r*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:o={r:r*(1-t),g:r*(1+t*(3*(1-i)/(2-i)-1)),b:r*(1+t*(3/(2-i)-1))};break;case 4:o={r:r*(1+t*(3*(1-i)/(2-i)-1)),g:r*(1-t),b:r*(1+t*(3/(2-i)-1))};break;case 5:o={r:r*(1+t*(3/(2-i)-1)),g:r*(1-t),b:r*(1+t*(3*(1-i)/(2-i)-1))};break;default:o={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function cu({r:e,g:t,b:r,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.max(e,t,r),o=Math.min(e,t,r),s={mode:"hsi",s:e+t+r===0?0:1-3*o/(e+t+r),i:(e+t+r)/3};return i-o!==0&&(s.h=(i===e?(t-r)/(i-o)+(t<r)*6:i===t?(r-e)/(i-o)+2:(e-t)/(i-o)+4)*60),n!==void 0&&(s.alpha=n),s}var Fq={mode:"hsi",toMode:{rgb:au},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:cu},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ue,fixup:zt},s:ue,i:ue,alpha:{use:ue,fixup:nt}},difference:{h:yn},average:{h:Ht}},K1=Fq;function lu({h:e,s:t,l:r,alpha:n}){e=xt(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let i=r+t*(r<.5?r:1-r),o=i-(i-r)*2*Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:i,g:o,b:2*r-i};break;case 1:s={r:o,g:i,b:2*r-i};break;case 2:s={r:2*r-i,g:i,b:o};break;case 3:s={r:2*r-i,g:o,b:i};break;case 4:s={r:o,g:2*r-i,b:i};break;case 5:s={r:i,g:2*r-i,b:o};break;default:s={r:2*r-i,g:2*r-i,b:2*r-i}}return s.mode="rgb",n!==void 0&&(s.alpha=n),s}function uu({r:e,g:t,b:r,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.max(e,t,r),o=Math.min(e,t,r),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===e?(t-r)/(i-o)+(t<r)*6:i===t?(r-e)/(i-o)+2:(e-t)/(i-o)+4)*60),n!==void 0&&(s.alpha=n),s}var jq=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Z1=jq;var Dq=new RegExp(`^hsla?\\(\\s*${E1}${xn}${ti}${xn}${ti}\\s*(?:,\\s*${ko}\\s*)?\\)$`),Bq=e=>{let t=e.match(Dq);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=Z1(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},Q1=Bq;function Nq(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,n,i,o,s]=t;if(n.type!==ce.None){if(n.type===ce.Percentage)return;r.h=n.value}if(i.type!==ce.None){if(i.type===ce.Hue)return;r.s=i.value/100}if(o.type!==ce.None){if(o.type===ce.Hue)return;r.l=o.value/100}return s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var J1=Nq;var Gq={mode:"hsl",toMode:{rgb:lu},fromMode:{rgb:uu},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[J1,Q1],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ue,fixup:zt},s:ue,l:ue,alpha:{use:ue,fixup:nt}},difference:{h:yn},average:{h:Ht}},zs=Gq;function Ho({h:e,s:t,v:r,alpha:n}){e=xt(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r,g:r*(1-t*i),b:r*(1-t)};break;case 1:o={r:r*(1-t*i),g:r,b:r*(1-t)};break;case 2:o={r:r*(1-t),g:r,b:r*(1-t*i)};break;case 3:o={r:r*(1-t),g:r*(1-t*i),b:r};break;case 4:o={r:r*(1-t*i),g:r*(1-t),b:r};break;case 5:o={r,g:r*(1-t),b:r*(1-t*i)};break;default:o={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function Fo({r:e,g:t,b:r,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.max(e,t,r),o=Math.min(e,t,r),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===e?(t-r)/(i-o)+(t<r)*6:i===t?(r-e)/(i-o)+2:(e-t)/(i-o)+4)*60),n!==void 0&&(s.alpha=n),s}var Wq={mode:"hsv",toMode:{rgb:Ho},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Fo},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ue,fixup:zt},s:ue,v:ue,alpha:{use:ue,fixup:nt}},difference:{h:yn},average:{h:Ht}},Hs=Wq;function du({h:e,w:t,b:r,alpha:n}){if(t===void 0&&(t=0),r===void 0&&(r=0),t+r>1){let i=t+r;t/=i,r/=i}return Ho({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:n})}function fu(e){let t=Fo(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,n=t.v!==void 0?t.v:0,i={mode:"hwb",w:(1-r)*n,b:1-n};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Xq(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,n,i,o,s]=t;if(n.type!==ce.None){if(n.type===ce.Percentage)return;r.h=n.value}if(i.type!==ce.None){if(i.type===ce.Hue)return;r.w=i.value/100}if(o.type!==ce.None){if(o.type===ce.Hue)return;r.b=o.value/100}return s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var e2=Xq;var Yq={mode:"hwb",toMode:{rgb:du},fromMode:{rgb:fu},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[e2],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ue,fixup:zt},w:ue,b:ue,alpha:{use:ue,fixup:nt}},difference:{h:G1},average:{h:Ht}},t2=Yq;var bi=.1593017578125,r2=78.84375,_i=.8359375,vi=18.8515625,wi=18.6875;function Fs(e){if(e<0)return 0;let t=Math.pow(e,1/r2);return 1e4*Math.pow(Math.max(0,t-_i)/(vi-wi*t),1/bi)}function js(e){if(e<0)return 0;let t=Math.pow(e/1e4,bi);return Math.pow((_i+vi*t)/(1+wi*t),r2)}var hu=e=>Math.max(e/203,0),Uq=({i:e,t,p:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Fs(e+.008609037037932761*t+.11102962500302593*r),o=Fs(e-.00860903703793275*t-.11102962500302599*r),s=Fs(e+.5600313357106791*t-.32062717498731885*r),a={mode:"xyz65",x:hu(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:hu(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:hu(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return n!==void 0&&(a.alpha=n),a},pu=Uq;var mu=(e=0)=>Math.max(e*203,0),Kq=({x:e,y:t,z:r,alpha:n})=>{let i=mu(e),o=mu(t),s=mu(r),a=js(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),c=js(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),l=js(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),u=.5*a+.5*c,f=1.61376953125*a-3.323486328125*c+1.709716796875*l,h=4.378173828125*a-4.24560546875*c-.132568359375*l,p={mode:"itp",i:u,t:f,p:h};return n!==void 0&&(p.alpha=n),p},gu=Kq;var Zq={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:pu,rgb:e=>sr(pu(e))},fromMode:{xyz65:gu,rgb:e=>gu(or(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ue,t:ue,p:ue,alpha:{use:ue,fixup:nt}}},n2=Zq;var Qq=134.03437499999998,Jq=16295499532821565e-27,xu=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,bi);return Math.pow((_i+vi*t)/(1+wi*t),Qq)},yu=(e=0)=>Math.max(e*203,0),e8=({x:e,y:t,z:r,alpha:n})=>{e=yu(e),t=yu(t),r=yu(r);let i=1.15*e-.15*r,o=.66*t+.34*e,s=xu(.41478972*i+.579999*o+.014648*r),a=xu(-.20151*i+1.120649*o+.0531008*r),c=xu(-.0166008*i+.2648*o+.6684799*r),l=(s+a)/2,u={mode:"jab",j:.44*l/(1-.56*l)-Jq,a:3.524*s-4.066708*a+.542708*c,b:.199076*s+1.096799*a-1.295875*c};return n!==void 0&&(u.alpha=n),u},Ds=e8;var t8=134.03437499999998,i2=16295499532821565e-27,bu=e=>{if(e<0)return 0;let t=Math.pow(e,1/t8);return 1e4*Math.pow((_i-t)/(wi*t-vi),1/bi)},_u=e=>e/203,r8=({j:e,a:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=(e+i2)/(.44+.56*(e+i2)),o=bu(i+.13860504*t+.058047316*r),s=bu(i-.13860504*t-.058047316*r),a=bu(i-.096019242*t-.8118919*r),c={mode:"xyz65",x:_u(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:_u(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:_u(-.090982811*o-.31272829*s+1.5227666*a)};return n!==void 0&&(c.alpha=n),c},Bs=r8;var n8=e=>{let t=Ds(or(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ns=n8;var i8=e=>sr(Bs(e)),Gs=i8;var o8={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Ns,xyz65:Ds},toMode:{rgb:Gs,xyz65:Bs},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ue,a:ue,b:ue,alpha:{use:ue,fixup:nt}}},o2=o8;var s8=({j:e,a:t,b:r,alpha:n})=>{t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.sqrt(t*t+r*r),o={mode:"jch",j:e,c:i};return i&&(o.h=xt(Math.atan2(r,t)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},vu=s8;var a8=({j:e,c:t,h:r,alpha:n})=>{r===void 0&&(r=0);let i={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return n!==void 0&&(i.alpha=n),i},wu=a8;var c8={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:wu,rgb:e=>Gs(wu(e))},fromMode:{rgb:e=>vu(Ns(e)),jab:vu},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ue,fixup:zt},c:ue,j:ue,alpha:{use:ue,fixup:nt}},difference:{h:bn},average:{h:Ht}},s2=c8;var qn=Math.pow(29,3)/Math.pow(3,3),qi=Math.pow(6,3)/Math.pow(29,3);var qu=e=>Math.pow(e,3)>qi?Math.pow(e,3):(116*e-16)/qn,l8=({l:e,a:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=(e+16)/116,o=t/500+i,s=i-r/200,a={mode:"xyz50",x:qu(o)*qt.X,y:qu(i)*qt.Y,z:qu(s)*qt.Z};return n!==void 0&&(a.alpha=n),a},Ci=l8;var u8=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=vr({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return n!==void 0&&(i.alpha=n),i},Br=u8;var d8=e=>Br(Ci(e)),Ws=d8;var f8=e=>{let{r:t,g:r,b:n,alpha:i}=_r(e),o={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*n,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*n,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*n};return i!==void 0&&(o.alpha=i),o},Nr=f8;var Cu=e=>e>qi?Math.cbrt(e):(qn*e+16)/116,h8=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Cu(e/qt.X),o=Cu(t/qt.Y),s=Cu(r/qt.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return n!==void 0&&(a.alpha=n),a},Si=h8;var p8=e=>{let t=Si(Nr(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Xs=p8;function m8(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,n,i,o,s]=t;if(!(n.type===ce.Hue||i.type===ce.Hue||o.type===ce.Hue))return n.type!==ce.None&&(r.l=Math.min(Math.max(0,n.value),100)),i.type!==ce.None&&(r.a=i.type===ce.Number?i.value:i.value*125/100),o.type!==ce.None&&(r.b=o.type===ce.Number?o.value:o.value*125/100),s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var a2=m8;var g8={mode:"lab",toMode:{xyz50:Ci,rgb:Ws},fromMode:{xyz50:Si,rgb:Xs},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[a2],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:ue,a:ue,b:ue,alpha:{use:ue,fixup:nt}}},Ei=g8;var x8={...Ei,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ps,rgb:vn},fromMode:{xyz65:Os,rgb:wn},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},c2=x8;function y8(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,n,i,o,s]=t;if(n.type!==ce.None){if(n.type===ce.Hue)return;r.l=Math.min(Math.max(0,n.value),100)}if(i.type!==ce.None&&(r.c=Math.max(0,i.type===ce.Number?i.value:i.value*150/100)),o.type!==ce.None){if(o.type===ce.Percentage)return;r.h=o.value}return s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var l2=y8;var b8={mode:"lch",toMode:{lab:gr,rgb:e=>Ws(gr(e))},fromMode:{rgb:e=>mr(Xs(e)),lab:mr},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[l2],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ue,fixup:zt},c:ue,l:ue,alpha:{use:ue,fixup:nt}},difference:{h:bn},average:{h:Ht}},Ii=b8;var _8={...Ii,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>gr(e,"lab65"),rgb:e=>vn(gr(e,"lab65"))},fromMode:{rgb:e=>mr(wn(e),"lch65"),lab65:e=>mr(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},u2=_8;var v8=({l:e,u:t,v:r,alpha:n})=>{t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.sqrt(t*t+r*r),o={mode:"lchuv",l:e,c:i};return i&&(o.h=xt(Math.atan2(r,t)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},Su=v8;var w8=({l:e,c:t,h:r,alpha:n})=>{r===void 0&&(r=0);let i={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return n!==void 0&&(i.alpha=n),i},Eu=w8;var d2=(e,t,r)=>4*e/(e+15*t+3*r),f2=(e,t,r)=>9*t/(e+15*t+3*r),q8=d2(qt.X,qt.Y,qt.Z),C8=f2(qt.X,qt.Y,qt.Z),S8=e=>e<=qi?qn*e:116*Math.cbrt(e)-16,E8=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=S8(t/qt.Y),o=d2(e,t,r),s=f2(e,t,r);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-q8),s=13*i*(s-C8));let a={mode:"luv",l:i,u:o,v:s};return n!==void 0&&(a.alpha=n),a},jo=E8;var I8=(e,t,r)=>4*e/(e+15*t+3*r),T8=(e,t,r)=>9*t/(e+15*t+3*r),M8=I8(qt.X,qt.Y,qt.Z),A8=T8(qt.X,qt.Y,qt.Z),L8=({l:e,u:t,v:r,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let i=t/(13*e)+M8,o=r/(13*e)+A8,s=qt.Y*(e<=8?e/qn:Math.pow((e+16)/116,3)),a=s*(9*i)/(4*o),c=s*(12-3*i-20*o)/(4*o),l={mode:"xyz50",x:a,y:s,z:c};return n!==void 0&&(l.alpha=n),l},Do=L8;var k8=e=>Su(jo(Nr(e))),R8=e=>Br(Do(Eu(e))),P8={mode:"lchuv",toMode:{luv:Eu,rgb:R8},fromMode:{rgb:k8,luv:Su},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ue,fixup:zt},c:ue,l:ue,alpha:{use:ue,fixup:nt}},difference:{h:bn},average:{h:Ht}},h2=P8;var O8={...br,mode:"lrgb",toMode:{rgb:vr},fromMode:{rgb:_r},parse:["srgb-linear"],serialize:"srgb-linear"},p2=O8;var $8={mode:"luv",toMode:{xyz50:Do,rgb:e=>Br(Do(e))},fromMode:{xyz50:jo,rgb:e=>jo(Nr(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ue,u:ue,v:ue,alpha:{use:ue,fixup:nt}}},m2=$8;var z8=({r:e,g:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),o=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return n!==void 0&&(a.alpha=n),a},Ys=z8;var H8=e=>{let t=Ys(_r(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Cn=H8;var F8=({l:e,a:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),o=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return n!==void 0&&(a.alpha=n),a},Gr=F8;var j8=e=>vr(Gr(e)),Sn=j8;function Bo(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function ii(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function D8(e,t){let r,n,i,o,s,a,c,l;-1.88170328*e-.80936493*t>1?(r=1.19086277,n=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,c=-3.3077115913,l=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,n=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,c=2.6097574011,l=-.3413193965):(r=1.35733652,n=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,c=-.7034186147,l=1.707614701);let u=r+n*e+i*t+o*e*e+s*e*t,f=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let x=1+u*f,m=1+u*h,g=1+u*p,y=x*x*x,b=m*m*m,_=g*g*g,v=3*f*x*x,w=3*h*m*m,q=3*p*g*g,C=6*f*f*x,S=6*h*h*m,I=6*p*p*g,M=a*y+c*b+l*_,T=a*v+c*w+l*q,P=a*C+c*S+l*I;u=u-M*T/(T*T-.5*M*P)}return u}function Iu(e,t){let r=D8(e,t),n=Gr({l:1,a:r*e,b:r*t}),i=Math.cbrt(1/Math.max(n.r,n.g,n.b)),o=i*r;return[i,o]}function B8(e,t,r,n,i,o=null){o||(o=Iu(e,t));let s;if((r-i)*o[1]-(o[0]-i)*n<=0)s=o[1]*i/(n*o[0]+o[1]*(i-r));else{s=o[1]*(i-1)/(n*(o[0]-1)+o[1]*(i-r));{let a=r-i,c=n,l=.3963377774*e+.2158037573*t,u=-.1055613458*e-.0638541728*t,f=-.0894841775*e-1.291485548*t,h=a+c*l,p=a+c*u,x=a+c*f;{let m=i*(1-s)+s*r,g=s*n,y=m+g*l,b=m+g*u,_=m+g*f,v=y*y*y,w=b*b*b,q=_*_*_,C=3*h*y*y,S=3*p*b*b,I=3*x*_*_,M=6*h*h*y,T=6*p*p*b,P=6*x*x*_,A=4.0767416621*v-3.3077115913*w+.2309699292*q-1,j=4.0767416621*C-3.3077115913*S+.2309699292*I,B=4.0767416621*M-3.3077115913*T+.2309699292*P,H=j/(j*j-.5*A*B),X=-A*H,D=-1.2684380046*v+2.6097574011*w-.3413193965*q-1,k=-1.2684380046*C+2.6097574011*S-.3413193965*I,R=-1.2684380046*M+2.6097574011*T-.3413193965*P,G=k/(k*k-.5*D*R),W=-D*G,N=-.0041960863*v-.7034186147*w+1.707614701*q-1,L=-.0041960863*C-.7034186147*S+1.707614701*I,$=-.0041960863*M-.7034186147*T+1.707614701*P,z=L/(L*L-.5*N*$),F=-N*z;X=H>=0?X:1e6,W=G>=0?W:1e6,F=z>=0?F:1e6,s+=Math.min(X,Math.min(W,F))}}}return s}function No(e,t,r=null){r||(r=Iu(e,t));let n=r[0],i=r[1];return[i/n,i/(1-n)]}function Vs(e,t,r){let n=Iu(t,r),i=B8(t,r,e,1,e,n),o=No(t,r,n),s=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),a=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),c=i/Math.min(e*o[0],(1-e)*o[1]),l=e*s,u=(1-e)*a,f=.9*c*Math.sqrt(Math.sqrt(1/(1/(l*l*l*l)+1/(u*u*u*u))));return l=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(l*l)+1/(u*u))),f,i]}function Us(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,i={mode:"okhsl",l:Bo(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let o=Math.sqrt(r*r+n*n);if(!o)return i.s=0,i;let[s,a,c]=Vs(t,r/o,n/o),l;if(o<a){let u=0,f=.8*s,h=1-f/a;l=(o-u)/(f+h*(o-u))*.8}else{let u=a,f=.2*a*a*1.25*1.25/s,h=1-f/(c-a);l=.8+.2*((o-u)/(f+h*(o-u)))}return l&&(i.s=l,i.h=xt(Math.atan2(n,r)*180/Math.PI)),i}function Ks(e){let t=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,i={mode:"oklab",l:ii(n)};if(e.alpha!==void 0&&(i.alpha=e.alpha),!r||n===1)return i.a=i.b=0,i;let o=Math.cos(t/180*Math.PI),s=Math.sin(t/180*Math.PI),[a,c,l]=Vs(i.l,o,s),u,f,h,p;r<.8?(u=1.25*r,f=0,h=.8*a,p=1-h/c):(u=5*(r-.8),f=c,h=.2*c*c*1.25*1.25/a,p=1-h/(l-c));let x=f+u*h/(1-p*u);return i.a=x*o,i.b=x*s,i}var N8={...zs,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Us,rgb:e=>Us(Cn(e))},toMode:{oklab:Ks,rgb:e=>Sn(Ks(e))}},g2=N8;function Zs(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,i=Math.sqrt(r*r+n*n),o=i?r/i:1,s=i?n/i:1,[a,c]=No(o,s),l=.5,u=1-l/a,f=c/(i+t*c),h=f*t,p=f*i,x=ii(h),m=p*x/h,g=Gr({l:x,a:o*m,b:s*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t=t/y,i=i/y*Bo(t)/t,t=Bo(t);let b={mode:"okhsv",s:i?(l+c)*p/(c*l+c*u*p):0,v:t?t/h:0};return b.s&&(b.h=xt(Math.atan2(n,r)*180/Math.PI)),e.alpha!==void 0&&(b.alpha=e.alpha),b}function Qs(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,i=e.v!==void 0?e.v:0,o=Math.cos(r/180*Math.PI),s=Math.sin(r/180*Math.PI),[a,c]=No(o,s),l=.5,u=1-l/a,f=1-n*l/(l+c-c*u*n),h=n*c*l/(l+c-c*u*n),p=ii(f),x=h*p/f,m=Gr({l:p,a:o*x,b:s*x}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=ii(i*f),b=h*y/f;return t.l=y*g,t.a=b*o*g,t.b=b*s*g,t}var G8={...Hs,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Zs,rgb:e=>Zs(Cn(e))},toMode:{oklab:Qs,rgb:e=>Sn(Qs(e))}},x2=G8;function W8(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,n,i,o,s]=t;if(!(n.type===ce.Hue||i.type===ce.Hue||o.type===ce.Hue))return n.type!==ce.None&&(r.l=Math.min(Math.max(0,n.type===ce.Number?n.value:n.value/100),1)),i.type!==ce.None&&(r.a=i.type===ce.Number?i.value:i.value*.4/100),o.type!==ce.None&&(r.b=o.type===ce.Number?o.value:o.value*.4/100),s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var y2=W8;var X8={...Ei,mode:"oklab",toMode:{lrgb:Gr,rgb:Sn},fromMode:{lrgb:Ys,rgb:Cn},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[y2],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},b2=X8;function Y8(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,n,i,o,s]=t;if(n.type!==ce.None){if(n.type===ce.Hue)return;r.l=Math.min(Math.max(0,n.type===ce.Number?n.value:n.value/100),1)}if(i.type!==ce.None&&(r.c=Math.max(0,i.type===ce.Number?i.value:i.value*.4/100)),o.type!==ce.None){if(o.type===ce.Percentage)return;r.h=o.value}return s.type!==ce.None&&(r.alpha=Math.min(1,Math.max(0,s.type===ce.Number?s.value:s.value/100))),r}var _2=Y8;var V8={...Ii,mode:"oklch",toMode:{oklab:e=>gr(e,"oklab"),rgb:e=>Sn(gr(e,"oklab"))},fromMode:{rgb:e=>mr(Cn(e),"oklch"),oklab:e=>mr(e,"oklch")},parse:[_2],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Js=V8;var U8=e=>{let{r:t,g:r,b:n,alpha:i}=_r(e),o={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*n,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*n,z:0*t+.0451133818589026*r+1.043944368900976*n};return i!==void 0&&(o.alpha=i),o},Tu=U8;var K8=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=vr({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return n!==void 0&&(i.alpha=n),i},Mu=K8;var Z8={...br,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Mu(or(e)),xyz65:Mu},toMode:{rgb:e=>sr(Tu(e)),xyz65:Tu}},v2=Z8;var Au=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Q8=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"prophoto",r:Au(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:Au(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:Au(e*0+t*0+1.2119675456389452*r)};return n!==void 0&&(i.alpha=n),i},Lu=Q8;var ku=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},J8=e=>{let t=ku(e.r),r=ku(e.g),n=ku(e.b),i={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*n,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*n,z:0*t+0*r+.8251046025104602*n};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Ru=J8;var eC={...br,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Lu,rgb:e=>Lu(Nr(e))},toMode:{xyz50:Ru,rgb:e=>Br(Ru(e))}},w2=eC;var q2=1.09929682680944,tC=.018053968510807,Pu=e=>{let t=Math.abs(e);return t>tC?(Math.sign(e)||1)*(q2*Math.pow(t,.45)-(q2-1)):4.5*e},rC=({x:e,y:t,z:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"rec2020",r:Pu(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:Pu(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:Pu(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return n!==void 0&&(i.alpha=n),i},Ou=rC;var C2=1.09929682680944,nC=.018053968510807,$u=(e=0)=>{let t=Math.abs(e);return t<nC*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+C2-1)/C2,1/.45)},iC=e=>{let t=$u(e.r),r=$u(e.g),n=$u(e.b),i={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*n,y:.262700212011267*t+.6779980715188708*r+.059301716469862*n,z:0*t+.0280726930490874*r+1.0609850577107909*n};return e.alpha!==void 0&&(i.alpha=e.alpha),i},zu=iC;var oC={...br,mode:"rec2020",fromMode:{xyz65:Ou,rgb:e=>Ou(or(e))},toMode:{xyz65:zu,rgb:e=>sr(zu(e))},parse:["rec2020"],serialize:"rec2020"},S2=oC;var cn=.0037930732552754493,ea=Math.cbrt(cn);var Hu=e=>Math.cbrt(e)-ea,sC=e=>{let{r:t,g:r,b:n,alpha:i}=_r(e),o=Hu(.3*t+.622*r+.078*n+cn),s=Hu(.23*t+.692*r+.078*n+cn),a=Hu(.2434226892454782*t+.2047674442449682*r+.5518098665095535*n+cn),c={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(c.alpha=i),c},E2=sC;var Fu=e=>Math.pow(e+ea,3),aC=({x:e,y:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i=Fu(e+t)-cn,o=Fu(t-e)-cn,s=Fu(r+t)-cn,a=vr({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return n!==void 0&&(a.alpha=n),a},I2=aC;var cC={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:I2},fromMode:{rgb:E2},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ue,y:ue,b:ue,alpha:{use:ue,fixup:nt}}},T2=cC;var lC={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Br,lab:Si},fromMode:{rgb:Nr,lab:Ci},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ue,y:ue,z:ue,alpha:{use:ue,fixup:nt}}},M2=lC;var uC=e=>{let{x:t,y:r,z:n,alpha:i}=e;t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0);let o={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*n,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*n,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*n};return i!==void 0&&(o.alpha=i),o},A2=uC;var dC=e=>{let{x:t,y:r,z:n,alpha:i}=e;t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0);let o={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*n,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*n,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*n};return i!==void 0&&(o.alpha=i),o},L2=dC;var fC={mode:"xyz65",toMode:{rgb:sr,xyz50:A2},fromMode:{rgb:or,xyz50:L2},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ue,y:ue,z:ue,alpha:{use:ue,fixup:nt}}},k2=fC;var hC=({r:e,g:t,b:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return n!==void 0&&(i.alpha=n),i},R2=hC;var pC=({y:e,i:t,q:r,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let i={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return n!==void 0&&(i.alpha=n),i},P2=pC;var mC={mode:"yiq",toMode:{rgb:P2},fromMode:{rgb:R2},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ue,i:ue,q:ue,alpha:{use:ue,fixup:nt}}},O2=mC;var gC=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,xC=(e=4)=>t=>typeof t=="number"?gC(t,e):t,$2=xC;var bj=$2(2),yC=e=>Math.max(0,Math.min(1,e||0)),ta=e=>Math.round(yC(e)*255),z2=ri("rgb"),_j=ri("hsl"),ju=e=>{if(e===void 0)return;let t=ta(e.r),r=ta(e.g),n=ta(e.b);return"#"+(1<<24|t<<16|r<<8|n).toString(16).slice(1)},H2=e=>{if(e===void 0)return;let t=ta(e.alpha!==void 0?e.alpha:1);return ju(e)+(256|t).toString(16).slice(1)};var oi=e=>ju(z2(e)),Du=e=>H2(z2(e));function Go(e){let t=ri("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Wo(e,t){let r=Go(e),n=Go(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}var aD=lt($1),cD=lt(W1),lD=lt(V1),uD=lt(U1),dD=lt(K1),fD=lt(zs),hD=lt(Hs),pD=lt(t2),mD=lt(n2),gD=lt(o2),xD=lt(s2),yD=lt(Ei),bD=lt(c2),_D=lt(Ii),vD=lt(u2),wD=lt(h2),qD=lt(p2),CD=lt(m2),SD=lt(g2),ED=lt(x2),ID=lt(b2),Bu=lt(Js),TD=lt(v2),MD=lt(w2),AD=lt(S2),LD=lt(br),kD=lt(T2),RD=lt(M2),PD=lt(k2),OD=lt(O2);function wr(e){if(!e)return!1;let t=e.trim().toLowerCase();return!(t==="none"||t==="transparent"||t==="")}function ra(e){let t=Qt(e);return t?Go(t)<.5:!1}function ln(e,t){if(t.length===0)return{};let r=Array.isArray(e)?e[t[0]]:e.items[t[0]];if(t.length===1)return r;let n=t.slice(1).map(i=>`children[${i}]`).join(".");return Ss(r,n)}function na(e){let{structure:t,item:r,items:n}=e;return!(!t||!r||n.some(i=>!i))}var Ti="infographic-component";var F2="https://www.weavefox.cn/api/open/v1/icon";var bC=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function Wr(e){let t=[],r="",n=null,i=()=>{let o=r.trim();o&&t.push(o),r=""};for(let o=0;o<e.length;o+=1){let s=e[o];if(n){r+=s,s===n&&(n=null);continue}if(s==='"'||s==="'"){n=s,r+=s;continue}if(s===","){i();continue}r+=s}return i(),t}function j2(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t}function _C(e){let t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")}function vC(e){return/^\d/.test(e)||/\s/.test(e)}function wC(e){let t=e.trim();if(!t||_C(t)||bC.has(t.toLowerCase())||!vC(t))return t;let r=t.includes('"')&&!t.includes("'")?"'":'"';return`${r}${t}${r}`}function Xr(e){let t=Wr(e);return t.length?t.length===1?j2(t[0]):t.map(r=>j2(r)).join(", "):""}function Pr(e){let t=Wr(e);return t.length?t.map(r=>wC(r)).join(", "):e.trim()}var qC={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function ia(e){let t=String(e).toLowerCase();return qC[t]||"regular"}var Xo=new Map,Nu=new Map,CC="sans-serif";function SC(e){return!e||Xo.has(e)?e:Nu.get(e)||e}var EC={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function D2(e){if(e===void 0||e==="normal")return"400";if(e==="bold")return"700";let t={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"};if(typeof e=="string"){let r=e.toLowerCase();return t[r]||e}return String(e)}function B2(e){return e||"normal"}function Gu(e){let t=e.fontFamily,r=D2(e.fontWeight),n=B2(e.fontStyle);if(e.aliases)for(let s of e.aliases)Nu.has(s)||Nu.set(s,t);if(e.glyphsByWidth){let s={...e.glyphs||{}};for(let[a,c]of Object.entries(e.glyphsByWidth))if(typeof c=="string"){let l=Number(a);for(let u of c)s[u]=l}else s[a]=c;e={...e,glyphs:s,glyphsByWidth:void 0}}Xo.has(t)||Xo.set(t,new Map);let i=Xo.get(t);i.has(r)||i.set(r,new Map),i.get(r).set(n,e)}function Wu(e,t,r){let n=SC(e||CC),i=D2(t),o=B2(r),s=Xo.get(n);if(!s)return console.warn(`Font family "${n}" not registered, using fallback font data`),EC;let a=s.get(i);if(a){let l=a.get(o);if(l||o!=="normal"&&(l=a.get("normal"),l))return l;let u=a.values().next().value;if(u)return u}if(a=s.get("400"),a){let l=a.get(o);if(l||o!=="normal"&&(l=a.get("normal"),l))return l;let u=a.values().next().value;if(u)return u}let c=s.values().next().value;if(c){let l=c.values().next().value;if(l)return l}throw new Error(`No font data found for family "${n}" with weight "${i}" and style "${o}"`)}function IC(e,t){if(!t||t==="none")return e;switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.split(" ").map(r=>r.length===0?r:r[0].toUpperCase()+r.slice(1).toLowerCase()).join(" ");default:return e}}function N2(e){if(e===void 0)return 14;if(typeof e=="number")return e;let t=parseFloat(e);return isNaN(t)?16:t}function TC(e,t){let r=N2(e.fontSize),n=e.lineHeight;if(n===void 0){let{ascender:i,descender:o,lineGap:s=0}=t.metrics;return(i-o+s)/t.unitsPerEm*r}return typeof n=="number"?n*r:n.type==="pixel"?n.value:n.type==="percent"?n.value/100*r:r}function Xu(e,t={}){let r=IC(e,t.textTransform),n=Wu(t.fontFamily,t.fontWeight,t.fontStyle),i=N2(t.fontSize),o=t.letterSpacing||0,s=t.wordSpacing||0,a=0,c=Array.from(r);for(let h=0;h<c.length;h++){let p=c[h],x=h<c.length-1?c[h+1]:void 0,m=n.glyphs?.[p];m===void 0&&(m=n.defaultWidth||n.unitsPerEm/2);let g=m/n.unitsPerEm*i;if(a+=g,x&&n.kerning){let y=p+x,b=n.kerning[y];b!==void 0&&(a+=b/n.unitsPerEm*i)}h<c.length-1&&(a+=o),p===" "&&(a+=s)}let l=TC(t,n),{ascender:u}=n.metrics,f=u/n.unitsPerEm*i;return{width:a,height:l,baseline:f}}var G2={fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299,"\xA0":257,"\xA1":357,"\xA6":183,"\xA7":479,"\xA8":346,"\xA9":806,\u00AA:483,"\xAB":511,"\xAD":440,"\xAE":404,"\xAF":346,"\xB0":363,"\xB4":346,"\xB6":593,"\xB7":357,"\xB8":346,\u00BA:445,"\xBB":511,"\xBC":902,"\xBD":914,"\xBE":902,"\xBF":431,\u00C6:889,\u00C7:599,\u00D0:719,\u00D1:737,\u00DD:594,\u00DE:597,\u00DF:610,\u00E6:926,\u00E7:497,\u00FD:527,\u00FE:635,\u00FF:527,\u0106:599,\u0107:497,\u0108:599,\u0109:497,\u010A:599,\u010B:497,\u010C:599,\u010D:497,\u010E:699,\u010F:640,\u0110:719,\u0111:635,\u011C:685,\u011D:636,\u011E:685,\u011F:636,\u0120:685,\u0121:636,\u0122:685,\u0123:636,\u0124:708,\u0126:708,\u0132:545,\u0133:536,\u0134:271,\u0136:614,\u0137:518,\u0138:518,\u0139:507,\u013A:286,\u013B:507,\u013C:286,\u013D:507,\u013E:290,\u013F:507,\u0140:291,\u0141:507,\u0142:286,\u0143:737,\u0145:737,\u0147:737,\u0149:669,\u014A:737,\u0152:987,\u0153:917,\u0154:614,\u0155:379,\u0156:614,\u0157:379,\u0158:614,\u0159:379,\u015A:566,\u015B:479,\u015C:566,\u015D:479,\u015E:566,\u015F:479,\u0160:566,\u0161:479,\u0162:528,\u0163:337,\u0164:528,\u0165:340,\u0166:528,\u0167:337,\u0174:898,\u0175:828,\u0176:594,\u0177:527,\u0178:594,\u0179:626,\u017A:506,\u017B:626,\u017C:506,\u017D:626,\u017E:506,\u017F:310,\u018F:719,\u01CE:608,\u01D0:265,\u01D2:614,\u01D4:609,\u01D6:609,\u01D8:609,\u01DA:609,\u01DC:609,\u01FC:889,\u01FD:926,\u0218:566,\u0219:479,\u021A:528,\u021B:337,"\u0374":255,"\u0375":255,"\u037E":378,"\u0384":346,"\u0385":346,\u0386:670,"\u0387":357,\u0388:628,\u0389:779,\u038A:346,\u038C:765,\u038E:726,\u038F:765,\u0390:312,\u0392:620,\u0393:507,\u0396:626,\u0397:708,\u039A:614,\u039B:617,\u039C:830,\u039D:737,\u03A0:708,\u03A1:597,\u03A3:596,\u03A4:528,\u03A5:594,\u03A6:831,\u03A7:624,\u03A8:804,\u03AB:594,\u03AD:509,\u03AE:643,\u03AF:312,\u03B0:593,\u03B2:610,\u03B3:526,\u03B5:509,\u03B6:465,\u03B7:643,\u03B8:638,\u03B9:312,\u03BA:518,\u03BB:514,\u03BD:526,\u03BE:465,\u03C0:616,\u03C1:619,\u03C2:497,\u03C3:639,\u03C4:437,\u03C5:593,\u03C6:774,\u03C7:509,\u03C8:745,\u03C9:782,\u03CA:312,\u03CB:593,\u03CD:593,\u03CE:782,"\u2010":440,"\u2011":440,"\u2013":495,"\u2014":684,"\u2015":684,"\u2017":500,"\u2018":270,"\u2019":270,"\u201A":270,"\u201B":270,"\u201C":784,"\u201D":784,"\u201E":468,"\u2020":500,"\u2021":500,"\u2022":308,"\u2026":1085,"\u2030":1174,"\u2032":256,"\u2033":472,"\u2034":689,"\u2035":256,"\u2036":472,"\u2037":689,"\u2039":312,"\u203A":312,"\u203C":589,"\u203D":433,"\u203E":500,"\u2044":120,"\u207A":407,"\u207B":407,"\u207C":407,"\u207D":225,"\u207E":225,\u207F:486,"\u208A":407,"\u208B":407,"\u208C":407,"\u208D":225,"\u208E":225,"\u2099":486,"\u20A1":599,"\u20A3":527,"\u20A4":600,"\u20A5":921,"\u20A6":625,"\u20A8":1093,"\u20A9":769,"\u20AA":754,"\u20AB":635,"\u20AD":614,"\u20AE":528,"\u20AF":1288,"\u20B0":950,"\u20B2":685,"\u20B4":576,"\u20B5":599,"\u20B6":576,"\u20B7":700,"\u20B8":528,"\u20BB":750,"\u20BC":683,"\u20BE":577,"\u20BF":620,"\u2103":915,"\u2105":825,"\u2109":868,\u2113:385,"\u2116":1176,"\u2117":806,"\u2121":1022,"\u2122":903,"\u212E":903,"\u215B":930,"\u215C":931,"\u215D":931,"\u215E":871,"\u2166":1166,"\u2202":587,"\u2208":663,"\u220F":708,"\u2211":596,"\u221A":604,"\u221E":679,"\u2227":617,"\u222B":531,"\u222E":654,"\u2248":600,"\u2252":662,"\u25CA":600,"\u3000":0,"\u301E":472},glyphsByWidth:{268:"ij\xEC\xED\xEE\xEF\u0129\u012B\u012D\u012F\u0131\u0135\u0237",274:"I\xCC\xCD\xCE\xCF\u0128\u012A\u012C\u012E\u0130\u0399\u03AA",406:"\xB2\xB3\xB9\u2070\u2074\u2075\u2076\u2077\u2078\u2079\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089",552:"+<=>^~\xAC\xB1\xD7\xF7\u2212\u2215\u2219\u2260\u2264\u2265\u2266\u2267\u226E\u226F",556:"E\xC8\xC9\xCA\xCB\u0112\u0114\u0116\u0118\u011A\u0395\u039E",575:"$0123456789\xA2\xA3\xA4\xA5\u0192\u20A2\u20A7\u20AC\u20B1\u20B9\u20BA\u20BD",578:"e\xE8\xE9\xEA\xEB\u0113\u0115\u0117\u0119\u011B",612:"a\xE0\xE1\xE2\xE3\xE4\xE5\u0101\u0103\u0105\u01FB",613:"u\xB5\xF9\xFA\xFB\xFC\u0169\u016B\u016D\u016F\u0171\u0173\u03AC\u03B1\u03BC\u2228",618:"hno\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF8\u0125\u0127\u0144\u0146\u0148\u014B\u014D\u014F\u0151\u01FF\u03B4\u03BF\u03CC",667:"A\xC0\xC1\xC2\xC3\xC4\xC5\u0100\u0102\u0104\u01FA\u0391\u0394\u20B3\u2206",701:"U\xD9\xDA\xDB\xDC\u0168\u016A\u016C\u016E\u0170\u0172",743:"OQ\xD2\xD3\xD4\xD5\xD6\xD8\u014C\u014E\u0150\u01FE\u0398\u039F\u03A9\u2126",1e3:"\u2500\u2501\u2502\u2503\u2504\u2505\u2506\u2507\u2508\u2509\u250A\u250B\u250C\u250D\u250E\u250F\u2510\u2511\u2512\u2513\u2514\u2515\u2516\u2517\u2518\u2519\u251A\u251B\u251C\u251D\u251E\u251F\u2520\u2521\u2522\u2523\u2524\u2525\u2526\u2527\u2528\u2529\u252A\u252B\u252C\u252D\u252E\u252F\u2530\u2531\u2532\u2533\u2534\u2535\u2536\u2537\u2538\u2539\u253A\u253B\u253C\u253D\u253E\u253F\u2540\u2541\u2542\u2543\u2544\u2545\u2546\u2547\u2548\u2549\u254A\u254B\u2550\u2551\u2552\u2553\u2554\u2555\u2556\u2557\u2558\u2559\u255A\u255B\u255C\u255D\u255E\u255F\u2560\u2561\u2562\u2563\u2564\u2565\u2566\u2567\u2568\u2569\u256A\u256B\u256C\u256D\u256E\u256F\u2570\u2571\u2572\u2573\u2581\u2582\u2583\u2584\u2585\u2586\u2587\u2588\u2589\u258A\u258B\u258C\u258D\u258E\u258F\u2593\u2594\u2595\u25A0\u25A1\u25B2\u25B3\u25BC\u25BD\u25C6\u25C7\u25CB\u25CE\u25CF\u25E2\u25E3\u25E4\u25E5\u2605\u2606\u2609\u2640\u2642\u303E"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}};var Mi=new WeakMap;function Yu(e){let t=Mi.get(e);return t?Array.from(t.values()):[]}function oa(e,t){return Mi.get(e)?.get(t)}function sa(e,t,r){let n=Mi.get(e);return n||(n=new Map,Mi.set(e,n)),n.set(t,r),r.finally(()=>{let i=Mi.get(e);i&&(i.get(t)===r&&i.delete(t),i.size===0&&Mi.delete(e))}),r}async function aa(e){for(await Promise.resolve();;){let t=Yu(e);if(!t.length)break;await Promise.allSettled(t),await Promise.resolve()}}var Vu=new Map,Yo="Alibaba PuHuiTi";function Vo(e){let t=Wr(e);for(let r of t){let n=Vu.get(Xr(r));if(n)return n}return null}function Ai(){return Array.from(Vu.values())}function ca(e){let t={...e};return Vu.set(t.fontFamily,t),t.fontFamily=Pr(t.fontFamily),t}function la(e){let t=Wr(e).flatMap(r=>{let n=Vo(r);if(!n)return[];let{baseUrl:i,fontWeight:o}=n;return Object.values(o).filter(s=>!!s).map(s=>Ko(i,s))});return Array.from(new Set(t))}function Ku(e,t){let r=Wr(e),n=null;for(let s of r)if(n=Vo(s),n)break;if(!n)return null;let i=ia(t),o=n.fontWeight[i];return o?Ko(n.baseUrl,o.replace(/\/result.css$/,"")):null}var Uu=new WeakMap,Uo=new WeakMap;function W2(e,t,r){let n=Uo.get(e);return n||(n=new Map,Uo.set(e,n)),n.set(t,r),r.finally(()=>{let i=Uo.get(e);i&&(i.get(t)===r&&i.delete(t),i.size===0&&Uo.delete(e))}),r}function MC(e){if(e.getAttribute("data-infographic-font-loaded")==="true")return!0;try{return!!e.sheet}catch{return!1}}function AC(e,t,r){let n=Uo.get(e)?.get(t);if(n)return n;if(!r||MC(r))return W2(e,t,Promise.resolve());let i=new Promise(o=>{let s=()=>{r.setAttribute("data-infographic-font-loaded","true"),o()};r.addEventListener("load",s,{once:!0}),r.addEventListener("error",s,{once:!0})});return W2(e,t,i)}function X2(e,t){let r=e.ownerDocument,n=r?.head||document.head;if(!n)return;Uu.has(n)||Uu.set(n,new Map);let i=Uu.get(n),o=la(t);if(!o.length)return;let s=[];o.forEach(a=>{let c=`${t}-${a}`,l=`font:${c}`;if(oa(e,l))return;let u=i.get(c);u||(u=r.createElement("link"),u.id=c,u.rel="stylesheet",u.href=a,s.push(u),i.set(c,u));let f=AC(n,c,u);sa(e,l,f)}),s.length&&n.tagName==="HEAD"&&s.forEach(a=>n.appendChild(a))}function Zu(e){if(Li)return;Ai().forEach(r=>X2(e,r.fontFamily))}var Zo="https://assets.antv.antgroup.com",ki=e=>`${e}/result.css`,Y2=[{fontFamily:"Alibaba PuHuiTi",name:"\u963F\u91CC\u5DF4\u5DF4\u666E\u60E0\u4F53",baseUrl:Zo,fontWeight:{regular:ki("AlibabaPuHuiTi-Regular"),bold:ki("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"\u9ED1\u4F53",baseUrl:Zo,fontWeight:{regular:ki("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"\u5B8B\u4F53",baseUrl:Zo,fontWeight:{regular:ki("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"\u6977\u4F53",baseUrl:Zo,fontWeight:{regular:ki("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"\u624B\u5199\u4F53",baseUrl:Zo,fontWeight:{regular:ki("851tegakizatsu-Regular")}}];Y2.forEach(ca);var V2=new Map;function Qo(e,t){V2.set(e,t)}function ua(e){return V2.get(e)}var kC=["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"];Qo("antv",kC);var RC=(e,t,r)=>{let n=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(r,3),11);return n[i-3][t%i]};Qo("spectral",RC);var si=(e=[],t,r)=>{let n=typeof e=="string"?ua(e)||[]:e,i=t[0]??0;if(typeof n=="function"){let o=r?i/r:0;return n(o,i,r??0)}if(Array.isArray(n))return n.length===0?void 0:n[i%n.length]};function Qu(e,t){if(t.svg?.background===!1)return;let{themeConfig:{colorBg:r}}=t;if(!r)return;let n=e.parentElement;n&&(n.style.backgroundColor=r||"none");let i=Yr(e,"background");if(e.style.backgroundColor=r,i)i.setAttribute("fill",r);else if(e.viewBox?.baseVal){let{x:o,y:s,width:a,height:c}=e.viewBox.baseVal,l=Se("rect",{x:o,y:s,width:a,height:c,fill:r,"data-element-type":"background"});e.prepend(l)}}function un(e,t){return Object.entries(t).reduce((n,[i,o])=>{if(typeof o=="function"){let s=o(e.getAttribute(i),e);s!=null&&(n[i]=s)}else Object.assign(n,{[i]:o});return n},{})}function da(e){return e.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function Ju(e,t){t&&Object.keys(t).length>0&&En(e,r=>{let n=un(r,t);Ve(r,n)})}var U2="btn-add-icon",K2="btn-remove-icon";function ed(e,t){Ve(t,{display:"none"});let r=t.querySelectorAll('[id^="btn-add-"]'),n=t.querySelectorAll('[id^="btn-remove-"]');$C(e),r.forEach(zC),n.forEach(HC)}var OC="btn-icon-defs";function $C(e){let t=Se("defs");Ur(t,OC);let r=Vr(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
|
6
|
-
<path
|
|
7
|
-
d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"
|
|
8
|
-
fill="#339900"></path>
|
|
9
|
-
</symbol>`);r&&(r.setAttribute("id",U2),t.appendChild(r));let n=Vr(`<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
|
10
|
-
<path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>
|
|
11
|
-
<path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>
|
|
12
|
-
</symbol>`);n&&(n.setAttribute("id",K2),t.appendChild(n)),e.prepend(t)}function Z2(e,t){let{id:r,x:n=0,y:i=0,width:o=0,height:s=0}=_t(e,["id","x","y","width","height"]),a=Se("g",{id:r,class:"btn-group",transform:`translate(${n}, ${i})`}),c=e.getAttribute("data-items");c&&a.setAttribute("data-items",c);let l=Math.max(+o,+s)/2,u=Se("circle",{cx:l,cy:l,r:l,fill:"#fff",stroke:"transparent"});a.appendChild(u);let f=Se("use",{href:`#${t}`,width:o,height:s});a.appendChild(f),a.style.cursor="pointer",e.replaceWith(a)}function zC(e){Z2(e,U2)}function HC(e){Z2(e,K2)}function FC(e){return e.startsWith("data:")}async function In(e){if(!e||!FC(e))return null;let t=e.match(/^data:([^;]+)/)?.[1];if(!t)return null;let r=()=>new Promise((c,l)=>{let u=new Image;u.onload=()=>{let f=u.naturalWidth,h=u.naturalHeight,p=document.createElement("canvas"),x=p.getContext("2d");if(!x)return c({width:f,height:h,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(t))return c({width:f,height:h,hasAlpha:!1});p.width=f,p.height=h,x.drawImage(u,0,0);let m=!1,g=10;for(let y=0;y<f&&!m;y+=g)for(let b=0;b<h;b+=g)if(x.getImageData(y,b,1,1).data[3]<255){m=!0;break}c({width:f,height:h,hasAlpha:m})},u.onerror=()=>l(new Error("Failed to analysis image")),u.src=e}),{width:n,height:i,hasAlpha:o}=await r(),a=(()=>{if(o||t?.includes("image/gif")||t?.includes("image/svg")||Math.min(n,i)<=200)return"xMidYMid meet";let l=n/i;return l>=.6&&l<=1.67||l<.3||l>3.33?"xMidYMid meet":"xMidYMid slice"})();return Vr(`
|
|
13
|
-
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${n} ${i}" preserveAspectRatio="${a}">
|
|
14
|
-
<image href="${e}" width="${n}" height="${i}" />
|
|
15
|
-
</symbol>`)}function jC(e){let t=e.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(t)||t.startsWith("<symbol")}function dn(e){if(!e||!jC(e))return null;let t=e.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>");return Vr(t)}function DC(e){try{return!!new URL(e)}catch{return!1}}function BC(e,t){return!!(e.toLowerCase().includes("image/svg")||!e&&t==="svg")}async function fa(e,t){if(!e||!DC(e))return null;let r=await ai(e);if(!r.ok)throw new Error("Failed to load resource");let n=r.headers.get("Content-Type")||"";if(BC(n,t)){let s=await r.text();return dn(s)}let i=await r.blob(),o=await NC(i);return In(o)}function NC(e){return new Promise((t,r)=>{let n=new FileReader;n.onloadend=()=>{t(n.result)},n.onerror=r,n.readAsDataURL(e)})}var GC=async e=>{try{let t=new URLSearchParams({text:e,topK:"1"}),r=`${F2}?${t.toString()}`,n=await ai(r);if(!n.ok)return null;let i=await n.json();return!i?.status||!Array.isArray(i.data?.data)?null:i.data.data[0]||null}catch(t){return console.error(`Failed to query icon for "${e}":`,t),null}};function WC(e){return e.startsWith("data:")}function XC(e){let t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}async function td(e,t){if(!e)return null;let r=await GC(e);if(!r)return null;if(XC(r))return dn(r);if(WC(r)){let n=r.match(/^data:([^;]+)/)?.[1]||"",i=r.includes(";base64,");if(n==="image/svg+xml"&&!i){let o=r.indexOf(","),s=o>=0?r.slice(o+1):r;return dn(s)}return n==="image/svg+xml"&&t==="svg"&&i?In(r):In(r)}return fa(r,t)}var YC=null;function Q2(){return YC}function J2(e){if(!e.startsWith("data:"))return null;let t=e.indexOf(",");if(t===-1)return null;let r=e.slice(5,t),n=e.slice(t+1),i=r.split(";"),o=i[0],s=i.includes("base64");return o==="image/svg+xml"&&!s?{source:"inline",format:"svg",encoding:"raw",data:n.startsWith("%3C")?decodeURIComponent(n):n}:o.startsWith("image/")?{source:"inline",format:o==="image/svg+xml"?"svg":"image",encoding:s?"base64":"data-uri",data:e}:null}var VC=new Set(["svg","png","jpg","jpeg","webp","gif"]);function UC(e){let t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}function KC(e){let t=e.toLowerCase();if(t.endsWith(".svg")||t.includes(".svg?"))return"svg";if(t.endsWith(".png")||t.endsWith(".jpg")||t.endsWith(".jpeg")||t.endsWith(".webp")||t.endsWith(".gif"))return"image"}function ZC(e){if(!e.startsWith("ref:"))return null;let t=e.slice(4),[r,...n]=t.split(":");if(!r||n.length===0)return null;let i;n.length>1&&VC.has(n[0].toLowerCase())&&(i=n.shift()?.toLowerCase());let o=n.join(":");if(!o)return null;let s=r==="url"?"remote":r;return s==="remote"?{source:"remote",format:i||KC(o)||void 0,data:o}:s==="search"?{source:"search",format:i||"svg",data:o}:s==="svg"?{source:"inline",format:"svg",data:o,encoding:"raw"}:{source:"custom",data:e,format:i}}function Tn(e){if(!e)return null;if(typeof e!="string"){if(e.source)return e;let n=e;return n.type==="image"?{source:"inline",format:"image",data:n.data}:n.type==="svg"?{source:"inline",format:"svg",encoding:"raw",data:n.data}:n.type==="remote"?{source:"remote",format:n.format,data:n.data}:n.type==="search"?{source:"search",format:n.format||"svg",data:n.data}:n.type==="custom"?{source:"custom",data:n.data}:null}let t=J2(e);if(t)return t;let r=ZC(e);return r||(UC(e)?{source:"inline",format:"svg",encoding:"raw",data:e}:{source:"custom",data:e})}function Ri(e){let t=typeof e=="string"?Tn(e):e;return t?"rsc-"+ha(JSON.stringify(t)):null}function Pi(e){let t=Ri(e);return t?`#${t}`:null}async function QC(e,t,r){let n=Tn(t);if(!n)return null;n.scene||(n.scene=e);let{source:i,data:o,format:s,encoding:a}=n,c=null;try{if(i==="inline"){let l=o.startsWith("data:");s==="svg"&&a==="raw"?c=dn(o):s==="svg"&&l?c=await In(o):l||s==="image"?c=await In(o):c=dn(o)}else if(i==="remote")c=await fa(o,s);else if(i==="search")c=await td(o,s);else{let l=Q2();l&&(c=await l(n))}}catch{c=null}return c||await td(JC(n,e,r),s)}var ex=new Map,pa=new WeakMap;async function Jo(e,t,r,n){if(!e)return null;let i=Tn(r);if(!i)return null;let o=Ri(i),s=`resource:${o}`;if(pa.get(e)?.has(o))return o;let c=oa(e,s);if(c)return await c;let l=(async()=>{let u=ex.has(o)?ex.get(o)||null:await QC(t,i,n);if(!u)return null;pa.has(e)||pa.set(e,new Map);let f=pa.get(e);if(f.has(o))return o;let h=Mn(e);return u.id=o,h.appendChild(u),f.set(o,u),o})();return sa(e,s,l),await l}function JC(e,t,r){let n=t==="illus"?"illustration":"icon",i=ma(e.data)||ma(r?.label)||ma(r?.desc);if(i)return i;let o=ma(e.data);return!o||e.source==="inline"||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?n:o}function ma(e){if(typeof e!="string")return null;let t=e.trim();return t||null}function rd(e,t,r,n){let i=r.icon;if(!i)return null;let{themeConfig:o}=n,s=r.attributes?.icon,a={...o.item?.icon,...s},c=un(t,a);return tS(e,t,i,c,r)}function tS(e,t,r,n,i){return Jo(e,"icon",r,i),tx(r,{..._t(t,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"]),...n})}function ga(e,t,r,n,i={}){if(!r)return null;let o=Tn(r);if(!o)return null;let s=Ri(o);i&&Object.keys(i).length>0&&Ve(t,i);let a=rS(e,t,s);Jo(e,"illus",o,n);let{data:c,color:l}=o;return nS(s,{...iS(t),...l?{color:l}:{},...i,"clip-path":`url(#${a})`},c)}function nd(e,t,r){let n=r.illus,i=r.attributes?.illus;return ga(e,t,n,r,i)}function rS(e,t,r){let n=`clip-${r}-${nx()}`;if(e.querySelector(`#${n}`))return n;let i=Mn(e),o=Se("clipPath",{id:n}),s=t.cloneNode();return rx(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),n}function nS(e,t,r){let{"clip-path":n,...i}=t,{x:o="0",y:s="0",width:a="0",height:c="0"}=i,l=Se("rect",{id:`${e}-volume`,"data-element-type":"illus-volume",x:o,y:s,width:a,height:c,fill:"transparent"}),u=Se("g",{"data-element-type":"illus-group","clip-path":n,id:`${e}-group`});u.appendChild(l);let f=Se("use",{id:e,fill:"lightgray",...i,href:Pi(r),"data-element-type":"illus"});return u.appendChild(f),u}function iS(e){let t=e.getAttribute("data-illus-bounds");if(!t)return{x:"0",y:"0",width:"0",height:"0",..._t(e,["x","y","width","height"])};let[r,n,i,o]=t.split(" ");return{x:r,y:n,width:i,height:o}}function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xa(e)}var oS=/^\s+/,sS=/\s+$/;function le(e,t){if(e=e||"",t=t||{},e instanceof le)return e;if(!(this instanceof le))return new le(e,t);var r=aS(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}le.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,i,o,s,a;return r=t.r/255,n=t.g/255,i=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(t){return this._a=ux(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ox(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ox(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+i+"%)":"hsva("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=ix(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ix(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+i+"%)":"hsla("+r+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return sx(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return dS(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ct(this._r,255)*100)+"%",g:Math.round(Ct(this._g,255)*100)+"%",b:Math.round(Ct(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ct(this._r,255)*100)+"%, "+Math.round(Ct(this._g,255)*100)+"%, "+Math.round(Ct(this._b,255)*100)+"%)":"rgba("+Math.round(Ct(this._r,255)*100)+"%, "+Math.round(Ct(this._g,255)*100)+"%, "+Math.round(Ct(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:qS[sx(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ax(this._r,this._g,this._b,this._a),n=r,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=le(t);n="#"+ax(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0,o=!r&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return le(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(mS,arguments)},brighten:function(){return this._applyModification(gS,arguments)},darken:function(){return this._applyModification(xS,arguments)},desaturate:function(){return this._applyModification(fS,arguments)},saturate:function(){return this._applyModification(hS,arguments)},greyscale:function(){return this._applyModification(pS,arguments)},spin:function(){return this._applyModification(yS,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(vS,arguments)},complement:function(){return this._applyCombination(bS,arguments)},monochromatic:function(){return this._applyCombination(wS,arguments)},splitcomplement:function(){return this._applyCombination(_S,arguments)},triad:function(){return this._applyCombination(cx,[3])},tetrad:function(){return this._applyCombination(cx,[4])}};le.fromRatio=function(e,t){if(xa(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=es(e[n]));e=r}return le(e,t)};function aS(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=IS(e)),xa(e)=="object"&&(fn(e.r)&&fn(e.g)&&fn(e.b)?(t=cS(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fn(e.h)&&fn(e.s)&&fn(e.v)?(n=es(e.s),i=es(e.v),t=uS(e.h,n,i),s=!0,a="hsv"):fn(e.h)&&fn(e.s)&&fn(e.l)&&(n=es(e.s),o=es(e.l),t=lS(e.h,n,o),s=!0,a="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ux(r),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function cS(e,t,r){return{r:Ct(e,255)*255,g:Ct(t,255)*255,b:Ct(r,255)*255}}function ix(e,t,r){e=Ct(e,255),t=Ct(t,255),r=Ct(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,s,a=(n+i)/2;if(n==i)o=s=0;else{var c=n-i;switch(s=a>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s,l:a}}function lS(e,t,r){var n,i,o;e=Ct(e,360),t=Ct(t,100),r=Ct(r,100);function s(l,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?l+(u-l)*6*f:f<1/2?u:f<2/3?l+(u-l)*(2/3-f)*6:l}if(t===0)n=i=o=r;else{var a=r<.5?r*(1+t):r+t-r*t,c=2*r-a;n=s(c,a,e+1/3),i=s(c,a,e),o=s(c,a,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function ox(e,t,r){e=Ct(e,255),t=Ct(t,255),r=Ct(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,s,a=n,c=n-i;if(s=n===0?0:c/n,n==i)o=0;else{switch(n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s,v:a}}function uS(e,t,r){e=Ct(e,360)*6,t=Ct(t,100),r=Ct(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),s=r*(1-i*t),a=r*(1-(1-i)*t),c=n%6,l=[r,s,o,o,a,r][c],u=[a,r,r,s,o,o][c],f=[o,o,a,r,r,s][c];return{r:l*255,g:u*255,b:f*255}}function sx(e,t,r,n){var i=[$r(Math.round(e).toString(16)),$r(Math.round(t).toString(16)),$r(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function dS(e,t,r,n,i){var o=[$r(Math.round(e).toString(16)),$r(Math.round(t).toString(16)),$r(Math.round(r).toString(16)),$r(dx(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function ax(e,t,r,n){var i=[$r(dx(n)),$r(Math.round(e).toString(16)),$r(Math.round(t).toString(16)),$r(Math.round(r).toString(16))];return i.join("")}le.equals=function(e,t){return!e||!t?!1:le(e).toRgbString()==le(t).toRgbString()};le.random=function(){return le.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function fS(e,t){t=t===0?0:t||10;var r=le(e).toHsl();return r.s-=t/100,r.s=ya(r.s),le(r)}function hS(e,t){t=t===0?0:t||10;var r=le(e).toHsl();return r.s+=t/100,r.s=ya(r.s),le(r)}function pS(e){return le(e).desaturate(100)}function mS(e,t){t=t===0?0:t||10;var r=le(e).toHsl();return r.l+=t/100,r.l=ya(r.l),le(r)}function gS(e,t){t=t===0?0:t||10;var r=le(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),le(r)}function xS(e,t){t=t===0?0:t||10;var r=le(e).toHsl();return r.l-=t/100,r.l=ya(r.l),le(r)}function yS(e,t){var r=le(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,le(r)}function bS(e){var t=le(e).toHsl();return t.h=(t.h+180)%360,le(t)}function cx(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=le(e).toHsl(),n=[le(e)],i=360/t,o=1;o<t;o++)n.push(le({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function _S(e){var t=le(e).toHsl(),r=t.h;return[le(e),le({h:(r+72)%360,s:t.s,l:t.l}),le({h:(r+216)%360,s:t.s,l:t.l})]}function vS(e,t,r){t=t||6,r=r||30;var n=le(e).toHsl(),i=360/r,o=[le(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(le(n));return o}function wS(e,t){t=t||6;for(var r=le(e).toHsv(),n=r.h,i=r.s,o=r.v,s=[],a=1/t;t--;)s.push(le({h:n,s:i,v:o})),o=(o+a)%1;return s}le.mix=function(e,t,r){r=r===0?0:r||50;var n=le(e).toRgb(),i=le(t).toRgb(),o=r/100,s={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return le(s)};le.readability=function(e,t){var r=le(e),n=le(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};le.isReadable=function(e,t,r){var n=le.readability(e,t),i,o;switch(o=!1,i=TS(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};le.mostReadable=function(e,t,r){var n=null,i=0,o,s,a,c;r=r||{},s=r.includeFallbackColors,a=r.level,c=r.size;for(var l=0;l<t.length;l++)o=le.readability(e,t[l]),o>i&&(i=o,n=le(t[l]));return le.isReadable(e,n,{level:a,size:c})||!s?n:(r.includeFallbackColors=!1,le.mostReadable(e,["#fff","#000"],r))};var id=le.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},qS=le.hexNames=CS(id);function CS(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ux(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ct(e,t){SS(e)&&(e="100%");var r=ES(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ya(e){return Math.min(1,Math.max(0,e))}function xr(e){return parseInt(e,16)}function SS(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function ES(e){return typeof e=="string"&&e.indexOf("%")!=-1}function $r(e){return e.length==1?"0"+e:""+e}function es(e){return e<=1&&(e=e*100+"%"),e}function dx(e){return Math.round(parseFloat(e)*255).toString(16)}function lx(e){return xr(e)/255}var Or=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function fn(e){return!!Or.CSS_UNIT.exec(e)}function IS(e){e=e.replace(oS,"").replace(sS,"").toLowerCase();var t=!1;if(id[e])e=id[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:xr(r[1]),g:xr(r[2]),b:xr(r[3]),a:lx(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:xr(r[1]),g:xr(r[2]),b:xr(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:xr(r[1]+""+r[1]),g:xr(r[2]+""+r[2]),b:xr(r[3]+""+r[3]),a:lx(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:xr(r[1]+""+r[1]),g:xr(r[2]+""+r[2]),b:xr(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function TS(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}function ba(e,t,r,n){let i=e.getAttribute(n),o=MS(i,r),{type:s,colors:a=[]}=o,c=a.length-1,l=a.map((p,x)=>typeof p=="string"?Se("stop",{offset:`${x/c}`,"stop-color":p}):Se("stop",{offset:`${p.offset}`,"stop-color":p.color})),u=AS(o);if(s==="linear-gradient"){let{angle:p=0}=o,[[x,m],[g,y]]=LS(p),b=Se("linearGradient",{id:u,x1:x,y1:m,x2:g,y2:y});l.forEach(_=>b.appendChild(_)),fx(t,u,b)}else if(s==="radial-gradient"){let p=Se("radialGradient",{id:u});l.forEach(x=>p.appendChild(x)),fx(t,u,p)}let f=e.getAttribute("fill"),h=e.getAttribute("stroke");wr(f)&&e.setAttribute("fill",`url(#${u})`),wr(h)&&e.setAttribute("stroke",`url(#${u})`)}function fx(e,t,r){let n=Mn(e);r.setAttribute("id",t);let i=n.querySelector(`#${t}`);i?i.replaceWith(r):n.appendChild(r)}function MS(e,t){if(t.colors?.length||!e)return t;let r=le(e),n={...t};return n.colors=r.isDark()?[e,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),e],!("angle"in t)&&n.type==="linear-gradient"&&(n.angle=225),n}function AS(e){let{type:t,colors:r=[]}=e,n=da(r.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(t==="linear-gradient"){let{angle:i=0}=e;return`${t}-${n}-${i}`}return`${t}-${n}`}function LS(e){let t=Math.PI/180*e,r=Math.cos(t),n=Math.sin(t);return[[.5-r/2,.5-n/2],[.5+r/2,.5+n/2]]}var od={};$9(od,{diamond:()=>hx,dot:()=>px,hex:()=>mx,line:()=>gx,mosaic:()=>xx,square:()=>yx});var hx=({scale:e=.5,backgroundColor:t,foregroundColor:r})=>{let n=Se("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Se("rect",{width:"100%",height:"100%",fill:t}),o=Se("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:r,"stroke-width":"1"});return n.appendChild(i),n.appendChild(o),n};var px=({scale:e=1,backgroundColor:t,foregroundColor:r})=>{let n=Se("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Se("rect",{width:"100%",height:"100%",fill:t}),o=Se("circle",{cx:"5",cy:"5",r:"3",fill:r}),s=Se("circle",{cx:"15",cy:"15",r:"3",fill:r});return n.appendChild(i),n.appendChild(o),n.appendChild(s),n};var mx=({scale:e=.3,backgroundColor:t,foregroundColor:r})=>{let n=Se("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Se("rect",{width:"100%",height:"100%",fill:t}),o=Se("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:r});return n.appendChild(i),n.appendChild(o),n};var gx=({scale:e=1,backgroundColor:t,foregroundColor:r})=>{let o=Se("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),s=Se("rect",{width:"100%",height:"100%",fill:t}),a=Se("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:r,"stroke-width":6,"stroke-opacity":"0.5"}),c=Se("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:r,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(c),o};var xx=({scale:e=1,backgroundColor:t="#ffffff",foregroundColor:r="#000000"})=>{let a=Se("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${e})`}),c=Se("rect",{width:"100%",height:"100%",fill:t});a.appendChild(c);for(let l=0;l<4;l++)for(let u=0;u<4;u++)if((u+l)%2===0){let f=Se("rect",{x:u*5,y:l*5,width:5,height:5,fill:r});a.appendChild(f)}return a};var yx=({scale:e=.3,backgroundColor:t,foregroundColor:r})=>{let n=Se("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Se("rect",{width:"100%",height:"100%",fill:t}),o=Se("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:r});return n.appendChild(i),n.appendChild(o),n};var sd=new Map;function _a(e,t){sd.has(e)&&console.warn(`Pattern ${e} will be overwritten`),sd.set(e,t)}for(let[e,t]of Object.entries(od))_a(e,t);function ad(e,t,r){let n=r.themeConfig.stylize;if(!n||n.type!=="pattern")return;let{pattern:i,...o}=n,s=sd.get(i);if(!s)return console.warn(`Pattern ${i} not found`);let{fill:a}=_t(e,["fill","stroke"]),c=a,l={backgroundColor:c&&le(c).setAlpha(.5).toRgbString(),foregroundColor:c,...o},u=RS({...n,...l});kS(t,u,s(l)),wr(a)&&(e.setAttribute("fill",`url(#${u})`),!e.getAttribute("stroke")&&a&&e.setAttribute("stroke",a))}function kS(e,t,r){let n=Mn(e);r.setAttribute("id",t);let i=n.querySelector(`pattern#${t}`);i?i.replaceWith(r):n.appendChild(r)}function RS(e){let{pattern:t,foregroundColor:r="unset",backgroundColor:n="unset",scale:i="unset"}=e;return da(`pattern-${t}-${r}-${n}-${i}`)}function cd(e,t,r){if(!e||!t){console.warn("Invalid node or svg element");return}let n=s1.svg(t,{options:{seed:1e3}}),i=Se("g");e.hasAttribute("transform")&&i.setAttribute("transform",e.getAttribute("transform")||"");let o=e.cloneNode();Ve(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);let s=OS(n,e,r);if(s){let{element:c,svgAttributes:l}=s;c.dataset.elementType="rough-element",c.style.pointerEvents="none",PS(c,l),i.appendChild(c)}e.id&&(i.id=e.id),Array.from(e.classList).forEach(c=>{i.classList.contains(c)||i.classList.add(c)}),Array.from(e.attributes).forEach(c=>{c.name.startsWith("data-")&&i.setAttribute(c.name,c.value)}),i.childElementCount>0?e.replaceWith(i):e.remove()}function PS(e,t){t.opacity!==void 0&&e.setAttribute("opacity",String(t.opacity)),t.fillOpacity!==void 0&&e.setAttribute("fill-opacity",String(t.fillOpacity)),t.strokeOpacity!==void 0&&e.setAttribute("stroke-opacity",String(t.strokeOpacity)),t.strokeLinecap&&e.setAttribute("stroke-linecap",t.strokeLinecap),t.strokeLinejoin&&e.setAttribute("stroke-linejoin",t.strokeLinejoin),t.strokeDasharray&&e.setAttribute("stroke-dasharray",t.strokeDasharray),t.filter&&e.setAttribute("filter",t.filter),t.clipPath&&e.setAttribute("clip-path",t.clipPath),t.mask&&e.setAttribute("mask",t.mask)}function OS(e,t,r){let n=t.nodeName.toLowerCase(),i=(o,s)=>{let a=_t(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),c={},l={...r},u={};s.forEach(C=>{a[C]!==void 0&&(c[C]=a[C])});let{fill:f,"fill-opacity":h,stroke:p,"stroke-opacity":x,"stroke-width":m,"stroke-dasharray":g,"stroke-linecap":y,"stroke-linejoin":b,opacity:_,filter:v,"clip-path":w,mask:q}=a;if(l.fill=f||"none",l.stroke=p||(f&&f!=="none"?f:"currentColor"),m&&(l.strokeWidth=parseFloat(m)),g&&g!=="none"){let C=g.split(/[\s,]+/).map(S=>parseFloat(S)).filter(S=>!isNaN(S));C.length>0&&(l.strokeLineDash=C)}return h&&(u.fillOpacity=parseFloat(h)),x&&(u.strokeOpacity=parseFloat(x)),_&&(u.opacity=parseFloat(_)),y&&(u.strokeLinecap=y),b&&(u.strokeLinejoin=b),g&&g!=="none"&&(u.strokeDasharray=g),v&&(u.filter=v),w&&(u.clipPath=w),q&&(u.mask=q),[c,l,u]};try{let o=null,s={};switch(n){case"circle":{let[a,c,l]=i(t,["cx","cy","r"]),u=parseFloat(a.cx)||0,f=parseFloat(a.cy)||0,h=parseFloat(a.r)||0;o=e.circle(u,f,h*2,c),s=l;break}case"ellipse":{let[a,c,l]=i(t,["cx","cy","rx","ry"]),u=parseFloat(a.cx)||0,f=parseFloat(a.cy)||0,h=parseFloat(a.rx)||0,p=parseFloat(a.ry)||0;o=e.ellipse(u,f,h*2,p*2,c),s=l;break}case"line":{let[a,c,l]=i(t,["x1","y1","x2","y2"]),u=parseFloat(a.x1)||0,f=parseFloat(a.y1)||0,h=parseFloat(a.x2)||0,p=parseFloat(a.y2)||0;o=e.line(u,f,h,p,c),s=l;break}case"rect":{let[a,c,l]=i(t,["x","y","width","height","rx","ry"]),u=parseFloat(a.x)||0,f=parseFloat(a.y)||0,h=parseFloat(a.width)||0,p=parseFloat(a.height)||0,x=parseFloat(a.rx)||0,m=parseFloat(a.ry)||0;if(x>0||m>0){let b=$S(u,f,h,p,x||m,m||x);o=e.path(b,c)}else o=e.rectangle(u,f,h,p,c);s=l;break}case"path":{let[a,c,l]=i(t,["d"]),u=a.d||"";if(!u)return console.warn("Path element has no d attribute"),null;o=e.path(u,c),s=l;break}case"polygon":{let[a,c,l]=i(t,["points"]),u=bx(a.points||"");if(u.length<3)return console.warn("Polygon needs at least 3 points"),null;o=e.polygon(u,c),s=l;break}case"polyline":{let[a,c,l]=i(t,["points"]),u=bx(a.points||"");if(u.length<2)return console.warn("Polyline needs at least 2 points"),null;o=e.linearPath(u,c),s=l;break}default:return console.warn(`Unsupported shape type: ${n}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${n}:`,o),null}}function $S(e,t,r,n,i,o){return i=Math.min(i,r/2),o=Math.min(o,n/2),`
|
|
16
|
-
M ${e+i} ${t}
|
|
17
|
-
L ${e+r-i} ${t}
|
|
18
|
-
A ${i} ${o} 0 0 1 ${e+r} ${t+o}
|
|
19
|
-
L ${e+r} ${t+n-o}
|
|
20
|
-
A ${i} ${o} 0 0 1 ${e+r-i} ${t+n}
|
|
21
|
-
L ${e+i} ${t+n}
|
|
22
|
-
A ${i} ${o} 0 0 1 ${e} ${t+n-o}
|
|
23
|
-
L ${e} ${t+o}
|
|
24
|
-
A ${i} ${o} 0 0 1 ${e+i} ${t}
|
|
25
|
-
Z
|
|
26
|
-
`.replace(/\s+/g," ").trim()}function bx(e){if(!e||typeof e!="string")return[];try{let r=e.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),n=[];for(let i=0;i<r.length-1;i+=2){let o=parseFloat(r[i]),s=parseFloat(r[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${r[i]}", "${r[i+1]}"`);continue}n.push([o,s])}return r.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${r[r.length-1]}"`),n}catch(t){return console.error("Failed to parse polygon points:",e,t),[]}}function va(e,t,r){let{themeConfig:n}=r,i=Object.assign({},n.base?.shape,n.shape),o=un(t,i);return Ve(t,o),zS(t,e,r),t}function ld(e,t){Ve(e,t.themeConfig.base?.shape||{})}function zS(e,t,r){let n=r.themeConfig.stylize;if(!n)return e;let{type:i}=n;if(!i)return e;if(i==="rough")return cd(e,t,n);if(i==="pattern")return ad(e,t,r);if(i==="linear-gradient"||i==="radial-gradient"){let{fill:o,stroke:s}=_t(e,["fill","stroke"]);wr(o)&&ba(e,t,n,"fill"),wr(s)&&ba(e,t,n,"stroke");return}}function ud(e,t){let{themeConfig:r}=t,{"font-family":n=Yo}=r.base?.text||{};e.setAttribute("font-family",n)}function ts(e,t,r={}){if(!t)return null;let n=e,i=un(n,r);Ve(n,i);let o=HS(t,n);for(let s in n.dataset)o.setAttribute(`data-${l1(s)}`,n.dataset[s]);return o}function dd(e,t,r){let n=t.nodeName==="text"?t:null;if(!n)return null;let{data:i,themeConfig:o}=r,s=qa(t.dataset.indexes||"0"),a=ln(i,s),c=String(Ss(a,e,"")),l=a?.attributes?.[e],u=Object.assign({},o.base?.text,o.item?.[e],l),f=un(n,u);return ts(t,t.textContent||c,f)}function fd(e,t){let r=t.themeConfig.base?.text||{};Ve(e,r),r["font-family"]&&e.setAttribute("font-family",Pr(r["font-family"])),e.style.userSelect="none",e.style.pointerEvents="none"}var wa=(e,t)=>e?parseFloat(e):t;function HS(e,t){let r=wa(t.dataset.x,0),n=wa(t.dataset.y,0),i=wa(t.getAttribute("width")),o=wa(t.getAttribute("height")),s=FS(t);return Object.assign(s,{x:r,y:n,width:i,height:o,"data-horizontal-align":t.dataset.horizontalAlign||"LEFT","data-vertical-align":t.dataset.verticalAlign||"TOP"}),_x(e,s)}function FS(e){return _t(e,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}var ci=(e,t)=>{e!==t&&(t?e.replaceWith(t):e.remove())},rs=class{constructor(t,r){this.options=t,this.template=r,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){let t=this.getSVG();if(this.rendered)return t;jS(t,this.options),t.style.visibility="hidden";let r=()=>{NS(this.template,this.options),Zu(this.template),t.style.removeProperty("visibility")};if(Li)r();else{let n=new MutationObserver(i=>{i.forEach(o=>{o.addedNodes.forEach(s=>{(s===t||s.contains(t))&&(r(),n.disconnect())})})});try{n.observe(document,{childList:!0,subtree:!0})}catch(i){r(),console.error(i)}}return this.rendered=!0,t}};function jS(e,t){DS(e,t),BS(e,t),Qu(e,t)}function DS(e,t){let{themeConfig:r,data:n}=t;Ju(e,r.base?.global),e.querySelectorAll("[data-element-type]").forEach(o=>{let s=o.id||"";if(vx(o)){let a=ts(o,n.title||"",Object.assign({},r.base?.text,r.title,n.attributes?.title));return ci(o,a)}if(wx(o)){let a=ts(o,n.desc||"",Object.assign({},r.base?.text,r.desc,n.attributes?.desc));return ci(o,a)}if(Sx(o)){let a=ga(e,o,n.illus?.[s],void 0,n.attributes?.illus);return ci(o,a)}if(Cx(o))return Array.from(o.children).forEach(a=>{va(e,a,t)});if(qx(o)){let a=va(e,o,t);return ci(o,a)}if(kx(o))return ed(e,o);if(o.dataset.elementType?.startsWith("item-")){let a=qa(o.dataset.indexes||"0"),c=o.dataset.elementType.replace("item-",""),l=ln(n,a);if(Tx(o)||Mx(o)||Ax(o)){let u=dd(c,o,t);return ci(o,u)}if(!l)return;if(Lx(o)){let u=nd(e,o,l);return ci(o,u)}if(ns(o)){let u=rd(e,o,l,t);return ci(o,u)}}if(Ex(o))return fd(o,t);if(!Ix(o))return ld(o,t)}),ud(e,t)}function BS(e,t){let{width:r,height:n}=t,{style:i={},attributes:o={},id:s,className:a}=t.svg||{};s&&(e.id=s),a&&e.classList.add(a),r!==void 0&&e.setAttribute("width",typeof r=="number"?`${r}px`:r),n!==void 0&&e.setAttribute("height",typeof n=="number"?`${n}px`:n),Object.assign(e.style,i),Ve(e,o)}function NS(e,t){let{padding:r=0,viewBox:n}=t;n?e.setAttribute("viewBox",n):r!==void 0&&Ca(e,ar(r))}var Rx;function Px(){if(Rx)return!0;if(typeof window>"u"||typeof document>"u")return!1;let e=document.body;if(!e)return!1;let t=!1;try{let n=document.createElement("div");n.style.cssText=`
|
|
27
|
-
position: absolute;
|
|
28
|
-
left: 11px;
|
|
29
|
-
top: 13px;
|
|
30
|
-
width: 37px;
|
|
31
|
-
height: 19px;
|
|
32
|
-
padding: 0;
|
|
33
|
-
margin: 0;
|
|
34
|
-
border: 0;
|
|
35
|
-
visibility: hidden;
|
|
36
|
-
`,e.appendChild(n),n.offsetHeight;let i=n.getBoundingClientRect();e.removeChild(n),t=i.width===37&&i.height===19&&i.left!==0&&i.top!==0}catch{t=!1}if(!t)return!1;let r=!1;try{let n=document.createElement("canvas");n.width=100,n.height=50;let i=n.getContext("2d");if(!i)return!1;i.font="20px sans-serif";let o=i.measureText("Hello");r=typeof o.width=="number"&&o.width>0&&o.width<1e3}catch{r=!1}return r&&(Rx=r),r}var Ox=1.01;Gu(G2);var Sa=null,cr=null;function GS(){return Sa||(Sa=document.createElement("canvas").getContext("2d"),Sa)}function WS(){return document.body?cr||(cr=document.createElement("span"),cr.style.position="absolute",cr.style.top="-10000px",cr.style.left="-10000px",cr.style.visibility="hidden",cr.style.pointerEvents="none",cr.style.whiteSpace="pre",cr.style.display="inline-block",cr.style.padding="0",cr.style.margin="0",document.body.appendChild(cr),cr):null}function XS(e,t){if(t==null)return e*1.4;if(typeof t=="string"){let r=t.trim();if(r.endsWith("px")){let n=Number.parseFloat(r);return Number.isFinite(n)?n:e*1.4}t=Number(r)}return typeof t!="number"||!Number.isFinite(t)?e*1.4:t>4?t:t*e}function YS(e,{fontFamily:t,fontSize:r,fontWeight:n,lineHeight:i}){let o=e.split(/\r?\n/),s=Pr(t),a=n||"normal",c=XS(r,i),l=GS();if(l)return l.font=`${a} ${r}px ${s}`,{width:o.reduce((p,x)=>{let m=l.measureText(x);return Math.max(p,m.width)},0),height:c*Math.max(o.length,1)};let u=WS();if(!u)return null;u.style.fontFamily=s,u.style.fontSize=`${r}px`,u.style.fontWeight=String(a),u.style.lineHeight=`${c}px`,u.textContent=e;let f=u.getBoundingClientRect();return{width:f.width,height:f.height}}function Ea(e="",t){if(t.width&&t.height)return{width:t.width,height:t.height};if(typeof e!="string"&&typeof e!="number")return{width:0,height:0};let{fontFamily:r=Yo,fontSize:n=14,fontWeight:i="normal",lineHeight:o=1.4}=t,s=e.toString(),a={fontFamily:r,fontSize:parseFloat(n.toString()),fontWeight:i,lineHeight:o},c=()=>Xu(s,a),l=Px()?YS(s,a)??c():c();return{width:Math.ceil(l.width*Ox),height:Math.ceil(l.height*Ox)}}function Se(e,t={}){let r=document.createElementNS("http://www.w3.org/2000/svg",e);return Ve(r,t),r}function Vr(e){let r=new DOMParser().parseFromString(e,"image/svg+xml");if(r.querySelector("parsererror"))throw new Error("Invalid SVG string");return r.documentElement}function Ve(e,t){Object.entries(t).forEach(([r,n])=>{n==null?e.removeAttribute(r):e.setAttribute(r,n)})}function _t(e,t,r=!0){return t.reduce((n,i)=>{let o=e.getAttribute(i);return(!r||o!==null&&o!==""&&o!==void 0)&&(n[i]=o),n},{})}function rx(e,t){t.forEach(r=>{e.removeAttribute(r)})}function En(e,t){if(t(e)===!1)return;Array.from(e.children).forEach(n=>{En(n,t)})}function Mn(e,t="infographic-defs"){let r=t?`defs#${t}`:"defs",n=e.querySelector(r);if(n)return n;let i=Se("defs");return t&&(i.id=t),e.prepend(i),i}function hn(e){return Ta(e)?e.querySelector("span"):null}function _x(e,t){let r=document.createElement("span");r.setAttribute("xmlns","http://www.w3.org/1999/xhtml");let n=Se("foreignObject",{overflow:"visible"});return n.appendChild(r),hd(n,{textContent:e,attributes:t}),n}function hd(e,t){let{textContent:r,attributes:n}=t;if(r!==void 0&&Ia(e,r),!n)return;let i=hn(e),{width:o,height:s}=n,a={};if(i){if(Object.assign(i.style,US(n)),!o||!s){let p=r??Oi(e),{fontFamily:x,fontSize:m,fontWeight:g,lineHeight:y}=i.style,b=m?parseFloat(String(m)):12,_=Ea(p,{fontFamily:x,fontSize:b,fontWeight:g,lineHeight:y.endsWith("px")?parseFloat(y):(parseFloat(y)||1.4)*b});!o&&!e.hasAttribute("width")&&(o=String(_.width)),!s&&!e.hasAttribute("height")&&(s=String(_.height))}let{"data-horizontal-align":f,"data-vertical-align":h}=n;Object.assign(i.style,VS(f,h))}let{id:c,x:l,y:u}=n;c&&(a.id=c),l!==void 0&&(a.x=String(l)),u!==void 0&&(a.y=String(u)),o!==void 0&&(a.width=String(o)),s!==void 0&&(a.height=String(s)),Ve(e,a)}function VS(e,t){let r={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(e){case"LEFT":r.textAlign="left",r.justifyContent="flex-start";break;case"CENTER":r.textAlign="center",r.justifyContent="center";break;case"RIGHT":r.textAlign="right",r.justifyContent="flex-end";break}switch(t){case"TOP":r.alignContent="flex-start",r.alignItems="flex-start";break;case"MIDDLE":r.alignContent="center",r.alignItems="center";break;case"BOTTOM":r.alignContent="flex-end",r.alignItems="flex-end";break}return r}function US(e){let{x:t,y:r,width:n,height:i,["data-horizontal-align"]:o,["data-vertical-align"]:s,["font-size"]:a,["letter-spacing"]:c,["line-height"]:l,fill:u,["stroke-width"]:f,["text-anchor"]:h,["dominant-baseline"]:p,["font-family"]:x,...m}=e,g={overflow:"visible"};return u&&(g.color=u),Object.entries(m).forEach(([y,b])=>{g[a1(y)]=b}),a&&(g.fontSize=`${a}px`),l&&(g.lineHeight=typeof l=="string"&&l.endsWith("px")?l:+l),c&&(g.letterSpacing=`${c}px`),f&&(g.strokeWidth=`${f}px`),x&&(g.fontFamily=Pr(x)),g}function Oi(e){let t=hn(e);return t&&(t.innerText||t.textContent)||""}function Ia(e,t){let r=hn(e);if(r)try{r.innerText=t}catch{r.textContent=t}}function is(e){let t=hn(e);if(!t)return{};let{color:r,fontSize:n,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=t.style,[c,l]=KS(o,s),u={"data-horizontal-align":c,"data-vertical-align":l};return i&&(u["font-family"]=Xr(i)),a&&(u["font-weight"]=a),n&&(u["font-size"]=String(parseInt(n))),r&&(u.fill=r),{attributes:u,textContent:Oi(e)}}function KS(e,t){let r="LEFT",n="TOP";switch(e){case"flex-start":r="LEFT";break;case"center":r="CENTER";break;case"flex-end":r="RIGHT";break}switch(t){case"flex-start":n="TOP";break;case"center":n="MIDDLE";break;case"flex-end":n="BOTTOM";break}return[r,n]}var Jt=(e,t)=>e?.dataset?.elementType===t,Ma=(e,t)=>e.tagName.toLowerCase()===t.toLowerCase();var vx=e=>Jt(e,"title"),wx=e=>Jt(e,"desc"),qx=e=>Jt(e,"shape"),Cx=e=>Jt(e,"shapes-group"),Sx=e=>Jt(e,"illus"),Ex=e=>e instanceof SVGElement&&Ma(e,"text"),Ix=e=>e instanceof SVGElement&&Ma(e,"g"),ns=e=>Jt(e,"item-icon"),pd=e=>Jt(e,"item-icon-group"),Tx=e=>Jt(e,"item-label"),Mx=e=>Jt(e,"item-desc"),Ax=e=>Jt(e,"item-value"),Lx=e=>Jt(e,"item-illus"),$x=e=>Jt(e,"edit-area"),kx=e=>Jt(e,"btns-group");var zx=e=>Jt(e,"rough-element"),Hx=e=>Jt(e,"rough-volume");function Ta(e){return Ma(e,"foreignObject")}function Fx(e){return Ma(e,"SPAN")}function Wt(e){let t=$i(e);return["title","desc","item-label","item-desc"].includes(t)}function Aa(e){if(!e||!Wt(e))return!1;let t=hn(e);return t?t.hasAttribute("contenteditable"):!1}function jx(e){let t=e.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(t)}function er(e){return ns(e)||pd(e)}function Dx(e){let t=e;for(;t;){if(Yr(t,Ti))return!0;t=t.parentElement}return!1}function Ur(e,t){e.setAttribute("data-element-type",t)}function Yr(e,t){return e.querySelector(`[data-element-type="${t}"]`)}function $i(e){return er(e)?"item-icon":e.getAttribute("data-element-type")||"unknown"}function Bx(e){var t,r,n,i=e||1;function o(a,c){++t>i&&(n=r,s(1),++t),r[a]=c}function s(a){t=0,r=Object.create(null),a||(n=Object.create(null))}return s(),{clear:s,has:function(a){return r[a]!==void 0||n[a]!==void 0},get:function(a){var c=r[a];if(c!==void 0)return c;if((c=n[a])!==void 0)return o(a,c),c},set:function(a,c){r[a]!==void 0?r[a]=c:o(a,c)}}}var Gx=globalThis.fetch,ZS=1024,md=Bx(ZS),gd=new Map;function QS(e){let t=Array.from(e.headers.entries());return t.length===0?"":(t.sort(([r],[n])=>r.toLowerCase().localeCompare(n.toLowerCase())),t.map(([r,n])=>`${r.toLowerCase()}:${n}`).join("|"))}function JS(e){let t=QS(e);return t?`${e.method}:${e.url}:${t}`:`${e.method}:${e.url}`}function Nx(e){return new Response(e.body.slice(0),e.init)}async function eE(e,t){try{let r=await Gx(e),i={body:await r.arrayBuffer(),init:{status:r.status,statusText:r.statusText,headers:Array.from(r.headers.entries())}};return r.ok&&md.set(t,i),i}finally{gd.delete(t)}}async function ai(e,t){let r=new Request(e,t);if(r.method!=="GET")return Gx(r);let n=JS(r);if(md.has(n))return Nx(md.get(n));let i=gd.get(n);i||(i=eE(r,n),gd.set(n,i));let o=await i;return Nx(o)}function Wx(e,t={title:"\u4FE1\u606F\u56FE\u6807\u9898",desc:"\u4FE1\u606F\u56FE\u63CF\u8FF0",items:"\u4FE1\u606F\u56FE\u7684\u5185\u5BB9\u9879",label:"\u9879\u76EE\u6807\u7B7E\u6587\u672C",value:"\u9879\u76EE\u6570\u503C\u5185\u5BB9",icon:"\u9879\u76EE\u56FE\u6807",illus:"\u9879\u76EE\u63D2\u56FE",children:"\u5B50\u7EA7\u9879\u76EE\uFF08\u591A\u5C42\u7ED3\u6784\uFF09"}){let{structure:r,items:n}=e,i=[],o=c=>" ".repeat(c);function s(c,l,u){let f=t[c];return f?`${o(u)}/** ${f} */
|
|
37
|
-
${o(u)}${c}: ${l};`:`${o(u)}${c}: ${l};`}function a(c,l){let u=n[c],f=[];for(let h of u){let p=h==="value"?"number":"string";f.push(s(h,p,l+1))}return n[c+1]&&f.push(s("children",`Array<${a(c+1,l+1)}>`,l+1)),`{
|
|
38
|
-
${f.join(`
|
|
39
|
-
`)}
|
|
40
|
-
${o(l)}}`}return i.push("type InfographicType = {"),r.includes("title")&&(i.push(s("title","string",1)),i.push(s("desc","string",1))),r.includes("item")&&n.length>0&&i.push(s("items",`Array<${a(0,1)}>`,1)),i.push("}"),i.join(`
|
|
41
|
-
`)}function ha(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t=(t<<5)-t+n,t=t&t}return Math.abs(t).toString()}var tE=new WeakMap;function tx(e,t={}){let r=Se("use",{...t,href:Pi(e)});return Xx(r),tE.set(r,e),r}function Xx(e){let{stroke:t,fill:r}=_t(e,["fill","stroke"]);e.style.color=r||t||"currentColor"}function zi(e){return e.tagName==="use"?e:e.querySelector("use")}function os(e){let t=zi(e);return t?_t(t,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}function Yx(e,t,r){let n=zi(e);n&&(t&&Ve(n,{href:Pi(t)}),r&&Ve(n,r),Xx(n))}var Li=!!(typeof process<"u"&&process.versions&&process.versions.node);var rE=(e,t=",")=>e.split(t).map(r=>parseInt(r,10)),qa=e=>rE(e);function Ko(...e){return e.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function Hi(e){let t=e.getAttribute("viewBox");if(t){let[s,a,c,l]=t.split(" ").map(Number);return{x:s,y:a,width:c,height:l}}let r=e.getAttribute("width"),n=e.getAttribute("height"),i=Number(r)||0,o=Number(n)||0;return{x:0,y:0,width:i,height:o}}function ar(e){return e?typeof e=="number"?[e,e,e,e]:e.length===1?[e[0],e[0],e[0],e[0]]:e.length===2?[e[0],e[1],e[0],e[1]]:e.length===3?[e[0],e[1],e[2],e[1]]:e.length===4?[e[0],e[1],e[2],e[3]]:[0,0,0,0]:[0,0,0,0]}function Ca(e,t){if(Li)Vx(e,t);else if(document.contains(e))Ux(e,t);else try{let r=new MutationObserver(n=>{n.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(nE(e,()=>{Ux(e,t)}),r.disconnect())})})});r.observe(document,{childList:!0,subtree:!0})}catch{Vx(e,t)}}function Vx(e,t){let r=Hi(e),[n,i,o,s]=t;Ve(e,{viewBox:`${r.x-s} ${r.y-n} ${r.width+s+i} ${r.height+n+o}`})}function Ux(e,t){let r=e.getBBox(),n=e.getBoundingClientRect(),i=n.width>0?r.width/n.width:1,o=n.height>0?r.height/n.height:1,[s,a,c,l]=t,u=s*o,f=a*i,h=c*o,p=l*i,x=r.x-p,m=r.y-u,g=r.width+p+f,y=r.height+u+h;Ve(e,{viewBox:`${x} ${m} ${g} ${y}`})}function nE(e,t){requestAnimationFrame(()=>{let r=()=>{let n=e.getBoundingClientRect();n.width>0&&n.height>0?t():requestAnimationFrame(r)};r()})}function At(e,t){if(document.getElementById(e))return;let r=document.createElement("style");r.id=e,r.textContent=t,document.head.appendChild(r)}function nx(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function qe(e){let{id:t,x:r=0,y:n=0,width:i,height:o,alignHorizontal:s="left",alignVertical:a="top",children:c,fontSize:l=14,fontFamily:u,fontStyle:f,fontWeight:h,textDecoration:p,letterSpacing:x,wordSpacing:m,opacity:g,fill:y="black",lineHeight:b,wordWrap:_,backgroundColor:v="none",backgroundOpacity:w=1,backgroundRadius:q=0,...C}=e,S=i,I=o,M=0,T=0;if(!S||!I){let k=Ea(c,e);S||(S=k.width),I||(I=k.height)}i&&(M=s==="center"?S/2:s==="right"?S:0),o&&(T=a==="middle"?I/2:a==="bottom"?I:0);let P=Object.entries({width:S,height:I,...b!==void 0&&{"line-height":b},..._!==void 0&&{"data-word-wrap":_}}).reduce((k,[R,G])=>({...k,[R]:G}),{}),B={"data-element-type":"text",width:S,height:I,x:M,y:T,"data-x":0,"data-y":0,fill:y,fontSize:l,textAnchor:s==="center"?"middle":s==="right"?"end":"start",dominantBaseline:a==="middle"?"central":a==="bottom"?"baseline":"hanging","data-horizontal-align":s.toUpperCase(),"data-vertical-align":a.toUpperCase(),children:c,...P,...C,...u&&{fontFamily:u},...f&&{fontStyle:f},...h&&{fontWeight:h},...p&&p!=="none"&&{textDecoration:p},...x&&{letterSpacing:x},...m&&{wordSpacing:m},...g!==void 0&&g!==1&&{opacity:g}},H={...r!==0||n!==0?{x:r,y:n,transform:`translate(${r}, ${n})`}:{},width:S,height:I,...t&&{id:t}},D=v&&v!=="none"?{"data-element-type":"shape",x:0,y:0,width:S,height:I,fill:v,fillOpacity:w,rx:q,ry:q}:void 0;return{type:"g",props:{...H,children:[...D?[{type:"rect",props:D}]:[],{type:"text",props:B}]}}}function Kx(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.type===De}function La(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"type"in e}function ji(e){return Fi(e).filter(La)}function Fi(e,t=[]){if(!e||typeof e=="boolean")return t;if(Array.isArray(e))e.forEach(r=>Fi(r,t));else if(Kx(e)){let r=e.props?.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(n=>{Fi(n,t)})}else t.push(e);return t}function dt(e){return typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}var ka=()=>({x:0,y:0,width:0,height:0});function zr(e){if(!e||e.length===0)return ka();let t=1/0,r=1/0,n=-1/0,i=-1/0;for(let o of e){let{x:s,y:a,width:c,height:l}=o,u=s+c,f=a+l;s<t&&(t=s),a<r&&(r=a),u>n&&(n=u),f>i&&(i=f)}return t===1/0||r===1/0||n===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,i-r)}}function Y(e){if(!e)return ka();if(Array.isArray(e)){let l=ji(e);return Kr(l)}if(typeof e!="object")return ka();let{type:t,props:r={}}=e;if(ss(e)){let l=Ra(e);return Y(l)}if(typeof t=="function"){let l=r.x??0,u=r.y??0,f=r.width,h=r.height;if(dt(f)&&dt(h))return{x:l,y:u,width:f,height:h};let p=t(r);if(!p)return{x:l,y:u,width:f??0,height:h??0};if(Array.isArray(p)){let x=ji(p),m=Kr(x);if(dt(f)&&dt(h))return{x:l,y:u,width:f,height:h};let g=m.width!==0?m.width:f??0,y=m.height!==0?m.height:h??0;return{x:l+m.x,y:u+m.y,width:g,height:y}}if(La(p)){let x=p,m=Y(x);if(iE(x,r))return m;let g=x.props&&dt(x.props.width)&&dt(x.props.height),_=Zx(x).flatMap(C=>ji(C)).length>0,v=x.props&&x.props.x===r.x&&x.props.y===r.y;if(g)return{x:v?m.x:l+m.x,y:v?m.y:u+m.y,width:m.width,height:m.height};if(dt(f)&&dt(h))return _?{x:v?m.x:l,y:v?m.y:u,width:f,height:h}:{x:v?m.x:l+m.x,y:v?m.y:u+m.y,width:f,height:h};let w=m.width!==0?m.width:f??0,q=m.height!==0?m.height:h??0;return{x:v?m.x:l+m.x,y:v?m.y:u+m.y,width:w,height:q}}return{x:l,y:u,width:f??0,height:h??0}}let n=r.x??0,i=r.y??0,o=dt(r.width)?r.width:void 0,s=dt(r.height)?r.height:void 0;if(dt(o)&&dt(s))return{x:n,y:i,width:o,height:s};let c=Zx(e).flatMap(l=>ji(l));if(c.length>0){let l=Kr(c);return{x:n+l.x,y:i+l.y,width:dt(o)?o:l.width,height:dt(s)?s:l.height}}return{x:n,y:i,width:o??0,height:s??0}}function Kr(e){if(!e||!Array.isArray(e)||e.length===0)return ka();let t=[];for(let r of e){let n=ji(r);for(let i of n){let o=Y(i);o&&t.push(o)}}return zr(t)}function iE(e,t){if(!e?.props||!t)return!1;let r=e.props;if(dt(r.x)&&dt(r.y)&&dt(t.x)&&dt(t.y)&&r.x===t.x&&r.y===t.y){let n=dt(r.width)&&dt(r.height),i=dt(t.width)&&dt(t.height);if(!n&&!i)return!0}return dt(r.x)&&dt(r.y)&&dt(r.width)&&dt(r.height)&&dt(t.x)&&dt(t.y)&&dt(t.width)&&dt(t.height)?r.x===t.x&&r.y===t.y&&r.width===t.width&&r.height===t.height:!1}function Zx(e){let t=e.props?.children;return t?Array.isArray(t)?t:[t]:[]}function as(e){return e==null||typeof e=="boolean"?[]:Array.isArray(e)?Fi(e):typeof e=="object"?Fi(e.props?.children):[e]}var qr=(e,t)=>{let{type:r,props:n,...i}=e;return{type:r,props:{...n,...t},...i}};var Pa=()=>({defs:new Map});function Oa(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return String(e).replace(/[&<>"']/g,r=>t[r])}var Qx={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function Jx(e){return Qx[e]?Qx[e]:e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var xd=new Map;function Di(e){let t=Symbol("layout");return xd.set(t,e),n=>({type:t,props:n})}function ss(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.type=="symbol"&&xd.has(e.type)}function Ra(e,t=Pa()){let r=xd.get(e.type);if(!r)return console.warn("Layout function not found for symbol:",e.type),e;let n=as(e).filter(i=>typeof i=="object");return r(n,e.props,t)}function cs(e,t){if(e==null||typeof e=="boolean")return null;if(typeof e=="string"||typeof e=="number")return e;if(Array.isArray(e))return e.map(n=>cs(n,t)).filter(Boolean);if(ss(e)){let n=Ra(e,t);return cs(n,t)}if(typeof e.type=="function"){let n=e.type(e.props);return cs(n,t)}let r=as(e).map(n=>cs(n,t)).filter(Boolean);return e.type===De?r:e.type===Is?(r.forEach(n=>{typeof n=="object"&&n.props.id&&t.defs.set(n.props.id,n)}),null):r.length?qr(e,{children:r}):e}function ls(e,t){if(e==null)return"";if(typeof e=="string")return Oa(e);if(typeof e=="number")return String(e);let{type:r,props:n}=e;if(!r)return"";let i=as(e);if(r===De)return i.map(c=>ls(c,t)).filter(Boolean).join("");if(r===Is)return"";if(typeof r=="function"||ss(e))return console.warn("Unexpected unprocessed component in render:",e),"";let o=ey(n),s=i.map(c=>ls(c,t)).filter(Boolean).join(""),a=String(r);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function $a(e,t={}){let r=Pa(),n=cs(e,r);if(!n)return"";let i=Array.isArray(n)?n.map(m=>ls(m,r)).join(""):ls(n,r),{x:o,y:s,width:a,height:c,style:l,...u}=t,f={...u,xmlns:"http://www.w3.org/2000/svg"};if(!f.viewBox)if(a&&c)f.viewBox=`${o??0} ${s??0} ${a??0} ${c??0}`;else{let m=Y(n);if(m){let{x:g,y,width:b,height:_}=m;f.viewBox=`${g} ${y} ${b} ${_}`}}let h=ey(f),p=oE(l),x=r.defs.size?`<defs>${Array.from(r.defs.values()).map(m=>ls(m,r)).join("")}</defs>`:"";return`<svg${h}${p}>${x}${i}</svg>`}function ey(e){if(!e)return"";let{children:t,...r}=e;return Object.entries(r).filter(([,n])=>n!=null).map(([n,i])=>{let o=Jx(n),s=typeof i=="string"?Oa(String(i)):String(i);return` ${o}="${s}"`}).join("")}function oE(e){if(!e||Object.keys(e).length===0)return"";let t=Object.entries(e).map(([r,n])=>`${r.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${n};`).join("");return` style="${Oa(t)}"`}var V=e=>{let{indexes:t,...r}=e;return d(we,{...{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":t,"data-element-type":"btn-add"},...r})},Pe=e=>{let{indexes:t,...r}=e;return d(we,{...{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":t,"data-element-type":"btn-remove"},...r})};var Ce=e=>d(O,{"data-element-type":"btns-group",width:0,height:0,...e,display:"none"});var mt=()=>d(De,{});var ty=({indexes:e,...t})=>{let n={...{fill:"lightgray"},...t};return e?(n["data-indexes"]=e,n["data-element-type"]="item-illus"):n["data-element-type"]="illus",d(we,{...n})};var Ue=({indexes:e,lineNumber:t=2,children:r,...n})=>{if(!r)return null;let i={fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r,...n};return i.height??(i.height=Math.ceil(t*+i.lineHeight*+i.fontSize)),d(qe,{...i,"data-indexes":e,"data-element-type":"item-desc"})};var ft=e=>{let{indexes:t,size:r=32,...n}=e,i={fill:"lightgray",width:r,height:r,...n};return d(we,{...i,"data-indexes":t,"data-element-type":"item-icon"})},Cr=e=>{let{indexes:t,size:r=50,fill:n,colorBg:i="white",...o}=e,s=r/Math.SQRT2*.9,a=(r-s)/2,c={fill:i,...o,x:a,y:a,width:s,height:s};return E(O,{...o,width:r,height:r,"data-element-type":"item-icon-group",children:[d(je,{width:r,height:r,fill:n,"data-element-type":"shape"}),d(we,{...c,"data-indexes":t,"data-element-type":"item-icon"})]})};var Me=({indexes:e,children:t,...r})=>{let n={fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:t,...r};return n.height??(n.height=Math.ceil(+n.lineHeight*+n.fontSize)),d(qe,{...n,"data-indexes":e,"data-element-type":"item-label"})};var ye=e=>d(O,{"data-element-type":"items-group",...e});var An=({indexes:e,value:t,formatter:r=i=>String(i),...n})=>{let i={fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r(t),"data-value":t,...n};return i.height??(i.height=Math.ceil(+i.lineHeight*+i.fontSize)),d(qe,{...i,"data-indexes":e,"data-element-type":"item-value"})};var ot=e=>d(O,{"data-element-type":"shapes-group",...e});var Zr=Di((e,{horizontal:t,vertical:r,...n})=>{if(!e||e.length===0)return d(O,{...n});let i=e.map(h=>Y(h)),o=Kr(e),s=n.x??o.x,a=n.y??o.y,c=n.width??o.width,l=n.height??o.height,u=e.map((h,p)=>{let x=i[p],m={...h.props};if(t!==void 0)switch(t){case"left":m.x=-x.x;break;case"center":m.x=(c-x.width)/2-x.x;break;case"right":m.x=c-x.width-x.x;break}else m.x===void 0&&(m.x=x.x-s);if(r!==void 0)switch(r){case"top":m.y=-x.y;break;case"middle":m.y=(l-x.height)/2-x.y;break;case"bottom":m.y=l-x.height-x.y;break}else m.y===void 0&&(m.y=x.y-a);return qr(h,m)}),f={...n,x:s,y:a,width:c,height:l};return d(O,{...f,children:u})});var Z=Di((e,{flexDirection:t="row",justifyContent:r="flex-start",alignItems:n="flex-start",alignContent:i="flex-start",flexWrap:o="nowrap",gap:s=0,...a})=>{if(!e||e.length===0)return d(O,{...a});let c=t==="row"||t==="row-reverse",l=t==="row-reverse"||t==="column-reverse",u=e.map(w=>Y(w)),f=Kr(e),h=a.width??f.width,p=a.height??f.height,x=a.width!==void 0&&a.height!==void 0,m=[];if(o==="wrap"&&x){let w=[],q=[],C=0;for(let S=0;S<e.length;S++){let I=e[S],M=u[S],T=c?M.width:M.height,P=c?h:p;w.length===0||C+s+T<=P?(w.push(I),q.push(M),C+=(w.length>1?s:0)+T):(m.push({children:w,bounds:q}),w=[I],q=[M],C=T)}w.length>0&&m.push({children:w,bounds:q})}else m.push({children:e,bounds:u});let g=[],y=0,b=[];if(m.forEach(w=>{let{children:q,bounds:C}=w,S=C.reduce((j,B,H)=>{let X=c?B.width:B.height;return j+X+(H>0?s:0)},0),I=Math.max(...C.map(j=>c?j.height:j.width));b.push(I);let M=0,T=(c?h:p)-S;if(x)switch(r){case"flex-end":M=T;break;case"center":M=T/2;break;case"space-between":M=0;break;default:M=0;break}let P=s;x&&r==="space-between"&&q.length>1&&(P=T/(q.length-1)+s);let A=M;q.forEach((j,B)=>{let H=C[B],X=c?H.width:H.height,D=c?H.height:H.width,k=c?H.x:H.y,R=c?H.y:H.x,G=y;if(x)switch(n){case"flex-end":G=y+I-D;break;case"center":G=y+(I-D)/2;break;default:G=y;break}let W,N;c?(W=l?h-A-X-k:A-k,N=G-R):(W=G-R,N=l?p-A-X-k:A-k);let L=qr(j,{x:W,y:N});g.push(L),A+=X+P}),y+=I+s}),m.length>1&&x){let w=b.reduce((S,I)=>S+I,0)+(m.length-1)*s,q=(c?p:h)-w,C=0;switch(i){case"flex-end":C=q;break;case"center":C=q/2;break;case"space-between":if(m.length>1){let S=q/(m.length-1),I=0;m.forEach((M,T)=>{let P=m.slice(0,T).reduce((j,B)=>j+B.children.length,0),A=P+M.children.length;for(let j=P;j<A;j++){let B=g[j],H={...B.props};c?H.y=(H.y||0)+I:H.x=(H.x||0)+I,g[j]=qr(B,H)}I+=b[T]+s+(T<m.length-1?S:0)});break}break;default:C=0;break}C!==0&&i!=="space-between"&&g.forEach((S,I)=>{let M={...S.props};c?M.y=(M.y||0)+C:M.x=(M.x||0)+C,g[I]=qr(S,M)})}if(!x&&n==="center")if(c){let w=Math.max(...u.map(q=>q.height));g.forEach((q,C)=>{let S=u[C],I=(w-S.height)/2,M={...q.props};M.y=(M.y||0)+I,g[C]=qr(q,M)})}else{let w=Math.max(...u.map(q=>q.width));g.forEach((q,C)=>{let S=u[C],I=(w-S.width)/2,M={...q.props};M.x=(M.x||0)+I,g[C]=qr(q,M)})}let _=Kr(g),v={...a,x:a.x??f.x,y:a.y??f.y,width:a.width??_.width,height:a.height??_.height};return d(O,{...v,children:g})});var ry=e=>{let{x:t=0,y:r=0,alignHorizontal:n="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=e,c=u=>{let f={fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:n};return d(qe,{...f,...u,"data-element-type":"title",children:i})},l=u=>{let f={fontSize:16,fill:a.colorTextSecondary,alignHorizontal:n,lineHeight:1.4,height:s*24};return d(qe,{...f,...u,"data-element-type":"desc",children:o})};return!i&&!o?null:E(Z,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:t,y:r,gap:8,children:[i&&d(c,{}),o&&d(l,{})]})};var ny=new Map;function za(e,t){ny.set(e,t)}function yd(e){return ny.get(e)}za("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}});za("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});lt(Js);var us=({colorPrimary:e,colorBg:t="#ffffff",isDarkMode:r=!1})=>{let n=Qt(e),i=Qt(t),o=hE({primaryColor:n,bgColor:i});return pE(o,{primaryColor:n,bgColor:i,isDarkMode:r})},cE=(e,t)=>Du({...e,alpha:t?.2:.1})||"#ffffff",lE=(e,t)=>{if(t)return"#ffffff";let r=Qt("#262626");return Wo(r,e)>=7?oi(r):"#000000"},uE=e=>{let t=Bu(Qt(e)),r={...t,l:Math.min(1,t.l+.2)};return oi(r)},dE=(e,t)=>{let r=Qt(e),n=Qt("#262626"),i=Qt("#ffffff"),o=Wo(n,r);return Wo(i,r)>=3?oi(i):o>=4.5?oi(n):"#ffffff"},fE=(e,t)=>{let r=Bu(e);if(t){let n={...r,l:Math.min(1,r.l+.1)};return Ha(n,"#1f1f1f")}else{if(r.l>.95)return"#ffffff";{let n={...r,l:Math.min(1,r.l+.05)};return Ha(n,"#ffffff")}}},hE=({primaryColor:e,bgColor:t})=>({colorPrimary:Ha(e,"#FF356A"),colorBg:Ha(t,"#ffffff"),colorWhite:"#ffffff"}),pE=(e,{primaryColor:t,bgColor:r,isDarkMode:n})=>{let i=lE(r,n),o=cE(t,n);return{...e,isDarkMode:n,colorPrimaryBg:o,colorText:i,colorTextSecondary:uE(i),colorPrimaryText:dE(o,n),colorBgElevated:fE(r,n)}};function Ha(e,t="#000000"){return oi(e)??t}var bd="#FF356A";function Qe(e){return e?.themeConfig?.colorPrimary||bd}function Fa(e){let{themeConfig:t={},data:r}=e,{colorPrimary:n,palette:i}=t;return!i||i.length===0?Array(r?.items?.length||1).fill(n||bd):r.items.map((o,s)=>si(i,[s],r.items.length)||bd)}function Ee(e,t){return si(e?.themeConfig?.palette,t,e.data?.items?.length)}function it(e,t){let{colorBg:r=t?.themeConfig?.colorBg||"white",colorPrimary:n=t?Qe(t):"black"}=e;return us({colorPrimary:n,isDarkMode:ra(r),colorBg:r})}function ja(e,t){let{depth:r,originalIndexes:n,flatIndex:i}=e;switch(t){case"level":return[r];case"branch":return r===0?[0]:r===1?[n[1]+1]:[n[1]+1];case"node":return n;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),n);default:return[0]}}function He(e,t=[]){let r={...e},n={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...t].forEach(o=>{o in r&&(n[o]=r[o],delete r[o])}),["x","y","width","height"].forEach(o=>{o in e&&(r[o]=e[o])}),[n,r]}function Bi(e,t){return e.length===0?()=>null:t===void 0?e[0]:e[t]??e[0]}var iy=new Map;function Fe(e,t){iy.set(e,t)}function _d(e){return iy.get(e)}var mE=e=>{let[{datum:t,indexes:r,width:n=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:c="normal",themeColors:l,valueFormatter:u},f]=He(e,["width","height","iconSize","badgeSize","gap"]),h=t.value,p=h!==void 0,x=!!t.desc,m=!!t.icon,g=`${l.colorPrimary}-badge`,y=c==="flipped"?n-a-s:a,b=m?c==="flipped"?a:s+2*a:a,_=n-a*2,v=m?n-s-3*a:_,w=a+14+18+8,q=w-a,C=x?a:(i-s)/2,S=!p&&!x?(i-14)/2:a,I=!m&&c==="center"?"center":c==="flipped"?"right":"left";return E(O,{...f,width:n,height:i,children:[d(ke,{children:E("radialGradient",{id:g,cx:"50%",cy:"50%",r:"50%",children:[d("stop",{offset:"0%",stopColor:l.colorPrimary}),d("stop",{offset:"100%",stopColor:le(l.colorPrimary).darken(20).toHexString()})]})}),d(we,{"data-element-type":"shape",x:0,y:0,width:n,height:i,fill:l.colorPrimaryBg,rx:8,ry:8}),m&&E(De,{children:[d(je,{x:y,y:C,width:s,height:s,fill:`url(#${g})`}),d(ft,{indexes:r,x:y+(s-o)/2,y:C+(s-o)/2,size:o,fill:l.colorWhite})]}),E(Z,{flexDirection:"column",x:b,y:S,width:v,height:!p&&!x?void 0:q,alignItems:"center",justifyContent:"center",children:[d(Me,{indexes:r,width:v,alignHorizontal:I,alignVertical:"middle",fontSize:14,fill:l.colorText,children:t.label}),p&&d(An,{indexes:r,width:v,alignHorizontal:c==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:l.colorPrimary,value:h,formatter:u})]}),x&&d(Ue,{indexes:r,x:a,y:w,width:_,alignHorizontal:I,fontSize:11,fill:l.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:t.desc})]})};Fe("badge-card",{component:mE,composites:["icon","label","value","desc"]});var gE=e=>{let[{indexes:t,datum:r,width:n=280,height:i=140,themeColors:o},s]=He(e,["width","height"]);return E(O,{...s,children:[d("rect",{x:0,y:0,width:n,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),d(ae,{x:n-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),d(Me,{indexes:t,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:r.label}),d(Ue,{indexes:t,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:r.desc}),d(ft,{indexes:t,x:n-48,y:12,width:32,height:32,fill:o.colorPrimary})]})};Fe("candy-card-lite",{component:gE,composites:["icon","label","desc"]});var Ni=e=>{let{color:t="black",opacity:r=.8,...n}=e;return d("filter",{id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%",...n,children:d("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":t,"flood-opacity":r})})};var ds=e=>{let{id:t="linear-gradient",startColor:r="black",stopColor:n="white",direction:i="left-right"}=e;return E("linearGradient",{id:t,...{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i],children:[d("stop",{offset:"0%",stopColor:r}),d("stop",{offset:"100%",stopColor:n})]})};var xE=e=>{let[{datum:t,indexes:r,width:n=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:c},l]=He(e,["width","height","gap","iconPadding"]),u=i/2,f=i-a*2,h=s==="flipped",p=!!t.icon,x=p?n-i-o:n-o*2,m=p?h?o:i:o,g=p?h?"right":"left":"center",y={indexes:r,width:x,alignHorizontal:g,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:c.colorWhite},b=Y(d(Me,{...y,children:t.label})),_={indexes:r,width:x,alignHorizontal:g,alignVertical:"top",fontSize:12,lineNumber:1,fill:c.colorWhite},v=Y(t.desc?d(Ue,{..._,children:t.desc}):null),w=4,q=b.height+w+v.height,S=(i-q)/2,I=S+b.height+w,M=h?n-i+a:a,T=a;return E(O,{...l,children:[d(ke,{children:d(Ni,{})}),d(we,{x:0,y:0,width:n,height:i,fill:c.colorPrimary,rx:u,ry:u,"data-element-type":"shape"}),t.icon&&E(De,{children:[d(je,{x:M,y:T,width:f,height:f,fillOpacity:.5,fill:c.colorBg,filter:"url(#drop-shadow)"}),d(Cr,{indexes:r,x:M,y:T,size:f,fill:c.colorBg,colorBg:c.colorPrimary})]}),t.label&&d(Me,{x:m,y:S,...y,children:t.label}),t.desc&&d(Ue,{x:m,y:I,..._,children:t.desc})]})};Fe("capsule-item",{component:xE,composites:["icon","label","desc"]});var yE=e=>{let[{indexes:t,datum:r,themeColors:n,positionH:i="normal",width:o=240,height:s=o},a]=He(e,["width","height"]),c=Math.min(o,s),l=c*.7,u=(c-l)/2,f=l*Math.sqrt(2)/2,h=(c-f)/2,p=le(n.colorPrimary),x=Da(p,80,.2),m=Da(p,20,.8),g=Da(p,75,.32),y=Da(p,45,.4),b=p.clone().darken(5).toRgbString(),_=`${n.colorPrimary}-${i}-outer`,v=`${n.colorPrimary}-${i}-inner`,w=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return E(O,{...a,children:[E(ke,{children:[E("linearGradient",{id:_,...w,children:[d("stop",{offset:"0%",stopColor:x}),d("stop",{offset:"100%",stopColor:m})]}),E("linearGradient",{id:v,...w,children:[d("stop",{offset:"0%",stopColor:g}),d("stop",{offset:"100%",stopColor:y})]})]}),d(je,{width:c,height:c,fill:`url(#${_})`,"data-element-type":"shape"}),d(je,{x:u,y:u,width:l,height:l,fill:`url(#${v})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),d(Me,{indexes:t,x:h,y:h,width:f,height:f,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:b,fontWeight:"500",children:r.label})]})};Fe("circle-node",{component:yE,composites:["label"]});function Da(e,t,r){return le.mix(e,"#ffffff",t).setAlpha(r).toRgbString()}var bE=e=>{let[{datum:t,indexes:r,size:n=120,strokeWidth:i=12,gap:o=8,themeColors:s,valueFormatter:a=v=>`${Math.round(v)}%`},c]=He(e,["size","strokeWidth","gap"]),l=t.value??0,f=Math.min(Math.max(l/100,0),1),h=(n-i)/2,p=n/2,x=i/2,m=n-i,g=f>=1,y=f*360,b=_E(p,p,h,0,y),_={x,y:x,width:m,height:m};return E(O,{...c,width:n,height:n+o+20,children:[d(we,{width:n,height:n,fill:"none"}),d(je,{..._,fill:"none",stroke:"#f0f0f0",strokeWidth:i,"data-element-type":"shape"}),g?d(je,{..._,fill:"none",stroke:s.colorPrimary,strokeWidth:i,"data-element-type":"shape"}):d(ae,{d:b,fill:"none",stroke:s.colorPrimary,strokeWidth:i,strokeLinecap:"round","data-element-type":"shape"}),d(An,{indexes:r,x:i,y:i,width:m-i,height:m-i,fontSize:24,fontWeight:"bold",fill:s.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:l,formatter:a}),d(Me,{indexes:r,x:0,y:n+o,width:n,alignHorizontal:"center",fontSize:12,fill:s.colorTextSecondary,children:t.label})]})};function _E(e,t,r,n,i){let o=oy(e,t,r,i),s=oy(e,t,r,n),a=i-n<=180?"0":"1";return`M ${o.x} ${o.y} A ${r} ${r} 0 ${a} 0 ${s.x} ${s.y}`}function oy(e,t,r,n){let i=(n-90)*Math.PI/180;return{x:e+r*Math.cos(i),y:t+r*Math.sin(i)}}Fe("circular-progress",{component:bE,composites:["label","value"]});var vE=e=>{let[{datum:t,indexes:r,width:n=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:c,valueFormatter:l},u]=He(e,["width","height","iconSize","gap"]),f=t.value,h=f!=null,p="compact-shadow",x=a==="flipped"?n-s-o:s,m=a==="flipped"?s:o+2*s,g=n-o-3*s,y=h?g*.8:g,b=h?g*.2:0;return E(O,{...u,children:[d(ke,{children:d("filter",{id:p,children:d("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),d(we,{x:0,y:0,width:n,height:i,fill:c.colorBgElevated,stroke:c.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${p})`,"data-element-type":"shape"}),d(we,{x:a==="flipped"?n-3:0,y:0,width:3,height:i,fill:c.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),d(ft,{indexes:r,x,y:(i-o)/2,size:o,fill:c.colorPrimary}),E(Z,{x:m,y:s,width:g,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[E(Z,{width:g,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[d(Me,{indexes:r,width:y,alignHorizontal:"left",fontSize:12,fill:c.colorText,children:t.label}),h&&d(An,{indexes:r,width:b,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:c.colorPrimary,value:f,formatter:l})]}),d(Ue,{indexes:r,width:g,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:c.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]})]})};Fe("compact-card",{component:vE,composites:["icon","label","value","desc"]});var wE=e=>{let[{datum:t,indexes:r,width:n=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:c="middle",themeColors:l},u]=He(e,["width","height","iconSize","gap"]),f=n-o-s,h=c==="middle"?(i-o)/2:c==="flipped"?i-o:0;return E(O,{...u,children:[d(ae,{"data-element-type":"shape",x:a==="flipped"?f+s:0,y:h,fill:l.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),d(Me,{indexes:r,x:a==="flipped"?0:o+s,width:f,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:t.label||t.desc})]})};Fe("done-list",{component:wE,composites:["label"]});var qE=e=>{let[{indexes:t,datum:r,width:n=140,themeColors:i,positionV:o="normal"},s]=He(e,["width"]),a=o!=="flipped",c=o==="normal"?"bottom":"top",l=d(Me,{indexes:t,width:n,fill:i.colorText,alignHorizontal:"center",alignVertical:c,fontSize:14,children:r.label}),u=d(Ue,{indexes:t,width:n,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:c,children:r.desc}),f=d(Cr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),h=d(SE,{width:8,height:30,fill:i.colorPrimary,positionV:o}),p=5,x=25,m=30,g=Y(l),y=Y(u),b=Y(f),_=Y(h),v=g.height+y.height+p+_.height-b.height-x,w=b.height+x+m+_.height+p+g.height+y.height;return d(O,{width:n,height:w,...s,children:E(Z,{flexDirection:"column",alignItems:"center",children:[a?E(De,{children:[u,l,d(mt,{height:p}),h]}):E(De,{children:[d(mt,{height:v}),f,d(mt,{height:x})]}),E(Zr,{horizontal:"center",vertical:"middle",width:n,height:m,children:[d(CE,{width:n,height:m,fill:i.colorPrimary}),d(qe,{width:n,height:m,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:r.time?r.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?E(De,{children:[d(mt,{height:x}),f]}):E(De,{children:[h,d(mt,{height:p}),l,u]})]})})},CE=e=>{let{x:t=0,y:r=0,width:n=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return d(gt,{width:n,height:i,points:[{x:t,y:r},{x:t+n-s,y:r},{x:t+n,y:r+i/2},{x:t+n-s,y:r+i},{x:t,y:r+i},{x:t+s,y:r+i/2}],fill:o,"data-element-type":"shape"})},SE=e=>{let{x:t=0,y:r=0,width:n=10,height:i=50,fill:o,positionV:s="top"}=e,a=n/2,c=i-a,l=2,u=a;return E(ot,{x:t,y:r,width:n,height:i,children:[d(je,{width:n,height:n,fill:o,y:s==="top"?0:c-a}),d(ae,{d:s==="top"?`M${u},${a} L${u},${a+c}`:`M${u},0 L${u},${c-a}`,strokeWidth:l,stroke:o})]})};Fe("horizontal-icon-arrow",{component:qE,composites:["icon","label","desc","time"]});var EE=e=>{let[{indexes:t,datum:r,width:n=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=He(e,["width"]),c=o==="normal"?"left":o==="flipped"?"right":"center",l=d(Me,{indexes:t,width:n,alignHorizontal:c,fill:i.colorPrimary,children:r.label}),u=Y(l),f=r.desc?d(Ue,{indexes:t,width:n,fill:i.colorTextSecondary,alignHorizontal:c,alignVertical:s==="flipped"?"top":"bottom",children:r.desc}):null,h=Y(f),x=r.icon?d(Cr,{size:45,indexes:t,colorBg:i.colorBg,fill:i.colorPrimary}):null,m=Y(x),g=r.time?d(qe,{width:n,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:r.time}):null,y=Y(g),b=18,_=E(Zr,{horizontal:"center",vertical:"middle",width:n,height:b,children:[d(we,{width:n,height:b,fill:i.colorPrimary,"data-element-type":"shape"}),d(je,{width:b+6,height:b+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),d(je,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=u.height+h.height,w=m.height+y.height+5,q=Math.abs(w-v),C=w>v?q:0,S=v>w?q:0;return s==="flipped"?E(Z,{...a,flexDirection:"column",alignItems:"center",children:[d(mt,{height:S}),g,x,d(mt,{height:5}),_,l,f,d(mt,{height:C})]}):E(Z,{...a,flexDirection:"column",alignItems:"center",children:[d(mt,{height:C}),l,f,_,d(mt,{height:5}),x,g,d(mt,{height:S})]})};Fe("horizontal-icon-line",{component:EE,composites:["icon","label","desc"]});var IE=e=>{let[{datum:t,indexes:r,size:n=80,iconSize:i=28,badgeSize:o=24,gap:s=8,themeColors:a,width:c=84,height:l=105},u]=He(e,["size","iconSize","badgeSize","gap"]),f=t.value??0,h=`${a.colorPrimary}-icon`,p="#ff6b6b-badge";return E(O,{...u,width:c,height:l,children:[E(ke,{children:[E("radialGradient",{id:h,cx:"50%",cy:"30%",r:"70%",children:[d("stop",{offset:"0%",stopColor:le(a.colorPrimary).lighten(30).toHexString()}),d("stop",{offset:"100%",stopColor:a.colorPrimary})]}),E("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#ff6b6b"}),d("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),d(je,{x:0,y:0,width:n,height:n,fill:`url(#${h})`,"data-element-type":"shape"}),d(ft,{indexes:r,x:(n-i)/2,y:(n-i)/2,size:i,fill:a.colorPrimaryText}),d(je,{x:n-o+4,width:o,height:o,fill:`url(#${p})`}),d(qe,{x:n-o+4,width:o,height:o,fontSize:10,fontWeight:"bold",fill:a.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:f>99?"99+":Math.round(f)}),d(Me,{indexes:r,x:0,y:n+s,width:n,alignHorizontal:"center",fontSize:12,fill:a.colorText,children:t.label})]})};Fe("icon-badge",{component:IE,composites:["icon","label"]});var TE=e=>{let[{datum:t,indexes:r,width:n=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:c=16,gap:l=8,themeColors:u},f]=He(e,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),h=r[0]+1,p=String(h).padStart(2,"0"),x=t.label!==void 0,m=t.desc!==void 0,g=le.mix(u.colorPrimary,u.colorWhite,40).toHexString(),y=u.colorBgElevated||u.colorWhite,b=n-2*o,_=Y(d(qe,{fontSize:a,fontWeight:"bold",children:p})),v=b-_.width-l,w=x?Y(d(Me,{indexes:r,width:v,fontSize:c,fontWeight:"bold",x:a,children:t.label})):{width:0,height:0},q=m?Y(d(Ue,{indexes:r,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,children:t.desc})):{width:0,height:0},C=Math.max(_.height,w.height),S=o*2+C+(x||m?l:0)+s+(m?l:0)+q.height;return E(O,{...f,width:n,height:S,children:[d(we,{x:0,y:0,width:n,height:S,rx:i,ry:i,fill:y,stroke:le(y).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),E(O,{x:o,y:o,children:[E(O,{x:0,y:0,children:[d(qe,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:u.colorPrimary,alignVertical:"top",children:p}),x&&d(Me,{indexes:r,x:a+l,y:0,width:v,fontSize:c,fontWeight:"bold",fill:u.colorTextSecondary,alignVertical:"top",children:t.label})]}),d(we,{x:0,y:C+l,width:b,height:s,fill:g,"data-element-type":"shape"}),m&&d(Ue,{indexes:r,x:0,y:C+l+s+l,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:u.colorTextSecondary,children:t.desc})]})]})};Fe("indexed-card",{component:TE,composites:["label","desc"]});var ME=e=>{let[{indexes:t,datum:r,width:n=140,iconSize:i=24,themeColors:o},s]=He(e,["width","iconSize"]),{label:a,desc:c}=r,l=8,u=16,f=12,h=u+f,p=n-h,x=60,m=i+44,g=u,y=x+f,b=x+u+f,_=[{x:0,y:b},{x:g,y},{x:g,y:b}],v=n-g-f,w=g+f,q=w+v,C=y+l/2,S=C+m,I=`M ${w} ${S} L ${w} ${C} L ${q} ${C}`,M=l/2,T=w+M,P=C+M,A=8;return E(O,{...s,children:[d(Ue,{indexes:t,x:h,width:p,height:x,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:c}),d(gt,{points:_,fill:o.colorPrimary,opacity:.9,width:u,height:u,"data-element-type":"shape"}),d(ae,{d:I,stroke:o.colorPrimary,strokeWidth:l,fill:"none","data-element-type":"shape"}),d(ft,{indexes:t,x:T+v/2-i/2,y:P+A,size:i,fill:o.colorPrimary}),d(Me,{indexes:t,x:T,y:P+i+A*2,width:v,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]})};Fe("l-corner-card",{component:ME,composites:["icon","label","desc"]});var AE=e=>{let[{datum:t,indexes:r,width:n=280,height:i=160,showStripe:o=!0,showGradient:s=!0,showBottomShade:a=!0,themeColors:c},l]=He(e,["width","height","showStripe","showGradient","showBottomShade"]),u=t.label?.[0].toUpperCase(),f=t.label?.toUpperCase(),h=c.colorPrimary,p=le(h),x=4,m=6,g=45,y=40,b=12,v=p.clone().darken(4).toHexString(),w=p.clone().lighten(b).toHexString(),q="rgba(255, 255, 255, 0)",C="rgba(0, 0, 0, 0.03)",S=`letter-card-${r.join("-")}`,I=`${S}-gradient`,M=`${S}-pattern`,T=`${S}-shade`,P=x+m,A=1,j=96,B=j*A,H=16,X=H*A,D=i/16,k=B+D+X,R=(i-k)/2,G=R+B+D;return E(O,{...l,width:n,height:i,children:[E(ke,{children:[s&&E("linearGradient",{id:I,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:v}),d("stop",{offset:"100%",stopColor:w})]}),o&&E("pattern",{id:M,patternUnits:"userSpaceOnUse",width:P,height:P,patternTransform:`rotate(${g})`,children:[d("rect",{x:"0",y:"0",width:P,height:P,fill:q}),d("rect",{x:"0",y:"0",width:x,height:P,fill:C})]}),a&&E("linearGradient",{id:T,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),d("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),d(we,{x:0,y:0,width:n,height:i,fill:s?`url(#${I})`:h,rx:0,ry:0,"data-element-type":"shape"}),o&&d(we,{x:0,y:0,width:n,height:i,fill:`url(#${M})`,rx:0,ry:0}),a&&d(we,{x:0,y:i-y,width:n,height:y,fill:`url(#${T})`,rx:0,ry:0}),u&&d(Me,{indexes:r,x:0,y:R,width:n,fontSize:j,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:u}),d(Me,{indexes:r,x:0,y:G,width:n,fontSize:H,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:f})]})};Fe("letter-card",{component:AE,composites:["label"]});var LE=e=>{let[{datum:t,indexes:r,width:n,themeColors:i,positionH:o="normal",positionV:s="center",formatter:a=P=>P||"",usePaletteColor:c=!1,showUnderline:l=!1,underlineGap:u=6,underlineExtend:f=8,underlineThickness:h=2},p]=He(e,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),x=a(t.label??t.desc??""),m=o==="flipped"?"right":o==="center"?"center":"left",g=Y(d(Me,{indexes:r,width:n,children:x})),y=n??g.width,b=g.height,_=l?y+f*2:0,v=b+(l?u+h:0),w=l?Math.max(y,_):y,q=p.height??v,C=s==="middle"?(q-v)/2:s==="flipped"?q-v:0,S=m==="right"?w-y:m==="center"?(w-y)/2:0,I=C,M=m==="right"?w-_:m==="center"?(w-_)/2:0,T=q;return E(O,{...p,width:w,height:q,children:[d(Me,{indexes:r,x:S,y:I,width:y,height:b,alignHorizontal:m,alignVertical:s==="flipped"?"bottom":s==="center"?"middle":"top",fill:c?i.colorPrimary:i.colorText,children:x}),l&&d(ae,{d:`M 0 ${h/2} L ${_} ${h/2}`,x:M,y:T-h/2,width:_,height:h,stroke:i.colorPrimary,strokeWidth:h,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]})};Fe("lined-text",{component:LE,composites:["label"]});var kE=e=>{let[{datum:t,indexes:r,width:n=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:c},l]=He(e,["width","pillWidth","pillHeight","gap"]),u=!!t.desc,f=u?n:i,h=u?a==="center"?(f-i)/2:a==="flipped"?f-i:0:0,p=0,x=0,m=o+s,g=f,y=`drop-shadow-${c.colorPrimary}`,b="linear-gradient-white-top-bottom";return E(O,{...l,children:[E(ke,{children:[d(Ni,{id:y,color:c.colorPrimary}),d(ds,{id:b,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),d(we,{x:h,y:p,width:i,height:o,fill:c.colorPrimaryBg,stroke:c.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${y})`,"data-element-type":"shape"}),d(we,{x:h,y:p,width:i,height:o,fill:`url(#${b})`,opacity:c.isDarkMode?.4:.7,rx:o/2,ry:o/2}),d(Me,{indexes:r,x:h,y:p,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:c.colorText,children:t.label}),t.desc&&d(Ue,{indexes:r,x,y:m,width:g,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:c.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]})};Fe("pill-badge",{component:kE,composites:["label","desc"]});var RE=e=>{let[{indexes:t,datum:r,width:n=120,themeColors:i,positionH:o="normal",positionV:s="center",formatter:a=x=>x||"",usePaletteColor:c=!1,lineNumber:l=1},u]=He(e,["width","formatter","usePaletteColor","lineNumber"]),f=14,h=1.4,p=u.height??Math.ceil(l*h*f);return d(Me,{...u,indexes:t,width:n,height:p,lineHeight:h,fill:c?i.colorPrimary:i.colorText,fontSize:f,fontWeight:"regular",alignHorizontal:o==="flipped"?"right":o==="center"?"center":"left",alignVertical:s==="flipped"?"bottom":s==="center"?"middle":"top",children:a(r.label||r.desc)})};Fe("plain-text",{component:RE,composites:["label"]});var PE=e=>{let[{datum:t,data:r,indexes:n,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:c=8,borderRadius:l=12,positionH:u="normal",themeColors:f,valueFormatter:h=B=>`${B}%`},p]=He(e,["width","height","iconSize","gap","progressHeight","borderRadius"]),x=t.value,m=x??0,g=Math.max(...r.items.map(B=>B.value??0),100),y=i-2*a,_=gn().domain([0,g]).range([0,y])(m),v=`${f.colorPrimary}-progress`,w=`${f.colorPrimaryBg}-progress-bg`,q=Y(d(Me,{indexes:n})),C=a,S=u==="flipped"?i-a-s:a,I=C,M=u==="flipped"?a:s+2*a,T=i-s-3*a,P=I,A=o-a-c,j=x!==void 0;return E(O,{...p,children:[E(ke,{children:[E("linearGradient",{id:v,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:f.colorPrimary}),d("stop",{offset:"100%",stopColor:le.mix(f.colorPrimary,"#fff",20).toHexString()})]}),E("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:f.colorPrimaryBg}),d("stop",{offset:"100%",stopColor:f.colorBg})]})]}),d(we,{x:0,y:0,width:i,height:o,fill:f.colorBgElevated,stroke:f.colorPrimaryBg,strokeWidth:1,rx:l,ry:l,"data-element-type":"shape"}),d(ft,{indexes:n,x:S,y:I,size:s,fill:f.colorPrimary}),d(Me,{indexes:n,x:M,y:P,width:T,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:f.colorText,children:t.label}),j&&d(An,{indexes:n,x:M,y:P+q.height,width:T,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:f.colorPrimary,value:m,formatter:h}),d(Ue,{indexes:n,x:M,y:P+q.height+(j?27:4),width:T,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:f.colorTextSecondary,lineNumber:j?2:3,wordWrap:!0,children:t.desc}),d(we,{x:a,y:A,width:y,height:c,fill:`url(#${w})`,rx:c/2,ry:c/2,"data-element-type":"shape"}),d(we,{x:a,y:A,width:_,height:c,fill:`url(#${v})`,rx:c/2,ry:c/2,"data-element-type":"shape"})]})};Fe("progress-card",{component:PE,composites:["icon","label","value","desc"]});var OE=e=>{let[{datum:t,indexes:r,width:n=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:c="normal",themeColors:l},u]=He(e,["width","height","iconSize","circleRadius"]),f=4*s/(3*Math.PI),h=2,p=4,x=28,m=20,g=m+20,y=m,b=8,_=35,v=40,w=30,q=String(r[0]+1).padStart(2,"0"),C=a==="flipped",S=c==="flipped",I=()=>C?{diagonalStartX:n-p,diagonalStartY:S?i-_:_,diagonalEndX:n-v,diagonalEndY:S?i-p:p,topLineStartX:n-v,topLineEndX:f,topLineY:S?i-p:p}:{diagonalStartX:p,diagonalStartY:S?i-_:_,diagonalEndX:v,diagonalEndY:S?i-p:p,topLineStartX:v,topLineEndX:n-f,topLineY:S?i-p:p},M=()=>{if(C){let X=s+10,D=n-X-v;return{valueX:n-w,contentX:X,contentWidth:D,circleX:0,circleY:S?0:i,iconX:f-o/2}}else return{valueX:0,contentX:v,contentWidth:n-v-s-10,circleX:n,circleY:S?0:i,iconX:n-f-o/2}},T=I(),P=M(),A=S?f-o/2:i-f-o/2,j=Y(d(Me,{indexes:r,width:P.contentWidth,children:t.label})),B=y+j.height+b,H=()=>{let{circleX:X,circleY:D}=P;return C?S?`M ${X} ${D} L ${X} ${D+s} A ${s} ${s} 0 0 0 ${X+s} ${D} Z`:`M ${X} ${D} L ${X} ${D-s} A ${s} ${s} 0 0 1 ${X+s} ${D} Z`:S?`M ${X} ${D} L ${X} ${D+s} A ${s} ${s} 0 0 1 ${X-s} ${D} Z`:`M ${X} ${D} L ${X} ${D-s} A ${s} ${s} 0 0 0 ${X-s} ${D} Z`};return E(O,{...u,width:n,height:i,children:[E(ot,{children:[d(ae,{d:`M ${T.diagonalStartX} ${T.diagonalStartY} L ${T.diagonalEndX} ${T.diagonalEndY}`,stroke:l.colorPrimary,strokeWidth:h,fill:"none"}),d(ae,{d:`M ${T.topLineStartX} ${T.topLineY} L ${T.topLineEndX} ${T.topLineY}`,stroke:l.colorPrimary,strokeWidth:h,fill:"none"}),d(je,{x:T.diagonalStartX-p,y:T.diagonalStartY-p,width:p*2,height:p*2,fill:l.colorPrimary}),d(je,{x:T.topLineEndX-p,y:T.topLineY-p,width:p*2,height:p*2,fill:l.colorPrimary})]}),E(O,{children:[d(qe,{x:P.valueX,y:g,fontSize:x,fontWeight:"bold",fill:l.colorPrimary,children:q}),d(ae,{d:H(),fill:l.colorPrimary,"data-element-type":"shape"}),t.icon&&d(ft,{indexes:r,x:P.iconX,y:A,size:o,fill:l.colorWhite}),t.label&&d(Me,{indexes:r,x:P.contentX,y,width:P.contentWidth,fontWeight:"bold",fill:l.colorText,alignHorizontal:C?"right":"left",children:t.label}),t.desc&&d(Ue,{indexes:r,x:P.contentX,y:B,width:P.contentWidth,fill:l.colorTextSecondary,alignHorizontal:C?"right":"left",children:t.desc})]})]})};Fe("quarter-circular",{component:OE,composites:["icon","label","desc"]});var $E=e=>{let[{datum:t,indexes:r,width:n=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:c="center",positionV:l="middle",themeColors:u},f]=He(e,["width","height","iconSize","padding","borderRadius"]),h=n-s*2,p=s,x=s,m=c==="flipped"?n-s-o:c==="center"?(n-o)/2:p,g=x,y=g+o+8,b=Y(d(Me,{indexes:r,width:h,children:t.label})),_=c==="flipped"?n-s-h:c==="center"?s:p,v=y+b.height+4,w=_,q=a,C="";return c==="center"&&l==="middle"?C=`
|
|
42
|
-
M ${q} 0
|
|
43
|
-
L ${n-q} 0
|
|
44
|
-
Q ${n} 0 ${n} ${q}
|
|
45
|
-
L ${n} ${i-q}
|
|
46
|
-
Q ${n} ${i} ${n-q} ${i}
|
|
47
|
-
L ${q} ${i}
|
|
48
|
-
Q 0 ${i} 0 ${i-q}
|
|
49
|
-
L 0 ${q}
|
|
50
|
-
Q 0 0 ${q} 0
|
|
51
|
-
Z
|
|
52
|
-
`:c==="flipped"&&l==="flipped"?C=`
|
|
53
|
-
M ${q} 0
|
|
54
|
-
L ${n-q} 0
|
|
55
|
-
Q ${n} 0 ${n} ${q}
|
|
56
|
-
L ${n} ${i-q}
|
|
57
|
-
Q ${n} ${i} ${n-q} ${i}
|
|
58
|
-
L ${q} ${i}
|
|
59
|
-
Q 0 ${i} 0 ${i-q}
|
|
60
|
-
L 0 0
|
|
61
|
-
L ${q} 0
|
|
62
|
-
Z
|
|
63
|
-
`:c==="normal"&&l==="flipped"?C=`
|
|
64
|
-
M 0 0
|
|
65
|
-
L ${n} 0
|
|
66
|
-
L ${n} ${i-q}
|
|
67
|
-
Q ${n} ${i} ${n-q} ${i}
|
|
68
|
-
L ${q} ${i}
|
|
69
|
-
Q 0 ${i} 0 ${i-q}
|
|
70
|
-
L 0 ${q}
|
|
71
|
-
Q 0 0 ${q} 0
|
|
72
|
-
Z
|
|
73
|
-
`:c==="flipped"?C=`
|
|
74
|
-
M ${q} 0
|
|
75
|
-
L ${n-q} 0
|
|
76
|
-
Q ${n} 0 ${n} ${q}
|
|
77
|
-
L ${n} ${i-q}
|
|
78
|
-
Q ${n} ${i} ${n-q} ${i}
|
|
79
|
-
L 0 ${i}
|
|
80
|
-
L 0 ${q}
|
|
81
|
-
Q 0 0 ${q} 0
|
|
82
|
-
Z
|
|
83
|
-
`:C=`
|
|
84
|
-
M ${q} 0
|
|
85
|
-
L ${n-q} 0
|
|
86
|
-
Q ${n} 0 ${n} ${q}
|
|
87
|
-
L ${n} ${i}
|
|
88
|
-
L ${q} ${i}
|
|
89
|
-
Q 0 ${i} 0 ${i-q}
|
|
90
|
-
L 0 ${q}
|
|
91
|
-
Q 0 0 ${q} 0
|
|
92
|
-
Z
|
|
93
|
-
`,E(O,{...f,children:[d(ae,{d:C,x:0,y:0,width:n,height:i,fill:u.colorPrimary,"data-element-type":"shape"}),d(ft,{indexes:r,x:m,y:g,size:o,fill:u.colorBg}),d(Me,{indexes:r,x:_,y,width:h,fontSize:14,fontWeight:"bold",fill:u.colorBg,alignHorizontal:c==="flipped"?"right":"left",children:t.label}),t.desc&&d(Ue,{indexes:r,x:w,y:v,width:h,fontSize:11,wordWrap:!0,fill:u.colorBg,alignHorizontal:c==="flipped"?"right":"left",children:t.desc})]})};Fe("quarter-simple-card",{component:$E,composites:["icon","label","desc"]});var zE=e=>{let[{datum:t,indexes:r,width:n=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:c},l]=He(e,["width","height","iconSize","gap","ribbonHeight"]),u=`${c.colorPrimary}-ribbon`;return E(O,{...l,children:[d(ke,{children:E("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:c.colorPrimary}),d("stop",{offset:"100%",stopColor:le(c.colorPrimary).darken(15).toHexString()})]})}),E(ot,{children:[d(we,{x:0,y:0,width:n,height:i,fill:c.colorBgElevated,stroke:c.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),d(we,{x:0,y:0,width:n,height:a,fill:`url(#${u})`,rx:8,ry:8}),d(we,{x:0,y:8,width:n,height:a-8,fill:`url(#${u})`}),d(ae,{x:n-20,y:a,width:20,height:8,fill:le(c.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),d(ft,{indexes:r,x:s,y:a+s,size:o,fill:c.colorPrimary}),d(Me,{indexes:r,x:o+2*s,y:a+s,width:n-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:c.colorText,children:t.label}),d(Ue,{indexes:r,x:s,y:a+o+s+5,width:n-2*s,alignHorizontal:"left",fill:c.colorTextSecondary,lineNumber:3,wordWrap:!0,children:t.desc}),d(ft,{indexes:r,x:n-s-8,y:s/2,size:16,fill:c.colorWhite})]})};Fe("ribbon-card",{component:zE,composites:["icon","label","desc"]});var HE=e=>{let[{indexes:t,datum:r,themeColors:n,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},c]=He(e,["width","height","borderRadius","padding"]),l=o/2,u=l,f=s,h=i-l*2,p=o-s*2;return E(O,{...c,children:[d(we,{"data-element-type":"shape",width:i,height:o,rx:l,ry:l,fill:n.colorPrimaryBg,stroke:n.colorPrimary,strokeWidth:1,opacity:.8}),d(Me,{indexes:t,x:u,y:f,width:h,height:p,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:n.colorText,children:r.label})]})};Fe("rounded-rect-node",{component:HE,composites:["label"]});var FE=e=>{let[{width:t=24,height:r=t,strokeWidth:n=2,themeColors:i,datum:o},s]=He(e,["width","height"]),a=Math.min(t,r)-n,c=n/2;return E(O,{...s,width:t,height:r,children:[d(we,{width:t,height:r,fill:"none",visibility:"hidden"}),d(je,{x:c,y:c,width:a,height:a,fill:i.colorPrimary,stroke:i.isDarkMode?"#FFF":"#000",strokeWidth:n,"data-element-type":"shape",children:d("title",{children:o.label||o.desc})})]})};Fe("simple-circle-node",{component:FE,composites:[]});var jE=e=>{let[{indexes:t,datum:r,width:n=140,themeColors:i,positionV:o="normal"},s]=He(e,["width"]),a=o!=="flipped",c=a?"bottom":"top",l=d(Me,{indexes:t,width:n,fill:i.colorText,alignHorizontal:"center",alignVertical:c,fontSize:14,children:r.label}),u=d(Ue,{indexes:t,width:n,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:c,children:r.desc}),f=30,h=10,p=Y(l),x=Y(u),m=p.height+x.height,g=m+h+f+h+m;return d(O,{width:n,height:g,...s,children:E(Z,{flexDirection:"column",alignItems:"center",children:[a?E(De,{children:[u,l,d(mt,{height:h})]}):d(De,{children:d(mt,{height:m+h})}),E(Zr,{horizontal:"center",vertical:"middle",children:[d(DE,{width:n,height:f,fill:i.colorPrimary}),d(qe,{width:n,height:f,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:r.time?r.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?d(De,{children:d(mt,{height:m+h})}):E(De,{children:[d(mt,{height:h}),l,u]})]})})},DE=e=>{let{x:t=0,y:r=0,width:n=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return d(gt,{width:n,height:i,points:[{x:t,y:r},{x:t+n-s,y:r},{x:t+n,y:r+i/2},{x:t+n-s,y:r+i},{x:t,y:r+i},{x:t+s,y:r+i/2}],fill:o,"data-element-type":"shape"})};Fe("simple-horizontal-arrow",{component:jE,composites:["label","desc","time"]});var BE=e=>{let[{indexes:t,datum:r,width:n=180,illusSize:i=n,gap:o=8,themeColors:s,usePaletteColor:a=!1},c]=He(e,["width","illusSize","gap","usePaletteColor"]),{label:l,desc:u}=r,f=a?s.colorPrimary:s.colorText,h=d(Me,{indexes:t,width:n,alignHorizontal:"center",alignVertical:"middle",fill:f,children:l}),p=Y(h);return E(Z,{...c,width:n,height:i+o+p.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[d(ty,{indexes:t,width:i,height:i}),h,d(Ue,{indexes:t,width:n,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:u})]})};Fe("simple-illus",{component:BE,composites:["illus","label","desc"]});var NE=e=>{let[{indexes:t,datum:r,width:n=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:c="default",positionH:l="normal",positionV:u="normal",usePaletteColor:f=!1,themeColors:h},p]=He(e,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:x,desc:m,icon:g}=r,b=(H=>H==="normal"?"left":H==="flipped"?"right":"center")(l),_=f?h.colorPrimary:h.colorText,v=14,w=1.4,q=d(Me,{indexes:t,width:n,alignHorizontal:"center",alignVertical:"middle",fill:_,children:x}),C=Y(q),S=s?c==="circle"?d(Cr,{indexes:t,size:a,fill:h.colorPrimary,colorBg:h.colorBg}):d(ft,{indexes:t,size:a,fill:h.colorTextSecondary}):null;if(!s||!g){let H=i?Math.max(0,i-C.height-o):void 0,X=H?H<=60?1:Math.floor(H/(w*v)):2,D=i?u==="middle"?(i-C.height-(H||0)-o)/2:u==="flipped"?i-C.height-(H||0)-o:0:0;return E(O,{...p,children:[d(Me,{indexes:t,width:n,y:D,alignHorizontal:b,alignVertical:"middle",fill:_,children:x}),d(Ue,{indexes:t,width:n,height:H,y:D+C.height+o,alignHorizontal:b,alignVertical:j(u,!1),lineNumber:X,fill:h.colorTextSecondary,children:m})]})}if(l==="center"){let H=s&&g?a:0,X=i?Math.max(0,i-C.height-H-o*2):void 0,D=X?X<=60?1:Math.floor(X/(w*v)):2,k=C.height+(X||0)+o,R=i?u==="middle"?(i-k-H-o)/2:u==="flipped"?i-k-H-o:0:0;return d(Z,{...p,flexDirection:"column",gap:o,alignItems:"center",children:u==="flipped"?E(De,{children:[E(O,{children:[d(Me,{indexes:t,width:n,y:R,alignHorizontal:"center",alignVertical:"middle",fill:_,children:x}),d(Ue,{indexes:t,width:n,height:X,y:R+C.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:D,fill:h.colorTextSecondary,children:m})]}),S]}):E(De,{children:[S,E(O,{children:[d(Me,{indexes:t,width:n,y:R,alignHorizontal:"center",alignVertical:"middle",fill:_,children:x}),d(Ue,{indexes:t,width:n,height:X,y:R+C.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:D,fill:h.colorTextSecondary,children:m})]})]})})}let I=Y(S),M=Math.max(n-I.width-o,0),T=i?Math.max(0,i-C.height-o):void 0,P=T?T<=60?1:Math.floor(T/(w*v)):2,A=i?u==="middle"?(i-C.height-(T||0)-o)/2:u==="flipped"?i-C.height-(T||0)-o:0:0;return d(Z,{...p,flexDirection:"row",gap:o,alignItems:B(u),children:l==="flipped"?E(De,{children:[E(O,{children:[d(Me,{indexes:t,width:M,y:A,alignHorizontal:"right",alignVertical:"middle",fill:_,children:x}),d(Ue,{indexes:t,width:M,height:T,y:A+C.height+o,alignHorizontal:"right",alignVertical:j(u,!0),lineNumber:P,fill:h.colorTextSecondary,children:m})]}),S]}):E(De,{children:[S,E(O,{children:[d(Me,{indexes:t,width:M,y:A,alignHorizontal:"left",alignVertical:"middle",fill:_,children:x}),d(Ue,{indexes:t,width:M,height:T,y:A+C.height+o,alignHorizontal:"left",alignVertical:j(u,!0),lineNumber:P,fill:h.colorTextSecondary,children:m})]})]})});function j(H,X){return"top"}function B(H){return H==="normal"?"flex-start":H==="flipped"?"flex-end":"center"}};Fe("simple",{component:NE,composites:["icon","label","desc"]});var GE=e=>{let[{indexes:t,datum:r,height:n=140,themeColors:i,positionH:o="normal"},s]=He(e,["height"]),a=o==="normal"?"right":"left",c=d(Me,{indexes:t,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:r.label}),l=d(Ue,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:r.desc}),u=o!=="flipped",f=15,h=30,p=120,x=p+f+h+f+p;return d(O,{width:x,height:n,...s,children:E(Z,{flexDirection:"row",alignItems:"center",children:[u?E(De,{children:[E(Z,{flexDirection:"column",alignItems:"flex-end",children:[c,l]}),d(mt,{width:f})]}):d(De,{children:d(mt,{width:p+f})}),E(Zr,{horizontal:"center",vertical:"middle",children:[d(WE,{width:h,height:n,fill:i.colorPrimary}),d(qe,{width:h,height:n,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),u?d(De,{children:d(mt,{width:p+f})}):E(De,{children:[d(mt,{width:f}),E(Z,{flexDirection:"column",alignItems:"flex-start",children:[c,l]})]})]})})},WE=e=>{let{x:t=0,y:r=0,width:n=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return d(gt,{width:n,height:i,points:[{x:t,y:r},{x:t+n/2,y:r+s},{x:t+n,y:r},{x:t+n,y:r+i-s},{x:t+n/2,y:r+i},{x:t,y:r+i-s}],fill:o,"data-element-type":"shape"})};Fe("simple-vertical-arrow",{component:GE,composites:["label","desc"]});var vd=80,wd=3,XE=e=>{let[{datum:t,indexes:r,width:n=200,gap:i=4,positionH:o="center",themeColors:s},a]=He(e,["width","height","gap"]),c=Y(d(Me,{indexes:r,fontSize:18,fontWeight:"bold",width:n,children:t.label})),l=t.desc?Y(d(Ue,{indexes:r,width:n,wordWrap:!0,children:t.desc})):{width:0,height:0},u=c.height+i+wd+(t.desc?i*2+l.height:0),f=0,h=0,p=o==="center"?"center":o==="flipped"?"right":"left",x=o==="center"?(n-vd)/2:o==="flipped"?n-vd:0,m=h+c.height+i,g=0,y=m+wd+i*2;return E(O,{width:n,height:u,...a,children:[t.label&&d(Me,{indexes:r,x:f,y:h,width:n,alignHorizontal:p,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:t.label}),t.label&&d(we,{x,y:m,width:vd,height:wd,fill:s.colorPrimary,"data-element-type":"shape"}),t.desc&&d(Ue,{indexes:r,width:n,x:g,y,alignHorizontal:p,wordWrap:!0,fill:s.colorText,children:t.desc})]})};Fe("underline-text",{component:XE,composites:["label","desc"]});var YE=e=>{let[{indexes:t,datum:r,height:n=140,themeColors:i,positionH:o="normal"},s]=He(e,["height"]),c=o!=="flipped"?"right":"left",l=d(Me,{indexes:t,width:120,fill:i.colorText,alignHorizontal:c,alignVertical:"middle",fontSize:14,children:r.label}),u=d(Ue,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:c,alignVertical:"top",children:r.desc}),f=d(Cr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),h=d(UE,{width:30,height:8,fill:i.colorPrimary,positionH:o}),p=o!=="flipped",x=5,m=25,g=30,y=Y(l),b=Y(f),_=Y(h),v=y.width+x+_.width-b.width-m,w=Math.max(y.width+x+_.width,m+b.width)*2+g;return d(O,{width:w,height:n,...s,children:E(Z,{flexDirection:"row",alignItems:"center",children:[p?E(De,{children:[E(Z,{flexDirection:"column",alignItems:"flex-end",children:[l,u]}),d(mt,{width:x}),h]}):E(De,{children:[d(mt,{width:v}),f,d(mt,{width:m})]}),E(Zr,{horizontal:"center",vertical:"middle",children:[d(VE,{width:g,height:n,fill:i.colorPrimary}),d(qe,{width:g,height:n,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),p?E(De,{children:[d(mt,{width:m}),f]}):E(De,{children:[h,d(mt,{width:x}),E(Z,{flexDirection:"column",alignItems:"flex-start",children:[l,u]})]})]})})},VE=e=>{let{x:t=0,y:r=0,width:n=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return d(gt,{width:n,height:i,points:[{x:t,y:r},{x:t+n/2,y:r+s},{x:t+n,y:r},{x:t+n,y:r+i-s},{x:t+n/2,y:r+i},{x:t,y:r+i-s}],fill:o,"data-element-type":"shape"})},UE=e=>{let{x:t=0,y:r=0,width:n=50,height:i=10,fill:o,positionH:s="normal"}=e,a=i/2,c=n-a,l=2,u=a;return E(O,{x:t,y:r,width:n,height:i,children:[d(je,{width:i,height:i,fill:o,x:s==="normal"?0:c-a,"data-element-type":"shape"}),d(ae,{d:s==="normal"?`M${a},${u} L${a+c},${u}`:`M0,${u} L${c-a},${u}`,strokeWidth:l,stroke:o,"data-element-type":"shape"})]})};Fe("vertical-icon-arrow",{component:YE,composites:["icon","label","desc"]});var sy=new Map;function be(e,t){sy.set(e,t)}function qd(e){return sy.get(e)}var KE=e=>{let{Title:t,Item:r,data:n,width:i,gap:o,barGap:s,barHeight:a=28,barAreaWidth:c,labelGap:l=16,padding:u=24,showValue:f=!0,options:h,valueFormatter:p=Oe=>Oe.toString()}=e,x=c??i??480,{title:m,desc:g,items:y=[],xTitle:b,yTitle:_}=n,v=t?d(t,{title:m,desc:g}):null;if(y.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:v});let[w,q,C,S]=ar(u),I=y[0]??{label:"",value:0},M=Y(d(r,{indexes:[0],datum:I,data:n})),T=M.width||140,P=M.height||a,A=Math.max(a,P),j=Math.max(12,A*.35),B=s??o??j,H=y.map(Oe=>Oe.value??0),X=Math.max(...H,0),D=Math.min(...H,0),k=D<0?D*1.1:0,R=X>0?X*1.1:0;R===k&&(R=k+1);let G=gn().domain([k,R]).range([0,x]),W=Math.min(Math.max(G(0),0),x),N=Math.max(2,x*.02),L=y.length*(A+B)-B,$=_?24:0,z=20,F=b?24:0,K=w+$,Q=S+T+l,ie=f?80:0,fe=Math.max(8,A*.2),U=Q+x+ie+q,J=K+L+fe+z+F+C,ne=it(h.themeConfig),te=ne.colorText||"#666",ve=Qe(h),ee=[],oe=[],se=[],ge=[],he=[],_e=[],pe=[],me=K+L+fe,Ie=Oe=>Number.isInteger(Oe)?Oe.toString():Oe.toFixed(1);y.forEach((Oe,Te)=>{let Xe=[Te],xe=Oe.value??0,$e=K+Te*(A+B),Ae=$e+(A-a)/2,de=xe>=0?Q+W:Q+G(xe),We=xe>=0?G(xe)-W:W-G(xe),ze=We===0?N:We,re=Ee(h,[Te])||ne.colorPrimary;if(ee.push(d(we,{x:de,y:Ae,width:ze,height:a,fill:re,rx:6,ry:6,"data-element-type":"shape"})),f){let Le=xe>=0?de+ze+8:de-8;oe.push(d(qe,{x:Le,y:Ae+a/2,alignHorizontal:xe>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:re,children:p(xe,Oe)}))}se.push(d(r,{indexes:Xe,datum:Oe,data:n,x:S,y:$e+(A-P)/2,width:T,height:P,positionV:"middle"}))});let Re=Math.max(3,Math.min(7,Math.floor(x/80)));return G.ticks(Re).forEach(Oe=>{let Te=Q+G(Oe);_e.push(d(ae,{d:`M${Te} ${K} L${Te} ${K+L}`,stroke:te,strokeOpacity:.08,"data-element-type":"shape"})),he.push(d(ae,{d:`M${Te-.5} ${me} L${Te-.5} ${me+6}`,stroke:te,"data-element-type":"shape"})),he.push(d(qe,{x:Te,y:me+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:te,children:Ie(Oe)}))}),ge.push(d(ae,{d:`M${Q} ${me} L${Q+x} ${me}`,stroke:te,"data-element-type":"shape"})),k<0&&ge.push(d(we,{x:Q+W-.5,y:K,width:1,height:L,fill:ve,"data-element-type":"shape"})),_&&pe.push(d(qe,{x:S+T/2,y:w+$/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:te,children:_})),b&&pe.push(d(qe,{x:Q+x/2,y:me+z+F/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:te,children:b})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,E(O,{width:U,height:J,children:[d(O,{children:_e}),d(O,{children:ee}),d(O,{children:oe}),d(O,{children:pe}),d(O,{children:[...ge,...he]}),d(ye,{children:se})]})]})};be("chart-bar",{component:KE,composites:["title","item","xTitle","yTitle"]});var ZE=e=>{let{Title:t,Item:r,data:n,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:c,valueFormatter:l=k=>k.toString()}=e,{title:u,desc:f,items:h=[]}=n,p=t?d(t,{title:u,desc:f}):null;if(h.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});let x=it(c.themeConfig),g=[...h.map(k=>k.value??0),0].sort((k,R)=>k-R),y=g[0]<0,b=h.length*o+(h.length-1)*i,_=300,[v,w,q,C]=ar(s),S=a?24:0,I=10,M=y&&a?S+I:I,T=b+C+w,P=_+v+q+M,A=gn().domain([g[0],g[g.length-1]]).range([_,0]),j=A(0),B=[],H=[],X=[],D=[];return h.forEach((k,R)=>{let G=[R],W=k.value??0,N=C+R*(o+i),L=W>=0?A(W):j,$=Math.abs(A(W)-j),z=Ee(c,[R])||x.colorPrimary,F=`${z}-column-positive-${R}`,K=`${z}-column-negative-${R}`;D.push(E("linearGradient",{id:W>=0?F:K,x1:"0%",y1:W>=0?"0%":"100%",x2:"0%",y2:W>=0?"100%":"0%",children:[d("stop",{offset:"0%",stopColor:z}),d("stop",{offset:"100%",stopColor:le.mix(z,"#fff",40).toHexString()})]})),B.push(d(we,{x:N,y:v+L,width:o,height:$,fill:`url(#${W>=0?F:K})`,rx:8,ry:8,"data-element-type":"shape"})),a&&H.push(d(qe,{x:N+o/2,y:W>=0?v+L-10:v+L+$+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:W>=0?"bottom":"top",fill:z,children:l(W,k)}));let Q=o+i,ie=v+_+M;X.push(d(r,{indexes:G,datum:k,data:n,x:N+o/2-Q/2,y:ie,width:Q,positionH:"center"}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(O,{width:T,height:P,children:[d(ke,{children:D}),d(O,{children:B}),d(O,{children:H}),d(ye,{children:X})]})]})};be("chart-column",{component:ZE,composites:["title","item"]});var QE=e=>{let{Title:t,Item:r,data:n,width:i,height:o=260,gap:s=10,padding:a=24,showValue:c=!0,options:l,valueFormatter:u=re=>re.toString()}=e,{title:f,desc:h,items:p=[],xTitle:x,yTitle:m}=n,g=t?d(t,{title:f,desc:h}):null;if(p.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:g});let[y,b,_,v]=ar(a),w={indexes:[0],datum:p[0],data:n,positionH:"center",positionV:"normal"},q=Y(d(r,{...w})),C=q.width,S=q.height,I=Math.max(28,S+14),M=44,T=m?26:0,P=x?22:0,A=C+s,j=p.length>0?(p.length-1)*A+C:0,B=i!==void 0?i:Math.max(200,j||320),H=p.length>1?Math.max(A,(B-C)/(p.length-1)):0,X=p.length>0?Math.max(C,(p.length-1)*H+C):0,D=v+M+T,k=y+T,R=D+X+b,G=k+o+I+P+_,W=p.map(re=>re.value??0),N=Math.max(...W,0),L=Math.min(...W,0),$=Math.max(Math.abs(N),Math.abs(L))*.1,z=L<0?L-$:0,F=N>0?N+$:1;F===z&&(F=z+1);let K=gn().domain([z,F]).nice().range([o,0]),Q=Math.max(0,Math.min(o,K(0))),ie=F<=0?0:z>=0?o:Q,fe=Qe(l),U=it(l.themeConfig),J=U.colorText||"#666",ne=[],te=[],ve=[],ee=[],oe=[],se=[],ge=[];K.ticks(6).forEach(re=>{let Le=k+K(re);ne.push(d(ae,{d:`M ${D} ${Le} L ${D+X} ${Le}`,width:X,height:1,stroke:J,strokeWidth:1,"data-element-type":"shape",opacity:.08})),ge.push(d(qe,{x:D-8,y:Le,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:J,children:Number.isInteger(re)?re.toString():re.toFixed(1)}))});let _e=[],pe=[],me=[],Ie=re=>{if(re.length===0)return"";if(re.length===1){let Ye=re[0];return`M ${Ye.x} ${Ye.y}`}let Le=[];Le.push(`M ${re[0].x} ${re[0].y}`);for(let Ye=0;Ye<re.length-1;Ye++){let et=re[Ye-1]||re[Ye],st=re[Ye],Be=re[Ye+1],tt=re[Ye+2]||Be,pt=st.x+(Be.x-et.x)/6,yt=st.y+(Be.y-et.y)/6,ut=Be.x-(tt.x-st.x)/6,bt=Be.y-(tt.y-st.y)/6;Le.push(`C ${pt} ${yt} ${ut} ${bt} ${Be.x} ${Be.y}`)}return Le.join(" ")};p.forEach((re,Le)=>{let Ye=D+Le*H+C/2,et=k+K(re.value??0);pe.push({x:Ye,y:et,datum:re}),_e.push(d(r,{...w,indexes:[Le],datum:re,x:Ye-C/2,y:k+o+4}));let st=Ee(l,[Le])||U.colorPrimary;me.push({x:Ye,color:st})});let Re=me.length>0?Math.min(...me.map(re=>re.x)):D,Ze=me.length>0?Math.max(...me.map(re=>re.x)):D+X,Oe=Math.max(1,Ze-Re),Te=me.map(re=>d("stop",{offset:`${(re.x-Re)/Oe*100}%`,stopColor:re.color})),Xe=me.map(re=>d("stop",{offset:`${(re.x-Re)/Oe*100}%`,stopColor:re.color,stopOpacity:"0.18"}));if(me.length>0){let re=me[me.length-1].color;Te.push(d("stop",{offset:"100%",stopColor:re})),Xe.push(d("stop",{offset:"100%",stopColor:re,stopOpacity:"0.04"}))}let xe=`chart-line-${ha([X,o,J,fe,me.map(re=>`${re.x.toFixed(2)}-${re.color}`).join()].join(":"))}`,$e=`${xe}-stroke`,Ae=`${xe}-area`,de=Ie(pe);ve.push(d(ae,{d:de,width:X,height:o,stroke:`url(#${$e})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));let We=de.includes("C")?de.slice(de.indexOf("C")):"",ze=[`M ${pe[0].x} ${k+ie}`,`L ${pe[0].x} ${pe[0].y}`,We,`L ${pe[pe.length-1].x} ${k+ie}`,"Z"].join(" ");return ve.push(d(ae,{d:ze,width:X,height:o,fill:`url(#${Ae})`,stroke:"none","data-element-type":"shape"})),pe.forEach((re,Le)=>{let Ye=Ee(l,[Le])||U.colorPrimary;ee.push(d(je,{x:re.x-6,y:re.y-6,width:12,height:12,fill:Ye,"data-element-type":"shape"})),c&&oe.push(d(qe,{x:re.x,y:re.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:Ye,children:u(re.datum.value??0,re.datum)}))}),te.push(d(ae,{d:`M ${D} ${k+ie} L ${D+X} ${k+ie}`,width:X,height:1,stroke:J,strokeWidth:1,"data-element-type":"shape"})),te.push(d(ae,{d:`M ${D} ${k} L ${D} ${k+o}`,width:1,height:o,stroke:J,strokeWidth:1,"data-element-type":"shape"})),x&&se.push(d(qe,{x:D+X/2,y:k+o+I+P/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:J,children:x})),m&&se.push(d(qe,{x:v+T/2,y:k+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:J,children:m})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{width:R,height:G,children:[E(ke,{children:[d("linearGradient",{id:$e,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:Te}),E("linearGradient",{id:Ae,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[Xe,d("stop",{offset:"100%",stopColor:fe,stopOpacity:"0.04"})]})]}),d(O,{children:ne}),d(O,{children:[...te,...ge]}),d(O,{children:ve}),d(O,{children:ee}),d(O,{children:oe}),d(O,{children:se}),d(ye,{children:_e})]})]})};be("chart-line",{component:QE,composites:["title","item","xTitle","yTitle"]});var JE=e=>{let{Title:t,Item:r,data:n,radius:i=140,innerRadius:o=0,padding:s=30,showPercentage:a=!0,options:c}=e,{title:l,desc:u,items:f=[]}=n,h=t?d(t,{title:l,desc:u}):null,p=Y(d(V,{indexes:[0]})),x=f[0]??{label:"",value:0},m=Y(d(r,{indexes:[0],datum:x,data:n,positionH:"center",positionV:"middle"})),g=m.width||140,y=m.height||32,b=Math.max(i,60),_=1.35,v=8,w=b*_+v+g,q=b,C=s+w,S=s+q,I=C*2,M=S*2;if(f.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,d(O,{width:I,height:M,children:d(Ce,{children:d(V,{indexes:[0],x:C-p.width/2,y:S-p.height/2})})})]});let T=f.reduce((F,K)=>F+Math.max(K.value??0,0),0),P=Qe(c),A=it(c.themeConfig),B=o1().value(F=>Math.max(F.value??0,0)).sort(null).startAngle(0).endAngle(Math.PI*2)(f),H=gi().innerRadius(o).outerRadius(b).cornerRadius(2),X=gi().innerRadius(b).outerRadius(b),D=gi().innerRadius(b*1.15).outerRadius(b*1.15),k=o+(b-o)*.5,R=gi().innerRadius(k).outerRadius(k),G=gi().innerRadius(b*.85).outerRadius(b*.85),W=[],N=[],L=[],$=[],z=[];return B.forEach(F=>{let K=F.data,Q=F.index,ie=Ee(c,[Q])||A.colorPrimary||P,fe=H(F)||"";W.push(d(ae,{d:fe,fill:ie,stroke:A.colorBg,strokeWidth:1,"data-element-type":"shape",width:b*2,height:b*2}));let J=F.startAngle+(F.endAngle-F.startAngle)/2<Math.PI,ne=X.centroid(F),te=D.centroid(F),ee=[b*_*(J?1:-1),te[1]];L.push(d(ae,{d:`M${C+ne[0]} ${S+ne[1]} L${C+te[0]} ${S+te[1]} L${C+ee[0]} ${S+ee[1]}`,stroke:P,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));let oe=C+ee[0]+(J?v:-v-g),se=S+ee[1]-y/2;if($.push(d(r,{indexes:[Q],datum:K,data:n,x:oe,y:se,width:g,height:y,positionH:J?"normal":"flipped",positionV:"middle",themeColors:it({colorPrimary:ie},c)})),a&&T>0){let he=R.centroid(F),_e=Math.max(F.value,0),pe=(_e*100/T).toFixed(1),me=50,Ie=20;N.push(d(qe,{x:C+he[0]-me/2,y:S+he[1]-Ie/2,width:me,height:Ie,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":_e,"data-indexes":[Q],"data-element-type":"item-value",children:`${pe}%`}))}let ge=G.centroid(F);z.push(d(Pe,{indexes:[Q],x:C+ge[0]-p.width/2,y:S+ge[1]-p.height/2}))}),B.forEach((F,K)=>{let Q=(K+1)%B.length,ie=F.endAngle,fe=B[Q].startAngle+(Q===0?Math.PI*2:0),U=(ie+fe)/2,J=b*1,ne=Math.sin(U)*J,te=-Math.cos(U)*J;z.push(d(V,{indexes:[K+1],x:C+ne-p.width/2,y:S+te-p.height/2}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[h,E(O,{width:I,height:M,children:[d(O,{x:C,y:S,children:W}),d(O,{children:L}),d(O,{children:N}),d(ye,{children:$}),d(Ce,{children:z})]})]})};be("chart-pie",{component:JE,composites:["title","item"]});var eI=[0,30,-30,60,-60],tI=Math.PI*(3-Math.sqrt(5));function ay(e,t,r){let n=Math.PI/180*r,i=Math.cos(n),o=Math.sin(n);return{width:Math.abs(e*i)+Math.abs(t*o),height:Math.abs(e*o)+Math.abs(t*i)}}function rI(e,t,r,n,i,o){let s=e-o,a=e+r+o,c=t-o,l=t+n+o;return i.some(u=>{let f=u.box.x-o,h=u.box.x+u.box.width+o,p=u.box.y-o,x=u.box.y+u.box.height+o;return!(a<=f||s>=h||l<=p||c>=x)})}function nI(e,t,r,n,i){let o=[],s=t?eI:[0],a=Math.max(1600,e.length*28);return e.forEach((c,l)=>{let u=Math.max(c.width,c.height),f=l*tI,h=0,p=null;for(let x=0;x<a&&!p;x++){x===Math.floor(a*.6)&&(h=u);let m=f+x*n,g=i*Math.sqrt(x+1)+h+u*.25,y=g*Math.cos(m),b=g*Math.sin(m);for(let _ of s){let v=ay(c.width,c.height,_),w=y-v.width/2,q=b-v.height/2;if(!rI(w,q,v.width,v.height,o,r)){p={...c,angle:_,centerX:y,centerY:b,box:{x:w,y:q,width:v.width,height:v.height}};break}}}if(!p){let x=s[l%s.length],m=i*Math.sqrt(a+1)+u,g=f,y=m*Math.cos(g),b=m*Math.sin(g),_=ay(c.width,c.height,x);p={...c,angle:x,centerX:y,centerY:b,box:{x:y-_.width/2,y:b-_.height/2,width:_.width,height:_.height}}}o.push(p)}),o}var iI=e=>{let{data:t,options:r,minFontSize:n=16,maxFontSize:i=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:c=10}=e,{items:l=[]}=t,u=l.map((A,j)=>({datum:A,index:j})).filter(({datum:A})=>A.label);if(u.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d(O,{children:d(ye,{})})});let f=u.map(({datum:A})=>A.value).filter(A=>typeof A=="number"),h=f.length>0,p=h?Math.min(...f):0,x=h?Math.max(...f):0,m=h&&p===x,g=(n+i)/2,y=A=>{if(!h||m)return g;if(A==null)return n;let j=(A-p)/(x-p||1);return n+j*(i-n)},b=u.map(({datum:A,index:j})=>{let B=y(A.value),H=Y(d(qe,{fontSize:B,fontWeight:"bold",children:A.label})),X=Ee(r,[j])||Qe(r)||"#333333";return{label:A.label,value:A.value,color:X,fontSize:B,width:H.width*1.05,height:H.height}}).sort((A,j)=>j.fontSize-A.fontSize),_=nI(b,o,s,a,c),v=Math.min(..._.map(A=>A.box.x)),w=Math.min(..._.map(A=>A.box.y)),q=Math.max(..._.map(A=>A.box.x+A.box.width)),C=Math.max(..._.map(A=>A.box.y+A.box.height)),S=-v+s,I=-w+s,M=q-v+s*2,T=C-w+s*2,P=_.map((A,j)=>{let B=A.centerX-A.width/2+S,H=A.centerY-A.height/2+I,X=A.width/2,D=A.height/2,k=`translate(${B}, ${H}) rotate(${A.angle}, ${X}, ${D})`;return d(O,{transform:k,children:d(qe,{width:A.width,height:A.height,fontSize:A.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:A.color,"data-indexes":j,"data-element-type":"item-label",children:A.label})})});return d(ye,{id:"infographic-container",width:M,height:T,children:P})};be("chart-wordcloud",{component:iI,composites:[]});var cy=new Map,li=(e,t)=>{cy.set(e,t)},Cd=e=>e?cy.get(e)??null:null;var oI=e=>{let{x:t,y:r,colorPositive:n,colorNegative:i,colorBg:o}=e,s=200,a=141,c={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return E(O,{x:t,y:r,width:s,height:a,children:[E(ot,{children:[d("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),d("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:n}),d("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),d(qe,{x:40,y:15,...c,children:"Pros"}),d(qe,{x:70,y:85,...c,children:"Cons"})]})};li("pros-cons-arrow",oI);var sI=e=>{let{x:t,y:r,colorPositive:n,colorNegative:i,colorBg:o}=e,s=240,a=300,c={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return E(O,{x:t,y:r,width:s,height:a,children:[E(ot,{children:[d("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:n,fillOpacity:.4}),d("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:n}),d("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),d("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),d("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),d("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),d("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),d("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),d(qe,{x:153,y:77,...c,children:"PROS"}),d(qe,{x:2,y:193,...c,children:"CONS"})]})};li("pros-cons-fold",sI);var aI=e=>{let{x:t,y:r,colorPrimary:n,colorBg:i}=e,o=100,s=100,a=le(n).lighten(20).toString();return E(O,{x:t,y:r,width:o,height:s,children:[E(ke,{children:[d("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),d(Ni,{})]}),d(je,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),d(je,{x:0,y:0,width:o,height:s,fill:n,"data-element-type":"shape"}),d("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})};li("vs",aI);var cI=e=>{let{Title:t,Item:r,data:n,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:c="vs",options:l}=e,{title:u,desc:f,items:h=[]}=n,p=t?d(t,{title:u,desc:f}):null;if(h.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,d(O,{children:d(Ce,{children:d(V,{indexes:[0],x:0,y:0})})})]});let x=h[0]||{children:[]},m=h[1]||{children:[]},g=x.children||[],y=m.children||[],b=it(l.themeConfig),_=Y(d(r,{indexes:[0,0],data:n,datum:g[0]||{}})),v=Y(d(V,{indexes:[0]})),w=Cd(c),q=w?Y(d(w,{x:0,y:0,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:b.colorPrimary,colorNegative:b.colorPrimary})):{width:0,height:0},C=[],S=[],I=[],M=Math.max(g.length,y.length),T=M>0?M*(_.height+i)-i:0,P=5,A=M>0?i/2+v.height/2:v.height/2,j=v.width+P,B=j+_.width+o,H=B+q.width+o,X=a?"flipped":"normal",D=a?"normal":s?"flipped":"normal";if(g.forEach((k,R)=>{let G=A+R*(_.height+i),W=[0,R];C.push(d(r,{indexes:W,datum:k,data:n,x:j,y:G,positionH:X,positionV:"middle"})),S.push(d(Pe,{indexes:W,x:j-v.width-P,y:G+(_.height-v.height)/2})),R<g.length-1&&S.push(d(V,{indexes:[0,R+1],x:j+(_.width-v.width)/2,y:G+_.height+i/2-v.height/2}))}),g.length>0){S.push(d(V,{indexes:[0,0],x:j+(_.width-v.width)/2,y:A-i/2-v.height/2}));let k=A+(g.length-1)*(_.height+i);S.push(d(V,{indexes:[0,g.length],x:j+(_.width-v.width)/2,y:k+_.height+i/2-v.height/2}))}else h.length>=1&&S.push(d(V,{indexes:[0,0],x:j+(_.width-v.width)/2,y:A-v.height/2}));if(y.forEach((k,R)=>{let G=A+R*(_.height+i),W=[1,R];C.push(d(r,{indexes:W,datum:k,data:n,x:H,y:G,positionH:D,positionV:"middle"})),S.push(d(Pe,{indexes:W,x:H+_.width+P,y:G+(_.height-v.height)/2})),R<y.length-1&&S.push(d(V,{indexes:[1,R+1],x:H+(_.width-v.width)/2,y:G+_.height+i/2-v.height/2}))}),y.length>0){S.push(d(V,{indexes:[1,0],x:H+(_.width-v.width)/2,y:A-i/2-v.height/2}));let k=A+(y.length-1)*(_.height+i);S.push(d(V,{indexes:[1,y.length],x:H+(_.width-v.width)/2,y:k+_.height+i/2-v.height/2}))}else h.length>=2&&S.push(d(V,{indexes:[1,0],x:H+(_.width-v.width)/2,y:A-v.height/2}));return h.length<2&&S.push(d(V,{indexes:[1],x:H+(_.width-v.width)/2,y:A+(T-v.height)/2})),w&&I.push(d(w,{x:B,y:A+(T-q.height)/2,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:Ee(l,[0])||b.colorPrimary,colorNegative:Ee(l,[1])||b.colorPrimary})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(O,{children:[d(O,{children:I}),d(ye,{children:C}),d(Ce,{children:S})]})]})};be("compare-binary-horizontal",{component:cI,composites:["title","item"]});var lI={none:5,"dot-line":100,"arc-dot":20,"split-line":5},uI=e=>{let{Title:t,Items:r,data:n,gap:i=20,groupGap:o=0,decoration:s="none",surround:a=!0,flipRoot:c=!1,flipLeaf:l=!1,options:u}=e,[f,h]=r,{title:p,desc:x,items:m=[]}=n,g=t?d(t,{title:p,desc:x}):null,y=d(f,{indexes:[0],data:n,datum:n.items[0],themeColors:{}}),b=d(h,{indexes:[0,0],data:n,datum:m[0]?.children?.[0]||m[2]}),_=Y(y),v=Y(b),w=[],q=[],[C,S]=m,I=C?.children||[],M=S?.children||[],T=Math.max(_.height,I.length*(v.height+i)-i,M.length*(v.height+i)-i),P=lI[s]||0,A=v.width+P,j=A+_.width+o,B=(T-_.height)/2;C&&w.push(d(f,{indexes:[0],x:A,y:B,data:n,datum:C,positionH:c?"normal":"flipped"})),S&&w.push(d(f,{indexes:[1],x:j,y:B,data:n,datum:S,positionH:c?"flipped":"normal"}));let H=(X,D,k)=>{if(s==="none")return;let[R,G]=D,W=Ee(u,k),N={x:R,y:G,width:v.width,height:v.height,side:X,color:W||"#ccc",colorBg:u.themeConfig.colorBg||"#fff"};s==="split-line"?q.push(d(dI,{...N})):s==="dot-line"&&q.push(d(fI,{...N}))};if(a){let D=(2*_.width+o+v.width)/2+P,k=A+_.width+o/2,R=B+_.height/2;I.forEach((G,W)=>{let N=I.length*(v.height+i)-i,$=(T-N)/2+W*(v.height+i),F=$+v.height/2-R,K=Math.max(0,D*D-F*F),ie=k-Math.sqrt(K)-v.width/2;w.push(d(h,{indexes:[0,W],datum:G,data:n,x:ie,y:$,positionH:l?"flipped":"normal"})),H("left",[ie,$],[0,W])}),M.forEach((G,W)=>{let N=M.length*(v.height+i)-i,$=(T-N)/2+W*(v.height+i),F=$+v.height/2-R,K=Math.max(0,D*D-F*F),ie=k+Math.sqrt(K)-v.width/2;w.push(d(h,{indexes:[1,W],datum:G,data:n,x:ie,y:$,positionH:l?"normal":"flipped"})),H("right",[ie,$],[1,W])})}else I.forEach((X,D)=>{let k=I.length*(v.height+i)-i,G=(T-k)/2+D*(v.height+i),W=[0,D],N=0;w.push(d(h,{indexes:W,datum:X,data:n,x:N,y:G,positionH:l?"flipped":"normal"})),H("left",[N,G],W)}),M.forEach((X,D)=>{let k=M.length*(v.height+i)-i,G=(T-k)/2+D*(v.height+i),W=[1,D],N=j+_.width+P;w.push(d(h,{indexes:W,datum:X,data:n,x:N,y:G,positionH:l?"normal":"flipped"})),H("right",[N,G],W)});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{children:[d(ye,{children:w}),d(O,{width:0,height:0,children:q})]})]})},dI=e=>{let{x:t,y:r,width:n,height:i,color:o,colorBg:s,side:a}=e,c=r+i,l=`split-line-linear-gradient-${a}`;return E(De,{children:[d(ke,{children:d(ds,{id:l,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),d(we,{x:t,y:c,width:n,height:1,fill:`url(#${l})`})]})},fI=e=>{let{x:t,y:r,side:n,width:i,height:o,color:s,colorBg:a}=e,c=6,l=c/3,u=c*2,f=l*2,h=5,p=n==="left"?t+i+c+h:t-c-h,x=r+o/2,m=p-l,g=x-l,y=80,b=n==="left"?y:-y,_=`dot-line-linear-gradient-${n}`;return E(O,{children:[d(ke,{children:d(ds,{id:_,startColor:s,stopColor:a,direction:n==="left"?"left-right":"right-left"})}),E(ot,{children:[d(je,{x:p-c,y:x-c,width:u,height:u,fill:"none",strokeWidth:1,stroke:s}),d(je,{x:m,y:g,width:f,height:f,fill:s})]}),d(we,{x:n==="left"?p:p+b,y:x-.5,width:y,height:1,fill:`url(#${_})`})]})};be("compare-hierarchy-left-right",{component:uI,composites:["title","item"]});var hI=e=>{let{Title:t,Items:r,data:n,gap:i=0,itemGap:o=20,columnWidth:s=280,itemPadding:a=5,showColumnBackground:c=!0,columnBackgroundAlpha:l=.08,options:u}=e,[f,h]=r,{title:p,desc:x,items:m=[]}=n,g=t?d(t,{title:p,desc:x}):null,y=Fa(u),b=[],_=[],v=s-a*2,w=Y(d(f,{indexes:[0],data:n,datum:m[0],width:s})),q=Y(d(h,{indexes:[0,0],data:n,datum:m[0]?.children?.[0]||{},width:v})),C=Y(d(V,{indexes:[0]})),S=Math.max(...m.map(M=>M.children?.length||0),0),I=w.height+o+S*(q.height+o);if(m.forEach((M,T)=>{let{children:P=[]}=M,A=T*(s+i),j=A,B=0;if(c){let k=`${y[T%y.length]}${Math.round(l*255).toString(16).padStart(2,"0")}`;b.push(d(we,{x:A,y:B,width:s,height:I,fill:k,rx:0,ry:0,"data-element-type":"shape"}))}b.push(d(f,{indexes:[T],datum:M,data:n,x:j,y:B,width:s})),_.push(d(Pe,{indexes:[T],x:j+w.width-C.width-10,y:B+10})),T===0&&_.push(d(V,{indexes:[T],x:j+w.width/2-C.width/2,y:B-C.height-5}));let H=B+w.height+o;P.forEach((D,k)=>{let R=H+k*(q.height+o),G=j+a,W=[T,k];b.push(d(h,{indexes:W,datum:D,data:n,x:G,y:R,width:v})),_.push(d(Pe,{indexes:W,x:G+q.width-C.width-10,y:R+(q.height-C.height)/2})),k<P.length-1&&_.push(d(V,{indexes:[T,k+1],x:G+q.width/2-C.width/2,y:R+q.height-C.height/2}))});let X=j+a;if(P.length>0){let D=H+P.length*(q.height+o);_.push(d(V,{indexes:[T,P.length],x:X+q.width/2-C.width/2,y:D-q.height/2-C.height/2}))}else _.push(d(V,{indexes:[T,0],x:X+q.width/2-C.width/2,y:H-o/2-C.height/2}))}),m.length>0){let M=m.length*(s+i);_.push(d(V,{indexes:[m.length],x:M-i/2-C.width/2,y:-C.height-5}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{children:[d(ye,{children:b}),d(Ce,{children:_})]})]})};be("compare-hierarchy-row",{component:hI,composites:["title","item"]});var Td=Object.assign,pI={getId:e=>e.id||e.name,getPreH:e=>e.preH||0,getPreV:e=>e.preV||0,getHGap:e=>e.hgap||18,getVGap:e=>e.vgap||18,getChildren:e=>e.children,getHeight:e=>e.height||36,getWidth(e){let t=e.label||" ";return e.width||18*t.split("").length}},Ba=class e{constructor(t,r){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof e||"x"in t&&"y"in t&&"children"in t){let o=t;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=t;let n=r.getHGap(t),i=r.getVGap(t);this.preH=r.getPreH(t),this.preV=r.getPreV(t),this.width=r.getWidth(t),this.height=r.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=r.getId(t),this.addGap(n,i)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(t,r){this.hgap+=t,this.vgap+=r,this.width+=2*t,this.height+=2*r}eachNode(t){let r,n=[this];for(;r=n.shift();)t(r),n=r.children.concat(n)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let r,n=[this];for(;r=n.shift();)t(r),n=n.concat(r.children)}getBoundingBox(){let t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(r=>{t.left=Math.min(t.left,r.x),t.top=Math.min(t.top,r.y),t.width=Math.max(t.width,r.x+r.width),t.height=Math.max(t.height,r.y+r.height)}),t}translate(t=0,r=0){this.eachNode(n=>{n.x+=t,n.y+=r,n.x+=n.preH,n.y+=n.preV})}right2left(){let t=this.getBoundingBox();this.eachNode(r=>{r.x=r.x-2*(r.x-t.left)-r.width}),this.translate(t.width,0)}bottom2top(){let t=this.getBoundingBox();this.eachNode(r=>{r.y=r.y-2*(r.y-t.top)-r.height}),this.translate(0,t.height)}};function Sd(e,t={},r){t=Td({},pI,t);let n=new Ba(e,t),i=[n],o;if(!r&&!e.collapsed){for(;o=i.shift();)if(!o.data.collapsed){let s=t.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let c=0;c<a;c++){let l=new Ba(s[c],t);o.children[c]=l,i.push(l),l.parent=o,l.depth=o.depth+1}}}return n}var Ed=class{constructor(t,r={}){this.options=r,this.rootNode=Sd(t,r)}execute(){throw new Error("please override this method")}};function mI(e,t){let r=Sd(e.data,t,!0),n=Sd(e.data,t,!0),i=e.children.length,o=Math.round(i/2),s=t.getSide||function(a,c){return c<o?"right":"left"};for(let a=0;a<i;a++){let c=e.children[a];s(c,a)==="right"?n.children.push(c):r.children.push(c)}return r.eachNode(a=>{a.isRoot()||(a.side="left")}),n.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:r,right:n}}var Ln=["LR","RL","TB","BT","H","V"],gI=["LR","RL","H"],xI=Ln[0];function yI(e,t,r){let n=t.direction||xI;if(t.isHorizontal=(o=>gI.indexOf(o)>-1)(n),n&&Ln.indexOf(n)===-1)throw new TypeError(`Invalid direction: ${n}`);if(n===Ln[0])r(e,t);else if(n===Ln[1])r(e,t),e.right2left();else if(n===Ln[2])r(e,t);else if(n===Ln[3])r(e,t),e.bottom2top();else if(n===Ln[4]||n===Ln[5]){let{left:o,right:s}=mI(e,t);r(o,t),r(s,t),t.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),e.x=o.x,e.y=s.y;let a=e.getBoundingBox();t.isHorizontal?a.top<0&&e.translate(0,-a.top):a.left<0&&e.translate(-a.left,0)}let i=t.fixedRoot;return i===void 0&&(i=!0),i&&e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),(function(o,s){if(s.radial){let[a,c]=s.isHorizontal?["x","y"]:["y","x"],l={x:1/0,y:1/0},u={x:-1/0,y:-1/0},f=0;o.DFTraverse(x=>{f++;let{x:m,y:g}=x;l.x=Math.min(l.x,m),l.y=Math.min(l.y,g),u.x=Math.max(u.x,m),u.y=Math.max(u.y,g)});let h=u[c]-l[c];if(h===0)return;let p=2*Math.PI/f;o.DFTraverse(x=>{let m=x[c],g=l[c],y=x[a],b=o[a],_=(m-g)/h*(2*Math.PI-p)+p,v=y-b;x.x=Math.cos(_)*v,x.y=Math.sin(_)*v})}})(e,t),e}var bI=["LR","RL","H"],lee=bI[0];function ly(e,t){let r=0;return e.children.length?e.children.forEach(n=>{r+=ly(n,t)}):r=e.height,e._subTreeSep=t.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}function uy(e){let t=e.children,r=t.length;if(r){t.forEach(a=>{uy(a)});let n=t[0],i=t[r-1],o=i.y-n.y+i.height,s=0;if(t.forEach(a=>{s+=a.totalHeight}),o>e.height)e.y=n.y+o/2-e.height/2;else if(t.length!==1||e.height>s){let a=e.y+(e.height-o)/2-n.y;t.forEach(c=>{c.translate(0,a)})}else e.y=(n.y+n.height/2+i.y+i.height/2)/2-e.height/2}}var _I={getSubTreeSep:()=>0};function vI(e,t={}){return t=Td({},_I,t),e.parent={x:0,width:0,height:0,y:0},e.BFTraverse(r=>{r.x=r.parent.x+r.parent.width}),e.parent=void 0,ly(e,t),e.startY=0,e.y=e.totalHeight/2-e.height/2,e.eachNode(r=>{let n=r.children,i=n.length;if(i){let o=n[0];if(o.startY=r.startY+r._subTreeSep,i===1)o.y=r.y+r.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<i;s++){let a=n[s];a.startY=n[s-1].startY+n[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),uy(e),e}var Id=class extends Ed{execute(){return yI(this.rootNode,this.options,vI)}},wI={};function dy(e,t){let r=Td({},wI,t);return new Id(e,r).execute()}var qI=60,CI=14,fy=30,hy="center",SI="curved",EI=2,II="node",TI="solid",py=(e,t=[],r=0)=>{let n=[...t,r];return{...e,_indexes:n,children:e.children?.map((i,o)=>py(i,n,o))??[]}},my=(e,t,r,n)=>{var i;t.push(e),(i=e.data)._flatIndex??(i._flatIndex=t.length-1),n&&r.push({parent:n,child:e}),e.children?.forEach(s=>my(s,t,r,e))},MI=(e,t,r,n)=>{let i=Math.abs(r-e)/2,o=r>e?e+i:e-i,s=r>e?r-i:r+i;return`M ${e} ${t} C ${o} ${t} ${s} ${n} ${r} ${n}`},AI=(e,t,r,n)=>`M ${e} ${t} L ${r} ${n}`,LI=(e,t,r,n=hy)=>{let i=l=>Math.max(0,Math.min(1,l)),s=(l=>l==="top"?0:l==="bottom"?1:l==="center"?.5:i(l))(n),a=e.y+e.height*s,c=t.y+t.height*s;return r==="left"?{sx:e.x,sy:a,tx:t.x+t.width,ty:c}:{sx:e.x+e.width,sy:a,tx:t.x,ty:c}},kI=e=>{let{Title:t,Items:r,data:n,levelGap:i=qI,nodeGap:o=CI,edgeAlign:s=hy,colorMode:a=II,edgeColorMode:c=TI,edgeType:l=SI,edgeWidth:u=EI,options:f}=e,{title:h,desc:p,items:x=[]}=n,m=t?d(t,{title:h,desc:p}):null,g=Qe(f),y=Y(d(V,{indexes:[0]})),b=new Map,_=0;if(!x.length||!r?.length)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,d(O,{children:d(V,{indexes:[0],x:0,y:0})})]});let v=py(x[0]),w=new WeakMap,q=new WeakMap,C=new WeakMap,S=(L,$)=>{if(a==="group"){let z=String(L.group??""),F=b.get(z);return F==null&&(F=_,b.set(z,F),_+=1),[F]}return ja({depth:$,originalIndexes:L._indexes,flatIndex:L._flatIndex},a)},I=(L,$)=>{let z=C.get(L);if(z)return z;let F=S(L,$),K=Ee(f,F),Q=it({colorPrimary:K},f);return C.set(L,Q),q.set(L,K),Q},M=L=>{let $=w.get(L);if($)return $;let z=Math.max(L._indexes.length-1,0),F=Bi(r,z),K=Y(d(F,{indexes:L._indexes,data:n,datum:L,positionH:"center",positionV:"middle",themeColors:I(L,z)}));return w.set(L,K),K},T=dy(v,{direction:"H",getSide:(L,$)=>{if(!L.parent)return"right";let z=(L.parent.children||[]).indexOf(L);return(z>=0?z:$)%2===0?"left":"right"},getWidth:L=>M(L).width,getHeight:L=>M(L).height,getHGap:()=>i,getVGap:()=>o}),P=[],A=[];my(T,P,A);let j=P.length>0?Math.min(...P.map(L=>L.x)):0,B=P.length>0?Math.min(...P.map(L=>L.y)):0,H=fy-j,X=fy-B,D=[],k=[],R=[],G=[],W=new WeakMap;P.forEach(L=>{let $=L.data,z=M($),F=L.x+H+(L.hgap??0),K=L.y+X+(L.vgap??0),Q=Bi(r,L.depth),ie=L.depth===0?"center":L.side==="left"?"flipped":"normal",fe=I($,L.depth);R.push(d(Q,{indexes:$._indexes,data:n,datum:$,x:F,y:K,positionH:ie,positionV:"middle",themeColors:fe})),W.set(L,{x:F,y:K,width:z.width,height:z.height,centerX:F+z.width/2,centerY:K+z.height/2})}),A.forEach(L=>{let{parent:$,child:z}=L,F=W.get(z),K=W.get($);if(!F||!K)return;let Q=z.data,{sx:ie,sy:fe,tx:U,ty:J}=LI(K,F,z.side,s),ne=q.get(Q)??Ee(f,S(Q,z.depth)),te=q.get($.data)??Ee(f,S($.data,$.depth)),ve=l==="straight"?AI(ie,fe,U,J):MI(ie,fe,U,J),ee=`edge-gradient-${Q._indexes.join("-")}`;k.push(d(ae,{d:ve,stroke:c==="gradient"?`url(#${ee})`:ne??g,strokeWidth:u,fill:"none"})),c==="gradient"&&D.push(E("linearGradient",{id:ee,gradientUnits:"userSpaceOnUse",x1:ie,y1:fe,x2:U,y2:J,children:[d("stop",{offset:"0%",stopColor:te??g}),d("stop",{offset:"100%",stopColor:ne??g})]}));let oe=Q.children?.length??0,se=[...Q._indexes,oe],ge=F.x+(F.width-y.width)/2,he=F.y+F.height+8,_e=he+y.height+6;z.depth>0&&G.push(d(Pe,{indexes:Q._indexes,x:ge,y:he})),G.push(d(V,{indexes:se,x:ge,y:_e}))});let N=W.get(T);if(N){let L=T.data,$=L.children?.length??0,z=[...L._indexes,$],F=N.x+(N.width-y.width)/2,K=N.y+N.height+8+y.height+6;G.push(d(V,{indexes:z,x:F,y:K}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,E(O,{children:[D.length>0?d(ke,{children:D}):null,d(O,{children:k}),d(ye,{children:R}),d(Ce,{children:G})]})]})};be("hierarchy-mindmap",{component:kI,composites:["title","item"]});var Gi=(e,t)=>{if(!e||e[0]!=="#"||e.length!==7)return e;let r=Math.max(0,Math.min(1,t)),n=Math.round(r*255).toString(16).padStart(2,"0");return`${e}${n}`},Wi=e=>e==null?"":String(e),Na=(e,t,r)=>Y(d(qe,{fontSize:t,fontWeight:r,children:e})),RI=(e,t,r,n=" ")=>{let i=Na(n,t,r),o=i.width,s=i.height;return e.forEach(a=>{let c=Na(a||" ",t,r);o=Math.max(o,c.width),s=Math.max(s,c.height)}),{width:o,height:s}},gy=(e,t,r,n)=>{let i=RI(e,t,"normal","Item");return{pillWidth:i.width+r*2,pillHeight:i.height+n*2}},PI=e=>{let{Title:t,data:r,options:n,rowGap:i=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:c=2,ungroupedColumns:l=6,layerLabelPosition:u="left",rowPadding:f=20,groupPadding:h=16,labelPaddingX:p=28,labelPaddingY:x=16,pillPaddingX:m=18,pillPaddingY:g=10,labelFontSize:y=20,groupTitleFontSize:b=18,pillFontSize:_=16,groupTitleGap:v=10,rowRadius:w=12,groupRadius:q=10,pillRadius:C=12}=e,{title:S,desc:I,items:M=[]}=r,T=t?d(t,{title:S,desc:I}):null;if(M.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[T,d(O,{children:d(ye,{})})]});let P=it(n.themeConfig),A=[],j=[],B=u==="right",H=.12,X=.55,D=.08,k=.4,R=.06,G=.35,W=M.map(U=>{let J=Wi(U.label),ne=Na(J||" ",y,"bold"),te=ne.width+p*2,ve=ne.height+x*2,ee=U.children||[];if(ee.some(Re=>(Re.children?.length||0)>0)){let Re=[];ee.forEach($e=>{($e.children||[]).forEach(Ae=>{Re.push(Wi(Ae.label))})});let{pillWidth:Ze,pillHeight:Oe}=gy(Re,_,m,g),Te=ee.map($e=>{let Ae=Wi($e.label),de=Na(Ae||" ",b,"bold"),We=$e.children||[],ze=We.length>0?Math.min(c,We.length):0,re=ze>0?Math.ceil(We.length/ze):0,Le=ze>0?ze*Ze+(ze-1)*a:0,Ye=re>0?re*Oe+(re-1)*a:0,st=Math.max(de.width,Le)+h*2,Be=h*2+de.height+(re>0?v+Ye:0);return{label:Ae,children:We,width:st,height:Be,titleHeight:de.height,columns:ze,contentWidth:Le,pillWidth:Ze,pillHeight:Oe}}),Xe=Te.reduce(($e,Ae)=>$e+Ae.width,0)+(Te.length>1?(Te.length-1)*s:0),xe=Te.reduce(($e,Ae)=>Math.max($e,Ae.height),0);return{label:J,labelWidth:te,labelHeight:ve,hasGroups:!0,children:ee,groupMetrics:Te,contentInnerWidth:Xe,contentInnerHeight:xe}}let se=ee.map(Re=>Wi(Re.label)),{pillWidth:ge,pillHeight:he}=gy(se,_,m,g),_e=ee.length>0?Math.min(l,ee.length):0,pe=_e>0?Math.ceil(ee.length/_e):0,me=_e>0?_e*ge+(_e-1)*a:0,Ie=pe>0?pe*he+(pe-1)*a:0;return{label:J,labelWidth:te,labelHeight:ve,hasGroups:!1,children:ee,pillWidth:ge,pillHeight:he,columns:_e,contentInnerWidth:me,contentInnerHeight:Ie}}),N=W.reduce((U,J)=>Math.max(U,J.labelWidth),0),L=W.reduce((U,J)=>Math.max(U,J.contentInnerWidth),0),$=U=>{let J=Ee(n,[U])||P.colorPrimary||"#6c7dff";return{rowFill:Gi(J,H),rowStroke:Gi(J,X),groupFill:Gi(J,D),groupStroke:Gi(J,k),pillFill:Gi(J,R),pillStroke:Gi(J,G)}},z=(U,J,ne,te,ve,ee,oe,se,ge,he,_e,pe,me,Ie)=>{A.push(d(we,{x:ne,y:oe,width:ve,height:se,fill:me,stroke:Ie,rx:w,ry:w,"data-element-type":"shape"})),A.push(d(we,{x:ge,y:he,width:_e,height:pe,fill:me,stroke:Ie,rx:w,ry:w,"data-element-type":"shape"})),j.push(d(qe,{x:ne,y:te,width:ve,height:ee,fontSize:y,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:P.colorText,"data-element-type":"item-label","data-indexes":J,children:U}))},F=(U,J,ne,te)=>{let ve=U.groupMetrics||[],ee=U.label,oe=[J],se=N,ge=U.labelHeight,he=U.contentInnerHeight,_e=Math.max(0,L-U.contentInnerWidth),pe=ve.length>0?_e/ve.length:0,Ie=U.contentInnerWidth+(ve.length>0?_e:0)+f*2,Re=he+f*2,Ze=Math.max(ge,Re),Oe=B?0:se+o,Te=B?Oe+Ie+o:0,Xe=ne+(Ze-ge)/2,xe=ne+(Ze-Re)/2;z(ee,oe,Te,Xe,se,ge,ne,Ze,Oe,xe,Ie,Re,te.rowFill,te.rowStroke);let $e=Oe+f;return ve.forEach((de,We)=>{let ze=[...oe,We],re=de.width+pe,Le=xe+f+(he-de.height)/2;A.push(d(we,{x:$e,y:Le,width:re,height:de.height,fill:te.groupFill,stroke:te.groupStroke,rx:q,ry:q,"data-element-type":"shape"}));let Ye=de.children.length>0,et=Ye?Le+h:Le,st=Ye?de.titleHeight:de.height,Be=Ye?"top":"middle";if(j.push(d(qe,{x:$e+h,y:et,width:re-h*2,height:st,fontSize:b,fontWeight:"bold",alignHorizontal:"center",alignVertical:Be,fill:P.colorText,"data-element-type":"item-label","data-indexes":ze,children:de.label})),de.columns>0){let tt=re-h*2,pt=tt-de.contentWidth,yt=pt>0?pt/de.columns:0,ut=de.pillWidth+yt,bt=de.columns*ut+(de.columns-1)*a,Kt=(tt-bt)/2,Lr=$e+h+Math.max(0,Kt),pr=Le+h+de.titleHeight+v;de.children.forEach((at,Rt)=>{let ct=[...ze,Rt],rt=Math.floor(Rt/de.columns),nr=Rt%de.columns,ir=Lr+nr*(ut+a),kr=pr+rt*(de.pillHeight+a),jr=Math.min(C,de.pillHeight/2);A.push(d(we,{x:ir,y:kr,width:ut,height:de.pillHeight,fill:te.pillFill,stroke:te.pillStroke,rx:jr,ry:jr,"data-element-type":"shape"})),j.push(d(qe,{x:ir,y:kr,width:ut,height:de.pillHeight,fontSize:_,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:P.colorText,"data-element-type":"item-label","data-indexes":ct,children:Wi(at.label)}))})}$e+=re+s}),{rowWidth:B?Te+se:Oe+Ie,rowHeight:Ze}},K=(U,J,ne,te)=>{let ve=U.label,ee=[J],oe=N,se=U.labelHeight,ge=U.contentInnerHeight,he=Math.max(0,L-U.contentInnerWidth),_e=U.columns||0,pe=U.pillWidth||0,me=U.pillHeight||0,Ie=_e>0?he/_e:0,Re=pe+Ie,Oe=(_e>0?_e*Re+(_e-1)*a:0)+f*2,Te=ge+f*2,Xe=Math.max(se,Te),xe=B?0:oe+o,$e=B?xe+Oe+o:0,Ae=ne+(Xe-se)/2,de=ne+(Xe-Te)/2;if(z(ve,ee,$e,Ae,oe,se,ne,Xe,xe,de,Oe,Te,te.rowFill,te.rowStroke),_e>0){let ze=xe+f,re=de+f;(U.children||[]).forEach((Ye,et)=>{let st=[...ee,et],Be=Math.floor(et/_e),tt=et%_e,pt=ze+tt*(Re+a),yt=re+Be*(me+a),ut=Math.min(C,me/2);A.push(d(we,{x:pt,y:yt,width:Re,height:me,fill:te.pillFill,stroke:te.pillStroke,rx:ut,ry:ut,"data-element-type":"shape"})),j.push(d(qe,{x:pt,y:yt,width:Re,height:me,fontSize:_,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:P.colorText,"data-element-type":"item-label","data-indexes":st,children:Wi(Ye.label)}))})}return{rowWidth:B?$e+oe:xe+Oe,rowHeight:Xe}},Q=0,ie=0;W.forEach((U,J)=>{let ne=$(J),{rowWidth:te,rowHeight:ve}=U.hasGroups?F(U,J,Q,ne):K(U,J,Q,ne);ie=Math.max(ie,te),Q+=ve+i});let fe=Math.max(Q-i,0);return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[T,E(O,{width:ie,height:fe,children:[d(O,{children:A}),d(ye,{children:j})]})]})};be("hierarchy-structure",{component:PI,composites:["title"]});var xy=(e,t)=>{let r=Math.max(0,t/2-1);return Math.min(e,r)},OI=e=>{let{Title:t,Items:r,data:n,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:c=3,edgeStyle:l="solid",edgeDashPattern:u="5,5",edgeCornerRadius:f=0,edgeOffset:h=0,edgeOrigin:p="center",edgeOriginPadding:x=20,edgeMarker:m="none",markerSize:g=12,colorMode:y="branch",orientation:b="top-bottom",options:_}=e,v=b==="left-right"||b==="right-left",w=b==="bottom-top"||b==="right-left"?-1:1,{title:q,desc:C}=n,S=Qe(_),I=new Map,M=0,T=oe=>{let se=[...oe];return se[0]?.children||(se[0]={...se[0],children:se.slice(1)},se.splice(1)),se},P=(oe,se,ge,he,_e,pe="vertical")=>{let me=pe==="vertical",Ie=me?he-se:ge-oe,Re=me?ge-oe:he-se,Ze=Ie===0?1:Math.sign(Ie),Oe=Re===0?1:Math.sign(Re),Te=me?se+Ie/2:oe+Ie/2,Xe=Math.min(_e,Math.abs(Ie)/2,Math.abs(Re)/2);return Xe===0?me?`M ${oe} ${se} L ${oe} ${Te} L ${ge} ${Te} L ${ge} ${he}`:`M ${oe} ${se} L ${Te} ${se} L ${Te} ${he} L ${ge} ${he}`:me?`M ${oe} ${se}
|
|
94
|
-
L ${oe} ${Te-Ze*Xe}
|
|
95
|
-
Q ${oe} ${Te} ${oe+Oe*Xe} ${Te}
|
|
96
|
-
L ${ge-Oe*Xe} ${Te}
|
|
97
|
-
Q ${ge} ${Te} ${ge} ${Te+Ze*Xe}
|
|
98
|
-
L ${ge} ${he}`:`M ${oe} ${se}
|
|
99
|
-
L ${Te-Ze*Xe} ${se}
|
|
100
|
-
Q ${Te} ${se} ${Te} ${se+Oe*Xe}
|
|
101
|
-
L ${Te} ${he-Oe*Xe}
|
|
102
|
-
Q ${Te} ${he} ${Te+Ze*Xe} ${he}
|
|
103
|
-
L ${ge} ${he}`},A=oe=>{let{x:se,y:ge}=oe;return v?{x:ge*w,y:se}:{x:se,y:ge*w}},j=(oe,se,ge)=>{let{x:he,y:_e}=A(oe),pe=he+ge.x,me=_e+ge.y,Ie=me+se.height/2;return{centerX:pe,centerY:Ie,left:pe-se.width/2,right:pe+se.width/2,top:me,bottom:me+se.height}},B=oe=>{if(!oe.length)return null;let se=oe[0],ge=(he,_e=[],pe=0)=>{let me=[..._e,pe];return{...he,_originalIndex:me,_depth:me.length-1,children:he.children?.map((Ie,Re)=>ge(Ie,me,Re))??[]}};return se.children?.length?ge(se):{...se,_originalIndex:[0],_depth:0,children:oe.slice(1).map((he,_e)=>({...he,_originalIndex:[_e+1],_depth:1}))}},H=oe=>{let se=0,ge=0,he=new Map,_e=new Map;oe.each(pe=>{_e.has(pe.depth)||_e.set(pe.depth,pe.data)});for(let pe=0;pe<oe.height+1;pe++){let me=Bi(r,pe),Ie=_e.get(pe)??{},Re=Ie._originalIndex??Array(pe+1).fill(0),Ze=Y(d(me,{indexes:Re,data:n,datum:Ie,positionH:"center"}));he.set(pe,Ze),se=Math.max(se,Ze.width),ge=Math.max(ge,Ze.height)}return{levelBounds:he,maxWidth:se,maxHeight:ge}},X=(oe,se)=>{if(y==="group"){let ge=String(oe?.group??""),he=I.get(ge);return he==null&&(he=M,I.set(ge,he),M+=1),[he]}return ja({depth:se,originalIndexes:oe._originalIndex,flatIndex:oe._flatIndex},y)},D=(oe,se,ge,he,_e,pe)=>{let{depth:me,data:Ie,parent:Re}=oe,Ze=Ie._originalIndex,Oe=Bi(r,me),Te=se.get(me),Xe=j(oe,Te,he),xe=Xe.left,$e=Xe.top,Ae={items:[],btns:[],deco:[]},de=X(Ie,me),We=Ee(_,de),ze=it({colorPrimary:We},_);if(Ae.items.push(d(Oe,{indexes:Ze,datum:Ie,data:n,x:xe,y:$e,positionH:"center",themeColors:ze})),Ae.btns.push(d(Pe,{indexes:Ze,x:xe+(Te.width-ge.width)/2,y:$e+Te.height+5}),d(V,{indexes:[...Ze,0],x:xe+(Te.width-ge.width)/2,y:$e+Te.height+ge.height+10})),Re){let re=se.get(Re.depth),Le=j(Re,re,he),Ye=pe.filter(at=>at.parent===Re),et=Ye.findIndex(at=>at===oe),st=Ye.length,Be,tt;if(p==="distributed"&&st>1)if(v){let at=xy(x,re.height),Rt=Le.top+at,rt=(Le.bottom-at-Rt)/st;tt=Rt+rt*et+rt/2,Be=(w>0?Le.right:Le.left)+h*w}else{let at=xy(x,re.width),Rt=Le.left+at,rt=(Le.right-at-Rt)/st;Be=Rt+rt*et+rt/2,tt=(w>0?Le.bottom:Le.top)+h*w}else Be=v?(w>0?Le.right:Le.left)+h*w:Le.centerX,tt=v?Le.centerY:(w>0?Le.bottom:Le.top)+h*w;let pt=v?(w>0?Xe.left:Xe.right)-h*w:Xe.centerX,yt=v?Xe.centerY:(w>0?Xe.top:Xe.bottom)-h*w,ut=pt,bt=yt;m==="arrow"&&(v?ut-=g*w:bt-=g*w);let Kt;if(s==="curved")if(v){let at=Be+(ut-Be)/2;Kt=`M ${Be} ${tt} C ${at} ${tt}, ${at} ${bt}, ${ut} ${bt}`}else{let at=tt+(bt-tt)/2;Kt=`M ${Be} ${tt} C ${Be} ${at}, ${ut} ${at}, ${ut} ${bt}`}else if(f>0)Kt=P(Be,tt,ut,bt,f,v?"horizontal":"vertical");else if(v){let at=Be+(ut-Be)/2;Kt=`M ${Be} ${tt} L ${at} ${tt} L ${at} ${bt} L ${ut} ${bt}`}else{let at=tt+(bt-tt)/2;Kt=`M ${Be} ${tt} L ${Be} ${at} L ${ut} ${at} L ${ut} ${bt}`}let Lr=S;if(a==="gradient"){let at=X(Re.data,Re.depth),Rt=X(Ie,me),ct=Ee(_,at),rt=Ee(_,Rt),nr=`gradient-${Re.data._originalIndex.join("-")}-${Ze.join("-")}`;_e.push(E("linearGradient",{id:nr,x1:Be,y1:tt,x2:ut,y2:bt,gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0%",stopColor:ct}),d("stop",{offset:"100%",stopColor:rt})]})),Lr=`url(#${nr})`}let pr=l==="dashed"?u:"";if(Ae.deco.push(d(ae,{d:Kt,stroke:Lr,strokeWidth:c,strokeDasharray:pr,fill:"none"})),m==="arrow"){let at=a==="gradient"?Ee(_,de):Qe(_),Rt=v?[{x:pt,y:yt},{x:pt-g*w,y:yt-g/2},{x:pt-g*w,y:yt+g/2}]:[{x:pt,y:yt},{x:pt-g/2,y:yt-g*w},{x:pt+g/2,y:yt-g*w}];Ae.deco.push(d(gt,{points:Rt,fill:at,width:g,height:g}))}if(m==="dot"){let at=X(Re.data,Re.depth),Rt=a==="gradient"?Ee(_,at):Qe(_);Ae.deco.push(d(je,{x:(v?w>0?Le.right+h:Le.left-h:Be)-g,y:(v?tt:w>0?Le.bottom+h:Le.top-h)-g,width:g*2,height:g*2,fill:Rt}));let ct=a==="gradient"?Ee(_,de):Qe(_);Ae.deco.push(d(je,{x:pt-g,y:yt-g,width:g*2,height:g*2,fill:ct}))}}return Ae},k=(oe,se,ge)=>{let he=new Map;oe.forEach(pe=>{let me=pe.parent?pe.parent.data._originalIndex.join("-"):"root";(he.get(me)??he.set(me,[]).get(me)).push(pe)});let _e=[];return he.forEach(pe=>{if(pe.length<=1)return;let me=pe.slice().sort((Ie,Re)=>v?A(Ie).y-A(Re).y:A(Ie).x-A(Re).x);if(me.length!==0)for(let Ie=0;Ie<me.length-1;Ie++){let Re=A(me[Ie]),Ze=A(me[Ie+1]),Oe=me[Ie].data._originalIndex.slice(0,-1),Te=me[Ie].data._originalIndex.at(-1)+1;if(v){let Xe=Re.x+ge.x+(w>0?-se.width-5:se.width+5),xe=(Re.y+Ze.y)/2+ge.y-se.height/2;_e.push(d(V,{indexes:[...Oe,Te],x:Xe,y:xe}))}else{let Xe=Re.y+ge.y-se.height-5,xe=(Re.x+Ze.x)/2+ge.x-se.width/2;_e.push(d(V,{indexes:[...Oe,Te],x:xe,y:Xe}))}}}),_e},R=T(n.items),G=t?d(t,{title:q,desc:C}):null,W=Y(d(V,{indexes:[0]}));if(!R.length)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[G,d(O,{children:d(Ce,{children:d(V,{indexes:[0],x:-W.width/2,y:-W.height/2})})})]});let N=B(R),L=t1(N),{levelBounds:$,maxWidth:z,maxHeight:F}=H(L),Q=r1().nodeSize(v?[F+o,z+i]:[z+o,F+i]).separation(()=>1)(L).descendants(),ie=Q.map(oe=>A(oe)),fe=Math.min(...ie.map(oe=>oe.x)),U=Math.min(...ie.map(oe=>oe.y)),J={x:Math.max(0,-fe+z/2),y:Math.max(0,-U+W.height+10)},ne=[],te=[],ve=[],ee=[];return Q.forEach((oe,se)=>{oe.data._flatIndex=se;let{x:ge,y:he}=A(oe);oe.__layout={x:ge,y:he}}),Q.forEach(oe=>{let{items:se,btns:ge,deco:he}=D(oe,$,W,J,ee,Q);ne.push(...se),te.push(...ge),ve.push(...he)}),te.push(...k(Q,W,J)),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[G,E(O,{children:[ee.length>0&&d(ke,{children:ee}),d(ot,{children:ve}),d(ye,{children:ne}),d(Ce,{children:te})]})]})};be("hierarchy-tree",{component:OI,composites:["title","item"]});var $I=e=>{let{Title:t,Item:r,data:n,gap:i=20,width:o,zigzag:s}=e,{title:a,desc:c,items:l=[]}=n,u=Y(d(V,{indexes:[0]})),f=Y(d(r,{indexes:[0],data:n,datum:l[0]})),h=o||f.width,p=t?d(t,{title:a,desc:c}):null,x=[],m=[],g=(h-u.width)/2;if(l.forEach((y,b)=>{let _=(f.height+i)*b,v=[b];m.push(d(r,{indexes:v,datum:y,data:n,y:_,width:h,positionV:"middle",positionH:s?b%2===0?"normal":"flipped":"normal"})),x.push(d(Pe,{indexes:v,x:-u.width-10,y:_+(f.height-u.height)/2}));let w=b===0?-u.height:_-i/2-u.height/2;x.push(d(V,{indexes:v,x:g,y:w}))}),l.length>0){let b=(f.height+i)*(l.length-1)+f.height;x.push(d(V,{indexes:[l.length],x:g,y:b}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(O,{children:[d(ye,{children:m}),d(Ce,{children:x})]})]})};be("list-column",{component:$I,composites:["title","item"]});var zI=e=>{let{Title:t,Item:r,data:n,columns:i=3,gap:o=24,zigzag:s}=e,{title:a,desc:c,items:l=[]}=n,u=t?d(t,{title:a,desc:c}):null,f=Y(d(V,{indexes:[0]})),h=Y(d(r,{indexes:[0],data:n,datum:l[0],positionH:"center"})),p=[],x=[],m=h.height+o,g=h.width+o,y=new Set;return l.forEach((b,_)=>{let v=Math.floor(_/i),w=_%i,q=w*g,C=v*m,S=[_];x.push(d(r,{indexes:S,datum:b,data:n,x:q,y:C,positionH:"center",positionV:s&&_%2===0?"normal":"flipped"})),p.push(d(Pe,{indexes:S,x:q+(h.width-f.width)/2,y:C+h.height})),w<i-1&&p.push(d(V,{indexes:[_+1],x:q+h.width+(o-f.width)/2,y:C+(h.height-f.height)/2})),w===0&&!y.has(v)&&(p.push(d(V,{indexes:[_],x:q-o/2-f.width/2,y:C+(h.height-f.height)/2})),y.add(v)),(w===i-1||_===l.length-1)&&p.push(d(V,{indexes:[_+1],x:q+h.width+o/2-f.width/2,y:C+(h.height-f.height)/2}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(O,{children:[d(ye,{children:x}),d(Ce,{children:p})]})]})};be("list-grid",{component:zI,composites:["title","item"]});var HI=e=>{let{Title:t,Item:r,data:n,gap:i=20,levelGap:o=20}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Y(d(V,{indexes:[0]})),f=Y(d(r,{indexes:[0],data:n,datum:c[0],positionH:"center"})),h=[],p=[],x=Math.ceil(Math.sqrt(c.length)),m=[],g=c.length;for(let w=0;w<x;w++){let q=Math.min(w+1,g);if(m.push(q),g-=q,g<=0)break}let y=0,b=Math.max(...m),v=(b*f.width+(b-1)*i)/2;return m.forEach((w,q)=>{let C=q*(f.height+o),S=w*f.width+(w-1)*i,I=v-S/2;for(let M=0;M<w&&y<c.length;M++){let T=I+M*(f.width+i),P=c[y],A=[y];p.push(d(r,{indexes:A,datum:P,data:n,x:T,y:C,positionH:"center"})),h.push(d(Pe,{indexes:A,x:T+(f.width-u.width)/2,y:C+f.height})),M<w-1&&h.push(d(V,{indexes:[y+1],x:T+f.width+(i-u.width)/2,y:C+(f.height-u.height)/2})),M===0&&h.push(d(V,{indexes:[y],x:T-i/2-u.width/2,y:C+(f.height-u.height)/2})),M===w-1&&h.push(d(V,{indexes:[y+1],x:T+f.width+i/2-u.width/2,y:C+(f.height-u.height)/2})),y++}}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(ye,{children:p}),d(Ce,{children:h})]})]})};be("list-pyramid",{component:HI,composites:["title","item"]});var FI=e=>{let{Title:t,Item:r,data:n,gap:i=20,zigzag:o}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Y(d(V,{indexes:[0]})),f=Y(d(r,{indexes:[0],data:n,datum:c[0],positionH:"center"})),h=[],p=[],x=(f.height-u.height)/2,m=f.height;if(c.forEach((g,y)=>{let b=(f.width+i)*y,_=[y];p.push(d(r,{indexes:_,datum:g,data:n,x:b,positionH:"center",positionV:o&&y%2===0?"normal":"flipped"})),h.push(d(Pe,{indexes:_,x:b+(f.width-u.width)/2,y:m}));let v=y===0?-(i+u.width)/2:b-(i+u.width)/2;h.push(d(V,{indexes:_,x:v,y:x}))}),c.length>0){let y=(f.width+i)*(c.length-1)+f.width+(i-u.width)/2;h.push(d(V,{indexes:[c.length],x:y,y:x}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(ye,{children:p}),d(Ce,{children:h})]})]})};be("list-row",{component:FI,composites:["title","item"]});var jI=e=>{let{Item:t,data:r,outerRadius:n=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:c}=e,{title:l,items:u=[]}=r,f=it(c.themeConfig),h=Y(d(V,{indexes:[0]})),p=[],x=[],m=[],g=n+100,y=n+100,b=s-o,_=Math.abs(b-360)<.01,v=u.length>0?a*(_?u.length:u.length-1):0,w=b-v,q=u.length>0?w/u.length:0;if(u.forEach((A,j)=>{let B=[j],H=o+(q+a)*j,X=H+q,k=a*Math.PI*n/180/i*(180/Math.PI),R=a,G=(H+R/2)*Math.PI/180,W=(X-R/2)*Math.PI/180,N=(H+k/2)*Math.PI/180,L=(X-k/2)*Math.PI/180,$=g+n*Math.cos(G),z=y+n*Math.sin(G),F=g+n*Math.cos(W),K=y+n*Math.sin(W),Q=g+i*Math.cos(N),ie=y+i*Math.sin(N),fe=g+i*Math.cos(L),U=y+i*Math.sin(L),J=q>180?1:0,ne=`
|
|
104
|
-
M ${$} ${z}
|
|
105
|
-
A ${n} ${n} 0 ${J} 1 ${F} ${K}
|
|
106
|
-
L ${fe} ${U}
|
|
107
|
-
A ${i} ${i} 0 ${J} 0 ${Q} ${ie}
|
|
108
|
-
Z
|
|
109
|
-
`.trim(),te=Ee(c,B);m.push(d(ae,{id:"shape-sector",d:ne,fill:te,width:n*2+200,height:n*2+200,"data-element-type":"shape"}));let ee=(H+q/2)*Math.PI/180,oe=(n+i)/2,se=n-i,ge=q*Math.PI/180,he=oe*ge,_e=Math.min(he*.8,se*.9),pe=Math.min(se*.9,he*.8),me=Y(d(t,{indexes:[0],data:r,datum:u[0],positionH:"center",width:_e,height:pe})),Ie=g+oe*Math.cos(ee)-me.width/2,Re=y+oe*Math.sin(ee)-me.height/2;x.push(d(t,{indexes:B,datum:A,data:r,x:Ie,y:Re,positionH:"center",width:_e,height:pe,themeColors:{...it({colorBg:Ee(c,B),colorPrimary:c.themeConfig?.colorBg||"white"})}}));let Ze=n+10,Oe=g+Ze*Math.cos(ee)-h.width/2,Te=y+Ze*Math.sin(ee)-h.height/2;if(p.push(d(Pe,{indexes:B,x:Oe,y:Te})),_||j<u.length-1){let xe=(X+a/2)*Math.PI/180,$e=oe,Ae=g+$e*Math.cos(xe)-h.width/2,de=y+$e*Math.sin(xe)-h.height/2;p.push(d(V,{indexes:[j+1],x:Ae,y:de}))}}),u.length>0){let j=(o-a/2)*Math.PI/180,B=(n+i)/2,H=g+B*Math.cos(j)-h.width/2,X=y+B*Math.sin(j)-h.height/2;p.push(d(V,{indexes:[0],x:H,y:X}))}let C=i*.9,S=g,I=y,M=C*1.4,T=C*1.4;if(!_){let j=(o+s)/2*Math.PI/180,B=C*.5;S=g+B*Math.cos(j),I=y+B*Math.sin(j);let H=b*Math.PI*B/180;M=Math.min(H*.8,C*1.4),T=Math.min(B*1.5,C*1.4)}let P="";if(_)P="";else{let A=o*Math.PI/180,j=s*Math.PI/180,B=g+C*Math.cos(A),H=y+C*Math.sin(A),X=g+C*Math.cos(j),D=y+C*Math.sin(j),k=b>180?1:0;P=`
|
|
110
|
-
M ${g} ${y}
|
|
111
|
-
L ${B} ${H}
|
|
112
|
-
A ${C} ${C} 0 ${k} 1 ${X} ${D}
|
|
113
|
-
Z
|
|
114
|
-
`.trim()}return E(O,{id:"infographic-container",children:[d(O,{children:m}),_?d(je,{id:"shape-center-circle",x:g-C,y:y-C,width:C*2,height:C*2,fill:f.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):d(ae,{id:"shape-center-sector",d:P,fill:f.colorPrimaryBg,fillOpacity:.5,width:n*2+200,height:n*2+200,"data-element-type":"shape"}),d(qe,{x:S-M/2,y:I-T/2,width:M,height:T,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:f.colorText,"data-element-type":"title",children:l}),d(ye,{children:x}),d(Ce,{children:p})]})};be("list-sector",{component:jI,composites:["title","item"]});var DI=e=>{let{Title:t,Item:r,data:n,columns:i=4,gap:o=20,stepOffset:s=40}=e,{title:a,desc:c,items:l=[]}=n,u=t?d(t,{title:a,desc:c}):null,f=Y(d(V,{indexes:[0]})),h=Y(d(r,{indexes:[0],data:n,datum:l[0],positionH:"center"})),p=[],x=[],m=h.width+o;return l.forEach((g,y)=>{let b=y%i,_=Math.floor(y/i),v=b*m,w=_*(h.height+o),q=b*s,C=w+q,S=[y];x.push(d(r,{indexes:S,datum:g,data:n,x:v,y:C,positionH:"center"})),p.push(d(Pe,{indexes:S,x:v+(h.width-f.width)/2,y:C+h.height+5}))}),l.forEach((g,y)=>{let b=y%i,_=Math.floor(y/i),v=b*m,w=_*(h.height+o),q=b*s,C=w+q;if(y===0&&p.push(d(V,{indexes:[0],x:v-o/2-f.width/2,y:C+(h.height-f.height)/2})),b<i-1&&y<l.length-1){let S=Math.floor((y+1)/i);_===S&&p.push(d(V,{indexes:[y+1],x:v+h.width+(o-f.width)/2,y:C+(h.height-f.height)/2}))}(b===i-1||y===l.length-1)&&p.push(d(V,{indexes:[y+1],x:v+h.width+(o-f.width)/2,y:C+(h.height-f.height)/2}))}),l.length===0&&p.push(d(V,{indexes:[0],x:(i-1)*m/2+(h.width-f.width)/2,y:0})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(O,{children:[d(ye,{children:x}),d(Ce,{children:p})]})]})};be("list-waterfall",{component:DI,composites:["title","item"]});var BI=6,Ad=700,_y=330,vy=333,NI={1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},GI={1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},by=(e,t,r)=>{let n=t[e];return n?n.map(i=>({x:i.x*Ad,y:i.y*r,anchor:i.anchor})):null},WI=(e,t)=>{let r=e.anchor||"center",n=e.x-t.width/2,i=e.y-t.height/2,o=e.y;switch(r){case"top":n=e.x-t.width/2,i=e.y,o=e.y+t.height/2;break;case"bottom":n=e.x-t.width/2,i=e.y-t.height,o=e.y-t.height/2;break;case"top-left":n=e.x,i=e.y,o=e.y+t.height/2;break;case"top-right":n=e.x-t.width,i=e.y,o=e.y+t.height/2;break;case"bottom-left":n=e.x,i=e.y-t.height,o=e.y-t.height/2;break;case"bottom-right":n=e.x-t.width,i=e.y-t.height,o=e.y-t.height/2;break;default:break}return{x:n,y:i,centerY:o}},Md=(e,t)=>{let r=t.x-e.x,n=t.y-e.y,i=Math.hypot(r,n)||1;return{x:r/i,y:n/i}},wy=e=>{let{presetRatios:t,arrowHeight:r,Arrow:n}=e;return o=>{let{Title:s,Item:a,data:c,options:l,itemGap:u=24}=o,{title:f,desc:h,items:p=[]}=c,x=Math.min(p.length,BI),m=p.slice(0,x),g=s?d(s,{title:f,desc:h}):null,y=Qe(l),_=it({colorPrimary:y},l).colorTextSecondary||"#737373",v=Y(d(V,{indexes:[0]}));if(p.length===0){let B=by(1,t,r)?.[0];if(!B)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,d(O,{children:d(n,{colorPrimary:y,colorShadow:_})})]});let H=B.x-v.width/2,X=B.y-v.height/2;return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{children:[d(n,{colorPrimary:y,colorShadow:_}),d(ye,{}),d(Ce,{children:d(V,{indexes:[0],x:H,y:X})})]})]})}let w=Y(d(a,{indexes:[0],data:c,datum:p[0],positionH:"center"})),q=[],C=[],S=by(x,t,r);if(!S)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{children:[d(n,{colorPrimary:y,colorShadow:_}),d(ye,{})]})]});let I=S,M=I.length>1?Md(I[0],I[I.length-1]):{x:1,y:0},T=I.length>1?Md(I[0],I[1]):M,P=I.length>1?Md(I[I.length-2],I[I.length-1]):M,A=Math.max(w.width,w.height)*.45+u,j=B=>{let{x:H,y:X,centerY:D}=WI(B,w);return{x:H,y:X,centerY:D}};if(I.forEach((B,H)=>{let X=j(B),D=X.centerY<r/2,k=[H],R=m[H];if(!R)return;C.push(d(a,{indexes:k,datum:R,data:c,x:X.x,y:X.y,positionH:"center"}));let G=X.x+w.width-v.width/2,W=D?X.y-v.height/2:X.y+w.height-v.height/2;q.push(d(Pe,{indexes:k,x:G,y:W}))}),I.length>0){let B=I[0],H=B.x-T.x*A-v.width/2,X=B.y-T.y*A-v.height/2;q.push(d(V,{indexes:[0],x:H,y:X}));for(let G=0;G<I.length-1;G++){let W=I[G],N=I[G+1],L=(W.x+N.x)/2,$=(W.y+N.y)/2,z=L-v.width/2,F=$-v.height/2;q.push(d(V,{indexes:[G+1],x:z,y:F}))}let D=I[I.length-1],k=D.x+P.x*A-v.width/2,R=D.y+P.y*A-v.height/2;q.push(d(V,{indexes:[x],x:k,y:R}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{children:[d(n,{colorPrimary:y,colorShadow:_}),d(ye,{children:C}),d(Ce,{children:q})]})]})}},XI=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{let r=le(e).darken(20).toHexString();return E(O,{width:Ad,height:_y,children:[d("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:t}),d("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:t}),d("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:t}),d("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:e}),d("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:r}),d("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:r}),d("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:e}),d("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:r}),d("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:e})]})},YI=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{let r=le(e).darken(20).toHexString();return E(O,{width:Ad,height:vy,children:[d("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:t}),d("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:t}),d("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:t}),d("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:t}),d("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:e}),d("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:r}),d("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:r}),d("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:e}),d("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:r}),d("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:e})]})},VI=wy({arrowHeight:_y,presetRatios:NI,Arrow:XI}),UI=wy({arrowHeight:vy,presetRatios:GI,Arrow:YI});be("list-zigzag-down",{component:VI,composites:["title","item"]});be("list-zigzag-up",{component:UI,composites:["title","item"]});var Ld={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},KI=e=>{let{Title:t,Item:r,data:n,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=e,{title:c,desc:l,items:u=[]}=n,f=t?d(t,{title:c,desc:l}):null,h=Array.from({length:4},(_,v)=>u[v]),p=h[0]?Y(d(r,{indexes:[0],data:n,datum:h[0]})):{width:0,height:0},x=i??p.width+Ld.defaultExtraSpacing,m=o??p.height+Ld.defaultExtraSpacing,g=QI(x,m,p),y=h.map((_,v)=>{if(!_)return null;let w=g[v];return d(r,{indexes:[v],datum:_,data:n,x:w.x,y:w.y,positionH:v%2?"flipped":"normal",positionV:v<2?"normal":"flipped"})}).filter(Boolean),b=ZI(x,m,s,a);return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(O,{width:x*2,height:m*2,children:[b,d(ye,{children:y})]})]})};function ZI(e,t,r,n){if(!r)return[];let{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Ld,c=e,l=t,u=e*2,f=t*2,h=n?a:void 0;return[d(ae,{d:`M 0 ${l} L ${u} ${l}`,stroke:i,strokeWidth:s,strokeDasharray:h,fill:"none","data-element-type":"shape"}),E(ot,{transform:`translate(${u}, ${l})`,children:[d(ae,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(ae,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(ot,{transform:`translate(0, ${l})`,children:[d(ae,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),d(ae,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),d(ae,{d:`M ${c} 0 L ${c} ${f}`,stroke:i,strokeWidth:s,strokeDasharray:h,fill:"none","data-element-type":"shape"}),E(ot,{transform:`translate(${c}, 0)`,children:[d(ae,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),d(ae,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),E(ot,{transform:`translate(${c}, ${f})`,children:[d(ae,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),d(ae,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function QI(e,t,r){let n=e/2,i=t/2;return[{x:n-r.width/2,y:i-r.height/2},{x:e+n-r.width/2,y:i-r.height/2},{x:n-r.width/2,y:t+i-r.height/2},{x:e+n-r.width/2,y:t+i-r.height/2}]}be("quadrant",{component:KI,composites:["title","item"]});var JI=e=>{let{Title:t,Item:r,data:n,radius:i=150,startMode:o="top"}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Y(d(V,{indexes:[0]})),f=Y(d(r,{indexes:[0],data:n,datum:c[0],positionH:"center"})),h=[],p=[];if(c.length===0)return h.push(d(V,{indexes:[0],x:-u.width/2,y:-u.height/2})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,d(O,{children:d(Ce,{children:h})})]});let x=Math.max(f.width,f.height),m=Math.max(i,x),g=m+x/2,y=c.map(()=>{let q=f.width,C=f.height;return(q+C)/2}),b=y.reduce((q,C)=>q+C,0),_;o==="equal"?_=-Math.PI/2:_=-Math.PI/2+2*Math.PI/c.length/2;let v=_;c.forEach((q,C)=>{let S=y[C]/b*2*Math.PI,I=v+S/2;v+=S;let M=g+m*Math.cos(I)-f.width/2,T=g+m*Math.sin(I)-f.height/2;p.push(d(r,{indexes:[C],datum:q,data:n,x:M,y:T}));let P=m-Math.max(f.width,f.height)/2-20,A=g+P*Math.cos(I)-u.width/2,j=g+P*Math.sin(I)-u.height/2;h.push(d(Pe,{indexes:[C],x:A,y:j}))});let w=m-Math.max(f.width,f.height)/2-20;if(c.length>0)for(let q=0;q<c.length;q++){let C=q*2*Math.PI/c.length-Math.PI/2,S=(q+1)%c.length*2*Math.PI/c.length-Math.PI/2,I;if(q===c.length-1){let P=S+2*Math.PI-C;I=C+P/2}else I=(C+S)/2;let M=g+w*Math.cos(I)-u.width/2,T=g+w*Math.sin(I)-u.height/2;h.push(d(V,{indexes:[q+1],x:M,y:T}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(ye,{children:p}),d(Ce,{children:h})]})]})};be("relation-circle",{component:JI,composites:["title","item"]});function kn(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(u){try{l(n.next(u))}catch(f){s(f)}}function c(u){try{l(n.throw(u))}catch(f){s(f)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((n=n.apply(e,t||[])).next())})}var eT={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow},Tt=class extends Error{constructor(t,r,n){super(t),this.position=r,this.token=n,this.name="ExpressionError"}},Ke;(function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"})(Ke||(Ke={}));var tT=new Set([32,9,10,13]),rT=new Set([43,45,42,47,37,33,38,124,61,60,62]),nT=new Map([["true",Ke.BOOLEAN],["false",Ke.BOOLEAN],["null",Ke.NULL]]),kd=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),iT=new Map([[46,Ke.DOT],[91,Ke.BRACKET_LEFT],[93,Ke.BRACKET_RIGHT],[40,Ke.PAREN_LEFT],[41,Ke.PAREN_RIGHT],[44,Ke.COMMA],[63,Ke.QUESTION],[58,Ke.COLON],[36,Ke.DOLLAR]]),Cy=new Map;for(let[e,t]of iT.entries())Cy.set(e,{type:t,value:String.fromCharCode(e)});function fs(e){return e>=48&&e<=57}function Rd(e){return e>=97&&e<=122||e>=65&&e<=90||e===95}function qy(e){return Rd(e)||fs(e)}function oT(e){return rT.has(e)}var It;(function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"})(It||(It={}));var sT=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),aT={type:It.Literal,value:null},cT={type:It.Literal,value:!0},lT={type:It.Literal,value:!1},uT=e=>{let t=0,r=e.length,n=()=>t>=r?null:e[t],i=()=>e[t++],o=f=>{let h=n();return h!==null&&h.type===f},s=f=>f.type===Ke.OPERATOR?sT.get(f.value)||-1:f.type===Ke.DOT||f.type===Ke.BRACKET_LEFT?9:f.type===Ke.QUESTION?1:-1,a=f=>{let h,p;if(i().type===Ke.DOT){if(!o(Ke.IDENTIFIER)){let m=n();throw new Tt("Expected property name",t,m?m.value:"<end of input>")}let x=i();h={type:It.Identifier,name:x.value},p=!1}else{if(h=l(0),!o(Ke.BRACKET_RIGHT)){let x=n();throw new Tt("Expected closing bracket",t,x?x.value:"<end of input>")}i(),p=!0}return{type:It.MemberExpression,object:f,property:h,computed:p}},c=()=>{let f=n();if(!f)throw new Tt("Unexpected end of input",t,"<end of input>");if(f.type===Ke.OPERATOR&&(f.value==="!"||f.value==="-")){i();let h=c();return{type:It.UnaryExpression,operator:f.value,argument:h,prefix:!0}}switch(f.type){case Ke.NUMBER:return i(),{type:It.Literal,value:Number(f.value)};case Ke.STRING:return i(),{type:It.Literal,value:f.value};case Ke.BOOLEAN:return i(),f.value==="true"?cT:lT;case Ke.NULL:return i(),aT;case Ke.IDENTIFIER:return i(),{type:It.Identifier,name:f.value};case Ke.FUNCTION:return(()=>{let h=i(),p=[];if(!o(Ke.PAREN_LEFT)){let x=n();throw new Tt("Expected opening parenthesis after function name",t,x?x.value:"<end of input>")}for(i();;){if(o(Ke.PAREN_RIGHT)){i();break}if(!n()){let m=n();throw new Tt("Expected closing parenthesis",t,m?m.value:"<end of input>")}if(p.length>0){if(!o(Ke.COMMA)){let m=n();throw new Tt("Expected comma between function arguments",t,m?m.value:"<end of input>")}i()}let x=l(0);p.push(x)}return{type:It.CallExpression,callee:{type:It.Identifier,name:h.value},arguments:p}})();case Ke.PAREN_LEFT:{i();let h=l(0);if(!o(Ke.PAREN_RIGHT)){let p=n();throw new Tt("Expected closing parenthesis",t,p?p.value:"<end of input>")}return i(),h}default:throw new Tt(`Unexpected token: ${f.type}`,t,f.value)}},l=(f=0)=>{let h=c();for(;t<r;){let p=e[t],x=s(p);if(x<=f)break;if(p.type!==Ke.QUESTION)if(p.type!==Ke.OPERATOR){if(p.type!==Ke.DOT&&p.type!==Ke.BRACKET_LEFT)break;h=a(h)}else{i();let m=l(x);h={type:It.BinaryExpression,operator:p.value,left:h,right:m}}else{i();let m=l(0);if(!o(Ke.COLON)){let y=n();throw new Tt("Expected : in conditional expression",t,y?y.value:"<end of input>")}i();let g=l(0);h={type:It.ConditionalExpression,test:h,consequent:m,alternate:g}}}return h},u=l();return{type:It.Program,body:u}},dT=(e,t,r)=>{let n=t;r&&(n={...t,context:{...t.context,...r}});let i=o=>{switch(o.type){case It.Literal:return(s=>s.value)(o);case It.Identifier:return(s=>{if(!(s.name in n.context))throw new Tt(`Undefined variable: ${s.name}`);return n.context[s.name]})(o);case It.MemberExpression:return(s=>{let a=i(s.object);if(a==null)throw new Tt("Cannot access property of null or undefined");return a[s.computed?i(s.property):s.property.name]})(o);case It.CallExpression:return(s=>{let a=n.functions[s.callee.name];if(!a)throw new Tt(`Undefined function: ${s.callee.name}`);return a(...s.arguments.map((c=>i(c))))})(o);case It.BinaryExpression:return(s=>{if(s.operator==="&&"){let l=i(s.left);return l&&i(s.right)}if(s.operator==="||")return i(s.left)||i(s.right);let a=i(s.left),c=i(s.right);switch(s.operator){case"+":return a+c;case"-":return a-c;case"*":return a*c;case"/":return a/c;case"%":return a%c;case"===":return a===c;case"!==":return a!==c;case">":return a>c;case">=":return a>=c;case"<":return a<c;case"<=":return a<=c;default:throw new Tt(`Unknown operator: ${s.operator}`)}})(o);case It.UnaryExpression:return(s=>{let a=i(s.argument);if(s.prefix)switch(s.operator){case"!":return!a;case"-":if(typeof a!="number")throw new Tt(`Cannot apply unary - to non-number: ${a}`);return-a;default:throw new Tt(`Unknown operator: ${s.operator}`)}throw new Tt(`Postfix operators are not supported: ${s.operator}`)})(o);case It.ConditionalExpression:return(s=>{let a=i(s.test);return i(a?s.consequent:s.alternate)})(o);default:throw new Tt(`Evaluation error: Unsupported node type: ${o.type}`)}};return i(e.body)};function Pd(e){let t=(i=>{let o=i,s=o.length,a=new Array(Math.ceil(s/3)),c=0,l=0;function u(g){let y=l+1;l++;let b="",_=!1;for(;l<s;){let v=o.charCodeAt(l);if(v===g)return _||(b=o.substring(y,l)),l++,{type:Ke.STRING,value:b};v===92?(_||(b=o.substring(y,l),_=!0),l++,b+=o[l]):_&&(b+=o[l]),l++}throw new Tt(`Unterminated string starting with ${String.fromCharCode(g)}`,l,o.substring(Math.max(0,l-10),l))}function f(){let g=l;for(o.charCodeAt(l)===45&&l++;l<s&&fs(o.charCodeAt(l));)l++;if(l<s&&o.charCodeAt(l)===46)for(l++;l<s&&fs(o.charCodeAt(l));)l++;let y=o.slice(g,l);return{type:Ke.NUMBER,value:y}}function h(){l++;let g=l;if(l<s&&Rd(o.charCodeAt(l)))for(l++;l<s&&qy(o.charCodeAt(l));)l++;let y=o.slice(g,l);return{type:Ke.FUNCTION,value:y}}function p(){let g=l++;for(;l<s&&qy(o.charCodeAt(l));)l++;let y=o.slice(g,l),b=nT.get(y);return b?{type:b,value:y}:{type:Ke.IDENTIFIER,value:y}}function x(){if(l+2<s){let y=o.substring(l,l+3);if(kd.has(y))return l+=3,{type:Ke.OPERATOR,value:y}}if(l+1<s){let y=o.substring(l,l+2);if(kd.has(y))return l+=2,{type:Ke.OPERATOR,value:y}}let g=o[l];if(kd.has(g))return l++,{type:Ke.OPERATOR,value:g};throw new Tt(`Unknown operator at position ${l}: ${o.substring(l,l+1)}`,l,o.substring(Math.max(0,l-10),l))}for(;l<s;){let g=o.charCodeAt(l);if(m=g,tT.has(m)){l++;continue}let y=Cy.get(g);if(y)a[c++]=y,l++;else if(g!==34&&g!==39)if(fs(g)||g===45&&l+1<s&&fs(o.charCodeAt(l+1)))a[c++]=f();else if(g!==64)if(Rd(g))a[c++]=p();else{if(!oT(g))throw new Tt(`Unexpected character: ${o[l]}`,l,o.substring(Math.max(0,l-10),l));a[c++]=x()}else a[c++]=h();else a[c++]=u(g)}var m;return c===a.length?a:a.slice(0,c)})(e),r=uT(t),n=((i={},o={})=>({context:i,functions:o}))({},eT);return(i={})=>dT(r,n,i)}function Sy(e,t={}){return Pd(e)(t)}function Ey(e,t){if(typeof e!="string")return;let r=e.trim();if(r)try{return Pd(r),Sy(r,t)}catch{return}}function Rn(e){return typeof e=="number"}function Ga(e){if(!e)return[0,0,0];if(Rn(e))return[e,e,e];if(Array.isArray(e)&&e.length===0)return[0,0,0];let[t,r=t,n=t]=e;return[t,r,n]}function Iy(e){return Rn(e)?!0:Array.isArray(e)?e.every(t=>Rn(t)):!1}function tr(e){return e==null}function Od(e){return typeof e=="string"}function $d(e){return typeof e=="function"}function Wa(e,t){if(typeof e=="function")return e;if(typeof e=="string"){let r=e;return(...n)=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=n[o];return Ey(r,i)}}return()=>e}function Xa(e,t,r="node"){if(tr(e))return()=>t;if(Od(e)){let n=Wa(e,[r]);return i=>{let o=n(i);return Rn(o)?o:t}}return $d(e)?e:Rn(e)?()=>e:()=>t}function zd(e,t=10,r="node"){if(tr(e))return()=>t;if(Od(e)){let n=Wa(e,[r]);return i=>{let o=n(i);return Iy(o)?o:t}}return $d(e)?e:Rn(e)?()=>e:Array.isArray(e)?()=>e:()=>t}function Ty(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}var Ya=class{constructor(t,r={}){this.edgeIdCounter=new Map,this.nodeMap=pT(t.nodes,r.node),this.edgeMap=mT(t.edges||[],r.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();let r=this.indexNodeCache.get(t);return r?this.nodeMap.get(r):void 0}nodeIndexOf(t){var r;return this.nodeIndexCache||this.buildNodeIndexCache(),(r=this.nodeIndexCache.get(t))!==null&&r!==void 0?r:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let r=0;this.nodeMap.forEach(n=>t(n,r++))}originalNode(t){let r=this.nodeMap.get(t);return r?._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let r=0;this.edgeMap.forEach(n=>t(n,r++))}originalEdge(t){let r=this.edgeMap.get(t);return r?._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;let r=`${t.source}-${t.target}`,n=this.edgeIdCounter.get(r)||0,i=n===0?r:`${r}-${n}`;return this.edgeIdCounter.set(r,n+1),i}degree(t,r="both"){this.degreeCache||this.buildDegreeCache();let n=this.degreeCache.get(t);return n?n[r]:0}neighbors(t,r="both"){if((!this.outAdjacencyCache||!this.inAdjacencyCache)&&this.buildAdjacencyCache(),r==="out")return Array.from(this.outAdjacencyCache.get(t)||[]);if(r==="in")return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);let n=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!n&&!i)return[];if(!n)return Array.from(i);if(!i)return Array.from(n);let o=new Set;return n.forEach(s=>o.add(s)),i.forEach(s=>o.add(s)),Array.from(o)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){let r=new Map;for(let n of t)r.set(n.id,n);this.nodeMap=r,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(let t of this.edges()){let{source:r,target:n}=t;if(t.source===t.target)continue;this.degreeCache.has(r)||this.degreeCache.set(r,{in:0,out:0,both:0});let i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});let o=this.degreeCache.get(t.target);o&&(o.in++,o.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(let t of this.edges())!this.nodeMap.has(t.source)||!this.nodeMap.has(t.target)||(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((r,n)=>{this.nodeIndexCache.set(n,t),this.indexNodeCache.set(t,n),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}},fT=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],hT=["id","source","target","points"];function pT(e,t){if(!e)throw new Error("Data.nodes is required");let r=new Map;for(let n of e){let i={_original:n};for(let o of fT){let s=n[o];tr(s)||(i[o]=s)}if(t){let o=t(n);for(let s in o){let a=o[s];tr(a)||(i[s]=a)}}if(tr(i.id))throw new Error("Node is missing id field");r.set(i.id,i)}return r}function mT(e,t,r){let n=new Map;for(let i of e){let o={_original:i};for(let s of hT){let a=i[s];tr(a)||(o[s]=a)}if(t){let s=t(i);for(let a in s){let c=s[a];tr(c)||(o[a]=c)}}if(tr(o.source)||tr(o.target))throw new Error("Edge is missing source or target field");tr(o.id)&&(o.id=r?.(i)),n.set(o.id,o)}return n}var Va=class{constructor(t,r={}){this.graph=new Ya(t,r)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((r,n)=>{r.sourceNode=this.graph.node(r.source),r.targetNode=this.graph.node(r.target),t(r,n)})}destroy(){this.graph.destroy()}};var Ay=Symbol("Comlink.proxy"),gT=Symbol("Comlink.endpoint"),xT=Symbol("Comlink.releaseProxy"),Hd=Symbol("Comlink.finalizer"),Ka=Symbol("Comlink.thrown"),Ly=e=>typeof e=="object"&&e!==null||typeof e=="function",yT={canHandle:e=>Ly(e)&&e[Ay],serialize(e){let{port1:t,port2:r}=new MessageChannel;return Ry(e,t),[r,[r]]},deserialize(e){return e.start(),jd(e)}},bT={canHandle:e=>Ly(e)&&Ka in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},ky=new Map([["proxy",yT],["throw",bT]]);function _T(e,t){for(let r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function Ry(e,t=globalThis,r=["*"]){t.addEventListener("message",function n(i){if(!i||!i.data)return;if(!_T(r,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}let{id:o,type:s,path:a}=Object.assign({path:[]},i.data),c=(i.data.argumentList||[]).map(ui),l;try{let u=a.slice(0,-1).reduce((h,p)=>h[p],e),f=a.reduce((h,p)=>h[p],e);switch(s){case"GET":l=f;break;case"SET":u[a.slice(-1)[0]]=ui(i.data.value),l=!0;break;case"APPLY":l=f.apply(u,c);break;case"CONSTRUCT":{let h=new f(...c);l=ET(h)}break;case"ENDPOINT":{let{port1:h,port2:p}=new MessageChannel;Ry(e,p),l=ST(h,[h])}break;case"RELEASE":l=void 0;break;default:return}}catch(u){l={value:u,[Ka]:0}}Promise.resolve(l).catch(u=>({value:u,[Ka]:0})).then(u=>{let[f,h]=Ja(u);t.postMessage(Object.assign(Object.assign({},f),{id:o}),h),s==="RELEASE"&&(t.removeEventListener("message",n),Py(t),Hd in e&&typeof e[Hd]=="function"&&e[Hd]())}).catch(u=>{let[f,h]=Ja({value:new TypeError("Unserializable return value"),[Ka]:0});t.postMessage(Object.assign(Object.assign({},f),{id:o}),h)})}),t.start&&t.start()}function vT(e){return e.constructor.name==="MessagePort"}function Py(e){vT(e)&&e.close()}function jd(e,t){let r=new Map;return e.addEventListener("message",function(i){let{data:o}=i;if(!o||!o.id)return;let s=r.get(o.id);if(s)try{s(o)}finally{r.delete(o.id)}}),Fd(e,r,[],t)}function Ua(e){if(e)throw new Error("Proxy has been released and is not useable")}function Oy(e){return Xi(e,new Map,{type:"RELEASE"}).then(()=>{Py(e)})}var Za=new WeakMap,Qa="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(Za.get(e)||0)-1;Za.set(e,t),t===0&&Oy(e)});function wT(e,t){let r=(Za.get(t)||0)+1;Za.set(t,r),Qa&&Qa.register(e,t,e)}function qT(e){Qa&&Qa.unregister(e)}function Fd(e,t,r=[],n=function(){}){let i=!1,o=new Proxy(n,{get(s,a){if(Ua(i),a===xT)return()=>{qT(o),Oy(e),t.clear(),i=!0};if(a==="then"){if(r.length===0)return{then:()=>o};let c=Xi(e,t,{type:"GET",path:r.map(l=>l.toString())}).then(ui);return c.then.bind(c)}return Fd(e,t,[...r,a])},set(s,a,c){Ua(i);let[l,u]=Ja(c);return Xi(e,t,{type:"SET",path:[...r,a].map(f=>f.toString()),value:l},u).then(ui)},apply(s,a,c){Ua(i);let l=r[r.length-1];if(l===gT)return Xi(e,t,{type:"ENDPOINT"}).then(ui);if(l==="bind")return Fd(e,t,r.slice(0,-1));let[u,f]=My(c);return Xi(e,t,{type:"APPLY",path:r.map(h=>h.toString()),argumentList:u},f).then(ui)},construct(s,a){Ua(i);let[c,l]=My(a);return Xi(e,t,{type:"CONSTRUCT",path:r.map(u=>u.toString()),argumentList:c},l).then(ui)}});return wT(o,e),o}function CT(e){return Array.prototype.concat.apply([],e)}function My(e){let t=e.map(Ja);return[t.map(r=>r[0]),CT(t.map(r=>r[1]))]}var $y=new WeakMap;function ST(e,t){return $y.set(e,t),e}function ET(e){return Object.assign(e,{[Ay]:!0})}function Ja(e){for(let[t,r]of ky)if(r.canHandle(e)){let[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},$y.get(e)||[]]}function ui(e){switch(e.type){case"HANDLER":return ky.get(e.name).deserialize(e.value);case"RAW":return e.value}}function Xi(e,t,r,n){return new Promise(i=>{let o=IT();t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},r),n)})}function IT(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var ec=class{constructor(){this.worker=null,this.workerApi=null}execute(t,r,n){return kn(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,r,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return kn(this,void 0,void 0,function*(){let t=this.resolveWorkerPath(),n=t.includes("/lib/")||t.endsWith(".mjs")?"module":"classic";this.worker=new Worker(t,{type:n}),this.workerApi=jd(this.worker)})}resolveWorkerPath(){if(typeof import.meta<"u"&&import.meta.url){let t=new URL(import.meta.url),r=t.href.replace(/\/runtime\/[^/]+\.js$/,"/worker.js");return r!==t.href?r:t.href.replace(/\/[^/]+\.js$/,"/worker.js")}if(typeof document<"u"){let t=document.getElementsByTagName("script");for(let r=t.length-1;r>=0;r--){let n=t[r].src;if(n&&(n.includes("index.js")||n.includes("index.min.js")))return n.replace(/index(\.min)?\.js/,"worker.js")}}return"./worker.js"}};var tc=class{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,r){return Object.assign({},t,r||{})}execute(t,r){return kn(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,r);let{node:n,edge:i,enableWorker:o}=this.runtimeOptions;this.context=new Va(t,{node:n,edge:i}),this.model=this.context.graph,o&&typeof Worker<"u"?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,r){var n;return kn(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new ec);let i=yield this.supervisor.execute(this.id,t,r);(n=this.context)===null||n===void 0||n.replace(i)}catch(i){console.error("Layout in worker failed, fallback to main thread layout.",i),yield this.layout(r)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;(t=this.context)===null||t===void 0||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}};function zy(e){return Array.isArray(e)}var Hy=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"});var Fy=function(e){return typeof e=="object"&&e!==null};var TT={}.toString,rc=function(e,t){return TT.call(e)==="[object "+t+"]"};var jy=function(e){if(!Fy(e)||!rc(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dd,By;function Ny(){if(By)return Dd;By=1;function e(){this.__data__=[],this.size=0}return Dd=e,Dd}var Bd,Gy;function Sr(){if(Gy)return Bd;Gy=1;function e(t,r){return t===r||t!==t&&r!==r}return Bd=e,Bd}var Nd,Wy;function Pn(){if(Wy)return Nd;Wy=1;var e=Sr();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Nd=t,Nd}var Gd,Xy;function Yy(){if(Xy)return Gd;Xy=1;var e=Pn(),t=Array.prototype,r=t.splice;function n(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var a=o.length-1;return s==a?o.pop():r.call(o,s,1),--this.size,!0}return Gd=n,Gd}var Wd,Vy;function Uy(){if(Vy)return Wd;Vy=1;var e=Pn();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Wd=t,Wd}var Xd,Ky;function Zy(){if(Ky)return Xd;Ky=1;var e=Pn();function t(r){return e(this.__data__,r)>-1}return Xd=t,Xd}var Yd,Qy;function Jy(){if(Qy)return Yd;Qy=1;var e=Pn();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return Yd=t,Yd}var Vd,eb;function On(){if(eb)return Vd;eb=1;var e=Ny(),t=Yy(),r=Uy(),n=Zy(),i=Jy();function o(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var l=s[a];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Vd=o,Vd}var Ud,tb;function rb(){if(tb)return Ud;tb=1;var e=On();function t(){this.__data__=new e,this.size=0}return Ud=t,Ud}var Kd,nb;function ib(){if(nb)return Kd;nb=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Kd=e,Kd}var Zd,ob;function sb(){if(ob)return Zd;ob=1;function e(t){return this.__data__.get(t)}return Zd=e,Zd}var Qd,ab;function cb(){if(ab)return Qd;ab=1;function e(t){return this.__data__.has(t)}return Qd=e,Qd}var Jd,lb;function nc(){if(lb)return Jd;lb=1;var e=typeof hs=="object"&&hs&&hs.Object===Object&&hs;return Jd=e,Jd}var ef,ub;function Mt(){if(ub)return ef;ub=1;var e=nc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ef=r,ef}var tf,db;function Er(){if(db)return tf;db=1;var e=Mt(),t=e.Symbol;return tf=t,tf}var rf,fb;function hb(){if(fb)return rf;fb=1;var e=Er(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(s){var a=r.call(s,i),c=s[i];try{s[i]=void 0;var l=!0}catch{}var u=n.call(s);return l&&(a?s[i]=c:delete s[i]),u}return rf=o,rf}var nf,pb;function mb(){if(pb)return nf;pb=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nf=r,nf}var of,gb;function lr(){if(gb)return of;gb=1;var e=Er(),t=hb(),r=mb(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?i:n:o&&o in Object(a)?t(a):r(a)}return of=s,of}var sf,xb;function St(){if(xb)return sf;xb=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return sf=e,sf}var af,yb;function Qr(){if(yb)return af;yb=1;var e=lr(),t=St(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(a){if(!t(a))return!1;var c=e(a);return c==n||c==i||c==r||c==o}return af=s,af}var cf,bb;function _b(){if(bb)return cf;bb=1;var e=Mt(),t=e["__core-js_shared__"];return cf=t,cf}var lf,vb;function wb(){if(vb)return lf;vb=1;var e=_b(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return lf=r,lf}var uf,qb;function ic(){if(qb)return uf;qb=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return uf=r,uf}var df,Cb;function Sb(){if(Cb)return df;Cb=1;var e=Qr(),t=wb(),r=St(),n=ic(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,c=s.toString,l=a.hasOwnProperty,u=RegExp("^"+c.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?u:o;return p.test(n(h))}return df=f,df}var ff,Eb;function Ib(){if(Eb)return ff;Eb=1;function e(t,r){return t?.[r]}return ff=e,ff}var hf,Tb;function ur(){if(Tb)return hf;Tb=1;var e=Sb(),t=Ib();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return hf=r,hf}var pf,Mb;function Vi(){if(Mb)return pf;Mb=1;var e=ur(),t=Mt(),r=e(t,"Map");return pf=r,pf}var mf,Ab;function $n(){if(Ab)return mf;Ab=1;var e=ur(),t=e(Object,"create");return mf=t,mf}var gf,Lb;function kb(){if(Lb)return gf;Lb=1;var e=$n();function t(){this.__data__=e?e(null):{},this.size=0}return gf=t,gf}var xf,Rb;function Pb(){if(Rb)return xf;Rb=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return xf=e,xf}var yf,Ob;function $b(){if(Ob)return yf;Ob=1;var e=$n(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(o){var s=this.__data__;if(e){var a=s[o];return a===t?void 0:a}return n.call(s,o)?s[o]:void 0}return yf=i,yf}var bf,zb;function Hb(){if(zb)return bf;zb=1;var e=$n(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return bf=n,bf}var _f,Fb;function jb(){if(Fb)return _f;Fb=1;var e=$n(),t="__lodash_hash_undefined__";function r(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?t:i,this}return _f=r,_f}var vf,Db;function Bb(){if(Db)return vf;Db=1;var e=kb(),t=Pb(),r=$b(),n=Hb(),i=jb();function o(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var l=s[a];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,vf=o,vf}var wf,Nb;function Gb(){if(Nb)return wf;Nb=1;var e=Bb(),t=On(),r=Vi();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return wf=n,wf}var qf,Wb;function Xb(){if(Wb)return qf;Wb=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return qf=e,qf}var Cf,Yb;function zn(){if(Yb)return Cf;Yb=1;var e=Xb();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Cf=t,Cf}var Sf,Vb;function Ub(){if(Vb)return Sf;Vb=1;var e=zn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Sf=t,Sf}var Ef,Kb;function Zb(){if(Kb)return Ef;Kb=1;var e=zn();function t(r){return e(this,r).get(r)}return Ef=t,Ef}var If,Qb;function Jb(){if(Qb)return If;Qb=1;var e=zn();function t(r){return e(this,r).has(r)}return If=t,If}var Tf,e_;function t_(){if(e_)return Tf;e_=1;var e=zn();function t(r,n){var i=e(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this}return Tf=t,Tf}var Mf,r_;function Ui(){if(r_)return Mf;r_=1;var e=Gb(),t=Ub(),r=Zb(),n=Jb(),i=t_();function o(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var l=s[a];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Mf=o,Mf}var Af,n_;function i_(){if(n_)return Af;n_=1;var e=On(),t=Vi(),r=Ui(),n=200;function i(o,s){var a=this.__data__;if(a instanceof e){var c=a.__data__;if(!t||c.length<n-1)return c.push([o,s]),this.size=++a.size,this;a=this.__data__=new r(c)}return a.set(o,s),this.size=a.size,this}return Af=i,Af}var Lf,o_;function Hn(){if(o_)return Lf;o_=1;var e=On(),t=rb(),r=ib(),n=sb(),i=cb(),o=i_();function s(a){var c=this.__data__=new e(a);this.size=c.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=o,Lf=s,Lf}var kf,s_;function Ki(){if(s_)return kf;s_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return kf=e,kf}var Rf,a_;function oc(){if(a_)return Rf;a_=1;var e=ur(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Rf=t,Rf}var Pf,c_;function Fn(){if(c_)return Pf;c_=1;var e=oc();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Pf=t,Pf}var Of,l_;function jn(){if(l_)return Of;l_=1;var e=Fn(),t=Sr(),r=Object.prototype,n=r.hasOwnProperty;function i(o,s,a){var c=o[s];(!(n.call(o,s)&&t(c,a))||a===void 0&&!(s in o))&&e(o,s,a)}return Of=i,Of}var $f,u_;function Jr(){if(u_)return $f;u_=1;var e=jn(),t=Fn();function r(n,i,o,s){var a=!o;o||(o={});for(var c=-1,l=i.length;++c<l;){var u=i[c],f=s?s(o[u],n[u],u,o,n):void 0;f===void 0&&(f=n[u]),a?t(o,u,f):e(o,u,f)}return o}return $f=r,$f}var zf,d_;function f_(){if(d_)return zf;d_=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return zf=e,zf}var Hf,h_;function Ot(){if(h_)return Hf;h_=1;function e(t){return t!=null&&typeof t=="object"}return Hf=e,Hf}var Ff,p_;function m_(){if(p_)return Ff;p_=1;var e=lr(),t=Ot(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ff=n,Ff}var jf,g_;function en(){if(g_)return jf;g_=1;var e=m_(),t=Ot(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return jf=o,jf}var Df,x_;function Je(){if(x_)return Df;x_=1;var e=Array.isArray;return Df=e,Df}var Zi={exports:{}};var Bf,y_;function b_(){if(y_)return Bf;y_=1;function e(){return!1}return Bf=e,Bf}Zi.exports;var __;function Ir(){return __?Zi.exports:(__=1,(function(e,t){var r=Mt(),n=b_(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?r.Buffer:void 0,c=a?a.isBuffer:void 0,l=c||n;e.exports=l})(Zi,Zi.exports),Zi.exports)}var Nf,v_;function Dn(){if(v_)return Nf;v_=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Nf=r,Nf}var Gf,w_;function Qi(){if(w_)return Gf;w_=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Gf=t,Gf}var Wf,q_;function C_(){if(q_)return Wf;q_=1;var e=lr(),t=Qi(),r=Ot(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",a="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",x="[object String]",m="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",v="[object Int8Array]",w="[object Int16Array]",q="[object Int32Array]",C="[object Uint8Array]",S="[object Uint8ClampedArray]",I="[object Uint16Array]",M="[object Uint32Array]",T={};T[b]=T[_]=T[v]=T[w]=T[q]=T[C]=T[S]=T[I]=T[M]=!0,T[n]=T[i]=T[g]=T[o]=T[y]=T[s]=T[a]=T[c]=T[l]=T[u]=T[f]=T[h]=T[p]=T[x]=T[m]=!1;function P(A){return r(A)&&t(A.length)&&!!T[e(A)]}return Wf=P,Wf}var Xf,S_;function Bn(){if(S_)return Xf;S_=1;function e(t){return function(r){return t(r)}}return Xf=e,Xf}var Ji={exports:{}};Ji.exports;var E_;function eo(){return E_?Ji.exports:(E_=1,(function(e,t){var r=nc(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,a=(function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}})();e.exports=a})(Ji,Ji.exports),Ji.exports)}var Yf,I_;function tn(){if(I_)return Yf;I_=1;var e=C_(),t=Bn(),r=eo(),n=r&&r.isTypedArray,i=n?t(n):e;return Yf=i,Yf}var Vf,T_;function sc(){if(T_)return Vf;T_=1;var e=f_(),t=en(),r=Je(),n=Ir(),i=Dn(),o=tn(),s=Object.prototype,a=s.hasOwnProperty;function c(l,u){var f=r(l),h=!f&&t(l),p=!f&&!h&&n(l),x=!f&&!h&&!p&&o(l),m=f||h||p||x,g=m?e(l.length,String):[],y=g.length;for(var b in l)(u||a.call(l,b))&&!(m&&(b=="length"||p&&(b=="offset"||b=="parent")||x&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,y)))&&g.push(b);return g}return Vf=c,Vf}var Uf,M_;function Nn(){if(M_)return Uf;M_=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Uf=t,Uf}var Kf,A_;function ac(){if(A_)return Kf;A_=1;function e(t,r){return function(n){return t(r(n))}}return Kf=e,Kf}var Zf,L_;function k_(){if(L_)return Zf;L_=1;var e=ac(),t=e(Object.keys,Object);return Zf=t,Zf}var Qf,R_;function to(){if(R_)return Qf;R_=1;var e=Nn(),t=k_(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var a in Object(o))n.call(o,a)&&a!="constructor"&&s.push(a);return s}return Qf=i,Qf}var Jf,P_;function Ft(){if(P_)return Jf;P_=1;var e=Qr(),t=Qi();function r(n){return n!=null&&t(n.length)&&!e(n)}return Jf=r,Jf}var eh,O_;function Xt(){if(O_)return eh;O_=1;var e=sc(),t=to(),r=Ft();function n(i){return r(i)?e(i):t(i)}return eh=n,eh}var th,$_;function z_(){if($_)return th;$_=1;var e=Jr(),t=Xt();function r(n,i){return n&&e(i,t(i),n)}return th=r,th}var rh,H_;function F_(){if(H_)return rh;H_=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return rh=e,rh}var nh,j_;function D_(){if(j_)return nh;j_=1;var e=St(),t=Nn(),r=F_(),n=Object.prototype,i=n.hasOwnProperty;function o(s){if(!e(s))return r(s);var a=t(s),c=[];for(var l in s)l=="constructor"&&(a||!i.call(s,l))||c.push(l);return c}return nh=o,nh}var ih,B_;function dr(){if(B_)return ih;B_=1;var e=sc(),t=D_(),r=Ft();function n(i){return r(i)?e(i,!0):t(i)}return ih=n,ih}var oh,N_;function G_(){if(N_)return oh;N_=1;var e=Jr(),t=dr();function r(n,i){return n&&e(i,t(i),n)}return oh=r,oh}var ro={exports:{}};ro.exports;var W_;function cc(){return W_?ro.exports:(W_=1,(function(e,t){var r=Mt(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var f=l.length,h=a?a(f):new l.constructor(f);return l.copy(h),h}e.exports=c})(ro,ro.exports),ro.exports)}var sh,X_;function lc(){if(X_)return sh;X_=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return sh=e,sh}var ah,Y_;function uc(){if(Y_)return ah;Y_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=0,s=[];++n<i;){var a=t[n];r(a,n,t)&&(s[o++]=a)}return s}return ah=e,ah}var ch,V_;function dc(){if(V_)return ch;V_=1;function e(){return[]}return ch=e,ch}var lh,U_;function no(){if(U_)return lh;U_=1;var e=uc(),t=dc(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(a){return n.call(s,a)}))}:t;return lh=o,lh}var uh,K_;function Z_(){if(K_)return uh;K_=1;var e=Jr(),t=no();function r(n,i){return e(n,t(n),i)}return uh=r,uh}var dh,Q_;function io(){if(Q_)return dh;Q_=1;function e(t,r){for(var n=-1,i=r.length,o=t.length;++n<i;)t[o+n]=r[n];return t}return dh=e,dh}var fh,J_;function Gn(){if(J_)return fh;J_=1;var e=ac(),t=e(Object.getPrototypeOf,Object);return fh=t,fh}var hh,e3;function fc(){if(e3)return hh;e3=1;var e=io(),t=Gn(),r=no(),n=dc(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var a=[];s;)e(a,r(s)),s=t(s);return a}:n;return hh=o,hh}var ph,t3;function r3(){if(t3)return ph;t3=1;var e=Jr(),t=fc();function r(n,i){return e(n,t(n),i)}return ph=r,ph}var mh,n3;function hc(){if(n3)return mh;n3=1;var e=io(),t=Je();function r(n,i,o){var s=i(n);return t(n)?s:e(s,o(n))}return mh=r,mh}var gh,i3;function pc(){if(i3)return gh;i3=1;var e=hc(),t=no(),r=Xt();function n(i){return e(i,r,t)}return gh=n,gh}var xh,o3;function s3(){if(o3)return xh;o3=1;var e=hc(),t=fc(),r=dr();function n(i){return e(i,r,t)}return xh=n,xh}var yh,a3;function c3(){if(a3)return yh;a3=1;var e=ur(),t=Mt(),r=e(t,"DataView");return yh=r,yh}var bh,l3;function u3(){if(l3)return bh;l3=1;var e=ur(),t=Mt(),r=e(t,"Promise");return bh=r,bh}var _h,d3;function mc(){if(d3)return _h;d3=1;var e=ur(),t=Mt(),r=e(t,"Set");return _h=r,_h}var vh,f3;function h3(){if(f3)return vh;f3=1;var e=ur(),t=Mt(),r=e(t,"WeakMap");return vh=r,vh}var wh,p3;function Tr(){if(p3)return wh;p3=1;var e=c3(),t=Vi(),r=u3(),n=mc(),i=h3(),o=lr(),s=ic(),a="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",f="[object WeakMap]",h="[object DataView]",p=s(e),x=s(t),m=s(r),g=s(n),y=s(i),b=o;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=a||r&&b(r.resolve())!=l||n&&b(new n)!=u||i&&b(new i)!=f)&&(b=function(_){var v=o(_),w=v==c?_.constructor:void 0,q=w?s(w):"";if(q)switch(q){case p:return h;case x:return a;case m:return l;case g:return u;case y:return f}return v}),wh=b,wh}var qh,m3;function g3(){if(m3)return qh;m3=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,o=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(o.index=n.index,o.input=n.input),o}return qh=r,qh}var Ch,x3;function gc(){if(x3)return Ch;x3=1;var e=Mt(),t=e.Uint8Array;return Ch=t,Ch}var Sh,y3;function oo(){if(y3)return Sh;y3=1;var e=gc();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Sh=t,Sh}var Eh,b3;function _3(){if(b3)return Eh;b3=1;var e=oo();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Eh=t,Eh}var Ih,v3;function w3(){if(v3)return Ih;v3=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Ih=t,Ih}var Th,q3;function C3(){if(q3)return Th;q3=1;var e=Er(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Th=n,Th}var Mh,S3;function xc(){if(S3)return Mh;S3=1;var e=oo();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Mh=t,Mh}var Ah,E3;function I3(){if(E3)return Ah;E3=1;var e=oo(),t=_3(),r=w3(),n=C3(),i=xc(),o="[object Boolean]",s="[object Date]",a="[object Map]",c="[object Number]",l="[object RegExp]",u="[object Set]",f="[object String]",h="[object Symbol]",p="[object ArrayBuffer]",x="[object DataView]",m="[object Float32Array]",g="[object Float64Array]",y="[object Int8Array]",b="[object Int16Array]",_="[object Int32Array]",v="[object Uint8Array]",w="[object Uint8ClampedArray]",q="[object Uint16Array]",C="[object Uint32Array]";function S(I,M,T){var P=I.constructor;switch(M){case p:return e(I);case o:case s:return new P(+I);case x:return t(I,T);case m:case g:case y:case b:case _:case v:case w:case q:case C:return i(I,T);case a:return new P;case c:case f:return new P(I);case l:return r(I);case u:return new P;case h:return n(I)}}return Ah=S,Ah}var Lh,T3;function yc(){if(T3)return Lh;T3=1;var e=St(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var o=new n;return n.prototype=void 0,o}})();return Lh=r,Lh}var kh,M3;function bc(){if(M3)return kh;M3=1;var e=yc(),t=Gn(),r=Nn();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return kh=n,kh}var Rh,A3;function L3(){if(A3)return Rh;A3=1;var e=Tr(),t=Ot(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Rh=n,Rh}var Ph,k3;function R3(){if(k3)return Ph;k3=1;var e=L3(),t=Bn(),r=eo(),n=r&&r.isMap,i=n?t(n):e;return Ph=i,Ph}var Oh,P3;function O3(){if(P3)return Oh;P3=1;var e=Tr(),t=Ot(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Oh=n,Oh}var $h,$3;function z3(){if($3)return $h;$3=1;var e=O3(),t=Bn(),r=eo(),n=r&&r.isSet,i=n?t(n):e;return $h=i,$h}var zh,H3;function _c(){if(H3)return zh;H3=1;var e=Hn(),t=Ki(),r=jn(),n=z_(),i=G_(),o=cc(),s=lc(),a=Z_(),c=r3(),l=pc(),u=s3(),f=Tr(),h=g3(),p=I3(),x=bc(),m=Je(),g=Ir(),y=R3(),b=St(),_=z3(),v=Xt(),w=dr(),q=1,C=2,S=4,I="[object Arguments]",M="[object Array]",T="[object Boolean]",P="[object Date]",A="[object Error]",j="[object Function]",B="[object GeneratorFunction]",H="[object Map]",X="[object Number]",D="[object Object]",k="[object RegExp]",R="[object Set]",G="[object String]",W="[object Symbol]",N="[object WeakMap]",L="[object ArrayBuffer]",$="[object DataView]",z="[object Float32Array]",F="[object Float64Array]",K="[object Int8Array]",Q="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",U="[object Uint8ClampedArray]",J="[object Uint16Array]",ne="[object Uint32Array]",te={};te[I]=te[M]=te[L]=te[$]=te[T]=te[P]=te[z]=te[F]=te[K]=te[Q]=te[ie]=te[H]=te[X]=te[D]=te[k]=te[R]=te[G]=te[W]=te[fe]=te[U]=te[J]=te[ne]=!0,te[A]=te[j]=te[N]=!1;function ve(ee,oe,se,ge,he,_e){var pe,me=oe&q,Ie=oe&C,Re=oe&S;if(se&&(pe=he?se(ee,ge,he,_e):se(ee)),pe!==void 0)return pe;if(!b(ee))return ee;var Ze=m(ee);if(Ze){if(pe=h(ee),!me)return s(ee,pe)}else{var Oe=f(ee),Te=Oe==j||Oe==B;if(g(ee))return o(ee,me);if(Oe==D||Oe==I||Te&&!he){if(pe=Ie||Te?{}:x(ee),!me)return Ie?c(ee,i(pe,ee)):a(ee,n(pe,ee))}else{if(!te[Oe])return he?ee:{};pe=p(ee,Oe,me)}}_e||(_e=new e);var Xe=_e.get(ee);if(Xe)return Xe;_e.set(ee,pe),_(ee)?ee.forEach(function(Ae){pe.add(ve(Ae,oe,se,Ae,ee,_e))}):y(ee)&&ee.forEach(function(Ae,de){pe.set(de,ve(Ae,oe,se,de,ee,_e))});var xe=Re?Ie?u:l:Ie?w:v,$e=Ze?void 0:xe(ee);return t($e||ee,function(Ae,de){$e&&(de=Ae,Ae=ee[de]),r(pe,de,ve(Ae,oe,se,de,ee,_e))}),pe}return zh=ve,zh}var Hh,F3;function j3(){if(F3)return Hh;F3=1;var e=_c(),t=4;function r(n){return e(n,t)}return Hh=r,Hh}var Fh,D3;function so(){if(D3)return Fh;D3=1;function e(t){return function(){return t}}return Fh=e,Fh}var jh,B3;function N3(){if(B3)return jh;B3=1;function e(t){return function(r,n,i){for(var o=-1,s=Object(r),a=i(r),c=a.length;c--;){var l=a[t?c:++o];if(n(s[l],l,s)===!1)break}return r}}return jh=e,jh}var Dh,G3;function ao(){if(G3)return Dh;G3=1;var e=N3(),t=e();return Dh=t,Dh}var Bh,W3;function co(){if(W3)return Bh;W3=1;var e=ao(),t=Xt();function r(n,i){return n&&e(n,i,t)}return Bh=r,Bh}var Nh,X3;function Y3(){if(X3)return Nh;X3=1;var e=Ft();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var s=i.length,a=n?s:-1,c=Object(i);(n?a--:++a<s)&&o(c[a],a,c)!==!1;);return i}}return Nh=t,Nh}var Gh,V3;function Wn(){if(V3)return Gh;V3=1;var e=co(),t=Y3(),r=t(e);return Gh=r,Gh}var Wh,U3;function fr(){if(U3)return Wh;U3=1;function e(t){return t}return Wh=e,Wh}var Xh,K3;function vc(){if(K3)return Xh;K3=1;var e=fr();function t(r){return typeof r=="function"?r:e}return Xh=t,Xh}var Yh,Z3;function wc(){if(Z3)return Yh;Z3=1;var e=Ki(),t=Wn(),r=vc(),n=Je();function i(o,s){var a=n(o)?e:t;return a(o,r(s))}return Yh=i,Yh}var Vh,Q3;function qc(){return Q3||(Q3=1,Vh=wc()),Vh}var Uh,J3;function ev(){if(J3)return Uh;J3=1;var e=Wn();function t(r,n){var i=[];return e(r,function(o,s,a){n(o,s,a)&&i.push(o)}),i}return Uh=t,Uh}var Kh,tv;function rv(){if(tv)return Kh;tv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Kh=t,Kh}var Zh,nv;function iv(){if(nv)return Zh;nv=1;function e(t){return this.__data__.has(t)}return Zh=e,Zh}var Qh,ov;function Cc(){if(ov)return Qh;ov=1;var e=Ui(),t=rv(),r=iv();function n(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Qh=n,Qh}var Jh,sv;function av(){if(sv)return Jh;sv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Jh=e,Jh}var ep,cv;function Sc(){if(cv)return ep;cv=1;function e(t,r){return t.has(r)}return ep=e,ep}var tp,lv;function Ec(){if(lv)return tp;lv=1;var e=Cc(),t=av(),r=Sc(),n=1,i=2;function o(s,a,c,l,u,f){var h=c&n,p=s.length,x=a.length;if(p!=x&&!(h&&x>p))return!1;var m=f.get(s),g=f.get(a);if(m&&g)return m==a&&g==s;var y=-1,b=!0,_=c&i?new e:void 0;for(f.set(s,a),f.set(a,s);++y<p;){var v=s[y],w=a[y];if(l)var q=h?l(w,v,y,a,s,f):l(v,w,y,s,a,f);if(q!==void 0){if(q)continue;b=!1;break}if(_){if(!t(a,function(C,S){if(!r(_,S)&&(v===C||u(v,C,c,l,f)))return _.push(S)})){b=!1;break}}else if(!(v===w||u(v,w,c,l,f))){b=!1;break}}return f.delete(s),f.delete(a),b}return tp=o,tp}var rp,uv;function dv(){if(uv)return rp;uv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return rp=e,rp}var np,fv;function lo(){if(fv)return np;fv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return np=e,np}var ip,hv;function pv(){if(hv)return ip;hv=1;var e=Er(),t=gc(),r=Sr(),n=Ec(),i=dv(),o=lo(),s=1,a=2,c="[object Boolean]",l="[object Date]",u="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",x="[object Set]",m="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_=e?e.prototype:void 0,v=_?_.valueOf:void 0;function w(q,C,S,I,M,T,P){switch(S){case b:if(q.byteLength!=C.byteLength||q.byteOffset!=C.byteOffset)return!1;q=q.buffer,C=C.buffer;case y:return!(q.byteLength!=C.byteLength||!T(new t(q),new t(C)));case c:case l:case h:return r(+q,+C);case u:return q.name==C.name&&q.message==C.message;case p:case m:return q==C+"";case f:var A=i;case x:var j=I&s;if(A||(A=o),q.size!=C.size&&!j)return!1;var B=P.get(q);if(B)return B==C;I|=a,P.set(q,C);var H=n(A(q),A(C),I,M,T,P);return P.delete(q),H;case g:if(v)return v.call(q)==v.call(C)}return!1}return ip=w,ip}var op,mv;function gv(){if(mv)return op;mv=1;var e=pc(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,s,a,c,l,u){var f=a&t,h=e(o),p=h.length,x=e(s),m=x.length;if(p!=m&&!f)return!1;for(var g=p;g--;){var y=h[g];if(!(f?y in s:n.call(s,y)))return!1}var b=u.get(o),_=u.get(s);if(b&&_)return b==s&&_==o;var v=!0;u.set(o,s),u.set(s,o);for(var w=f;++g<p;){y=h[g];var q=o[y],C=s[y];if(c)var S=f?c(C,q,y,s,o,u):c(q,C,y,o,s,u);if(!(S===void 0?q===C||l(q,C,a,c,u):S)){v=!1;break}w||(w=y=="constructor")}if(v&&!w){var I=o.constructor,M=s.constructor;I!=M&&"constructor"in o&&"constructor"in s&&!(typeof I=="function"&&I instanceof I&&typeof M=="function"&&M instanceof M)&&(v=!1)}return u.delete(o),u.delete(s),v}return op=i,op}var sp,xv;function yv(){if(xv)return sp;xv=1;var e=Hn(),t=Ec(),r=pv(),n=gv(),i=Tr(),o=Je(),s=Ir(),a=tn(),c=1,l="[object Arguments]",u="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function x(m,g,y,b,_,v){var w=o(m),q=o(g),C=w?u:i(m),S=q?u:i(g);C=C==l?f:C,S=S==l?f:S;var I=C==f,M=S==f,T=C==S;if(T&&s(m)){if(!s(g))return!1;w=!0,I=!1}if(T&&!I)return v||(v=new e),w||a(m)?t(m,g,y,b,_,v):r(m,g,C,y,b,_,v);if(!(y&c)){var P=I&&p.call(m,"__wrapped__"),A=M&&p.call(g,"__wrapped__");if(P||A){var j=P?m.value():m,B=A?g.value():g;return v||(v=new e),_(j,B,y,b,v)}}return T?(v||(v=new e),n(m,g,y,b,_,v)):!1}return sp=x,sp}var ap,bv;function Ic(){if(bv)return ap;bv=1;var e=yv(),t=Ot();function r(n,i,o,s,a){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,o,s,r,a)}return ap=r,ap}var cp,_v;function vv(){if(_v)return cp;_v=1;var e=Hn(),t=Ic(),r=1,n=2;function i(o,s,a,c){var l=a.length,u=l,f=!c;if(o==null)return!u;for(o=Object(o);l--;){var h=a[l];if(f&&h[2]?h[1]!==o[h[0]]:!(h[0]in o))return!1}for(;++l<u;){h=a[l];var p=h[0],x=o[p],m=h[1];if(f&&h[2]){if(x===void 0&&!(p in o))return!1}else{var g=new e;if(c)var y=c(x,m,p,o,s,g);if(!(y===void 0?t(m,x,r|n,c,g):y))return!1}}return!0}return cp=i,cp}var lp,wv;function Tc(){if(wv)return lp;wv=1;var e=St();function t(r){return r===r&&!e(r)}return lp=t,lp}var up,qv;function Cv(){if(qv)return up;qv=1;var e=Tc(),t=Xt();function r(n){for(var i=t(n),o=i.length;o--;){var s=i[o],a=n[s];i[o]=[s,a,e(a)]}return i}return up=r,up}var dp,Sv;function Mc(){if(Sv)return dp;Sv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return dp=e,dp}var fp,Ev;function Iv(){if(Ev)return fp;Ev=1;var e=vv(),t=Cv(),r=Mc();function n(i){var o=t(i);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return fp=n,fp}var hp,Tv;function Mr(){if(Tv)return hp;Tv=1;var e=lr(),t=Ot(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return hp=n,hp}var pp,Mv;function uo(){if(Mv)return pp;Mv=1;var e=Je(),t=Mr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(o,s){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return pp=i,pp}var mp,Av;function Lv(){if(Av)return mp;Av=1;var e=Ui(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,a=i?i.apply(this,s):s[0],c=o.cache;if(c.has(a))return c.get(a);var l=n.apply(this,s);return o.cache=c.set(a,l)||c,l};return o.cache=new(r.Cache||e),o}return r.Cache=e,mp=r,mp}var gp,kv;function Rv(){if(kv)return gp;kv=1;var e=Lv(),t=500;function r(n){var i=e(n,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return gp=r,gp}var xp,Pv;function Ov(){if(Pv)return xp;Pv=1;var e=Rv(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,a,c,l){o.push(c?l.replace(r,"$1"):a||s)}),o});return xp=n,xp}var yp,$v;function Xn(){if($v)return yp;$v=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n<i;)o[n]=r(t[n],n,t);return o}return yp=e,yp}var bp,zv;function Hv(){if(zv)return bp;zv=1;var e=Er(),t=Xn(),r=Je(),n=Mr(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(a){if(typeof a=="string")return a;if(r(a))return t(a,s)+"";if(n(a))return o?o.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return bp=s,bp}var _p,Fv;function Ac(){if(Fv)return _p;Fv=1;var e=Hv();function t(r){return r==null?"":e(r)}return _p=t,_p}var vp,jv;function Yn(){if(jv)return vp;jv=1;var e=Je(),t=uo(),r=Ov(),n=Ac();function i(o,s){return e(o)?o:t(o,s)?[o]:r(n(o))}return vp=i,vp}var wp,Dv;function rn(){if(Dv)return wp;Dv=1;var e=Mr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return wp=t,wp}var qp,Bv;function Vn(){if(Bv)return qp;Bv=1;var e=Yn(),t=rn();function r(n,i){i=e(i,n);for(var o=0,s=i.length;n!=null&&o<s;)n=n[t(i[o++])];return o&&o==s?n:void 0}return qp=r,qp}var Cp,Nv;function Gv(){if(Nv)return Cp;Nv=1;var e=Vn();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return Cp=t,Cp}var Sp,Wv;function Xv(){if(Wv)return Sp;Wv=1;function e(t,r){return t!=null&&r in Object(t)}return Sp=e,Sp}var Ep,Yv;function Lc(){if(Yv)return Ep;Yv=1;var e=Yn(),t=en(),r=Je(),n=Dn(),i=Qi(),o=rn();function s(a,c,l){c=e(c,a);for(var u=-1,f=c.length,h=!1;++u<f;){var p=o(c[u]);if(!(h=a!=null&&l(a,p)))break;a=a[p]}return h||++u!=f?h:(f=a==null?0:a.length,!!f&&i(f)&&n(p,f)&&(r(a)||t(a)))}return Ep=s,Ep}var Ip,Vv;function kc(){if(Vv)return Ip;Vv=1;var e=Xv(),t=Lc();function r(n,i){return n!=null&&t(n,i,e)}return Ip=r,Ip}var Tp,Uv;function Kv(){if(Uv)return Tp;Uv=1;var e=Ic(),t=Gv(),r=kc(),n=uo(),i=Tc(),o=Mc(),s=rn(),a=1,c=2;function l(u,f){return n(u)&&i(f)?o(s(u),f):function(h){var p=t(h,u);return p===void 0&&p===f?r(h,u):e(f,p,a|c)}}return Tp=l,Tp}var Mp,Zv;function Rc(){if(Zv)return Mp;Zv=1;function e(t){return function(r){return r?.[t]}}return Mp=e,Mp}var Ap,Qv;function Jv(){if(Qv)return Ap;Qv=1;var e=Vn();function t(r){return function(n){return e(n,r)}}return Ap=t,Ap}var Lp,e4;function t4(){if(e4)return Lp;e4=1;var e=Rc(),t=Jv(),r=uo(),n=rn();function i(o){return r(o)?e(n(o)):t(o)}return Lp=i,Lp}var kp,r4;function jt(){if(r4)return kp;r4=1;var e=Iv(),t=Kv(),r=fr(),n=Je(),i=t4();function o(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):i(s)}return kp=o,kp}var Rp,n4;function Pc(){if(n4)return Rp;n4=1;var e=uc(),t=ev(),r=jt(),n=Je();function i(o,s){var a=n(o)?e:t;return a(o,r(s,3))}return Rp=i,Rp}var Pp,i4;function o4(){if(i4)return Pp;i4=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return Pp=r,Pp}var Op,s4;function Oc(){if(s4)return Op;s4=1;var e=o4(),t=Lc();function r(n,i){return n!=null&&t(n,i,e)}return Op=r,Op}var $p,a4;function c4(){if(a4)return $p;a4=1;var e=to(),t=Tr(),r=en(),n=Je(),i=Ft(),o=Ir(),s=Nn(),a=tn(),c="[object Map]",l="[object Set]",u=Object.prototype,f=u.hasOwnProperty;function h(p){if(p==null)return!0;if(i(p)&&(n(p)||typeof p=="string"||typeof p.splice=="function"||o(p)||a(p)||r(p)))return!p.length;var x=t(p);if(x==c||x==l)return!p.size;if(s(p))return!e(p).length;for(var m in p)if(f.call(p,m))return!1;return!0}return $p=h,$p}var zp,l4;function $c(){if(l4)return zp;l4=1;function e(t){return t===void 0}return zp=e,zp}var Hp,u4;function zc(){if(u4)return Hp;u4=1;var e=Wn(),t=Ft();function r(n,i){var o=-1,s=t(n)?Array(n.length):[];return e(n,function(a,c,l){s[++o]=i(a,c,l)}),s}return Hp=r,Hp}var Fp,d4;function Hc(){if(d4)return Fp;d4=1;var e=Xn(),t=jt(),r=zc(),n=Je();function i(o,s){var a=n(o)?e:r;return a(o,t(s,3))}return Fp=i,Fp}var jp,f4;function h4(){if(f4)return jp;f4=1;function e(t,r,n,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(n=t[++o]);++o<s;)n=r(n,t[o],o,t);return n}return jp=e,jp}var Dp,p4;function m4(){if(p4)return Dp;p4=1;function e(t,r,n,i,o){return o(t,function(s,a,c){n=i?(i=!1,s):r(n,s,a,c)}),n}return Dp=e,Dp}var Bp,g4;function Fc(){if(g4)return Bp;g4=1;var e=h4(),t=Wn(),r=jt(),n=m4(),i=Je();function o(s,a,c){var l=i(s)?e:n,u=arguments.length<3;return l(s,r(a,4),c,u,t)}return Bp=o,Bp}var Np,x4;function y4(){if(x4)return Np;x4=1;var e=lr(),t=Je(),r=Ot(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return Np=i,Np}var Gp,b4;function _4(){if(b4)return Gp;b4=1;var e=Rc(),t=e("length");return Gp=t,Gp}var Wp,v4;function w4(){if(v4)return Wp;v4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+e+i+o+"]");function c(l){return a.test(l)}return Wp=c,Wp}var Xp,q4;function C4(){if(q4)return Xp;q4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="["+e+"]",a="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+a+"|"+c+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",x=l+"?",m="["+o+"]?",g="(?:"+p+"(?:"+[u,f,h].join("|")+")"+m+x+")*",y=m+x+g,b="(?:"+[u+a+"?",a,f,h,s].join("|")+")",_=RegExp(c+"(?="+c+")|"+b+y,"g");function v(w){for(var q=_.lastIndex=0;_.test(w);)++q;return q}return Xp=v,Xp}var Yp,S4;function E4(){if(S4)return Yp;S4=1;var e=_4(),t=w4(),r=C4();function n(i){return t(i)?r(i):e(i)}return Yp=n,Yp}var Vp,I4;function T4(){if(I4)return Vp;I4=1;var e=to(),t=Tr(),r=Ft(),n=y4(),i=E4(),o="[object Map]",s="[object Set]";function a(c){if(c==null)return 0;if(r(c))return n(c)?i(c):c.length;var l=t(c);return l==o||l==s?c.size:e(c).length}return Vp=a,Vp}var Up,M4;function A4(){if(M4)return Up;M4=1;var e=Ki(),t=yc(),r=co(),n=jt(),i=Gn(),o=Je(),s=Ir(),a=Qr(),c=St(),l=tn();function u(f,h,p){var x=o(f),m=x||s(f)||l(f);if(h=n(h,4),p==null){var g=f&&f.constructor;m?p=x?new g:[]:c(f)?p=a(g)?t(i(f)):{}:p={}}return(m?e:r)(f,function(y,b,_){return h(p,y,b,_)}),p}return Up=u,Up}var Kp,L4;function k4(){if(L4)return Kp;L4=1;var e=Er(),t=en(),r=Je(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return Kp=i,Kp}var Zp,R4;function fo(){if(R4)return Zp;R4=1;var e=io(),t=k4();function r(n,i,o,s,a){var c=-1,l=n.length;for(o||(o=t),a||(a=[]);++c<l;){var u=n[c];i>0&&o(u)?i>1?r(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}return Zp=r,Zp}var Qp,P4;function O4(){if(P4)return Qp;P4=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Qp=e,Qp}var Jp,$4;function jc(){if($4)return Jp;$4=1;var e=O4(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.length-1:i,0),function(){for(var s=arguments,a=-1,c=t(s.length-i,0),l=Array(c);++a<c;)l[a]=s[i+a];a=-1;for(var u=Array(i+1);++a<i;)u[a]=s[a];return u[i]=o(l),e(n,this,u)}}return Jp=r,Jp}var em,z4;function H4(){if(z4)return em;z4=1;var e=so(),t=oc(),r=fr(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return em=n,em}var tm,F4;function j4(){if(F4)return tm;F4=1;var e=800,t=16,r=Date.now;function n(i){var o=0,s=0;return function(){var a=r(),c=t-(a-s);if(s=a,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return tm=n,tm}var rm,D4;function Dc(){if(D4)return rm;D4=1;var e=H4(),t=j4(),r=t(e);return rm=r,rm}var nm,B4;function Un(){if(B4)return nm;B4=1;var e=fr(),t=jc(),r=Dc();function n(i,o){return r(t(i,o,e),i+"")}return nm=n,nm}var im,N4;function Bc(){if(N4)return im;N4=1;function e(t,r,n,i){for(var o=t.length,s=n+(i?1:-1);i?s--:++s<o;)if(r(t[s],s,t))return s;return-1}return im=e,im}var om,G4;function W4(){if(G4)return om;G4=1;function e(t){return t!==t}return om=e,om}var sm,X4;function Y4(){if(X4)return sm;X4=1;function e(t,r,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}return sm=e,sm}var am,V4;function U4(){if(V4)return am;V4=1;var e=Bc(),t=W4(),r=Y4();function n(i,o,s){return o===o?r(i,o,s):e(i,t,s)}return am=n,am}var cm,K4;function Z4(){if(K4)return cm;K4=1;var e=U4();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return cm=t,cm}var lm,Q4;function J4(){if(Q4)return lm;Q4=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(r,t[i]))return!0;return!1}return lm=e,lm}var um,e5;function t5(){if(e5)return um;e5=1;function e(){}return um=e,um}var dm,r5;function n5(){if(r5)return dm;r5=1;var e=mc(),t=t5(),r=lo(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return dm=i,dm}var fm,i5;function o5(){if(i5)return fm;i5=1;var e=Cc(),t=Z4(),r=J4(),n=Sc(),i=n5(),o=lo(),s=200;function a(c,l,u){var f=-1,h=t,p=c.length,x=!0,m=[],g=m;if(u)x=!1,h=r;else if(p>=s){var y=l?null:i(c);if(y)return o(y);x=!1,h=n,g=new e}else g=l?[]:m;e:for(;++f<p;){var b=c[f],_=l?l(b):b;if(b=u||b!==0?b:0,x&&_===_){for(var v=g.length;v--;)if(g[v]===_)continue e;l&&g.push(_),m.push(b)}else h(g,_,u)||(g!==m&&g.push(_),m.push(b))}return m}return fm=a,fm}var hm,s5;function Nc(){if(s5)return hm;s5=1;var e=Ft(),t=Ot();function r(n){return t(n)&&e(n)}return hm=r,hm}var pm,a5;function c5(){if(a5)return pm;a5=1;var e=fo(),t=Un(),r=o5(),n=Nc(),i=t(function(o){return r(e(o,1,n,!0))});return pm=i,pm}var mm,l5;function u5(){if(l5)return mm;l5=1;var e=Xn();function t(r,n){return e(n,function(i){return r[i]})}return mm=t,mm}var gm,d5;function Gc(){if(d5)return gm;d5=1;var e=u5(),t=Xt();function r(n){return n==null?[]:e(n,t(n))}return gm=r,gm}var xm,f5;function Et(){if(f5)return xm;f5=1;var e;if(typeof Yi=="function")try{e={clone:j3(),constant:so(),each:qc(),filter:Pc(),has:Oc(),isArray:Je(),isEmpty:c4(),isFunction:Qr(),isUndefined:$c(),keys:Xt(),map:Hc(),reduce:Fc(),size:T4(),transform:A4(),union:c5(),values:Gc()}}catch{}return e||(e=window._),xm=e,xm}var ym,h5;function ho(){if(h5)return ym;h5=1;var e=Et();ym=i;var t="\0",r="\0",n="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[r]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(f){return e.isEmpty(u._in[f])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(f){return e.isEmpty(u._out[f])})},i.prototype.setNodes=function(u,f){var h=arguments,p=this;return e.each(u,function(x){h.length>1?p.setNode(x,f):p.setNode(x)}),this},i.prototype.setNode=function(u,f){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=f),this):(this._nodes[u]=arguments.length>1?f:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=r,this._children[u]={},this._children[r][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var f=this;if(e.has(this._nodes,u)){var h=function(p){f.removeEdge(f._edgeObjs[p])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(p){f.setParent(p)}),delete this._children[u]),e.each(e.keys(this._in[u]),h),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),h),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var h=f;!e.isUndefined(h);h=this.parent(h))if(h===u)throw new Error("Setting "+f+" as parent of "+u+" would create a cycle");this.setNode(f)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=f,this._children[f][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var f=this._parent[u];if(f!==r)return f}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=r),this._isCompound){var f=this._children[u];if(f)return e.keys(f)}else{if(u===r)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var f=this._preds[u];if(f)return e.keys(f)},i.prototype.successors=function(u){var f=this._sucs[u];if(f)return e.keys(f)},i.prototype.neighbors=function(u){var f=this.predecessors(u);if(f)return e.union(f,this.successors(u))},i.prototype.isLeaf=function(u){var f;return this.isDirected()?f=this.successors(u):f=this.neighbors(u),f.length===0},i.prototype.filterNodes=function(u){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var h=this;e.each(this._nodes,function(m,g){u(g)&&f.setNode(g,m)}),e.each(this._edgeObjs,function(m){f.hasNode(m.v)&&f.hasNode(m.w)&&f.setEdge(m,h.edge(m))});var p={};function x(m){var g=h.parent(m);return g===void 0||f.hasNode(g)?(p[m]=g,g):g in p?p[g]:x(g)}return this._isCompound&&e.each(f.nodes(),function(m){f.setParent(m,x(m))}),f},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,f){var h=this,p=arguments;return e.reduce(u,function(x,m){return p.length>1?h.setEdge(x,m,f):h.setEdge(x,m),m}),this},i.prototype.setEdge=function(){var u,f,h,p,x=!1,m=arguments[0];typeof m=="object"&&m!==null&&"v"in m?(u=m.v,f=m.w,h=m.name,arguments.length===2&&(p=arguments[1],x=!0)):(u=m,f=arguments[1],h=arguments[3],arguments.length>2&&(p=arguments[2],x=!0)),u=""+u,f=""+f,e.isUndefined(h)||(h=""+h);var g=a(this._isDirected,u,f,h);if(e.has(this._edgeLabels,g))return x&&(this._edgeLabels[g]=p),this;if(!e.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(f),this._edgeLabels[g]=x?p:this._defaultEdgeLabelFn(u,f,h);var y=c(this._isDirected,u,f,h);return u=y.v,f=y.w,Object.freeze(y),this._edgeObjs[g]=y,o(this._preds[f],u),o(this._sucs[u],f),this._in[f][g]=y,this._out[u][g]=y,this._edgeCount++,this},i.prototype.edge=function(u,f,h){var p=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,u,f,h);return this._edgeLabels[p]},i.prototype.hasEdge=function(u,f,h){var p=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,u,f,h);return e.has(this._edgeLabels,p)},i.prototype.removeEdge=function(u,f,h){var p=arguments.length===1?l(this._isDirected,arguments[0]):a(this._isDirected,u,f,h),x=this._edgeObjs[p];return x&&(u=x.v,f=x.w,delete this._edgeLabels[p],delete this._edgeObjs[p],s(this._preds[f],u),s(this._sucs[u],f),delete this._in[f][p],delete this._out[u][p],this._edgeCount--),this},i.prototype.inEdges=function(u,f){var h=this._in[u];if(h){var p=e.values(h);return f?e.filter(p,function(x){return x.v===f}):p}},i.prototype.outEdges=function(u,f){var h=this._out[u];if(h){var p=e.values(h);return f?e.filter(p,function(x){return x.w===f}):p}},i.prototype.nodeEdges=function(u,f){var h=this.inEdges(u,f);if(h)return h.concat(this.outEdges(u,f))};function o(u,f){u[f]?u[f]++:u[f]=1}function s(u,f){--u[f]||delete u[f]}function a(u,f,h,p){var x=""+f,m=""+h;if(!u&&x>m){var g=x;x=m,m=g}return x+n+m+n+(e.isUndefined(p)?t:p)}function c(u,f,h,p){var x=""+f,m=""+h;if(!u&&x>m){var g=x;x=m,m=g}var y={v:x,w:m};return p&&(y.name=p),y}function l(u,f){return a(u,f.v,f.w,f.name)}return ym}var bm,p5;function m5(){return p5||(p5=1,bm="2.1.8"),bm}var _m,g5;function x5(){return g5||(g5=1,_m={Graph:ho(),version:m5()}),_m}var vm,y5;function b5(){if(y5)return vm;y5=1;var e=Et(),t=ho();vm={write:r,read:o};function r(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:i(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function n(s){return e.map(s.nodes(),function(a){var c=s.node(a),l=s.parent(a),u={v:a};return e.isUndefined(c)||(u.value=c),e.isUndefined(l)||(u.parent=l),u})}function i(s){return e.map(s.edges(),function(a){var c=s.edge(a),l={v:a.v,w:a.w};return e.isUndefined(a.name)||(l.name=a.name),e.isUndefined(c)||(l.value=c),l})}function o(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(c){a.setNode(c.v,c.value),c.parent&&a.setParent(c.v,c.parent)}),e.each(s.edges,function(c){a.setEdge({v:c.v,w:c.w,name:c.name},c.value)}),a}return vm}var wm,_5;function v5(){if(_5)return wm;_5=1;var e=Et();wm=t;function t(r){var n={},i=[],o;function s(a){e.has(n,a)||(n[a]=!0,o.push(a),e.each(r.successors(a),s),e.each(r.predecessors(a),s))}return e.each(r.nodes(),function(a){o=[],s(a),o.length&&i.push(o)}),i}return wm}var qm,w5;function Wc(){if(w5)return qm;w5=1;var e=Et();qm=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var i=this._keyIndices;if(r=String(r),!e.has(i,r)){var o=this._arr,s=o.length;return i[r]=s,o.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var i=this._keyIndices[r];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},t.prototype._heapify=function(r){var n=this._arr,i=2*r,o=i+1,s=r;i<n.length&&(s=n[i].priority<n[s].priority?i:s,o<n.length&&(s=n[o].priority<n[s].priority?o:s),s!==r&&(this._swap(r,s),this._heapify(s)))},t.prototype._decrease=function(r){for(var n=this._arr,i=n[r].priority,o;r!==0&&(o=r>>1,!(n[o].priority<i));)this._swap(r,o),r=o},t.prototype._swap=function(r,n){var i=this._arr,o=this._keyIndices,s=i[r],a=i[n];i[r]=a,i[n]=s,o[a.key]=r,o[s.key]=n},qm}var Cm,q5;function Xc(){if(q5)return Cm;q5=1;var e=Et(),t=Wc();Cm=n;var r=e.constant(1);function n(o,s,a,c){return i(o,String(s),a||r,c||function(l){return o.outEdges(l)})}function i(o,s,a,c){var l={},u=new t,f,h,p=function(x){var m=x.v!==f?x.v:x.w,g=l[m],y=a(x),b=h.distance+y;if(y<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+x+" Weight: "+y);b<g.distance&&(g.distance=b,g.predecessor=f,u.decrease(m,b))};for(o.nodes().forEach(function(x){var m=x===s?0:Number.POSITIVE_INFINITY;l[x]={distance:m},u.add(x,m)});u.size()>0&&(f=u.removeMin(),h=l[f],h.distance!==Number.POSITIVE_INFINITY);)c(f).forEach(p);return l}return Cm}var Sm,C5;function S5(){if(C5)return Sm;C5=1;var e=Xc(),t=Et();Sm=r;function r(n,i,o){return t.transform(n.nodes(),function(s,a){s[a]=e(n,a,i,o)},{})}return Sm}var Em,E5;function Yc(){if(E5)return Em;E5=1;var e=Et();Em=t;function t(r){var n=0,i=[],o={},s=[];function a(c){var l=o[c]={onStack:!0,lowlink:n,index:n++};if(i.push(c),r.successors(c).forEach(function(h){e.has(o,h)?o[h].onStack&&(l.lowlink=Math.min(l.lowlink,o[h].index)):(a(h),l.lowlink=Math.min(l.lowlink,o[h].lowlink))}),l.lowlink===l.index){var u=[],f;do f=i.pop(),o[f].onStack=!1,u.push(f);while(c!==f);s.push(u)}}return r.nodes().forEach(function(c){e.has(o,c)||a(c)}),s}return Em}var Im,I5;function T5(){if(I5)return Im;I5=1;var e=Et(),t=Yc();Im=r;function r(n){return e.filter(t(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return Im}var Tm,M5;function A5(){if(M5)return Tm;M5=1;var e=Et();Tm=r;var t=e.constant(1);function r(i,o,s){return n(i,o||t,s||function(a){return i.outEdges(a)})}function n(i,o,s){var a={},c=i.nodes();return c.forEach(function(l){a[l]={},a[l][l]={distance:0},c.forEach(function(u){l!==u&&(a[l][u]={distance:Number.POSITIVE_INFINITY})}),s(l).forEach(function(u){var f=u.v===l?u.w:u.v,h=o(u);a[l][f]={distance:h,predecessor:l}})}),c.forEach(function(l){var u=a[l];c.forEach(function(f){var h=a[f];c.forEach(function(p){var x=h[l],m=u[p],g=h[p],y=x.distance+m.distance;y<g.distance&&(g.distance=y,g.predecessor=m.predecessor)})})}),a}return Tm}var Mm,L5;function Vc(){if(L5)return Mm;L5=1;var e=Et();Mm=t,t.CycleException=r;function t(n){var i={},o={},s=[];function a(c){if(e.has(o,c))throw new r;e.has(i,c)||(o[c]=!0,i[c]=!0,e.each(n.predecessors(c),a),delete o[c],s.push(c))}if(e.each(n.sinks(),a),e.size(i)!==n.nodeCount())throw new r;return s}function r(){}return r.prototype=new Error,Mm}var Am,k5;function R5(){if(k5)return Am;k5=1;var e=Vc();Am=t;function t(r){try{e(r)}catch(n){if(n instanceof e.CycleException)return!1;throw n}return!0}return Am}var Lm,P5;function Uc(){if(P5)return Lm;P5=1;var e=Et();Lm=t;function t(n,i,o){e.isArray(i)||(i=[i]);var s=(n.isDirected()?n.successors:n.neighbors).bind(n),a=[],c={};return e.each(i,function(l){if(!n.hasNode(l))throw new Error("Graph does not have node: "+l);r(n,l,o==="post",c,s,a)}),a}function r(n,i,o,s,a,c){e.has(s,i)||(s[i]=!0,o||c.push(i),e.each(a(i),function(l){r(n,l,o,s,a,c)}),o&&c.push(i))}return Lm}var km,O5;function $5(){if(O5)return km;O5=1;var e=Uc();km=t;function t(r,n){return e(r,n,"post")}return km}var Rm,z5;function H5(){if(z5)return Rm;z5=1;var e=Uc();Rm=t;function t(r,n){return e(r,n,"pre")}return Rm}var Pm,F5;function j5(){if(F5)return Pm;F5=1;var e=Et(),t=ho(),r=Wc();Pm=n;function n(i,o){var s=new t,a={},c=new r,l;function u(h){var p=h.v===l?h.w:h.v,x=c.priority(p);if(x!==void 0){var m=o(h);m<x&&(a[p]=l,c.decrease(p,m))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(h){c.add(h,Number.POSITIVE_INFINITY),s.setNode(h)}),c.decrease(i.nodes()[0],0);for(var f=!1;c.size()>0;){if(l=c.removeMin(),e.has(a,l))s.setEdge(l,a[l]);else{if(f)throw new Error("Input graph is not connected: "+i);f=!0}i.nodeEdges(l).forEach(u)}return s}return Pm}var Om,D5;function B5(){return D5||(D5=1,Om={components:v5(),dijkstra:Xc(),dijkstraAll:S5(),findCycles:T5(),floydWarshall:A5(),isAcyclic:R5(),postorder:$5(),preorder:H5(),prim:j5(),tarjan:Yc(),topsort:Vc()}),Om}var $m,N5;function G5(){if(N5)return $m;N5=1;var e=x5();return $m={Graph:e.Graph,json:b5(),alg:B5(),version:e.version},$m}var zm,W5;function Lt(){if(W5)return zm;W5=1;var e;if(typeof Yi=="function")try{e=G5()}catch{}return e||(e=window.graphlib),zm=e,zm}var Hm,X5;function Y5(){if(X5)return Hm;X5=1;var e=_c(),t=1,r=4;function n(i){return e(i,t|r)}return Hm=n,Hm}var Fm,V5;function Kn(){if(V5)return Fm;V5=1;var e=Sr(),t=Ft(),r=Dn(),n=St();function i(o,s,a){if(!n(a))return!1;var c=typeof s;return(c=="number"?t(a)&&r(s,a.length):c=="string"&&s in a)?e(a[s],o):!1}return Fm=i,Fm}var jm,U5;function K5(){if(U5)return jm;U5=1;var e=Un(),t=Sr(),r=Kn(),n=dr(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(a,c){a=Object(a);var l=-1,u=c.length,f=u>2?c[2]:void 0;for(f&&r(c[0],c[1],f)&&(u=1);++l<u;)for(var h=c[l],p=n(h),x=-1,m=p.length;++x<m;){var g=p[x],y=a[g];(y===void 0||t(y,i[g])&&!o.call(a,g))&&(a[g]=h[g])}return a});return jm=s,jm}var Dm,Z5;function Q5(){if(Z5)return Dm;Z5=1;var e=jt(),t=Ft(),r=Xt();function n(i){return function(o,s,a){var c=Object(o);if(!t(o)){var l=e(s,3);o=r(o),s=function(f){return l(c[f],f,c)}}var u=i(o,s,a);return u>-1?c[l?o[u]:u]:void 0}}return Dm=n,Dm}var Bm,J5;function e6(){if(J5)return Bm;J5=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Bm=t,Bm}var Nm,t6;function r6(){if(t6)return Nm;t6=1;var e=e6(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Nm=r,Nm}var Gm,n6;function i6(){if(n6)return Gm;n6=1;var e=r6(),t=St(),r=Mr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function c(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=o.test(l);return f||s.test(l)?a(l.slice(2),f?2:8):i.test(l)?n:+l}return Gm=c,Gm}var Wm,o6;function Kc(){if(o6)return Wm;o6=1;var e=i6(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return Wm=n,Wm}var Xm,s6;function a6(){if(s6)return Xm;s6=1;var e=Kc();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Xm=t,Xm}var Ym,c6;function l6(){if(c6)return Ym;c6=1;var e=Bc(),t=jt(),r=a6(),n=Math.max;function i(o,s,a){var c=o==null?0:o.length;if(!c)return-1;var l=a==null?0:r(a);return l<0&&(l=n(c+l,0)),e(o,t(s,3),l)}return Ym=i,Ym}var Vm,u6;function d6(){if(u6)return Vm;u6=1;var e=Q5(),t=l6(),r=e(t);return Vm=r,Vm}var Um,f6;function Zc(){if(f6)return Um;f6=1;var e=fo();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Um=t,Um}var Km,h6;function p6(){if(h6)return Km;h6=1;var e=ao(),t=vc(),r=dr();function n(i,o){return i==null?i:e(i,t(o),r)}return Km=n,Km}var Zm,m6;function g6(){if(m6)return Zm;m6=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Zm=e,Zm}var Qm,x6;function y6(){if(x6)return Qm;x6=1;var e=Fn(),t=co(),r=jt();function n(i,o){var s={};return o=r(o,3),t(i,function(a,c,l){e(s,c,o(a,c,l))}),s}return Qm=n,Qm}var Jm,b6;function po(){if(b6)return Jm;b6=1;var e=Mr();function t(r,n,i){for(var o=-1,s=r.length;++o<s;){var a=r[o],c=n(a);if(c!=null&&(l===void 0?c===c&&!e(c):i(c,l)))var l=c,u=a}return u}return Jm=t,Jm}var e0,_6;function v6(){if(_6)return e0;_6=1;function e(t,r){return t>r}return e0=e,e0}var t0,w6;function q6(){if(w6)return t0;w6=1;var e=po(),t=v6(),r=fr();function n(i){return i&&i.length?e(i,r,t):void 0}return t0=n,t0}var r0,C6;function Qc(){if(C6)return r0;C6=1;var e=Fn(),t=Sr();function r(n,i,o){(o!==void 0&&!t(n[i],o)||o===void 0&&!(i in n))&&e(n,i,o)}return r0=r,r0}var n0,S6;function E6(){if(S6)return n0;S6=1;var e=lr(),t=Gn(),r=Ot(),n="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,c=s.call(Object);function l(u){if(!r(u)||e(u)!=n)return!1;var f=t(u);if(f===null)return!0;var h=a.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&s.call(h)==c}return n0=l,n0}var i0,I6;function Jc(){if(I6)return i0;I6=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return i0=e,i0}var o0,T6;function M6(){if(T6)return o0;T6=1;var e=Jr(),t=dr();function r(n){return e(n,t(n))}return o0=r,o0}var s0,A6;function L6(){if(A6)return s0;A6=1;var e=Qc(),t=cc(),r=xc(),n=lc(),i=bc(),o=en(),s=Je(),a=Nc(),c=Ir(),l=Qr(),u=St(),f=E6(),h=tn(),p=Jc(),x=M6();function m(g,y,b,_,v,w,q){var C=p(g,b),S=p(y,b),I=q.get(S);if(I){e(g,b,I);return}var M=w?w(C,S,b+"",g,y,q):void 0,T=M===void 0;if(T){var P=s(S),A=!P&&c(S),j=!P&&!A&&h(S);M=S,P||A||j?s(C)?M=C:a(C)?M=n(C):A?(T=!1,M=t(S,!0)):j?(T=!1,M=r(S,!0)):M=[]:f(S)||o(S)?(M=C,o(C)?M=x(C):(!u(C)||l(C))&&(M=i(S))):T=!1}T&&(q.set(S,M),v(M,S,_,w,q),q.delete(S)),e(g,b,M)}return s0=m,s0}var a0,k6;function R6(){if(k6)return a0;k6=1;var e=Hn(),t=Qc(),r=ao(),n=L6(),i=St(),o=dr(),s=Jc();function a(c,l,u,f,h){c!==l&&r(l,function(p,x){if(h||(h=new e),i(p))n(c,l,x,u,a,f,h);else{var m=f?f(s(c,x),p,x+"",c,l,h):void 0;m===void 0&&(m=p),t(c,x,m)}},o)}return a0=a,a0}var c0,P6;function O6(){if(P6)return c0;P6=1;var e=Un(),t=Kn();function r(n){return e(function(i,o){var s=-1,a=o.length,c=a>1?o[a-1]:void 0,l=a>2?o[2]:void 0;for(c=n.length>3&&typeof c=="function"?(a--,c):void 0,l&&t(o[0],o[1],l)&&(c=a<3?void 0:c,a=1),i=Object(i);++s<a;){var u=o[s];u&&n(i,u,s,c)}return i})}return c0=r,c0}var l0,$6;function z6(){if($6)return l0;$6=1;var e=R6(),t=O6(),r=t(function(n,i,o){e(n,i,o)});return l0=r,l0}var u0,H6;function el(){if(H6)return u0;H6=1;function e(t,r){return t<r}return u0=e,u0}var d0,F6;function j6(){if(F6)return d0;F6=1;var e=po(),t=el(),r=fr();function n(i){return i&&i.length?e(i,r,t):void 0}return d0=n,d0}var f0,D6;function B6(){if(D6)return f0;D6=1;var e=po(),t=jt(),r=el();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return f0=n,f0}var h0,N6;function G6(){if(N6)return h0;N6=1;var e=Mt(),t=function(){return e.Date.now()};return h0=t,h0}var p0,W6;function X6(){if(W6)return p0;W6=1;var e=jn(),t=Yn(),r=Dn(),n=St(),i=rn();function o(s,a,c,l){if(!n(s))return s;a=t(a,s);for(var u=-1,f=a.length,h=f-1,p=s;p!=null&&++u<f;){var x=i(a[u]),m=c;if(x==="__proto__"||x==="constructor"||x==="prototype")return s;if(u!=h){var g=p[x];m=l?l(g,x,p):void 0,m===void 0&&(m=n(g)?g:r(a[u+1])?[]:{})}e(p,x,m),p=p[x]}return s}return p0=o,p0}var m0,Y6;function V6(){if(Y6)return m0;Y6=1;var e=Vn(),t=X6(),r=Yn();function n(i,o,s){for(var a=-1,c=o.length,l={};++a<c;){var u=o[a],f=e(i,u);s(f,u)&&t(l,r(u,i),f)}return l}return m0=n,m0}var g0,U6;function K6(){if(U6)return g0;U6=1;var e=V6(),t=kc();function r(n,i){return e(n,i,function(o,s){return t(n,s)})}return g0=r,g0}var x0,Z6;function Q6(){if(Z6)return x0;Z6=1;var e=Zc(),t=jc(),r=Dc();function n(i){return r(t(i,void 0,e),i+"")}return x0=n,x0}var y0,J6;function ew(){if(J6)return y0;J6=1;var e=K6(),t=Q6(),r=t(function(n,i){return n==null?{}:e(n,i)});return y0=r,y0}var b0,tw;function rw(){if(tw)return b0;tw=1;var e=Math.ceil,t=Math.max;function r(n,i,o,s){for(var a=-1,c=t(e((i-n)/(o||1)),0),l=Array(c);c--;)l[s?c:++a]=n,n+=o;return l}return b0=r,b0}var _0,nw;function iw(){if(nw)return _0;nw=1;var e=rw(),t=Kn(),r=Kc();function n(i){return function(o,s,a){return a&&typeof a!="number"&&t(o,s,a)&&(s=a=void 0),o=r(o),s===void 0?(s=o,o=0):s=r(s),a=a===void 0?o<s?1:-1:r(a),e(o,s,a,i)}}return _0=n,_0}var v0,ow;function sw(){if(ow)return v0;ow=1;var e=iw(),t=e();return v0=t,v0}var w0,aw;function cw(){if(aw)return w0;aw=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return w0=e,w0}var q0,lw;function uw(){if(lw)return q0;lw=1;var e=Mr();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,s=r===r,a=e(r),c=n!==void 0,l=n===null,u=n===n,f=e(n);if(!l&&!f&&!a&&r>n||a&&c&&u&&!l&&!f||o&&c&&u||!i&&u||!s)return 1;if(!o&&!a&&!f&&r<n||f&&i&&s&&!o&&!a||l&&i&&s||!c&&s||!u)return-1}return 0}return q0=t,q0}var C0,dw;function fw(){if(dw)return C0;dw=1;var e=uw();function t(r,n,i){for(var o=-1,s=r.criteria,a=n.criteria,c=s.length,l=i.length;++o<c;){var u=e(s[o],a[o]);if(u){if(o>=l)return u;var f=i[o];return u*(f=="desc"?-1:1)}}return r.index-n.index}return C0=t,C0}var S0,hw;function pw(){if(hw)return S0;hw=1;var e=Xn(),t=Vn(),r=jt(),n=zc(),i=cw(),o=Bn(),s=fw(),a=fr(),c=Je();function l(u,f,h){f.length?f=e(f,function(m){return c(m)?function(g){return t(g,m.length===1?m[0]:m)}:m}):f=[a];var p=-1;f=e(f,o(r));var x=n(u,function(m,g,y){var b=e(f,function(_){return _(m)});return{criteria:b,index:++p,value:m}});return i(x,function(m,g){return s(m,g,h)})}return S0=l,S0}var E0,mw;function gw(){if(mw)return E0;mw=1;var e=fo(),t=pw(),r=Un(),n=Kn(),i=r(function(o,s){if(o==null)return[];var a=s.length;return a>1&&n(o,s[0],s[1])?s=[]:a>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return E0=i,E0}var I0,xw;function yw(){if(xw)return I0;xw=1;var e=Ac(),t=0;function r(n){var i=++t;return e(n)+i}return I0=r,I0}var T0,bw;function _w(){if(bw)return T0;bw=1;function e(t,r,n){for(var i=-1,o=t.length,s=r.length,a={};++i<o;){var c=i<s?r[i]:void 0;n(a,t[i],c)}return a}return T0=e,T0}var M0,vw;function ww(){if(vw)return M0;vw=1;var e=jn(),t=_w();function r(n,i){return t(n||[],i||[],e)}return M0=r,M0}var A0,qw;function Ge(){if(qw)return A0;qw=1;var e;if(typeof Yi=="function")try{e={cloneDeep:Y5(),constant:so(),defaults:K5(),each:qc(),filter:Pc(),find:d6(),flatten:Zc(),forEach:wc(),forIn:p6(),has:Oc(),isUndefined:$c(),last:g6(),map:Hc(),mapValues:y6(),max:q6(),merge:z6(),min:j6(),minBy:B6(),now:G6(),pick:ew(),range:sw(),reduce:Fc(),sortBy:gw(),uniqueId:yw(),values:Gc(),zipObject:ww()}}catch{}return e||(e=window._),A0=e,A0}var L0,Cw;function Sw(){if(Cw)return L0;Cw=1,L0=e;function e(){var n={};n._next=n._prev=n,this._sentinel=n}e.prototype.dequeue=function(){var n=this._sentinel,i=n._prev;if(i!==n)return t(i),i},e.prototype.enqueue=function(n){var i=this._sentinel;n._prev&&n._next&&t(n),n._next=i._next,i._next._prev=n,i._next=n,n._prev=i},e.prototype.toString=function(){for(var n=[],i=this._sentinel,o=i._prev;o!==i;)n.push(JSON.stringify(o,r)),o=o._prev;return"["+n.join(", ")+"]"};function t(n){n._prev._next=n._next,n._next._prev=n._prev,delete n._next,delete n._prev}function r(n,i){if(n!=="_next"&&n!=="_prev")return i}return L0}var k0,Ew;function Iw(){if(Ew)return k0;Ew=1;var e=Ge(),t=Lt().Graph,r=Sw();k0=i;var n=e.constant(1);function i(l,u){if(l.nodeCount()<=1)return[];var f=a(l,u||n),h=o(f.graph,f.buckets,f.zeroIdx);return e.flatten(e.map(h,function(p){return l.outEdges(p.v,p.w)}),!0)}function o(l,u,f){for(var h=[],p=u[u.length-1],x=u[0],m;l.nodeCount();){for(;m=x.dequeue();)s(l,u,f,m);for(;m=p.dequeue();)s(l,u,f,m);if(l.nodeCount()){for(var g=u.length-2;g>0;--g)if(m=u[g].dequeue(),m){h=h.concat(s(l,u,f,m,!0));break}}}return h}function s(l,u,f,h,p){var x=p?[]:void 0;return e.forEach(l.inEdges(h.v),function(m){var g=l.edge(m),y=l.node(m.v);p&&x.push({v:m.v,w:m.w}),y.out-=g,c(u,f,y)}),e.forEach(l.outEdges(h.v),function(m){var g=l.edge(m),y=m.w,b=l.node(y);b.in-=g,c(u,f,b)}),l.removeNode(h.v),x}function a(l,u){var f=new t,h=0,p=0;e.forEach(l.nodes(),function(g){f.setNode(g,{v:g,in:0,out:0})}),e.forEach(l.edges(),function(g){var y=f.edge(g.v,g.w)||0,b=u(g),_=y+b;f.setEdge(g.v,g.w,_),p=Math.max(p,f.node(g.v).out+=b),h=Math.max(h,f.node(g.w).in+=b)});var x=e.range(p+h+3).map(function(){return new r}),m=h+1;return e.forEach(f.nodes(),function(g){c(x,m,f.node(g))}),{graph:f,buckets:x,zeroIdx:m}}function c(l,u,f){f.out?f.in?l[f.out-f.in+u].enqueue(f):l[l.length-1].enqueue(f):l[0].enqueue(f)}return k0}var R0,Tw;function Mw(){if(Tw)return R0;Tw=1;var e=Ge(),t=Iw();R0={run:r,undo:i};function r(o){var s=o.graph().acyclicer==="greedy"?t(o,a(o)):n(o);e.forEach(s,function(c){var l=o.edge(c);o.removeEdge(c),l.forwardName=c.name,l.reversed=!0,o.setEdge(c.w,c.v,l,e.uniqueId("rev"))});function a(c){return function(l){return c.edge(l).weight}}}function n(o){var s=[],a={},c={};function l(u){e.has(c,u)||(c[u]=!0,a[u]=!0,e.forEach(o.outEdges(u),function(f){e.has(a,f.w)?s.push(f):l(f.w)}),delete a[u])}return e.forEach(o.nodes(),l),s}function i(o){e.forEach(o.edges(),function(s){var a=o.edge(s);if(a.reversed){o.removeEdge(s);var c=a.forwardName;delete a.reversed,delete a.forwardName,o.setEdge(s.w,s.v,a,c)}})}return R0}var P0,Aw;function vt(){if(Aw)return P0;Aw=1;var e=Ge(),t=Lt().Graph;P0={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:s,intersectRect:a,buildLayerMatrix:c,normalizeRanks:l,removeEmptyRanks:u,addBorderNode:f,maxRank:h,partition:p,time:x,notime:m};function r(g,y,b,_){var v;do v=e.uniqueId(_);while(g.hasNode(v));return b.dummy=y,g.setNode(v,b),v}function n(g){var y=new t().setGraph(g.graph());return e.forEach(g.nodes(),function(b){y.setNode(b,g.node(b))}),e.forEach(g.edges(),function(b){var _=y.edge(b.v,b.w)||{weight:0,minlen:1},v=g.edge(b);y.setEdge(b.v,b.w,{weight:_.weight+v.weight,minlen:Math.max(_.minlen,v.minlen)})}),y}function i(g){var y=new t({multigraph:g.isMultigraph()}).setGraph(g.graph());return e.forEach(g.nodes(),function(b){g.children(b).length||y.setNode(b,g.node(b))}),e.forEach(g.edges(),function(b){y.setEdge(b,g.edge(b))}),y}function o(g){var y=e.map(g.nodes(),function(b){var _={};return e.forEach(g.outEdges(b),function(v){_[v.w]=(_[v.w]||0)+g.edge(v).weight}),_});return e.zipObject(g.nodes(),y)}function s(g){var y=e.map(g.nodes(),function(b){var _={};return e.forEach(g.inEdges(b),function(v){_[v.v]=(_[v.v]||0)+g.edge(v).weight}),_});return e.zipObject(g.nodes(),y)}function a(g,y){var b=g.x,_=g.y,v=y.x-b,w=y.y-_,q=g.width/2,C=g.height/2;if(!v&&!w)throw new Error("Not possible to find intersection inside of the rectangle");var S,I;return Math.abs(w)*q>Math.abs(v)*C?(w<0&&(C=-C),S=C*v/w,I=C):(v<0&&(q=-q),S=q,I=q*w/v),{x:b+S,y:_+I}}function c(g){var y=e.map(e.range(h(g)+1),function(){return[]});return e.forEach(g.nodes(),function(b){var _=g.node(b),v=_.rank;e.isUndefined(v)||(y[v][_.order]=b)}),y}function l(g){var y=e.min(e.map(g.nodes(),function(b){return g.node(b).rank}));e.forEach(g.nodes(),function(b){var _=g.node(b);e.has(_,"rank")&&(_.rank-=y)})}function u(g){var y=e.min(e.map(g.nodes(),function(w){return g.node(w).rank})),b=[];e.forEach(g.nodes(),function(w){var q=g.node(w).rank-y;b[q]||(b[q]=[]),b[q].push(w)});var _=0,v=g.graph().nodeRankFactor;e.forEach(b,function(w,q){e.isUndefined(w)&&q%v!==0?--_:_&&e.forEach(w,function(C){g.node(C).rank+=_})})}function f(g,y,b,_){var v={width:0,height:0};return arguments.length>=4&&(v.rank=b,v.order=_),r(g,"border",v,y)}function h(g){return e.max(e.map(g.nodes(),function(y){var b=g.node(y).rank;if(!e.isUndefined(b))return b}))}function p(g,y){var b={lhs:[],rhs:[]};return e.forEach(g,function(_){y(_)?b.lhs.push(_):b.rhs.push(_)}),b}function x(g,y){var b=e.now();try{return y()}finally{console.log(g+" time: "+(e.now()-b)+"ms")}}function m(g,y){return y()}return P0}var O0,Lw;function kw(){if(Lw)return O0;Lw=1;var e=Ge(),t=vt();O0={run:r,undo:i};function r(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){n(o,s)})}function n(o,s){var a=s.v,c=o.node(a).rank,l=s.w,u=o.node(l).rank,f=s.name,h=o.edge(s),p=h.labelRank;if(u!==c+1){o.removeEdge(s);var x,m,g;for(g=0,++c;c<u;++g,++c)h.points=[],m={width:0,height:0,edgeLabel:h,edgeObj:s,rank:c},x=t.addDummyNode(o,"edge",m,"_d"),c===p&&(m.width=h.width,m.height=h.height,m.dummy="edge-label",m.labelpos=h.labelpos),o.setEdge(a,x,{weight:h.weight},f),g===0&&o.graph().dummyChains.push(x),a=x;o.setEdge(a,l,{weight:h.weight},f)}}function i(o){e.forEach(o.graph().dummyChains,function(s){var a=o.node(s),c=a.edgeLabel,l;for(o.setEdge(a.edgeObj,c);a.dummy;)l=o.successors(s)[0],o.removeNode(s),c.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(c.x=a.x,c.y=a.y,c.width=a.width,c.height=a.height),s=l,a=o.node(s)})}return O0}var $0,Rw;function di(){if(Rw)return $0;Rw=1;var e=Ge();$0={longestPath:t,slack:r};function t(n){var i={};function o(s){var a=n.node(s);if(e.has(i,s))return a.rank;i[s]=!0;var c=e.min(e.map(n.outEdges(s),function(l){return o(l.w)-n.edge(l).minlen}));return(c===Number.POSITIVE_INFINITY||c===void 0||c===null)&&(c=0),a.rank=c}e.forEach(n.sources(),o)}function r(n,i){return n.node(i.w).rank-n.node(i.v).rank-n.edge(i).minlen}return $0}var z0,Pw;function tl(){if(Pw)return z0;Pw=1;var e=Ge(),t=Lt().Graph,r=di().slack;z0=n;function n(a){var c=new t({directed:!1}),l=a.nodes()[0],u=a.nodeCount();c.setNode(l,{});for(var f,h;i(c,a)<u;)f=o(c,a),h=c.hasNode(f.v)?r(a,f):-r(a,f),s(c,a,h);return c}function i(a,c){function l(u){e.forEach(c.nodeEdges(u),function(f){var h=f.v,p=u===h?f.w:h;!a.hasNode(p)&&!r(c,f)&&(a.setNode(p,{}),a.setEdge(u,p,{}),l(p))})}return e.forEach(a.nodes(),l),a.nodeCount()}function o(a,c){return e.minBy(c.edges(),function(l){if(a.hasNode(l.v)!==a.hasNode(l.w))return r(c,l)})}function s(a,c,l){e.forEach(a.nodes(),function(u){c.node(u).rank+=l})}return z0}var H0,Ow;function $w(){if(Ow)return H0;Ow=1;var e=Ge(),t=tl(),r=di().slack,n=di().longestPath,i=Lt().alg.preorder,o=Lt().alg.postorder,s=vt().simplify;H0=a,a.initLowLimValues=f,a.initCutValues=c,a.calcCutValue=u,a.leaveEdge=p,a.enterEdge=x,a.exchangeEdges=m;function a(_){_=s(_),n(_);var v=t(_);f(v),c(v,_);for(var w,q;w=p(v);)q=x(v,_,w),m(v,_,w,q)}function c(_,v){var w=o(_,_.nodes());w=w.slice(0,w.length-1),e.forEach(w,function(q){l(_,v,q)})}function l(_,v,w){var q=_.node(w),C=q.parent;_.edge(w,C).cutvalue=u(_,v,w)}function u(_,v,w){var q=_.node(w),C=q.parent,S=!0,I=v.edge(w,C),M=0;return I||(S=!1,I=v.edge(C,w)),M=I.weight,e.forEach(v.nodeEdges(w),function(T){var P=T.v===w,A=P?T.w:T.v;if(A!==C){var j=P===S,B=v.edge(T).weight;if(M+=j?B:-B,y(_,w,A)){var H=_.edge(w,A).cutvalue;M+=j?-H:H}}}),M}function f(_,v){arguments.length<2&&(v=_.nodes()[0]),h(_,{},1,v)}function h(_,v,w,q,C){var S=w,I=_.node(q);return v[q]=!0,e.forEach(_.neighbors(q),function(M){e.has(v,M)||(w=h(_,v,w,M,q))}),I.low=S,I.lim=w++,C?I.parent=C:delete I.parent,w}function p(_){return e.find(_.edges(),function(v){return _.edge(v).cutvalue<0})}function x(_,v,w){var q=w.v,C=w.w;v.hasEdge(q,C)||(q=w.w,C=w.v);var S=_.node(q),I=_.node(C),M=S,T=!1;S.lim>I.lim&&(M=I,T=!0);var P=e.filter(v.edges(),function(A){return T===b(_,_.node(A.v),M)&&T!==b(_,_.node(A.w),M)});return e.minBy(P,function(A){return r(v,A)})}function m(_,v,w,q){var C=w.v,S=w.w;_.removeEdge(C,S),_.setEdge(q.v,q.w,{}),f(_),c(_,v),g(_,v)}function g(_,v){var w=e.find(_.nodes(),function(C){return!v.node(C).parent}),q=i(_,w);q=q.slice(1),e.forEach(q,function(C){var S=_.node(C).parent,I=v.edge(C,S),M=!1;I||(I=v.edge(S,C),M=!0),v.node(C).rank=v.node(S).rank+(M?I.minlen:-I.minlen)})}function y(_,v,w){return _.hasEdge(v,w)}function b(_,v,w){return w.low<=v.lim&&v.lim<=w.lim}return H0}var F0,zw;function Hw(){if(zw)return F0;zw=1;var e=di(),t=e.longestPath,r=tl(),n=$w();F0=i;function i(c){switch(c.graph().ranker){case"network-simplex":a(c);break;case"tight-tree":s(c);break;case"longest-path":o(c);break;default:a(c)}}var o=t;function s(c){t(c),r(c)}function a(c){n(c)}return F0}var j0,Fw;function jw(){if(Fw)return j0;Fw=1;var e=Ge();j0=t;function t(i){var o=n(i);e.forEach(i.graph().dummyChains,function(s){for(var a=i.node(s),c=a.edgeObj,l=r(i,o,c.v,c.w),u=l.path,f=l.lca,h=0,p=u[h],x=!0;s!==c.w;){if(a=i.node(s),x){for(;(p=u[h])!==f&&i.node(p).maxRank<a.rank;)h++;p===f&&(x=!1)}if(!x){for(;h<u.length-1&&i.node(p=u[h+1]).minRank<=a.rank;)h++;p=u[h]}i.setParent(s,p),s=i.successors(s)[0]}})}function r(i,o,s,a){var c=[],l=[],u=Math.min(o[s].low,o[a].low),f=Math.max(o[s].lim,o[a].lim),h,p;h=s;do h=i.parent(h),c.push(h);while(h&&(o[h].low>u||f>o[h].lim));for(p=h,h=a;(h=i.parent(h))!==p;)l.push(h);return{path:c.concat(l.reverse()),lca:p}}function n(i){var o={},s=0;function a(c){var l=s;e.forEach(i.children(c),a),o[c]={low:l,lim:s++}}return e.forEach(i.children(),a),o}return j0}var D0,Dw;function Bw(){if(Dw)return D0;Dw=1;var e=Ge(),t=vt();D0={run:r,cleanup:s};function r(a){var c=t.addDummyNode(a,"root",{},"_root"),l=i(a),u=e.max(e.values(l))-1,f=2*u+1;a.graph().nestingRoot=c,e.forEach(a.edges(),function(p){a.edge(p).minlen*=f});var h=o(a)+1;e.forEach(a.children(),function(p){n(a,c,f,h,u,l,p)}),a.graph().nodeRankFactor=f}function n(a,c,l,u,f,h,p){var x=a.children(p);if(!x.length){p!==c&&a.setEdge(c,p,{weight:0,minlen:l});return}var m=t.addBorderNode(a,"_bt"),g=t.addBorderNode(a,"_bb"),y=a.node(p);a.setParent(m,p),y.borderTop=m,a.setParent(g,p),y.borderBottom=g,e.forEach(x,function(b){n(a,c,l,u,f,h,b);var _=a.node(b),v=_.borderTop?_.borderTop:b,w=_.borderBottom?_.borderBottom:b,q=_.borderTop?u:2*u,C=v!==w?1:f-h[p]+1;a.setEdge(m,v,{weight:q,minlen:C,nestingEdge:!0}),a.setEdge(w,g,{weight:q,minlen:C,nestingEdge:!0})}),a.parent(p)||a.setEdge(c,m,{weight:0,minlen:f+h[p]})}function i(a){var c={};function l(u,f){var h=a.children(u);h&&h.length&&e.forEach(h,function(p){l(p,f+1)}),c[u]=f}return e.forEach(a.children(),function(u){l(u,1)}),c}function o(a){return e.reduce(a.edges(),function(c,l){return c+a.edge(l).weight},0)}function s(a){var c=a.graph();a.removeNode(c.nestingRoot),delete c.nestingRoot,e.forEach(a.edges(),function(l){var u=a.edge(l);u.nestingEdge&&a.removeEdge(l)})}return D0}var B0,Nw;function Gw(){if(Nw)return B0;Nw=1;var e=Ge(),t=vt();B0=r;function r(i){function o(s){var a=i.children(s),c=i.node(s);if(a.length&&e.forEach(a,o),e.has(c,"minRank")){c.borderLeft=[],c.borderRight=[];for(var l=c.minRank,u=c.maxRank+1;l<u;++l)n(i,"borderLeft","_bl",s,c,l),n(i,"borderRight","_br",s,c,l)}}e.forEach(i.children(),o)}function n(i,o,s,a,c,l){var u={width:0,height:0,rank:l,borderType:o},f=c[o][l-1],h=t.addDummyNode(i,"border",u,s);c[o][l]=h,i.setParent(h,a),f&&i.setEdge(f,h,{weight:1})}return B0}var N0,Ww;function Xw(){if(Ww)return N0;Ww=1;var e=Ge();N0={adjust:t,undo:r};function t(l){var u=l.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&n(l)}function r(l){var u=l.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&o(l),(u==="lr"||u==="rl")&&(a(l),n(l))}function n(l){e.forEach(l.nodes(),function(u){i(l.node(u))}),e.forEach(l.edges(),function(u){i(l.edge(u))})}function i(l){var u=l.width;l.width=l.height,l.height=u}function o(l){e.forEach(l.nodes(),function(u){s(l.node(u))}),e.forEach(l.edges(),function(u){var f=l.edge(u);e.forEach(f.points,s),e.has(f,"y")&&s(f)})}function s(l){l.y=-l.y}function a(l){e.forEach(l.nodes(),function(u){c(l.node(u))}),e.forEach(l.edges(),function(u){var f=l.edge(u);e.forEach(f.points,c),e.has(f,"x")&&c(f)})}function c(l){var u=l.x;l.x=l.y,l.y=u}return N0}var G0,Yw;function Vw(){if(Yw)return G0;Yw=1;var e=Ge();G0=t;function t(r){var n={},i=e.filter(r.nodes(),function(l){return!r.children(l).length}),o=e.max(e.map(i,function(l){return r.node(l).rank})),s=e.map(e.range(o+1),function(){return[]});function a(l){if(!e.has(n,l)){n[l]=!0;var u=r.node(l);s[u.rank].push(l),e.forEach(r.successors(l),a)}}var c=e.sortBy(i,function(l){return r.node(l).rank});return e.forEach(c,a),s}return G0}var W0,Uw;function Kw(){if(Uw)return W0;Uw=1;var e=Ge();W0=t;function t(n,i){for(var o=0,s=1;s<i.length;++s)o+=r(n,i[s-1],i[s]);return o}function r(n,i,o){for(var s=e.zipObject(o,e.map(o,function(h,p){return p})),a=e.flatten(e.map(i,function(h){return e.sortBy(e.map(n.outEdges(h),function(p){return{pos:s[p.w],weight:n.edge(p).weight}}),"pos")}),!0),c=1;c<o.length;)c<<=1;var l=2*c-1;c-=1;var u=e.map(new Array(l),function(){return 0}),f=0;return e.forEach(a.forEach(function(h){var p=h.pos+c;u[p]+=h.weight;for(var x=0;p>0;)p%2&&(x+=u[p+1]),p=p-1>>1,u[p]+=h.weight;f+=h.weight*x})),f}return W0}var X0,Zw;function Qw(){if(Zw)return X0;Zw=1;var e=Ge();X0=t;function t(r,n){return e.map(n,function(i){var o=r.inEdges(i);if(o.length){var s=e.reduce(o,function(a,c){var l=r.edge(c),u=r.node(c.v);return{sum:a.sum+l.weight*u.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return X0}var Y0,Jw;function e7(){if(Jw)return Y0;Jw=1;var e=Ge();Y0=t;function t(i,o){var s={};e.forEach(i,function(c,l){var u=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:l};e.isUndefined(c.barycenter)||(u.barycenter=c.barycenter,u.weight=c.weight)}),e.forEach(o.edges(),function(c){var l=s[c.v],u=s[c.w];!e.isUndefined(l)&&!e.isUndefined(u)&&(u.indegree++,l.out.push(s[c.w]))});var a=e.filter(s,function(c){return!c.indegree});return r(a)}function r(i){var o=[];function s(l){return function(u){u.merged||(e.isUndefined(u.barycenter)||e.isUndefined(l.barycenter)||u.barycenter>=l.barycenter)&&n(l,u)}}function a(l){return function(u){u.in.push(l),--u.indegree===0&&i.push(u)}}for(;i.length;){var c=i.pop();o.push(c),e.forEach(c.in.reverse(),s(c)),e.forEach(c.out,a(c))}return e.map(e.filter(o,function(l){return!l.merged}),function(l){return e.pick(l,["vs","i","barycenter","weight"])})}function n(i,o){var s=0,a=0;i.weight&&(s+=i.barycenter*i.weight,a+=i.weight),o.weight&&(s+=o.barycenter*o.weight,a+=o.weight),i.vs=o.vs.concat(i.vs),i.barycenter=s/a,i.weight=a,i.i=Math.min(o.i,i.i),o.merged=!0}return Y0}var V0,t7;function r7(){if(t7)return V0;t7=1;var e=Ge(),t=vt();V0=r;function r(o,s){var a=t.partition(o,function(m){return e.has(m,"barycenter")}),c=a.lhs,l=e.sortBy(a.rhs,function(m){return-m.i}),u=[],f=0,h=0,p=0;c.sort(i(!!s)),p=n(u,l,p),e.forEach(c,function(m){p+=m.vs.length,u.push(m.vs),f+=m.barycenter*m.weight,h+=m.weight,p=n(u,l,p)});var x={vs:e.flatten(u,!0)};return h&&(x.barycenter=f/h,x.weight=h),x}function n(o,s,a){for(var c;s.length&&(c=e.last(s)).i<=a;)s.pop(),o.push(c.vs),a++;return a}function i(o){return function(s,a){return s.barycenter<a.barycenter?-1:s.barycenter>a.barycenter?1:o?a.i-s.i:s.i-a.i}}return V0}var U0,n7;function i7(){if(n7)return U0;n7=1;var e=Ge(),t=Qw(),r=e7(),n=r7();U0=i;function i(a,c,l,u){var f=a.children(c),h=a.node(c),p=h?h.borderLeft:void 0,x=h?h.borderRight:void 0,m={};p&&(f=e.filter(f,function(w){return w!==p&&w!==x}));var g=t(a,f);e.forEach(g,function(w){if(a.children(w.v).length){var q=i(a,w.v,l,u);m[w.v]=q,e.has(q,"barycenter")&&s(w,q)}});var y=r(g,l);o(y,m);var b=n(y,u);if(p&&(b.vs=e.flatten([p,b.vs,x],!0),a.predecessors(p).length)){var _=a.node(a.predecessors(p)[0]),v=a.node(a.predecessors(x)[0]);e.has(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+v.order)/(b.weight+2),b.weight+=2}return b}function o(a,c){e.forEach(a,function(l){l.vs=e.flatten(l.vs.map(function(u){return c[u]?c[u].vs:u}),!0)})}function s(a,c){e.isUndefined(a.barycenter)?(a.barycenter=c.barycenter,a.weight=c.weight):(a.barycenter=(a.barycenter*a.weight+c.barycenter*c.weight)/(a.weight+c.weight),a.weight+=c.weight)}return U0}var K0,o7;function s7(){if(o7)return K0;o7=1;var e=Ge(),t=Lt().Graph;K0=r;function r(i,o,s){var a=n(i),c=new t({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(l){return i.node(l)});return e.forEach(i.nodes(),function(l){var u=i.node(l),f=i.parent(l);(u.rank===o||u.minRank<=o&&o<=u.maxRank)&&(c.setNode(l),c.setParent(l,f||a),e.forEach(i[s](l),function(h){var p=h.v===l?h.w:h.v,x=c.edge(p,l),m=e.isUndefined(x)?0:x.weight;c.setEdge(p,l,{weight:i.edge(h).weight+m})}),e.has(u,"minRank")&&c.setNode(l,{borderLeft:u.borderLeft[o],borderRight:u.borderRight[o]}))}),c}function n(i){for(var o;i.hasNode(o=e.uniqueId("_root")););return o}return K0}var Z0,a7;function c7(){if(a7)return Z0;a7=1;var e=Ge();Z0=t;function t(r,n,i){var o={},s;e.forEach(i,function(a){for(var c=r.parent(a),l,u;c;){if(l=r.parent(c),l?(u=o[l],o[l]=c):(u=s,s=c),u&&u!==c){n.setEdge(u,c);return}c=l}})}return Z0}var Q0,l7;function u7(){if(l7)return Q0;l7=1;var e=Ge(),t=Vw(),r=Kw(),n=i7(),i=s7(),o=c7(),s=Lt().Graph,a=vt();Q0=c;function c(h){var p=a.maxRank(h),x=l(h,e.range(1,p+1),"inEdges"),m=l(h,e.range(p-1,-1,-1),"outEdges"),g=t(h);f(h,g);for(var y=Number.POSITIVE_INFINITY,b,_=0,v=0;v<4;++_,++v){u(_%2?x:m,_%4>=2),g=a.buildLayerMatrix(h);var w=r(h,g);w<y&&(v=0,b=e.cloneDeep(g),y=w)}f(h,b)}function l(h,p,x){return e.map(p,function(m){return i(h,m,x)})}function u(h,p){var x=new s;e.forEach(h,function(m){var g=m.graph().root,y=n(m,g,x,p);e.forEach(y.vs,function(b,_){m.node(b).order=_}),o(m,x,y.vs)})}function f(h,p){e.forEach(p,function(x){e.forEach(x,function(m,g){h.node(m).order=g})})}return Q0}var J0,d7;function f7(){if(d7)return J0;d7=1;var e=Ge(),t=Lt().Graph,r=vt();J0={positionX:x,findType1Conflicts:n,findType2Conflicts:i,addConflict:s,hasConflict:a,verticalAlignment:c,horizontalCompaction:l,alignCoordinates:h,findSmallestWidthAlignment:f,balance:p};function n(y,b){var _={};function v(w,q){var C=0,S=0,I=w.length,M=e.last(q);return e.forEach(q,function(T,P){var A=o(y,T),j=A?y.node(A).order:I;(A||T===M)&&(e.forEach(q.slice(S,P+1),function(B){e.forEach(y.predecessors(B),function(H){var X=y.node(H),D=X.order;(D<C||j<D)&&!(X.dummy&&y.node(B).dummy)&&s(_,H,B)})}),S=P+1,C=j)}),q}return e.reduce(b,v),_}function i(y,b){var _={};function v(q,C,S,I,M){var T;e.forEach(e.range(C,S),function(P){T=q[P],y.node(T).dummy&&e.forEach(y.predecessors(T),function(A){var j=y.node(A);j.dummy&&(j.order<I||j.order>M)&&s(_,A,T)})})}function w(q,C){var S=-1,I,M=0;return e.forEach(C,function(T,P){if(y.node(T).dummy==="border"){var A=y.predecessors(T);A.length&&(I=y.node(A[0]).order,v(C,M,P,S,I),M=P,S=I)}v(C,M,C.length,I,q.length)}),C}return e.reduce(b,w),_}function o(y,b){if(y.node(b).dummy)return e.find(y.predecessors(b),function(_){return y.node(_).dummy})}function s(y,b,_){if(b>_){var v=b;b=_,_=v}var w=y[b];w||(y[b]=w={}),w[_]=!0}function a(y,b,_){if(b>_){var v=b;b=_,_=v}return e.has(y[b],_)}function c(y,b,_,v){var w={},q={},C={};return e.forEach(b,function(S){e.forEach(S,function(I,M){w[I]=I,q[I]=I,C[I]=M})}),e.forEach(b,function(S){var I=-1;e.forEach(S,function(M){var T=v(M);if(T.length){T=e.sortBy(T,function(H){return C[H]});for(var P=(T.length-1)/2,A=Math.floor(P),j=Math.ceil(P);A<=j;++A){var B=T[A];q[M]===M&&I<C[B]&&!a(_,M,B)&&(q[B]=M,q[M]=w[M]=w[B],I=C[B])}}})}),{root:w,align:q}}function l(y,b,_,v,w){var q={},C=u(y,b,_,w),S=w?"borderLeft":"borderRight";function I(P,A){for(var j=C.nodes(),B=j.pop(),H={};B;)H[B]?P(B):(H[B]=!0,j.push(B),j=j.concat(A(B))),B=j.pop()}function M(P){q[P]=C.inEdges(P).reduce(function(A,j){return Math.max(A,q[j.v]+C.edge(j))},0)}function T(P){var A=C.outEdges(P).reduce(function(B,H){return Math.min(B,q[H.w]-C.edge(H))},Number.POSITIVE_INFINITY),j=y.node(P);A!==Number.POSITIVE_INFINITY&&j.borderType!==S&&(q[P]=Math.max(q[P],A))}return I(M,C.predecessors.bind(C)),I(T,C.successors.bind(C)),e.forEach(v,function(P){q[P]=q[_[P]]}),q}function u(y,b,_,v){var w=new t,q=y.graph(),C=m(q.nodesep,q.edgesep,v);return e.forEach(b,function(S){var I;e.forEach(S,function(M){var T=_[M];if(w.setNode(T),I){var P=_[I],A=w.edge(P,T);w.setEdge(P,T,Math.max(C(y,M,I),A||0))}I=M})}),w}function f(y,b){return e.minBy(e.values(b),function(_){var v=Number.NEGATIVE_INFINITY,w=Number.POSITIVE_INFINITY;return e.forIn(_,function(q,C){var S=g(y,C)/2;v=Math.max(q+S,v),w=Math.min(q-S,w)}),v-w})}function h(y,b){var _=e.values(b),v=e.min(_),w=e.max(_);e.forEach(["u","d"],function(q){e.forEach(["l","r"],function(C){var S=q+C,I=y[S],M;if(I!==b){var T=e.values(I);M=C==="l"?v-e.min(T):w-e.max(T),M&&(y[S]=e.mapValues(I,function(P){return P+M}))}})})}function p(y,b){return e.mapValues(y.ul,function(_,v){if(b)return y[b.toLowerCase()][v];var w=e.sortBy(e.map(y,v));return(w[1]+w[2])/2})}function x(y){var b=r.buildLayerMatrix(y),_=e.merge(n(y,b),i(y,b)),v={},w;e.forEach(["u","d"],function(C){w=C==="u"?b:e.values(b).reverse(),e.forEach(["l","r"],function(S){S==="r"&&(w=e.map(w,function(P){return e.values(P).reverse()}));var I=(C==="u"?y.predecessors:y.successors).bind(y),M=c(y,w,_,I),T=l(y,w,M.root,M.align,S==="r");S==="r"&&(T=e.mapValues(T,function(P){return-P})),v[C+S]=T})});var q=f(y,v);return h(v,q),p(v,y.graph().align)}function m(y,b,_){return function(v,w,q){var C=v.node(w),S=v.node(q),I=0,M;if(I+=C.width/2,e.has(C,"labelpos"))switch(C.labelpos.toLowerCase()){case"l":M=-C.width/2;break;case"r":M=C.width/2;break}if(M&&(I+=_?M:-M),M=0,I+=(C.dummy?b:y)/2,I+=(S.dummy?b:y)/2,I+=S.width/2,e.has(S,"labelpos"))switch(S.labelpos.toLowerCase()){case"l":M=S.width/2;break;case"r":M=-S.width/2;break}return M&&(I+=_?M:-M),M=0,I}}function g(y,b){return y.node(b).width}return J0}var eg,h7;function p7(){if(h7)return eg;h7=1;var e=Ge(),t=vt(),r=f7().positionX;eg=n;function n(o){o=t.asNonCompoundGraph(o),i(o),e.forEach(r(o),function(s,a){o.node(a).x=s})}function i(o){var s=t.buildLayerMatrix(o),a=o.graph().ranksep,c=0;e.forEach(s,function(l){var u=e.max(e.map(l,function(f){return o.node(f).height}));e.forEach(l,function(f){o.node(f).y=c+u/2}),c+=u+a})}return eg}var tg,m7;function g7(){if(m7)return tg;m7=1;var e=Ge(),t=Mw(),r=kw(),n=Hw(),i=vt().normalizeRanks,o=jw(),s=vt().removeEmptyRanks,a=Bw(),c=Gw(),l=Xw(),u=u7(),f=p7(),h=vt(),p=Lt().Graph;tg=x;function x(L,$){var z=$&&$.debugTiming?h.time:h.notime;z("layout",function(){var F=z(" buildLayoutGraph",function(){return I(L)});z(" runLayout",function(){m(F,z)}),z(" updateInputGraph",function(){g(L,F)})})}function m(L,$){$(" makeSpaceForEdgeLabels",function(){M(L)}),$(" removeSelfEdges",function(){k(L)}),$(" acyclic",function(){t.run(L)}),$(" nestingGraph.run",function(){a.run(L)}),$(" rank",function(){n(h.asNonCompoundGraph(L))}),$(" injectEdgeLabelProxies",function(){T(L)}),$(" removeEmptyRanks",function(){s(L)}),$(" nestingGraph.cleanup",function(){a.cleanup(L)}),$(" normalizeRanks",function(){i(L)}),$(" assignRankMinMax",function(){P(L)}),$(" removeEdgeLabelProxies",function(){A(L)}),$(" normalize.run",function(){r.run(L)}),$(" parentDummyChains",function(){o(L)}),$(" addBorderSegments",function(){c(L)}),$(" order",function(){u(L)}),$(" insertSelfEdges",function(){R(L)}),$(" adjustCoordinateSystem",function(){l.adjust(L)}),$(" position",function(){f(L)}),$(" positionSelfEdges",function(){G(L)}),$(" removeBorderNodes",function(){D(L)}),$(" normalize.undo",function(){r.undo(L)}),$(" fixupEdgeLabelCoords",function(){H(L)}),$(" undoCoordinateSystem",function(){l.undo(L)}),$(" translateGraph",function(){j(L)}),$(" assignNodeIntersects",function(){B(L)}),$(" reversePoints",function(){X(L)}),$(" acyclic.undo",function(){t.undo(L)})}function g(L,$){e.forEach(L.nodes(),function(z){var F=L.node(z),K=$.node(z);F&&(F.x=K.x,F.y=K.y,$.children(z).length&&(F.width=K.width,F.height=K.height))}),e.forEach(L.edges(),function(z){var F=L.edge(z),K=$.edge(z);F.points=K.points,e.has(K,"x")&&(F.x=K.x,F.y=K.y)}),L.graph().width=$.graph().width,L.graph().height=$.graph().height}var y=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],v=["width","height"],w={width:0,height:0},q=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function I(L){var $=new p({multigraph:!0,compound:!0}),z=N(L.graph());return $.setGraph(e.merge({},b,W(z,y),e.pick(z,_))),e.forEach(L.nodes(),function(F){var K=N(L.node(F));$.setNode(F,e.defaults(W(K,v),w)),$.setParent(F,L.parent(F))}),e.forEach(L.edges(),function(F){var K=N(L.edge(F));$.setEdge(F,e.merge({},C,W(K,q),e.pick(K,S)))}),$}function M(L){var $=L.graph();$.ranksep/=2,e.forEach(L.edges(),function(z){var F=L.edge(z);F.minlen*=2,F.labelpos.toLowerCase()!=="c"&&($.rankdir==="TB"||$.rankdir==="BT"?F.width+=F.labeloffset:F.height+=F.labeloffset)})}function T(L){e.forEach(L.edges(),function($){var z=L.edge($);if(z.width&&z.height){var F=L.node($.v),K=L.node($.w),Q={rank:(K.rank-F.rank)/2+F.rank,e:$};h.addDummyNode(L,"edge-proxy",Q,"_ep")}})}function P(L){var $=0;e.forEach(L.nodes(),function(z){var F=L.node(z);F.borderTop&&(F.minRank=L.node(F.borderTop).rank,F.maxRank=L.node(F.borderBottom).rank,$=e.max($,F.maxRank))}),L.graph().maxRank=$}function A(L){e.forEach(L.nodes(),function($){var z=L.node($);z.dummy==="edge-proxy"&&(L.edge(z.e).labelRank=z.rank,L.removeNode($))})}function j(L){var $=Number.POSITIVE_INFINITY,z=0,F=Number.POSITIVE_INFINITY,K=0,Q=L.graph(),ie=Q.marginx||0,fe=Q.marginy||0;function U(J){var ne=J.x,te=J.y,ve=J.width,ee=J.height;$=Math.min($,ne-ve/2),z=Math.max(z,ne+ve/2),F=Math.min(F,te-ee/2),K=Math.max(K,te+ee/2)}e.forEach(L.nodes(),function(J){U(L.node(J))}),e.forEach(L.edges(),function(J){var ne=L.edge(J);e.has(ne,"x")&&U(ne)}),$-=ie,F-=fe,e.forEach(L.nodes(),function(J){var ne=L.node(J);ne.x-=$,ne.y-=F}),e.forEach(L.edges(),function(J){var ne=L.edge(J);e.forEach(ne.points,function(te){te.x-=$,te.y-=F}),e.has(ne,"x")&&(ne.x-=$),e.has(ne,"y")&&(ne.y-=F)}),Q.width=z-$+ie,Q.height=K-F+fe}function B(L){e.forEach(L.edges(),function($){var z=L.edge($),F=L.node($.v),K=L.node($.w),Q,ie;z.points?(Q=z.points[0],ie=z.points[z.points.length-1]):(z.points=[],Q=K,ie=F),z.points.unshift(h.intersectRect(F,Q)),z.points.push(h.intersectRect(K,ie))})}function H(L){e.forEach(L.edges(),function($){var z=L.edge($);if(e.has(z,"x"))switch((z.labelpos==="l"||z.labelpos==="r")&&(z.width-=z.labeloffset),z.labelpos){case"l":z.x-=z.width/2+z.labeloffset;break;case"r":z.x+=z.width/2+z.labeloffset;break}})}function X(L){e.forEach(L.edges(),function($){var z=L.edge($);z.reversed&&z.points.reverse()})}function D(L){e.forEach(L.nodes(),function($){if(L.children($).length){var z=L.node($),F=L.node(z.borderTop),K=L.node(z.borderBottom),Q=L.node(e.last(z.borderLeft)),ie=L.node(e.last(z.borderRight));z.width=Math.abs(ie.x-Q.x),z.height=Math.abs(K.y-F.y),z.x=Q.x+z.width/2,z.y=F.y+z.height/2}}),e.forEach(L.nodes(),function($){L.node($).dummy==="border"&&L.removeNode($)})}function k(L){e.forEach(L.edges(),function($){if($.v===$.w){var z=L.node($.v);z.selfEdges||(z.selfEdges=[]),z.selfEdges.push({e:$,label:L.edge($)}),L.removeEdge($)}})}function R(L){var $=h.buildLayerMatrix(L);e.forEach($,function(z){var F=0;e.forEach(z,function(K,Q){var ie=L.node(K);ie.order=Q+F,e.forEach(ie.selfEdges,function(fe){h.addDummyNode(L,"selfedge",{width:fe.label.width,height:fe.label.height,rank:ie.rank,order:Q+ ++F,e:fe.e,label:fe.label},"_se")}),delete ie.selfEdges})})}function G(L){e.forEach(L.nodes(),function($){var z=L.node($);if(z.dummy==="selfedge"){var F=L.node(z.e.v),K=F.x+F.width/2,Q=F.y,ie=z.x-K,fe=F.height/2;L.setEdge(z.e,z.label),L.removeNode($),z.label.points=[{x:K+2*ie/3,y:Q-fe},{x:K+5*ie/6,y:Q-fe},{x:K+ie,y:Q},{x:K+5*ie/6,y:Q+fe},{x:K+2*ie/3,y:Q+fe}],z.label.x=z.x,z.label.y=z.y}})}function W(L,$){return e.mapValues(e.pick(L,$),Number)}function N(L){var $={};return e.forEach(L,function(z,F){$[F.toLowerCase()]=z}),$}return tg}var rg,x7;function y7(){if(x7)return rg;x7=1;var e=Ge(),t=vt(),r=Lt().Graph;rg={debugOrdering:n};function n(i){var o=t.buildLayerMatrix(i),s=new r({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(a){s.setNode(a,{label:a}),s.setParent(a,"layer"+i.node(a).rank)}),e.forEach(i.edges(),function(a){s.setEdge(a.v,a.w,{},a.name)}),e.forEach(o,function(a,c){var l="layer"+c;s.setNode(l,{rank:"same"}),e.reduce(a,function(u,f){return s.setEdge(u,f,{style:"invis"}),f})}),s}return rg}var ng,b7;function _7(){return b7||(b7=1,ng="0.8.5"),ng}var ig,v7;function w7(){return v7||(v7=1,ig={graphlib:Lt(),layout:g7(),debug:y7(),util:{time:vt().time,notime:vt().notime},version:_7()}),ig}var og=w7(),q7=Dy(og);var C7=function(e){return rc(e,"Boolean")};function S7(e,t){if(e){var r;if(zy(e))for(var n=0,i=e.length;n<i&&(r=t(e[n],n),r!==!1);n++);else if(Hy(e)){for(var o in e)if(e.hasOwnProperty(o)&&(r=t(e[o],o),r===!1))break}}}var MT=Object.prototype.hasOwnProperty,E7=(function(e,t){if(e===null||!jy(e))return{};var r={};return S7(t,function(n){MT.call(e,n)&&(r[n]=e[n])}),r});var ps=class extends tc{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return kn(this,void 0,void 0,function*(){let t=new og.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(E7(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));let r=zd(this.options.nodeSize,0);this.model.forEachNode(p=>{let x=p._original,[m,g]=Ga(r(x)),y={width:m,height:g};if(t.setNode(String(p.id),y),this.isCompound()){if(tr(p.parentId))return;t.setParent(String(p.id),String(p.parentId))}});let{edgeLabelSize:n,edgeLabelOffset:i,edgeLabelPos:o,edgeMinLen:s,edgeWeight:a}=this.options,c=zd(n,0,"edge"),l=Xa(i,10,"edge"),u=typeof o=="string"?()=>o:Wa(o,["edge"]),f=Xa(s,1,"edge"),h=Xa(a,1,"edge");this.model.forEachEdge(p=>{let x=p._original,[m,g]=Ga(c(x)),y={width:m,height:g,labelpos:u(x),labeloffset:l(x),minlen:f(x),weight:h(x)};t.setEdge(String(p.source),String(p.target),y,String(p.id))}),q7.layout(t),this.model.forEachNode(p=>{let x=t.node(String(p.id));x&&(p.x=x.x,p.y=x.y,p.size=[x.width,x.height])}),this.model.forEachEdge(p=>{let x=t.edge(String(p.source),String(p.target),String(p.id));if(!x)return;let{width:m,height:g,weight:y,minlen:b,labelpos:_,labeloffset:v,points:w}=x;p.labelSize=[m,g],p.weight=y,p.minLen=b,p.labelPos=_,p.labelOffset=v,p.points=w.map(Ty)})})}isCompound(){return this.isCompoundGraph!==null?this.isCompoundGraph:C7(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!tr(t.parentId)),this.isCompoundGraph)}};var AT=50,LT=70,kT=10,RT=2,PT=30,OT=(e,t)=>{let r=new Map;e.forEach(o=>r.set(o,[]));for(let o of t){if(o.source===o.target)return!0;r.get(o.source)?.push({target:o.target,edgeId:o.id}),r.get(o.target)?.push({target:o.source,edgeId:o.id})}let n=new Set,i=(o,s)=>{n.add(o);let a=r.get(o)||[];for(let{target:c,edgeId:l}of a)if(l!==s&&(n.has(c)||i(c,l)))return!0;return!1};for(let o of e)if(!n.has(o)&&i(o,null))return!0;return!1},$T=e=>{let{Title:t,Item:r,data:n,rankdir:i="TB",nodesep:o=AT,ranksep:s=LT,edgesep:a=kT,edgeWidth:c=RT,showConnections:l=!0,edgeColorMode:u="gradient",edgeStyle:f="solid",edgeDashPattern:h="5,5",edgeCornerRadius:p=12,edgeRouting:x="orth",showArrow:m=!0,arrowType:g="triangle",padding:y=PT,edgeAnimation:b="none",edgeAnimationSpeed:_=1,options:v}=e,{title:w,desc:q,items:C=[]}=n,S=t?d(t,{title:w,desc:q}):null;if(!r||C.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[S,d(O,{children:d(V,{indexes:[0],x:0,y:0})})]});let I=new Map,M=new Map,T=new Map,P=new Map,A=new Set,j=new Map,B=0,H=C.map((U,J)=>{let ne=U,te=String(ne.id??J),ve=[J],ee,oe=String(ne.group??"");if(oe){let he=j.get(oe);he==null&&(he=B,j.set(oe,he),B+=1),ee=Ee(v,[he])}else ee=Ee(v,ve);let se=ee?it({colorPrimary:ee},v):void 0;ee&&T.set(te,ee);let ge=Y(d(r,{indexes:ve,data:n,datum:ne,positionH:"center",positionV:"middle",themeColors:se}));return M.set(te,ge),I.set(te,{id:te,indexes:ve,datum:ne,themeColors:se}),P.set(J,te),A.add(te),{id:te,parentId:ne.parentId}}),X=n.relations??[],D=U=>{if(U==null)return null;let J=String(U);if(A.has(J))return J;let ne=Number(U);if(!Number.isNaN(ne)){let te=P.get(ne);if(te)return te}return null},k=X.map((U,J)=>{let ne=D(U.from),te=D(U.to);return!ne||!te?null:{id:U.id?String(U.id):`edge-${J}`,source:ne,target:te,relation:U}}).filter(Boolean),G=OT(Array.from(A),k)?"dagre":x,W=new ps({rankdir:i,nodesep:o,ranksep:s,edgesep:a,controlPoints:!0,nodeSize:U=>{let J=String(U.id??""),ne=M.get(J);return ne?[ne.width,ne.height]:[0,0]}});W.execute({nodes:H,edges:k});let N=[];if(W.forEachNode(U=>{let J=String(U.id),ne=I.get(J);if(!ne)return;let te=M.get(J),ve=te?.width??0,ee=te?.height??0,oe=(U.x??0)-ve/2,se=(U.y??0)-ee/2;N.push({...ne,x:oe,y:se,width:ve,height:ee,centerX:oe+ve/2,centerY:se+ee/2})}),N.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[S,d(O,{children:d(V,{indexes:[0],x:0,y:0})})]});let L=Math.min(...N.map(U=>U.x)),$=Math.min(...N.map(U=>U.y)),z=y-L,F=y-$,K=new Map,Q=[];N.forEach(U=>{let J=U.x+z,ne=U.y+F,te=i==="LR"?"normal":i==="RL"?"flipped":"center",ve=i==="TB"?"normal":i==="BT"?"flipped":"middle";Q.push(d(r,{indexes:U.indexes,datum:U.datum,data:n,x:J,y:ne,positionH:te,positionV:ve,themeColors:U.themeColors})),K.set(U.id,{...U,x:J,y:ne,centerX:J+U.width/2,centerY:ne+U.height/2})});let ie=[],fe=[];if(l){let U=Qe(v),J=it(v.themeConfig,v),ne=J?.colorBg??"#ffffff",te=J?.colorText??U,ve=Math.max(10,c*4),ee=i==="TB"||i==="BT",oe=b==="ant-line",se=oe?h:"",he=oe?se:!oe&&f==="dashed"?h:"",_e=oe?se.split(",").reduce((xe,$e)=>xe+parseFloat($e.trim()||"0"),0):0,pe=oe&&_e>0?`${_e/(_*10)}s`:"1s",me=p,Ie=(xe,$e,Ae)=>xe.map(([de,We],ze)=>`${ze===0?"M":"L"} ${de+$e} ${We+Ae}`).join(" "),Re=(xe,$e,Ae,de)=>{if(xe.length<2)return"";let We=(et,st,Be)=>Math.min(Be,Math.max(st,et)),ze=([et,st])=>({x:et+Ae,y:st+de}),re=[],Le=ze(xe[0]);if(re.push(`M ${Le.x} ${Le.y}`),xe.length===2){let et=ze(xe[1]);return re.push(`L ${et.x} ${et.y}`),re.join(" ")}for(let et=1;et<xe.length-1;et+=1){let st=xe[et-1],Be=xe[et],tt=xe[et+1],pt=Be[0]-st[0],yt=Be[1]-st[1],ut=tt[0]-Be[0],bt=tt[1]-Be[1],Kt=Math.hypot(pt,yt),Lr=Math.hypot(ut,bt);if(Kt===0||Lr===0){let jr=ze(Be);re.push(`L ${jr.x} ${jr.y}`);continue}let pr=We($e,0,Math.min(Kt,Lr)/2);if(pr===0){let jr=ze(Be);re.push(`L ${jr.x} ${jr.y}`);continue}let at=pt/Kt,Rt=yt/Kt,ct=ut/Lr,rt=bt/Lr,nr=ze([Be[0]-at*pr,Be[1]-Rt*pr]),ir=ze([Be[0]+ct*pr,Be[1]+rt*pr]);re.push(`L ${nr.x} ${nr.y}`);let kr=ze(Be);re.push(`Q ${kr.x} ${kr.y} ${ir.x} ${ir.y}`)}let Ye=ze(xe[xe.length-1]);return re.push(`L ${Ye.x} ${Ye.y}`),re.join(" ")},Ze=(xe,$e,Ae,de,We)=>{let ze=Math.cos(Ae),re=Math.sin(Ae),Le=-re,Ye=ze,et=ve,st=ve*.55;if(de==="arrow"){let tt=xe-ze*et+Le*st,pt=$e-re*et+Ye*st,yt=xe-ze*et-Le*st,ut=$e-re*et-Ye*st;return[d(ae,{d:`M ${tt} ${pt} L ${xe} ${$e} L ${yt} ${ut}`,stroke:We,strokeWidth:Math.max(1.5,c),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if(de==="diamond"){let tt=et*1.25,pt=st*.75,yt=xe-ze*tt*.5,ut=$e-re*tt*.5,bt=[{x:xe,y:$e},{x:yt+Le*pt,y:ut+Ye*pt},{x:xe-ze*tt,y:$e-re*tt},{x:yt-Le*pt,y:ut-Ye*pt}];return[d(gt,{points:bt,fill:We,stroke:We,strokeWidth:Math.max(1,c*.8)})]}let Be=[{x:xe,y:$e},{x:xe-ze*et+Le*st,y:$e-re*et+Ye*st},{x:xe-ze*et-Le*st,y:$e-re*et-Ye*st}];return[d(gt,{points:Be,fill:We,stroke:We,strokeWidth:Math.max(1,c*.8)})]},Oe=xe=>{if(xe.length===0)return null;if(xe.length===1)return xe[0];let $e=0,Ae=[];for(let We=0;We<xe.length-1;We+=1){let ze=xe[We],re=xe[We+1],Le=Math.hypot(re[0]-ze[0],re[1]-ze[1]);Ae.push({length:Le,start:ze,end:re}),$e+=Le}if($e===0)return xe[0];let de=$e/2;for(let We=0;We<Ae.length;We+=1){let ze=Ae[We];if(de<=ze.length||We===Ae.length-1){let re=ze.length===0?0:Math.max(0,Math.min(1,de/ze.length));return[ze.start[0]+(ze.end[0]-ze.start[0])*re,ze.start[1]+(ze.end[1]-ze.start[1])*re]}de-=ze.length}return xe[Math.floor(xe.length/2)]},Te=(xe,$e)=>{let Ae=K.get(xe),de=K.get($e);return!Ae||!de?null:i==="TB"?{start:[Ae.centerX,Ae.y+Ae.height],end:[de.centerX,de.y]}:i==="BT"?{start:[Ae.centerX,Ae.y],end:[de.centerX,de.y+de.height]}:i==="LR"?{start:[Ae.x+Ae.width,Ae.centerY],end:[de.x,de.centerY]}:{start:[Ae.x,Ae.centerY],end:[de.x+de.width,de.centerY]}},Xe=(xe,$e)=>{let Ae=Te(xe,$e);if(!Ae)return null;let{start:de,end:We}=Ae;if(ee){let re=de[1]+(We[1]-de[1])/2;return{start:de,end:We,points:[de,[de[0],re],[We[0],re],We]}}let ze=de[0]+(We[0]-de[0])/2;return{start:de,end:We,points:[de,[ze,de[1]],[ze,We[1]],We]}};W.forEachEdge(xe=>{let $e=ct=>Array.isArray(ct)?ct.map(rt=>rt&&Array.isArray(rt)&&rt.length>=2?[Number(rt[0]),Number(rt[1])]:null).filter(rt=>!!rt&&Number.isFinite(rt[0])&&Number.isFinite(rt[1])):[],Ae=()=>{let ct=K.get(String(xe.source)),rt=K.get(String(xe.target));return!ct||!rt?[]:[[ct.centerX-z,ct.centerY-F],[rt.centerX-z,rt.centerY-F]]},de=G==="orth",We=de?Xe(String(xe.source),String(xe.target)):null,ze=de?[]:$e(xe.points),re=de?We?.points??[]:ze.length?ze:Ae();if(!re.length)return;let Le=de?0:z,Ye=de?0:F,et=de?We?.start??re[0]:re[0],st=de?We?.end??re[re.length-1]:re[re.length-1],Be=xe._original?.relation,tt=T.get(String(xe.source))??U,pt=T.get(String(xe.target))??U,yt=`edge-gradient-${String(tt)}-${String(pt)}`.replace(/[^a-zA-Z0-9_-]/g,""),ut=u==="gradient"?`url(#${yt})`:U,bt="";if(me>0?bt=Re(re,me,Le,Ye):bt=Ie(re,Le,Ye),!bt)return;let Kt=d(ae,{d:bt,stroke:ut,strokeWidth:c,strokeDasharray:he,fill:"none","data-element-type":"shape",children:oe&&d("animate",{attributeName:"stroke-dashoffset",from:String(_e),to:"0",dur:pe,repeatCount:"indefinite"})});if(fe.push(Kt),u==="gradient"){let ct=et,rt=st;ie.push(E("linearGradient",{id:yt,gradientUnits:"userSpaceOnUse",x1:ct[0]+Le,y1:ct[1]+Ye,x2:rt[0]+Le,y2:rt[1]+Ye,children:[d("stop",{offset:"0%",stopColor:tt}),d("stop",{offset:"100%",stopColor:pt})]}))}if(Be?.label){let ct=null,rt=Oe(re);if(rt&&(ct=[rt[0]+Le,rt[1]+Ye]),ct){let nr=String(Be.label),ir=Y(d(qe,{fontSize:14,fontWeight:"normal",children:nr})),kr=ct[0]-ir.width/2,jr=ct[1]-ir.height/2;fe.push(d(qe,{x:kr,y:jr,width:ir.width,height:ir.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:te,backgroundColor:ne,children:nr}))}}let Lr=Be?.showArrow??m,pr=Be?.direction??"forward",at=Be?.arrowType??g,Rt=re.length-1;if(Lr&&re.length>1){if(pr==="forward"||pr==="both"){let ct=re[Rt],rt=re[Rt-1],nr=Math.atan2(ct[1]-rt[1],ct[0]-rt[0]),ir=u==="gradient"?pt:U,kr=Ze(ct[0]+Le,ct[1]+Ye,nr,at,ir);fe.push(...kr)}if(pr==="both"){let ct=re[0],rt=re[1],nr=Math.atan2(ct[1]-rt[1],ct[0]-rt[0]),ir=u==="gradient"?tt:U,kr=Ze(ct[0]+Le,ct[1]+Ye,nr,at,ir);fe.push(...kr)}}})}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[S,E(O,{children:[d(ke,{children:ie}),d(O,{width:0,height:0,children:fe}),d(ye,{children:Q}),d(Ce,{})]})]})};be("relation-dagre-flow",{component:$T,composites:["title","item"]});var zT=e=>{let{Title:t,Item:r,data:n,spacing:i=120,showConnections:o=!0,options:s}=e,{title:a,desc:c,items:l=[]}=n,u=t?d(t,{title:a,desc:c}):null;if(l.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,d(O,{children:d(ye,{})})]});let f=Y(d(r,{indexes:[0],data:n,datum:l[0],positionH:"center"}));function h(){let C=l.map((M,T)=>({id:T,data:M,isCenter:T===0,_originalIndex:[T]})),S=l.slice(1).map((M,T)=>({source:0,target:T+1})),I=Jg(C).force("link",Qg(S).id(M=>M.id).distance(i)).force("charge",e1().strength(-50)).force("center",Kg(0,0)).force("collision",Zg().radius(Math.max(f.width,f.height)/2+10));for(let M=0;M<300;++M)I.tick();return{nodes:C,links:S}}let{nodes:p,links:x}=h(),m=Math.min(...p.map(C=>C.x??0)),g=Math.min(...p.map(C=>C.y??0)),y=Math.max(0,-m+f.width/2),b=Math.max(0,-g+f.height/2),_=(C,S)=>({positionH:C<-50?"flipped":C>50?"normal":"center",positionV:S<-50?"flipped":S>50?"normal":"middle"}),v=p.map(C=>{if(C.x==null||C.y==null)return null;let S=C.x+y-f.width/2,I=C.y+b-f.height/2,{positionH:M,positionV:T}=_(C.x,C.y);return d(r,{indexes:C._originalIndex,datum:C.data,data:n,x:S,y:I,positionH:M,positionV:T},C.id)}).filter(Boolean),w=new Map(p.map(C=>[C.id,C])),q=o?x.map(C=>{let S=typeof C.source=="object"?C.source:w.get(C.source),I=typeof C.target=="object"?C.target:w.get(C.target);if(!S||!I||S.x==null||S.y==null||I.x==null||I.y==null)return null;let M=`M ${S.x+y} ${S.y+b} L ${I.x+y} ${I.y+b}`;return d(ae,{d:M,stroke:Qe(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(O,{children:[d(O,{children:q}),d(ye,{children:v})]})]})};be("relation-network",{component:zT,composites:["title","item"]});var ms=({width:e=25,height:t=25,colorPrimary:r="#6699FF",rotation:n=0,...i})=>{let o=`gradient-arrow-stroke-${r.replace("#","")}`,s=`gradient-arrow-fill-${r.replace("#","")}`,a=Math.round(e*.515),c=Math.round(t*.275),l=Math.round(t*.875),u=[{x:0,y:c},{x:a,y:c},{x:a,y:t*.075},{x:e,y:t*.575},{x:a,y:t*1.075},{x:a,y:l},{x:0,y:l}],f=e/2,h=t/2,p=`rotate(${n} ${f} ${h})`;return E(De,{children:[d(gt,{...i,width:e,height:t,points:u,fill:`url(#${s})`,stroke:`url(#${o})`,transform:p,"data-element-type":"shape"}),E(ke,{children:[E("linearGradient",{id:s,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":r,"stop-opacity":"0.36"}),d("stop",{offset:"100%","stop-color":r,"stop-opacity":"0"})]}),E("linearGradient",{id:o,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%","stop-color":r}),d("stop",{offset:"58%","stop-color":r,"stop-opacity":"0"})]})]})]})};var I7=({text:e,x:t=0,y:r=0,fontSize:n=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:c=2,shadowOffsetY:l=4,midShadowOffsetX:u=1,midShadowOffsetY:f=2,deepShadowOpacity:h=.3,midShadowOpacity:p=.5})=>E(O,{children:[d("text",{x:t,y:r,fontSize:n,fontWeight:i,fill:o,fillOpacity:h,textAnchor:s,dominantBaseline:a,transform:`translate(${c}, ${l})`,children:e}),d("text",{x:t,y:r,fontSize:n,fontWeight:i,fill:o,fillOpacity:p,textAnchor:s,dominantBaseline:a,transform:`translate(${u}, ${f})`,children:e}),d("text",{x:t,y:r,fontSize:n,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:e})]});var T7=({width:e=25,height:t=25,colorPrimary:r="#6699FF",rotation:n=0,strokeWidth:i=4,...o})=>{let s=[{x:e/2,y:0},{x:e,y:t},{x:0,y:t}],a=e/2,c=t/2,l=`rotate(${n} ${a} ${c})`;return d(gt,{...o,width:e,height:t,points:s,fill:r,stroke:r,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",transform:l})};var HT=-118,M7=118,A7=240,FT=180,jT=40,DT="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",BT="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",NT="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",L7=E("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),d("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),d("feOffset",{dx:"0",dy:"4"}),d("feGaussianBlur",{stdDeviation:"6"}),d("feComposite",{in2:"hardAlpha",operator:"out"}),d("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),d("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),GT=e=>{let{Title:t,Item:r,data:n,options:i,cubeWidth:o=A7}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null;if(c.length===0){let g=d(V,{indexes:[0],x:0,y:0});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(ke,{children:L7}),l,d(O,{children:d(Ce,{children:g})})]})}let u=Y(d(V,{indexes:[0]})),f=[],h=[],p=[],x=o/A7,m=FT*x;return c.forEach((g,y)=>{let b=[y],_=Ee(i,b),v=y*(o+HT),w=(c.length-1-y)*M7,q=`cube-gradient-bottom-${y}`,C=`cube-gradient-top-${y}`,S=`cube-gradient-stroke-${y}`;p.push(E(O,{x:v,y:w,id:`cube-${y}`,width:o,height:m,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[E(ke,{children:[E("linearGradient",{id:q,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:_,stopOpacity:"0.8"}),d("stop",{offset:"1",stopColor:_,stopOpacity:"0.4"})]}),E("linearGradient",{id:C,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:_,stopOpacity:"0.9"}),d("stop",{offset:"1",stopColor:_,stopOpacity:"0.5"})]}),E("linearGradient",{id:S,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:_}),d("stop",{offset:"1",stopColor:_,stopOpacity:"0.7"})]})]}),E(ot,{transform:`scale(${x})`,children:[d(ae,{d:DT,fill:`url(#${q})`}),d(ae,{d:BT,fill:`url(#${C})`}),d(ae,{d:NT,fill:`url(#${S})`})]}),d(I7,{text:y+1,x:115,y:65,fontSize:56})]}));let I=v+o+jT,M=w+m/2;if(h.push(d(r,{indexes:b,datum:g,data:n,x:I,y:M,positionH:"normal"})),f.push(d(Pe,{indexes:b,x:v+o-u.width/2,y:w-u.height/2})),y===0&&f.push(d(V,{indexes:[0],x:v-30-u.width/2,y:w+m/2-u.height/2})),y<c.length-1){let T=(c.length-1-(y+1))*M7,P=v+o-u.width/2,A=(w+m/2+T+m/2)/2-u.height/2;f.push(d(V,{indexes:[y+1],x:P,y:A}))}else f.push(d(V,{indexes:[c.length],x:v+o+30-u.width/2,y:w+m/2-u.height/2}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(ke,{children:L7}),l,E(O,{x:0,y:0,children:[d(O,{children:p}),d(ye,{children:h}),d(Ce,{children:f})]})]})};be("sequence-ascending-stairs-3d",{component:GT,composites:["title","item"]});var WT=e=>{let{Title:t,Item:r,data:n,hGap:i=0,vGap:o=0}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Y(d(r,{indexes:[0],data:n,datum:c[0]})),f=[],h=[],p=c.length,x=u.width+i,m=u.height/2+o,g=u.width/2,b=0+(p-1)*m;return c.forEach((_,v)=>{let w=g+v*x,q=b-v*m,C=[v];f.push(d(r,{indexes:C,datum:_,data:n,x:w,y:q})),h.push(d(Pe,{indexes:C,x:w+u.width-30,y:q+u.height/2+10})),h.push(d(V,{indexes:C,x:w+u.width+i/2,y:q-30}))}),E(Z,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(ye,{children:f}),d(Ce,{children:h})]})]})};be("sequence-ascending-steps",{component:WT,composites:["title","item"]});var XT=20,k7=5,YT=e=>{let{Title:t,Item:r,data:n,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=e,{title:c,desc:l,items:u=[]}=n,f=Y(d(V,{indexes:[0]})),h=Qe(i);if(!r){let H=t?d(t,{title:c,desc:l}):null;return E(Z,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[H,d(O,{children:d(Ce,{children:d(V,{indexes:[0],x:0,y:0})})})]})}let p=u.length;if(p===0){let H=t?d(t,{title:c,desc:l}):null;return E(Z,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[H,d(O,{children:d(Ce,{children:d(V,{indexes:[0],x:0,y:0})})})]})}let x=Y(d(r,{indexes:[0],data:n,datum:u[0]})),m=0,g=0,y=2*Math.PI/p,b=[],_=1/0,v=1/0,w=-1/0,q=-1/0;for(let H=0;H<p;H++){let X=H*y-Math.PI/2,D=m+o*Math.cos(X),k=g+o*Math.sin(X);b.push({x:D,y:k}),_=Math.min(_,D),v=Math.min(v,k),w=Math.max(w,D),q=Math.max(q,k)}let C=[];for(let H=0;H<p;H++){let X=b[H],D=b[(H+1)%p],k=Math.sqrt(Math.pow(D.x-X.x,2)+Math.pow(D.y-X.y,2)),R=Math.min(k*.5,100),G=(X.x+D.x)/2,W=(X.y+D.y)/2;_=Math.min(_,G-R/2),v=Math.min(v,W-R/2),w=Math.max(w,G+R/2),q=Math.max(q,W+R/2);let N=Math.atan2(W-g,G-m),L=N<0?N+2*Math.PI:N,$,z,F=L*180/Math.PI,K=R/2+XT,Q=G+Math.cos(N)*K,ie=W+Math.sin(N)*K;F>=337.5||F<22.5?($=Q,z=ie-x.height/2):F>=22.5&&F<67.5?($=Q,z=ie):F>=67.5&&F<112.5?($=Q-x.width/2,z=ie):F>=112.5&&F<157.5?($=Q-x.width,z=ie):F>=157.5&&F<202.5?($=Q-x.width,z=ie-x.height/2):F>=202.5&&F<247.5?($=Q-x.width,z=ie-x.height):F>=247.5&&F<292.5?($=Q-x.width/2,z=ie-x.height):($=Q,z=ie-x.height),C.push({lineLength:k,circleBigW:R,midX:G,midY:W,itemX:$,itemY:z}),_=Math.min(_,$),v=Math.min(v,z),w=Math.max(w,$+x.width+f.width+5),q=Math.max(q,z+x.height)}let S=Math.max(0,-_),I=Math.max(0,-v),M=t?d(t,{title:c,desc:l}):null,T=[],P=[],A=[],j=[],B=b.map(H=>({x:H.x+S,y:H.y+I}));for(let H=0;H<p;H++){let X=B[H],D=B[(H+1)%p],k=(H+1)%p,R=[H],{lineLength:G,circleBigW:W,midX:N,midY:L}=C[H],$=Math.max(W-20,20),z=Math.max($*.4,16),F=Ee(i,R)||h,K=D.x-X.x,Q=D.y-X.y,ie=G,fe=K/ie,U=Q/ie,J=k7*2+s,ne=Math.min(k7,(ie-J)/2),te=Math.max(0,X.x+fe*ne),ve=Math.max(0,X.y+U*ne),ee=Math.max(0,D.x-fe*ne),oe=Math.max(0,D.y-U*ne),ge=i1().x(Te=>Math.max(0,Te.x)).y(Te=>Math.max(0,Te.y)).curve(n1)([{x:te,y:ve},{x:ee,y:oe}])||"",_e=`fork-arrow-${F.replace(/[^a-zA-Z0-9]/g,"")}-${H}`,pe=`
|
|
115
|
-
M ${-s*.6} ${-s*.4}
|
|
116
|
-
L 0 0
|
|
117
|
-
L ${-s*.6} ${s*.4}
|
|
118
|
-
`;j.push(d("marker",{id:_e,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:d("path",{d:pe,fill:"none",stroke:F,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),A.push(d(ae,{d:ge,stroke:F,strokeWidth:a,fill:"none",markerEnd:`url(#${_e})`,strokeLinecap:"round","data-element-type":"shape"}));let me=N+S,Ie=L+I,Re=it({colorPrimary:F||h},i);A.push(d(je,{x:Math.max(0,me-W/2),y:Math.max(0,Ie-W/2),width:W,height:W,fill:Re.colorPrimaryBg,"data-element-type":"shape"})),A.push(d(je,{x:Math.max(0,me-$/2),y:Math.max(0,Ie-$/2),width:$,height:$,fill:"#ffffff"})),A.push(d(ft,{x:Math.max(0,me-z/2),y:Math.max(0,Ie-z/2),size:z,indexes:R,fill:F}));let Ze=Math.max(0,me-f.width/2),Oe=Math.max(0,Ie-f.height/2);T.push(d(V,{indexes:[k],x:Ze,y:Oe}))}for(let H=0;H<p;H++){let X=[H],D=u[H],{itemX:k,itemY:R}=C[H],G=Math.max(0,k+S),W=Math.max(0,R+I);P.push(d(r,{indexes:X,datum:D,data:n,x:G,y:W}));let N=Math.max(0,G+x.width+5),L=Math.max(0,W+x.height/2-f.height/2);T.push(d(Pe,{indexes:X,x:N,y:L}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[M,E(O,{x:0,y:0,children:[d(ke,{children:j}),d(O,{children:A}),d(ye,{children:P}),d(Ce,{children:T})]})]})};be("sequence-circle-arrows",{component:YT,composites:["title","item"]});var VT=100,UT=50,KT=6,ZT="40",QT=e=>{let{Title:t,Item:r,data:n,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:c=5,iconRadius:l=34,iconBgRadius:u=38,iconSize:f=36}=e,{title:h,desc:p,items:x=[]}=n,m=t?d(t,{title:h,desc:p}):null,g=Math.max(a+VT,o+UT),y=Math.min(a,o),b=Y(d(V,{indexes:[0]}));if(x.length===0)return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,d(O,{children:d(Ce,{children:d(V,{indexes:[0],x:g-20,y:y-20})})})]});let _=[],v=[],w=[],q=[],C=Y(d(r,{indexes:[0],data:n,datum:x[0]})),M=(360-x.length*c)/x.length,T=(R,G,W,N,L,$)=>{let z=L*Math.PI/180,F=$*Math.PI/180,K=R+W*Math.cos(z),Q=G+W*Math.sin(z),ie=R+N*Math.cos(z),fe=G+N*Math.sin(z),U=R+N*Math.cos(F),J=G+N*Math.sin(F),ne=R+W*Math.cos(F),te=G+W*Math.sin(F),ve=$-L<=180?"0":"1";return[`M ${K} ${Q}`,`L ${ie} ${fe}`,`A ${N} ${N} 0 ${ve} 1 ${U} ${J}`,`L ${ne} ${te}`,`A ${W} ${W} 0 ${ve} 0 ${K} ${Q}`,"Z"].join(" ")},P=({centerX:R,outerRadius:G,angleRad:W,btnBounds:N})=>{let L=R+(G+20)*Math.cos(W)-N.width/2,$=y+(G+20)*Math.sin(W)-N.height/2;return{x:L,y:$}},A=KT,j=(s+o)/2,B=A/j*(180/Math.PI);x.forEach((R,G)=>{let W=[G],N=G*(M+c)+270,L=N+M,$=(N+L)/2,z=$*Math.PI/180,F=Ee(i,W),K=F+ZT,Q=T(g,y,s,o,N,L);w.push(d(ae,{d:Q,fill:K,width:o*2,height:o*2,"data-element-type":"shape"}));let ie=T(g,y,s+A,o-A,N+B,L-B);w.push(d(ae,{d:ie,fill:F,width:o*2,height:o*2,"data-element-type":"shape"}));let fe=(s+o)/2,U=g+fe*Math.cos(z),J=y+fe*Math.sin(z);q.push(d(je,{x:U-u,y:J-u,width:u*2,height:u*2,fill:"#ffffff","data-element-type":"shape"})),q.push(d(je,{x:U-l,y:J-l,width:l*2,height:l*2,fill:F,"data-element-type":"shape"})),R.icon&&q.push(d(ft,{x:U-f/2,y:J-f/2,indexes:W,size:f,fill:"#fff"}));let ne=($%360+360)%360,te=ne>=270||ne<=90,ve=ne>=75&&ne<=105,ee,oe="normal",se="normal";ve?(ee=ne,se="normal",oe="center"):te?(ne>=270?ee=-60+(ne-270)/90*60:ee=ne/90*60,oe="normal"):(ee=120+(ne-90)/180*120,oe="flipped");let ge=ee*Math.PI/180,he=g+a*Math.cos(ge)-C.width/2,_e=y+a*Math.sin(ge)-C.height/2;ve&&(_e=y+o+C.height/2),v.push(d(r,{indexes:W,datum:R,data:n,x:he,y:_e,positionH:oe,positionV:se}));let pe=a+40,me=g+pe*Math.cos(ge)-b.width/2,Ie=y+pe*Math.sin(ge)-b.height/2;_.push(d(Pe,{indexes:W,x:me,y:Ie}));let Ze=(N+M+c/2)*Math.PI/180,{x:Oe,y:Te}=P({centerX:g,outerRadius:o,angleRad:Ze,btnBounds:b});_.push(d(V,{indexes:[G+1],x:Oe,y:Te}))});let X=(270-c/2)*Math.PI/180,{x:D,y:k}=P({centerX:g,outerRadius:o,angleRad:X,btnBounds:b});return _.unshift(d(V,{indexes:[0],x:D,y:k})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[m,E(O,{children:[d(O,{children:w}),d(O,{children:q}),d(ye,{children:v}),d(Ce,{children:_})]})]})};be("sequence-circular",{component:QT,composites:["title","item"]});var JT=e=>{let{Title:t,Item:r,data:n,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:c}=e,{title:l,desc:u,items:f=[]}=n,h=t?d(t,{title:l,desc:u}):null,p=Qe(c),x=Y(d(V,{indexes:[0]})),m=Y(d(r,{indexes:[0],data:n,datum:f[0],positionH:"center"})),g=[],y=[],b=[],_=(o+m.height)/2,v=_;if(f.forEach((w,q)=>{let C=Math.floor(q/s),S=q%s,I=C%2===1,T=(I?s-1-S:S)*(m.width+i)+v,P=C*(m.height+o),A=[q];if(y.push(d(r,{indexes:A,datum:w,data:n,x:T,y:P,positionH:"center",positionV:q%2===1?"flipped":"normal"})),g.push(d(Pe,{indexes:A,x:T+(m.width-x.width)/2,y:P+m.height+10})),q===0&&g.push(d(V,{indexes:A,x:T+(m.width-x.width)/2,y:P-x.height-10})),q<f.length-1){let j=Math.floor((q+1)/s);if(C===j)g.push(d(V,{indexes:[q+1],x:T+(m.width-x.width)/2,y:P-x.height-10}));else{let H=P+m.height/2,X=P+m.height+o+m.height/2,D,k,R;I?(D=T,R=0,k=`M ${D} ${H} A ${_} ${_} 0 0 ${R} ${D} ${X}`):(D=T+m.width,R=1,k=`M ${D} ${H} A ${_} ${_} 0 0 ${R} ${D} ${X}`);let G=X-H,W=Ee(c,A),N=Ee(c,[q+1]),L=`gradient-arc-${q}`;b.push(E(De,{children:[d(ke,{children:E("linearGradient",{id:L,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:W||p}),d("stop",{offset:"100%",stopColor:N||p})]})}),d(ae,{d:k,stroke:`url(#${L})`,strokeWidth:a,fill:"none",width:v,height:G,"data-element-type":"shape"})]}));let $=I?D-_-x.width/2:D+_-x.width/2,z=P+m.height+o/2-x.height/2;g.push(d(V,{indexes:[q+1],x:$,y:z}))}}}),f.length>0){let w=f.length-1,q=Math.floor(w/s),C=w%s,M=(q%2===1?s-1-C:C)*(m.width+i),T=q*(m.height+o);g.push(d(V,{indexes:[f.length],x:M+(m.width-x.width)/2,y:T+m.height+x.height+20}))}if(f.length/s>2){let w=(o+m.height)/2,q=Ee(c,[0]);b.push(d(we,{x:0,y:m.height/2-a/2,width:w,height:a,fill:q||p,"data-element-type":"shape"}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(O,{width:s*m.width+(s-1)*i+_*2,height:Math.ceil(f.length/s)*(m.height+o),children:[d(O,{children:b}),d(ye,{children:y}),d(Ce,{children:g})]})]})};be("sequence-color-snake-steps",{component:JT,composites:["title","item"]});var rl=(e,t)=>e===0?0:e===1?t/2:t/2+(e-1)*(t/2*3),nl=(e,t,r)=>{if(e)return 0;let o=t===0?2:r;return r*2+o},eM=(e,t,r,n,i,o,s,a)=>{let c=Math.max(6,o*.15),l=n+(e-1)*i,u=e*c,f=100,p=l+u+f+50,x=p-f,m=0,g=0,y=0,b=0;if(e>0){let v=1/0,w=-1/0;for(let j=0;j<e;j++){let B=j%2===0,H=Math.floor(j/2),X=rl(H,r),k=0+nl(B,H,r)+X;v=Math.min(v,k-r),w=Math.max(w,k+r)}let q=(v+w)/2,C=0;m=0,b=m+t.width+a+s+r,y=b-C+q;let T=m+t.width/2,P=y-T;g=y+P-t.width/2}return{canvasHeight:p,startY:x,leftItemAlignedX:m,rightItemAlignedX:g,cylinderAreaStartX:b}},tM=(e,t,r,n,i,o,s)=>{let a=e%2===0,c=Math.floor(e/2),l=rl(c,t),u=nl(a,c,t),f=s+u+l,h=o-e*i,p=r+e*n,x=h-p;return{x:f,y:x,height:p,bottomY:h,topY:x}},rM=(e,t,r,n,i,o,s,a,c)=>{let l=e%2===0,u=t.topY+t.height*.05,f,h;l?(f=i,h=f+r.width+c):(f=o,h=f-c);let p;s==="top"?p=u:s==="bottom"?p=u-r.height:p=u-r.height/2,p+=a;let x=l?t.x-n:t.x+n,m=l?x-c:x+c;return{itemPos:{x:f,y:p},lineStartX:m,lineEndX:h,lineY:u}},nM=(e,t)=>{let r=le(t),n=[];return n.push(E("linearGradient",{id:`cylinderGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:r.toRgbString(),stopOpacity:.7}),d("stop",{offset:"40%",stopColor:r.clone().lighten(5).toRgbString(),stopOpacity:.65}),d("stop",{offset:"70%",stopColor:r.clone().lighten(15).toRgbString(),stopOpacity:.6}),d("stop",{offset:"100%",stopColor:r.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),n.push(E("linearGradient",{id:`topGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:r.clone().lighten(15).toRgbString(),stopOpacity:1}),d("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),n.push(E("linearGradient",{id:`bottomGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:r.clone().darken(8).toRgbString(),stopOpacity:.75}),d("stop",{offset:"50%",stopColor:r.clone().darken(5).toRgbString(),stopOpacity:.7}),d("stop",{offset:"100%",stopColor:r.clone().darken(12).toRgbString(),stopOpacity:.65})]})),n.push(E("linearGradient",{id:`numberGradient${e}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:r.clone().darken(0).toRgbString(),stopOpacity:.9}),d("stop",{offset:"50%",stopColor:r.clone().lighten(5).toRgbString(),stopOpacity:.85}),d("stop",{offset:"100%",stopColor:r.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),n.push(E("linearGradient",{id:`glowGradient${e}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),d("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),n},iM=(e,t,r,n)=>{let{x:i,topY:o,bottomY:s}=t,a=[];a.push(d("ellipse",{id:`cylinder-bottom-${e}`,cx:i,cy:s,rx:r,ry:n,fill:`url(#bottomGradient${e})`,opacity:.7})),a.push(d(ae,{id:`cylinder-body-${e}`,d:`
|
|
119
|
-
M ${i-r} ${o}
|
|
120
|
-
A ${r} ${n} 0 0 0 ${i} ${o+n}
|
|
121
|
-
A ${r} ${n} 0 0 0 ${i+r} ${o}
|
|
122
|
-
L ${i+r} ${s}
|
|
123
|
-
A ${r} ${n} 0 0 1 ${i} ${s+n}
|
|
124
|
-
A ${r} ${n} 0 0 1 ${i-r} ${s}
|
|
125
|
-
Z
|
|
126
|
-
`,fill:`url(#cylinderGradient${e})`,stroke:"none"})),a.push(d(we,{id:`cylinder-glow-${e}`,x:i-r,y:o-n*3,width:r*2,height:n*3,fill:`url(#glowGradient${e})`})),a.push(d("ellipse",{id:`cylinder-top-${e}`,cx:i,cy:o,rx:r,ry:n,fill:`url(#topGradient${e})`}));let c=i-10,l=o-15,h=`translate(${c}, ${l}) matrix(1, 0, ${-.6}, ${.6}, 0, 0)`;return a.push(d(qe,{id:`cylinder-number-${e}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${e})`,alignHorizontal:"center",alignVertical:"middle",transform:h,children:e+1})),a},oM=(e,t,r,n,i)=>{let s=[];return s.push(d("circle",{id:`decoration-dot-start-${e}`,cx:t,cy:n,r:2,fill:i})),s.push(d("line",{id:`decoration-line-${e}`,x1:t,y1:n,x2:r,y2:n,stroke:i,strokeWidth:1,opacity:.8})),s.push(d("circle",{id:`decoration-dot-end-${e}`,cx:r,cy:n,r:2,fill:i,opacity:.9})),s},sM=(e,t,r,n,i)=>{if(e===0)return null;let o=[];for(let v=0;v<e;v++){let w=v%2===0,q=Math.floor(v/2),C=rl(q,t),S=nl(w,q,t),I=r+S+C,M=n-v*i;o.push({x:I,y:M})}let s=o[0],a=o[o.length-1],c=6,l=e>5?e*16:100,u=s.x-t-l,f=s.x+t+l,h=s.y+c+l/6,p=a.x-t-l,x=a.x+t+l,m=a.y+c-l/6,g=`
|
|
127
|
-
M ${u} ${h}
|
|
128
|
-
L ${f} ${h}
|
|
129
|
-
L ${x} ${m}
|
|
130
|
-
L ${p} ${m}
|
|
131
|
-
Z
|
|
132
|
-
`,y=`
|
|
133
|
-
M ${f} ${h}
|
|
134
|
-
L ${f} ${h+c}
|
|
135
|
-
L ${x} ${m+c}
|
|
136
|
-
L ${x} ${m}
|
|
137
|
-
Z
|
|
138
|
-
`,b=`
|
|
139
|
-
M ${u} ${h}
|
|
140
|
-
L ${f} ${h}
|
|
141
|
-
L ${f} ${h+c}
|
|
142
|
-
L ${u} ${h+c}
|
|
143
|
-
Z
|
|
144
|
-
`,_=E(De,{children:[E("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),d("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),d("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),E("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),d("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),d("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),E("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),d("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),d("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]});return E(O,{children:[d(ke,{children:_}),d(ae,{id:"base-plate-front",d:b,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),d(ae,{id:"base-plate-side",d:y,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),d(ae,{id:"base-plate-top",d:g,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},aM=e=>{let{Title:t,Item:r,data:n,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:c=40,depthSpacing:l=60,itemVerticalAlign:u="top",itemVerticalOffset:f=-12,firstDecorationWidth:h=90}=e,{title:p,desc:x,items:m=[]}=n,g=t?d(t,{title:p,desc:x}):null,y=Y(d(r,{indexes:[0],data:n,datum:m[0],positionH:"center"})),b=Y(d(V,{indexes:[0]})),_=Qe(i),v=10,w=Math.max(6,l*.15),q=eM(m.length,y,o,a,c,l,h,v),{startY:C,leftItemAlignedX:S,rightItemAlignedX:I,cylinderAreaStartX:M}=q,T=[],P=[];m.forEach((W,N)=>{let L=Ee(i,[N])||_;T.push(...nM(N,L));let $=tM(N,o,a,c,w,C,M),z=iM(N,$,o,s),{itemPos:F,lineStartX:K,lineEndX:Q,lineY:ie}=rM(N,$,y,o,S,I,u,f,v),fe=oM(N,K,Q,ie,L);z.push(...fe);let U=d(r,{indexes:[N],datum:W,data:n,x:F.x,y:F.y,positionH:N%2===0?"flipped":"normal"}),J=[d(Pe,{indexes:[N],x:F.x+y.width/2-b.width/2,y:F.y+y.height+10}),d(V,{indexes:[N],x:F.x+y.width/2-b.width/2,y:F.y-b.height-10})];P[N]={cylinderNodes:z,itemNode:U,btnNodes:J,itemX:F.x,itemY:F.y}});let A=1/0,j=1/0,B=-1/0,H=-1/0;P.forEach(W=>{let{itemX:N,itemY:L}=W;A=Math.min(A,N),j=Math.min(j,L),B=Math.max(B,N+y.width),H=Math.max(H,L+y.height)});let X=B-A,D=H-j,k=[d(ke,{children:T})],R=[],G=sM(m.length,o,M,C,w);G&&k.push(G);for(let W=m.length-1;W>=0;W--){let N=P[W];N&&(k.push(E(O,{children:[d(O,{children:N.cylinderNodes}),N.itemNode]})),R.push(...N.btnNodes))}if(m.length>0){let W=m.length%2===0,N=Math.floor(m.length/2),L=rl(N,o),$=nl(W,N,o),z=M+$+L,F=C-m.length*w;R.push(d(V,{indexes:[m.length],x:z,y:F-100}))}return E(Z,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,E(O,{width:X,height:D,children:[d(ye,{children:k}),d(Ce,{children:R})]})]})};be("sequence-cylinders-3d",{component:aM,composites:["title","item"]});var ht={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},nn={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function cM(e,t,r){return(e+t*7+r*13)%100}function lM(e){let t=Math.ceil(Math.sqrt(e*1.5)),r=Math.ceil(e/t);return{cols:t,rows:r}}function uM(e,t,r,n,i,o,s,a){let c=Math.max(i,Math.min(e+r,o)),l=Math.max(s,Math.min(t+n,a));return{x:c,y:l}}function R7({count:e,rectX:t,rectY:r,rectWidth:n,rectHeight:i,seed:o}){let s=[],a=nn.SIZE/2,{cols:c,rows:l}=lM(e),u=(n-a*2)/(c+1),f=(i-a*2)/(l+1),h=0;for(let p=0;p<l&&h<e;p++)for(let x=0;x<c&&h<e;x++){let m=cM(o,p,x),g=m%16-8,y=m*3%12-6,b=p%2===1?u/2:0,_=t+a+(x+1)*u+b,v=r+a+(p+1)*f,{x:w,y:q}=uM(_,v,g,y,t+a,t+n-a,r+a,r+i-a);s.push({x:w,y:q,colorIndex:h}),h++}return s}function dM(e,t){if(t<=1)return nn.MAX_COUNT;let r=e/(t-1),n=nn.MAX_COUNT-nn.MIN_COUNT;return Math.round(nn.MAX_COUNT-n*r)}function fM(){let s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let c=0;c<=12;c++){let l=c/12,u={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*l,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*l},f={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*l,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*l};a.push(`M${u.x} ${u.y}L${f.x} ${f.y}`);let h={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*l,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*l},p={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*l,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*l};a.push(`M${h.x} ${h.y}L${p.x} ${p.y}`)}return a.join("")}function P7(e,t){return e.map(r=>{let n=Ee(t,[r.colorIndex]);return d(ae,{d:"M4 0L8 4L4 8L0 4Z",fill:n,x:r.x,y:r.y,width:nn.SIZE,height:nn.SIZE,"data-element-type":"shape"})})}function hM(e,t,r,n,i){return E(O,{x:t,y:0,width:ht.WIDTH,height:ht.HEIGHT,children:[E(ot,{children:[d(ae,{d:fM(),stroke:"#D9D9D9",strokeWidth:2}),d(ae,{d:`M${ht.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),d(we,{x:ht.RECT_X,y:ht.RECT_Y,width:ht.RECT_WIDTH,height:ht.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),d(De,{children:P7(n,i)}),d(qe,{x:ht.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:r,children:String(e+1).padStart(2,"0")})]})}function pM(e,t){let r=ht.RECT_Y+ht.RECT_HEIGHT/2-ht.ARROW_HEIGHT/2,n=Math.max(Math.round(nn.MIN_COUNT*nn.ARROW_RATIO),nn.MIN_ARROW_COUNT),i=R7({count:n,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return E(O,{x:e+ht.WIDTH,y:r,children:[d(ae,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:ht.ARROW_WIDTH,height:ht.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),d(De,{children:P7(i,t)})]})}var mM=e=>{let{Title:t,Item:r,data:n,gap:i=20,options:o}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Y(d(V,{indexes:[0]})),f=Y(d(r,{indexes:[0],data:n,datum:c[0],width:ht.WIDTH,positionH:"center"})),h=[],p=[],x=[],m=ht.HEIGHT+i,g=m+f.height+10;if(c.forEach((y,b)=>{let _=b*ht.WIDTH,v=[b],w=Ee(o,v),q=dM(b,c.length),C=R7({count:q,rectX:ht.RECT_X,rectY:ht.RECT_Y,rectWidth:ht.RECT_WIDTH,rectHeight:ht.RECT_HEIGHT,seed:b*100});h.push(hM(b,_,w,C,o)),b===c.length-1&&h.push(pM(_,o)),p.push(d(r,{indexes:v,datum:y,data:n,width:ht.WIDTH,x:_+ht.LINE_X-ht.WIDTH/2,y:m,positionH:"center"},`item-${b}`)),x.push(d(Pe,{indexes:v,x:_+ht.LINE_X-u.width/2,y:g})),b<c.length-1&&x.push(d(V,{indexes:[b+1],x:_+ht.WIDTH-u.width/2,y:g}))}),c.length>0){x.unshift(d(V,{indexes:[0],x:-u.width/2,y:g}));let y=(c.length-1)*ht.WIDTH;x.push(d(V,{indexes:[c.length],x:y+ht.WIDTH-u.width/2,y:g}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{width:ht.WIDTH*c.length+ht.ARROW_WIDTH,height:ht.HEIGHT+i+f.height,children:[d(O,{children:h}),d(ye,{children:p}),d(Ce,{children:x})]})]})};be("sequence-filter-mesh",{component:mM,composites:["title","item"]});var ol=e=>Math.round(e*1e10)/1e10,sg=(e,t)=>ol(Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))),sl=Math.PI,gM=sl*2,xM=(e,t)=>{let r=t-e;return r>sl&&r<gM||r<0&&r>-sl?-1:1},yM=(e,t,r,n,i,o)=>{let s=Math.atan2(e.y-t.y,e.x-t.x),a=Math.atan2(r.y-t.y,r.x-t.x),c=Math.acos((n*n+o*o-i*i)/(2*n*o)),l=1/Math.tan(c/2),u=xM(s,a),f=s+u*c/2;return{prev:s,next:a,main:c,vel:l,dir:u,bis:f}},ag=Math.PI,al=(e,t,r)=>e.reduce((n,i)=>{let{x:o,y:s,angle:{prev:a,next:c},arc:{x:l,y:u,radius:f}}=i,h=i.angle.dir*-1,p=a+h*ag/2,x=(h*ag+c-a)%ag,m=t==="LENGTH"?Math.round(h*x*f/r):(r||1)-1,g=x/m,y=[];if(!m||!g)return n.concat({x:o,y:s});for(let b=0;b<=m;b++)y.push({x:l+Math.cos(p+g*b)*f,y:u+Math.sin(p+g*b)*f});return n.concat(y)},[]),cl=(e,t=0)=>{let r=e.length,n=[],i=[],o=[];e.forEach((c,l)=>{let u=e[(l-1+r)%r],f=e[(l+1)%r],h=sg(u,c),p=sg(u,f),x=sg(c,f),m=yM(u,c,f,h,p,x);m.main===0&&(m.main=Number.EPSILON,m.vel=Number.MAX_SAFE_INTEGER),m.main===sl&&(m.vel=0);let g={x:c.x,y:c.y,angle:m,offset:0,arc:{radius:t,hit:t,lim:Math.min(x/m.vel,h/m.vel,c.r||0)},in:{length:h,rest:h},out:{length:x,rest:x},locked:!1,id:l,get prev(){return n[(l-1+r)%r]},get next(){return n[(l+1)%r]}};isNaN(m.main)&&(m.main=0,m.bis=m.prev||m.next,o.push(g)),typeof c.r=="number"&&(c.r===0?o.push(g):i.push(g)),n.push(g)}),o.forEach(c=>{c.angle.vel=0,c.arc.radius=0,cg(c)}),n.forEach(c=>{c.arc.hit=Math.min(c.out.rest/(c.angle.vel+c.next.angle.vel),c.in.rest/(c.angle.vel+c.prev.angle.vel))});let s=il(i);for(;s;)bM(s),s=il(i);for(s=il(n);s;)_M(s,t),s=il(n);let a=n.map(c=>{let l=c.arc.radius/Math.sin(c.angle.main/2);return{id:c.id,x:c.x,y:c.y,angle:{main:ol(c.angle.main),prev:c.angle.prev,next:c.angle.next,bis:c.angle.bis,dir:c.angle.dir},offset:ol(c.offset),arc:{radius:ol(c.arc.radius),x:c.x+(Math.cos(c.angle.bis)*l||0),y:c.y+(Math.sin(c.angle.bis)*l||0)},in:{length:c.in.length,x:c.x+Math.cos(c.angle.prev)*c.offset,y:c.y+Math.sin(c.angle.prev)*c.offset},out:{length:c.out.length,x:c.x+Math.cos(c.angle.next)*c.offset,y:c.y+Math.sin(c.angle.next)*c.offset},get prev(){return a[(c.id-1+r)%r]},get next(){return a[(c.id+1)%r]}}});return a},bM=e=>{let{prev:t,next:r}=e;t.locked&&!r.locked?e.arc.radius=Math.min(Math.max((e.out.length-r.arc.lim*r.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+r.angle.vel)),e.in.rest/e.angle.vel,e.arc.lim):r.locked&&!t.locked?e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),e.out.rest/e.angle.vel,e.arc.lim):r.locked&&t.locked?e.arc.radius=Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.lim):e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),Math.max((e.out.length-r.arc.lim*r.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+r.angle.vel)),e.arc.lim),cg(e)},_M=(e,t)=>{if(t>e.arc.hit){let{prev:r,next:n}=e;r.locked&&!n.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.length/(e.angle.vel+n.angle.vel),e.arc.radius),0):n.locked&&!r.locked?e.arc.radius=Math.max(Math.min(e.out.rest/e.angle.vel,e.in.length/(e.angle.vel+r.angle.vel),e.arc.radius),0):n.locked&&r.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.radius),0):e.arc.radius=e.arc.hit}cg(e)},cg=e=>{let{prev:t,next:r}=e;e.offset=e.arc.radius*e.angle.vel,t.out.rest-=e.offset,e.in.rest-=e.offset,e.out.rest-=e.offset,r.in.rest-=e.offset,e.locked=!0,t.arc.hit=Math.min(t.in.length/(t.angle.vel+t.prev.angle.vel),t.in.rest/t.angle.vel,t.out.rest/t.angle.vel),r.arc.hit=Math.min(r.out.length/(r.angle.vel+r.next.angle.vel),r.out.rest/r.angle.vel,r.in.rest/r.angle.vel)},il=e=>e.reduce((t,r)=>r.locked?t:t?r.arc.hit<t.arc.hit?r:t:r,null);var vM=6,lg=32,wM=1.25,ug=25,O7=15,qM=e=>{let{Title:t,Item:r,data:n,gap:i=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:c=.25,options:l}=e,{title:u,desc:f,items:h=[]}=n,p=t?d(t,{title:u,desc:f}):null;if(h.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:p});let x=it(l.themeConfig),m=s??o*.55,g=o-m,y=a*wM,b=h.length*y+(h.length-1)*i,_=m*c,v=h.map((q,C)=>{let S=[C],I=Ee(l,[C])||x.colorPrimary,{points:M,topWidth:T}=CM(m,_,y,i,b,C),P=cl(M,vM),A=al(P,"AMOUNT",10),j=m/2,B=C*(y+i),H=j+T/2,X=H-ug,D=g+ug-10,k=(y-a)/2,R=B+k,G=H+O7,W=D-ug-O7,N=R,L=j-lg/2,$=B+y/2-lg/2,z=`${I.replace("#","")}-funnel-${C}`;return{background:d(we,{x:X,y:R,width:D,height:a,ry:"8",fill:le(I).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[d(ke,{children:E("linearGradient",{id:z,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[d("stop",{offset:"0%",stopColor:le(I).lighten(10).toString()}),d("stop",{offset:"100%",stopColor:I})]})}),d(gt,{points:A,fill:`url(#${z})`,y:B,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:d(ft,{indexes:S,x:L,y:$,size:lg,fill:"#fff"}),item:d(r,{indexes:S,datum:q,data:n,x:G,y:N,width:W,height:a,positionV:"middle"}),btnRemove:d(Pe,{indexes:S,x:X+D,y:R})}}),w=d(V,{indexes:[h.length],x:o/2,y:b+10});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(O,{width:o,height:b+40,children:[d(O,{children:v.map(q=>q.background)}),d(O,{children:v.flatMap(q=>q.funnel)}),d(O,{children:v.map(q=>q.icon)}),d(ye,{children:v.map(q=>q.item)}),E(Ce,{children:[v.map(q=>q.btnRemove),w]})]})]})};function CM(e,t,r,n,i,o){let s=e/2,a=o*(r+n),c=a+r,l=e-t,u=e-l*(a/i),f=e-l*(c/i),h={x:s-u/2,y:0},p={x:s+u/2,y:0},x={x:s+f/2,y:r},m={x:s-f/2,y:r};return{points:[h,p,x,m],topWidth:u,bottomWidth:f}}be("sequence-funnel",{component:qM,composites:["title","item"]});var SM=e=>{let{Title:t,Item:r,data:n,gap:i=30,cardPadding:o=10,options:s}=e,{title:a,desc:c,items:l=[]}=n,u=t?d(t,{title:a,desc:c}):null,f=Qe(s),h=it({colorPrimary:f},s),p=Y(d(V,{indexes:[0]})),x=Y(d(r,{indexes:[0],data:n,datum:l[0],positionH:"center"})),m=[],g=[],y=[],b=x.width+o*2,_=x.height+o*2+30,v=8,w=6,q=Math.max(p.height+20,40),C=40;if(l.forEach((S,I)=>{let M=I%2===0,T=I*(b+i),P;M?I%4===2?P=q:P=q+C:P=q+C+60;let A=[I],j=Ee(s,A)||f;if(M){let D=j===f?h.colorPrimaryBg||"#E8F3FF":`${j}20`,k=d(we,{x:T,y:P,width:b,height:_,fill:D,rx:20,ry:20});y.push(k)}g.push(d(r,{indexes:A,datum:S,data:n,x:T+o,y:P+o,positionH:"center",positionV:"normal"}));let B=l.length*v+(l.length-1)*w,H=T+(b-B)/2,X=P+x.height+20;for(let D=0;D<l.length;D++){let k=H+D*(v+w),R=D===I;y.push(d(je,{x:k,y:X,width:v,height:v,fill:R?j:"transparent",stroke:j,strokeWidth:2}))}m.push(d(Pe,{indexes:A,x:T+(b-p.width)/2,y:P+_+10})),I===0?m.push(d(V,{indexes:A,x:T+(b-p.width)/2,y:P-p.height-10})):m.push(d(V,{indexes:A,x:T-i/2-p.width/2,y:q-p.height-10}))}),l.length>0){let S=[],M=i/2,T=6,P=q+C,A=0-M,j=P+_/2;S.push(`M ${A} ${j-T}`),l.forEach((z,F)=>{let K=F%2===0,Q=F*(b+i),ie;K?F%4===2?ie=q:ie=q+C:ie=q+C+60;let fe=Q-M,U=Q+b+M,J=ie-M,ne=ie+_+M,te=ie+_/2;K?(S.push(`L ${fe} ${J+35}`),S.push(`Q ${fe} ${J} ${fe+35} ${J}`),S.push(`L ${U-35} ${J}`),S.push(`Q ${U} ${J} ${U} ${J+35}`),S.push(`L ${U} ${te-T}`)):(S.push(`L ${fe} ${te}`),S.push(`L ${fe} ${ne-35}`),S.push(`Q ${fe} ${ne} ${fe+35} ${ne}`),S.push(`L ${U-35} ${ne}`),S.push(`Q ${U} ${ne} ${U} ${ne-35}`),S.push(`L ${U} ${te+T}`))});let B=l.length-1,H=B%2===0,X=B*(b+i),D;H?B%4===2?D=q:D=q+C:D=q+C+60;let k=X+b+M,R=D+_/2,G=S.join(" "),W="gradient-zigzag-path",N=Ee(s,[0])||f,L=Ee(s,[l.length-1])||f,$=l.map((z,F)=>{let K=F/(l.length-1)*100,Q=Ee(s,[F])||f;return d("stop",{offset:`${K}%`,stopColor:Q})});y.unshift(E(De,{children:[d(ke,{children:d("linearGradient",{id:W,x1:A,y1:j,x2:k,y2:R,gradientUnits:"userSpaceOnUse",children:$})}),d(ae,{d:G,stroke:`url(#${W})`,strokeWidth:2,fill:"none",width:(l.length-1)*(b+i)+b+M*2,height:_+120})]})),y.unshift(d(je,{x:A-T,y:j-T,width:T*2,height:T*2,fill:"transparent",stroke:N,strokeWidth:2})),y.unshift(d(je,{x:k-T,y:R-T,width:T*2,height:T*2,fill:"transparent",stroke:L,strokeWidth:2}))}if(l.length>0){let I=(l.length-1)*(b+i);m.push(d(V,{indexes:[l.length],x:I+b+(i-p.width)/2,y:q-p.height-10}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(O,{children:[d(ot,{children:y}),d(ye,{children:g}),d(Ce,{children:m})]})]})};be("sequence-horizontal-zigzag",{component:SM,composites:["title","item"]});function EM(e){let{width:t,height:r,colorPrimary:n}=e,i=n,o=le.mix(n,"#000",20).toHexString(),s=le.mix(n,"#fff",50).toHexString(),a=le.mix(s,"#000",15).toHexString();function c(C,S){let M=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],T={x:0,y:S},P={x:C,y:S},A={x:C/2,y:0},j={x:C/2,y:S},B=S*.35,H=B/S,X={x:A.x*(1-H)+T.x*H,y:B},D={x:A.x,y:B},k={x:A.x*(1-H)+P.x*H,y:B},R=M.map(N=>{let L=X.x+(k.x-X.x)*N.position,$=B,z=S*N.offset;return{x:L,y:$+z,position:N.position,offset:N.offset}});R.sort((N,L)=>N.position-L.position);let G=R.filter(N=>N.x<=D.x),W=R.filter(N=>N.x>D.x);return{leftBottom:T,rightBottom:P,peak:A,centerBottom:j,snowLineY:B,leftEdge:X,centerSnow:D,rightEdge:k,leftRipples:G,rightRipples:W}}let{leftRipples:l,rightRipples:u,leftBottom:f,rightBottom:h,peak:p,centerBottom:x,leftEdge:m,centerSnow:g,rightEdge:y}=c(t,r),b=[p,m,...l,g],_=[p,g,...u,y],v=[m,...l,g,x,f],w=[g,...u,y,h,x],q=C=>C.map(S=>`${S.x},${S.y}`).join(" ");return E(ot,{...e,children:[d("polygon",{points:q(b),fill:s}),d("polygon",{points:q(_),fill:a}),d("polygon",{points:q(v),fill:i}),d("polygon",{points:q(w),fill:o})]})}function IM(e){let r={tiny:27,small:48,medium:54,large:72}[e]||54,n="#17C76F",i="#139B57",o="#737373",s=r*.7,a=r-s,c=s*.8,l=c,u=l/6,f=(l-u)/2,h=s;return E(ot,{width:l,height:r,children:[d("ellipse",{cx:c/2,cy:s/2,rx:c/2,ry:s/2,fill:n,clipPath:"inset(0 50% 0 0)"}),d("ellipse",{cx:c/2,cy:s/2,rx:c/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),d("rect",{x:f,y:h,width:u,height:a,fill:o})]})}function TM(e){let{width:t,height:r}=e,n=t/2,i=r/2,o=Math.min(t,r)*.28,s=Math.min(t,r)*.14,a=Math.min(t,r)*.07,c=0,l=i-a/2,u=a*.4,f=8,h=Array.from({length:f},(p,x)=>{let m=360/f*x;return d("rect",{x:c,y:l,width:s,height:a,rx:u,ry:u,fill:"#FFCB0E",transform:`rotate(${m}, ${n}, ${i})`})});return E(ot,{...e,children:[d("circle",{cx:n,cy:i,r:o,fill:"#FFCB0E"}),...h]})}function MM(e){return e.type==="single"?d(ot,{...e,width:54,height:36,children:d("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})}):E(ot,{...e,width:73,height:40,children:[d("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),d("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]})}var AM=e=>{let{Title:t,Item:r,data:n,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:c=300,options:l}=e,{title:u,desc:f,items:h=[]}=n,p=t?d(t,{title:u,desc:f}):null,x=[],m=[],g=[],y=[],b=h.length,_=it(l.themeConfig),v=60,w={single:{width:54,height:36},double:{width:73,height:40}},q=[],C=[],S=0,I=0;h.forEach((R,G)=>{let W=b>1?G/(b-1):0,L=(o+(s-o)*W)*1.6,$=Math.max(a,Math.min(c,L));q.push($);let z=I;C.push(z),I+=$/2,G===b-1&&(S=z+$)});let M=C[0],T=C[b-1]+q[b-1],P=T-M,A=b>1?(P-i*(b-1))/b:P,j=Y(d(r,{indexes:[0],data:n,datum:h[0],width:A})),B=32,H=s+i,X=H+B+10;h.forEach((R,G)=>{let W=[G],N=o+(s-o)*(b>1?G/(b-1):0),L=q[G],$=C[G],z=s-N,F=Ee(l,[G])||_.colorPrimary;g.push(d(EM,{colorPrimary:F,x:$,y:z,width:L,height:N}));let K=M+G*(A+i);y.push(d(qe,{x:K,y:H,width:A,height:B,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:F,backgroundColor:F,backgroundOpacity:.5,backgroundRadius:4,children:String(G+1).padStart(2,"0")})),x.push(d(r,{indexes:W,datum:R,data:n,x:K,y:X,width:A}))});let D=Y(d(V,{indexes:[0]})),k=X+j.height+10;if(h.forEach((R,G)=>{let W=[G],N=M+G*(A+i);m.push(d(Pe,{indexes:W,x:N+A/2-D.width/2,y:k})),G<h.length-1&&m.push(d(V,{indexes:[G+1],x:N+A+i/2-D.width/2,y:k}))}),b>0){let R=M;m.unshift(d(V,{indexes:[0],x:R-i/2-D.width/2,y:k}));let G=M+(b-1)*(A+i);m.push(d(V,{indexes:[b],x:G+A+i/2-D.width/2,y:k})),g.push(d(TM,{x:S-v-20,y:-35,width:v,height:v}));let W=["tiny","small","medium","large"],N={tiny:27,small:48,medium:54,large:72},L={tiny:14.85,small:26.4,medium:29.7,large:39.6},$=[],z=(K,Q,ie=5)=>$.some(fe=>!(K+Q+ie<fe.x||K>fe.x+fe.width+ie));h.forEach((K,Q)=>{let ie=C[Q],fe=q[Q],J=Q===b-1?3:Q===0?1:2;for(let ne=0;ne<J;ne++){let te=Q*100+ne*37,ve=te*17%W.length,ee=W[ve],oe=N[ee],se=L[ee],ge=0,he=0,_e=!1;for(;ge<20&&!_e;){let pe=(te*13+ge*19)%100/100,me=ie+fe*.15,Ie=ie+fe*.85-se;he=me+(Ie-me)*pe,z(he,se)||(_e=!0),ge++}if(_e){$.push({x:he,width:se});let pe=s-oe;g.push(d(O,{x:he,y:pe,children:IM(ee)}))}}});let F=Math.max(1,Math.floor(b/1.5));for(let K=0;K<F;K++){let Q=K*11+b*5+1,ie=Q%2===0?"single":"double",fe=w[ie],U=T-M-fe.width,J=M+Q*7%100/100*U,ne=Q*13%40;g.push(d(MM,{type:ie,x:J,y:ne,width:fe.width,height:fe.height}))}}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[p,E(O,{children:[d(O,{children:g}),d(O,{children:y}),d(ye,{children:x}),d(Ce,{children:m})]})]})};be("sequence-mountain",{component:AM,composites:["title","item"]});var LM=e=>{let{Title:t,Item:r,data:n,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:c}=e,{title:l,desc:u,items:f=[]}=n,h=t?d(t,{title:l,desc:u}):null;if(f.length===0)return d(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:h});let p=5,x=it(c.themeConfig),m=30,g=[],y=[],b=[],_=[],v=s??o*.6,w=o-v,q=a*1.2,C=f.length*q+(f.length-1)*i;return f.forEach((S,I)=>{let M=[I],T=I===0,P=Ee(c,[I])||x.colorPrimary,{points:A,topWidth:j,bottomWidth:B}=kM(v,q,i,f.length,I),H=cl(A,p),X=al(H,"AMOUNT",10),D=v/2,k=I*(q+i),R=(q-a)/2,G=k+R,W=D+j/2,N=D+B/2,$=W-p,z=w+p,F=a,K=$+z,Q=D-m/2,ie=k+q/2-m/2+(T?8:0),fe=N,U=K-N,J=G;b.push(d(we,{x:$,y:G,width:z,height:F,ry:"10",fill:x.colorPrimaryBg,"data-element-type":"shape"}));let ne=`${P}-pyramid-${I}`;y.push(d(ke,{children:E("linearGradient",{id:ne,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[d("stop",{offset:"0","stop-color":P}),d("stop",{offset:"100%","stop-color":le.mix(P,"#fff",40).toHexString()})]})}),d(gt,{points:X,fill:`url(#${ne})`,y:k,"data-element-type":"shape"})),_.push(d(ft,{indexes:M,x:Q,y:ie,size:m,fill:"#fff"})),g.push(d(r,{indexes:M,datum:S,data:n,x:fe,y:J,width:U,height:a,positionV:"middle"}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(O,{width:o,height:C,children:[d(O,{children:b}),d(O,{children:y}),d(O,{children:_}),d(ye,{children:g}),d(Ce,{})]})]})};function kM(e,t,r,n,i){let o=e/2,s=n*t+(n-1)*r,a=i*(t+r),c=a+t,l=a/s*e,u=c/s*e,f;if(i===0){let h={x:o,y:0},p={x:o+u/2,y:t},x={x:o-u/2,y:t};f=[h,p,x]}else{let h={x:o+l/2,y:0},p={x:o+u/2,y:t},x={x:o-u/2,y:t},m={x:o-l/2,y:0};f=[h,p,x,m]}return{points:f,topWidth:l,bottomWidth:u}}be("sequence-pyramid",{component:LM,composites:["title","item"]});var gs={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},$7=(e,t)=>`M ${e} ${t}`,wt=(e,t)=>`L ${e} ${t}`,mo=(e,t,r,n)=>`A ${e} ${e} 0 0 ${t} ${r} ${n}`,RM=(e,{roadWidth:t,innerRadius:r,outerRadius:n})=>{let i=(t+r*2)*e;return{y1:i,y2:i+t,y3:i+t+r,y4:i+t+r*2,y5:i+n*2}};function PM({i:e,direction:t,x:r,y:n,color:i,data:o,itemBounds:s,item:a,Item:c,flipped:l}){let{iconSize:u}=gs,f=t==="left",h=f?r.x4-u/2:r.x3-u/2,p=n.y3-u/2,x=f?r.x6+gs.spacing:r.x1-gs.spacing-s.width,m=n.y3-s.height/2,g=f?l?"flipped":"normal":l?"normal":"flipped";return{icon:d(Cr,{indexes:[e],x:h,y:p,size:u,fill:i}),label:d(qe,{width:40,x:f?h-50:h+u+10,y:p+u/2-15,fontSize:30,fill:i,alignHorizontal:f?"right":"left",children:String(e+1).padStart(2,"0")}),item:d(c,{indexes:[e],data:o,datum:a,x,y:m,positionH:g})}}function OM({direction:e,x:t,y:r,color:n,elements:i}){let o=e==="left";i.push(d(T7,{x:o?t.x6+10:t.x1-20,y:r.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:n,"data-element-type":"shape"}))}var $M=e=>{let{Title:t,Item:r,data:n,spacing:i=gs.spacing,options:o,flipped:s=!1}=e,{title:a,desc:c,items:l=[]}=n,u=t?d(t,{title:a,desc:c}):null,f=Y(d(r,{indexes:[0],data:n,datum:l[0],positionH:"center"})),{roadWidth:h,outerRadius:p,rowWidth:x,colorDefault:m}=gs,g=h/2,y=p-h,b=(f.width+i)*2+x,_=f.width+i,v=_+p,w=_+x-p,C=w+y+h,S=_+x/2,I=[],M=[],T=[],P=[],A=[],j=[],B=[];for(let D=0;D<l.length;D++){let k=Ee(o,[D])||m,R=D%2===0?"right":"left",G=D===0,W=D===l.length-1,N=RM(D,{roadWidth:h,innerRadius:y,outerRadius:p});if(R==="right"){let F=G?[C,N.y1]:[w,N.y1],K=[v,N.y1],Q=[v,N.y5],ie=G?[C,N.y2]:[w,N.y2],fe=[v,N.y2];if(I.push(G?$7(C,N.y1+g):wt(w,N.y1+g),wt(v,N.y1+g),mo(p-g,0,v,N.y4+g)),M.push(G?$7(...F):wt(...F),wt(...K),mo(p,0,...Q)),T.push(wt(...ie),wt(...fe),mo(y,1,...fe)),W){let U=h/2;M.push(wt(S,N.y5),wt(S,N.y5+U),wt(S+h,N.y5-U),wt(S,N.y4-U),wt(S,N.y4),wt(v,N.y4)),I.push(wt(S,N.y4+g))}}else{let F=[v,N.y2],K=[w,N.y2],Q=[w,N.y4],ie=[v,N.y1],fe=[w,N.y1];if(I.push(wt(w,N.y1+g),mo(p-g,1,w,N.y4+g)),M.push(wt(...F),wt(...K),mo(y,1,...Q)),T.push(wt(...ie),wt(...fe),mo(p,0,...fe)),W){let U=h/2;M.push(wt(S,N.y4),wt(S,N.y4-U),wt(S-h,N.y4+U),wt(S,N.y5+U),wt(S,N.y5),wt(w,N.y5)),I.push(wt(S,N.y4+g))}}OM({direction:R,x:{x1:_,x4:w,x6:C},y:N,color:k,elements:B});let{icon:L,label:$,item:z}=PM({i:D,direction:R,x:{x1:_,x3:v,x4:w,x6:C},y:N,color:k,data:n,itemBounds:f,item:l[D],Item:r,flipped:s});P.push(L),A.push($),j.push(z)}let H=[...M,...T.reverse(),"Z"],X=l.length*(h+y*2)+h*1.5;return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,E(O,{width:b,height:f.height<=p*2?X:X+f.height-p*2,children:[d(ae,{width:x,height:X,d:H.join(" "),fill:m,stroke:m,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),d(ae,{d:I.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),E(De,{children:[P,A,j,B]})]})]})};be("sequence-roadmap-vertical",{component:$M,composites:["title","item"]});var zM=e=>{let{Title:t,Item:r,data:n,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=e,{title:c,desc:l,items:u=[]}=n,f=t?d(t,{title:c,desc:l}):null,h=Qe(a),p=Y(d(V,{indexes:[0]})),x=Y(d(r,{indexes:[0],data:n,datum:u[0],positionH:"center"})),m=[],g=[],y=[],b=25,_=25;if(u.forEach((v,w)=>{let q=Math.floor(w/o),C=w%o,S=q%2===1,M=(S?o-1-C:C)*(x.width+i),T=q*(x.height+s),P=[w];if(g.push(d(r,{indexes:P,datum:v,data:n,x:M,y:T,positionH:"center"})),m.push(d(Pe,{indexes:P,x:M+(x.width-p.width)/2,y:T+x.height+10})),w===0&&m.push(d(V,{indexes:P,x:M+(x.width-p.width)/2,y:T-p.height-10})),w<u.length-1){let A=Math.floor((w+1)/o),j=(w+1)%o,X=(A%2===1?o-1-j:j)*(x.width+i);if(q===A){let k=S,R=k?X+x.width+(i-b)/2:M+x.width+(i-b)/2,G=T+x.height/2-_/2;y.push(d(ms,{x:R,y:G,width:b,height:_,colorPrimary:h,rotation:k?180:0})),m.push(d(V,{indexes:[w+1],x:R+(b-p.width)/2,y:T-p.height-10}))}else{let k=M+x.width/2-b/2,R=T+x.height+(s-_)/2;y.push(d(ms,{x:k,y:R,width:b,height:_,colorPrimary:h,rotation:90})),m.push(d(V,{indexes:[w+1],x:k+(b-p.width)/2,y:R+(_-p.height)/2}))}}}),u.length>0){let v=u.length-1,w=Math.floor(v/o),q=v%o,I=(w%2===1?o-1-q:q)*(x.width+i),M=w*(x.height+s);m.push(d(V,{indexes:[u.length],x:I+(x.width-p.width)/2,y:M+x.height+p.height+20}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,E(O,{children:[d(O,{children:y}),d(ye,{children:g}),d(Ce,{children:m})]})]})};be("sequence-snake-steps",{component:zM,composites:["title","item"]});var HM=e=>{let{Title:t,Item:r,data:n,options:i,gap:o=16,perspectiveFactor:s=.2,width:a=720}=e,{title:c,desc:l,items:u=[]}=n,f=t,h=f?d(f,{title:c,desc:l}):null;if(u.length===0){let ve=d(V,{indexes:[0],x:0,y:0});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,d(O,{children:d(Ce,{children:ve})})]})}let p=Qe(i),x=Y(d(V,{indexes:[0]})),m=Y(d(r,{indexes:[0],data:n,datum:u[0]||{},positionH:"center"})),g=12,y=Math.min(a*.1,100),b=Math.min(a*.45,Math.max(80,a-m.width-g-y)),_=Math.max(24,b*s*.35),v=56,w=v*.7,q=u.length>1?(v-w)/(u.length-1):0,C=Math.max(x.height+_+20,_+28),S=b/2,I=b+y+g,M=u.map((ve,ee)=>v-q*ee),T=u.map((ve,ee)=>Math.max(_*(1-ee*.05),_*.7)),P=[],A=[],j=u.length-1;P[j]=C,A[j]=0;for(let ve=j-1;ve>=0;ve-=1)A[ve]=A[ve+1]+T[ve]+o,P[ve]=P[ve+1]+T[ve]+M[ve+1]+o;let B=A[0]||T[0]||_,H=b*(.55+s*.1),X=b-H,D=u.map((ve,ee)=>{let oe=B===0?1:A[ee]/B;return H+X*oe}),k=D.map(ve=>{let ee=S+ve/2;return Math.max(0,I-g-ee)}),R=[],G=[],W=[],N=[],L=[],$=0,z=(P[0]||C)+(M[0]||v),F=z-$,K=35,ie=(D[j]||H)*.8,fe=ie*.65,U=(D[0]||b)*.9;L.push(d(gt,{points:[{x:S,y:$},{x:S+ie/2,y:$+K},{x:S+fe/2,y:$+K},{x:S+U/2,y:z},{x:S-U/2,y:z},{x:S-fe/2,y:$+K},{x:S-ie/2,y:$+K}],fill:"rgba(0,0,0,0.12)",width:U,height:F,"data-element-type":"shape"}));let J=P[j]+M[j]/2;u.forEach((ve,ee)=>{let oe=[ee],se=D[ee],ge=T[ee],he=S-se/2,_e=M[ee],pe=P[ee],me=pe-ge,Ie=pe+_e/2,Re=Ee(i,oe)||p;R.push(d(we,{x:he,y:pe,width:se,height:_e,fill:Re,"data-element-type":"shape"}),d(gt,{points:[{x:he,y:pe},{x:he+se,y:pe},{x:he+se-ge/2,y:me},{x:he+ge/2,y:me}],fill:Re,opacity:"0.3",width:se,height:ge,"data-element-type":"shape"}),d(qe,{x:he,y:pe,width:se,height:_e,fontSize:_e/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(ee+1).padStart(2,"0")}));let Ze=he+se,Oe=Ie,Te=k[ee],Xe=Ze+Te;N.push(d(ae,{d:`M ${Ze} ${Oe} L ${Xe} ${Oe}`,stroke:Re,strokeWidth:2,fill:"none",width:Te,height:2,"data-element-type":"shape"}),d(ae,{d:`M ${Xe} ${Oe} L ${Xe} ${Oe}`,stroke:Re,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));let xe=Ie-m.height/2;G.push(d(r,{indexes:oe,datum:ve,data:n,x:I,y:xe,positionV:"middle"})),W.push(d(Pe,{indexes:oe,x:I+m.width+10,y:xe+m.height/2-x.height/2})),ee===0?W.push(d(V,{indexes:[0],x:I+(m.width-x.width)/2,y:xe-x.height-12})):W.push(d(V,{indexes:oe,x:I+(m.width-x.width)/2,y:(J+Ie)/2-x.height/2})),J=Ie});let te=J-m.height/2;return W.push(d(V,{indexes:[u.length],x:I+(m.width-x.width)/2,y:te+m.height+12})),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,E(O,{children:[d(O,{children:L}),d(O,{children:R}),d(O,{children:N}),d(ye,{children:G}),d(Ce,{children:W})]})]})};be("sequence-stairs-front",{component:HM,composites:["title","item"]});var FM=e=>{let{Title:t,Item:r,data:n,gap:i=40,options:o}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Qe(o),f=Y(d(V,{indexes:[0]})),h=Y(d(r,{indexes:[0],data:n,datum:c[0],positionH:"center"})),p=[],x=[],m=[],g=25,y=25,b=Math.max(f.height+20,30);if(c.forEach((_,v)=>{let w=v*(h.width+i),q=[v];if(x.push(d(r,{indexes:q,datum:_,data:n,x:w,y:b,positionH:"center"})),p.push(d(Pe,{indexes:q,x:w+(h.width-f.width)/2,y:b+h.height+10})),v===0?p.push(d(V,{indexes:q,x:w+(h.width-f.width)/2,y:b-f.height-10})):p.push(d(V,{indexes:q,x:w-i/2-f.width/2,y:b-f.height-10})),v<c.length-1){let C=w+h.width+(i-g)/2,S=b+h.height/2-y/2;m.push(d(ms,{x:C,y:S,width:g,height:y,colorPrimary:u}))}}),c.length>0){let _=(c.length-1)*(h.width+i);p.push(d(V,{indexes:[c.length],x:_+h.width+(i-f.width)/2,y:b-f.height-10}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(O,{children:m}),d(ye,{children:x}),d(Ce,{children:p})]})]})};be("sequence-steps",{component:FM,composites:["title","item"]});var jM=e=>{let{Title:t,Item:r,data:n,gap:i=10,options:o}=e,{title:s,desc:a,items:c=[]}=n,l=t?d(t,{title:s,desc:a}):null,u=Qe(o),f=Fa(o),h=Y(d(V,{indexes:[0]})),p=Y(d(r,{indexes:[0],data:n,datum:c[0],positionH:"normal"})),x=[],m=[],g=[],y=10,b=y+70+10,_=b+30,v=6;if(c.length>1){let w=p.height/2+v,q=(c.length-1)*(p.height+i)+p.height/2-v,C=`M ${b} ${w} L ${b} ${q}`,S="gradient-timeline-line",I=q-w,M=c.map((T,P)=>{let j=(P*(p.height+i)+p.height/2-w)/I*100,B=Ee(o,[P]);return d("stop",{offset:`${j}%`,stopColor:B||u})});g.push(E(De,{children:[d(ke,{children:d("linearGradient",{id:S,x1:b,y1:w,x2:b,y2:q,gradientUnits:"userSpaceOnUse",children:M})}),d(ae,{d:C,stroke:`url(#${S})`,strokeWidth:2,width:1,height:q-w})]}))}if(c.forEach((w,q)=>{let C=q*(p.height+i),S=C+p.height/2,I=[q];g.push(d(qe,{x:y,y:S,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:f[q%f.length],children:`STEP ${q+1}`})),m.push(d(r,{indexes:I,datum:w,data:n,x:_,y:C,positionH:"normal"})),g.push(d(je,{x:b-v,y:S-v,width:v*2,height:v*2,fill:f[q%f.length]})),x.push(d(Pe,{indexes:I,x:_-h.width-10,y:C+(p.height-h.height)/2})),q===0?x.push(d(V,{indexes:I,x:_+(p.width-h.width)/2,y:C-h.height-10})):x.push(d(V,{indexes:I,x:_+(p.width-h.width)/2,y:C-i/2-h.height/2}))}),c.length>0){let w=(c.length-1)*(p.height+i);x.push(d(V,{indexes:[c.length],x:_+(p.width-h.width)/2,y:w+p.height+10}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[l,E(O,{children:[d(ot,{children:g}),d(ye,{children:m}),d(Ce,{children:x})]})]})};be("sequence-timeline",{component:jM,composites:["title","item"]});var dg=120,fg=108,ll=30,DM="M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",BM="M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",NM="M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",z7=E("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[d("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),d("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),d("feColorMatrix",{in:"blurred",type:"matrix",values:`0 0 0 0 0
|
|
145
|
-
0 0 0 0 0
|
|
146
|
-
0 0 0 0 0
|
|
147
|
-
0 0 0 0.3 0`,result:"shadow"}),d("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]}),GM=e=>{let{Title:t,Item:r,data:n,options:i,gap:o=80}=e,s=dg,a=fg,{title:c,desc:l,items:u=[]}=n,f=t?d(t,{title:c,desc:l}):null,h=Qe(i);if(u.length===0){let w=d(V,{indexes:[0],x:0,y:0});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(ke,{children:z7}),f,d(O,{children:d(Ce,{children:w})})]})}let p=Y(d(r,{indexes:[0],data:n,datum:u[0],positionH:"center"})),x=Y(d(V,{indexes:[0]})),m=[],g=[],y=[],b=1/0,_=-1/0,v=p.height+ll+a;return u.forEach((w,q)=>{let C=[q],S=Ee(i,C),I=q%2===0,M=q*(s+o),T=I?0:p.height+ll;b=Math.min(b,T);let P=`puck-gradient-middle-${q}`,A=`puck-gradient-bottom-${q}`;y.push(E(O,{x:M,y:T,id:`puck-${q}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[E(ke,{children:[E("linearGradient",{id:P,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:S||h}),d("stop",{offset:"1",stopColor:S||h,stopOpacity:"0.6"})]}),E("linearGradient",{id:A,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0",stopColor:"#F4F4FB"}),d("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),E(ot,{width:dg,height:fg,children:[d(ae,{d:DM,fill:S||h}),d(ae,{d:BM,fill:`url(#${P})`}),d(ae,{d:NM,fill:`url(#${A})`}),d("rect",{fill:"transparent",y:fg,width:dg,height:20})]}),d("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:q+1})]}));let j=M+(s-p.width)/2,B=I?T+a+ll:T-ll-p.height;if(_=Math.max(_,B+p.height),g.push(d(r,{indexes:C,datum:w,data:n,x:j,y:B,positionH:"center"})),m.push(d(Pe,{indexes:C,x:j+p.width-x.width/2,y:B+p.height-x.height/2})),q===0&&m.push(d(V,{indexes:[0],x:M+s/2-x.width/2-(o+s)/2,y:T+a/2-x.height/2})),q<u.length-1){let X=(q+1)%2===0?0:v,D=M+s+o/2-x.width/2,k=(T+a/2+X+a/2)/2-x.height/2;m.push(d(V,{indexes:[q+1],x:D,y:k}))}else m.push(d(V,{indexes:[u.length],x:M+s+o/2-x.width/2,y:T+a/2-x.height/2}))}),E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(ke,{children:z7}),f,E(O,{x:0,y:0,children:[d(O,{children:y}),d(ye,{children:g}),d(Ce,{children:m})]})]})};be("sequence-zigzag-pucks-3d",{component:GM,composites:["title","item"]});var WM=240,XM=130,YM=105,fi=12,VM=120,H7=50,UM=.6,KM="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",F7="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",j7=70+fi/2,D7=40+fi/2,B7=d("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),ZM=e=>{let{Title:t,Item:r,data:n,options:i,dx:o=WM,dy:s=XM,iconSize:a=30}=e,{title:c,desc:l,items:u=[]}=n,f=t?d(t,{title:c,desc:l}):null,h=Qe(i);if(u.length===0){let j=d(V,{indexes:[0],x:0,y:0});return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d(ke,{children:B7}),f,d(O,{children:d(Ce,{children:j})})]})}let p=Y(d(r,{indexes:[0],data:n,datum:u[0]})),x=Y(d(V,{indexes:[0]})),m=[],g=[],y=[],b=[],_=[],v=0,w=0,q="",C=1/0,S=-1/0,I=1/0,M=1/0,T=[];u.forEach((j,B)=>{let H=v,X=w;T.push({x:H,y:X}),C=Math.min(C,X);let D=H-j7,k=X-D7;I=Math.min(I,D),M=Math.min(M,k);let R=B%2===0;B<u.length-1&&(v+=o,w=R?w+s:w-s)});let P=Math.max(0,-I),A=Math.max(0,-M);if(v=0,w=0,u.forEach((j,B)=>{let H=[B],X=T[B],D=X.x+P,k=X.y+A,R=Ee(i,H),G=Math.max(0,D-j7),W=Math.max(0,k-D7),N=10,L=H7+10,{colorPrimaryBg:$}=it({colorPrimary:R});if(b.push(E(ot,{x:G,y:W,width:140,height:110,children:[d(je,{x:N,y:L,width:VM,height:H7,fill:R||h,filter:"url(#sequence-zigzag-glow-filter)",opacity:UM}),d(ae,{d:KM,fill:R||h}),d(ae,{d:F7,fill:"#fff"}),d(ae,{d:F7,fill:$||$})]})),j.icon){let K=Math.max(0,D-a/2-fi/2),Q=Math.max(0,k-a/2-fi/2);_.push(d(ft,{x:K,y:Q,size:a,indexes:H,fill:R}))}let z=D-p.width/2-fi/2,F=Math.max(0,k+YM-fi/2);if(S=Math.max(S,F+p.height),B===0?q=`M ${D} ${k}`:q+=` L ${D} ${k}`,g.push(d(r,{indexes:H,datum:j,data:n,x:z,y:F})),m.push(d(Pe,{indexes:H,x:Math.max(0,z+p.width-x.width/2),y:Math.max(0,F+p.height-x.height/2)})),B<u.length-1){let K=T[B+1],Q=K.x+P,ie=K.y+A,fe=Math.max(0,D+(Q-D)/2-x.width/2),U=Math.max(0,k+(ie-k)/2-x.height/2);m.push(d(V,{indexes:[B+1],x:fe,y:U}))}else m.push(d(V,{indexes:[u.length],x:Math.max(0,z+p.width+o/4),y:Math.max(0,F+p.height/2-x.height/2)}))}),q){let j=(T[T.length-1]?.x||0)+P;y.push(d(ae,{d:q,stroke:"#f3f2f1",strokeWidth:fi,fill:"none",width:j,height:S-Math.min(C+A,0)}))}return E(Z,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[d(ke,{children:B7}),f,E(O,{x:0,y:0,children:[d(O,{children:[...y,...b,..._]}),d(ye,{children:g}),d(Ce,{children:m})]})]})};be("sequence-zigzag-steps",{component:ZM,composites:["title","item"]});var Dt=class{init(t){Object.assign(this,t)}};var go=class{constructor(t,r={}){this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=n=>{this.pointerId=n.pointerId,this.startX=n.clientX,this.startY=n.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=n=>{if(this.pointerId===null||n.pointerId!==this.pointerId)return;let i=n.clientX-this.startX,o=n.clientY-this.startY;Math.hypot(i,o)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=n=>{this.pointerId!==null&&n.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)},this.element=t,this.delay=r.delay||300,this.dragThreshold=r.dragThreshold??4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{this.singleClickCallback?.(t)},this.delay)}handleDoubleClick(t){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.doubleClickCallback?.(t)}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}};function QM(e){return e.getScreenCTM()?.inverse()||new DOMMatrix}function pn(e,t,r){return new DOMPoint(t,r).matrixTransform(QM(e))}function hr(e,t){let r=t.getBoundingClientRect(),i=[{x:r.x,y:r.y},{x:r.x+r.width,y:r.y},{x:r.x,y:r.y+r.height},{x:r.x+r.width,y:r.y+r.height}].map(l=>pn(e,l.x,l.y)),o=Math.min(...i.map(l=>l.x)),s=Math.max(...i.map(l=>l.x)),a=Math.min(...i.map(l=>l.y)),c=Math.max(...i.map(l=>l.y));return new DOMRect(o,a,s-o,c-a)}function hg(e,t){if(t.length===0)return e.data;let r=ln(e,t);return r.children||(r.children=[]),r.children}function N7(e,t="data.items"){return e.reduce((r,n,i)=>i===0?`${r}[${n}]`:`${r}.children[${n}]`,t)}function ul(e){return JM(e)?.dataset.indexes?.split(",").map(Number)||[]}function JM(e){return er(e)?zi(e):e}function Zn(e){if(!e)return null;let t=[eA],r=e;for(let n of t){let i=n(r);if(i){r=i;break}}return pg(r)}function pg(e){if(!e)return null;let t=[tA,rA];for(let r of t){let n=r(e);if(n)return n}return $x(e)||Wt(e)||er(e)?e:null}var eA=e=>{let t=r=>r?zx(r)||Hx(r):!1;return t(e)?e.parentElement:t(e.parentElement)?e.parentElement?.parentElement:null},tA=e=>Fx(e)&&Ta(e.parentElement)?e.parentElement:null,rA=e=>{let t=e.parentElement;return pd(t)?t:ns(e)?e:null};var xo=class{constructor(){this.extensions=new Map}register(t,r,n){if(!n?.override&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,r)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((r,n)=>{t(r,n)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&typeof t.dispose=="function"&&t.dispose()}),this.extensions.clear()}};var nA=e=>{if(!e||!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;let t=e.tagName.toLowerCase();return t==="input"||t==="textarea"||t==="select"},iA=e=>{let t=e.toLowerCase().split("+").map(n=>n.trim()).filter(Boolean),r={key:""};if(t.forEach(n=>{n==="shift"?r.shift=!0:n==="alt"||n==="option"?r.alt=!0:n==="ctrl"||n==="control"?r.ctrl=!0:n==="meta"||n==="cmd"||n==="command"?r.meta=!0:n==="mod"?r.mod=!0:r.key=n}),!r.key)throw new Error(`Invalid hotkey combo: "${e}"`);return r},oA=(e,t)=>{if(e.key.toLowerCase()!==t.key)return!1;let n=t.mod??!1,i=e.metaKey,o=e.ctrlKey,s=i||o,a=(c,l)=>c===void 0?!l:c===l;return n&&!s?!1:n?!(!a(t.shift,e.shiftKey)||!a(t.alt,e.altKey)||t.meta!==void 0&&!a(t.meta,i)||t.ctrl!==void 0&&!a(t.ctrl,o)):!(!a(t.meta,i)||!a(t.ctrl,o)||!a(t.shift,e.shiftKey)||!a(t.alt,e.altKey))},dl=class{constructor(t={}){this.bindings=[],this.handleKeydown=i=>{if(i instanceof KeyboardEvent&&!i.defaultPrevented&&!nA(i.target)&&!(this.filter&&!this.filter(i))){for(let o of this.bindings)if(o.combos.some(s=>oA(i,s))){o.handler(i);break}}};let{target:r=document,filter:n}=t;this.target=r,this.filter=n,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,r){let i={combos:(Array.isArray(t)?t:[t]).map(o=>iA(o)),handler:r};return this.bindings.push(i),()=>this.unbind(i)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(r=>r!==t)}};var yo=class extends Dt{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&t.button===0&&(this.isTextSelectionTarget(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,async()=>new Promise(r=>{this.completeInteraction=r;let n=this.editor.getDocument();this.startPoint=pn(n,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;let r=this.editor.getDocument(),n=pn(r,t.clientX,t.clientY),i=n.x-this.startPoint.x,o=n.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,n)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,n)},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let r=null;if(this.dragging){t.preventDefault(),t.stopPropagation();let s=this.editor.getDocument(),a=pn(s,t.clientX,t.clientY);r=this.updateBrush(this.startPoint,a),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;let n=this.shiftKey;if(this.shiftKey=!1,!r){this.completeInteraction?.(),this.completeInteraction=void 0;return}let i=this.collectSelection(r);if(this.completeInteraction?.(),this.completeInteraction=void 0,i.length===0){n||this.interaction.clearSelection();return}let o=n?"add":"replace";this.interaction.select(i,o)}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush?this.brush:(this.brush=this.interaction.appendTransientElement(Se("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"})),this.brush)}updateBrush(t,r){if(!this.brush)return null;let n=Math.min(t.x,r.x),i=Math.min(t.y,r.y),o=Math.abs(t.x-r.x),s=Math.abs(t.y-r.y);return Ve(this.brush,{x:n,y:i,width:o,height:s}),{x:n,y:i,width:o,height:s}}clearBrush(){this.brush?.remove(),this.brush=void 0}collectSelection(t){let r=this.editor.getDocument(),n=Array.from(r.querySelectorAll("[data-element-type]")),i=(s,a)=>{let c=s.x+s.width,l=s.y+s.height,u=a.x+a.width,f=a.y+a.height;return!(c<a.x||u<s.x||l<a.y||f<s.y)},o=new Set;return n.reduce((s,a)=>{let c=pg(a);if(!c||o.has(c))return s;let l=hr(r,c),u={x:l.x,y:l.y,width:l.width,height:l.height};return i(t,u)&&(s.push(c),o.add(c)),s},[])}hasElementAtStart(t){return t instanceof Element?Zn(t)?!0:!!t.closest?.("[data-element-type]"):!1}isTextSelectionTarget(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;let r=t.tagName.toLowerCase();return r==="input"||r==="textarea"}};var bo=class extends Dt{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{t.key==="Shift"&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{t.key==="Shift"&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{t.key==="Escape"&&this.interaction.clearSelection()}}init(t){super.init(t);let{editor:r,interaction:n}=this;this.clickHandler=new go(r.getDocument(),{delay:0});let i=o=>{n.isActive()&&n.executeExclusiveInteraction(this,async()=>{let s=Zn(o.target);Aa(s)||(this.shiftKey?s&&(n.isSelected(s)?n.select([s],"remove"):n.select([s],"add")):s?n.select([s],"replace"):n.clearSelection())})};this.clickHandler.onClick(i),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){this.clickHandler?.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}};var fl=class{constructor(t){this.commands=t}async apply(t){for(let r of this.commands)await r.apply(t)}async undo(t){for(let r=this.commands.length-1;r>=0;r--)await this.commands[r].undo(t)}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}};var $t=class{constructor(t,r,n){this.element=t,this.modified=r;let i=sA(t,r);this.original=aA(i,n)}async apply(t){G7(this.element,this.modified),t.updateElement(this.element,this.modified)}async undo(t){this.original&&(G7(this.element,this.original),t.updateElement(this.element,this.original))}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}};function G7(e,t){Wt(e)?hd(e,t):er(e)?Yx(e,void 0,t.attributes):t.attributes&&Ve(e,t.attributes)}function sA(e,t){let r=Object.keys(t.attributes||{}),n=_t(e,r,!1),i=s=>{s&&r.forEach(a=>{a in s&&(n[a]=s[a])})},o={...t,attributes:n};if(Wt(e)){let{attributes:s}=is(e);i(s)}else if(er(e)){if(!zi(e))return;i(os(e))}return o}function aA(e,t){if(!e)return t;if(!t)return e;let r={...e.attributes||{},...t.attributes||{}};return{...e,...t,attributes:Object.keys(r).length?r:void 0}}var hl=class{constructor(t,r){this.options=t,this.original=r}async apply(t){let r=t.getOptions();this.original||(this.original=r),t.updateOptions({...r,...this.options})}async undo(t){this.original&&t.updateOptions(this.original)}serialize(){return{type:"update-options",options:this.options,original:this.original}}};var pl=class{constructor(t,r,n){this.element=t,this.originalText=n??Oi(t),this.modifiedText=r}async apply(t){this.originalText!==this.modifiedText&&(Ia(this.element,this.modifiedText),W7(t,this.element,this.modifiedText))}async undo(t){this.originalText!==this.modifiedText&&(Ia(this.element,this.originalText),W7(t,this.element,this.originalText))}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}};function W7(e,t,r){let n=$i(t);if(n.startsWith("item-")){let i=n.replace("item-",""),o=ul(t);e.updateItemDatum(o,{[i]:r})}else e.updateData(n,r)}var _o=class extends Dt{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);let{editor:r,commander:n,interaction:i}=t;this.clickHandler=new go(r.getDocument()).onDoubleClick(o=>{i.isActive()&&i.executeExclusiveInteraction(this,async()=>{let s=Zn(o.target);if(s&&Wt(s)){i.select([s],"replace");let a=Oi(s),c=await new Promise(l=>{let u=this.listenSelectionChange(s);lA(s,{cursorPosition:{clientX:o.clientX,clientY:o.clientY},onBlur:l,onCancel:l}),this.detachSelectionListener=u});n.execute(new pl(s,c,a))}})})}destroy(){this.clickHandler?.destroy(),this.detachSelectionListener?.()}listenSelectionChange(t){let r=({next:n})=>{if(!n.includes(t)){this.detachSelectionListener?.(),this.detachSelectionListener=void 0;let i=hn(t);i&&i.blur()}};return this.emitter.on("selection:change",r),()=>this.emitter.off("selection:change",r)}},cA="infographic-inline-text-editor-style",ml="infographic-inline-text-editor";function lA(e,t){let r=hn(e);r&&(uA(),new mg(r,t).start())}var mg=class{constructor(t,r){this.entity=t,this.options=r,this.handlePaste=n=>{n.clipboardData&&(n.preventDefault(),this.insertPlainText(n.clipboardData.getData("text/plain")))},this.handleKeydown=n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.insertPlainText(`
|
|
148
|
-
`))},this.handleInput=()=>{this.normalizeSpanContent(),this.options?.onInput?.(this.getText())},this.handleBlur=()=>{this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(ml),this.normalizeSpanContent(),this.options?.onBlur?.(this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(ml),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){let r=window.getSelection();if(!r)return;r.rangeCount||this.placeCaretAtEnd();let n=r.rangeCount?r.getRangeAt(0):document.createRange();n.deleteContents();let i=document.createTextNode(t);n.insertNode(i),n.setStartAfter(i),n.setEndAfter(i),r.removeAllRanges(),r.addRange(n),this.normalizeSpanContent(),this.options?.onInput?.(this.getText())}normalizeSpanContent(){if(this.entity.childNodes.length===1&&this.entity.firstChild?.nodeType===Node.TEXT_NODE)return;let t=this.getText();this.entity.textContent=t}placeCaretAtClickPosition(){let t=window.getSelection();if(!t)return;let r=this.getRangeFromPoint();if(r){t.removeAllRanges(),t.addRange(r);return}this.placeCaretAtEnd()}getRangeFromPoint(){let{cursorPosition:t}=this.options||{};if(!t)return null;let{clientX:r,clientY:n}=t,i=document,o=i.caretRangeFromPoint?.(r,n)??(()=>{let s=i.caretPositionFromPoint?.(r,n);if(!s)return null;let a=document.createRange();return a.setStart(s.offsetNode,s.offset),a.collapse(!0),a})();return!o||!this.entity.contains(o.startContainer)?null:o}placeCaretAtEnd(){let t=window.getSelection();if(!t)return;let r=document.createRange();r.selectNodeContents(this.entity),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}getText(){return this.entity.textContent||""}};function uA(){At(cA,`
|
|
149
|
-
.${ml} {
|
|
150
|
-
margin: 0;
|
|
151
|
-
padding: 0;
|
|
152
|
-
box-sizing: border-box;
|
|
153
|
-
background-color: transparent;
|
|
154
|
-
outline: none;
|
|
155
|
-
cursor: text;
|
|
156
|
-
}
|
|
157
|
-
.${ml}::selection {
|
|
158
|
-
background-color: #b3d4fc;
|
|
159
|
-
}
|
|
160
|
-
`)}var vo=class extends Dt{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive()||t.pointerType==="mouse"&&t.button!==0)return;let r=Zn(t.target);if(!r||Aa(r))return;let n=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=pn(n,t.clientX,t.clientY),this.dragging=!1,this.startTarget=r;let i=this.interaction.isSelected(r);this.selectionForDrag=i?this.interaction.getSelection():[r],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;let r=this.editor.getDocument(),n=pn(r,t.clientX,t.clientY),i=n.x-this.startPoint.x,o=n.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;if(!this.startDrag()){this.reset();return}this.dragging=!0}let a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);t.preventDefault(),t.stopPropagation(),this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();let r=this.editor.getDocument(),n=pn(r,t.clientX,t.clientY),i=n.x-this.startPoint.x,o=n.y-this.startPoint.y;if((this.dragging||Math.hypot(i,o)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();let a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.commitTranslation(a.dx,a.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget||(this.willReplaceSelection&&this.interaction.select([this.startTarget],"replace"),this.dragItems=this.selectionForDrag.filter(r=>Wt(r)).map(r=>this.createDragItem(r)).filter(Boolean),this.dragItems.length===0))return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,async()=>new Promise(r=>{this.completeInteraction=r,t=!0})),this.exclusiveStarted=t,t}applyTranslation(t,r){this.dragItems.forEach(n=>{if(n.mode==="attr"){let i=n.startX+t,o=n.startY+r,s={x:i,y:o};n.hasDataX&&(s["data-x"]=i),n.hasDataY&&(s["data-y"]=o),Ve(n.element,s)}else{let i=this.composeTransform(n.startX+t,n.startY+r,n.restTransform);Ve(n.element,{transform:i})}})}commitTranslation(t,r){if(Math.abs(t)<1e-6&&Math.abs(r)<1e-6)return;let n=this.dragItems.map(i=>{if(i.mode==="attr"){let a=i.startX+t,c=i.startY+r,l={x:a,y:c},u={};return i.hasX?u.x=i.startX:u.x=null,i.hasY?u.y=i.startY:u.y=null,i.hasDataX&&(l["data-x"]=a,u["data-x"]=i.startX),i.hasDataY&&(l["data-y"]=c,u["data-y"]=i.startY),new $t(i.element,{attributes:l},{attributes:u})}let o=this.composeTransform(i.startX+t,i.startY+r,i.restTransform),s=i.originalTransform!==void 0?i.originalTransform:null;return new $t(i.element,{attributes:{transform:o}},{attributes:{transform:s}})});n.length&&this.commander.executeBatch(n)}createDragItem(t){let r=this.getTransformInfo(t);if(r)return{element:t,mode:"transform",startX:r.x,startY:r.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:r.rest,originalTransform:r.original};let{x:n,y:i,hasX:o,hasY:s,hasDataX:a,hasDataY:c}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:n,startY:i,hasX:o,hasY:s,hasDataX:a,hasDataY:c}}getAttrInfo(t){let r=this.editor.getDocument(),{x:n,y:i}=hr(r,t),o=_t(t,["x","y","data-x","data-y"],!1),s=o.x!==null&&o.x!==void 0,a=o.y!==null&&o.y!==void 0,c=o["data-x"]!==null&&o["data-x"]!==void 0,l=o["data-y"]!==null&&o["data-y"]!==void 0,u=(y,b)=>{let _=y!=null?Number(y):NaN;return Number.isFinite(_)?_:b},f=u(o.x,NaN),h=u(o.y,NaN),p=u(o["data-x"],NaN),x=u(o["data-y"],NaN),m=Number.isFinite(f)?f:Number.isFinite(p)?p:n,g=Number.isFinite(h)?h:Number.isFinite(x)?x:i;return{x:m,y:g,hasX:s,hasY:a,hasDataX:c,hasDataY:l}}getTransformInfo(t){let r=t.getAttribute("transform");if(r===null)return null;let n=r.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!n)return{x:0,y:0,rest:r,original:r};let i=Number(n[1])||0,o=n[2]!==void 0&&Number(n[2])||0,s=r.replace(n[0],"").trim();return{x:i,y:o,rest:s,original:r}}composeTransform(t,r,n){let i=`translate(${t}, ${r})`;return n&&n.length?`${i} ${n}`:i}emitGeometryChange(){let t=this.dragItems[0]?.element;if(!t)return;let r=hr(this.editor.getDocument(),t);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:t,rect:r})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,this.completeInteraction?.(),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;let r=this.editor.getDocument(),n=t.map(i=>hr(r,i));return zr(n)}collectGuideCandidates(t){let r=this.editor.getDocument(),n=new Set(t),i=Array.from(r.querySelectorAll("[data-element-type]")).filter(a=>!n.has(a)),o=[],s=[];return i.forEach(a=>{let{x:c,y:l,width:u,height:f}=hr(r,a);o.push(c,c+u/2,c+u),s.push(l,l+f/2,l+f)}),{vertical:o,horizontal:s}}getSnappedDelta(t,r){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:r};let n={x:this.startBounds.x+t,y:this.startBounds.y+r,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([n.x,n.x+n.width/2,n.x+n.width],this.guideCandidates.vertical),o=this.getSnapOffset([n.y,n.y+n.height/2,n.y+n.height],this.guideCandidates.horizontal);return{dx:t+(i?.offset||0),dy:r+(o?.offset||0),snapX:i,snapY:o}}getSnapOffset(t,r,n=5){let i=null;return t.forEach(o=>{r.forEach(s=>{let a=s-o;Math.abs(a)<=n&&(!i||Math.abs(a)<Math.abs(i.offset))&&(i={offset:a,at:s})})}),i||void 0}ensureGuideLine(t){let r=t==="vertical"?this.guideVertical:this.guideHorizontal;if(r)return r;let n=this.interaction.appendTransientElement(Se("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return t==="vertical"?this.guideVertical=n:this.guideHorizontal=n,n}updateGuides(t){let r=this.editor.getDocument(),{width:n,height:i}=r.viewBox.baseVal;if(t.snapX){let o=this.ensureGuideLine("vertical");Ve(o,{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){let o=this.ensureGuideLine("horizontal");Ve(o,{x1:0,y1:t.snapY.at,x2:n,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){this.guideVertical?.remove(),this.guideHorizontal?.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}};var wo=class extends Dt{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=async t=>{t.preventDefault(),await this.commander.undo()},this.handleRedo=async t=>{t.preventDefault(),await this.commander.redo()}}init(t){super.init(t),this.hotkey=new dl({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){this.hotkey?.destroy()}};var qo=class extends Dt{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);let{emitter:r}=t;r.on("selection:change",this.handleSelectionChanged),r.on("selection:geometrychange",this.handleGeometryChanged),r.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();let{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){if(t.length===1&&Wt(t[0])){this.clearMasks();return}this.drawElementMasks(t),this.drawCombinedBoundsMask(t)}drawElementMasks(t){let r=0;for(;r<t.length;r++){let{x:n,y:i,width:o,height:s}=hr(this.editor.getDocument(),t[r]),a={x:n,y:i,width:o,height:s,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},c=this.highlightMasks[r];c?Ve(c,a):this.highlightMasks[r]=this.interaction.appendTransientElement(Se("rect",a))}for(;r<this.highlightMasks.length;r++)this.highlightMasks[r].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){if(t.length<2){this.combinedBoundsMask?.remove(),this.combinedBoundsMask=void 0;return}let n={...zr(t.map(i=>hr(this.editor.getDocument(),i))),fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"};this.combinedBoundsMask?Ve(this.combinedBoundsMask,n):this.combinedBoundsMask=this.interaction.appendTransientElement(Se("rect",n))}clearMasks(){this.highlightMasks.forEach(t=>t.remove()),this.highlightMasks=[],this.combinedBoundsMask?.remove(),this.combinedBoundsMask=void 0}};var X7=1,dA=-5e3,fA=5e3,Co=class extends Dt{constructor(){super(...arguments),this.name="zoom-wheel",this.wheelListener=t=>{if(!this.interaction.isActive()||!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let r=t.deltaY>0?1.1:.9,i=this.state.getOptions().padding??0,o=ar(i),a=this.editor.getDocument().getBBox(),c=o.map(g=>c1((g===0?1:g)*r,dA,fA)),[l,u,f,h]=c,p=a.width+h+u,x=a.height+l+f;if(p<=X7||x<=X7)return;let m=new hl({padding:c});this.commander.execute(m)}}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener)}};var Qn=class{init(t){Object.assign(this,t)}};var Hr=({icon:e,onClick:t,activate:r=!1})=>{pA();let n=document.createElement("button");n.type="button",n.classList.add(xs),r&&n.setAttribute("data-activate","true"),t&&n.addEventListener("click",t);let i=e();return n.appendChild(i),Object.assign(n,{setActivate:(s=>{s?n.setAttribute("data-activate","true"):n.removeAttribute("data-activate")}).bind(n),activate:r})},xs="infographic-edit-bar-icon-btn",hA="infographic-edit-bar-icon-btn-style";function pA(){At(hA,`
|
|
161
|
-
.${xs} {
|
|
162
|
-
padding: 0;
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
justify-content: center;
|
|
166
|
-
width: 32px;
|
|
167
|
-
height: 32px;
|
|
168
|
-
font-size: 12px;
|
|
169
|
-
color: #000000d9;
|
|
170
|
-
border: none;
|
|
171
|
-
border-radius: 6px;
|
|
172
|
-
background-color: #fff;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
|
|
175
|
-
}
|
|
176
|
-
.${xs}:hover {
|
|
177
|
-
background-color: #f5f5f5;
|
|
178
|
-
}
|
|
179
|
-
.${xs}:active {
|
|
180
|
-
background-color: #d9d9d9;
|
|
181
|
-
}
|
|
182
|
-
.${xs}[data-activate="true"] {
|
|
183
|
-
background-color: #d9d9d9;
|
|
184
|
-
}
|
|
185
|
-
`)}var on="infographic-color-picker",U7=`${on}__swatches`,yl=`${on}__swatch`,K7=`${on}__controls`,bl=`${on}__input`,Z7=`${on}__format`,hi=`${on}__format-switch`,xg=`${on}__format-switch-knob`,_l=`${on}__format-switch-label`,mA="infographic-color-picker-style",gA="#1f1f1f",xA=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function bs(e){if(typeof document>"u")throw new Error("ColorPicker can only be used in the browser.");vA();let t=document.createElement("div");t.classList.add(on);let r=document.createElement("div");r.classList.add(U7),t.appendChild(r);let n=document.createElement("div");n.classList.add(K7),t.appendChild(n);let i=document.createElement("input");i.type="text",i.spellcheck=!1,i.classList.add(bl),n.appendChild(i);let o=document.createElement("div");o.classList.add(Z7),n.appendChild(o);let s=document.createElement("button");s.type="button",s.classList.add(hi),s.appendChild(V7("HEXA"));let a=document.createElement("span");a.classList.add(xg),s.appendChild(a),s.appendChild(V7("RGBA")),o.appendChild(s);let c="hexa",l=ys(e.value)??ys(gA)??{r:31,g:31,b:31,a:1},u=[];return(e.swatches?.length?e.swatches:xA).forEach(_=>{let v=ys(_);if(!v)return;let w=document.createElement("button");w.type="button",w.classList.add(yl),w.style.setProperty("--swatch-color",gl(v,"rgba")),w.dataset.colorKey=Y7(v),w.addEventListener("click",()=>{m(v)}),r.appendChild(w),u.push(w)}),s.addEventListener("click",()=>x(c==="hexa"?"rgba":"hexa",!0)),i.addEventListener("change",p),i.addEventListener("keydown",_=>{_.key==="Enter"&&p()}),g(),Object.assign(t,{setValue:_=>{let v=ys(_);if(!v){i.setAttribute("data-invalid","true");return}i.removeAttribute("data-invalid"),m(v,!1)},destroy:()=>{t.remove()}});function p(){let _=ys(i.value);if(!_){i.setAttribute("data-invalid","true");return}i.removeAttribute("data-invalid"),m(_)}function x(_,v){c!==_&&(c=_,g(),v&&e.onChange?.(gl(l,c)))}function m(_,v=!0){if(bA(l,_)){g();return}l=_,g(),v&&e.onChange?.(gl(l,c))}function g(){i.value=gl(l,c),y(),b()}function y(){let _=Y7(l);u.forEach(v=>{v.dataset.colorKey===_?v.setAttribute("data-active","true"):v.removeAttribute("data-active")})}function b(){c==="rgba"?s.setAttribute("data-format","rgba"):s.setAttribute("data-format","hexa")}}function ys(e){if(!e)return;let t=Qt(e);if(!t||typeof t.r!="number")return;let r=t;return{r:gg(r.r),g:gg(r.g),b:gg(r.b),a:J7(r.alpha??1)}}function gl(e,t){return t==="rgba"?yA(e):Q7(e)}function Q7(e){let t=xl(e.r),r=xl(e.g),n=xl(e.b),i=e.a<1?xl(Math.round(e.a*255)):"";return`#${t}${r}${n}${i}`}function yA(e){let t=_A(e.a);return`rgba(${e.r}, ${e.g}, ${e.b}, ${t})`}function Y7(e){return Q7(e).toLowerCase()}function bA(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}function J7(e){return Number.isNaN(e)?0:Math.min(1,Math.max(0,e))}function gg(e){if(Number.isNaN(e))return 0;let t=e<=1?e*255:e;return Math.round(Math.min(255,Math.max(0,t)))}function xl(e){return e.toString(16).padStart(2,"0")}function _A(e){let t=Math.round(J7(e)*100)/100;return t===1?"1":t===0?"0":t.toString()}function V7(e){let t=document.createElement("span");return t.textContent=e,t.classList.add(_l),t}function vA(){At(mA,`
|
|
186
|
-
.${on} {
|
|
187
|
-
width: 240px;
|
|
188
|
-
padding: 10px;
|
|
189
|
-
box-sizing: border-box;
|
|
190
|
-
}
|
|
191
|
-
.${U7} {
|
|
192
|
-
display: grid;
|
|
193
|
-
grid-template-columns: repeat(auto-fit, 26px);
|
|
194
|
-
gap: 6px;
|
|
195
|
-
margin-bottom: 10px;
|
|
196
|
-
}
|
|
197
|
-
.${yl} {
|
|
198
|
-
width: 24px;
|
|
199
|
-
height: 24px;
|
|
200
|
-
border-radius: 50%;
|
|
201
|
-
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
202
|
-
background: var(--swatch-color);
|
|
203
|
-
cursor: pointer;
|
|
204
|
-
padding: 0;
|
|
205
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
206
|
-
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
207
|
-
}
|
|
208
|
-
.${yl}[data-active="true"] {
|
|
209
|
-
box-shadow: 0 0 0 2px #1677ff;
|
|
210
|
-
transform: translateY(-1px);
|
|
211
|
-
}
|
|
212
|
-
.${yl}:hover {
|
|
213
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
|
|
214
|
-
}
|
|
215
|
-
.${K7} {
|
|
216
|
-
display: flex;
|
|
217
|
-
align-items: center;
|
|
218
|
-
gap: 6px;
|
|
219
|
-
}
|
|
220
|
-
.${bl} {
|
|
221
|
-
flex: 1;
|
|
222
|
-
min-width: 0;
|
|
223
|
-
height: 30px;
|
|
224
|
-
padding: 2px 6px;
|
|
225
|
-
border: 1px solid #d9d9d9;
|
|
226
|
-
border-radius: 6px;
|
|
227
|
-
background: #f5f5f5;
|
|
228
|
-
color: #262626;
|
|
229
|
-
font-size: 12px;
|
|
230
|
-
font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
231
|
-
"Liberation Mono", "Courier New", monospace;
|
|
232
|
-
box-sizing: border-box;
|
|
233
|
-
outline: none;
|
|
234
|
-
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
235
|
-
}
|
|
236
|
-
.${bl}:focus {
|
|
237
|
-
border-color: #1677ff;
|
|
238
|
-
background: #ffffff;
|
|
239
|
-
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
240
|
-
}
|
|
241
|
-
.${bl}[data-invalid="true"] {
|
|
242
|
-
border-color: #ff4d4f;
|
|
243
|
-
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);
|
|
244
|
-
}
|
|
245
|
-
.${Z7} {
|
|
246
|
-
display: inline-flex;
|
|
247
|
-
}
|
|
248
|
-
.${hi} {
|
|
249
|
-
position: relative;
|
|
250
|
-
display: grid;
|
|
251
|
-
grid-template-columns: 1fr 1fr;
|
|
252
|
-
align-items: center;
|
|
253
|
-
width: 110px;
|
|
254
|
-
height: 30px;
|
|
255
|
-
padding: 0;
|
|
256
|
-
border: 1px solid #d9d9d9;
|
|
257
|
-
border-radius: 6px;
|
|
258
|
-
background: #f5f5f5;
|
|
259
|
-
cursor: pointer;
|
|
260
|
-
overflow: hidden;
|
|
261
|
-
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
|
262
|
-
}
|
|
263
|
-
.${hi}:hover {
|
|
264
|
-
background: #ededed;
|
|
265
|
-
}
|
|
266
|
-
.${hi}:focus-visible {
|
|
267
|
-
outline: none;
|
|
268
|
-
border-color: #1677ff;
|
|
269
|
-
box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
|
|
270
|
-
}
|
|
271
|
-
.${xg} {
|
|
272
|
-
position: absolute;
|
|
273
|
-
inset: 0;
|
|
274
|
-
width: 50%;
|
|
275
|
-
background: #1677ff;
|
|
276
|
-
border-radius: 6px;
|
|
277
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
278
|
-
transition: transform 0.2s ease;
|
|
279
|
-
}
|
|
280
|
-
.${hi}[data-format="rgba"] .${xg} {
|
|
281
|
-
transform: translateX(100%);
|
|
282
|
-
}
|
|
283
|
-
.${_l} {
|
|
284
|
-
position: relative;
|
|
285
|
-
z-index: 1;
|
|
286
|
-
text-align: center;
|
|
287
|
-
font-size: 12px;
|
|
288
|
-
color: #434343;
|
|
289
|
-
user-select: none;
|
|
290
|
-
}
|
|
291
|
-
.${hi}[data-format="hexa"] .${_l}:first-child,
|
|
292
|
-
.${hi}[data-format="rgba"] .${_l}:last-child {
|
|
293
|
-
color: #ffffff;
|
|
294
|
-
}
|
|
295
|
-
`)}var Bt=(e,{viewBox:t="0 0 1024 1024",size:r="1.5em"}={})=>({fill:n="currentColor"}={})=>{let i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" width="${r}" height="${r}" fill="${n}">
|
|
296
|
-
${e.trim()}
|
|
297
|
-
</svg>`;return document.createRange().createContextualFragment(i).firstElementChild},Ar={fontFamily:Bt('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:Bt('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:Bt('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:Bt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:Bt('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:Bt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:Bt('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:Bt('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:Bt('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},sn={align:Bt('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:Bt(`
|
|
298
|
-
<path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />`),alignRight:Bt('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:Bt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:Bt('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:Bt('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:Bt('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:Bt('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:Bt('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')};var vl="infographic-edit-popover",kt=`${vl}__content`,Fr=`${vl}__arrow`,wA="infographic-edit-popover-style";function yr(e){qA();let t=e.placement??"top",r=e.closeOnOutsideClick??!0,n=Array.isArray(e.trigger)?e.trigger:[e.trigger||"hover"],i=e.mouseEnterDelay??50,o=e.mouseLeaveDelay??150,s=e.offset??8,a=8,c=7,l=typeof e.padding=="number"?`${e.padding}px`:e.padding??"4px",u=document.createElement("div");u.classList.add(vl);let f=e.target??document.createElement("div");u.appendChild(f);let h=()=>(typeof e.getContainer=="function"?e.getContainer():e.getContainer)??document.body,p=document.createElement("div");p.classList.add(kt),Ur(p,Ti),p.dataset.placement=Array.isArray(t)?t[0]:t,p.setAttribute("data-open",String(!!e.open)),p.style.setProperty("--popover-gap",`${s}px`),p.style.setProperty("--popover-arrow-size",`${a}px`),p.style.setProperty("--popover-arrow-inner-size",`${c}px`);let x=h(),m=x!==u,g=document.createElement("div");g.classList.add(Fr),p.appendChild(g);let y=document.createElement("div");y.classList.add(`${kt}-body`),y.style.padding=l,p.appendChild(y),x.appendChild(p);let b=!!e.open,_=Array.isArray(t)?t:[t],v=_[0]??"top",w=()=>{let k=f.getBoundingClientRect(),R=p.getBoundingClientRect(),G=window.scrollX||document.documentElement.scrollLeft,W=window.scrollY||document.documentElement.scrollTop,N=document.documentElement.clientWidth,L=document.documentElement.clientHeight,$=0,z=0,F=fe=>{switch(fe){case"top":return{left:G+k.left+k.width/2-R.width/2,top:W+k.top-R.height-s};case"bottom":return{left:G+k.left+k.width/2-R.width/2,top:W+k.bottom+s};case"left":return{left:G+k.left-R.width-s,top:W+k.top+k.height/2-R.height/2};case"right":default:return{left:G+k.right+s,top:W+k.top+k.height/2-R.height/2}}},K=(fe,U)=>fe>=G&&U>=W&&fe+R.width<=G+N&&U+R.height<=W+L,Q=_[0]??"top",ie=F(Q);for(let fe of _){let U=F(fe);if(ie=U,K(U.left,U.top)){Q=fe;break}}v=Q,p.dataset.placement=v,m&&({left:$,top:z}=ie,p.style.left=`${$}px`,p.style.top=`${z}px`,p.style.right="auto",p.style.bottom="auto",p.style.transform="translate(0, 0)")};m&&(p.style.position="absolute",window.addEventListener("resize",w),window.addEventListener("scroll",w,!0));let q=k=>{let R=k;typeof R=="function"&&(R=R()),y.innerHTML="",R instanceof HTMLElement?y.appendChild(R):y.textContent=R??"",w()},C=k=>{_=Array.isArray(k)?k:[k],v=_[0]??"top",w()},S=k=>{b=k,p.setAttribute("data-open",String(b)),b&&w(),b&&r?document.addEventListener("click",M,!0):document.removeEventListener("click",M,!0)},I=()=>S(!b),M=k=>{let R=k.target;!u.contains(R)&&(!m||!p.contains(R))&&S(!1)},T,P,A=n.includes("hover"),j=n.includes("click"),B=()=>{T!==void 0&&(clearTimeout(T),T=void 0),P!==void 0&&(clearTimeout(P),P=void 0)},H=()=>{A&&(B(),T=window.setTimeout(()=>S(!0),i))},X=()=>{A&&(B(),P=window.setTimeout(()=>S(!1),o))};return j&&f.addEventListener("click",I),A&&(u.addEventListener("mouseenter",H),u.addEventListener("mouseleave",X),p.addEventListener("mouseenter",H),p.addEventListener("mouseleave",X)),q(e.content),C(t),S(b),Object.assign(u,{setOpen:S,toggle:I,setContent:q,setPlacement:C,destroy:()=>{document.removeEventListener("click",M,!0),j&&f.removeEventListener("click",I),A&&(u.removeEventListener("mouseenter",H),u.removeEventListener("mouseleave",X),p.removeEventListener("mouseenter",H),p.removeEventListener("mouseleave",X),B()),m&&(window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0),p.remove()),u.remove()}})}function qA(){At(wA,`
|
|
299
|
-
.${vl} {
|
|
300
|
-
position: relative;
|
|
301
|
-
display: inline-flex;
|
|
302
|
-
}
|
|
303
|
-
.${kt} {
|
|
304
|
-
position: absolute;
|
|
305
|
-
z-index: 1200;
|
|
306
|
-
padding: 0;
|
|
307
|
-
--popover-gap: 8px;
|
|
308
|
-
--popover-arrow-size: 8px;
|
|
309
|
-
--popover-arrow-inner-size: 7px;
|
|
310
|
-
background: #fff;
|
|
311
|
-
border-radius: 8px;
|
|
312
|
-
border: 1px solid rgba(239, 240, 240, 0.9);
|
|
313
|
-
box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px;
|
|
314
|
-
opacity: 0;
|
|
315
|
-
visibility: hidden;
|
|
316
|
-
pointer-events: none;
|
|
317
|
-
transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
|
|
318
|
-
}
|
|
319
|
-
.${kt}-body {
|
|
320
|
-
padding: 4px;
|
|
321
|
-
color: #000000d9;
|
|
322
|
-
font-size: 12px;
|
|
323
|
-
line-height: 1.5;
|
|
324
|
-
}
|
|
325
|
-
.${kt}[data-open="true"] {
|
|
326
|
-
opacity: 1;
|
|
327
|
-
visibility: visible;
|
|
328
|
-
pointer-events: auto;
|
|
329
|
-
}
|
|
330
|
-
.${Fr} {
|
|
331
|
-
position: absolute;
|
|
332
|
-
width: 0;
|
|
333
|
-
height: 0;
|
|
334
|
-
}
|
|
335
|
-
.${Fr}::after {
|
|
336
|
-
content: '';
|
|
337
|
-
position: absolute;
|
|
338
|
-
width: 0;
|
|
339
|
-
height: 0;
|
|
340
|
-
}
|
|
341
|
-
.${kt}[data-placement="top"] {
|
|
342
|
-
left: 50%;
|
|
343
|
-
bottom: calc(100% + var(--popover-gap));
|
|
344
|
-
transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));
|
|
345
|
-
}
|
|
346
|
-
.${kt}[data-placement="top"] .${Fr} {
|
|
347
|
-
left: 50%;
|
|
348
|
-
bottom: calc(-1 * var(--popover-arrow-size));
|
|
349
|
-
transform: translateX(-50%);
|
|
350
|
-
border-left: var(--popover-arrow-size) solid transparent;
|
|
351
|
-
border-right: var(--popover-arrow-size) solid transparent;
|
|
352
|
-
border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
353
|
-
}
|
|
354
|
-
.${kt}[data-placement="top"] .${Fr}::after {
|
|
355
|
-
left: 50%;
|
|
356
|
-
bottom: 1px;
|
|
357
|
-
transform: translateX(-50%);
|
|
358
|
-
border-left: var(--popover-arrow-inner-size) solid transparent;
|
|
359
|
-
border-right: var(--popover-arrow-inner-size) solid transparent;
|
|
360
|
-
border-top: var(--popover-arrow-inner-size) solid #fff;
|
|
361
|
-
}
|
|
362
|
-
.${kt}[data-placement="top"][data-open="true"] {
|
|
363
|
-
transform: translate(-50%, 0);
|
|
364
|
-
}
|
|
365
|
-
.${kt}[data-placement="bottom"] {
|
|
366
|
-
left: 50%;
|
|
367
|
-
top: calc(100% + var(--popover-gap));
|
|
368
|
-
transform: translate(-50%, calc(var(--popover-gap) / 2));
|
|
369
|
-
}
|
|
370
|
-
.${kt}[data-placement="bottom"] .${Fr} {
|
|
371
|
-
left: 50%;
|
|
372
|
-
top: calc(-1 * var(--popover-arrow-size) + 2px);
|
|
373
|
-
transform: translateX(-50%);
|
|
374
|
-
border-left: var(--popover-arrow-size) solid transparent;
|
|
375
|
-
border-right: var(--popover-arrow-size) solid transparent;
|
|
376
|
-
border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
377
|
-
}
|
|
378
|
-
.${kt}[data-placement="bottom"] .${Fr}::after {
|
|
379
|
-
left: 50%;
|
|
380
|
-
top: 1px;
|
|
381
|
-
transform: translateX(-50%);
|
|
382
|
-
border-left: var(--popover-arrow-inner-size) solid transparent;
|
|
383
|
-
border-right: var(--popover-arrow-inner-size) solid transparent;
|
|
384
|
-
border-bottom: var(--popover-arrow-inner-size) solid #fff;
|
|
385
|
-
}
|
|
386
|
-
.${kt}[data-placement="bottom"][data-open="true"] {
|
|
387
|
-
transform: translate(-50%, 0);
|
|
388
|
-
}
|
|
389
|
-
.${kt}[data-placement="left"] {
|
|
390
|
-
right: calc(100% + var(--popover-gap));
|
|
391
|
-
top: 50%;
|
|
392
|
-
transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);
|
|
393
|
-
}
|
|
394
|
-
.${kt}[data-placement="left"] .${Fr} {
|
|
395
|
-
right: calc(-1 * var(--popover-arrow-size) + 1px);
|
|
396
|
-
top: 50%;
|
|
397
|
-
transform: translateY(-50%);
|
|
398
|
-
border-top: var(--popover-arrow-size) solid transparent;
|
|
399
|
-
border-bottom: var(--popover-arrow-size) solid transparent;
|
|
400
|
-
border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
401
|
-
border-right: 0;
|
|
402
|
-
}
|
|
403
|
-
.${kt}[data-placement="left"] .${Fr}::after {
|
|
404
|
-
right: 1px;
|
|
405
|
-
top: 50%;
|
|
406
|
-
transform: translateY(-50%);
|
|
407
|
-
border-top: var(--popover-arrow-inner-size) solid transparent;
|
|
408
|
-
border-bottom: var(--popover-arrow-inner-size) solid transparent;
|
|
409
|
-
border-left: var(--popover-arrow-inner-size) solid #fff;
|
|
410
|
-
border-right: 0;
|
|
411
|
-
}
|
|
412
|
-
.${kt}[data-placement="left"][data-open="true"] {
|
|
413
|
-
transform: translate(0, -50%);
|
|
414
|
-
}
|
|
415
|
-
.${kt}[data-placement="right"] {
|
|
416
|
-
left: calc(100% + var(--popover-gap));
|
|
417
|
-
top: 50%;
|
|
418
|
-
transform: translate(calc(var(--popover-gap) / 2), -50%);
|
|
419
|
-
}
|
|
420
|
-
.${kt}[data-placement="right"] .${Fr} {
|
|
421
|
-
left: calc(-1 * var(--popover-arrow-size) + 1px);
|
|
422
|
-
top: 50%;
|
|
423
|
-
transform: translateY(-50%);
|
|
424
|
-
border-top: var(--popover-arrow-size) solid transparent;
|
|
425
|
-
border-bottom: var(--popover-arrow-size) solid transparent;
|
|
426
|
-
border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
|
|
427
|
-
border-left: 0;
|
|
428
|
-
}
|
|
429
|
-
.${kt}[data-placement="right"] .${Fr}::after {
|
|
430
|
-
left: 1px;
|
|
431
|
-
top: 50%;
|
|
432
|
-
transform: translateY(-50%);
|
|
433
|
-
border-top: var(--popover-arrow-inner-size) solid transparent;
|
|
434
|
-
border-bottom: var(--popover-arrow-inner-size) solid transparent;
|
|
435
|
-
border-right: var(--popover-arrow-inner-size) solid #fff;
|
|
436
|
-
}
|
|
437
|
-
.${kt}[data-placement="right"][data-open="true"] {
|
|
438
|
-
transform: translate(0, -50%);
|
|
439
|
-
}
|
|
440
|
-
`)}var _s="infographic-edit-select";var vve=`${_s}__option`,wve=`${_s}__dropdown`,qve=`${_s}__trigger`,Cve=`${_s}__label`,Sve=`${_s}__arrow`;var yg="infographic-align-grid",t9=`${yg}--compact`,CA="infographic-align-grid-style",SA=`
|
|
441
|
-
.${yg} {
|
|
442
|
-
display: grid;
|
|
443
|
-
grid-template-columns: repeat(4, 32px);
|
|
444
|
-
grid-auto-rows: 32px;
|
|
445
|
-
gap: 2px;
|
|
446
|
-
}
|
|
447
|
-
.${t9} {
|
|
448
|
-
grid-template-columns: repeat(3, 32px);
|
|
449
|
-
}
|
|
450
|
-
`,e9=[{icon:sn.alignLeft,action:"LEFT"},{icon:sn.alignH,action:"H_CENTER"},{icon:sn.alignRight,action:"RIGHT"},{icon:sn.distributeH,action:"H_DISTRIBUTE"},{icon:sn.alignTop,action:"TOP"},{icon:sn.alignV,action:"V_CENTER"},{icon:sn.alignBottom,action:"BOTTOM"},{icon:sn.distributeV,action:"V_DISTRIBUTE"}],r9=(e,t,r,n)=>{At(CA,SA);let i=n?.enableDistribution??!0,o=EA(s=>IA(e,s,r),i);return yr({target:Hr({icon:sn.align}),content:o,placement:"top",offset:12})};function EA(e,t){let r=document.createElement("div");return r.classList.add(yg),t||r.classList.add(t9),(t?e9:e9.filter(({action:i})=>i!=="H_DISTRIBUTE"&&i!=="V_DISTRIBUTE")).forEach(({icon:i,action:o})=>{let s=Hr({icon:i,onClick:()=>e(o)});r.appendChild(s)}),r}function IA(e,t,r){if(!e.length)return;let n=e[0].ownerSVGElement;if(!n)return;let i=e.map(u=>AA(u,n)).filter(Boolean);if(!i.length)return;let o=i.filter(u=>u.movable);if(!o.length)return;let s=i.filter(u=>!u.movable),a=s.length?s:i,c=zr(a.map(u=>u.bounds)),l=[];switch(t){case"LEFT":{let u=c.x;o.forEach(f=>{let h=u-f.bounds.x;Jn(l,f,h,0)});break}case"H_CENTER":{let u=c.x+c.width/2;o.forEach(f=>{let h=u-(f.bounds.x+f.bounds.width/2);Jn(l,f,h,0)});break}case"RIGHT":{let u=c.x+c.width;o.forEach(f=>{let h=u-(f.bounds.x+f.bounds.width);Jn(l,f,h,0)});break}case"TOP":{let u=c.y;o.forEach(f=>{let h=u-f.bounds.y;Jn(l,f,0,h)});break}case"V_CENTER":{let u=c.y+c.height/2;o.forEach(f=>{let h=u-(f.bounds.y+f.bounds.height/2);Jn(l,f,0,h)});break}case"BOTTOM":{let u=c.y+c.height;o.forEach(f=>{let h=u-(f.bounds.y+f.bounds.height);Jn(l,f,0,h)});break}case"H_DISTRIBUTE":{TA(i,l);break}case"V_DISTRIBUTE":{MA(i,l);break}}l.length&&r.executeBatch(l)}function TA(e,t){if(e.length<=2)return;let r=[...e].sort((i,o)=>i.bounds.x-o.bounds.x||i.bounds.y-o.bounds.y),n=n9(r);for(let i=0;i<n.length-1;i++){let o=n[i],s=n[i+1],a=r[o],c=r[s],l=r.slice(o+1,s);if(!l.length)continue;let u=c.bounds.x-(a.bounds.x+a.bounds.width),f=l.reduce((x,m)=>x+m.bounds.width,0),h=(u-f)/(l.length+1),p=a.bounds.x+a.bounds.width+h;l.forEach(x=>{let m=p-x.bounds.x;Jn(t,x,m,0),p+=x.bounds.width+h})}}function MA(e,t){if(e.length<=2)return;let r=[...e].sort((i,o)=>i.bounds.y-o.bounds.y||i.bounds.x-o.bounds.x),n=n9(r);for(let i=0;i<n.length-1;i++){let o=n[i],s=n[i+1],a=r[o],c=r[s],l=r.slice(o+1,s);if(!l.length)continue;let u=c.bounds.y-(a.bounds.y+a.bounds.height),f=l.reduce((x,m)=>x+m.bounds.height,0),h=(u-f)/(l.length+1),p=a.bounds.y+a.bounds.height+h;l.forEach(x=>{let m=p-x.bounds.y;Jn(t,x,0,m),p+=x.bounds.height+h})}}function n9(e){let t=new Set;return t.add(0),t.add(e.length-1),e.forEach((r,n)=>{r.movable||t.add(n)}),Array.from(t).sort((r,n)=>r-n)}function Jn(e,t,r,n){let i=LA(t,r,n);i&&e.push(i)}function AA(e,t){let r=hr(t,e),n=!er(e),i=RA(e);if(i)return{element:e,bounds:r,mode:"transform",startX:i.x,startY:i.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:i.rest,originalTransform:i.original,movable:n};let{x:o,y:s,hasX:a,hasY:c,hasDataX:l,hasDataY:u}=kA(e,r);return{element:e,bounds:r,mode:"attr",startX:o,startY:s,hasX:a,hasY:c,hasDataX:l,hasDataY:u,movable:n}}function LA(e,t,r){if(!e.movable||Math.abs(t)<1e-6&&Math.abs(r)<1e-6)return null;if(e.mode==="attr"){let o=e.startX+t,s=e.startY+r,a={x:o,y:s},c={};return c.x=e.hasX?e.startX:null,c.y=e.hasY?e.startY:null,e.hasDataX&&(a["data-x"]=o,c["data-x"]=e.startX),e.hasDataY&&(a["data-y"]=s,c["data-y"]=e.startY),new $t(e.element,{attributes:a},{attributes:c})}let n=PA(e.startX+t,e.startY+r,e.restTransform),i=e.originalTransform!==void 0?e.originalTransform:null;return new $t(e.element,{attributes:{transform:n}},{attributes:{transform:i}})}function kA(e,t){let r=_t(e,["x","y","data-x","data-y"],!1),n=r.x!==null&&r.x!==void 0,i=r.y!==null&&r.y!==void 0,o=r["data-x"]!==null&&r["data-x"]!==void 0,s=r["data-y"]!==null&&r["data-y"]!==void 0,a=(x,m)=>{let g=x!=null?Number(x):NaN;return Number.isFinite(g)?g:m},c=a(r.x,NaN),l=a(r.y,NaN),u=a(r["data-x"],NaN),f=a(r["data-y"],NaN),h=Number.isFinite(c)?c:Number.isFinite(u)?u:t.x,p=Number.isFinite(l)?l:Number.isFinite(f)?f:t.y;return{x:h,y:p,hasX:n,hasY:i,hasDataX:o,hasDataY:s}}function RA(e){let t=e.getAttribute("transform");if(t===null)return null;let r=t.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:{before:t.trim(),after:""},original:t};let n=Number(r[1])||0,i=r[2]!==void 0&&Number(r[2])||0,o=r.index??0,s=t.slice(0,o).trim(),a=t.slice(o+r[0].length).trim();return{x:n,y:i,rest:{before:s,after:a},original:t}}function PA(e,t,r){let n=`translate(${e}, ${t})`;return[r?.before,n,r?.after].filter(o=>o&&o.length).join(" ")}var i9="infographic-font-align-grid",OA="infographic-font-align-grid-style",$A=[{icon:Ar.alignLeft,align:"LEFT"},{icon:Ar.alignCenter,align:"CENTER"},{icon:Ar.alignRight,align:"RIGHT"}],zA=[{icon:Ar.alignTop,align:"TOP"},{icon:Ar.alignMiddle,align:"MIDDLE"},{icon:Ar.alignBottom,align:"BOTTOM"}],HA=`
|
|
451
|
-
.${i9} {
|
|
452
|
-
display: grid;
|
|
453
|
-
grid-template-columns: repeat(3, 32px);
|
|
454
|
-
grid-auto-rows: 32px;
|
|
455
|
-
gap: 2px;
|
|
456
|
-
}
|
|
457
|
-
`,bg=(e,t,r)=>{At(OA,HA);let n={horizontal:t["data-horizontal-align"],vertical:t["data-vertical-align"]},i=Hr({icon:Ar.align}),o=FA(n,s=>{let a={};s.horizontal&&(a["data-horizontal-align"]=s.horizontal),s.vertical&&(a["data-vertical-align"]=s.vertical),Object.keys(a).length&&r.executeBatch(e.map(c=>new $t(c,{attributes:a})))});return yr({target:i,content:o,placement:"top",offset:12})};function FA(e,t){let r=document.createElement("div");r.classList.add(i9);let n={},i=()=>{Object.entries(n).forEach(([s,a])=>{let c=s===e.horizontal||s===e.vertical;a.setActivate(c)})},o=(s,a)=>{s.forEach(({icon:c,align:l})=>{let u=Hr({icon:c,onClick:()=>{e[a]!==l&&(Object.assign(e,{[a]:l}),i(),t({...e}))},activate:l===e[a]});n[l]=u,r.appendChild(u)})};return o($A,"horizontal"),o(zA,"vertical"),r}var wl="infographic-font-color-btn",jA="infographic-font-color-style",_g="#1f1f1f",vg=(e,t,r)=>{BA();let n=DA(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(wl),o9(o,n??_g,i);let s=bs({value:n??_g,onChange:a=>{o9(o,a,!1),r.executeBatch(e.map(c=>new $t(c,{attributes:{fill:a}})))}});return yr({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function DA(e){if(e)return wr(e)?e:void 0}function o9(e,t,r){e.style.setProperty("--infographic-font-color",t),r?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function BA(){At(jA,`
|
|
458
|
-
.${wl} {
|
|
459
|
-
position: relative;
|
|
460
|
-
width: 32px;
|
|
461
|
-
height: 32px;
|
|
462
|
-
padding: 0;
|
|
463
|
-
border: none;
|
|
464
|
-
background: #fff;
|
|
465
|
-
cursor: pointer;
|
|
466
|
-
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
|
467
|
-
}
|
|
468
|
-
.${wl}::after {
|
|
469
|
-
content: '';
|
|
470
|
-
position: absolute;
|
|
471
|
-
inset: 6px;
|
|
472
|
-
border-radius: 50%;
|
|
473
|
-
background: var(--infographic-font-color, ${_g});
|
|
474
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
475
|
-
}
|
|
476
|
-
.${wl}[data-mixed="true"]::after {
|
|
477
|
-
background: repeating-linear-gradient(
|
|
478
|
-
45deg,
|
|
479
|
-
#d9d9d9 0,
|
|
480
|
-
#d9d9d9 6px,
|
|
481
|
-
#f5f5f5 6px,
|
|
482
|
-
#f5f5f5 12px
|
|
483
|
-
);
|
|
484
|
-
}
|
|
485
|
-
`)}var wg="infographic-font-family-list",ql=`${wg}__option`,NA="infographic-font-family-list-style",GA="\u9ED8\u8BA4",qg=(e,t,r)=>{XA();let n=Ai(),i=s9(t["font-family"]),o=n.map(u=>({label:u.name||u.fontFamily,value:u.fontFamily}));o.some(u=>s9(u.value)===i)||o.unshift({label:GA,value:i});let s=i,a=WA(o,s,u=>{s!==u&&(s=u,r.executeBatch(e.map(f=>new $t(f,{attributes:{"font-family":Xr(u)}}))))}),c=Hr({icon:Ar.fontFamily});return yr({target:c,content:a,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function WA(e,t,r){let n=document.createElement("div");n.classList.add(wg);let i={},o=s=>{Object.entries(i).forEach(([a,c])=>{a===s?c.setAttribute("data-activate","true"):c.removeAttribute("data-activate")})};return e.forEach(({label:s,value:a})=>{let c=document.createElement("button");c.type="button",c.classList.add(ql),c.textContent=s,c.style.fontFamily=a,a===t&&c.setAttribute("data-activate","true"),c.addEventListener("click",()=>{t!==a&&(t=a,o(t),r(a))}),i[a]=c,n.appendChild(c)}),n}function s9(e){return e?Array.isArray(e)?Pr(e.join(", ")):Pr(String(e)):""}function XA(){At(NA,`
|
|
486
|
-
.${wg} {
|
|
487
|
-
display: flex;
|
|
488
|
-
flex-direction: column;
|
|
489
|
-
gap: 2px;
|
|
490
|
-
padding: 4px;
|
|
491
|
-
min-width: 180px;
|
|
492
|
-
max-height: 220px;
|
|
493
|
-
overflow-y: auto;
|
|
494
|
-
}
|
|
495
|
-
.${ql} {
|
|
496
|
-
width: 100%;
|
|
497
|
-
text-align: left;
|
|
498
|
-
padding: 6px 10px;
|
|
499
|
-
border: none;
|
|
500
|
-
border-radius: 6px;
|
|
501
|
-
background: #fff;
|
|
502
|
-
cursor: pointer;
|
|
503
|
-
font-size: 12px;
|
|
504
|
-
color: #000000d9;
|
|
505
|
-
transition: background-color 0.2s ease, color 0.2s ease;
|
|
506
|
-
}
|
|
507
|
-
.${ql}:hover {
|
|
508
|
-
background: #f5f5f5;
|
|
509
|
-
}
|
|
510
|
-
.${ql}[data-activate="true"] {
|
|
511
|
-
background: #e6f4ff;
|
|
512
|
-
color: #0958d9;
|
|
513
|
-
}
|
|
514
|
-
`)}var a9="infographic-font-size-grid",YA="infographic-font-size-grid-style",VA=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],UA=`
|
|
515
|
-
.${a9} {
|
|
516
|
-
display: grid;
|
|
517
|
-
grid-template-columns: repeat(5, 32px);
|
|
518
|
-
grid-auto-rows: 32px;
|
|
519
|
-
gap: 2px;
|
|
520
|
-
}
|
|
521
|
-
`,Cg=(e,t,r)=>{At(YA,UA);let n=Hr({icon:Ar.fontSize}),i=QA(t["font-size"]),o=KA(i,s=>{r.executeBatch(e.map(a=>new $t(a,{attributes:{"font-size":s}})))});return yr({target:n,content:o,placement:"top",offset:12})};function KA(e,t){let r=document.createElement("div");r.classList.add(a9);let n=e,i={},o=()=>{Object.entries(i).forEach(([s,a])=>{let c=Number(s)===n;a.setActivate(c)})};return VA.forEach(({label:s,value:a})=>{let c=Hr({icon:ZA(s),onClick:()=>{n!==a&&(n=a,o(),t(a))},activate:a===n});i[String(a)]=c,r.appendChild(c)}),r}function ZA(e){return()=>{let t="1.2em",r=document.createElement("span");return r.textContent=e,r.style.display="inline-flex",r.style.alignItems="center",r.style.justifyContent="center",r.style.width=t,r.style.height=t,r.style.fontSize="12px",r}}function QA(e){if(typeof e=="number")return e;if(typeof e=="string"){let r=parseFloat(e);return Number.isFinite(r)?r:12}return 12}var Cl="infographic-icon-color-btn",JA="infographic-icon-color-style",Sg="#1f1f1f",Eg=(e,t,r)=>{tL();let n=eL(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(Cl),c9(o,n??Sg,i);let s=bs({value:n??Sg,onChange:a=>{c9(o,a,!1),r.executeBatch(e.map(c=>new $t(c,{attributes:{fill:a}})))}});return yr({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function eL(e){if(e)return wr(e)?e:void 0}function c9(e,t,r){e.style.setProperty("--infographic-icon-color",t),r?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function tL(){At(JA,`
|
|
522
|
-
.${Cl} {
|
|
523
|
-
position: relative;
|
|
524
|
-
width: 32px;
|
|
525
|
-
height: 32px;
|
|
526
|
-
padding: 0;
|
|
527
|
-
border: none;
|
|
528
|
-
background: #fff;
|
|
529
|
-
cursor: pointer;
|
|
530
|
-
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
|
531
|
-
}
|
|
532
|
-
.${Cl}::after {
|
|
533
|
-
content: '';
|
|
534
|
-
position: absolute;
|
|
535
|
-
inset: 6px;
|
|
536
|
-
border-radius: 50%;
|
|
537
|
-
background: var(--infographic-icon-color, ${Sg});
|
|
538
|
-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
539
|
-
}
|
|
540
|
-
.${Cl}[data-mixed="true"]::after {
|
|
541
|
-
background: repeating-linear-gradient(
|
|
542
|
-
45deg,
|
|
543
|
-
#d9d9d9 0,
|
|
544
|
-
#d9d9d9 6px,
|
|
545
|
-
#f5f5f5 6px,
|
|
546
|
-
#f5f5f5 12px
|
|
547
|
-
);
|
|
548
|
-
}
|
|
549
|
-
`)}var So=class extends Qn{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:r})=>{if(this.selection=r,r.length===0){this.container&&l9(this.container);return}let n=this.getOrCreateEditBar(),i=this.getEditItems(r);if(i.length===0){l9(n);return}rL(n,i),this.placeEditBar(n,r),Ig(n)},this.handleGeometryChanged=({target:r})=>{!this.selection.includes(r)||!this.container||(this.placeEditBar(this.container,this.selection),Ig(this.container))},this.handleHistoryChanged=()=>{!this.container||this.selection.length===0||(this.placeEditBar(this.container,this.selection),Ig(this.container))}}init(t){super.init(t);let{emitter:r}=t;r.on("selection:change",this.handleSelectionChanged),r.on("selection:geometrychange",this.handleGeometryChanged),r.on("history:change",this.handleHistoryChanged)}destroy(){let{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged),this.container?.remove()}getEditItems(t){let r=!1,n=!1,i=!1;for(let o of t)if(Wt(o)?r=!0:er(o)?n=!0:jx(o)&&(i=!0),r&&n&&i)break;return r&&!n&&!i?t.length===1?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t):!r&&n&&!i?t.length===1?this.getIconEditItems(t):this.getIconCollectionEditItems(t):!r&&!n&&i?t.length===1?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):this.getElementCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;let{style:t,className:r}=this.options||{},n=document.createElement("div");Object.assign(n.style,{visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px",...t}),r&&n.classList.add(r),Ur(n,Ti),this.container=n;let{getContainer:i}=this.options||{};return((typeof i=="function"?i():i)??document.body)?.appendChild(n),n}getTextEditItems(t){let{attributes:r={}}=is(t);return[vg,Cg,bg,qg].map(n=>n([t],r,this.commander))}getTextCollectionEditItems(t){let r=Yl(t.map(o=>is(o).attributes||{})),n=[vg,Cg,bg,qg].map(o=>o(t,r,this.commander)),i=this.getElementCollectionEditItems(t);return[...n,...i]}getIconEditItems(t){let r=os(t[0]);return[Eg].map(n=>n(t,r,this.commander))}getIconCollectionEditItems(t){let r=Yl(t.map(n=>os(n)));return[Eg].map(n=>n(t,r,this.commander))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){return t.length<=1?[]:[r9(t,{},this.commander,{enableDistribution:t.length>2})]}placeEditBar(t,r){if(r.length===0)return;let n=zr(r.map(b=>b.getBoundingClientRect())),i=t.offsetParent??document.documentElement,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t.getBoundingClientRect(),c=8,l={x:n.x+n.width/2,y:n.y},u={x:l.x,y:n.y+n.height},f=(b,_,v)=>Math.min(Math.max(b,_),v),h=l.y-c,p=o-u.y-c,x=h>=a.height||h>=p;if(i===document.body||i===document.documentElement){let b=window.scrollX||document.documentElement.scrollLeft,_=window.scrollY||document.documentElement.scrollTop,v=b+l.x-a.width/2;v=f(v,b,b+Math.max(s-a.width,0));let w=x?_+l.y-a.height-c:_+u.y+c;w=f(w,_,_+Math.max(o-a.height,0)),t.style.left=`${v}px`,t.style.top=`${w}px`;return}let m=i.getBoundingClientRect(),g=l.x-m.left-a.width/2;g=f(g,0,Math.max(m.width-a.width,0));let y=x?l.y-m.top-a.height-c:u.y-m.top+c;y=f(y,0,Math.max(m.height-a.height,0)),t.style.left=`${g}px`,t.style.top=`${y}px`}};function Ig(e){e.style.visibility="visible"}function l9(e){e.style.visibility="hidden"}function rL(e,t){e.innerHTML="",t.forEach(r=>{e.appendChild(r)})}var an=class e extends Qn{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{let r=t.length===1?t[0]:null;r&&Wt(r)?(this.target=r,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;let r=this.getViewportRect(this.target);this.lastViewportRect=r,this.updateHandles(r)},this.handleHistoryChange=()=>{if(!this.target)return;let t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;let r=this.clientToElement(this.target,t.clientX,t.clientY),n=r.x-this.startPointer.x,i=r.y-this.startPointer.y,o=this.clampRect(this.applyDelta(this.startRect,n,i,this.activeHandle),this.activeHandle);this.lastRect=o,this.applyRect(this.target,o),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;let r=this.lastRect,n=this.startAttrs,i=r&&this.startRect&&this.hasRectChanged(this.startRect,r);if(this.cancelDrag(),i&&this.target&&r&&n)this.commander.execute(new $t(this.target,{attributes:r},{attributes:n})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){let o=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(o)}}}init(t){super.init(t);let{emitter:r}=t;r.on("selection:change",this.handleSelectionChange),r.on("selection:geometrychange",this.handleGeometryChange),r.on("history:change",this.handleHistoryChange),r.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();let{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;let t=Se("g",{"pointer-events":"none"});this.overlay=Se("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});let r=Se("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(r),this.outline=r;let n=e.HANDLE_POSITIONS,i={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return n.forEach((o,s)=>{let c=o==="top"||o==="right"||o==="bottom"||o==="left"?Se("line",{stroke:"transparent","stroke-width":e.LINE_STROKE_WIDTH}):Se("circle",{r:e.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});c.style.cursor=i[o],c.style.pointerEvents="all",c.addEventListener("pointerdown",l=>this.handlePointerDown(l,o)),c.addEventListener("click",l=>{l.stopPropagation(),l.preventDefault()}),t.appendChild(c),this.handles[s]=c}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target){this.hideHandles();return}let r=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!r){this.hideHandles();return}this.lastViewportRect=r;let n=this.ensureContainer();n.style.display="block",this.outline.style.display="block",Ve(this.outline,r),this.overlay&&(this.overlay.style.display="block",Ve(this.overlay,r));let i=this.getHandlePoints(r);this.handles.forEach((o,s)=>{let[a,c]=i[s];if(o.tagName==="circle")Ve(o,{cx:a,cy:c});else{let l=e.HANDLE_POSITIONS[s],u=this.getHandleLine(r,l);Ve(o,u)}o.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){this.container?.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,r){if(!this.target||t.button!==0&&t.pointerType==="mouse")return;t.stopPropagation(),t.preventDefault();let n=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=r,this.activePointerId=t.pointerId,this.startPointer=n;let i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs={...i},this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,r){Ve(t,{x:r.x,y:r.y,width:r.width,height:r.height})}getViewportRect(t){let{x:r,y:n,width:i,height:o}=hr(this.editor.getDocument(),t);return{x:r,y:n,width:i,height:o}}clientToElement(t,r,n){let i=t.getScreenCTM()?.inverse()||this.editor.getDocument().getScreenCTM()?.inverse()||new DOMMatrix;return new DOMPoint(r,n).matrixTransform(i)}getCurrentAttributes(t){let r=_t(t,["x","y","width","height"],!1),n=this.getViewportRect(t),i=(o,s)=>{let a=o!==null?Number(o):NaN;return Number.isFinite(a)?a:s};return{x:i(r.x,n.x),y:i(r.y,n.y),width:i(r.width,n.width),height:i(r.height,n.height)}}getHandlePoints(t){let{x:r,y:n,width:i,height:o}=t,s=r+i/2,a=n+o/2;return[[r,n],[s,n],[r+i,n],[r+i,a],[r+i,n+o],[s,n+o],[r,n+o],[r,a]]}applyDelta(t,r,n,i){let{x:o,y:s,width:a,height:c}=t;switch(i){case"top-left":o+=r,s+=n,a-=r,c-=n;break;case"top":s+=n,c-=n;break;case"top-right":s+=n,a+=r,c-=n;break;case"right":a+=r;break;case"bottom-right":a+=r,c+=n;break;case"bottom":c+=n;break;case"bottom-left":o+=r,a-=r,c+=n;break;case"left":o+=r,a-=r;break}return{x:o,y:s,width:a,height:c}}clampRect(t,r){let{x:n,y:i,width:o,height:s}=t;if(o<e.MIN_SIZE){let a=e.MIN_SIZE-o;(r==="top-left"||r==="bottom-left"||r==="left")&&(n-=a),o=e.MIN_SIZE}if(s<e.MIN_SIZE){let a=e.MIN_SIZE-s;(r==="top-left"||r==="top-right"||r==="top")&&(i-=a),s=e.MIN_SIZE}return{x:n,y:i,width:o,height:s}}hasRectChanged(t,r){return Math.abs(t.x-r.x)>.5||Math.abs(t.y-r.y)>.5||Math.abs(t.width-r.width)>.5||Math.abs(t.height-r.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,r){let{x:n,y:i,width:o,height:s}=t;switch(r){case"top":return{x1:n,y1:i,x2:n+o,y2:i};case"right":return{x1:n+o,y1:i,x2:n+o,y2:i+s};case"bottom":return{x1:n,y1:i+s,x2:n+o,y2:i+s};case"left":default:return{x1:n,y1:i,x2:n,y2:i+s}}}};an.HANDLE_SIZE=10;an.LINE_STROKE_WIDTH=8;an.MIN_SIZE=1;an.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];var h9=Mo(f9());async function p9(e,t=!0){let r=nL(e);if(r.size===0)return;let n=[];await Promise.all(Array.from(r).map(async i=>{let o=oL(i);if(!o.length)return;let s=await iL(i);if(!s.length)return;let a=await Promise.all(s.map(async c=>{let l=aL(c),u=l["unicode-range"].replace(/\s/g,"");if(!o.find(m=>m.unicodeRange&&m.unicodeRange.replace(/\s/g,"")===u))return null;let h=Ku(l["font-family"],ia(l["font-weight"]));if(!h)return null;let p=l.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!p?.[1])return null;let x=Ko(h,p[1]);if(t){let m=await lL(x);l.src=`url(${m}) format('woff2')`}else l.src=`url(${x}) format('woff2')`;return l}));n.push(...a.filter(Boolean)||[])})),n.length>0&&cL(e,n)}function nL(e){let t=new Set,r=i=>{i&&Wr(i).forEach(o=>{let s=Xr(o);s&&t.add(s)})};r(e.getAttribute("font-family"));let n=e.querySelectorAll("foreignObject span");for(let i of n)r(i.style.fontFamily);return t}async function iL(e){let t=la(e),r=[];return await Promise.allSettled(t.map(async n=>{(await ai(n).then(o=>o.text()).then(o=>(0,h9.default)(o)).catch(()=>(console.error(`Failed to fetch or parse font CSS: ${n}`),null)))?.stylesheet?.rules.forEach(o=>{if(o.type==="font-face"){let s=sL(o);r.push(s)}})})),r}function oL(e){let t=[],r=Wr(e).map(n=>Xr(n));return document.fonts.forEach(n=>{r.includes(Xr(n.family))&&n.status==="loaded"&&t.push(n)}),t}function sL(e){let t=e.declarations||[],r={};return t.forEach(n=>{let{property:i,value:o}=n;i&&o&&(r[i]=o)}),r}function aL(e){return{"font-family":e["font-family"]??"",src:e.src??"","font-style":e["font-style"]??"normal","font-display":e["font-display"]??"swap","font-weight":e["font-weight"]??"400","unicode-range":e["unicode-range"]??"U+0-FFFF"}}function cL(e,t){let r=[],n=new Set;for(let s of t){let a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");n.has(a)||(n.add(a),r.push(s))}if(r.length===0)return;let i=Se("style",{type:"text/css"});i.innerHTML=r.map(s=>`
|
|
550
|
-
@font-face {
|
|
551
|
-
font-family: ${s["font-family"]};
|
|
552
|
-
src: ${s.src};
|
|
553
|
-
font-style: ${s["font-style"]};
|
|
554
|
-
font-weight: ${s["font-weight"]};
|
|
555
|
-
font-display: ${s["font-display"]};
|
|
556
|
-
unicode-range: ${s["unicode-range"]};
|
|
557
|
-
}
|
|
558
|
-
`.trim()).join(`
|
|
559
|
-
`);let o=e.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):e.insertBefore(i,e.firstChild)}async function lL(e){let t=await ai(e);if(!t.ok)throw new Error(`Failed to load font: ${e}`);let r=await t.blob();return await new Promise((i,o)=>{let s=new FileReader;s.onloadend=()=>{i(s.result)},s.onerror=o,s.readAsDataURL(r)})}async function Mg(e,t={}){let r=await vs(e,t),n=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n)}async function vs(e,t={}){let{embedResources:r=!0,removeIds:n=!1}=t,i=e.cloneNode(!0),{width:o,height:s}=Hi(e);return Ve(i,{width:o,height:s}),n?(fL(i),wL(i)):await uL(i),await p9(i,r),IL(i),i}async function uL(e){let t=e.querySelectorAll("use"),r=dL(e);t.forEach(n=>{let i=n.getAttribute("href");if(!i)return;if(!e.querySelector(i)){let s=document.querySelector(i);s&&r.appendChild(s.cloneNode(!0))}})}var m9="icon-defs";function dL(e){let t=Yr(e,m9);if(t)return t;let r=Se("defs");return Ur(r,m9),e.prepend(r),r}function fL(e){let t=Array.from(e.querySelectorAll("use"));t.length&&t.forEach(r=>{let n=hL(r);if(!n||!n.startsWith("#"))return;let i=pL(e,n);if(!i||i===r)return;let o=mL(r,i);o&&r.replaceWith(o)})}function hL(e){return e.getAttribute("href")??e.getAttribute("xlink:href")}function pL(e,t){let r=e.querySelector(t);return r||document.querySelector(t)}function mL(e,t){let r=t.tagName.toLowerCase();return r==="symbol"?gL(e,t):r==="svg"?xL(e,t):yL(e,t)}function gL(e,t){let r=t.cloneNode(!0),n=Se("svg");for(Sl(n,r,new Set(["id"])),Sl(n,e,new Set(["href","xlink:href"]));r.firstChild;)n.appendChild(r.firstChild);return n}function xL(e,t){let r=t.cloneNode(!0);return r.removeAttribute("id"),Sl(r,e,new Set(["href","xlink:href"])),r}function yL(e,t){let r=t.cloneNode(!0);r.removeAttribute("id");let n=Se("g");Sl(n,e,new Set(["href","xlink:href","x","y","width","height","transform"]));let i=bL(e);return i&&n.setAttribute("transform",i),n.appendChild(r),n}function bL(e){let t=e.getAttribute("x"),r=e.getAttribute("y"),n=t||r?`translate(${t??0} ${r??0})`:"",i=e.getAttribute("transform")??"";return n&&i?`${n} ${i}`:n||i||null}function Sl(e,t,r=new Set){Array.from(t.attributes).forEach(n=>{if(!r.has(n.name)){if(n.name==="style"){_L(e,n.value);return}if(n.name==="class"){vL(e,n.value);return}e.setAttribute(n.name,n.value)}})}function _L(e,t){let r=e.getAttribute("style");if(!r){e.setAttribute("style",t);return}let n=r.trim().endsWith(";")?"":";";e.setAttribute("style",`${r}${n}${t}`)}function vL(e,t){let r=e.getAttribute("class");if(!r){e.setAttribute("class",t);return}e.setAttribute("class",`${r} ${t}`.trim())}var x9=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function wL(e){let t=qL(e);if(t.size===0){g9(e);return}let r=CL(e,t);r&&(En(e,n=>{if(n.tagName.toLowerCase()==="defs")return!1;Array.from(n.attributes).forEach(o=>{let s=o.value;if(!s.includes("url("))return;let a=s.replace(x9,(c,l)=>{let u=encodeURIComponent(l);return`url("${r}#${u}")`});a!==s&&n.setAttribute(o.name,a)})}),g9(e))}function qL(e){let t=new Set;return En(e,r=>{if(r.tagName.toLowerCase()==="defs")return!1;y9(r,n=>t.add(n))}),t}function y9(e,t){for(let r of Array.from(e.attributes)){let n=r.value;if(n.includes("url("))for(let i of n.matchAll(x9))i[1]&&t(i[1]);(r.name==="href"||r.name==="xlink:href")&&n[0]==="#"&&t(n.slice(1))}}function CL(e,t){if(t.size===0)return null;let r=SL(e,t);if(r.size===0)return null;let n=Se("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),i=Se("defs");if(r.forEach(s=>{i.appendChild(s.cloneNode(!0))}),!i.children.length)return null;n.appendChild(i);let o=new XMLSerializer().serializeToString(n);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}function SL(e,t){let r=new Map,n=Array.from(t),i=new Set(n),o=new Set,s=a=>{o.has(a)||i.has(a)||(n.push(a),i.add(a))};for(;n.length;){let a=n.shift();if(o.has(a))continue;o.add(a);let c=`#${EL(a)}`,l=e.querySelector(c);l&&(r.set(a,l),En(l,u=>{y9(u,s)}))}return r}function EL(e){return globalThis.CSS&&typeof globalThis.CSS.escape=="function"?globalThis.CSS.escape(e):e.replace(/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,"\\$1")}function g9(e){Array.from(e.querySelectorAll("defs")).forEach(r=>r.remove())}function IL(e){TL(e),ML(e),AL(e),LL(e)}function TL(e){Yr(e,"btns-group")?.remove(),Yr(e,"btn-icon-defs")?.remove()}function ML(e){e.querySelector("[data-element-type=transient-container]")?.remove()}function AL(e){e.querySelectorAll("g").forEach(r=>{r.removeAttribute("x"),r.removeAttribute("y"),r.removeAttribute("width"),r.removeAttribute("height")})}function LL(e){En(e,t=>{for(let r in t.dataset)delete t.dataset[r]})}async function Ag(e,t={}){let{dpr:r=globalThis.devicePixelRatio??2}=t,n=await vs(e),{width:i,height:o}=Hi(n);return new Promise((s,a)=>{try{let c=document.createElement("canvas");c.width=i*r,c.height=o*r;let l=c.getContext("2d");if(!l){a(new Error("Failed to get canvas context"));return}l.scale(r,r),l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",n.setAttribute("width",String(i)),n.setAttribute("height",String(o));let u=new XMLSerializer().serializeToString(n),f="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(u),h=new Image;h.onload=function(){l.clearRect(0,0,i,o),l.drawImage(h,0,0,i,o);let p=c.toDataURL("image/png");s(p)},h.onerror=function(p){a(new Error("Image load failed: "+p))},h.src=f}catch(c){a(c)}})}var v9=Mo(_9(),1);var w9=v9.default;var Il=class{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}async execute(t){await t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")}async executeBatch(t){if(t.length===0)return;let r=new fl(t);await this.execute(r)}async undo(){let t=this.undoStack.pop();t&&(await t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))}async redo(){let t=this.redoStack.pop();t&&(await t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){this.emitter?.emit("history:change",{type:"history:change",action:t})}};var Tl=class{constructor(){this.extensions=new xo,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{let r=this.editor.getDocument(),n=t.target;if(!n){this.deactivate();return}r.contains(n)||Dx(n)?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(r=>{this.extensions.register(r.name,r),r.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",r)})}isActive(){return this.active}select(t,r){let n=this.getSelection(),i=[],o=[];if(r==="replace"){let c=new Set(t);n.forEach(l=>{c.has(l)||o.push(l)}),t.forEach(l=>{this.selection.has(l)||i.push(l)}),this.selection=c}else r==="add"?t.forEach(c=>{this.selection.has(c)||(this.selection.add(c),i.push(c))}):r==="remove"?t.forEach(c=>{this.selection.delete(c)&&o.push(c)}):r==="toggle"&&t.forEach(c=>{this.selection.has(c)?(this.selection.delete(c),o.push(c)):(this.selection.add(c),i.push(c))});let s=this.getSelection(),a={type:"selection:change",previous:n,next:s,added:i,removed:o,mode:r};this.emitter.emit("selection:change",a)}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){let t=this.getSelection();this.selection.clear();let r={type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"};this.emitter.emit("selection:change",r)}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}async executeExclusiveInteraction(t,r){if(!(!this.active||this.running)){this.running=t;try{this.emitter.emit("interaction:started",t),await r(),this.emitter.emit("interaction:ended",t)}catch(n){console.error(`Error occurred during exclusive interaction "${t.name}":`,n),this.emitter.emit("interaction:error",t,n)}finally{this.running=null}}}async executeConcurrentInteraction(t,r){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),await r(),this.emitter.emit("interaction:ended",t)}catch(n){console.error(`Error occurred during concurrent interaction "${t.name}":`,n),this.emitter.emit("interaction:error",t,n)}finally{this.concurrentInteractions.delete(t)}}}getOrCreateTransientContainer(){let t="transient-container",r=this.editor.getDocument(),n=Yr(r,t);if(n&&n.isConnected)return n;let i=Se("g");return Ur(i,t),r.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}};var Ml=class{constructor(){this.extensions=new xo}init(t,r=[]){Object.assign(this,t),r.forEach(n=>{this.registerPlugin(n)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);let r={emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state};t.init(r),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){let r=this.extensions.get(t);r&&(r.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",r))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}};var Al=class{init(t){Object.assign(this,t)}addItemDatum(t,r){let n=t.slice(0,-1),i=t[t.length-1],o=Array.isArray(r)?r:[r];hg(this.options.data,n).splice(i,0,...o),this.emitter.emit("options:data:item:add",{indexes:t,datum:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:o}]})}updateItemDatum(t,r){let n=ln(this.options.data,t);Object.assign(n,r),this.emitter.emit("options:data:item:update",{indexes:t,datum:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:r}]})}removeItemDatum(t,r=1){let n=t.slice(0,-1),i=t[t.length-1],s=hg(this.options.data,n).splice(i,r);this.emitter.emit("options:data:item:remove",{indexes:t,datum:s}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:s}]})}updateData(t,r){this.options.data[t]=r,this.emitter.emit("options:data:update",{key:t,value:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:r}]})}updateElement(t,r){this.updateBuiltInElement(t,r)}updateOptions(t){this.options={...this.options,...t},this.options.padding!==void 0&&Ca(this.editor.getDocument(),ar(this.options.padding)),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,r){var n,i;let{data:o}=this.options,{attributes:s={}}=r,a=$i(t),c=er(t)||a==="item-label"||a==="item-desc"||a==="item-value"||a==="item-illus",l=c?ul(t):void 0;if(c){let u=ln(o,l),f=a.replace("item-","");u.attributes||(u.attributes={}),(n=u.attributes)[f]||(n[f]={}),Object.assign(u.attributes[f],s)}else(a==="title"||a==="desc"||a==="illus")&&(o.attributes||(o.attributes={}),(i=o.attributes)[a]||(i[a]={}),Object.assign(o.attributes[a],s));this.emitter.emit("options:element:update",{element:t,props:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:a,indexes:l,path:c?`${N7(l)}.attributes.${a.replace("item-","")}`:`data.attributes.${a}`,value:r}]})}destroy(){}};var qs=class{constructor(t,r,n){if(this.emitter=t,this.document=r,this.options=n,!r.isConnected)throw new Error("The provided document is not connected to the DOM.");r.style.userSelect="none";let i=new Il,o=new Al,s=new Ml,a=new Tl;i.init({state:o,emitter:t}),o.init({emitter:t,editor:this,commander:i,options:n}),s.init({emitter:t,editor:this,commander:i,state:o},n.plugins),a.init({emitter:t,editor:this,commander:i,state:o,interactions:n.interactions}),this.commander=i,this.state=o,this.plugin=s,this.interaction=a}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy()}};function kg(e){let{container:t="#container",padding:r=0,template:n,design:i,theme:o,themeConfig:s,...a}=e,c=typeof t=="string"?document.querySelector(t)||document.createElement("div"):t,l=n?Gl(n):void 0,u=Dl({},l?.themeConfig,s),f=o||s||l?.themeConfig?zL(o,u):void 0,h={container:c,padding:ar(r)};if(l){let{design:p,...x}=l;Object.assign(h,x)}if(Object.assign(h,a),n&&(h.template=n),l?.design||i){let p=PL({...l?.design,...i},f?{...e,themeConfig:f}:e);na(p)&&(h.design=p)}return o&&(h.theme=o),f&&(h.themeConfig=f),h}function Rg(e){if(typeof e=="string")return{type:e};if(!("type"in e))throw new Error("Type is required");return e}function PL(e,t){let{structure:r,title:n,item:i,items:o}=e||{},s=q9(i||o?.[0],t);return{structure:OL(r),title:$L(n,t),item:s,items:o?o.map(a=>q9(a,t)):[s]}}function OL(e){if(!e)return null;let{type:t,...r}=Rg(e),n=qd(t);if(!n)return null;let{component:i}=n;return{...n,component:o=>i({...o,...r})}}function $L(e,t){if(!e)return{component:null};let{type:r,...n}=Rg(e),{themeConfig:i}=t,o=i?.colorBg||"#fff",s=C9(o,o);return{component:a=>ry({...a,themeColors:s,...n})}}function q9(e,t){if(!e)return null;let{type:r,...n}=Rg(e),i=_d(r);if(!i)return null;let{component:o,options:s}=i;return{...i,component:a=>{let{indexes:c}=a,{data:l,themeConfig:u}=t,f=u?.colorBg||"#fff",{themeColors:h=C9(si(u?.palette,c,l?.items?.length)||u?.colorPrimary||"#FF356A",f),...p}=a;return o({themeColors:h,...p,...n})},options:s}}function zL(e,t={}){let r=e?yd(e)||{}:{},n=Dl({},r,t);return n.palette=t.palette||r.palette,n.stylize=t.stylize??r.stylize,n.colorPrimary||(n.colorPrimary="#FF356A"),n.palette||(n.palette=[n.colorPrimary]),n}function C9(e,t="#fff"){return us({colorPrimary:e,isDarkMode:ra(t),colorBg:t})}function HL(e){return e===" "||e===" "}function FL(e){let t=0,r=0;for(;r<e.length;){let n=e[r];if(n===" "){t+=1,r+=1;continue}if(n===" "){t+=2,r+=1;continue}break}return{indent:t,content:e.slice(r)}}function jL(e){return e.trimEnd()}function DL(e){return/[<>=o.x-]{2,}/.test(e)}function E9(e){let t=e.trim();if(!t)return null;let r=t.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(r)return{key:r[1],value:r[2].trim()};let n=t.match(/^([^\s]+)\s+(.*)$/);return n?{key:n[1],value:n[2].trim()}:{key:t,value:void 0}}function Ll(e,t){return{kind:"object",line:e,value:t,entries:{}}}function S9(e){return{kind:"array",line:e,items:[]}}function I9(e){let t=[],r=Ll(0),n=[{indent:-1,node:r,parent:null,key:null}];return e.split(/\r?\n/).forEach((o,s)=>{let a=s+1;if(!o.trim())return;let{indent:c,content:l}=FL(o),u=jL(l);if(!u.trim())return;for(;n.length>1&&c<=n[n.length-1].indent;)n.pop();let f=n[n.length-1],h=f.node,p=u.trim();if(p.startsWith("-")&&(p.length===1||HL(p[1]))){if(h.kind!=="array")if(h.kind==="object"&&Object.keys(h.entries).length===0&&h.value===void 0&&f.parent&&f.key){let b=S9(h.line);if(f.parent.kind==="object")f.parent.entries[f.key]=b;else if(f.parent.kind==="array"){let _=f.parent.items.indexOf(h);_>=0&&(f.parent.items[_]=b)}f.node=b,h=b}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:p});return}let g=p.slice(1).trim(),y=Ll(a,g||void 0);h.items.push(y),n.push({indent:c,node:y,parent:h});return}if(f.key==="relations"&&!p.startsWith("-")&&DL(p)){if(h.kind!=="array")if(h.kind==="object"&&Object.keys(h.entries).length===0&&h.value===void 0&&f.parent&&f.key){let y=S9(h.line);if(f.parent.kind==="object")f.parent.entries[f.key]=y;else if(f.parent.kind==="array"){let b=f.parent.items.indexOf(h);b>=0&&(f.parent.items[b]=y)}f.node=y,h=y}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:p});return}let g=Ll(a,p);h.items.push(g),n.push({indent:c,node:g,parent:h});return}let x=E9(p);if(!x){t.push({path:"",line:a,code:"bad_syntax",message:"Invalid syntax line.",raw:p});return}if(h.kind!=="object"){t.push({path:"",line:a,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:p});return}let m=Ll(a,x.value);h.entries[x.key]=m,n.push({indent:c,node:m,parent:h,key:x.key})}),{ast:r,errors:t}}function Pg(e){return E9(e)}function kl(e,t){return{kind:"value",line:t,value:e}}var BL=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,NL=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function mi(e){let t=e.trim();return t==="true"?!0:t==="false"?!1:/^-?\d+(\.\d+)?$/.test(t)?parseFloat(t):t}function pi(e){if(e.kind==="value"||e.kind==="object")return e.value}function Nt(e,t,r,n,i,o){e.push({path:r,line:t.line,code:n,message:i,raw:o})}function T9(e,t="any"){let r=e.trim();if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1).trim()),!r)return[];let n;t==="comma"?n=r.split(","):t==="space"?n=r.split(/\s+/):n=r.split(/[,\s]+/);let i=[];for(let o of n){let s=o.trim();if(s){if(s==="#"||s==="//")break;i.push(s)}}return i}function GL(e){let t=e.trim(),r=t.search(/\s+#(?![0-9a-f])/i);r>=0&&(t=t.slice(0,r).trimEnd());let n=t.indexOf("//");return n>=0&&(t=t.slice(0,n).trimEnd()),t}function $g(e){let t=GL(e);if(!t)return;let r=t.match(BL);if(r&&r[0].length===t.length)return t;let n=t.match(NL);if(n&&n[1].length===t.length||le(t).isValid())return t}function M9(e,t,r,n={}){let i=pi(e);if(i===void 0){Nt(r,e,t,"schema_mismatch","Expected color value.");return}let o=$g(i);if(!o){n.soft||Nt(r,e,t,"invalid_value","Invalid color value.",i);return}return o}function WL(e,t){return t.length>1||e.startsWith("[")&&e.endsWith("]")?!0:$g(e)!==void 0}function Og(e){if(e.kind==="array")return e.items.map(n=>Og(n));if(e.kind==="value"||!(Object.keys(e.entries).length>0)&&e.value!==void 0)return mi(e.value);let r={};return e.value!==void 0&&(r.value=mi(e.value)),Object.entries(e.entries).forEach(([n,i])=>{r[n]=Og(i)}),r}function XL(e,t,r,n){let i,o=null;for(let s of t.variants){let a=[],c=Vt(e,s,r,a);(o===null||a.length<o.length)&&(o=a,i=c)}return o&&n.push(...o),i}function Vt(e,t,r,n){switch(t.kind){case"union":return XL(e,t,r,n);case"string":{let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected string value.");return}return i}case"number":{let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected number value.");return}let s=i.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);if(!s){Nt(n,e,r,"invalid_value","Invalid number value.",i);return}return parseFloat(s[1])}case"boolean":{let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected boolean value.");return}if(i!=="true"&&i!=="false"){Nt(n,e,r,"invalid_value","Invalid boolean value.",i);return}return i==="true"}case"enum":{let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected enum value.");return}if(!t.values.includes(i)){Nt(n,e,r,"invalid_value","Invalid enum value.",i);return}return i}case"array":{if(e.kind==="array")return e.items.map((a,c)=>Vt(a,t.item,`${r}[${c}]`,n)).filter(a=>a!==void 0);if(e.kind==="object"&&Object.keys(e.entries).length>0){Nt(n,e,r,"schema_mismatch","Expected array value.");return}let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected array value.");return}let o=i.trim();return o.startsWith("[")&&!o.endsWith("]")?void 0:T9(i,t.split).map((a,c)=>Vt(kl(a,e.line),t.item,`${r}[${c}]`,n)).filter(a=>a!==void 0)}case"palette":{if(e.kind==="array"){let c=Vt(e,{kind:"array",item:{kind:"color"},split:"any"},r,n);return Array.isArray(c)&&c.length>0?c:void 0}if(e.kind==="object"&&Object.keys(e.entries).length>0){Nt(n,e,r,"schema_mismatch","Expected palette value.");return}let i=pi(e);if(i===void 0){Nt(n,e,r,"schema_mismatch","Expected palette value.");return}let o=i.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;let s=$g(o);if(s)return[s];let a=T9(i,"any");if(WL(o,a)){let c=a.map((l,u)=>M9(kl(l,e.line),`${r}[${u}]`,n)).filter(l=>l!==void 0);return c.length>0?c:void 0}return i}case"color":return M9(e,r,n,{soft:t.soft});case"object":{if(e.kind==="array"){Nt(n,e,r,"schema_mismatch","Expected object value.");return}let i={};if(e.kind==="value"){if(t.shorthandKey)return i[t.shorthandKey]=e.value,i;let o=Pg(e.value);if(o?.value!==void 0){if(t.fields[o.key]){let s=Vt(kl(o.value,e.line),t.fields[o.key],`${r}.${o.key}`,n);return s!==void 0&&(i[o.key]=s),i}return t.allowUnknown?(i[o.key]=mi(o.value),i):(Nt(n,e,`${r}.${o.key}`,"unknown_key","Unknown key in object.",o.key),i)}if(t.allowUnknown)return i.value=mi(e.value),i;Nt(n,e,r,"invalid_value","Expected object value.");return}if(e.value!==void 0)if(t.shorthandKey&&i[t.shorthandKey]===void 0)i[t.shorthandKey]=e.value;else{let o=Pg(e.value);if(o?.value!==void 0)if(t.fields[o.key]){let s=Vt(kl(o.value,e.line),t.fields[o.key],`${r}.${o.key}`,n);s!==void 0&&i[o.key]===void 0&&(i[o.key]=s)}else t.allowUnknown?i[o.key]=mi(o.value):Nt(n,e,`${r}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else t.allowUnknown&&(i.value=mi(e.value))}return Object.entries(e.entries).forEach(([o,s])=>{let a=t.fields[o];if(!a){if(t.allowUnknown){i[o]=Og(s);return}Nt(n,s,`${r}.${o}`,"unknown_key","Unknown key in object.",o);return}let c=Vt(s,a,`${r}.${o}`,n);c!==void 0&&(i[o]=c)}),i}default:return}}var Gt=()=>({kind:"string"}),ei=()=>({kind:"number"}),Pl=e=>({kind:"enum",values:e}),Io=(e={})=>({kind:"color",soft:e.soft}),Ol=(e,t="any")=>({kind:"array",item:e,split:t}),Ut=(e,t={})=>({kind:"object",fields:e,allowUnknown:t.allowUnknown,shorthandKey:t.shorthandKey}),Hg=(...e)=>({kind:"union",variants:e}),YL=()=>({kind:"palette"}),A9={fill:Io({soft:!0}),stroke:Io({soft:!0})},Eo=Ut(A9,{allowUnknown:!0}),zg=Ut(A9,{allowUnknown:!0}),Fg=Ut({},{allowUnknown:!0});Fg.fields={id:Gt(),label:Gt(),value:Hg(ei(),Gt()),desc:Gt(),icon:Gt(),group:Gt(),children:Ol(Fg)};var jg=Ut({id:Gt(),from:Gt(),to:Gt(),label:Gt(),direction:Pl(["forward","both","none"]),showArrow:Pl(["true","false"]),arrowType:Pl(["arrow","triangle","diamond"])},{allowUnknown:!0}),Dg=Ut({type:Gt(),colorBg:Io(),colorPrimary:Io(),palette:YL(),title:Eo,desc:Eo,shape:zg,base:Ut({global:Ut({},{allowUnknown:!0}),shape:zg,text:Eo}),item:Ut({icon:Ut({},{allowUnknown:!0}),label:Eo,desc:Eo,value:Eo,shape:zg}),stylize:Ut({type:Pl(["rough","pattern"]),roughness:ei(),bowing:ei(),fillWeight:ei(),hachureGap:ei(),pattern:Gt(),backgroundColor:Io(),foregroundColor:Io(),scale:ei()},{shorthandKey:"type"}),elements:Ut({},{allowUnknown:!0})},{shorthandKey:"type"}),Rl=Ut({},{allowUnknown:!0,shorthandKey:"type"}),Bg=Ut({structure:Rl,item:Rl,items:Ol(Rl),title:Rl}),Ng=Ut({title:Gt(),desc:Gt(),items:Ol(Fg),relations:Ol(jg)}),Gg=Ut({type:Gt()},{shorthandKey:"type"}),Wg=Ut({template:Gg,design:Bg,data:Ng,theme:Dg,width:Hg(ei(),Gt()),height:Hg(ei(),Gt())});var L9=/[<>=o.x-]{2,}/,$l=/[<>=o.x-]{2,}/g;function zl(e){let t=e.trim();if(!t)return"";let r=t[0],n=t[t.length-1];return(r==='"'&&n==='"'||r==="'"&&n==="'")&&(t=t.slice(1,-1)),t=t.replace(/\\(["'])/g,"$1").replace(/("|&#quot;|#quot;)/g,'"').replace(/('|'|#apos;)/g,"'"),t.trim()}function VL(e){let t=e.trim().replace(/^[-=.ox]+/,"").trim();return zl(t)}function Hl(e,t){let r=t;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return r}function k9(e,t){let r=Hl(e,t);if(r>=e.length)return null;let n=r;for(;r<e.length;){let s=e[r];if(/\s/.test(s)||s==="["||s==="("||s==="@"||s==="|"||s==="<"||s===">"||s==="-"&&(e[r+1]==="-"||e[r+1]===">"||e[r+1]==="<"))break;r+=1}if(r===n)return null;let i=e.slice(n,r).trim();if(!i)return null;if(e.startsWith("@{",r)){let s=e.indexOf("}",r+2);s!==-1&&(r=s+1)}r=Hl(e,r);let o;if(e[r]==="["){let s=e.indexOf("]",r+1);s!==-1&&(o=zl(e.slice(r+1,s)),r=s+1)}else if(e[r]==="("){let s=e.indexOf(")",r+1);if(s!==-1){let a=e.slice(r+1,s).trim();a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1).trim()),o=zl(a),r=s+1}}return{node:{id:i,label:o},nextIndex:r}}function UL(e,t){$l.lastIndex=t;let r=$l.exec(e);if(!r)return null;let n=r[0],i=r.index,o=i+n.length,a=VL(e.slice(t,i))||void 0,c=n,l=o;if(l=Hl(e,l),e[l]==="|"){let y=e.indexOf("|",l+1);if(y!==-1){a=zl(e.slice(l+1,y))||a,l=y+1;let _=Hl(e,l);$l.lastIndex=_;let v=$l.exec(e);v&&v.index===_?(c+=v[0],l=v.index+v[0].length):l=_}}let u=c.includes("<"),f=c.includes(">"),h=c.match(/[xo]/gi)||[],p=/^[xo]/i.test(c),x=/[xo]$/i.test(c),m="none",g=!1;return u&&f||u&&x||f&&p||p&&x?m="both":(u||f||h.length>0)&&(m="forward",g=u&&!f),{label:a,direction:m,reverse:g,nextIndex:l}}function KL(e){let t=[],r=[],n=new Map,i=0,o=k9(e,i);if(!o)return{relations:t,nodes:r};let s=o.node;for(n.has(s.id)||(n.set(s.id,s),r.push(s)),i=o.nextIndex;i<e.length;){let a=UL(e,i);if(!a)break;i=a.nextIndex;let c=k9(e,i);if(!c)break;i=c.nextIndex;let l=s.id,u=c.node.id,f=a.direction;a.reverse&&(l=c.node.id,u=s.id);let h={from:l,to:u};a.label&&(h.label=a.label),f==="both"&&(h.direction="both"),f==="none"&&(h.direction="none"),t.push(h),n.has(s.id)||(n.set(s.id,s),r.push(s)),n.has(c.node.id)||(n.set(c.node.id,c.node),r.push(c.node)),s=c.node}return{relations:t,nodes:r}}function ZL(e,t,r,n){if(!r)return;let i=e.get(r);if(i){!i.label&&n&&(i.label=n);return}let o={id:r,label:n||r};e.set(r,o),t.push(o)}function QL(e,t,r){let n=Vt(e,jg,t,r);return!n||typeof n!="object"||typeof n.from!="string"||typeof n.to!="string"?null:n}function R9(e,t,r){let n=[],i=[],o=new Map,s=a=>{if(!L9.test(a))return;let c=KL(a);c.nodes.forEach(l=>{ZL(o,i,l.id,l.label)}),n.push(...c.relations)};return e.kind==="array"?e.items.forEach((a,c)=>{if(a.kind==="object"&&a.value&&Object.keys(a.entries).length===0&&L9.test(a.value)){s(a.value);return}let l=QL(a,`${r}[${c}]`,t);l&&n.push(l)}):e.kind==="object"&&e.value&&s(e.value),{relations:n,items:i}}function JL(e){let t=new Set,r=[];for(let n=e.length-1;n>=0;n-=1){let i=e[n],o=i.id??i.label;if(!o){r.push(i);continue}t.has(o)||(t.add(o),i.id||(i.id=o),r.push(i))}return r.reverse()}function ek(e,t){if(!e)return;let r=Vt(e,Gg,"template",t);if(r){if(typeof r=="string")return r;if(typeof r=="object"&&typeof r.type=="string")return r.type}}function Xg(e){let{ast:t,errors:r}=I9(e),n=[],i={},o={...t.entries},s=t.entries.infographic,a;s&&s.kind==="object"&&(s.value&&(a=s.value),Object.entries(s.entries).forEach(([g,y])=>{g in o||(o[g]=y)}));let c=new Set(["infographic","template","design","data","theme","width","height"]);Object.keys(o).forEach(g=>{c.has(g)||r.push({path:g,line:o[g].line,code:"unknown_key",message:"Unknown top-level key.",raw:g})});let l=o.template,u=ek(l,r);u&&(i.template=u),!i.template&&a&&(i.template=a);let f=o.design;if(f){let g=Vt(f,Bg,"design",r);g&&(i.design=g)}let h=o.data;if(h){let g,y=h;if(h.kind==="object"){let{relations:_,...v}=h.entries;g=_,y={...h,entries:v}}let b=Vt(y,Ng,"data",r);if(b&&(i.data=b),g){let _=R9(g,r,"data.relations");if(_.relations.length>0||_.items.length>0){let v=i.data??{},w=Array.isArray(v.items)?v.items:[],q=JL(w),C=new Map;q.forEach(S=>{S.id&&C.set(S.id,S)}),_.items.forEach(S=>{let I=C.get(S.id);I?!I.label&&S.label&&(I.label=S.label):(q.push(S),C.set(S.id,S))}),v.items=q,v.relations=_.relations,i.data=v}}}let p=o.theme;if(p){let g=Vt(p,Dg,"theme",r);if(g&&typeof g=="object"){let{type:y,...b}=g;typeof y=="string"&&y&&(i.theme=y),Object.keys(b).length>0&&(i.themeConfig=b)}}let x=o.width;if(x){let g=Vt(x,Wg.fields.width,"width",r);g!==void 0&&(i.width=g)}let m=o.height;if(m){let g=Vt(m,Wg.fields.height,"height",r);g!==void 0&&(i.height=g)}return{options:i,errors:r,warnings:n,ast:t}}var tk=()=>[new So,new an],rk=()=>[new _o,new yo,new bo,new vo,new wo,new Co,new qo],P9={padding:20,theme:"light",themeConfig:{palette:"antv"},get plugins(){return tk()},get interactions(){return rk()}};function Fl(e,t){let r={...e,...t};return(e.design||t.design)&&(r.design={...e.design,...t.design}),(e.themeConfig||t.themeConfig)&&(r.themeConfig={...e.themeConfig,...t.themeConfig}),(e.svg||t.svg)&&(r.svg={...e.svg,...t.svg}),r}function jl(e){let t={...e};return t.data&&(t.data=Bl(t.data)),t.elements&&(t.elements=Bl(t.elements)),t}function Yg(e){let{design:t,data:r}=e;return!(!t||!na(t)||!r||!Array.isArray(r.items)||r.items.length<1)}var Cs=class{constructor(t){this.rendered=!1,this.emitter=new w9,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,r="replace",n=!1){let{options:i,errors:o,warnings:s}=nk(t);n&&(this.initialOptions=i);let a=r==="replace"?Fl(jl(this.initialOptions||{}),i):Fl(this.options||jl(this.initialOptions||{}),i);this.options=a,this.parsedOptions=kg(Fl(P9,this.options)),s.length&&this.emitter.emit("warning",s),o.length&&this.emitter.emit("error",o)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){let t=this.parsedOptions;if(!Yg(t)){this.emitter.emit("error",new Error("Incomplete options"));return}let{container:r}=this.parsedOptions,n=this.compose(t),i=new rs(t,n);this.node=i.render(),r?.replaceChildren(this.node),this.editor?.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new qs(this.emitter,this.node,t)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});let o=this.node;return o&&aa(o).then(()=>{this.node===o&&this.emitter.emit("loaded",{node:o,options:this.options})}),!0}compose(t){let{design:r,data:n}=t,{title:i,item:o,items:s,structure:a}=r,{component:c,props:l}=a,u=i.component,f=o.component,h=s.map(m=>m.component),p=$a(d(c,{data:n,Title:u,Item:f,Items:h,options:t,...l})),x=Vr(p);if(!x)throw new Error("Failed to parse SVG template");return x}getTypes(){let t=this.parsedOptions;if(!Yg(t)){this.emitter.emit("error",new Error("Incomplete options"));return}let r=t.design,n=r.structure.composites||[],i=r.items.map(o=>o.composites||[]);return Wx({structure:n,items:i})}async toDataURL(t){if(!this.node)throw new Error("Infographic is not rendered yet.");return t?.type==="svg"?await Mg(this.node,t):await Ag(this.node,t)}on(t,r){this.emitter.on(t,r)}off(t,r){this.emitter.off(t,r)}destroy(){this.editor?.destroy(),this.node?.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}};function nk(e){if(typeof e=="string"){let{options:t,errors:r,warnings:n}=Xg(e);return{options:t,errors:r,warnings:n}}return{options:jl(e),errors:[],warnings:[]}}var o6e=u1.version;var To=Mo(z9()),O9=Mo(Ug()),v6e=e=>{let{children:t}=e,r=(0,To.useRef)(null),n=(0,To.useRef)(null);return(0,To.useEffect)(()=>(r.current&&(n.current=new Cs({container:r.current,width:"100%",height:"100%"}),n.current.on("error",i=>{console.error(i)})),()=>{n.current?.destroy()}),[]),(0,To.useEffect)(()=>{let i=`infographic sequence-steps-simple
|
|
560
|
-
data
|
|
561
|
-
sequences
|
|
562
|
-
- label Step 1
|
|
563
|
-
- label Step 2
|
|
564
|
-
- label Step 3
|
|
565
|
-
order asc`;setTimeout(()=>{n.current?.render(i)},1e3)},[t,n.current]),(0,O9.jsx)("div",{style:{height:600,width:600},ref:r})};export{v6e as ReactInfographic};
|
|
566
|
-
/*! Bundled license information:
|
|
567
|
-
|
|
568
|
-
comlink/dist/esm/comlink.js:
|
|
569
|
-
(**
|
|
570
|
-
* @license
|
|
571
|
-
* Copyright 2019 Google LLC
|
|
572
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
573
|
-
*)
|
|
574
|
-
*/
|