graview 0.1.69 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preview/chunk.23DATB5Y.js +1 -0
- package/dist/preview/chunk.2INDKSJI.js +1 -0
- package/dist/preview/chunk.3CLTABGP.js +1 -0
- package/dist/preview/chunk.3RRK6UTN.js +8 -0
- package/dist/preview/chunk.45HUV56Z.js +1 -0
- package/dist/preview/chunk.4HU2ILFY.js +1 -0
- package/dist/preview/{chunk.3VNOTHA5.js → chunk.4LWWXIM4.js} +1 -1
- package/dist/preview/chunk.4O64QV2Y.js +1 -0
- package/dist/preview/{chunk.PJL3I2IW.js → chunk.4QMAYVPU.js} +1 -1
- package/dist/preview/chunk.4UDST6IF.js +1 -0
- package/dist/preview/{chunk.6BNSDPZE.js → chunk.4YZ2A6SJ.js} +3 -3
- package/dist/preview/{chunk.523EFGHU.js → chunk.4ZEHLUXV.js} +1 -1
- package/dist/preview/{chunk.F4CDJBDS.js → chunk.5EQRIZ6I.js} +1 -1
- package/dist/preview/chunk.5OS4SYHE.js +1 -0
- package/dist/preview/{chunk.BO32A3W5.js → chunk.5PQV7GFE.js} +1 -1
- package/dist/preview/{chunk.PZ3KM3TY.js → chunk.5WCSQFS5.js} +1 -1
- package/dist/preview/{chunk.HU3KEWFO.js → chunk.64K5ELSQ.js} +1 -1
- package/dist/preview/{chunk.MKN7ADJB.js → chunk.67S2UWBT.js} +1 -1
- package/dist/preview/chunk.6A3KTD66.js +1 -0
- package/dist/preview/chunk.6BBUTKFC.js +23 -0
- package/dist/preview/chunk.6IMRCKB4.js +1 -0
- package/dist/preview/chunk.6L6RUOSF.js +5 -0
- package/dist/preview/{chunk.MH3AQO2R.js → chunk.6TBQV3NO.js} +1 -1
- package/dist/preview/chunk.6ZRVVRDQ.js +1 -0
- package/dist/preview/{chunk.YZKHTBTC.js → chunk.7FI75ZVE.js} +1 -1
- package/dist/preview/{chunk.IO5VFTXC.js → chunk.7KX36ENH.js} +1 -1
- package/dist/preview/chunk.7LPHWJB4.js +3 -0
- package/dist/preview/chunk.7MDGPTYF.js +1 -0
- package/dist/preview/{chunk.I4H2GS4O.js → chunk.7PWLRRUS.js} +2 -2
- package/dist/preview/{chunk.7T2P42VW.js → chunk.7TACFS7Q.js} +1 -1
- package/dist/preview/{chunk.KLEKC4ZX.js → chunk.7THS3DLZ.js} +1 -1
- package/dist/preview/{chunk.CSVDBDRZ.js → chunk.7XGU6KVF.js} +2 -2
- package/dist/preview/chunk.7ZLCA3WK.js +1 -0
- package/dist/preview/{chunk.RRCPEHM4.js → chunk.AIFT2HNP.js} +1 -1
- package/dist/preview/{chunk.LMZ2WMGH.js → chunk.ARGEGV5T.js} +1 -1
- package/dist/preview/{chunk.4FJ4OPSJ.js → chunk.BSWR5SGX.js} +1 -1
- package/dist/preview/{chunk.RNAL35ID.js → chunk.BWMPC7LK.js} +1 -1
- package/dist/preview/{chunk.KW7PHJYX.js → chunk.CEJIH3CN.js} +1 -1
- package/dist/preview/chunk.CEOQY5KS.js +5 -0
- package/dist/preview/{chunk.G43YUGNW.js → chunk.CGRX6SDE.js} +1 -1
- package/dist/preview/chunk.CPK6CYKN.js +111 -0
- package/dist/preview/{chunk.AZRICZKT.js → chunk.CVN2XFMF.js} +1 -1
- package/dist/preview/chunk.D4F6QX5L.js +1 -0
- package/dist/preview/{chunk.JPAE6K4E.js → chunk.D6ODKMOV.js} +1 -1
- package/dist/preview/{chunk.CCCONK73.js → chunk.DDSAFU3B.js} +1 -1
- package/dist/preview/{chunk.AHYMIVBX.js → chunk.DG3YNOH3.js} +1 -1
- package/dist/preview/chunk.DGYWNM5U.js +1 -0
- package/dist/preview/{chunk.ML5EHDZG.js → chunk.DHO3QZYK.js} +1 -1
- package/dist/preview/{chunk.EL7XXGQY.js → chunk.DJGZOPAS.js} +1 -1
- package/dist/preview/chunk.DOJCYXIJ.js +1 -0
- package/dist/preview/{chunk.CKSRW3LA.js → chunk.DX7RGK5G.js} +1 -1
- package/dist/preview/{chunk.QK7EUIPL.js → chunk.EA2KYBBR.js} +1 -1
- package/dist/preview/chunk.EEGVI266.js +1 -0
- package/dist/preview/{chunk.I7OFRF6N.js → chunk.EHLV3LND.js} +2 -2
- package/dist/preview/{chunk.QEBD7SC4.js → chunk.EJC7ACZT.js} +4 -2
- package/dist/preview/{chunk.QRNKGPAD.js → chunk.EJIQDMLU.js} +1 -1
- package/dist/preview/chunk.EOSN5DWW.js +1 -0
- package/dist/preview/{chunk.4RPKCW4J.js → chunk.EPSYX2SF.js} +1 -1
- package/dist/preview/chunk.EUXAIG73.js +1 -0
- package/dist/preview/chunk.EZQK23AB.js +1 -0
- package/dist/preview/{chunk.KKFKSJUN.js → chunk.F5O3HR7X.js} +1 -1
- package/dist/preview/chunk.F6MY6WJ4.js +1 -0
- package/dist/preview/{chunk.GTF6EMVE.js → chunk.F7KVEWFH.js} +1 -1
- package/dist/preview/{chunk.EEUCRZA3.js → chunk.FIUPDGUZ.js} +1 -1
- package/dist/preview/chunk.FNSVGSZI.js +1 -0
- package/dist/preview/chunk.FOHZPYUV.js +1 -0
- package/dist/preview/chunk.FW6M6GIU.js +32 -0
- package/dist/preview/{chunk.VXPEXUQF.js → chunk.G5AF5IXL.js} +1 -1
- package/dist/preview/chunk.G767NLBH.js +1 -0
- package/dist/preview/chunk.GFBE4VNT.js +1 -0
- package/dist/preview/{chunk.CDSHUWSK.js → chunk.GFOZVQBQ.js} +1 -1
- package/dist/preview/chunk.GKYJQE5A.js +1 -0
- package/dist/preview/chunk.GOVRX2YX.js +4 -0
- package/dist/preview/{chunk.T3PELB6I.js → chunk.H33XWGAY.js} +1 -1
- package/dist/preview/{chunk.2AL26ZPJ.js → chunk.H4BPTMED.js} +1 -1
- package/dist/preview/chunk.HLKDYI6J.js +1 -0
- package/dist/preview/{chunk.VEQIH7HR.js → chunk.HPFEYMGP.js} +1 -1
- package/dist/preview/chunk.HT35PAHI.js +21 -0
- package/dist/preview/{chunk.VR553M6J.js → chunk.HXRHEPPJ.js} +1 -1
- package/dist/preview/chunk.IPKODEOZ.js +1 -0
- package/dist/preview/{chunk.EP7YT7LT.js → chunk.IXYG65TM.js} +1 -1
- package/dist/preview/chunk.IZDB777E.js +1 -0
- package/dist/preview/{chunk.VBBH5R5T.js → chunk.JAPTTM6Y.js} +1 -1
- package/dist/preview/chunk.JCKIJSW7.js +25 -0
- package/dist/preview/{chunk.4R7H3GIL.js → chunk.JLNTE5CH.js} +2 -2
- package/dist/preview/chunk.JNK5WBSU.js +1 -0
- package/dist/preview/chunk.JREA2XDG.js +1 -0
- package/dist/preview/{chunk.WV6SP6IJ.js → chunk.KBJ3UUER.js} +1 -1
- package/dist/preview/{chunk.VBHV4TLG.js → chunk.KHRS2SKB.js} +1 -1
- package/dist/preview/{chunk.ISZFRLNJ.js → chunk.KJPLX72N.js} +1 -1
- package/dist/preview/chunk.KZUHXOZU.js +21 -0
- package/dist/preview/{chunk.6ZFYFT5A.js → chunk.L3MLGFIS.js} +1 -1
- package/dist/preview/{chunk.KEGL6NBD.js → chunk.L6P55HFW.js} +1 -1
- package/dist/preview/{chunk.N7A3T5QU.js → chunk.LDWWUKKX.js} +1 -1
- package/dist/preview/{chunk.CA2SYEYE.js → chunk.LHCGC3K6.js} +1 -1
- package/dist/preview/{chunk.BQORHDAH.js → chunk.LNKY6MT4.js} +1 -1
- package/dist/preview/chunk.LQ5J6YQW.js +1 -0
- package/dist/preview/{chunk.47VEV4BX.js → chunk.MEAUTBVM.js} +1 -1
- package/dist/preview/chunk.MEBKTW7H.js +17 -0
- package/dist/preview/{chunk.WQ7K5O2I.js → chunk.MFMC35ET.js} +1 -1
- package/dist/preview/chunk.MJ4T6YXI.js +1 -0
- package/dist/preview/chunk.MKJV3BM5.js +240 -0
- package/dist/preview/chunk.ML4X7VVK.js +1 -0
- package/dist/preview/chunk.MM7MLBGB.js +1 -0
- package/dist/preview/{chunk.5MOXQUZH.js → chunk.MQNW3O67.js} +1 -1
- package/dist/preview/{chunk.J2N7EKMX.js → chunk.MT252WP4.js} +1 -1
- package/dist/preview/chunk.MWWNKM3I.js +1 -0
- package/dist/preview/chunk.N3MXLORL.js +3 -0
- package/dist/preview/chunk.NH3VXTGX.js +1 -0
- package/dist/preview/{chunk.B422DSYN.js → chunk.NI4OPHTL.js} +1 -1
- package/dist/preview/chunk.NNGG7RCO.js +1 -0
- package/dist/preview/{chunk.LKM2R5UF.js → chunk.NXHEOHRR.js} +1 -1
- package/dist/preview/{chunk.TQQDUJLX.js → chunk.O5RPSUXV.js} +1 -1
- package/dist/preview/{chunk.FE3SINPK.js → chunk.OKHXXIMN.js} +1 -1
- package/dist/preview/chunk.ONAH6MC4.js +1 -0
- package/dist/preview/chunk.OOQG2AEF.js +1 -0
- package/dist/preview/{chunk.ZQYHNFRZ.js → chunk.OPMGQS5J.js} +1 -1
- package/dist/preview/{chunk.UHJSZ2XZ.js → chunk.OUF2QFZL.js} +1 -1
- package/dist/preview/{chunk.CUEIGKFG.js → chunk.OVSKPBPS.js} +1 -1
- package/dist/preview/chunk.OYMN3IFX.js +1 -0
- package/dist/preview/{chunk.QNC2OKLF.js → chunk.P43LPXXJ.js} +1 -1
- package/dist/preview/chunk.PGT4ZQDG.js +4 -0
- package/dist/preview/{chunk.WFJCC6G3.js → chunk.PQTXM4VY.js} +1 -1
- package/dist/preview/{chunk.KHKCTVHD.js → chunk.Q6GEPVQ7.js} +1 -1
- package/dist/preview/chunk.QDDDKEBH.js +1 -0
- package/dist/preview/{chunk.26RYER7Y.js → chunk.QJJWAYHB.js} +1 -1
- package/dist/preview/chunk.QK4QZVQG.js +1 -0
- package/dist/preview/{chunk.CLIC2QBA.js → chunk.QKRQPUCE.js} +1 -1
- package/dist/preview/{chunk.DU76ASS4.js → chunk.QNWGDG2Z.js} +2 -2
- package/dist/preview/{chunk.447RWLS7.js → chunk.QVBP4UZG.js} +2 -2
- package/dist/preview/chunk.RDUGUC7R.js +1 -0
- package/dist/preview/{chunk.EK3JXEZL.js → chunk.RHIP2UYE.js} +1 -1
- package/dist/preview/chunk.RJ7VSWTA.js +87 -0
- package/dist/preview/{chunk.JHAMSDAI.js → chunk.RO3D2RNP.js} +1 -1
- package/dist/preview/{chunk.C6CT6F4C.js → chunk.S2BMI23H.js} +1 -1
- package/dist/preview/{chunk.ZRBGYXAO.js → chunk.SGYZM6ZU.js} +1 -1
- package/dist/preview/{chunk.UPOYRCKI.js → chunk.SPJ34VHA.js} +1 -1
- package/dist/preview/{chunk.UAEOCWSG.js → chunk.T6KOL7TW.js} +1 -1
- package/dist/preview/{chunk.AUNQNTKY.js → chunk.T6UJEXFL.js} +3 -2
- package/dist/preview/chunk.TBEKEHFS.js +1 -0
- package/dist/preview/chunk.TO3ZKCA2.js +1 -0
- package/dist/preview/{chunk.FIY4RUK5.js → chunk.TQ3MNB6K.js} +1 -1
- package/dist/preview/{chunk.GG47EIKO.js → chunk.TRP66PHK.js} +1 -1
- package/dist/preview/{chunk.LGNGFG5V.js → chunk.TSZ2S3VG.js} +1 -1
- package/dist/preview/chunk.TTM5GQ2U.js +1 -0
- package/dist/preview/chunk.TUBY6SV3.js +1 -0
- package/dist/preview/{chunk.ZE5RSKXF.js → chunk.U5KJQFAP.js} +1 -1
- package/dist/preview/chunk.U6V4KZF5.js +1 -0
- package/dist/preview/chunk.UJ7RTNT4.js +1 -0
- package/dist/preview/{chunk.HCX6KPRF.js → chunk.UQZ2P6KD.js} +1 -1
- package/dist/preview/{chunk.CLZYNFFH.js → chunk.UZKBFI52.js} +1 -1
- package/dist/preview/{chunk.66TRDXYR.js → chunk.V5JB5UJS.js} +2 -2
- package/dist/preview/{chunk.3TKIZGC7.js → chunk.VDFQFLTU.js} +1 -1
- package/dist/preview/{chunk.IY3DV52G.js → chunk.VGYG2IBZ.js} +1 -1
- package/dist/preview/chunk.VICBF3MQ.js +2 -0
- package/dist/preview/{chunk.EQZPEOIW.js → chunk.VL3YDD7D.js} +1 -1
- package/dist/preview/{chunk.IYHY4VEC.js → chunk.VPFUOTY7.js} +1 -1
- package/dist/preview/chunk.VUDNQOOX.js +1 -0
- package/dist/preview/{chunk.P26ATAAI.js → chunk.VVIQSFM4.js} +1 -1
- package/dist/preview/{chunk.DO3FQM6R.js → chunk.W332P5T3.js} +6 -6
- package/dist/preview/{chunk.POKGLN4T.js → chunk.W3TJF4EH.js} +1 -1
- package/dist/preview/{chunk.D5JZQZ74.js → chunk.W5O5F4FT.js} +1 -1
- package/dist/preview/chunk.W6L2VAJG.js +2 -0
- package/dist/preview/{chunk.O7NYSO6F.js → chunk.WGH2P2YL.js} +1 -1
- package/dist/preview/{chunk.OD5QZHRC.js → chunk.WS5ORRGS.js} +1 -1
- package/dist/preview/{chunk.VQDL4EEP.js → chunk.WU6D3SPL.js} +1 -1
- package/dist/preview/{chunk.MV27WMNW.js → chunk.X2UYEA7H.js} +1 -1
- package/dist/preview/chunk.X45EITTK.js +18 -0
- package/dist/preview/{chunk.TAJBXG5U.js → chunk.X7U3JMBR.js} +1 -1
- package/dist/preview/chunk.XSM4OTF4.js +1 -0
- package/dist/preview/{chunk.DRAPVGQZ.js → chunk.XTHSPLZZ.js} +1 -1
- package/dist/preview/{chunk.VQOYFBEV.js → chunk.Y5WQD6KV.js} +1 -1
- package/dist/preview/chunk.YXVUJ3NB.js +1 -0
- package/dist/preview/{chunk.NRECR3NQ.js → chunk.Z22C2JJ4.js} +1 -1
- package/dist/preview/{chunk.TQRC5VAM.js → chunk.Z2BCOZDZ.js} +1 -1
- package/dist/preview/{chunk.S2NQRD6W.js → chunk.Z3TK2LJM.js} +1 -1
- package/dist/preview/chunk.ZGLOXN7O.js +1 -0
- package/dist/preview/{chunk.R7POSVUK.js → chunk.ZLQIGZXO.js} +2 -2
- package/dist/preview/{chunk.YJ4PFOPC.js → chunk.ZONRIOIA.js} +1 -1
- package/dist/preview/{chunk.QVCKTDG3.js → chunk.ZY3NAJDM.js} +1 -1
- package/dist/preview/index.html +55 -55
- package/dist/preview/page.js +2 -2
- package/package.json +7 -7
- package/dist/preview/chunk.2WFOKJB4.js +0 -1
- package/dist/preview/chunk.32SHA3EY.js +0 -1
- package/dist/preview/chunk.3D37E2G5.js +0 -1
- package/dist/preview/chunk.3PT3BU6K.js +0 -1
- package/dist/preview/chunk.3XTIYX6M.js +0 -1
- package/dist/preview/chunk.4O7WYLCK.js +0 -1
- package/dist/preview/chunk.5DU6FA5R.js +0 -1
- package/dist/preview/chunk.5TWRTGP6.js +0 -1
- package/dist/preview/chunk.6BR2SUAE.js +0 -1
- package/dist/preview/chunk.6TDVNWFU.js +0 -17
- package/dist/preview/chunk.6XBQDXT6.js +0 -3
- package/dist/preview/chunk.7L3I776Z.js +0 -1
- package/dist/preview/chunk.7OLKVOS6.js +0 -1
- package/dist/preview/chunk.AG7WJYM5.js +0 -3
- package/dist/preview/chunk.AMAOZVEO.js +0 -1
- package/dist/preview/chunk.AMV2ILR6.js +0 -1
- package/dist/preview/chunk.B5EFNTDA.js +0 -1
- package/dist/preview/chunk.BBLIT7S7.js +0 -1
- package/dist/preview/chunk.BSQI3KM2.js +0 -1
- package/dist/preview/chunk.CYEPHT7V.js +0 -1
- package/dist/preview/chunk.D3SWJ7OS.js +0 -1
- package/dist/preview/chunk.DHPXRDT5.js +0 -5
- package/dist/preview/chunk.DKUEZPGR.js +0 -1
- package/dist/preview/chunk.FWXW4T4I.js +0 -25
- package/dist/preview/chunk.GF5CZPZ7.js +0 -1
- package/dist/preview/chunk.GPBHUIZQ.js +0 -2
- package/dist/preview/chunk.GVFGS2HY.js +0 -1
- package/dist/preview/chunk.HGH27XZG.js +0 -23
- package/dist/preview/chunk.HMJXB6KC.js +0 -5
- package/dist/preview/chunk.HTEQCRVP.js +0 -1
- package/dist/preview/chunk.I7KN732Z.js +0 -2
- package/dist/preview/chunk.IAVIYJTL.js +0 -1
- package/dist/preview/chunk.IPKESOIU.js +0 -21
- package/dist/preview/chunk.IRNEWNUB.js +0 -1
- package/dist/preview/chunk.J7O23NKZ.js +0 -22
- package/dist/preview/chunk.JDUA5PH2.js +0 -1
- package/dist/preview/chunk.JN3WZGJY.js +0 -1
- package/dist/preview/chunk.JQEXH23N.js +0 -1
- package/dist/preview/chunk.KVQYOFDV.js +0 -1
- package/dist/preview/chunk.LAVLPYSC.js +0 -1
- package/dist/preview/chunk.MATUPDZ3.js +0 -1
- package/dist/preview/chunk.MD3N26BC.js +0 -23
- package/dist/preview/chunk.MHHNO3O2.js +0 -1
- package/dist/preview/chunk.MUWI54IP.js +0 -1
- package/dist/preview/chunk.NLZHNPDU.js +0 -93
- package/dist/preview/chunk.NSAGOOJW.js +0 -1
- package/dist/preview/chunk.NYLKG25K.js +0 -4
- package/dist/preview/chunk.OWO3OV62.js +0 -1
- package/dist/preview/chunk.ROYCJXPE.js +0 -1
- package/dist/preview/chunk.RZ73YG5K.js +0 -1
- package/dist/preview/chunk.SAWASNDO.js +0 -1
- package/dist/preview/chunk.SCVKHGO3.js +0 -1
- package/dist/preview/chunk.SM37MNS2.js +0 -1
- package/dist/preview/chunk.T2BZBR7S.js +0 -50
- package/dist/preview/chunk.TLPCYKLW.js +0 -3
- package/dist/preview/chunk.U563J5IM.js +0 -1
- package/dist/preview/chunk.U6QXLNHF.js +0 -15
- package/dist/preview/chunk.VBYJBW32.js +0 -1
- package/dist/preview/chunk.VHLL6VC6.js +0 -1
- package/dist/preview/chunk.W3WXI5B3.js +0 -1
- package/dist/preview/chunk.W43XWQRC.js +0 -1
- package/dist/preview/chunk.WJHLE73Y.js +0 -111
- package/dist/preview/chunk.ZT3ZG52B.js +0 -1
- package/dist/preview/chunk.ZU3RPI34.js +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var j={nav:"div",header:"div",footer:"div",aside:"div",search:"div",output:"span"},L=["all","display","position","top","right","bottom","left","inset","inset-block","inset-inline","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","width","height","min-width","min-height","max-width","max-height","inline-size","block-size","min-inline-size","min-block-size","max-inline-size","max-block-size","margin","margin-top","margin-right","margin-bottom","margin-left","margin-block","margin-inline","margin-block-start","margin-block-end","margin-inline-start","margin-inline-end","padding","padding-top","padding-right","padding-bottom","padding-left","padding-block","padding-inline","padding-block-start","padding-block-end","padding-inline-start","padding-inline-end","box-sizing","overflow","overflow-x","overflow-y","overflow-wrap","float","clear","z-index","aspect-ratio","object-fit","object-position","vertical-align","isolation","contain","container","container-type","container-name","content-visibility","flex","flex-direction","flex-wrap","flex-flow","flex-grow","flex-shrink","flex-basis","order","grid","grid-template","grid-template-columns","grid-template-rows","grid-template-areas","grid-auto-columns","grid-auto-rows","grid-auto-flow","grid-area","grid-column","grid-row","grid-column-start","grid-column-end","grid-row-start","grid-row-end","gap","row-gap","column-gap","align-items","align-content","align-self","justify-items","justify-content","justify-self","place-items","place-content","place-self","columns","column-count","column-width","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-fill","color","background","background-color","background-image","background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode","border","border-top","border-right","border-bottom","border-left","border-block","border-inline","border-block-start","border-block-end","border-inline-start","border-inline-end","border-width","border-style","border-color","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-start-start-radius","border-start-end-radius","border-end-start-radius","border-end-end-radius","border-collapse","border-spacing","outline","outline-width","outline-style","outline-color","outline-offset","box-shadow","opacity","visibility","mix-blend-mode","filter","backdrop-filter","clip-path","accent-color","caret-color","color-scheme","appearance","-webkit-appearance","mask-image","mask-size","mask-position","mask-repeat","mask-origin","mask-clip","mask-composite","mask-mode","mask-type","-webkit-mask","-webkit-mask-image","-webkit-mask-size","-webkit-mask-position","-webkit-mask-repeat","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-composite","font","font-family","font-size","font-weight","font-style","font-stretch","font-variant","font-variant-numeric","font-variant-caps","font-variant-ligatures","font-feature-settings","font-variation-settings","font-kerning","font-optical-sizing","font-size-adjust","font-synthesis","line-height","letter-spacing","word-spacing","text-align","text-align-last","text-indent","text-transform","text-decoration","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-underline-position","text-shadow","text-overflow","text-wrap","text-wrap-mode","text-wrap-style","white-space","white-space-collapse","word-break","line-break","hyphens","tab-size","direction","unicode-bidi","writing-mode","text-orientation","text-rendering","-webkit-font-smoothing","-webkit-line-clamp","-webkit-box-orient","line-clamp","-webkit-text-fill-color","-webkit-background-clip","-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","list-style","list-style-type","list-style-position","content","quotes","counter-reset","counter-increment","counter-set","table-layout","caption-side","empty-cells","transform","transform-origin","transform-box","transform-style","translate","rotate","scale","perspective","perspective-origin","backface-visibility","transition","transition-property","transition-duration","transition-timing-function","transition-delay","transition-behavior","animation","animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-composition","will-change","animation-timeline","animation-range","animation-range-start","animation-range-end","scroll-timeline","scroll-timeline-name","scroll-timeline-axis","view-timeline","view-timeline-name","view-timeline-axis","view-timeline-inset","timeline-scope","cursor","pointer-events","user-select","-webkit-user-select","touch-action","resize","scroll-behavior","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-snap-type","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-padding","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-margin-block","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-inline","scroll-margin-inline-start","scroll-margin-inline-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scroll-padding-block","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-inline","scroll-padding-inline-start","scroll-padding-inline-end","scrollbar-width","scrollbar-color","scrollbar-gutter","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-opacity","stroke-miterlimit","stop-color","stop-opacity","clip-rule","marker","marker-start","marker-mid","marker-end","paint-order","vector-effect","shape-rendering","text-anchor","dominant-baseline","alignment-baseline","r","cx","cy","rx","ry","x","y","d","mask","flood-color","flood-opacity","lighting-color","color-interpolation-filters"],F=["var","env","calc","min","max","clamp","round","mod","rem","abs","sign","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","rgb","rgba","hsl","hsla","hwb","lab","lch","oklab","oklch","color","color-mix","light-dark","linear-gradient","radial-gradient","conic-gradient","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","translate","translatex","translatey","translatez","translate3d","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","matrix","matrix3d","perspective","cubic-bezier","steps","linear","repeat","minmax","fit-content","blur","brightness","contrast","drop-shadow","grayscale","hue-rotate","invert","saturate","sepia","opacity","circle","ellipse","inset","polygon","path","xywh","rect","counter","counters","scroll","view"],U=["fill","stroke","clip-path","mask","marker","marker-start","marker-mid","marker-end","filter"],M=["media","supports","container","keyframes"],W={position:["static","relative","absolute","sticky"],all:[],appearance:["auto","none","menulist-button","textfield"],"-webkit-appearance":["auto","none","menulist-button","textfield"]},K=["host","host-context","slotted","part","backdrop","picker","view-transition","view-transition-group","view-transition-image-pair","view-transition-old","view-transition-new"],X=["-webkit-details-marker"],S=64e3;var p=n=>n>=48&&n<=57,Y=n=>p(n)||n>=65&&n<=70||n>=97&&n<=102,V=n=>n>=65&&n<=90||n>=97&&n<=122,A=n=>n>=128,v=n=>V(n)||A(n)||n===95,q=n=>v(n)||p(n)||n===45,G=n=>n===10,b=n=>n===10||n===9||n===32,ce=n=>n>=0&&n<=8||n===11||n>=14&&n<=31||n===127,y=-1;function ue(n){let i=[];for(let t=0;t<n.length;t+=1){let e=n.codePointAt(t);e>65535&&(t+=1),e===13?(n.charCodeAt(t+1)===10&&(t+=1),e=10):e===12?e=10:(e===0||e>=55296&&e<=57343)&&(e=65533),i.push(e)}return i}function Q(n){let i=ue(n),t=0,e=(a=0)=>t+a<i.length?i[t+a]:y,r=[],o=(a,l)=>a===92&&l!==10&&l!==y,s=(a,l,m)=>a===45?v(l)||l===45||o(l,m):v(a)?!0:o(a,l),u=(a,l,m)=>a===43||a===45?p(l)||l===46&&p(m):p(a===46?l:a),c=()=>{let a=e();if(t+=1,a===y)return 65533;if(Y(a)){let l=String.fromCodePoint(a);for(;l.length<6&&Y(e());)l+=String.fromCodePoint(e()),t+=1;b(e())&&(t+=1);let m=parseInt(l,16);return m===0||m>=55296&&m<=57343||m>1114111?65533:m}return a},d=()=>{let a="";for(;;){let l=e();if(q(l))a+=String.fromCodePoint(l),t+=1;else if(o(l,e(1)))t+=1,a+=String.fromCodePoint(c());else return a}},f=()=>{let a="";for((e()===43||e()===45)&&(a+=String.fromCodePoint(i[t++]));p(e());)a+=String.fromCodePoint(i[t++]);if(e()===46&&p(e(1)))for(a+=String.fromCodePoint(i[t++],i[t++]);p(e());)a+=String.fromCodePoint(i[t++]);if((e()===69||e()===101)&&(p(e(1))||(e(1)===43||e(1)===45)&&p(e(2))))for(a+=String.fromCodePoint(i[t++]),p(e())||(a+=String.fromCodePoint(i[t++]));p(e());)a+=String.fromCodePoint(i[t++]);return a},x=()=>{let a=f();return s(e(),e(1),e(2))?{type:"dimension",repr:a,unit:d()}:e()===37?(t+=1,{type:"percentage",repr:a}):{type:"number",repr:a}},g=()=>{for(;;){let a=e();if(t+=1,a===41||a===y)return;o(a,e())&&c()}},se=()=>{let a="";for(;b(e());)t+=1;for(;;){let l=e();if(t+=1,l===41)return{type:"url",value:a};if(l===y)return{type:"url",value:a};if(b(l)){for(;b(e());)t+=1;return e()===41||e()===y?(e()===41&&(t+=1),{type:"url",value:a}):(g(),{type:"bad-url"})}if(l===34||l===39||l===40||ce(l))return g(),{type:"bad-url"};if(l===92){if(o(l,e()))a+=String.fromCodePoint(c());else return g(),{type:"bad-url"};continue}a+=String.fromCodePoint(l)}},z=()=>{let a=d();if(a.toLowerCase()==="url"&&e()===40){for(t+=1;b(e())&&b(e(1));)t+=1;let l=b(e())?e(1):e();return l===34||l===39?{type:"function",value:a}:se()}return e()===40?(t+=1,{type:"function",value:a}):{type:"ident",value:a}},le=a=>{let l="";for(;;){let m=e();if(t+=1,m===a||m===y)return{type:"string",value:l};if(G(m))return t-=1,{type:"bad-string"};if(m===92){if(e()===y)continue;if(G(e())){t+=1;continue}l+=String.fromCodePoint(c());continue}l+=String.fromCodePoint(m)}};for(;;){for(;e()===47&&e(1)===42;){for(t+=2;e()!==y&&!(e()===42&&e(1)===47);)t+=1;e()!==y&&(t+=2)}let a=e();if(a===y)return r;if(b(a)){for(;b(e());)t+=1;r.push({type:"whitespace"});continue}switch(t+=1,a){case 34:case 39:r.push(le(a));continue;case 35:if(q(e())||o(e(),e(1))){let l=s(e(),e(1),e(2));r.push({type:"hash",value:d(),id:l})}else r.push({type:"delim",value:"#"});continue;case 40:r.push({type:"("});continue;case 41:r.push({type:")"});continue;case 43:case 46:u(a,e(),e(1))?(t-=1,r.push(x())):r.push({type:"delim",value:String.fromCodePoint(a)});continue;case 44:r.push({type:","});continue;case 45:u(a,e(),e(1))?(t-=1,r.push(x())):e()===45&&e(1)===62?(t+=2,r.push({type:"CDC"})):s(a,e(),e(1))?(t-=1,r.push(z())):r.push({type:"delim",value:"-"});continue;case 58:r.push({type:":"});continue;case 59:r.push({type:";"});continue;case 60:e()===33&&e(1)===45&&e(2)===45?(t+=3,r.push({type:"CDO"})):r.push({type:"delim",value:"<"});continue;case 64:s(e(),e(1),e(2))?r.push({type:"at-keyword",value:d()}):r.push({type:"delim",value:"@"});continue;case 91:r.push({type:"["});continue;case 92:o(a,e())?(t-=1,r.push(z())):r.push({type:"delim",value:"\\"});continue;case 93:r.push({type:"]"});continue;case 123:r.push({type:"{"});continue;case 125:r.push({type:"}"});continue;default:p(a)?(t-=1,r.push(x())):v(a)?(t-=1,r.push(z())):r.push({type:"delim",value:String.fromCodePoint(a)})}}}var ee={"{":"}","[":"]","(":")"},ne=32,D=class{constructor(i){this.tokens=i}i=0;peek(){return this.tokens[this.i]}next(){return this.tokens[this.i++]}};function te(n,i){let t=n.next();return t.type==="{"||t.type==="["||t.type==="("?{type:"block",open:t.type,value:H(n,ee[t.type],i+1)}:t.type==="function"?{type:"func",name:t.value,value:H(n,")",i+1)}:t}function H(n,i,t){let e=[];for(;;){let r=n.peek();if(!r)return e;if(r.type===i)return n.next(),e;if(t>ne){n.next(),e.push({type:"bad-string"});continue}e.push(te(n,t))}}function w(n,i){let t=[],e=0;for(;e<n.length;){let r=n[e];if(r.type==="whitespace"||i&&(r.type==="CDO"||r.type==="CDC")){e+=1;continue}if(r.type==="at-keyword"){let u=[];e+=1;let c;for(;e<n.length;){let d=n[e];if(e+=1,d.type===";")break;if(d.type==="block"&&d.open==="{"){c=d.value;break}u.push(d)}t.push({type:"at-rule",name:r.value,prelude:u,...c?{block:c}:{}});continue}let o=[],s;for(;e<n.length;){let u=n[e];if(e+=1,u.type==="block"&&u.open==="{"){s=u.value;break}o.push(u)}s&&t.push({type:"qualified",prelude:o,block:s})}return t}function I(n){let i=[],t=0;for(;t<n.length;){let e=n[t];if(e.type==="whitespace"||e.type===";"){t+=1;continue}if(e.type==="at-keyword"){let o=(()=>{for(let s=t+1;s<n.length;s+=1){let u=n[s];if(u.type===";"||u.type==="block"&&u.open==="{")return s+1}return n.length})();i.push(...w(n.slice(t,o),!1)),t=o;continue}if(e.type==="ident"){let o=t+1;for(;n[o]?.type==="whitespace";)o+=1;if(n[o]?.type===":"){let s=o+1;for(;s<n.length&&n[s].type!==";";)s+=1;let u=ie(e.value,n.slice(o+1,s));if(u.value.some(c=>c.type==="block"&&c.open==="{")){let c=n.findIndex((d,f)=>f>t&&d.type==="block"&&d.open==="{");i.push(...w(n.slice(t,c+1),!1)),t=c+1;continue}i.push(u),t=s+1;continue}}let r=t;for(;r<n.length&&!(n[r].type==="block"&&n[r].open==="{")&&n[r].type!==";";)r+=1;r<n.length&&n[r].type==="block"&&i.push(...w(n.slice(t,r+1),!1)),t=r+1}return i}function ie(n,i){let t=[...i];for(;t[0]?.type==="whitespace";)t.shift();for(;t.at(-1)?.type==="whitespace";)t.pop();let e=!1,o=t.length-1;if(t[o]?.type==="ident"&&t[o].value.toLowerCase()==="important"){for(o-=1;t[o]?.type==="whitespace";)o-=1;let s=t[o];if(s?.type==="delim"&&s.value==="!")for(e=!0,t.length=o;t.at(-1)?.type==="whitespace";)t.pop()}return{type:"declaration",name:n,value:t,important:e}}function N(n){let i=new D(Q(n)),t=[];for(;i.peek();)t.push(te(i,0));return t}function C(n){let i="",t=[...n].map(e=>e.codePointAt(0));return t.forEach((e,r)=>{e===0?i+="\uFFFD":e>=1&&e<=31||e===127||r===0&&p(e)||r===1&&p(e)&&t[0]===45?i+=`\\${e.toString(16)} `:r===0&&e===45&&t.length===1?i+="\\-":A(e)||e===45||e===95||p(e)||V(e)?i+=String.fromCodePoint(e):i+=`\\${String.fromCodePoint(e)}`}),i}function R(n){let i="";for(let t of n){let e=t.codePointAt(0);A(e)||e===45||e===95||p(e)||V(e)?i+=t:e>=1&&e<=31||e===127?i+=`\\${e.toString(16)} `:i+=`\\${t}`}return i}function E(n){let i='"';for(let t of n){let e=t.codePointAt(0);e===0?i+="\uFFFD":e>=1&&e<=31||e===127||e===60||e===62?i+=`\\${e.toString(16)} `:e===34||e===92?i+=`\\${t}`:i+=t}return`${i}"`}function de(n){let i=R(n);return/^[eE]([0-9]|[+-][0-9])/.test(n)?`\\${n.codePointAt(0).toString(16)} ${R(n.slice(1))}`:i}var Z=n=>{switch(n.type){case"ident":case"url":case"bad-url":case"number":case"percentage":case"dimension":case"CDC":case"hash":case"at-keyword":return n.type;case"func":case"function":return"function";case"block":return n.open==="("?"(":"other";case"(":return"(";case"delim":return`delim${n.value}`;default:return"other"}};function pe(n,i){let t=["ident","function","url","bad-url","delim-","number","percentage","dimension","CDC"];return n==="ident"?[...t,"("].includes(i):n==="at-keyword"||n==="hash"||n==="dimension"||n==="delim#"||n==="delim-"?t.includes(i):n==="number"?["ident","function","url","bad-url","number","percentage","dimension","delim%"].includes(i):n==="delim@"?["ident","function","url","bad-url","delim-","CDC"].includes(i):n==="delim."||n==="delim+"?["number","percentage","dimension"].includes(i):n==="delim/"?i==="delim*":!1}function fe(n){switch(n.type){case"whitespace":return" ";case"ident":return C(n.value);case"at-keyword":return`@${C(n.value)}`;case"hash":return`#${R(n.value)}`;case"string":return E(n.value);case"url":return`url(${E(n.value)})`;case"delim":return n.value==="\\"?`\\
|
|
2
|
-
`:n.value;case"CDO":return"<!--";case"CDC":return"-->";case"number":return n.repr;case"percentage":return`${n.repr}%`;case"dimension":return`${n.repr}${de(n.unit)}`;case"func":return`${C(n.name)}(${k(n.value)})`;case"block":return`${n.open}${k(n.value)}${ee[n.open]}`;case":":case";":case",":case"[":case"]":case"(":case")":case"{":case"}":return n.type;default:return""}}function k(n){let i="",t;for(let e of n)e.type==="whitespace"&&t?.type==="whitespace"||(t&&pe(Z(t),Z(e))&&(i+="/**/"),i+=fe(e),t=e);return i}var me=new Set(L),re=new Set(F),B=new Set(U),ye=new Set(M),ge=new Set(K),be=new Set(X),J=/^#[A-Za-z_][A-Za-z0-9_.:-]*$/,h=n=>n.replace(/[A-Z]/g,i=>i.toLowerCase()),he=n=>h(n);function O(n,i,t){let e=[];for(let r of i){if(r.type==="bad-url"||r.type==="bad-string"){t({reason:"unreadable",...n?{name:n}:{}});return}if(r.type==="url"){if(n&&B.has(n)&&J.test(r.value)){e.push({type:"func",name:"url",value:[{type:"string",value:r.value}]});continue}t({reason:"url",...n?{name:n}:{}});return}if(r.type==="func"){let o=h(r.name);if(o==="url"||o==="src"){let u=r.value.filter(d=>d.type!=="whitespace"),c=u[0];if(o==="url"&&u.length===1&&c?.type==="string"&&n&&B.has(n)&&J.test(c.value)){e.push({type:"func",name:"url",value:[{type:"string",value:c.value}]});continue}t({reason:"url",...n?{name:n}:{}});return}if(!re.has(o)){t({reason:"function",name:o});return}let s=O(n,r.value,t);if(!s)return;o==="var"?e.push({type:"whitespace"},{type:"func",name:o,value:s},{type:"whitespace"}):e.push({type:"func",name:o,value:s});continue}if(r.type==="block"){if(r.open==="{"||r.open==="("&&e.at(-1)?.type==="ident"){t({reason:"unreadable",...n?{name:n}:{}});return}let o=O(n,r.value,t);if(!o)return;e.push({type:"block",open:r.open,value:o});continue}if(r.type==="at-keyword"||r.type==="CDO"||r.type==="CDC"||r.type==="{"||r.type==="}"||r.type===";"||r.type==="delim"&&r.value==="\\"){t({reason:"unreadable",...n?{name:n}:{}});return}e.push(r)}return e}var ke=/^(animation|transition|scroll-behavior)/;function P(n,i,t=!1){let e=n.name.startsWith("--"),r=e?n.name:he(n.name);if(!e&&!me.has(r)){i({reason:"property",name:r});return}let o=W[r];if(o){let c=n.value.filter(x=>x.type!=="whitespace"),d=c[0],f=c.length===1&&d?.type==="ident"?h(d.value):void 0;if(!f||![...o,"inherit","initial","unset","revert"].includes(f)){i({reason:"value",name:r});return}return`${r}: ${f}${n.important?" !important":""}`}let s=O(e?void 0:r,n.value,i);if(!s)return;let u=k(s).trim();return`${e?`--${R(n.name.slice(2))}`:r}: ${u}${n.important&&!(t&&ke.test(r))?" !important":""}`}function oe(n,i){let t=e=>{for(let r=0;r<e.length;r+=1){let o=e[r];if(r>0&&e[r-1].type===":"&&(o.type==="ident"||o.type==="func")){let u=h(o.type==="ident"?o.value:o.name);if(ge.has(u)||(u.startsWith("-webkit-")||u.startsWith("-moz-"))&&!be.has(u))return i({reason:"selector",name:u}),!1}if(o.type==="url"||o.type==="bad-url"||o.type==="bad-string"||o.type==="at-keyword"||o.type==="CDO"||o.type==="CDC"||o.type==="block"&&o.open==="{")return i({reason:"unreadable",name:"selector"}),!1;if(o.type==="func"&&!t(o.value)||o.type==="block"&&!t(o.value))return!1}return!0};return t(n)}function T(n,i,t){let e=[];for(let r of I(n))if(r.type==="declaration"){let o=P(r,i);o&&e.push(`${o};`)}else{let o=_(r,i,t+1,"style");o&&e.push(o)}return e.join(" ")}function xe(n,i,t){let e=r=>r.every(o=>{if(o.type==="url"||o.type==="bad-url"||o.type==="bad-string"||o.type==="block"&&o.open==="{")return t({reason:o.type==="url"?"url":"unreadable",name:`@${i}`}),!1;if(o.type==="func"){let s=h(o.name);return i==="supports"&&s==="selector"?oe(o.value,t):re.has(s)?e(o.value):(t({reason:"function",name:s}),!1)}if(o.type==="block"){if(i==="supports"){let s=I(o.value);if(s.length===1&&s[0].type==="declaration")return P(s[0],t)!==void 0}return e(o.value)}return!0});return e(n)?k(n).trim():void 0}function $(n){return n.map((i,t)=>{let e=n[t-1],r=e?.type===":"||e?.type==="delim"&&(e.value==="."||e.value==="|");return i.type==="ident"&&!r&&Object.prototype.hasOwnProperty.call(j,h(i.value))?{type:"block",open:"[",value:[{type:"ident",value:"data-graview-as"},{type:"delim",value:"="},{type:"string",value:h(i.value)}]}:i.type==="func"?{type:"func",name:i.name,value:$(i.value)}:i.type==="block"&&i.open==="("?{type:"block",open:"(",value:$(i.value)}:i})}function _(n,i,t,e){if(t>ne){i({reason:"unreadable",name:"nesting"});return}if(n.type==="qualified"){if(e==="keyframes"){if(!n.prelude.every(f=>f.type==="whitespace"||f.type===","||f.type==="percentage"||f.type==="ident"&&["from","to"].includes(h(f.value)))){i({reason:"unreadable",name:"keyframe"});return}return`${k(n.prelude).trim()} { ${T(n.block,i,t)} }`}if(!oe(n.prelude,i))return;let c=k($(n.prelude)).trim();if(c===""){i({reason:"unreadable",name:"selector"});return}return`${c} { ${T(n.block,i,t)} }`}let r=h(n.name),o=r==="-webkit-keyframes"?"keyframes":r;if(!ye.has(o)||e==="keyframes"){i({reason:"at-rule",name:`@${r}`});return}if(!n.block){i({reason:"unreadable",name:`@${r}`});return}if(o==="keyframes"){if(e!=="sheet"){i({reason:"at-rule",name:"@keyframes"});return}let c=n.prelude.filter(g=>g.type!=="whitespace"),d=c[0];if(c.length!==1||!d||d.type!=="ident"&&d.type!=="string"){i({reason:"unreadable",name:"@keyframes"});return}let f=w(n.block,!1).map(g=>_(g,i,t+1,"keyframes")).filter(g=>g!==void 0);return`@keyframes ${d.type==="ident"?C(d.value):E(d.value)} { ${f.join(" ")} }`}let s=xe(n.prelude,o,i);if(s===void 0)return;let u=e==="style"?T(n.block,i,t):w(n.block,!1).map(c=>_(c,i,t+1,"sheet")).filter(c=>c!==void 0).join(" ");return`@${o} ${s} { ${u} }`}function ae(n,i=S){let t=[];if(n.length>i)return{css:"",refused:[{reason:"size"}]};let e=o=>void t.push(o);return{css:w(N(n),!0).map(o=>_(o,e,0,"sheet")).filter(o=>o!==void 0).join(`
|
|
3
|
-
`),refused:t}}function we(n,i=S){let t=[],e=[],r=0;for(let o of n){if(r+o.length>i){e.push({reason:"size"});continue}r+=o.length;let s=ae(o,i);s.css&&t.push(s.css),e.push(...s.refused)}return{css:t.join(`
|
|
4
|
-
`),refused:e}}function Ce(n,i=S){let t=[];if(n.length>i)return{css:"",refused:[{reason:"size"}]};let e=o=>void t.push(o),r=[];for(let o of I(N(n))){if(o.type!=="declaration"){e({reason:"unreadable",name:"a rule in a style attribute"});continue}let s=P(o,e,!0);s&&r.push(s)}return{css:r.join("; "),refused:t}}function Se(n,i){let t,e=P(ie(n,N(i)),r=>t??=r);return e===void 0||t?{refused:t??{reason:"unreadable",name:n}}:{value:e.slice(e.indexOf(":")+1).trim()}}export{ae as a,we as b,Ce as c,Se as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk.AJZBJBMO.js";var e='"use strict";\n/*! @remote-dom/core and @remote-dom/polyfill \u2014 Copyright 2020-present, Shopify Inc. \u2014 MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest\'s worker runtime \u2014 Elastic License 2.0. */\n"use strict";(()=>{var Re=globalThis,io=Re.addEventListener,ao=Re.removeEventListener,lo=Re.postMessage,co=globalThis.queueMicrotask,fn=globalThis.performance,uo=fn?fn.now.bind(fn):Date.now,_e={listen:t=>io.call(Re,"message",t),unlisten:t=>ao.call(Re,"message",t),post:t=>lo.call(Re,t),microtask:t=>co.call(globalThis,t),now:()=>uo()};var S=Symbol("name"),fe=Symbol("prefix"),me=Symbol("value"),x=Symbol("ns"),z=Symbol("owner"),I=Symbol("owner_document"),re=Symbol("attributes"),D=Symbol("prev"),p=Symbol("next"),A=Symbol("child"),Y=Symbol("parent"),pe=Symbol("host"),K=Symbol("data"),Te=Symbol("listeners"),mn=Symbol("isTrusted"),Pe=Symbol("path"),Ce=Symbol("stop_immediate_propagation"),Me=Symbol("dispatching"),ie=Symbol("content"),k=Symbol("hooks"),mt=Symbol("extensions"),we=Symbol("hooks_dispatch"),U=Symbol("is_connected"),Ie=Symbol("create_element"),Zn=0,$=1,De=2,ke=3,Le=8,Oe=9,Qn=10,he=11,_="http://www.w3.org/1999/xhtml",Z="http://www.w3.org/2000/svg",Jn="http://www.w3.org/XML/1998/namespace",Xe="http://www.w3.org/2000/xmlns/";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function G(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function er(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function C(t,e){let n=globalThis.DOMException;if(typeof n=="function")return new n(t,e);let r=new Error(t);return r.name=e,r}var tr=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,nr=/[\\0\\t\\n\\f\\r />=]/u,fo=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===""?null:e}function rr(t){tr.test(t)||hn(t)}function pn(t){(t===""||nr.test(t))&&hn(t)}function ht(t,e,n){let r=ae(t),o=String(e),s=o.indexOf(":"),i=s<0?null:o.slice(0,s),a=s<0?o:o.slice(s+1);if((i!=null&&(i===""||fo.test(i))||(n==="element"?!tr.test(a):a===""||nr.test(a)))&&hn(o),i!=null&&r==null)throw C(`A namespace is required for the prefix in "${o}"`,"NamespaceError");if(i==="xml"&&r!==Jn)throw C("The xml prefix requires the XML namespace","NamespaceError");if((o==="xmlns"||i==="xmlns")&&r!==Xe)throw C("The xmlns name requires the XMLNS namespace","NamespaceError");if(r===Xe&&o!=="xmlns"&&i!=="xmlns")throw C("The XMLNS namespace requires the xmlns name or prefix","NamespaceError");return{namespace:r,qualifiedName:o,prefix:i,localName:a}}function hn(t){throw C(`Invalid name: "${t}"`,"InvalidCharacterError")}var gt=0,yt=1,or=2,gn=3,mo=typeof performance>"u"?Date.now:performance.now.bind(performance),B=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=or;static BUBBLING_PHASE=gn;timeStamp=mo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[Pe]=[];[Ce]=!1;[Me]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,mn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[mn]}composedPath(){return[...this[Pe]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Ce]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function yn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?"capture":"bubble"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?or:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i=="object"?i.handleEvent(t):i.call(e,t)}catch(a){setTimeout(po,0,a)}if(t[Ce])break}}function po(t){throw t}var Ke=[],Et=new WeakMap;function bt(t,e){let n=Et.get(t);n?n.push(e):Et.set(t,[e]),Ke[Ke.length-1].push(t)}function V(t){let e=[];Ke.push(e);let n;try{n=t()}catch(r){Ke.pop();try{sr(e)}catch{}throw r}return Ke.pop(),sr(e),n}function sr(t){let e,n=!1;for(let r of t){let o=Et.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Et.delete(r)}}if(n)throw e}var Nt=[],Ze=[],En=!1;function Se(t){for(let e of t)Nt.push(e),e[1]&&Ze.push(e[1]);if(!En){En=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,s]=Nt[r];s&&Ze.splice(Ze.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Nt.length=0,Ze.length=0,En=!1}}}function Qe(t){let e=t;for(;e;){if(Ze.includes(e))return!0;e=e[Y]??e[pe]}return!1}var Je=Symbol("listenerRegistrations"),ge=class{[Te]=void 0;[Je]=void 0;[I]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r=="object"&&r.capture===!0,s=typeof r=="object"&&r.once===!0,i=typeof r=="object"?r.signal:void 0;if(i?.aborted)return;let a=bn(o),c=this[Je];c||(c=new Map,this[Je]=c);let u=c.get(e);u||(u={},c.set(e,u));let f=u[a];if(f||(f=new Map,u[a]=f),f.has(n))return;let g=this,y={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(y.normalizedListener=function(...M){if(y.signal?.aborted){Tt(g,y);return}return y.once&&Tt(g,y),typeof y.listener=="object"?y.listener.handleEvent(...M):y.listener.call(this,...M)});let E=this[Te];E||(E=new Map,this[Te]=E);let v=E.get(e);v||(v={},E.set(e,v));let b=v[a];if(b||(b=new Set,v[a]=b),f.set(n,y),b.add(y),i){let N=()=>{Tt(g,y)};y.abortListener=N,i.addEventListener("abort",N,{once:!0})}this[I]?.defaultView[we].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return ho.call(this,e,n,r)}dispatchEvent(e){if(e[Me])throw C("Failed to execute \'dispatchEvent\' on \'EventTarget\': The event is already being dispatched.","InvalidStateError");e[Me]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Pe]=n;for(let s=n.length;s--;)if(yn(e,n[s],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(yn(e,o[s],gn),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Me]=!1,e.cancelBubble=!1,e[Ce]=!1,e.eventPhase=gt,e.currentTarget=null,e[Pe]=[]}}};function ho(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=bn(!!r),s=this[Je]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function bn(t){return t?"capture":"bubble"}function Tt(t,e){let n=bn(e.capture),r=t[Je],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener("abort",e.abortListener);let i=t[Te],a=i?.get(e.type);if(!a)return;let c=a[n];c?.delete(e)&&(c.size===0&&delete a[n],!a.bubble&&!a.capture&&i?.delete(e.type),t[I]?.defaultView[we].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var tt=0,ir=1,wn=2,On=3,nt=4,ar=0,lr=1,St=2,xt=3,cr=4,Tn=5,ur=6,dr=7,wt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function go(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s==="\\\\"?o++:s===r&&(r=null);continue}if(s===\'"\'||s==="\'")r=s;else if(s==="(")n++;else if(s===")"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw C(`Invalid or unsupported selector: "${t}"`,"SyntaxError")}function vt(t,e){let n=typeof e=="string"?rt(e):[{combinator:nt,matchers:e}],r=null,o=t[A];return o&&n[0].matchers.length&&Sn(o,n,s=>(r=s,!1)),r}function At(t,e){let n=typeof e=="string"?rt(e):[{combinator:nt,matchers:e}],r=new Q,o=t[A];return o&&n[0].matchers.length&&Sn(o,n,s=>{r.push(s)}),r}function rt(t,e=!1,n=!1){let r={combinator:nt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:([\'"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,"");i===""&&W(t);let a=0,c;for(;c=s.exec(i);){c.index!==a&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===">"?r.combinator=ir:c[1]==="+"?r.combinator=On:c[1]==="~"?r.combinator=wn:r.combinator=tt,r={combinator:nt,matchers:[]},o.push(r));let u=c[8]?G(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let g,y=c[4]??c[5]??c[7];if(c[2]){wt.test(u)||W(t);let E=c[5],v=E?.[0];if(c[3]==null&&(v===\'"\'||v==="\'")){let b=c[0].lastIndexOf(E);y=i.slice(c.index+b+1),s.lastIndex=i.length}else E!=null&&!wt.test(E)&&W(t);g=cr}else c[6]?(wt.test(u)||W(t),g=c[6]==="#"?St:xt):c[8]?g=c[9]==null?Tn:ur:c[7]==="*"?g=ar:c[7]&&wt.test(c[7])?g=lr:W(t);c[9]?([y,s.lastIndex]=go(i,s.lastIndex),u!=="has"&&u!=="not"&&W(t),u==="has"&&e&&W(t),rt(y,e||u==="has",u==="has")):g===Tn&&W(t),r.matchers.push({type:g,name:u,value:y}),a=s.lastIndex}return(a!==i.length||r.matchers.length===0)&&W(t),o}function yo(t,e){let n=rt(e);return n[0]?.matchers.length?et(t,n):!1}function Eo(t,e){let n=rt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=tt,s={type:dr,name:":scope"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:tt,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===On||o===wn?t[p]:t[A];if(!i)return!1;let a=!1;return Sn(i,n,()=>(a=!0,!1),t),a}function Sn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(et(s,e,r)&&n(s)===!1)return!1;let i=s[A];if(i){let a=s[p];a&&o.push(a),s=i;continue}}s=s[p]??o.pop()??null}return!0}function et(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===nt){if(!Ot(t,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(t,a,n)}let s=r===ir||r===tt?Y:D,i=t[s];if(!i)return!1;if(r===tt||r===wn){for(;i;){if(j(i)&&Ot(i,o,n)){let a=e.slice(0,-1);if(a.length===0||et(i,a,n))return!0}i=i[s]}return!1}else{if(r===On&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!Ot(i,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(i,a,n)}}function Nn(t,e){return t.getAttributeNS(null,t.namespaceURI===_?G(e):e)}function Ot(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(Ot(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case ar:return o==="*";case lr:return t.namespaceURI===_?t.localName===G(o):t.localName===o;case St:return Nn(t,"id")===o;case xt:let i=Nn(t,"class");return i?pt(i).includes(o):!1;case cr:let a=Nn(t,o);return s==null?a!=null:a===s;case dr:return t===n;case Tn:W(`:${o}`);case ur:switch(o){case"has":return Eo(t,s||"");case"not":return!yo(t,s||"");default:W(`:${o}(${s})`)}}return!1}function bo(t){return t.nodeType===De}function ot(t){return K in t}function vn(t){return t.nodeType===ke}function No(t){return t.nodeType===Le}function j(t){return t.nodeType===$}function xn(t){return t.nodeType===he}function hr(t){return"appendChild"in t}function Rt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let a=[];for(let c of it(i)){if(o.has(c)||(o.add(c),e.push(c),a.push(c),!j(c)))continue;let u=c[re];if(u)for(let g of u)o.has(g)||(o.add(g),e.push(g));let f=c[ie];f&&!o.has(f)&&!r.has(f)&&(r.add(f),n.push(f))}s??=a}return{nodes:e,treeNodes:s}}function st(t,e){for(let n of t)n[I]=e}function fr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[I]=e,r}function mr(t,e){if(vn(t))return e.createTextNode(t.data);if(No(t))return e.createComment(t.data);if(bo(t))return fr(t,e);if(j(t)){let n=e[Ie](t[S],t.namespaceURI,t[fe],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(fr(o,e))}return n}else{if(xn(t))return e.createDocumentFragment();{let n=new t.constructor;return n[I]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===Oe)throw C("Cannot clone a document node","NotSupportedError");let r=mr(t,n);if(!e||!j(t)&&!xn(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],a,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)a=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(a=i.source.childNodes[i.childIndex++],c=i.destination,!a){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===_&&i.source.localName==="template"){let f=i.source[ie];f&&(o.has(f)&&pr(),o.add(f),i.contentSource=f,i.contentDestination=i.destination.content)}continue}if(!a){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(a)&&pr(),o.add(a);let u=mr(a,n);j(a)||xn(a)?s.push({source:a,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function pr(){throw new Error("Cannot clone a cyclic or repeated node graph")}function Pt(t,e){let n=String(e);return n===""?null:vt(t,[{type:St,name:n}])}function Ct(t,e){let n=[...new Set(pt(String(e)))];return At(t,n.map(r=>({type:xt,name:r})))}function Mt(t,e){let n=String(e),r=G(n),o=[];for(let s of It(t))j(s)&&(n==="*"||(s.namespaceURI===_?s[S]===r:s[S]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[A];for(;r;){e.push(r);let o=r[A],s=r[p];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function it(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=Zn;[S]="";[Y]=null;[pe]=null;[A]=null;[D]=null;[p]=null;[U]=!1;get[k](){return this[I].defaultView[we]}get localName(){return this[S]}get nodeName(){return this[S]}get ownerDocument(){return this[I]}get isConnected(){return this[U]}isDefaultNamespace(e){let n=ae(e);return To(this)===n}get parentNode(){return this[Y]}set parentNode(e){}get parentElement(){let e=this[Y];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[A]}set firstChild(e){}get lastChild(){let e=this[A];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return ot(this)?this.data:null}set nodeValue(e){ot(this)&&(this.data=e)}get textContent(){if(ot(this))return this.data;let e="";for(let n of It(this))vn(n)&&(e+=n.data);return e}set textContent(e){if(ot(this))this.data=e;else if(hr(this)){let n=e==null?"":String(e);n===""?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function To(t){let e=t;for(;e;)switch(e.nodeType){case $:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS(Xe,"xmlns");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case Oe:e=e.documentElement;break;case Qn:case he:return null;case De:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol("insertNode"),_n=Symbol("preflightInsertions"),Dt=Symbol("replaceNode"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=xe(e),r=this.parentNode;if(r)return An(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Rn(r,n,o);this.parentNode===r?r[Dt](i,this,o):r[ee](i,s,o)})}before(...e){let n=xe(e),r=this.parentNode;if(r)return An(o=>{le(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Rn(r,n,o);r[ee](i,s?s[p]:r.firstChild,o)})}after(...e){let n=xe(e),r=this.parentNode;if(r)return An(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Rn(r,n,o);r[ee](i,s,o)})}};function An(t){return V(()=>{let e=[];try{t(e)}catch(n){try{Se(e)}catch{}throw n}Se(e)})}function xe(t){return t.map(e=>e instanceof J?e:String(e))}function at(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw C("Cannot insert a node into itself or one of its descendants","HierarchyRequestError");r=r[Y]??r[pe]}}}function Rn(t,e,n){let r=[];for(let s of e)r.push(at(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[_n](r);for(let s of r)o[ee](s,null,n);return o}var kt,Pn=0,gr=0,yr=0,Er=0,Ge=!1,Mn=!1,lt=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!="function")throw new TypeError("MutationObserver callback must be a function");this.#t=e}observe(e,n={}){let r=wo(n),o=kt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?Pn++:Cn(i,-1),s.set(this,r),Cn(r,1),this.#e.add(e)}disconnect(){let e=kt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),Pn--,Cn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,Pn===0&&(kt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=kt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let a=!1;if(t.type==="attributes"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??""))continue;a=i.attributeOldValue}else if(t.type==="characterData"){if(!i.characterData)continue;a=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||a)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function wo(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError("attributeOldValue and attributeFilter require attributes to be enabled");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError("characterDataOldValue requires characterData to be enabled");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError("MutationObserver options must enable childList, attributes, or characterData");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function Cn(t,e){t.attributes&&(gr+=e),t.characterData&&(yr+=e),t.childList&&(Er+=e),Ge=gr>0,Mn=yr>0,lt=Er>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return V(()=>this[ee](e,null))}insertBefore(e,n){return V(()=>this[ee](e,n||null))}append(...e){return V(()=>{let n=xe(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](at(this,r),null)})}prepend(...e){return V(()=>{let n=xe(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](at(this,o),r)})}replaceChildren(...e){return V(()=>{let n=xe(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](at(this,o),null)})}removeChild(e){return V(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw C("The node is not a child of this node","NotFoundError");let n=this[U]?it(e):void 0,r=e[D],o=e[p],s=Ht(this,e);if(n)for(let i of n)i[U]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,"disconnectedCallback"),Se(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return V(()=>this[Dt](e,n))}[Dt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw C("The reference node is not a child of this parent","NotFoundError");let o=n[D],s=n[p],i=this.prepareInsertion(e),a=this[U]?it(n):void 0,c=new Set(i.map(({node:y})=>y)),u=s;for(;u&&c.has(u);)u=u[p];let f=Ht(this,n);if(a){for(let E of a)E[U]=!1;let y=new Set(a);for(let E of i)y.has(E.node)&&(E.shouldDisconnect=!1)}this.commitInsertion(i,u);let g=this[U];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),a&&this.enqueueTreeReactions(a,"disconnectedCallback"),this.enqueueInsertionReactions(i,g),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,f),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return At(this,e)}querySelector(e){return vt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[_n](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw C("The reference node is not a child of this parent","NotFoundError")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[U];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Se(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[A];for(;i;)n.push(i),i=i[p]}else n.push(e);let r=this[U],o=this[I],s=[];for(let i of n){let a=i[U],c=a||r,u,f;if(i[I]===o)c&&(u=it(i));else{let g=Rt(i);f=g.nodes,c&&(u=g.treeNodes)}s.push({node:i,nodes:u,adoption:f,shouldDisconnect:a})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[Y];if(i){let a=s.node[D],c=s.node[p];s.source={parent:i,index:Ht(i,s.node),previousSibling:a,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[I];for(let{adoption:s}of e)s&&st(s,r);let o=this[U];for(let{nodes:s}of e)if(s)for(let i of s)i[U]=o}attachChild(e,n){if(n){let s=n[D];e[p]=n,e[D]=s,s?s[p]=e:this[A]=e,n[D]=e}else{e[p]=null;let s=this[A];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[A]=e,e[D]=null}let r=j(e);e[Y]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[p];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){lt&&te({type:"childList",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(lt)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:"childList",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==$||Qe(this)?[]:[[()=>this[k].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===$&&!Qe(s.parent)&&n.push([()=>s.parent[k].removeChild?.(s.parent,o,s.index)]),this.nodeType===$&&!Qe(this)&&n.push([()=>this[k].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,"disconnectedCallback"),n&&this.enqueueTreeReactions(o,"connectedCallback"))}}enqueueTreeReactions(e,n){Nr(e,n)}};function br(t,e,n,r){if(e.parentNode!==t)throw Error("not a child of this node");let o=t[U]?n.treeNodes:void 0,s=e[D],i=e[p],a=Ht(t,e);if(o)for(let u of o)u[U]=!1;st(n.nodes,r),lt&&te({type:"childList",target:t,removedNodes:Gt(e),previousSibling:s,nextSibling:i}),o&&Nr(o,"disconnectedCallback");let c=[];t.nodeType===$&&!Qe(t)&&c.push([()=>t[k].removeChild?.(t,e,a)]),Se(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[A]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[Y]=null,e[p]=null,e[D]=null,o}function Nr(t,e){for(let n of t){let r=n[e];typeof r=="function"&&bt(n,()=>r.call(n))}}function ct(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||bt(t,()=>i.call(t,e,n,r,o))}var Ut=class{[A]=null;constructor(e){this[z]=e}getNamedItem(e){let n=String(e),r=this[z][x]===_?G(n):n,o=this[A];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),s=this[A];for(;s;){if(s.localName===o&&s[x]===r)return s;s=s[p]}return null}item(e){let n=this[A],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[A];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[z][x]===_?G(n):n;return V(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return V(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[x]===r))}removeNamedItemImmediately(e){let n=this[z],r=this[A],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[A]===r&&(this[A]=r[p]);let s=r.value;return r[p]=null,r[z]=null,Ge&&te({type:"attributes",target:n,attributeName:r.name,attributeNamespace:r[x],oldValue:s}),n[k].removeAttribute?.(n,r.name,r[x]),ct(n,r.localName,s,null,r[x]),r}o=r,r=r[p]}return null}setNamedItem(e){return V(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[z],r=e[z];if(r!=null&&r!==n)throw C("The attribute is already in use by another element.","InUseAttributeError");let o=null,s=this[A],i=null;for(;s;){if(s.localName===e.localName&&s[x]===e[x]){if(s===e)return s;i?i[p]=e:this[A]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[A]=e),e[z]=n,e[I]=n[I],o&&(o[z]=null);let a=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return a&&Ge&&te({type:"attributes",target:n,attributeName:e.name,attributeNamespace:e[x],oldValue:o?.value??null}),c&&n[k].removeAttribute?.(n,o.name,o[x]),(a||c)&&n[k].setAttribute?.(n,e.name,e.value,e[x]),a&&ct(n,e.localName,o?.value??null,e.value,e[x]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[A];for(;e;)yield e,e=e[p]}};var ve=class extends J{nodeType=De;[x]=null;[p]=null;[z]=null;constructor(e,n,r){super(),this[S]=e,this[me]=n,r&&(this[x]=r)}get nodeName(){return this[S]}set nodeName(e){}get name(){return this[S]}set name(e){}get localName(){if(this[x]==null)return this[S];let e=this[S].indexOf(":");return e<0?this[S]:this[S].slice(e+1)}get prefix(){if(this[x]==null)return null;let e=this[S].indexOf(":");return e<0?null:this[S].slice(0,e)}get value(){return this[me]}set value(e){let n=String(e),r=this[z];if(!r){this[me]=n;return}V(()=>{let o=this[me];this[me]=n,Ge&&o!==n&&te({type:"attributes",target:r,attributeName:this[S],attributeNamespace:this[x],oldValue:o}),this[k].setAttribute?.(r,this[S],n,this[x]),ct(r,this.localName,o,n,this[x])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[z]}get namespaceURI(){return this[x]}get specified(){return!0}};var Oo={amp:"&",AMP:"&",apos:"\'",gt:">",GT:">",lt:"<",LT:"<",quot:\'"\',QUOT:\'"\'},So=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),xo=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>\'"=/\\s]+(?:=([\'"])[^]*?\\3|=[^>\'"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Or=/\\s([^<>\'"=/\\n\\s]+)(?:=(["\'])([\\s\\S]*?)\\2|=([^>\'"\\n\\s]*)|)/g,vo="|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|",Ao=/^(?:color|face|size)$/i;function Tr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return Oo[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function Sr(t){return t.namespaceURI===_&&So.has(t.localName)}function wr(t){let e=t.localName;return t[x]===Z&&(e==="foreignObject"||e==="desc"||e==="title")}function Ro(t,e){if(vo.includes(`|${t}|`))return!0;if(t!=="font")return!1;for(let n of e.matchAll(Or))if(Ao.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(xo)){let a=i[1];if(a){let c=i[2],u=G(a),f=o[o.length-1]?.element??e,g=f[x]===Z?Z:_;if(u==="svg")g=Z;else if(g===Z){if(wr(f))g=_;else if(Ro(u,c)){for(;o.length>0;){let v=o[o.length-1];if(v.element[x]!==Z||wr(v.element))break;o.pop(),s=v.target}g=_}}let y=g===_?u:a,E=n[Ie](y,g,null,y);for(let v of c.matchAll(Or))E.setAttribute(v[1],Tr(v[3]||v[4]||""));if(s.append(E),Sr(E)||g!==_&&i[4])continue;o.push({element:E,target:s}),s=g===_&&u==="template"?E.content:E}else if(i[5]){let c=G(i[5]);for(let u=o.length-1;u>=0;u--){let f=o[u],g=G(f.element[S]);if(g===c){s=f.target,o.length=u;break}if(f.element[x]===_&&g==="template")break}}else i[6]?s.append(n.createComment(i[6])):s.append(Tr(i[7]))}return r}function Vt(t){return vr([{type:"content",child:t[A]}])}function xr(t){return vr([{type:"opening",node:t}])}function vr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case"opening":{let r=n.node;switch(r.nodeType){case $:{let o=r;e.push(`<${o[S]}`);let s=o[re]?.[A];for(;s;){e.push(` ${s[S]}`);let a=s[me];a!==""&&(a=String(a).replace(/&/g,"&").replace(/"/g,"""),e.push(`="${a}"`)),s=s[p]}if(e.push(">"),Sr(o))break;let i=o.namespaceURI===_&&o.localName==="template"?o[ie]:o;t.push({type:"closing",name:o[S]}),t.push({type:"content",child:i?.[A]??null});break}case ke:{let o=r;e.push(o[K].replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case"content":{let r=n.child;r&&(t.push({type:"content",child:r[p]}),t.push({type:"opening",node:r}));break}case"closing":e.push(`</${n.name}>`);break}return e.join("")}var H=class extends oe{nodeType=$;[x]=_;[fe]=null;get namespaceURI(){return this[x]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[S]:this[S].slice(e.length+1)}get nodeName(){return this[x]===_?er(this[S]):this[S]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,"id")??""}set id(e){this.setAttribute("id",String(e))}get slot(){return this.getAttributeNS(null,"slot")??""}set slot(e){let n=String(e);this.getAttributeNS(null,"slot")!==n&&this.attributes.setNamedItem(new ve("slot",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Mt(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Ct(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);pn(r);let s=this[x]===_?G(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new ve(s,o))}setAttributeNS(e,n,r){let o=ae(e),s=String(n),i=String(r),a=ht(o,s,"attribute"),c=this.attributes.getNamedItemNS(a.namespace,a.localName);c?c.value=i:this.attributes.setNamedItemNS(new ve(a.qualifiedName,i,a.namespace))}toggleAttribute(e,n){let r=String(e);pn(r);let o=this[x]===_?G(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new ve(o,"")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[x]===_?G(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return xr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e==="")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends H{[x]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Ee=class extends ye{[K]="";constructor(e){super(),this[K]=e==null?"":String(e)}setData(e){let n=Mn,r=n?this[K]:null,o="";e!=null&&(o=typeof e=="string"?e:String(e)),this[K]=o,n&&r!==o&&te({type:"characterData",target:this,oldValue:r}),this[k].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends Ee{nodeType=ke;[S]="#text"};var Be=class extends Ee{nodeType=Le;[S]="#comment"};var Ve=class extends oe{nodeType=he;[S]="#document-fragment";[I]=typeof window<"u"?window.document:null;getElementById(e){return Pt(this,e)}};var Fe=class extends H{get content(){let e=this[ie];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[ie]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[ie];return e?Vt(e):""}};var Ft=class extends H{};var jt=class extends H{};var qt=class extends H{};var ut=class extends oe{nodeType=Oe;[S]="#document";[U]=!0;constructor(e){super(),this.defaultView=e,this[I]=this,this.documentElement=Yt(new qt,this,"html"),this.body=Yt(new Ft,this,"body"),this.head=Yt(new jt,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Ct(this,e)}createElement(e){let n=String(e);return rr(n),In(this,G(n))}createElementNS(e,n){let r=ht(e,n,"element");return In(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return In(this,e,n,r,o)}createTextNode(e){let n=zt(new Ue(e),this);return this[k].createText?.(n,n.data),n}createComment(e){return zt(new Be(e),this)}createDocumentFragment(){return zt(new Ve,this)}createEvent(){return new B("")}getElementById(e){return Pt(this,e)}getElementsByTagName(e){return Mt(this,e)}importNode(e,n){if(e.nodeType===Oe)throw C("Cannot import a document node","NotSupportedError");return _t(e,n,this)}adoptNode(e){if(e[I]===this)return e;let n=Rt(e);return V(()=>{let r=e.parentNode;return r?br(r,e,n,this):st(n.nodes,this),e})}};function zt(t,e){return Object.defineProperty(t,I,{value:e,writable:!0,enumerable:!1}),t}function In(t,e,n=_,r=null,o=e){let s;if(n===Z)s=new He;else if(n===_&&o==="template")s=new Fe;else if(n===_){let i=t.defaultView.customElements.get(o);s=i?new i:new H}else s=new H;return Yt(s,t,e,n,r)}function Yt(t,e,n,r=_,o=null){return zt(t,e),Object.defineProperties(t,{[S]:{value:n},[x]:{value:r},[fe]:{value:o}}),e[k].createElement?.(t,r),t}var Wt=class extends B{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var $t=class extends B{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var Xt=class extends B{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends B{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends B{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends B{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends H{};var _o=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,Po=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Ar(t){return _o.test(t)&&!Po.has(t)}function Rr(t){return C(`Invalid custom element name: "${t}"`,"SyntaxError")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Ar(e))throw Rr(e);if(this.registry.has(e))throw C(`A custom element named "${e}" has already been defined`,"NotSupportedError");if(this.getName(n)!=null)throw C("This constructor has already been registered in this custom element registry","NotSupportedError");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Ar(e))return Promise.reject(Rr(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Co=["onerror","onunhandledrejection"],Pr=Symbol.for("@remote-dom/polyfill/global-property");function Cr(t){return Object.getOwnPropertyDescriptors(t)}function Mr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!=="constructor"&&typeof r.value=="function"&&(r.value=Dn(r.value.bind(t)),e[n]=r);return e}function Ir(t){let e={};for(let n of Co)e[n]={configurable:!0,enumerable:!0,get:Dn(()=>t[n]),set:Dn(r=>{t[n]=r})};return e}function Mo(t){return Object.assign(Cr(t),Mr(t),Ir(t))}function Dn(t){return Object.defineProperty(t,Pr,{value:!0}),t}function _r(t,e){for(let n of Reflect.ownKeys(e)){let r=Io(t,n);(r==null||Do(r))&&Object.defineProperty(t,n,e[n])}}function Io(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Do(t){return[t.value,t.get,t.set].some(e=>typeof e=="function"&&e[Pr]===!0)}var Ae=class extends ge{[k]={};[mt]=[];[we]=Lo(this);name="";window=this;parent=this;self=this;top=this;document=new ut(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=B;ErrorEvent=$t;PromiseRejectionEvent=Xt;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ut;CharacterData=Ee;Comment=Be;Text=Ue;Element=H;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=Fe;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)ko(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener("error",this.#t),e&&typeof e=="function"?(this.#n=e,this.#t=n=>{e(n.message??"Error",n.filename,n.lineno,n.colno,n.error)},this.addEventListener("error",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener("unhandledrejection",this.#e),e&&typeof e=="function"?(this.#e=e,this.addEventListener("unhandledrejection",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=Cr(e),s=Object.assign(Mr(e),Ir(e));delete o.self,Object.defineProperties(globalThis,o),_r(globalThis,s),typeof n>"u"||n===r&&n!==globalThis?Object.defineProperty(globalThis,"self",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),_r(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Mo(e))}};function ko(t,e){t[mt].push(e(t)??{})}function Lo(t){return{createElement:ce.bind(null,t,"createElement"),setAttribute:ce.bind(null,t,"setAttribute"),removeAttribute:ce.bind(null,t,"removeAttribute"),createText:ce.bind(null,t,"createText"),setText:ce.bind(null,t,"setText"),insertChild:ce.bind(null,t,"insertChild"),removeChild:ce.bind(null,t,"removeChild"),addEventListener:ce.bind(null,t,"addEventListener"),removeEventListener:ce.bind(null,t,"removeEventListener")}}function ce(t,e,...n){for(let s of t[mt])s[e]?.apply(s,n);let r=t[k];r[e]?.apply(r,n)}var tn=new Ae;var kn="~";var be=new WeakMap;function je(t){return be.get(t)}var Un=new WeakMap,Ho=0;function X(t){let e=Un.get(t);return e==null&&(e=String(Ho++),nn(t,e)),e}function nn(t,e){Un.set(t,e)}var Gn=new WeakMap;function Uo(t){return Gn.get(t)}var Hn=new WeakMap;function Bo(t){let e=Hn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes("-"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Vo=new WeakMap;function Fo(t){return Vo.get(t)}function Bn(t,e,n){let r=Gn.get(t);if(r==null&&(r={},Gn.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,X(t),e,n,1]])}function Ne(t,e,n){let r=Hn.get(t);if(r==null&&(r={},Hn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,X(t),e,n,2]])}function qe(t,e){if(be.get(t)!==e&&(be.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)qe(t.childNodes[r],e)}function rn(t){if(be.get(t)!=null&&(be.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function ze(t){let{nodeType:e}=t;switch(e){case 1:return{id:X(t),type:e,element:t.localName,properties:Ln(Uo(t)),attributes:Ln(Bo(t)),eventListeners:Ln(Fo(t)),children:Array.from(t.childNodes).map(ze)};case 3:case 8:return{id:X(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Ln(t){return t?{...t}:void 0}function Vn(t,e,...n){let r=Un.get(t),o=be.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var Ye=tn[k];Ye.insertChild=(t,e,n)=>{let r=je(t);r!=null&&(qe(e,r),r.mutate([[0,X(t),ze(e),n]]))};Ye.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,X(t),n]]))};Ye.setText=(t,e)=>{let n=je(t);n?.mutate([[2,X(t),e]])};Ye.setAttribute=(t,e,n)=>{t.tagName.includes("-")||Ne(t,e,n)};Ye.removeAttribute=(t,e)=>{t.tagName.includes("-")||Ne(t,e)};Ae.setGlobal(tn);function on(t){if(typeof t=="string")return{type:"navigate",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e=="string"?{type:"navigate",place:e,...s}:typeof n=="string"?{type:"navigate",to:n,...s}:void 0}var kr=["wheel","drag","pinch"];function Lr(t){let e=t;return typeof t=="object"&&t!==null&&e.graview==="host-hello"&&typeof e.nonce=="string"}function Hr(t,e={}){let n,r="",o,s=0,i=new Set,a=new Map,c=[],u=b=>{n?n.postMessage({...b,nonce:r}):c.push(b)},f=b=>{let N=b.data;if(!(!N||typeof N!="object")){if(N.type==="props"){o=N.props;for(let M of i)M(N.props)}else N.type==="answer"?(a.get(N.id)?.(N),a.delete(N.id)):N.type==="event"&&typeof N.listener=="number"?e.onEvent?.(N):N.type==="heartbeat"&&typeof N.beat=="number"&&u({type:"heartbeat",beat:N.beat});e.onMessage?.(N)}},g=()=>{},y=b=>{if(n||!t.fromHost(b)||!Lr(b.data)||b.data.protocol!==1)return;let N=b.ports[0];if(N){n=N,r=b.data.nonce,n.onmessage=f,n.start?.(),g();for(let M of c.splice(0))u(M)}};g=t.listen(y),t.ready({graview:"guest-ready",protocol:1});let E,v={get props(){return o},subscribe(b){return i.add(b),()=>i.delete(b)},act(b,N={}){let M=s+=1;return new Promise(L=>{a.set(M,L),u({type:"act",id:M,name:b,args:N})})},navigate(b){let N=on(b);N&&u(N)},size(b){u({type:"size",height:b})},autoSize(b){let N=b??globalThis.document?.documentElement,M=globalThis.ResizeObserver;if(!N||!M||typeof N.getBoundingClientRect!="function")return()=>{};E?.disconnect();let L=new M(()=>v.size(Math.ceil(N.getBoundingClientRect().height)));return L.observe(N),E=L,()=>L.disconnect()},close(){E?.disconnect(),g(),n?.close(),i.clear()}};return{guest:v,send:u}}var Br=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Function","Array","Number","Boolean","String","Symbol","BigInt","Date","Promise","RegExp","Math","JSON","Reflect","Proxy","Intl","Error","AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","SuppressedError","Map","Set","WeakMap","WeakSet","WeakRef","FinalizationRegistry","Iterator","AsyncIterator","DisposableStack","AsyncDisposableStack","ArrayBuffer","SharedArrayBuffer","DataView","Atomics","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],Vr=["window","parent","top","document","customElements","Event","ErrorEvent","PromiseRejectionEvent","ToggleEvent","FocusEvent","ClipboardEvent","CustomEvent","EventTarget","Node","ParentNode","ChildNode","DocumentFragment","Document","CharacterData","Comment","Text","Element","HTMLElement","SVGElement","HTMLTemplateElement","MutationObserver"],Fr=["self","postMessage","setTimeout","clearTimeout","setInterval","clearInterval","queueMicrotask","structuredClone","crypto","console","DOMException"],jr=["TEMPORARY","PERSISTENT"],Nl=Object.freeze([...Br,...Vr,...Fr,...jr]),Tl=Object.freeze(["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"]),Ur=t=>typeof t=="symbol"?`[${t.description??"symbol"}]`:t;function qr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Br,...Vr,...Fr,...e,"constructor",Symbol.toStringTag]),i=(O,P)=>{let q=Reflect.getOwnPropertyDescriptor(O,P);return q===void 0||!("value"in q)||q.writable||q.configurable?!1:n.primitivesStay&&typeof P=="symbol"&&(typeof q.value!="object"||q.value===null)&&typeof q.value!="function"?!0:jr.includes(P)&&typeof q.value=="number"},a=t,c=a.setTimeout,u=a.setInterval,f=a.crypto,g=(O,P)=>function(q,We,...ft){if(typeof q!="function")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return O.call(t,q,We,...ft)},y=f?Object.freeze({getRandomValues:O=>f.getRandomValues(O)}):void 0,E=a.document?.defaultView;if(E&&E!==a)for(let O of Reflect.ownKeys(E))typeof O=="symbol"||s.has(O)||Reflect.deleteProperty(E,O)||o.push(`window.${O}`);let v=[];for(let O=t;O&&O!==Object.prototype;O=Object.getPrototypeOf(O))v.push(O);for(let O of v)for(let P of Reflect.ownKeys(O))s.has(P)||(Reflect.deleteProperty(O,P)?r.push(Ur(P)):i(O,P)||o.push(Ur(P)));let b=()=>function(){throw new EvalError("A guest view cannot make code from text.")},N=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let O of N){let P=b();Object.defineProperty(P,"prototype",{value:O,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(O,"constructor",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push("Function.prototype.constructor"),O===Function.prototype&&Reflect.defineProperty(t,"Function",{value:P,writable:!0,enumerable:!1,configurable:!0})}let M=(O,P)=>{Reflect.defineProperty(t,O,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(O)};M("setTimeout",g(c,"setTimeout")),M("setInterval",g(u,"setInterval")),y&&M("crypto",y);for(let O of v.slice(1))Object.freeze(O);for(let O of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,O);Reflect.defineProperty(t,O,"value"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let L;try{L=Reflect.preventExtensions(t)}catch{L=!1}return{removed:r,stuck:o,sealed:L}}var dt=class extends HTMLElement{constructor(){super(),nn(this,kn)}connect(e){if(je(this)===e||(qe(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,kn,ze(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Bn(this,e,n)}callRemoteMethod(e,...n){return Vn(this,e,...n)}};var d={},Fn={empty:!0},jo={id:"text",class:"text",title:"text",lang:"text",dir:{oneOf:["ltr","rtl","auto"]},hidden:"text",tabindex:{oneOf:["-1","0"]},role:"text",style:"style",translate:{oneOf:["yes","no"]},spellcheck:{oneOf:["true","false"]},draggable:{oneOf:["true","false"]},inert:"boolean"},jn={div:d,section:d,article:d,aside:d,header:d,footer:d,nav:d,hgroup:d,search:d,address:d,figure:d,figcaption:d,blockquote:d,p:d,pre:d,hr:Fn,br:Fn,wbr:Fn,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,span:d,strong:d,em:d,b:d,i:d,u:d,s:d,small:d,mark:d,abbr:d,cite:d,q:d,code:d,kbd:d,samp:d,var:d,sub:d,sup:d,dfn:d,bdi:d,bdo:d,ruby:d,rt:d,rp:d,time:{attributes:{datetime:"text"}},data:{attributes:{value:"text"}},del:{attributes:{datetime:"text"}},ins:{attributes:{datetime:"text"}},a:{attributes:{href:"link"}},ul:d,menu:d,dl:d,dt:d,dd:d,ol:{attributes:{start:"number",reversed:"boolean",type:{oneOf:["1","a","A","i","I"]}}},li:{attributes:{value:"number"}},table:d,caption:d,thead:d,tbody:d,tfoot:d,tr:d,colgroup:{attributes:{span:"number"}},col:{attributes:{span:"number"},empty:!0},th:{attributes:{colspan:"number",rowspan:"number",headers:"text",scope:{oneOf:["row","col","rowgroup","colgroup"]},abbr:"text"}},td:{attributes:{colspan:"number",rowspan:"number",headers:"text"}},details:{attributes:{open:"boolean",name:"text"}},summary:d,button:{attributes:{type:{oneOf:["button"]},disabled:"boolean",name:"text",value:"text"}},input:{empty:!0,attributes:{type:{oneOf:["text","search","number","range","checkbox","radio","date","time","datetime-local","month","week","color","email","tel","url"]},name:"text",value:"text",placeholder:"text",min:"text",max:"text",step:"text",checked:"boolean",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",size:"number",pattern:"text",multiple:"boolean",inputmode:"text",enterkeyhint:"text"}},select:{attributes:{name:"text",disabled:"boolean",multiple:"boolean",required:"boolean",size:"number"}},option:{attributes:{value:"text",selected:"boolean",disabled:"boolean",label:"text"}},optgroup:{attributes:{label:"text",disabled:"boolean"}},textarea:{attributes:{name:"text",placeholder:"text",rows:"number",cols:"number",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",wrap:{oneOf:["soft","hard","off"]}}},label:{attributes:{for:"text"}},fieldset:{attributes:{disabled:"boolean",name:"text"}},legend:d,output:d,meter:{attributes:{value:"number",min:"number",max:"number",low:"number",high:"number",optimum:"number"}},progress:{attributes:{value:"number",max:"number"}},img:{empty:!0,attributes:{src:"image",alt:"text",width:"number",height:"number",decoding:{oneOf:["async","sync","auto"]}}},"graview-video":{empty:!0,attributes:{autoplay:"boolean",cover:"boolean"}}},qo=["fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-opacity","stroke-miterlimit","opacity","color","display","visibility","transform-origin","clip-path","clip-rule","marker-start","marker-mid","marker-end","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","text-decoration","paint-order","vector-effect","shape-rendering","pointer-events","stop-color","stop-opacity","overflow","mask","filter","flood-color","flood-opacity","lighting-color","color-interpolation-filters"],zo={id:"text",class:"text",style:"style",lang:"text",role:"text",tabindex:{oneOf:["-1","0"]},transform:"geometry",...Object.fromEntries(qo.map(t=>[t,"css"]))},ue={x:"geometry",y:"geometry",width:"geometry",height:"geometry"},sn={viewBox:"geometry",preserveAspectRatio:"geometry"},zr={oneOf:["userSpaceOnUse","objectBoundingBox"]},Yr={oneOf:["R","G","B","A"]},ne={...ue,in:"text",result:"text"},Wr={gradientUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},gradientTransform:"geometry",spreadMethod:{oneOf:["pad","reflect","repeat"]},href:"fragment"},$r={svg:{attributes:{...ue,...sn}},g:d,defs:d,symbol:{attributes:{...ue,...sn,refX:"geometry",refY:"geometry"}},use:{attributes:{...ue,href:"fragment"}},title:d,desc:d,path:{attributes:{d:"geometry",pathLength:"number"}},rect:{attributes:{...ue,rx:"geometry",ry:"geometry",pathLength:"number"}},circle:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",pathLength:"number"}},ellipse:{attributes:{cx:"geometry",cy:"geometry",rx:"geometry",ry:"geometry",pathLength:"number"}},line:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",pathLength:"number"}},polyline:{attributes:{points:"geometry",pathLength:"number"}},polygon:{attributes:{points:"geometry",pathLength:"number"}},text:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry",lengthAdjust:{oneOf:["spacing","spacingAndGlyphs"]}}},tspan:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry"}},textPath:{attributes:{href:"fragment",startOffset:"geometry",method:{oneOf:["align","stretch"]},spacing:{oneOf:["auto","exact"]},side:{oneOf:["left","right"]}}},linearGradient:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",...Wr}},radialGradient:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",fx:"geometry",fy:"geometry",fr:"geometry",...Wr}},stop:{attributes:{offset:"geometry"}},clipPath:{attributes:{clipPathUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},maskContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},pattern:{attributes:{...ue,...sn,patternUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternTransform:"geometry",href:"fragment"}},marker:{attributes:{...sn,markerWidth:"geometry",markerHeight:"geometry",refX:"geometry",refY:"geometry",orient:"geometry",markerUnits:{oneOf:["strokeWidth","userSpaceOnUse"]}}},a:d,filter:{attributes:{...ue,filterUnits:zr,primitiveUnits:zr}},feBlend:{attributes:{...ne,in2:"text",mode:"text"}},feColorMatrix:{attributes:{...ne,type:{oneOf:["matrix","saturate","hueRotate","luminanceToAlpha"]},values:"geometry"}},feComponentTransfer:{attributes:ne},...Object.fromEntries(["feFuncR","feFuncG","feFuncB","feFuncA"].map(t=>[t,{attributes:{type:{oneOf:["identity","table","discrete","linear","gamma"]},tableValues:"geometry",slope:"number",intercept:"number",amplitude:"number",exponent:"number",offset:"number"}}])),feComposite:{attributes:{...ne,in2:"text",operator:{oneOf:["over","in","out","atop","xor","lighter","arithmetic"]},k1:"number",k2:"number",k3:"number",k4:"number"}},feDisplacementMap:{attributes:{...ne,in2:"text",scale:"number",xChannelSelector:Yr,yChannelSelector:Yr}},feDropShadow:{attributes:{...ne,dx:"number",dy:"number",stdDeviation:"geometry"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:"geometry",edgeMode:{oneOf:["duplicate","wrap","none"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:"text"}},feMorphology:{attributes:{...ne,operator:{oneOf:["erode","dilate"]},radius:"geometry"}},feOffset:{attributes:{...ne,dx:"number",dy:"number"}},feTurbulence:{attributes:{...ue,result:"text",type:{oneOf:["fractalNoise","turbulence"]},baseFrequency:"geometry",numOctaves:"number",seed:"number",stitchTiles:{oneOf:["stitch","noStitch"]}}}};var Xr={section:["aria-label","title"]};function Yo(t){return/^aria-[a-z]+$/.test(t)}function Wo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var $o=new Map(Object.keys($r).map(t=>[t.toLowerCase(),t]));function Kr(t){return $o.get(t.toLowerCase())}function Zr(t,e,n){let r=n.toLowerCase(),o=t==="html"?[jn[e]?.attributes,jo]:[$r[e]?.attributes,zo],s=t==="svg"&&r==="xlink:href"?"href":r;for(let i of o)if(i){for(let[a,c]of Object.entries(i))if(a.toLowerCase()===s)return{name:a,kind:c}}if(Yo(r)||Wo(r))return{name:r,kind:"text"}}var an=/^\\d{4}-\\d{2}-\\d{2}$/;function Xo(t,e){if(typeof t!="string"||typeof e!="string"||!an.test(t)||!an.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function Qr(t,e,n={}){let r=Xo(t,e);if(r===void 0)return"";if(r===0)return"today";if(r===1)return"tomorrow";if(r<0&&n.due===!0)return"overdue";if(r===-1)return"yesterday";let o=Math.abs(r),[s,i]=o<14?[o,"day"]:o<60?[Math.round(o/7),"week"]:o<730?[Math.round(o/30.44),"month"]:[Math.round(o/365.25),"year"],a=`${s} ${i}${s===1?"":"s"}`;return r>0?`in ${a}`:`${a} ago`}function Jr(t,e){if(typeof t!="string")return;if(an.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return an.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat("en-CA",{timeZone:e||"UTC",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??"";return`${o("year")}-${o("month")}-${o("day")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var eo="~",ln=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),se=(t,e=0)=>{if(t===null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===void 0)return t;if(!(e>64||typeof t!="object"))return Array.isArray(t)?t.map(n=>se(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,se(r,e+1)]))};function to(){let t=new Map,e=new Map,n=new Map([[eo,{children:[],listeners:new Map}]]),r=0,o=u=>{let f=e.get(u);return f===void 0&&(f=r+=1,e.set(u,f),t.set(f,{listener:u,count:0})),t.get(f).count+=1,f},s=u=>{let f=t.get(u);f&&(f.count-=1,!(f.count>0)&&(t.delete(u),e.delete(f.listener)))},i=u=>{let f=n.get(u);if(f){n.delete(u);for(let g of f.listeners.values())s(g);for(let g of f.children)i(g)}},a=(u,f,g=0)=>{if(!ln(u)||g>64)return se(u);let y=typeof u.id=="string"?u.id:void 0,E=f&&y!==void 0&&y!==eo;E&&i(y);let v={children:[],listeners:new Map};E&&n.set(y,v);let b={};for(let[N,M]of Object.entries(u))N==="children"&&Array.isArray(M)?b[N]=M.map(L=>{let O=a(L,E,g+1);return E&&ln(L)&&typeof L.id=="string"&&v.children.push(L.id),O}):N==="eventListeners"&&ln(M)?b[N]=Object.fromEntries(Object.entries(M).map(([L,O])=>{if(typeof O!="function"||!E)return[L,void 0];let P=o(O);return v.listeners.set(L,P),[L,{listener:P}]})):b[N]=se(M,g+1);return b},c=u=>{if(!Array.isArray(u))return se(u);let[f,g]=u,y=typeof g=="string"?n.get(g):void 0;if(f===0){let E=a(u[2],y!==void 0),v=ln(u[2])?u[2].id:void 0;if(y&&typeof v=="string"&&n.has(v)){let b=Number(u[3]);y.children.splice(Number.isInteger(b)&&b>=0&&b<=y.children.length?b:y.children.length,0,v)}return[f,se(g),E,se(u[3])]}if(f===1){let E=Number(u[2]);return y&&Number.isInteger(E)&&E>=0&&E<y.children.length&&i(y.children.splice(E,1)[0]),se(u)}if(f===3&&u[4]===3){let E=String(u[2]),v=u[3],b=y&&typeof v=="function"?o(v):void 0,N=y?.listeners.get(E);return N!==void 0&&s(N),b===void 0?y?.listeners.delete(E):y.listeners.set(E,b),[f,se(g),E,b===void 0?void 0:{listener:b},3]}return se(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var cn="graview-view-root",Ko=["value","checked","key","pressed","files","refused","x","y","width","height","deltaX","deltaY","deltaMode","ctrlKey","metaKey","phase","pointerId","button","pressure","dx","dy","scale","rotation"],Zo=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\'/g,"'"),Qo=t=>Object.freeze({html:t,toString:()=>t}),no=t=>typeof t=="object"&&t!==null&&typeof t.html=="string"&&Object.isFrozen(t),ro=t=>t==null||t===!1?"":Array.isArray(t)?t.map(ro).join(""):no(t)?t.html:Zo(String(t));function oo(t){customElements.get(cn)||customElements.define(cn,dt);let e=Event,n=to(),r=new Set,o=new Set,s,i=[],a=new Set;for(let l of["closest","matches","dataset"]){let m=()=>{throw new TypeError(`A view\'s element has no ${l}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute("data-\\u2026").`)};l in Element.prototype||Object.defineProperty(Element.prototype,l,l==="dataset"?{get:m}:{value:m})}let c=document.createElement(cn),u=l=>{let m=h=>{for(let T of Array.from(h.childNodes)){if(T.nodeType!==1)continue;if(X(T)===l)return T;let w=m(T);if(w)return w}};return m(c)},f=l=>{let m=u(l.target);if(!m)return;let h=new e(l.event,{bubbles:!0}),T={};for(let w of Ko)l[w]!==void 0&&(T[w]=l[w]);for(let w of Object.keys(T))Object.defineProperty(h,w,{value:T[w],enumerable:!0});m.dispatchEvent(h);for(let w of o){if(w.type!==l.event)continue;let R;try{R=new Set(Array.from(c.querySelectorAll(w.selector)))}catch{continue}for(let F=m;F&&F!==c;F=F.parentNode)if(R.has(F)){w.listener(Object.freeze({type:l.event,target:m,element:F,...T}));break}}},g=l=>{if(l.type==="dom-event"&&typeof l.target=="string")return f(l);if(l.type==="notice")return t.warn(l.text);if(l.type!=="props")return;s=l.props;let m=t.now();for(let w of r)try{w(l.props)}catch(R){t.threw(R)}let h=t.now()-m,T=l.push;typeof T=="number"&&t.microtask(()=>t.microtask(()=>t.send({type:"pushed",push:T,ms:h})))},y;c.connect({mutate(l){y||(y=[],t.microtask(()=>{let m=y??[];y=void 0,t.send({type:"render",records:n.encode(m)})})),y.push(...l)},call:()=>{}});let E=l=>l.nodeType===1?l.getAttribute("data-key")??l.getAttribute("id"):null,v=(l,m)=>l.nodeType===m.nodeType&&(l.nodeType!==1||l.localName===m.localName&&l.namespaceURI===m.namespaceURI&&E(l)===E(m));function b(l,m){let h=Array.from(m.childNodes),T=0;for(let w of h){let R=l.childNodes[T]??null;if(R&&v(R,w)){N(R,w),T+=1;continue}if(E(w)!==null){let de=Array.from(l.childNodes).slice(T+1).find($e=>v($e,w));if(de){l.insertBefore(de,R),N(de,w),T+=1;continue}}l.insertBefore(w,R),T+=1}for(;l.childNodes.length>T;)l.removeChild(l.lastChild)}function N(l,m){if(l.nodeType!==1){l.data!==m.data&&(l.data=m.data);return}let h=l,T=m,w=M(h);for(let R of h.getAttributeNames())T.hasAttribute(R)||(h.removeAttribute(R),w&&Ne(h,R,void 0));for(let R of T.getAttributeNames()){let F=T.getAttribute(R);h.getAttribute(R)!==F&&h.setAttribute(R,F),w&&Ne(h,R,F)}b(h,T)}let M=l=>l.localName.includes("-");function L(l){for(let m of Array.from(l.childNodes)){if(m.nodeType!==1)continue;let h=m;if(M(h))for(let T of h.getAttributeNames())Ne(h,T,h.getAttribute(T)??void 0);L(h)}}function O(l,m,h){for(let T of Array.from(l.childNodes)){if(T.nodeType!==1)continue;let w=T,R=w.localName,F=m||R.toLowerCase()==="svg",de=F?Kr(R):Object.prototype.hasOwnProperty.call(jn,R.toLowerCase())?R.toLowerCase():void 0;if(!de){h.add(`<${R}>`);continue}for(let $e of w.getAttributeNames())(!Zr(F?"svg":"html",de,$e)||!F&&Xr[de]?.includes($e.toLowerCase()))&&h.add(`${de} ${$e}`);O(w,F,h)}}function P(l){let m=document.createElement("div"),h=Array.isArray(l)?l:[l];for(let w of h)if(w!=null)if(typeof w=="string"||no(w)){let R=document.createElement("div");R.innerHTML=typeof w=="string"?w:w.html,m.append(...Array.from(R.childNodes))}else m.append(w);let T=new Set;O(m,!1,T),i=[...T],i.length>0&&t.warn(`The host will not draw: ${i.join(", ")}`),L(m),b(c,m)}let q=[],We=new Set(kr),ft="[]",un=!1,Wn=()=>{un||(un=!0,t.microtask(()=>{un=!1;let l=[...new Map([...o].filter(h=>We.has(h.type)).map(h=>[`${h.type} ${h.selector}`,{event:h.type,selector:h.selector}])).entries()].sort(([h],[T])=>h<T?-1:h>T?1:0).map(([,h])=>h),m=JSON.stringify(l);m!==ft&&(ft=m,t.send({type:"gestures",bound:l}))}))},$n="[[],[]]",dn=!1,Xn=()=>{dn||(dn=!0,t.microtask(()=>{dn=!1;let l=w=>[...new Set([...o].filter(R=>R.type===w&&typeof R.selector=="string").map(R=>R.selector))].sort().slice(0,200),m=l("click"),h=l("acted"),T=JSON.stringify([m,h]);T!==$n&&($n=T,t.send({type:"clicks",selectors:m,...h.length>0?{acted:h}:{}}))}))},Kn=Object.freeze({get props(){return s},onProps(l){return r.add(l),s&&l(s),()=>void r.delete(l)},render:P,style(l){typeof l!="string"||q.includes(l)||(q.push(l),t.send({type:"style",sheets:[...q]}))},on(l,m,h){let T={type:l,selector:m,listener:h};return o.add(T),typeof l=="string"&&!a.has(l)&&(a.add(l),t.send({type:"hears",events:[l]})),We.has(l)&&Wn(),(l==="click"||l==="acted")&&Xn(),()=>{o.delete(T),We.has(l)&&Wn(),(l==="click"||l==="acted")&&Xn()}},act:(l,m={})=>t.act(l,m),navigate(l){if(typeof l=="string")return t.navigate(l);let m=on(l);m&&t.send(m)},html(l,...m){return Qo(l.reduce((h,T,w)=>h+T+(w<m.length?ro(m[w]):""),""))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(l,m){let h=Jr(l,s?.timeZone);return h===void 0?"":Qr(h,Kn.today,m)},get refused(){return i},get hardening(){return t.hardening()}});return{view:Kn,hear:g,find:l=>{try{let m=c.querySelectorAll(l)[0];return m?X(m):void 0}catch{return}},listened:l=>{let m=new Set;for(let h of o)if(h.type===l)try{for(let T of Array.from(c.querySelectorAll(h.selector))){let w=X(T);w&&m.add(w)}}catch{}return[...m]}}}var Yn={removed:[],stuck:[],sealed:!1,worker:!1},qn=Hr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>so.hear(t)}),so=oo({send:t=>qn.send(t),act:(t,e)=>qn.guest.act(t,e),navigate:t=>qn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>Yn}),Jo=so.view;Object.defineProperty(globalThis,"graview",{value:Jo,enumerable:!0,configurable:!0,writable:!1});var zn="WorkerGlobalScope"in globalThis?qr(globalThis,["graview"]):Yn;Yn=zn;if(zn.stuck.length>0)throw new Error(`The view\'s worker could not be hardened: ${zn.stuck.join(", ")} would not go.`);})();\n';export{e as VIEW_RUNTIME};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{L as $,Mb as L,P as j,Pb as N,S as H,nd as E}from"./chunk.DHPXRDT5.js";var W=()=>(__graviewPreload(import.meta.url,["./chunk.TQRC5VAM.js","./chunk.O7NYSO6F.js","./chunk.M5FP4Y4Q.js","./chunk.IO5VFTXC.js","./chunk.DHPXRDT5.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.ISZFRLNJ.js"));function D(e,l,d){let i=new Map;for(let y of d?.kinds??[])for(let a of e.nodesOfKind(y))l.has(a.id)||i.set(a.id,a);let s=new Set([...l,...i.keys()]),p=new Set(d?.edges??[]),k=new Set;if(p.size>0&&l.size>0){for(let y of l)for(let a of e.outEdges(y))p.has(a.kind)&&i.has(a.to)&&k.add(a.to);for(let y of i.keys())e.outEdges(y).some(a=>p.has(a.kind)&&l.has(a.to))&&k.add(y)}let R=new Map([...[...i].filter(([y])=>k.has(y)),...[...i].filter(([y])=>!k.has(y))]),h=[];if(p.size>0)for(let y of s)for(let a of e.outEdges(y))p.has(a.kind)&&s.has(a.to)&&h.push({kind:a.kind,from:a.from,to:a.to});return{nodes:[...R.values()],edges:h}}function O(e,l,d){let i=[];return()=>{let s=d();for(;i.length>0&&i[0]<=s-l;)i.shift();return i.length>=e?!1:(i.push(s),!0)}}function I(e={},l=Date.now){return{act:O(e.acts??30,e.actWindowMs??6e4,l),message:O(e.messages??120,e.messageWindowMs??1e3,l)}}var v=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function J(e,l){let d=l.flatMap(s=>v(s)&&typeof s.kind=="string"?[s.kind]:[]),i=E(e,d);return Object.keys(i).length>0?{choices:i}:{}}function _(e,l){let d=structuredClone(l),i=e.schema.tryDefinition(d.kind),s=d.label;return{...d,label:i?.label?i.label(d):typeof s=="string"&&s.length>0?s:d.id}}function Q(e){let l=e.limiter??I(e.limits,e.now),d=e.limits?.maxHeight??4e3,i=`view:${e.view}`,s={applied:0,refused:0,dropped:0},p=()=>e.store.seenBy(e.principal),k=n=>_(e.store,n),R=()=>{if(e.props)return e.props();let n=p(),u=n.graph,r=e.input?.()??{},c=r.node?u.getNode(r.node.id):void 0,o=r.nodes?.flatMap(t=>{let m=u.getNode(t.id);return m?[m]:[]}),g=new Set([...c?[c.id]:[],...(o??[]).map(t=>t.id)]),f=[];for(let t of g)for(let m of u.outEdges(t))g.has(m.to)&&f.push({kind:m.kind,from:m.from,to:m.to});let G=D(u,g,e.reads),A=new Set(f.map(t=>`${t.kind} ${t.from} ${t.to}`));for(let t of G.edges)A.has(`${t.kind} ${t.from} ${t.to}`)||f.push(t);let w=G.nodes.length>0?[...o??[],...G.nodes]:o,S=t=>t?.filter(m=>u.has(m)),F=n.permittedMutations(e.principal).map(t=>({name:t.name,title:t.title??t.name,...t.description!==void 0?{description:t.description}:{},...t.subject?{subject:{kinds:t.subject.kinds,arg:t.subject.arg}}:{}}));return{view:e.view,...c?{node:k(c)}:{},...w?{nodes:w.map(k)}:{},edges:f,...r.label!==void 0?{label:r.label}:{},...r.fidelity!==void 0?{fidelity:r.fidelity}:{},...r.cardinality!==void 0?{cardinality:r.cardinality}:{},...r.mode!==void 0?{mode:r.mode}:{},...r.selected!==void 0?{selected:r.selected}:{},...r.implicated?{implicated:S(r.implicated)}:{},...r.flagged?{flagged:S(r.flagged)}:{},acts:F,...e.theme?{theme:e.theme()}:{},locale:j(),timeZone:H(),today:e.store.today()??$(),...J(e.store.schema,[...c?[c]:[],...w??[]]),...e.placesShown?{places:e.placesShown().map(({as:t,title:m,kind:K})=>({as:t,title:m,kind:K}))}:{}}},h=!1,y=0,a=new Set,M=()=>{if(h)return;y+=1,a.add(y),a.size>100&&a.delete(a.values().next().value);let n=R();e.send({type:"props",props:e.hand?e.hand(n):n,push:y})},x=!1,T=e.store.subscribe(()=>{x||(x=!0,queueMicrotask(()=>{x=!1,M()}))}),b=(n,u)=>(s.refused+=1,{ok:!1,reason:n,message:u}),z=(n,u,r)=>P([{name:n,args:u}],r),P=(n,u,r)=>{if(!l.act())return b("rate-limited","Too many acts asked for at once; this one was not applied.");let c=[];for(let{name:o,args:g}of n){if(u){let f=u(o,g);if(!f.ok)return b(f.reason,f.message);o=f.name,g=f.args}if(!e.store.allMutations().some(f=>f.name===o))return b("unknown-act","There is no act by that name here.");c.push({name:o,args:g})}try{let o=e.store.applyAll(c,{author:e.principal,via:i,...r?{intent:r}:{}});return s.applied+=1,{ok:!0,intent:o.intent}}catch(o){return o instanceof L?b("refused",o.refusal.message):o instanceof N?b("failed",Z(o)):b("failed","The act could not be applied.")}},C=(n,u,r)=>{let c=Array.isArray(r);if(typeof u!="string"||(c?r.length===0||r.length>100||!r.every(v):!v(r)))return s.refused+=1,e.send({type:"answer",id:n,ok:!1,reason:"malformed",message:"An act is asked for by name, with its arguments as an object, or a list of 1 to 100 of them for several as one change."});let o=P((c?r:[r]).map(g=>({name:u,args:g})),e.judgeAct);e.send(o.ok?{type:"answer",id:n,ok:!0,intent:o.intent}:{type:"answer",id:n,ok:!1,reason:o.reason,message:o.message})};return{receive(n){if(h)return;if(!(v(n)&&n.nonce===e.nonce&&n.type==="pushed"&&typeof n.push=="number"&&a.delete(n.push))&&!l.message()){s.dropped+=1,e.onFlood?.();return}if(!v(n)||n.nonce!==e.nonce){s.dropped+=1;return}if(n.type==="act"&&(typeof n.id=="string"||typeof n.id=="number"))return C(n.id,n.name,n.args);if(n.type==="navigate"&&e.onArrive&&(typeof n.place=="string"||typeof n.to=="string")){let r={...n.where!==void 0?{where:n.where}:{},...n.section!==void 0?{section:n.section}:{}},c=typeof n.place=="string"?{place:n.place,...r}:{record:n.to,...r},o=e.onArrive;W().then(({judgeDestination:g,listsOf:f,placeVocabulary:G})=>{if(h)return;let A=new Set([...e.store.kindsKeptFrom(e.principal),...e.store.modules.disabledKinds]),w=g(c,{sees:S=>p().graph.has(S),places:G(e.store.schema,e.placesShown?.()??[],{kept:A}),lists:f(e.store.schema,A),schema:e.store.schema});w.ok?o(w.arrival):(s.dropped+=1,e.onLost?.(w.says))});return}if(n.type==="navigate"&&typeof n.place=="string"){e.places?.().includes(n.place)?e.onNavigatePlace?.(n.place):s.dropped+=1;return}if(n.type==="navigate"&&typeof n.to=="string"){p().graph.has(n.to)?e.onNavigate?.(n.to):s.dropped+=1;return}if(n.type==="render"&&Array.isArray(n.records)&&e.onRender){e.onRender(n.records);return}if(n.type==="style"&&Array.isArray(n.sheets)&&n.sheets.every(r=>typeof r=="string")&&e.onStyle){e.onStyle(n.sheets);return}if(n.type==="hears"&&Array.isArray(n.events)&&e.onHears){e.onHears(n.events.filter(r=>typeof r=="string").slice(0,20));return}if(n.type==="clicks"&&Array.isArray(n.selectors)){let r=c=>(Array.isArray(c)?c:[]).filter(o=>typeof o=="string"&&o.length<=500).slice(0,200);e.onClicks?.(r(n.selectors),r(n.acted));return}if(n.type==="gestures"&&Array.isArray(n.bound)&&e.onGestures){e.onGestures(n.bound.slice(0,32));return}if(n.type==="pushed"&&typeof n.push=="number"&&typeof n.ms=="number"&&e.onPushed){e.onPushed(n.push,n.ms);return}if(n.type==="size"&&typeof n.height=="number"&&Number.isFinite(n.height)){e.onSize?.(Math.max(0,Math.min(d,Math.round(n.height))));return}s.dropped+=1},push:M,pressed(n){return h?{ok:!1,reason:"refused",message:"The view has gone."}:n.ok?z(n.name,n.args):(s.refused+=1,n)},change(n,u){return h?{ok:!1,reason:"refused",message:"The view has gone."}:P(n,void 0,u)},get stats(){return s},dispose(){h=!0,T()}}}var V=e=>({number:"a number",string:"text",boolean:"yes or no",date:"a date",array:"a list",object:"a set of values"})[e.toLowerCase()]??`a ${e}`;function Z(e){return`Not applied: ${q(e)}.`}function q(e){return e.issues.slice(0,4).map(d=>{let i=d.path.map(String).join("."),s=/expected (\w+)/i.exec(d.message)?.[1];return i?s&&/^invalid (input|type)/i.test(d.message)?`\u201C${i}\u201D expects ${V(s)}`:`\u201C${i}\u201D: ${d.message.charAt(0).toLowerCase()}${d.message.slice(1)}`:d.message}).join("; ")||"its arguments did not fit"}export{D as a,I as b,J as c,_ as d,Q as e,Z as f,q as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i}from"./chunk.IRNEWNUB.js";import"./chunk.AUNQNTKY.js";import"./chunk.KLEKC4ZX.js";import"./chunk.PJL3I2IW.js";import"./chunk.OD5QZHRC.js";import"./chunk.YJ4PFOPC.js";import"./chunk.LKM2R5UF.js";import"./chunk.5MOXQUZH.js";import"./chunk.MKN7ADJB.js";import"./chunk.I4H2GS4O.js";import"./chunk.MUWI54IP.js";import"./chunk.3D37E2G5.js";import"./chunk.WVUJXDXZ.js";import{e as l}from"./chunk.B422DSYN.js";import"./chunk.ZE5RSKXF.js";import"./chunk.DKUEZPGR.js";import"./chunk.EP7YT7LT.js";import"./chunk.I7KN732Z.js";import"./chunk.TLPCYKLW.js";import"./chunk.MIE4TJRW.js";import"./chunk.SCVKHGO3.js";import"./chunk.RD2FSSLV.js";import"./chunk.AZRICZKT.js";import"./chunk.MH3AQO2R.js";import"./chunk.J2N7EKMX.js";import"./chunk.P26ATAAI.js";import"./chunk.FIY4RUK5.js";import"./chunk.IY3DV52G.js";import"./chunk.NLZHNPDU.js";import"./chunk.QNC2OKLF.js";import{W as m}from"./chunk.FWXW4T4I.js";import"./chunk.SDO3U72B.js";import"./chunk.DHPXRDT5.js";import"./chunk.FQLNBIQ5.js";import{b as g}from"./chunk.AJZBJBMO.js";var a=g(m(),1),r=new WeakMap;function c(n){let o=r.get(n);if(!o){let t=l(n);o=e=>e.mode==="fullscreen"?(0,a.jsx)(i,{blocks:t,slot:"home",heading:2,firstHeading:1,...e.flagged?{flagged:e.flagged}:{}}):(0,a.jsx)(i,{blocks:t,slot:"home",heading:3,firstHeading:2,...e.flagged?{flagged:e.flagged}:{}}),r.set(n,o)}return o}export{c as homeView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as kn,c as bn,d as oe,e as wn,f as Y,h as Ee,i as je,n as vn,s as se,u as On}from"./chunk.TLPCYKLW.js";import{B as be,C as ue,Ea as Oe,F as _e,H as He,Ha as en,K as Ue,Ka as nn,L as We,Ma as tn,Nb as U,Qa as xe,Ra as Re,Sb as cn,Tb as ln,Uc as mn,Vb as fn,Xa as rn,_a as on,_b as pn,b as Fe,c as Ne,d as Ce,dc as un,e as K,fd as gn,g as ye,ga as Je,gd as yn,h as Z,ha as Ye,hd as Ae,i as Ie,id as hn,j as Ve,ja as Qe,jd as ze,k as he,kb as an,l as Ke,m as Ze,nb as sn,o as qe,p as fe,q as ve,sb as Se,ta as Xe,tb as dn,v as Be,x as pe,z as ke}from"./chunk.DHPXRDT5.js";var Tn=[{where:"settings[]",was:"honoured",now:"honored",since:"0.1.16"},{where:"pages",was:"overview",now:"scene",since:"0.1.17"}],q=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function xn(e,d=Tn){if(!q(e))return{document:e,respelled:[]};let n=[],t=e;for(let a of d)t=De(t,a.where.split("."),a,"",n);return{document:t,respelled:n}}function De(e,d,n,t,a){if(d.length===0){if(!q(e)||!Object.hasOwn(e,n.was))return e;a.push(`${t}${n.was}`);let{[n.was]:ie,...B}=e;return Object.hasOwn(e,n.now)?B:{...B,[n.now]:ie}}if(!q(e))return e;let[f,...E]=d,k=f.endsWith("[]"),O=k?f.slice(0,-2):f,G=e[O],X=G;if(!k)X=De(G,E,n,`${t}${O}.`,a);else if(Array.isArray(G)){let ie=G.map((B,T)=>De(B,E,n,`${t}${O}.${T}.`,a));X=ie.some((B,T)=>B!==G[T])?ie:G}return X===G?e:{...e,[O]:X}}var Rn=new WeakMap;function Sn(e,d){Rn.set(e,d)}function Zn(e){return Rn.get(e)}function An(e){if(typeof e=="string")return{form:"string",light:e};if(typeof e!="object"||e===null)return;let d=e,n=k=>typeof d[k]=="string"?d[k]:void 0,t=n("light")??n("src");if(t===void 0)return;let[a,f,E]=[n("dark"),n("alt"),n("darkFallback")];return{form:n("light")!==void 0?"light":"src",light:t,...a!==void 0?{dark:a}:{},...f!==void 0?{alt:f}:{},...E!==void 0?{darkFallback:E}:{}}}function Qn(e,d){let n=e.brand??{},t=n.ground,a=n.accent?ze(n.accent,t):void 0;t&&hn(a?.ok?a.schemes:Ae(t),n.accent)&&(d.push(je("brand","brand.ground","words would not read on that page background, so the app keeps Graview's","pick a lighter ground for the light scheme, a darker one for the dark")),t=void 0,a=n.accent?ze(n.accent):void 0),a&&!a.ok&&d.push(je("brand","brand.accent",`that accent cannot make a readable brand, so the app keeps Graview's colors: ${a.why}`,"pick a color further from orange-red, or a darker one"));let f=An(n.logo),E=n.name??e.name,k=n.typography?Object.fromEntries(Object.entries(n.typography).filter(([,O])=>typeof O=="string"&&yn(O)===null).map(([O,G])=>[O,gn(G)])):void 0;return{name:E,schemes:a?.ok?a.schemes:t?Ae(t):mn,...n.currency?{currency:n.currency}:{},...n.locale?{locale:n.locale}:{},...n.timeZone?{timeZone:n.timeZone}:{},...f?{logo:f.dark||f.darkFallback==="invert"?{light:f.light,...f.dark?{dark:f.dark}:{darkFallback:"invert"}}:f.light,logoAlt:f.alt??E}:{},...n.favicon?{favicon:n.favicon}:{},...e.description?{subtitle:e.description}:{},...n.subtitle===!1?{subtitleDrawn:!1}:{},...k?{typography:k}:{},...n.shape?{shape:n.shape}:{},...n.accents?{accents:n.accents}:{},...n.scheme?{scheme:n.scheme}:{},...n.views&&(n.views.css||n.views.motion)?{views:{...n.views.css?{css:n.views.css}:{},...n.views.motion?{motion:n.views.motion}:{}}}:{}}}function zn(e){let{currency:d,locale:n,timeZone:t}=e.brand??{};return{...d?{currency:d}:{},...n?{locale:n}:{},...t?{timeZone:t}:{}}}var Gn=Symbol.for("@graview/core:typed-field"),En=(e,d)=>(/^(phone|place|duration)$/.test(d)&&(ue(e)[Gn]=d),e),jn=/^(?=(?:\D*\d){3})\+?[\d ()./-]+(?: *(?:ext\.?|x|#) *\d+)?$/i;function Dn(e){let d=Z().check(K(300),ke(t=>nn(t,e)!==void 0,`a record of ${e.kinds.join(" or ")} in ${e.address}, as "<kind>:<id>"`)),n=e.cardinality==="one"?d:fe(d).check(K(200));return tn(e.description?n.check(be(e.description)):n,e)}var Ln="graview-compiled@1";function Fn(e,d){return e.find(([n,t])=>n!==Q&&"ref"in t&&(t.ref==="*"||t.ref.includes(d)))?.[0]}var Q="id",me=e=>typeof e=="string"&&/^\$[A-Za-z][A-Za-z0-9]*$/.test(e)?e.slice(1):void 0;function $n(e){let d=Object.entries(e.fields),n=t=>["name","title","label"].find(a=>t.some(([f])=>f===a))??t[0]?.[0];return n(d.filter(([,t])=>t.required&&(t.type==="string"||t.type==="text")))??n(d.filter(([,t])=>t.type==="string"))}function Pn(e,d,n){let t;switch(e.type){case"string":case"place":t=Z().check(K(500));break;case"phone":t=Z().check(K(40),ye(jn,"a phone number"));break;case"text":t=Z().check(K(2e4)),e.format&&(ue(t)[Symbol.for("@graview/core:markdown")]=1);break;case"number":case"integer":case"duration":{let f=e.min??(e.type==="duration"?0:void 0),E=[...e.type==="number"?[]:[Ke()],...f===void 0?[]:[Ne(f)],...e.max===void 0?[]:[Fe(e.max)],...e.step===void 0?[]:[Ce(e.step)]];t=E.length>0?he().check(...E):he();break}case"boolean":t=Ze();break;case"date":t=Z().check(ye(He,"a date like 2026-10-02, or a month (2016-05) or a year (2006) alone"));break;case"datetime":t=Z().check(ke(Ue,"a date and time like 2026-10-02T14:30:00Z"));break;case"enum":t=Be(e.options),e.multiple&&(t=fe(t).check(K(e.options.length)));break;case"list":t=fe(e.of==="number"?he():e.of==="date"?Z().check(ye(_e)):e.of==="image"||e.of==="video"||e.of==="file"?Oe(e.of):Z().check(K(500))).check(K(200));break;case"image":case"video":case"file":t=Oe(e.type);break;case"app-link":t=en();break;case"url":t=Ve();break;case"email":t=Ie();break}let a=e.type==="number"||e.type==="integer";return En(t,a&&e.format==="duration"?"duration":e.type),e.collaborative!==void 0&&(e.type==="text"||e.type==="string")&&(ue(t)[Symbol.for("@graview/core:collaborative")]=e.collaborative?1:0),e.description&&(t=t.check(be(e.description))),a&&(e.format==="money"||e.format==="percent"||!e.format&&e.unit)&&pn(t,{...n,...e.format?{format:e.format}:{},...e.unit?{unit:e.unit}:{},...e.places===0?{places:0}:{}}),d?pe(t):t}var ge=e=>{throw new U(`there is no record "${e}"`,"invalid")},Nn=(e,d)=>"field"in e?Pn(e.field,e.optional,d):"ref"in e?un(e.ref):pe(qe()),Cn=new WeakMap;var Le=(e,d)=>q(d)&&Object.keys(e??{}).length===Object.keys(d).length&&Object.keys(e??{}).every(n=>Object.hasOwn(d,n));function xt(e,d={}){let n=q(e)?e.format:void 0;if(n!==Ln)return{ok:!1,findings:[Ee("compiled-format","format",n===void 0?"this is not a compiled Graview app":`this compiled app is ${JSON.stringify(n)}, and this build reads ${Ln}`,"compile the document instead")]};let t=e,a=xn(t.document).document,f=a===t.document?t:{...t,document:a},E=q(a)&&typeof a.name=="string"&&q(a.kinds)&&Le(a.kinds,f.kinds)&&Le(a.acts,f.acts)&&Le(a.rules,f.rules)&&Array.isArray(f.edges)&&Array.isArray(f.findings),k={ok:!1,findings:[Ee("compiled-shape","","this compiled app's parts do not match its document","compile the document instead")]};if(!E)return k;try{return In(f,d)}catch{return k}}function In(e,d={}){let{document:n}=e,t=n.brand?.timeZone,a=d.today??(()=>We(t)),f={...n.brand?.locale?{locale:n.brand.locale}:{},...t?{timeZone:t}:{}},E=new Map(e.edges.map(([p,i])=>[p,i])),k=new Map;for(let[p,i]of Object.entries(n.kinds)){let x=e.kinds[p]?.computed,w=Re(i.edges),j=new Map(Object.entries(i.fields).flatMap(([S,v])=>v.type==="enum"?[[S,v.optionLabels??{}]]:[]));k.set(p,{fields:new Set([...Object.keys(i.fields),...w.keys()]),edges:new Map(Object.entries(xe(i.edges)).map(([S,v])=>[S,v.cardinality??"many"])),...x?{computed:new Map(x)}:{},...w.size>0?{linked:w}:{},...j.size>0?{choices:j}:{}})}e.facts&&k.set(bn,{computed:new Map(e.facts)});let O=zn(n),G=p=>({from:p.from,via:p.via,sourceEnd:p.sourceEnd,back:p.back,values(i,x,w){let j={};for(let[S,v]of p.set)if("value"in v)j[S]=v.value;else try{let $=Y(v.expr,{graph:i,subject:x,kinds:k,bindings:{to:w},today:a(),...f});($===null||typeof $!="object"||Array.isArray($))&&(j[S]=$)}catch($){if(!($ instanceof oe))throw $}return j}}),X=new Map,ie=Object.entries(n.kinds).map(([p,i])=>{let x={};for(let[r,o]of Object.entries(i.fields))x[r]=Pn(o,!o.required,O),o.repeats&&(x[rn(r)]=pe(on()));for(let[r,o]of Re(i.edges))x[r]=pe(Dn(o));let{label:w,describe:j,durations:S}=e.kinds[p]??{},v=Object.entries(i.computed??{}).map(([r,o])=>[r,typeof o=="string"?{expr:o}:o]),$=Object.hasOwn(i.fields,"label")&&!i.fields.label.label&&!/\{\s*label\b/.test(i.label??`{${$n(i)??""}}`),ee=Object.fromEntries([...$?[["label","Label"]]:[],...Object.entries(i.fields).filter(([,r])=>r.label).map(([r,o])=>[r,o.label]),...v.filter(([,r])=>r.label).map(([r,o])=>[r,o.label])]),W=Object.keys(ee).length>0,L=Object.entries(i.fields).filter(([,r])=>r.type==="enum"&&(r.optionLabels&&Object.keys(r.optionLabels).length>0||r.multiple)),l=r=>o=>typeof o=="string"&&r.optionLabels&&Object.hasOwn(r.optionLabels,o)?r.optionLabels[o]:Ye(String(o)),M=Object.fromEntries(L.map(([r,o])=>[r,o.multiple?z=>Array.isArray(z)?z.map(l(o)).join(", "):l(o)(z):l(o)])),N=L.length>0,C=Object.fromEntries(Object.entries(i.fields).filter(([,r])=>r.default!==void 0).map(([r,o])=>[r,o.default]));X.set(p,C);let _=Object.fromEntries(Object.entries(xe(i.edges)).map(([r,{renamedFrom:o,...z}])=>[r,z])),I=Object.entries(i.fields).flatMap(([r,o])=>o.aliases?[[r,o.aliases]]:[]),P=r=>i[r]?{[r]:i[r]}:{};return Qe(p,{fields:ve(x),edges:_,...P("plural"),...P("noun"),...P("aliases"),...I.length>0?{fieldAliases:Object.fromEntries(I)}:{},...P("description"),...w?{label:r=>se(w,{node:r,kinds:k,today:a(),money:O})||r.id}:{},...j?{describe:r=>se(j,{node:r,kinds:k,today:a(),money:O})}:{},...P("lifecycle"),...P("figure"),...P("fieldRoles"),...P("people"),archives:i.archives,...i.tidying?{tidying:i.tidying}:{},...v.length>0?{computed:Object.fromEntries(v.map(([r,o])=>[r,Vn(o,S?.includes(r)??!1,O)??i.computed[r]]))}:{},...W||N||i.glance||i.page?{display:{...W?{labels:ee}:{},...N?{format:M}:{},...i.glance?{glance:[...i.glance]}:{},...i.page?{page:i.page}:{}}}:{},...Object.keys(C).length>0?{defaults:C}:{},...e.kinds[p]?.keptInStep?{keptInStep:e.kinds[p].keptInStep}:{},...e.kinds[p]?.derives?{derives:G(e.kinds[p].derives)}:{}})}),B=an(ie,n.computed);function T(p){return B.tryDefinition(p.kind)?.label?.(p)??p.id}let $e=p=>({id:"",kind:p,...X.get(p)}),Pe=[];for(let[p,i]of Object.entries(n.acts??{})){let x=e.acts[p],{title:w,effects:j,guard:S,refusal:v,destructive:$,idempotent:ee,creates:W,connects:L,severs:l,writes:M,writesOther:N,sets:C}=x,_={};for(let c of j)"through"in c&&(_[c.through]=[...new Set([..._[c.through]??[],...Object.keys(c.set)])]);let I=new Map(x.args),P={};for(let[c,A]of I)P[c]=Nn(A,O);let r=[i.on??[]].flat(),o=new Map(x.exprs),z=j.find(c=>"create"in c),J=(c,A,u,b=null)=>{if(q(c)&&"expr"in c)return Y(o.get(c.expr),{graph:u,subject:b,kinds:k,bindings:A,today:a(),...f});let h=me(c);return h===void 0?typeof c=="string"&&c.startsWith("$$")?c.slice(1):c:h==="now"?new Date().toISOString():h==="today"?a():A[h]},de=(c,A)=>{if(!z)return"";let u=n.kinds[z.create].fields,b=$e(z.create),h=[];for(let[R,ce]of Object.entries(z.set??{})){try{b[R]=J(ce,c,A)??b[R]}catch{}let ae=me(ce);ae&&c[ae]!==void 0&&h.push(R)}let V=T(b).trim(),ne=h.filter(R=>b[R]!==!1&&u[R].type!=="text"&&!(/[^]{41}/.test(b[R])||/ .*[.!?]$/.test(b[R])&&!/[ .][A-Z]\w{0,3}\.$/.test(b[R]))&&T({...b,[R]:void 0}).trim()===V).map(R=>b[R]===!0?u[R].label??Je(R):vn(b[R],u[R].format,a(),[],O));return V&&ne.length>0?`${V} (${ne.join(", ")})`:V};Pe.push(fn(p,{input:ve(P),title:w,...i.description?{description:i.description}:{},...i.fromTheOtherEnd?{fromTheOtherEnd:i.fromTheOtherEnd}:{},...I.has(Q)?{subject:{kinds:r.length>0?r:"*",arg:Q}}:{},...$?{destructive:!0}:{},...ee?{idempotent:!0}:{},...W.length>0?{creates:W}:{},...L.length>0?{connects:L}:{},...l.length>0?{severs:l}:{},writes:M,...Object.keys(N).length>0?{writesOther:N}:{},...Object.keys(_).length>0?{writesLinked:_}:{},...Object.keys(C).length>0?{sets:C}:{},...S?{allowedOn:(c,A)=>{let u=c.getNode(A);if(!u||r.length>0&&!r.includes(u.kind))return!1;try{return Y(S,{graph:c,subject:u,kinds:k,bindings:{},today:a(),...f})===!0}catch{return!1}}}:{},describe:(c,A)=>{let u=typeof c[Q]=="string"?A.getNode(c[Q]):void 0,b=u?T(u):de(c,A);return b?`${w}: ${b}`:w},apply(c,A){let u=c.graph,b=typeof A[Q]=="string"?A[Q]:void 0,h=b?u.getNode(b):void 0;if(b&&!h&&ge(b),h&&r.length>0&&!r.includes(h.kind))throw new U(`"${w}" acts on ${r.join(" or ")}, not on ${Xe(h.kind)}`,"invalid");let V={};for(let[s,m]of Object.entries(A))m!==void 0&&(V[s]=m);if(S&&h){let s;try{s=Y(S,{graph:u,subject:h,kinds:k,bindings:V,today:a(),...f})}catch(m){throw m instanceof oe?new U(`"${w}" could not be judged: ${m.sentence}`):m}if(s!==!0)throw new U(v?se(v,{node:h,kinds:k,graph:u,bindings:V,today:a(),money:O}):`"${w}" is not allowed for ${T(h)} right now`)}let ne=new Map,R=s=>u.has(s)||[...ne.values()].includes(s),ce=new Set,ae=s=>{let m=sn(s);ce.has(m)||(ce.add(m),c.removeEdge(s))},te=(s,m)=>{let g=me(s);if(g==="subject")return b;if(g==="me"){let y=c.me;if(y&&n.kinds[u.getNode(y)?.kind]?.people)return y;throw new U(`"${w}" is done as you, and you have no record here`)}if(ne.has(g))return ne.get(g);try{return J(s,V,u,m??h??null)}catch(y){throw y instanceof oe?new U(`"${w}" could not work out a value: ${y.sentence}`):y}};for(let s of j)if("create"in s){let m=n.kinds[s.create],g=$e(s.create);for(let[H,re]of Object.entries(s.set??{})){let Me=te(re,void 0);Me!==void 0&&(g[H]=Me)}let y=$n(m),D=String((y&&g[y])??s.create),le=ln(D,s.create,g,(H,re)=>cn(n.policy?.sees,H,re)),F=c.freshId(le?s.create:D,s.create,g);c.addNode({...g,id:F}),s.as&&ne.set(s.as,F)}else if("connect"in s||"sever"in s){let m="connect"in s?s.connect:s.sever,g=String(te(s.from,void 0)??""),y=String(te(s.to,void 0)??"");if(R(g)||ge(g),R(y)||ge(y),"connect"in s){if(E.get(m)?.cardinality==="one")for(let D of u.out(g,m))D.id!==y&&ae({kind:m,from:g,to:D.id});u.out(g,m).some(D=>D.id===y)||c.addEdge({kind:m,from:g,to:y})}else ae({kind:m,from:g,to:y})}else if("through"in s){if(!h)throw new U(`"${w}" carries a change to linked records, and has no record to start from`,"invalid");let g=E.get(s.through)?.from.includes(h.kind)??!0?u.out(h.id,s.through):u.in(h.id,s.through);for(let y of g){let D={};for(let[le,F]of Object.entries(s.set)){let H;if(me(F)==="to")H=y.id;else if(q(F)&&"expr"in F)try{H=Y(o.get(F.expr),{graph:u,subject:h,kinds:k,bindings:{...V,to:y},today:a(),...f})}catch(re){throw re instanceof oe?new U(`"${w}" could not work out a value for ${T(y)}: ${re.sentence}`):re}else H=te(F,void 0);H!==void 0&&(D[le]=H)}Object.keys(D).length>0&&c.patchNode(y.id,D)}}else if("set"in s){let m=String(te(s.target??"$subject",void 0)??""),g=u.getNode(m);!g&&!R(m)&&ge(m);let y={};for(let[D,le]of Object.entries(s.set)){let F=te(le,g);F!==void 0&&(y[D]=F)}Object.keys(y).length>0&&c.patchNode(m,y)}else if("remove"in s){let m=String(te(s.remove,void 0)??"");u.has(m)||ge(m),c.removeNode(m)}else if("replace"in s&&h){let m=A.to;for(let g of s.replace){let y=E.get(g)?.from.includes(h.kind)??!0;for(let D of y?u.out(h.id,g):u.in(h.id,g))g===s.keep&&D.id===m||ae(y?{kind:g,from:h.id,to:D.id}:{kind:g,from:D.id,to:h.id})}}}}))}let Te=[];for(let[p,i]of Object.entries(n.rules??{})){let{title:x,require:w,when:j,says:S,covers:v}=e.rules[p],$=i.repairs??[],ee=(L,l,M=a(),N)=>{let C=[],_={graph:L,subject:l,kinds:k,today:M,...f,...N?{linked:N}:{},onUnread:o=>C.push(o)},I,P=[];try{if(j&&Y(j,_)!==!0)return[];if(v&&l?(P=On(L,l,v),I=P.length===0):I=Y(w,_)===!0,!I&&C.length>0)throw new oe(`it reads ${kn(C[0])}`,0)}catch(o){throw o instanceof wn?new dn(o.sentence):o instanceof oe?new Error(o.sentence):o}if(I)return[];let r=$.flatMap(o=>{let z=n.acts?.[o.act],J={},de=l&&z?.on&&z.fromTheOtherEnd&&![z.on].flat().includes(l.kind)?Fn(e.acts[o.act].args,l.kind):void 0;de?J[de]=l.id:l&&(z?.on||/^(edit|remove|archive|unarchive|merge|skip|detach|split)-/.test(o.act))&&(J[Q]=l.id);for(let[u,b]of Object.entries(o.args??{}))J[u]=me(b)==="subject"?l?.id:b;let A=(z?e.acts[o.act].args:[]).filter(([u,b])=>b.required&&J[u]===void 0).map(([u])=>u);return[{mutation:o.act,label:o.label??(de?z.fromTheOtherEnd:z?.title)??o.act.replace(/-/g," "),args:J,...A.length>0?{missing:A}:{}}]});return v&&l?P.map(o=>({invariant:p,subjectId:l.id,label:x,message:S?se(S,{node:l,kinds:k,graph:L,today:M,money:O,bindings:{[l.kind]:l,[o.kind]:o}}):`${T(l)}: ${x} \u2014 ${T(o)}`,nodeIds:[l.id,o.id],repairs:r})):[{invariant:p,...l?{subjectId:l.id}:{},label:x,message:S?se(S,{node:l,kinds:k,graph:L,today:M,money:O}):l?`${T(l)}: ${x}`:x,nodeIds:l?[l.id]:[],repairs:r}]},W={label:x,shape:{over:i.over,require:w,...v?{covers:v}:{},when:j,says:S,declared:n.kinds,money:O,kinds:k,today:a},judgment:{...i.require?{require:i.require}:{},...i.covers?{covers:i.covers}:{},...i.when?{when:i.when}:{},...i.says?{says:i.says}:{}},...i.description?{description:i.description}:{},...$.length>0?{repairs:$.map(L=>L.act)}:{}};Te.push(i.over==="graph"?Se(p,{scope:"graph",...W,evaluate:({graph:L,today:l,context:M})=>ee(L,null,l,M?.linked)}):Se(p,{scope:{kind:i.over},...W,evaluate:({graph:L,subject:l,today:M,context:N})=>ee(L,l,M,N?.linked)}))}let Ge=n.policy&&{...n.policy,...n.roles?{roles:n.roles}:{}},we={name:n.name,schema:B,mutations:Pe,invariants:Te,...Ge?{policy:Ge}:{},...e.brand?{brand:e.brand}:{},...n.modules?{modules:n.modules}:{},...n.lenses?{lenses:n.lenses}:{},...n.pages?{pages:n.pages}:{},...n.settings?{settings:n.settings}:{},...n.connections?{connections:n.connections}:{},...n.forms?{forms:n.forms}:{},...n.publishing?{publishing:n.publishing}:{},...n.tidying?{tidying:n.tidying}:{},...n.purpose?{purpose:n.purpose}:{},...e.viewSpecs?{viewSpecs:e.viewSpecs}:{},...e.home?{home:e.home}:{},version:n.version??1};return Sn(we,n),Cn.set(we,e),{ok:!0,app:we,document:n,findings:e.findings,sights:n.policy?.sees,kinds:k}}function Vn(e,d,n){let t=d||e.format==="duration",a=e.format==="money"||e.format==="percent"||!e.format&&e.unit!==void 0;if(!(!t&&!a))return{...e,...t?{as:"duration"}:{},...a?{amount:{...n,...e.format?{format:e.format}:{},...e.unit?{unit:e.unit}:{},...e.places===0?{places:0}:{}}}:{}}}export{q as a,xn as b,Zn as c,Qn as d,Ln as e,Q as f,me as g,$n as h,xt as i,In as j};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{l as C}from"./chunk.RD2FSSLV.js";import{j as T}from"./chunk.P26ATAAI.js";import{G as b,Oa as Y,W as R,c as K,ea as v,fa as z,ga as q,x as $}from"./chunk.FWXW4T4I.js";import{C as L,Qb as j,Zb as B,fc as H,od as G,pd as U,qc as I,yb as W}from"./chunk.DHPXRDT5.js";import{b as m}from"./chunk.AJZBJBMO.js";function Q(e,n,t={}){let o=e.graph.getNode(n);if(!o)return[];let i=t.principal?new Set(e.permittedMutations(t.principal).map(s=>s.name)):void 0,c=o.kind,p=e.schema.tryDefinition(c);if(!p)return[];let r=e.seenFor,a=r?j.keptFrom?.(e,r)?.(o):void 0,d=new Map;for(let s of e.allMutations()){let l=s.subject;if(!l||!(l.kinds==="*"||l.kinds.includes(c))||i&&!i.has(s.name))continue;let h=s.input.shape??{};for(let u of I(s,p)){if(a?.(u)||!B(s,e.schema,e.graph,n,u,r&&W(r).id))continue;let M=u in h,_=[];for(let g of Object.keys(h)){if(g===l.arg||g===u||ie(h[g]))continue;let S=H(s.input).find(E=>E.name===g);_.push({name:g,...S?{kinds:S.kinds}:{},...S?{candidates:S.kinds.includes("*")?e.graph.allNodes().map(E=>E.id):S.kinds.flatMap(E=>e.graph.nodesOfKind(E).map(oe=>oe.id))}:{},shape:T(s.input,g)})}let re={field:u,mutation:s.name,title:s.title??s.name,shape:M?T(s.input,u):{type:"unknown"},takesValue:M,alternatives:[],open:_,clearable:M&&(s.clearable?.includes(u)??!1),call:g=>({name:s.name,args:M?{[l.arg]:n,[u]:g}:{[l.arg]:n}})};d.set(u,[...d.get(u)??[],re])}}return[...d.values()].map(s=>{let l=[...s.filter(u=>u.takesValue),...s.filter(u=>!u.takesValue)],[w,...h]=l;return{...w,alternatives:h}})}function ie(e){let n=L(e)?.type;return n==="optional"||n==="default"||n==="nullable"}var O=m(b(),1);function Oe(e){let{store:n,principal:t}=v(),o=q(),i=(0,O.useMemo)(()=>e===null?[]:Q(n,e,{principal:t}),[n,e,o,t]),c=(0,O.useCallback)((p,r,a={})=>{let d=p.call(r);n.apply({name:d.name,args:{...d.args,...a}},{author:t})},[n,t]);return{fields:i,commit:c}}var J=m(b(),1);function ln(){let{brand:e}=v(),n=e?.kit;return(0,J.useMemo)(()=>G(n),[n])}function un(e,n){let t=U(e,n),o={...t.color!==void 0?{color:t.color}:{},...t.pattern!==void 0?{pattern:t.pattern}:{},...t.width!==void 0?{width:t.width}:{},...t.cap!==void 0?{cap:t.cap}:{},...t.opacity!==void 0?{opacity:t.opacity}:{}};return{connector:t,style:C(n,{[n]:o})}}var Z=m(b(),1);var x=m(R(),1);function ae(e){let n=e?.hint;return typeof n=="string"&&n.length>0?n:void 0}function se(e){if(e instanceof Error&&e.message)return e.message;let n=String(e);return n==="[object Object]"?"The view threw without a message.":n}var X=class extends Z.Component{static contextType=Y;state={};static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,t){console.error(`[graview] the ${this.props.view??"view"} of ${this.props.kind} threw while rendering`,n,t.componentStack),this.context?.(n,{module:"@graview/react"})}render(){let{error:n}=this.state;if(!n)return this.props.children;let t=ae(n);return(0,x.jsxs)("div",{role:"alert","data-graview-view-error":this.props.kind,style:{display:"flex",flexDirection:"column",gap:"0.375rem",padding:"var(--graview-pad, 12px)",height:"100%",overflow:"auto",boxSizing:"border-box",borderRadius:"var(--graview-radius-sm, 6px)",background:"var(--graview-panel-warning, #fdf3ec)",color:"var(--graview-ink, #1a1a1a)",font:"var(--graview-font-body, 13px/1.45 system-ui)",fontSize:"0.875rem",lineHeight:1.45},children:[(0,x.jsx)("strong",{style:{color:"var(--graview-warn, #b4462a)"},children:this.props.view?`${this.props.view} could not draw`:"This view could not draw"}),(0,x.jsx)("span",{style:{color:"var(--graview-ink-muted, #555)"},children:this.props.kind}),(0,x.jsx)("span",{children:se(n)}),t?(0,x.jsx)("span",{style:{color:"var(--graview-ink-muted, #555)"},children:t}):null]})}};var y=m(b(),1);var ne=m(R(),1),D=(0,y.createContext)([]);function gn({sections:e,children:n}){let t=(0,y.useContext)(D),o=(0,y.useMemo)(()=>[...t,...e.filter(i=>!t.includes(i))],[t,e]);return(0,ne.jsx)(D.Provider,{value:o,children:n})}function ee(){let e=(0,y.useContext)(D),n=z()?.menuSections;return(0,y.useMemo)(()=>n?[...e,...n.filter(t=>!e.includes(t))]:e,[e,n])}function hn(){let e=ee();return(0,y.useCallback)(n=>{for(let t of e)try{t(n)?.prepare?.()}catch{}},[e])}function xn(e){let n=ee();if(e===null||n.length===0)return{start:[],end:[]};let t=n.flatMap(o=>{try{let i=o(e);return i&&((i.items?.length??0)>0||i.render||i.mode)?[i]:[]}catch{return[]}});return{start:t.filter(o=>o.at==="start"),end:t.filter(o=>o.at!=="start")}}var V=new WeakMap;function bn(e,n){n?V.set(e,n):V.delete(e)}function vn(e){return e?V.get(e):void 0}var k,de,N=new Set;function Sn(e){N.add(e)}function En(){return de??=Promise.all([(__graviewPreload(import.meta.url,["./chunk.AJZBJBMO.js"]),import("./chunk.Y7QDQ3WF.js")),...[...N].map(e=>e())]).then(([e])=>void(k=e.sectionUnder))}function kn(e){return e&&k?k(e):void 0}var Pn=()=>k===void 0&&N.size>0,Mn=e=>k===void 0&&e?.getRootNode()?.host?.hasAttribute("data-worker-view")===!0;var ce=m(b(),1);function An(){return v().activity}var A=(e,n)=>e.length*n*.58;var le=156,ue=2,P=le-18,pe=7.1,fe=16;function me(e,n){let t=0,o=P;for(let i of e.split(" ")){let c=n(i),p=o+n(" ")+c;if(p<=P)o=p;else{let r=Math.ceil(c/P)||1;t+=r,o=c-(r-1)*P}}return t}var ye=16.25,te=27,ge=(e,n)=>{let t=Math.ceil(e.length*pe/P);return n?Math.max(te,Math.ceil(Math.max(t,me(e,n))*ye)+6):Math.max(te,t*fe+6)};function Dn(e,n,t){return e.length===0?0:10+e.reduce((o,i)=>o+ge(i,t),0)+(e.length-1)*ue}var he=27,xe=8,Vn=4,we=64,Nn=e=>Math.max(1,Math.min(xe,e)),Fn=e=>e*he+we;var f=m(b(),1);function jn(e,{units:n,target:t=0,legibleAt:o=260}){let[i,c]=(0,f.useState)(n);(0,f.useEffect)(()=>{let r=e.current;if(r===null||typeof ResizeObserver>"u")return;let a=new ResizeObserver(([d])=>{let s=d?.contentRect.width??0;s>0&&c(s)});return a.observe(r),()=>a.disconnect()},[e]);let p=i/n;return{scale:p,width:i,touchable:p*t>=24,legible:i>=o}}function Bn(e="--graview-font-body",n="sans-serif"){let t=(0,f.useRef)(void 0),o=(0,f.useMemo)(()=>{if(typeof getComputedStyle!="function"||typeof document>"u")return n;let i=getComputedStyle(document.documentElement).getPropertyValue(e).trim();return i.length>0?i:n},[e,n]);return(0,f.useMemo)(()=>{t.current===void 0&&(t.current=typeof document>"u"?null:document.createElement("canvas").getContext("2d")??null);let i=t.current;return i===null?A:(c,p)=>{i.font=`${p}px ${o}`;let r=i.measureText(c).width;return r>0?r:A(c,p)}},[o])}var Hn=(0,f.createContext)(void 0);var F=3;function be(e){let n=K(e),t=n.focusId;if(!t)return null;if(n.within?.view){let[i]=$(t);if(i)return{at:`screen:${i}`,audience:!0}}return{at:t,audience:!1}}var ve=102,Se=32;function Un(e,n,t){let o=[],i=new Map,c=new Map,p=0;for(let r of e){let a=be(r.stop),d=a?n(a.at):null;if(!a||!d){r.name&&o.push({kind:"edge",presence:r,point:{x:t-8,y:ve+p++*Se}});continue}if(!r.name){let u=c.get(a.at);c.set(a.at,{n:(u?.n??0)+1,box:d});continue}let s=i.get(a.at)??[];if(s.push(r),i.set(a.at,s),s.length>F)continue;let l=d,w=s.length-1,h=a.audience?{x:l.x+l.width*.5+(w-1)*26,y:l.y+Math.min(l.height,24)}:{x:l.x+l.width*.5-26-w*26,y:l.y+l.height-4};o.push({kind:"person",presence:r,point:h,at:a.at,index:w,of:s.length,audience:a.audience})}for(let[r,a]of i){if(a.length<=F)continue;let d=n(r);d&&o.push({kind:"count",at:r,point:{x:d.x+d.width*.5+2*26+18,y:d.y+d.height-4},n:a.length-F})}for(let[r,{n:a,box:d}]of c)o.push({kind:"count",at:r,point:{x:d.x+d.width*.5+40,y:d.y+d.height-4},n:a});for(let r of e)if(r.name){if(r.robot?.at&&r.robot.mode!=="docked"){let a=n(r.robot.at);a&&o.push({kind:"robot",presence:r,point:{x:a.x+a.width/2+22,y:a.y+a.height-4},mode:r.robot.mode})}if(r.over){let a=n(r.over);a&&o.push({kind:"over",presence:r,box:a})}}return o}export{An as a,A as b,le as c,ue as d,te as e,Dn as f,he as g,Vn as h,we as i,Nn as j,Fn as k,jn as l,Bn as m,Q as n,Oe as o,ln as p,un as q,Un as r,X as s,gn as t,hn as u,xn as v,bn as w,vn as x,Sn as y,En as z,kn as A,Pn as B,Mn as C};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p}from"./chunk.LMZ2WMGH.js";import{a,b}from"./chunk.OD5QZHRC.js";import"./chunk.YJ4PFOPC.js";import"./chunk.LKM2R5UF.js";import"./chunk.MH3AQO2R.js";import"./chunk.J2N7EKMX.js";import"./chunk.P26ATAAI.js";import"./chunk.FIY4RUK5.js";import"./chunk.IY3DV52G.js";import"./chunk.NLZHNPDU.js";import"./chunk.QNC2OKLF.js";import"./chunk.FWXW4T4I.js";import"./chunk.SDO3U72B.js";import"./chunk.DHPXRDT5.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";export{j as ARRANGE_NARROW,o as ArrangeBar,e as CHIP_FIELDS,d as MANY_AT_THE_FAR_END,c as TYPED_FROM,p as arrangementCaption,a as arrangementOf,i as chipOffers,m as directionWords,g as farCount,f as farCounts,l as inSentence,h as offeredFilters,n as preloadArrangeLists,k as sayCondition,b as withArrangement};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{a as Ct,b as Lt,c as Ce,d as Dt,h as kt,i as ae,j as Ft,k as Tt}from"./chunk.HMJXB6KC.js";import{a as yt}from"./chunk.5MOXQUZH.js";import{d as vt}from"./chunk.P26ATAAI.js";import{c as gt}from"./chunk.FIY4RUK5.js";import{B as Et,I as xt,J as Pt,i as mt,j as pt,u as wt,v as Rt,y as St,z as bt}from"./chunk.NLZHNPDU.js";import{c as Mr}from"./chunk.QNC2OKLF.js";import{G as M,P as dt,R as ft,W as Z,fa as ht}from"./chunk.FWXW4T4I.js";import{$c as rt,$d as lt,Zd as ot,_d as it,dd as at,eb as tt,pa as de,pe as st,qe as ut,re as ct,sd as nt}from"./chunk.DHPXRDT5.js";import{b as D}from"./chunk.AJZBJBMO.js";function Or(e,t){return ot(e,t).slice(1)}function fe(e,t){return e.kinds.find(r=>Or(e,r)===t)}function Nn(e,t,r){return it(e,t,r)}function Mn(e,t){return lt(e,t)}var _=D(M(),1),g=D(M(),1),x=D(M(),1),Ye=D(M(),1),hr=D(M(),1),S=D(M(),1),rn=D(M(),1),an=D(M(),1),nn=D(M(),1),v=D(M(),1),Pr=D(M(),1);var Oe=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ut=/^[\\/]{2}/;function Ar(e,t){return t+e.replace(/\\/g,"/")}var Nt="popstate";function ge(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function jt(e={}){let{initialEntries:t=["/"],initialIndex:r,v5Compat:a=!1}=e,n;n=t.map((h,y)=>c(h,typeof h=="string"?null:h.state,y===0?"default":void 0,typeof h=="string"?void 0:h.mask));let o=s(r??n.length-1),i="POP",l=null;function s(h){return Math.min(Math.max(h,0),n.length-1)}function u(){return n[o]}function c(h,y=null,p,f){let w=ve(n?u().pathname:"/",h,y,p,f);return O(w.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(h)}`),w}function d(h){return typeof h=="string"?h:B(h)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:d,createURL(h){return new URL(d(h),"http://localhost")},encodeLocation(h){let y=typeof h=="string"?Y(h):h;return{pathname:y.pathname||"",search:y.search||"",hash:y.hash||""}},push(h,y){i="PUSH";let p=ge(h)?h:c(h,y);o+=1,n.splice(o,n.length,p),a&&l&&l({action:i,location:p,delta:1})},replace(h,y){i="REPLACE";let p=ge(h)?h:c(h,y);n[o]=p,a&&l&&l({action:i,location:p,delta:0})},go(h){i="POP";let y=s(o+h),p=n[y];o=y,l&&l({action:i,location:p,delta:h})},listen(h){return l=h,()=>{l=null}}}}function zt(e={}){function t(a,n){let o=n.state?.masked,{pathname:i,search:l,hash:s}=o||a.location;return ve("",{pathname:i,search:l,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,n){return typeof n=="string"?n:B(n)}return $r(t,r,null,e)}function L(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function O(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _r(){return Math.random().toString(36).substring(2,10)}function Mt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ve(e,t,r=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Y(t):t,state:r,key:t&&t.key||a||_r(),mask:n}}function B({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function $r(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,i=n.history,l="POP",s=null,u=c();u==null&&(u=0,i.replaceState({...i.state,idx:u},""));function c(){return(i.state||{idx:null}).idx}function d(){l="POP";let f=c(),w=f==null?null:f-u;u=f,s&&s({action:l,location:p.location,delta:w})}function m(f,w){l="PUSH";let R=ge(f)?f:ve(p.location,f,w);r&&r(R,f),u=c()+1;let b=Mt(R,u),P=p.createHref(R.mask||R);try{i.pushState(b,"",P)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;n.location.assign(P)}o&&s&&s({action:l,location:p.location,delta:1})}function h(f,w){l="REPLACE";let R=ge(f)?f:ve(p.location,f,w);r&&r(R,f),u=c();let b=Mt(R,u),P=p.createHref(R.mask||R);i.replaceState(b,"",P),o&&s&&s({action:l,location:p.location,delta:0})}function y(f){return Ir(n,f)}let p={get action(){return l},get location(){return e(n,i)},listen(f){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(Nt,d),s=f,()=>{n.removeEventListener(Nt,d),s=null}},createHref(f){return t(n,f)},createURL:y,encodeLocation(f){let w=y(f);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:h,go(f){return i.go(f)}};return p}function Ir(e,t,r=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),L(a,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:B(t);return n=n.replace(/ $/,"%20"),!r&&Ut.test(n)&&(n=a+n),new URL(n,a)}var Hr;Hr=new WeakMap;function Ae(e,t,r="/"){return Ur(e,t,r,!1)}function Ur(e,t,r,a,n){let o=typeof t=="string"?Y(t):t,i=U(o.pathname||"/",r);if(i==null)return null;let l=n??zr(e),s=null,u=Zr(i);for(let c=0;s==null&&c<l.length;++c)s=qr(l[c],u,a);return s}function jr(e,t){let{route:r,pathname:a,params:n}=e;return{id:r.id,pathname:a,params:n,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function zr(e){let t=Bt(e);return Br(t),t}function Bt(e,t=[],r=[],a="",n=!1){let o=(i,l,s=n,u)=>{let c={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(a)&&s)return;L(c.relativePath.startsWith(a),`Absolute route path "${c.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(a.length)}let d=H([a,c.relativePath]),m=r.concat(c);i.children&&i.children.length>0&&(L(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Bt(i.children,t,m,d,s)),!(i.path==null&&!i.index)&&t.push({path:d,score:Xr(d,i.index),routesMeta:m.map((h,y)=>{let[p,f]=Vt(h.relativePath,h.caseSensitive,y===m.length-1);return{...h,matcher:p,compiledParams:f}})})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))o(i,l);else for(let s of Wt(i.path))o(i,l,!0,s)}),t}function Wt(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let i=Wt(a.join("/")),l=[];return l.push(...i.map(s=>s===""?o:[o,s].join("/"))),n&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Br(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qr(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Wr=/^:[\w-]+$/,Yr=3,Vr=2,Jr=1,Kr=10,Gr=-2,Ot=e=>e==="*";function Xr(e,t){let r=e.split("/"),a=r.length;return r.some(Ot)&&(a+=Gr),t&&(a+=Vr),r.filter(n=>!Ot(n)).reduce((n,o)=>n+(Wr.test(o)?Yr:o===""?Jr:Kr),a)}function Qr(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function qr(e,t,r=!1){let{routesMeta:a}=e,n={},o="/",i=[];for(let l=0;l<a.length;++l){let s=a[l],u=l===a.length-1,c=o==="/"?t:t.slice(o.length)||"/",d={path:s.relativePath,caseSensitive:s.caseSensitive,end:u},m=s.matcher&&s.compiledParams?Yt(d,c,s.matcher,s.compiledParams):oe(d,c),h=s.route;if(!m&&u&&r&&!a[a.length-1].route.index&&(m=oe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!m)return null;Object.assign(n,m.params),i.push({params:n,pathname:H([o,m.pathname]),pathnameBase:ta(H([o,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(o=H([o,m.pathnameBase]))}return i}function oe(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=Vt(e.path,e.caseSensitive,e.end);return Yt(e,t,r,a)}function Yt(e,t,r,a){let n=t.match(r);if(!n)return null;let o=n[0],i=ee(o,1),l=n.slice(1);return{params:a.reduce((u,{paramName:c,isOptional:d},m)=>{if(c==="*"){let y=l[m]||"";i=ee(o.slice(0,o.length-y.length),1)}let h=l[m];return d&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Vt(e,t=!1,r=!0){O(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s,u,c)=>{if(a.push({paramName:l,isOptional:s!=null}),s){let d=c.charAt(u+i.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function Zr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return O(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function U(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Jt(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?Y(e):e,o;return r?(r=Kt(r),r.startsWith("/")||r.startsWith("\\")?o=At(r.substring(1),"/"):o=At(r,t)):o=t,{pathname:o,search:ra(a),hash:aa(n)}}function At(e,t){let r=ee(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Le(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ea(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function _e(e){let t=ea(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function Se(e,t,r,a=!1){let n;typeof e=="string"?n=Y(e):(n={...e},L(!n.pathname||!n.pathname.includes("?"),Le("?","pathname","search",n)),L(!n.pathname||!n.pathname.includes("#"),Le("#","pathname","hash",n)),L(!n.search||!n.search.includes("#"),Le("#","search","hash",n)));let o=e===""||n.pathname==="",i=o?"/":n.pathname,l;if(i==null)l=r;else{let d=t.length-1;if(!a&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),d-=1;n.pathname=m.join("/")}l=d>=0?t[d]:"/"}let s=Jt(n,l),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var Kt=e=>e.replace(/[\\/]{2,}/g,"/"),H=e=>Kt(e.join("/"));function ee(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var ta=e=>ee(e).replace(/^\/*/,"/"),ra=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aa=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var Gt=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Xt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function na(e){let t=e.map(r=>r.route.path).filter(Boolean);return H(t)||"/"}var Qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qt(e,t){let r=e;if(typeof r!="string"||!Oe.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,n=!1;if(Qt)try{let o=new URL(window.location.href),i=Ut.test(r)?new URL(Ar(r,o.protocol)):new URL(r),l=U(i.pathname,t);i.origin===o.origin&&l!=null?r=l+i.search+i.hash:n=!0}catch{O(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:r}}var An=Symbol("Uninstrumented");var _n=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _t=new URL("http://localhost");function $e(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),_t)}catch{return _t}}function De(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function oa(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function Ie(e,t,r,a){let n=null;try{n=e==null?null:new URL(e,r)}catch{}let o=new URL(t,r),i=n!=null&&!De(n,r),l=!De(o,r);if(a==="reject"){if(i||l)throw new Error("External navigation is not allowed")}else if(l&&(n==null||!oa(e,n)||!De(n,o)))throw new Error("External navigation is not allowed")}var Zt=["POST","PUT","PATCH","DELETE"],$n=new Set(Zt),ia=["GET",...Zt],In=new Set(ia);var Hn=Symbol("ResetLoaderData"),la,sa,ua,ca;la=new WeakMap;sa=new WeakMap;ua=new WeakMap;ca=new WeakMap;var da=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function fa(e){try{return da.includes(new URL(e).protocol)}catch{return!1}}var K=_.createContext(null);K.displayName="DataRouter";var te=_.createContext(null);te.displayName="DataRouterState";var er=_.createContext(!1);function ha(){return _.useContext(er)}var He=_.createContext({isTransitioning:!1});He.displayName="ViewTransition";var tr=_.createContext(new Map);tr.displayName="Fetchers";var ma=_.createContext(null);ma.displayName="Await";var N=_.createContext(null);N.displayName="Navigation";var G=_.createContext(null);G.displayName="Location";var I=_.createContext({outlet:null,matches:[],isDataRoute:!1});I.displayName="Route";var Ue=_.createContext(null);Ue.displayName="RouteError";var Te=!0,rr="REACT_ROUTER_ERROR",pa="REDIRECT",ya="ROUTE_ERROR_RESPONSE";function ga(e){if(e.startsWith(`${rr}:${pa}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function va(e){if(e.startsWith(`${rr}:${ya}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Gt(t.status,t.statusText,t.data)}catch{}}function be(e,{relative:t}={}){L(X(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=g.useContext(N),{hash:n,pathname:o,search:i}=re(e,{relative:t}),l=o;return r!=="/"&&(l=o==="/"?r:H([r,o])),a.createHref({pathname:l,search:i,hash:n})}function X(){return g.useContext(G)!=null}function T(){return L(X(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(G).location}function wa(){return g.useContext(G).navigationType}var ar="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nr(e){g.useContext(N).static||g.useLayoutEffect(e)}function Q(){let{isDataRoute:e}=g.useContext(I);return e?Fa():Ra()}function Ra(){L(X(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(K),{basename:t,navigator:r}=g.useContext(N),{matches:a}=g.useContext(I),{pathname:n}=T(),o=JSON.stringify(_e(a)),i=g.useRef(!1);return nr(()=>{i.current=!0}),g.useCallback((s,u={})=>{if(O(i.current,ar),!i.current)return;if(typeof s=="number"){r.go(s);return}let c=Se(s,JSON.parse(o),n,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:H([t,c.pathname])),Ie(typeof s=="string"?s:B(s),r.createHref(c),$e(r),"reject"),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,o,n,e])}var Un=g.createContext(null);function Sa(){let{matches:e}=g.useContext(I);return e[e.length-1]?.params??{}}function re(e,{relative:t}={}){let{matches:r}=g.useContext(I),{pathname:a}=T(),n=JSON.stringify(_e(r));return g.useMemo(()=>Se(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function or(e,t){return ir(e,t)}function ir(e,t,r){L(X(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=g.useContext(N),{matches:n}=g.useContext(I),o=n[n.length-1],i=o?o.params:{},l=o?o.pathname:"/",s=o?o.pathnameBase:"/",u=o&&o.route;if(Te){let f=u&&u.path||"";cr(l,!u||f.endsWith("*")||f.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${f}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
-
|
|
3
|
-
Please change the parent <Route path="${f}"> to <Route path="${f==="/"?"*":`${f}/*`}">.`)}let c=T(),d;if(t){let f=typeof t=="string"?Y(t):t;L(s==="/"||f.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${f.pathname}" was given in the \`location\` prop.`),d=f}else d=c;let m=d.pathname||"/",h=m;if(s!=="/"){let f=s.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(f.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(f=>Object.assign(f,{route:r.manifest[f.route.id]||f.route})):Ae(e,{pathname:h});Te&&(O(u||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),O(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let p=Ca(y&&y.map(f=>Object.assign({},f,{params:Object.assign({},i,f.params),pathname:H([s,a.encodeLocation?a.encodeLocation(f.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?s:H([s,a.encodeLocation?a.encodeLocation(f.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:f.pathnameBase])})),n,r);return t&&p?g.createElement(G.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},p):p}function ba(){let e=ur(),t=Xt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},i=null;return Te&&(console.error("Error handled by React Router default ErrorBoundary:",e),i=g.createElement(g.Fragment,null,g.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route."))),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:n},r):null,i)}var Ea=g.createElement(ba,null),lr=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=va(e.digest);r&&(e=r)}let t=e!==void 0?g.createElement(I.Provider,{value:this.props.routeContext},g.createElement(Ue.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(xa,{error:e},t):t}};lr.contextType=er;var ke=new WeakMap;function xa({children:e,error:t}){let{basename:r,navigator:a}=g.useContext(N);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=ga(t.digest);if(n){let o=ke.get(t);if(o)throw o;let i=qt(n.location,r),l=i.absoluteURL||i.to;if(Ie(n.location,l,$e(a),"allow-explicit"),fa(l))throw new Error("Invalid redirect location");if(Qt&&!ke.get(t))if(i.isExternal||n.reloadDocument)window.location.href=l;else{let s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw ke.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function Pa({routeContext:e,match:t,children:r}){let a=g.useContext(K);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(I.Provider,{value:e},r)}function Ca(e,t=[],r){let a=r?.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,o=a?.errors;if(o!=null){let c=n.findIndex(d=>d.route.id&&o?.[d.route.id]!==void 0);L(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),n=n.slice(0,Math.min(n.length,c+1))}let i=!1,l=-1;if(r&&a){i=a.renderFallback;for(let c=0;c<n.length;c++){let d=n[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:m,errors:h}=a,y=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||y){r.isStatic&&(i=!0),l>=0?n=n.slice(0,l+1):n=[n[0]];break}}}}let s=r?.onError,u=a&&s?(c,d)=>{s(c,{location:a.location,params:a.matches?.[0]?.params??{},pattern:na(a.matches),errorInfo:d})}:void 0;return n.reduceRight((c,d,m)=>{let h,y=!1,p=null,f=null;a&&(h=o&&d.route.id?o[d.route.id]:void 0,p=d.route.errorElement||Ea,i&&(l<0&&m===0?(cr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,f=null):l===m&&(y=!0,f=d.route.hydrateFallbackElement||null)));let w=t.concat(n.slice(0,m+1)),R=()=>{let b;return h?b=p:y?b=f:d.route.Component?b=g.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,g.createElement(Pa,{match:d,routeContext:{outlet:c,matches:w,isDataRoute:a!=null},children:b})};return a&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?g.createElement(lr,{location:a.location,revalidation:a.revalidation,component:p,error:h,children:R(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:u}):R()},null)}function je(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function La(e){let t=g.useContext(K);return L(t,je(e)),t}function ze(e){let t=g.useContext(te);return L(t,je(e)),t}function Da(e){let t=g.useContext(I);return L(t,je(e)),t}function Be(e){let t=Da(e),r=t.matches[t.matches.length-1];return L(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function ka(){return Be("useRouteId")}function sr(){let e=ze("useNavigation");return g.useMemo(()=>{let{matches:t,historyAction:r,...a}=e.navigation;return a},[e.navigation])}function We(){let{matches:e,loaderData:t}=ze("useMatches");return g.useMemo(()=>e.map(r=>jr(r,t)),[e,t])}function ur(){let e=g.useContext(Ue),t=ze("useRouteError"),r=Be("useRouteError");return e!==void 0?e:t.errors?.[r]}function Fa(){let{router:e}=La("useNavigate"),t=Be("useNavigate"),r=g.useRef(!1);return nr(()=>{r.current=!0}),g.useCallback(async(n,o={})=>{O(r.current,ar),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}var $t={};function cr(e,t,r){!t&&!$t[e]&&($t[e]=!0,O(!1,r))}var Ta="useOptimistic",jn=x[Ta];var zn=x.memo(Na);function Na({routes:e,manifest:t,future:r,state:a,isStatic:n,onError:o}){return ir(e,void 0,{manifest:t,state:a,isStatic:n,onError:o,future:r})}function Ma({basename:e,children:t,initialEntries:r,initialIndex:a,useTransitions:n}){let o=x.useRef();o.current==null&&(o.current=jt({initialEntries:r,initialIndex:a,v5Compat:!0}));let i=o.current,[l,s]=x.useState({action:i.action,location:i.location}),u=x.useCallback(c=>{n===!1?s(c):x.startTransition(()=>s(c))},[n]);return x.useLayoutEffect(()=>i.listen(u),[i,u]),x.createElement(Ee,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}function Oa({to:e,replace:t,state:r,relative:a}){L(X(),"<Navigate> may be used only in the context of a <Router> component.");let{static:n,navigator:o}=x.useContext(N);O(!n,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=x.useContext(I),{pathname:l}=T(),s=Q(),u=Se(e,_e(i),l,a==="path");Ie(typeof e=="string"?e:B(e),o.createHref(u),$e(o),"reject");let c=JSON.stringify(u);return x.useEffect(()=>{s(JSON.parse(c),{replace:t,state:r,relative:a})},[s,c,a,t,r]),null}function dr(e){L(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ee({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:o=!1,useTransitions:i}){L(!X(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=x.useMemo(()=>({basename:l,navigator:n,static:o,useTransitions:i,future:{}}),[l,n,o,i]);typeof r=="string"&&(r=Y(r));let{pathname:u="/",search:c="",hash:d="",state:m=null,key:h="default",mask:y}=r,p=x.useMemo(()=>{let f=U(u,l);return f==null?null:{location:{pathname:f,search:c,hash:d,state:m,key:h,mask:y},navigationType:a}},[l,u,c,d,m,h,a,y]);return O(p!=null,`<Router basename="${l}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:x.createElement(N.Provider,{value:s},x.createElement(G.Provider,{children:t,value:p}))}function Aa({children:e,location:t}){return or(we(e),t)}function we(e,t=[]){let r=[];return x.Children.forEach(e,(a,n)=>{if(!x.isValidElement(a))return;let o=[...t,n];if(a.type===x.Fragment){r.push.apply(r,we(a.props.children,o));return}L(a.type===dr,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),L(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=we(a.props.children,o)),r.push(i)}),r}var pe="get",ye="application/x-www-form-urlencoded";function xe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function _a(e){return xe(e)&&e.tagName.toLowerCase()==="button"}function $a(e){return xe(e)&&e.tagName.toLowerCase()==="form"}function Ia(e){return xe(e)&&e.tagName.toLowerCase()==="input"}function Ha(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ua(e,t){return e.button===0&&(!t||t==="_self")&&!Ha(e)}function Re(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let a=e[r];return t.concat(Array.isArray(a)?a.map(n=>[r,n]):[[r,a]])},[]))}function ja(e,t){let r=Re(e);return t&&t.forEach((a,n)=>{r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)})}),r}var he=null;function za(){if(he===null)try{new FormData(document.createElement("form"),0),he=!1}catch{he=!0}return he}var Ba=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fe(e){return e!=null&&!Ba.has(e)?(O(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ye}"`),null):e}function Wa(e,t){let r,a,n,o,i;if($a(e)){let l=e.getAttribute("action");a=l?U(l,t):null,r=e.getAttribute("method")||pe,n=Fe(e.getAttribute("enctype"))||ye,o=new FormData(e)}else if(_a(e)||Ia(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(a=s?U(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||pe,n=Fe(e.getAttribute("formenctype"))||Fe(l.getAttribute("enctype"))||ye,o=new FormData(l,e),!za()){let{name:u,type:c,value:d}=e;if(c==="image"){let m=u?`${u}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}else u&&o.append(u,d)}}else{if(xe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=pe,a=null,n=ye,i=e}return o&&n==="text/plain"&&(i=o,o=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:o,body:i}}var Bn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ya={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Va=/[&><\u2028\u2029]/g;function It(e){return e.replace(Va,t=>Ya[t])}function Ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}var Ja=Symbol("SingleFetchRedirect");function fr(e,t,r,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&U(n.pathname,t)==="/"?n.pathname=`${ee(t)}/_root.${a}`:n.pathname=`${ee(n.pathname)}.${a}`,n}async function Ka(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&import.meta.hot)throw r;return window.location.reload(),new Promise(()=>{})}}function Ga(e){return e!=null&&typeof e.page=="string"}function Xa(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Qa(e,t,r){let a=await Promise.all(e.map(async n=>{let o=t.routes[n.route.id];if(o){let i=await Ka(o,r);return i.links?i.links():[]}return[]}));return tn(a.flat(1).filter(Xa).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function Ht(e,t,r,a,n,o){let i=(s,u)=>r[u]?s.route.id!==r[u].route.id:!0,l=(s,u)=>r[u].pathname!==s.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==s.params["*"];return o==="assets"?t.filter((s,u)=>i(s,u)||l(s,u)):o==="data"?t.filter((s,u)=>{let c=a.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(i(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function qa(e,t,{includeHydrateFallback:r}={}){return Za(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function Za(e){return[...new Set(e)]}function en(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function tn(e,t){let r=new Set,a=new Set(t);return e.reduce((n,o)=>{if(t&&!Ga(o)&&o.as==="script"&&o.href&&a.has(o.href))return n;let l=JSON.stringify(en(o));return r.has(l)||(r.add(l),n.push({key:l,link:o})),n},[])}function Je(){let e=S.useContext(K);return Ve(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function on(){let e=S.useContext(te);return Ve(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ie=S.createContext(void 0);ie.displayName="FrameworkContext";function Pe(){let e=S.useContext(ie);return Ve(e,"You must render this element inside a <HydratedRouter> element"),e}function ln(e,t){let r=S.useContext(ie),[a,n]=S.useState(!1),[o,i]=S.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,m=S.useRef(null);S.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let p=w=>{w.forEach(R=>{i(R.isIntersecting)})},f=new IntersectionObserver(p,{threshold:.5});return m.current&&f.observe(m.current),()=>{f.disconnect()}}},[e]),S.useEffect(()=>{if(a){let p=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(p)}}},[a]);let h=()=>{n(!0)},y=()=>{n(!1),i(!1)};return r?e!=="intent"?[o,m,{}]:[o,m,{onFocus:ne(l,h),onBlur:ne(s,y),onMouseEnter:ne(u,h),onMouseLeave:ne(c,y),onTouchStart:ne(d,h)}]:[!1,m,{}]}function ne(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function mr({page:e,...t}){let r=ha(),{nonce:a}=Pe(),{router:n}=Je(),o=S.useMemo(()=>Ae(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?(t.nonce==null&&a&&(t={...t,nonce:a}),r?S.createElement(un,{page:e,matches:o,...t}):S.createElement(cn,{page:e,matches:o,...t})):null}function sn(e){let{manifest:t,routeModules:r}=Pe(),[a,n]=S.useState([]);return S.useEffect(()=>{let o=!1;return Qa(e,t,r).then(i=>{o||n(i)}),()=>{o=!0}},[e,t,r]),a}function un({page:e,matches:t,...r}){let a=T(),{future:n}=Pe(),{basename:o}=Je(),i=S.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let l=fr(e,o,n.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let c of t)typeof c.route.shouldRevalidate=="function"?s=!0:u.push(c.route.id);return s&&u.length>0&&l.searchParams.set("_routes",u.join(",")),[l.pathname+l.search]},[o,n.v8_trailingSlashAwareDataRequests,e,a,t]);return S.createElement(S.Fragment,null,i.map(l=>S.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...r})))}function cn({page:e,matches:t,...r}){let a=T(),{future:n,manifest:o,routeModules:i}=Pe(),{basename:l}=Je(),{loaderData:s,matches:u}=on(),c=S.useMemo(()=>Ht(e,t,u,o,a,"data"),[e,t,u,o,a]),d=S.useMemo(()=>Ht(e,t,u,o,a,"assets"),[e,t,u,o,a]),m=S.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let p=new Set,f=!1;if(t.forEach(R=>{let b=o.routes[R.route.id];!b||!b.hasLoader||(!c.some(P=>P.route.id===R.route.id)&&R.route.id in s&&i[R.route.id]?.shouldRevalidate||b.hasClientLoader?f=!0:p.add(R.route.id))}),p.size===0)return[];let w=fr(e,l,n.v8_trailingSlashAwareDataRequests,"data");return f&&p.size>0&&w.searchParams.set("_routes",t.filter(R=>p.has(R.route.id)).map(R=>R.route.id).join(",")),[w.pathname+w.search]},[l,n.v8_trailingSlashAwareDataRequests,s,a,o,c,t,e,i]),h=S.useMemo(()=>qa(d,o),[d,o]),y=sn(d);return S.createElement(S.Fragment,null,m.map(p=>S.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),h.map(p=>S.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),y.map(({key:p,link:f})=>S.createElement("link",{key:p,nonce:r.nonce,...f,crossOrigin:f.crossOrigin??r.crossOrigin})))}function dn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var fn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fn&&(window.__reactRouterVersion="7.18.3")}catch{}function hn({basename:e,children:t,useTransitions:r,window:a}){let n=v.useRef();n.current==null&&(n.current=zt({window:a,v5Compat:!0}));let o=n.current,[i,l]=v.useState({action:o.action,location:o.location}),s=v.useCallback(u=>{r===!1?l(u):v.startTransition(()=>l(u))},[r]);return v.useLayoutEffect(()=>o.listen(s),[o,s]),v.createElement(Ee,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,useTransitions:r})}function pr({basename:e,children:t,history:r,useTransitions:a}){let[n,o]=v.useState({action:r.action,location:r.location}),i=v.useCallback(l=>{a===!1?o(l):v.startTransition(()=>o(l))},[a]);return v.useLayoutEffect(()=>r.listen(i),[r,i]),v.createElement(Ee,{basename:e,children:t,location:n.location,navigationType:n.action,navigator:r,useTransitions:a})}pr.displayName="unstable_HistoryRouter";var le=v.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:o,replace:i,mask:l,state:s,target:u,to:c,preventScrollReset:d,viewTransition:m,defaultShouldRevalidate:h,...y},p){let{basename:f,navigator:w,useTransitions:R}=v.useContext(N),b=typeof c=="string"&&Oe.test(c),P=qt(c,f);c=P.to;let E=be(c,{relative:n}),F=T(),k=null;if(l){let W=Se(l,[],F.mask?F.mask.pathname:"/",!0);f!=="/"&&(W.pathname=W.pathname==="/"?f:H([f,W.pathname])),k=w.createHref(W)}let[$,J,z]=ln(a,y),ue=Rr(c,{replace:i,mask:l,state:s,target:u,preventScrollReset:d,relative:n,viewTransition:m,defaultShouldRevalidate:h,useTransitions:R});function q(W){t&&t(W),W.defaultPrevented||ue(W)}let ce=!(P.isExternal||o),et=v.createElement("a",{...y,...z,href:(ce?k:void 0)||P.absoluteURL||E,onClick:ce?q:t,ref:dn(p,J),target:u,"data-discover":!b&&r==="render"?"true":void 0});return $&&!b?v.createElement(v.Fragment,null,et,v.createElement(mr,{page:E})):et});le.displayName="Link";var yr=v.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:o,to:i,viewTransition:l,children:s,...u},c){let d=re(i,{relative:u.relative}),m=T(),h=v.useContext(te),{navigator:y,basename:p}=v.useContext(N),f=h!=null&&xr(d)&&l===!0,w=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,R=m.pathname,b=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(R=R.toLowerCase(),b=b?b.toLowerCase():null,w=w.toLowerCase()),b&&p&&(b=U(b,p)||b);let P=w!=="/"&&w.endsWith("/")?w.length-1:w.length,E=R===w||!n&&R.startsWith(w)&&R.charAt(P)==="/",F=b!=null&&(b===w||!n&&b.startsWith(w)&&b.charAt(w.length)==="/"),k={isActive:E,isPending:F,isTransitioning:f},$=E?t:void 0,J;typeof a=="function"?J=a(k):J=[a,E?"active":null,F?"pending":null,f?"transitioning":null].filter(Boolean).join(" ");let z=typeof o=="function"?o(k):o;return v.createElement(le,{...u,"aria-current":$,className:J,ref:c,style:z,to:i,viewTransition:l},typeof s=="function"?s(k):s)});yr.displayName="NavLink";var gr=v.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:o,method:i=pe,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:m,...h},y)=>{let{useTransitions:p}=v.useContext(N),f=Sr(),w=br(l,{relative:u}),R=i.toLowerCase()==="get"?"get":"post",b=typeof l=="string"&&Oe.test(l);return v.createElement("form",{ref:y,method:R,action:w,onSubmit:a?s:E=>{if(s&&s(E),E.defaultPrevented)return;E.preventDefault();let F=E.nativeEvent.submitter,k=F?.getAttribute("formmethod")||i,$=()=>f(F||E.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:n,state:o,relative:u,preventScrollReset:c,viewTransition:d,defaultShouldRevalidate:m});p&&r!==!1?v.startTransition(()=>$()):$()},...h,"data-discover":!b&&e==="render"?"true":void 0})});gr.displayName="Form";function vr({getKey:e,storageKey:t,...r}){let a=v.useContext(ie),{basename:n}=v.useContext(N),o=T(),i=We();Er({getKey:e,storageKey:t});let l=v.useMemo(()=>{if(!a||!e)return null;let u=Me(o,i,n,e);return u!==o.key?u:null},[]);if(!a||a.isSpaMode)return null;let s=((u,c)=>{if(!window.history.state||!window.history.state.key){let d=Math.random().toString(32).slice(2);window.history.replaceState({key:d},"")}try{let m=JSON.parse(sessionStorage.getItem(u)||"{}")[c||window.history.state.key];typeof m=="number"&&window.scrollTo(0,m)}catch(d){console.error(d),sessionStorage.removeItem(u)}}).toString();return r.nonce==null&&a?.nonce&&(r.nonce=a.nonce),v.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${s})(${It(JSON.stringify(t||Ne))}, ${It(JSON.stringify(l))})`}})}vr.displayName="ScrollRestoration";function wr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ke(e){let t=v.useContext(K);return L(t,wr(e)),t}function mn(e){let t=v.useContext(te);return L(t,wr(e)),t}function Rr(e,{target:t,replace:r,mask:a,state:n,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let c=Q(),d=T(),m=re(e,{relative:i});return v.useCallback(h=>{if(Ua(h,t)){h.preventDefault();let y=r!==void 0?r:B(d)===B(m),p=()=>c(e,{replace:y,mask:a,state:n,preventScrollReset:o,relative:i,viewTransition:l,defaultShouldRevalidate:s});u?v.startTransition(()=>p()):p()}},[d,c,m,r,a,n,t,e,o,i,l,s,u])}function Ge(e){O(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(Re(e)),r=v.useRef(!1),a=T(),n=v.useMemo(()=>ja(a.search,r.current?null:t.current),[a.search]),o=Q(),i=v.useCallback((l,s)=>{let u=Re(typeof l=="function"?l(new URLSearchParams(n)):l);r.current=!0,o("?"+u,s)},[o,n]);return[n,i]}var pn=0,yn=()=>`__${String(++pn)}__`;function Sr(){let{router:e}=Ke("useSubmit"),{basename:t}=v.useContext(N),r=ka(),a=e.fetch,n=e.navigate;return v.useCallback(async(o,i={})=>{let{action:l,method:s,encType:u,formData:c,body:d}=Wa(o,t);if(i.navigate===!1){let m=i.fetcherKey||yn();await a(m,r,i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await n(i.action||l,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:d,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,t,r])}function br(e,{relative:t}={}){let{basename:r}=v.useContext(N),a=v.useContext(I);L(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),o={...re(e||".",{relative:t})},i=T();if(e==null){o.search=i.search;let l=new URLSearchParams(o.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(d=>d).forEach(d=>l.append("index",d));let c=l.toString();o.search=c?`?${c}`:""}}return(!e||e===".")&&n.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:H([r,o.pathname])),B(o)}var Ne="react-router-scroll-positions",me={};function Me(e,t,r,a){let n=null;return a&&(r!=="/"?n=a({...e,pathname:U(e.pathname,r)||e.pathname},t):n=a(e,t)),n==null&&(n=e.key),n}function Er({getKey:e,storageKey:t}={}){let{router:r}=Ke("useScrollRestoration"),{restoreScrollPosition:a,preventScrollReset:n}=mn("useScrollRestoration"),{basename:o}=v.useContext(N),i=T(),l=We(),s=sr();v.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),gn(v.useCallback(()=>{if(s.state==="idle"){let u=Me(i,l,o,e);me[u]=window.scrollY}try{sessionStorage.setItem(t||Ne,JSON.stringify(me))}catch(u){O(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${u}).`)}window.history.scrollRestoration="auto"},[s.state,e,o,i,l,t])),typeof document<"u"&&(v.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(t||Ne);u&&(me=JSON.parse(u))}catch{}},[t]),v.useLayoutEffect(()=>{let u=r?.enableScrollRestoration(me,()=>window.scrollY,e?(c,d)=>Me(c,d,o,e):void 0);return()=>u&&u()},[r,o,e]),v.useLayoutEffect(()=>{if(a!==!1){if(typeof a=="number"){window.scrollTo(0,a);return}try{if(i.hash){let u=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(u){u.scrollIntoView();return}}}catch{O(!1,`"${i.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}n!==!0&&window.scrollTo(0,0)}},[i,a,n]))}function gn(e,t){let{capture:r}=t||{};v.useEffect(()=>{let a=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,a),()=>{window.removeEventListener("pagehide",e,a)}},[e,r])}function xr(e,{relative:t}={}){let r=v.useContext(He);L(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ke("useViewTransitionState"),n=re(e,{relative:t});if(!r.isTransitioning)return!1;let o=U(r.currentLocation.pathname,a)||r.currentLocation.pathname,i=U(r.nextLocation.pathname,a)||r.nextLocation.pathname;return oe(n.pathname,i)!=null||oe(n.pathname,o)!=null}var Cr=D(M(),1),Lr=D(Mr(),1);var se=D(Z(),1);function Dr({context:e,own:t}){return ae(e.store),ht()?(0,se.jsx)(vn,{context:e,...t?{own:t}:{}}):null}function vn({context:e,own:t}){let r=ft()?.live??e.store;if(ae(r),!Ct(r.batches().length))return null;let n=(0,se.jsx)(Cr.Suspense,{fallback:null,children:(0,se.jsx)(Lt,{remembers:!1})});return t?(0,Lr.createPortal)(n,t):(0,se.jsx)("div",{className:"graview-bar-own",children:n})}var A=D(M(),1);var V=D(M(),1),wn=(0,V.createContext)(null);function si(){let e=new Map,t=new Set,r=()=>{for(let a of t)a()};return{count:a=>e.get(a)??0,place(a){return e.set(a,(e.get(a)??0)+1),r(),()=>{e.set(a,(e.get(a)??1)-1),r()}},subscribe(a){return t.add(a),()=>t.delete(a)}}}function kr(e){let t=(0,V.useContext)(wn);(0,V.useLayoutEffect)(()=>t?.place(e),[t,e])}function ui(e,t){return(0,V.useSyncExternalStore)(e.subscribe,()=>e.count(t)>0,()=>!1)}var Fr=D(M(),1),j=D(Z(),1),Xe="var(--graview-text-small)",Qe="var(--graview-text-body)",gi="var(--graview-font-display, var(--graview-font-body, system-ui))",qe={maxWidth:760,margin:"0 auto",padding:"40px var(--graview-page-gutter, 20px) max(96px, calc(var(--graview-foot-room, 0px) + env(safe-area-inset-bottom, 0px)))",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:40},Ze=1160,vi={...qe,maxWidth:Ze},Tr={margin:0,fontSize:"var(--graview-text-title)",lineHeight:1.2,letterSpacing:"-0.012em",overflowWrap:"anywhere",textWrap:"balance"},wi={margin:0,fontSize:"var(--graview-text-heading)",lineHeight:1.3,textWrap:"balance"},Ri={margin:0,fontSize:Xe,letterSpacing:"0.08em",textTransform:"uppercase",color:"var(--graview-ink-muted)"},Si={margin:0,fontSize:Qe,color:"var(--graview-ink-muted)",maxWidth:"60ch"},Nr={color:"var(--graview-ink-muted)",fontSize:Xe},bi={borderTop:"1px solid var(--graview-edge)",paddingTop:24},Rn={color:"var(--graview-accent)",textDecorationColor:"color-mix(in srgb, currentColor 50%, transparent)",textDecorationThickness:1,textUnderlineOffset:"0.2em",display:"inline-flex",alignItems:"center",columnGap:"0.3em",minHeight:24},Ei={...Rn,textDecoration:"none"},xi={color:"inherit",textDecoration:"none",display:"inline-flex",alignItems:"center",minHeight:24},Pi=`.graview-list{container-type:inline-size}
|
|
4
|
-
.graview-rows{display:grid;grid-template-columns:minmax(0,1fr);column-gap:1.5rem;margin:0;padding:0;list-style:none;border-top:1px solid var(--graview-edge)}
|
|
5
|
-
.graview-row{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:baseline;align-content:center;position:relative;box-sizing:border-box;min-height:2.75rem;padding:.5rem 0;border-bottom:1px solid var(--graview-edge);overflow-wrap:anywhere}
|
|
6
|
-
.graview-row-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:24px;color:inherit;text-decoration:none;font-size:var(--graview-text-body);font-weight:500;line-height:1.3;text-wrap:pretty;hyphens:manual}
|
|
7
|
-
.graview-row-title::after{content:"";position:absolute;inset:0}
|
|
8
|
-
.graview-row-title:focus-visible{outline:0}
|
|
9
|
-
.graview-row-title:focus-visible::after{outline:2px solid var(--graview-accent);outline-offset:-2px;border-radius:var(--graview-radius-sm)}
|
|
10
|
-
.graview-row:hover .graview-row-title{text-decoration:underline 1px color-mix(in srgb,currentColor 50%,transparent);text-underline-offset:.2em}
|
|
11
|
-
.graview-row:active .graview-row-title{color:var(--graview-accent)}
|
|
12
|
-
.graview-row :is(a,button):not(.graview-row-title){position:relative}
|
|
13
|
-
.graview-row-glance,.graview-row>[data-testid=search-why]{font-size:var(--graview-text-small);line-height:1.5;color:var(--graview-ink-muted)}
|
|
14
|
-
.graview-row>[data-testid=search-why]{grid-column:1/-1}
|
|
15
|
-
.graview-row-glance{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
|
|
16
|
-
.graview-chip{display:inline-block;padding:0 .5em;border-radius:var(--graview-radius-sm);background:color-mix(in srgb,var(--graview-ink) 7%,transparent);color:var(--graview-ink);font-weight:500;line-height:1.6;white-space:nowrap}
|
|
17
|
-
.graview-group-head{display:flex;gap:.5em;align-items:baseline;margin:0;padding:.375rem 0;font-family:var(--graview-font-body);font-size:var(--graview-text-small);font-weight:var(--graview-weight-label);line-height:1.3;letter-spacing:.02em;scroll-margin-top:4rem}
|
|
18
|
-
.graview-group-head>span{color:var(--graview-ink-muted);font-weight:var(--graview-weight-body)}
|
|
19
|
-
.graview-group-toggle{display:inline-flex;gap:.5em;align-items:center;min-height:2.75rem;margin:-.375rem 0;padding:0 .5rem 0 0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:start;cursor:pointer;border-radius:var(--graview-radius-sm)}
|
|
20
|
-
.graview-group-toggle:focus-visible{outline:2px solid var(--graview-accent);outline-offset:2px}
|
|
21
|
-
.graview-group-toggle>span{color:var(--graview-ink-muted);font-weight:var(--graview-weight-body)}
|
|
22
|
-
@container (min-width:36rem){.graview-rows{grid-template-columns:minmax(0,1fr) fit-content(40%)}.graview-group-head:has(+.graview-rows){position:sticky;top:0;z-index:${nt.raised};background:var(--graview-ground)}}`,Ci={font:"inherit",fontSize:Xe,padding:"8px 14px",borderRadius:"var(--graview-radius-sm, 8px)",border:"1px solid var(--graview-edge-bright)",background:"var(--graview-panel)",color:"var(--graview-ink)",cursor:"pointer"};function Li({kind:e,brand:t,size:r=10,schema:a}){return(0,j.jsx)(yt,{kind:e,...a?{schema:a}:{},...t?{brand:t}:{},size:Math.round(r*1.6)})}function Di(e,t,r){return e.author.kind==="human"&&(e.author.id===void 0||t?.id===void 0||e.author.id===t.id)?"you":r?tt(e.author,r):e.author.kind==="agent"?e.author.id??"an agent":e.author.id??e.author.kind}function ki(e,t,r){return Sn(e,t,r).map(a=>a.text).join(" \xB7 ")}function Sn(e,t,r,a=()=>!1){return vt(e,t,{limit:3,said:[r],glance:!0}).map(n=>n.long?{text:gt(n.stored,{markdown:n.markdown,most:100})}:a(n.key)?{text:n.alone,choice:n.key}:{text:n.alone})}function Fi({runs:e}){return(0,j.jsx)(j.Fragment,{children:e.map((t,r)=>{let a=r===0?"":t.choice===void 0&&e[r-1].choice===void 0?" \xB7 ":" ";return(0,j.jsx)(Fr.Fragment,{children:t.choice!==void 0?(0,j.jsxs)(j.Fragment,{children:[a,(0,j.jsx)("span",{className:"graview-chip","data-graview-field":t.choice,children:t.text})]}):`${a}${t.text}`},r)})})}var Ti=(e,t)=>de(e.schema,t),bn=(e,t)=>{let r=e.kindsKeptFrom(t);return e.schema.kinds.filter(a=>!e.modules.disabledKinds.has(a)&&!r.has(a))},En=e=>ct(bn(e.store,e.principal),e.views?.arrangement?.()?.order),Ni=e=>{let t=new Set(e.views?.arrangement?.()?.hide??[]);return En(e).filter(r=>!t.has(r))},Mi=e=>e.charAt(0).toUpperCase()+e.slice(1);var C=D(Z(),1);function Vi({context:e,children:t}){let{store:r,brand:a}=e;ae(r);let n=dt();return mt(e.embedded?void 0:at(e.assetsAt??n,rt(a))),pt(e.embedded?void 0:a),(0,C.jsxs)("div",{style:{...e.embedded?{}:{minHeight:"100vh"},display:"flex",flexDirection:"column",background:"var(--graview-ground)",color:"var(--graview-ink)",fontFamily:"var(--graview-font-body, system-ui)",fontSize:Qe,lineHeight:1.5},children:[e.embedded?null:(0,C.jsx)(Pn,{context:e}),(0,C.jsx)("div",{style:{flex:1},children:t}),e.remembers?(0,C.jsx)("footer",{style:{borderTop:"1px solid var(--graview-edge)",padding:"14px 20px max(20px, calc(var(--graview-foot-room, 0px) + env(safe-area-inset-bottom, 0px)))",...Nr},children:(0,C.jsx)("div",{style:{maxWidth:Ze,margin:"0 auto",display:"flex",gap:14,flexWrap:"wrap",alignItems:"center",justifyContent:"flex-end"},children:(0,C.jsxs)("span",{"data-testid":"remembered",children:["Remembered in this browser \xB7 ",(0,C.jsx)(kt,{})]})})}):null]})}var xn=(0,A.createContext)(null);function Pn({context:e}){let{store:t,brand:r,sceneHref:a="/",invariantContext:n}=e,o=T(),i=Q(),l=be("/").replace(/\/$/,""),s=(0,A.useContext)(xn),u=s?.places===!1?[]:wt({store:t,principal:e.principal,views:e.views}),c=e.views?.arrangement?.(),d=`${o.pathname}${o.search}`,m=t.violations(n),h=m.length,y=xt(m,"All rules hold"),p=o.pathname.split("/").filter(Boolean),f=p.length===2&&fe(t.schema,p[0])!==void 0&&t.graph.getNode(decodeURIComponent(p[1]))!==void 0;return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(bt,{brand:r,name:r?.name??"Graview",description:r?.subtitle,home:{href:`${l}/`,go:()=>i("/"),current:o.pathname==="/"},faces:{scene:{label:st(c),current:!1,go:()=>window.location.assign(a)},pages:{label:ut(c),current:!0,go:()=>{}}},places:u,current:Rt(u,d),reach:{href:w=>`${l}${w}`,go:w=>i(w.path)},...s?{onFind:s.onFind,find:s.find}:{findBox:(0,C.jsx)(kn,{context:e})},skips:(0,C.jsx)(Dt,{to:[{label:"Skip to the content",testid:"content",go:()=>{let w=document.querySelector("[data-graview-skip-target]");Ce(w?.querySelector('[data-graview-choose-box][tabindex="0"]')??w??document.querySelector("main"))}},...f?[{label:"Skip to what can be done",testid:"acts",go:()=>void Ce(document.querySelector("main [data-affordance]:not([disabled]):not([tabindex='-1'])")??document.querySelector("main [data-affordance]:not([disabled])")??document.querySelector("main"))}]:[]]}),tools:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(le,{to:"/problems","data-testid":"standing-link","aria-label":y,title:y,style:{...St,position:"relative",textDecoration:"none",color:h===0?"var(--graview-ink-muted)":"var(--graview-warn)"},children:[(0,C.jsx)(Pt,{tone:h===0?"var(--graview-good)":"var(--graview-warn)"}),h>0?(0,C.jsx)("span",{className:"graview-bar-badge","data-tone":"warn","data-testid":"standing-count","aria-hidden":"true",children:h>99?"99+":h}):null]}),s?null:(0,C.jsx)(Dr,{context:e}),e.views?(0,C.jsx)(Et,{...e.signature?{signature:!0}:{}}):null]})})})}function Ji({context:e,style:t,bleedTop:r,children:a,...n}){let o=e.embedded||e.framed?"section":"main";return(0,C.jsxs)(o,{style:{...qe,...t},"data-graview-page-main":"",...r?{"data-graview-bleed-top":""}:{},...n,children:[r?(0,C.jsx)("style",{children:Cn}):null,a]})}var Cn="@media (max-width:680px){[data-graview-bleed-top]:not(:has([data-graview-bleed]>[data-worker-view-fallback])){padding-top:0 !important}}";function Ki({when:e,children:t}){return e?(0,C.jsxs)("div",{"data-graview-bleed":"",style:{display:"grid",minWidth:0},children:[(0,C.jsx)("style",{children:Ln}),t]}):(0,C.jsx)(C.Fragment,{children:t})}var Ln="@media (max-width:680px){[data-graview-bleed]:not(:has(>[data-worker-view-fallback])){margin-inline:min(0px,calc(env(safe-area-inset-left,0px) - var(--graview-page-gutter,20px))) min(0px,calc(env(safe-area-inset-right,0px) - var(--graview-page-gutter,20px)))}}",Dn={position:"absolute",width:1,height:1,margin:-1,overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function Gi({context:e,unseen:t,children:r,...a}){let n=`h${e.titleLevel??(e.framed&&!e.barAbove?1:2)}`;return(0,C.jsx)(n,{style:t?Dn:Tr,"data-graview-page-title":"",...a,children:r})}function kn({context:e,narrowsLists:t=!0,className:r,size:a}){kr("find");let n=T(),o=Q(),[i,l]=Ge(),s=n.pathname.split("/").filter(Boolean),u=t&&s.length===1&&fe(e.store.schema,s[0])!==void 0,c=n.pathname==="/search",d=u||c?i.get("q")??"":"",m=u?`Narrow ${de(e.store.schema,fe(e.store.schema,s[0])).toLowerCase()}\u2026`:"",[h,y]=(0,A.useState)(!0);(0,A.useLayoutEffect)(()=>{let P=w.current;if(!P||!m||typeof ResizeObserver>"u")return;let E=()=>{let k=getComputedStyle(P),$=document.createElement("canvas").getContext("2d");$&&($.font=`${k.fontWeight} ${k.fontSize} ${k.fontFamily}`,y($.measureText(m).width<=P.clientWidth-parseFloat(k.paddingLeft)-parseFloat(k.paddingRight)))};E();let F=new ResizeObserver(E);return F.observe(P),()=>F.disconnect()},[m]);let[p,f]=(0,A.useState)(d),w=(0,A.useRef)(null);(0,A.useEffect)(()=>{let P=E=>{if(E.defaultPrevented||E.altKey)return;let F=!E.shiftKey&&(E.metaKey||E.ctrlKey)&&E.key.toLowerCase()==="k",k=document.activeElement,$=k instanceof HTMLInputElement||k instanceof HTMLTextAreaElement||k instanceof HTMLSelectElement||k instanceof HTMLElement&&k.isContentEditable,J=E.key==="/"&&!E.metaKey&&!E.ctrlKey&&!$;if(!F&&!J)return;let z=w.current,ue=z?.closest("[data-graview-embed]"),q=E.target,ce=q===document.body||q===document.documentElement;!z||!(ce||!ue||q instanceof Node&&ue.contains(q))||(E.preventDefault(),z.closest("[data-graview-app-bar]")?.querySelector('[data-testid="app-find-open"]')?.click(),requestAnimationFrame(()=>{z.focus(),z.select()}))};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[]);let R=(0,A.useRef)(new Set([d]));(0,A.useEffect)(()=>{R.current.has(d)||(R.current=new Set([d]),f(d))},[d]);let b=P=>{if(f(P),R.current.add(P),u){let F=new URLSearchParams(i);P.trim()?F.set("q",P):F.delete("q"),l(F,{replace:!0});return}let E=P.trim()?`/search?${new URLSearchParams({q:P}).toString()}`:"/search";o(E,{replace:c})};return(0,C.jsxs)("form",{role:"search","aria-label":u?"Narrow this list":"Find anything",className:Tt("graview-find",r),...Ft(a),onSubmit:P=>{P.preventDefault(),u&&p.trim()&&o(`/search?${new URLSearchParams({q:p}).toString()}`)},children:[(0,C.jsx)("input",{ref:w,type:"search","data-testid":"nav-find",value:p,onChange:P=>b(P.target.value),placeholder:u?h?m:"Narrow\u2026":"Find\u2026","aria-keyshortcuts":"/ Meta+K Control+K","aria-label":u?"Narrow this list":"Find anything",className:"graview-find-box"}),(0,C.jsx)("style",{children:Fn})]})}var Fn=`:where(.graview-find){display:flex;min-width:0;flex:1 1 auto}
|
|
23
|
-
:where(.graview-find[data-size=md]){--graview-control-height:36px}
|
|
24
|
-
:where(.graview-find-box){box-sizing:border-box;width:100%;min-width:0;height:var(--graview-control-height,30px);padding:0 var(--graview-bar-find-end,10px) 0 10px;font:inherit;font-size:.875rem;color:var(--graview-ink);background:var(--graview-ground);border:1px solid var(--graview-edge);border-radius:8px}`;export{Or as a,fe as b,Nn as c,Mn as d,be as e,T as f,wa as g,Q as h,Sa as i,Ma as j,Oa as k,dr as l,Aa as m,hn as n,le as o,Ge as p,Xe as q,gi as r,vi as s,wi as t,Ri as u,Si as v,Nr as w,bi as x,Rn as y,Ei as z,xi as A,Pi as B,Ci as C,Li as D,Di as E,ki as F,Sn as G,Fi as H,Ti as I,bn as J,En as K,Ni as L,Mi as M,Dr as N,wn as O,si as P,ui as Q,Vi as R,xn as S,Ji as T,Ki as U,Gi as V,kn as W};
|
|
25
|
-
/*! Bundled license information:
|
|
26
|
-
|
|
27
|
-
react-router/dist/development/chunk-BV7QT456.mjs:
|
|
28
|
-
(**
|
|
29
|
-
* react-router v7.18.3
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Remix Software Inc.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
35
|
-
*
|
|
36
|
-
* @license MIT
|
|
37
|
-
*)
|
|
38
|
-
|
|
39
|
-
react-router/dist/development/index.mjs:
|
|
40
|
-
(**
|
|
41
|
-
* react-router v7.18.3
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*)
|
|
50
|
-
*/
|