graview 0.1.65 → 0.1.66
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/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/preview/{chunk.6RZHKQP3.js → chunk.2KFZHUAC.js} +1 -1
- package/dist/preview/chunk.2MHNPBHC.js +1 -0
- package/dist/preview/{chunk.2PK335JQ.js → chunk.2VR7YEJ6.js} +1 -1
- package/dist/preview/chunk.32SHA3EY.js +1 -0
- package/dist/preview/chunk.3L4JMM3P.js +1 -0
- package/dist/preview/chunk.3PBTN7RO.js +1 -0
- package/dist/preview/chunk.45JP6VGJ.js +5 -0
- package/dist/preview/{chunk.INTJD5WG.js → chunk.4AC2QM7T.js} +1 -1
- package/dist/preview/chunk.4FCFNAA4.js +1 -0
- package/dist/preview/chunk.4FDVINRJ.js +1 -0
- package/dist/preview/chunk.4JULYKGD.js +1 -0
- package/dist/preview/chunk.4U4D7WOI.js +1 -0
- package/dist/preview/chunk.4WGYUYWU.js +2 -0
- package/dist/preview/chunk.5B5SRTUK.js +1 -0
- package/dist/preview/chunk.5BX66FBP.js +1 -0
- package/dist/preview/chunk.5CXIEYHY.js +2 -0
- package/dist/preview/chunk.5EMIWORS.js +1 -0
- package/dist/preview/{chunk.KIQXTQDU.js → chunk.5FNFRVTL.js} +1 -1
- package/dist/preview/chunk.5LJVOLKR.js +1 -0
- package/dist/preview/{chunk.GPCKOYSF.js → chunk.6EHHMWPP.js} +1 -1
- package/dist/preview/chunk.6EVMXBNB.js +1 -0
- package/dist/preview/chunk.6FQW6FNL.js +1 -0
- package/dist/preview/chunk.6HY6ZGEE.js +5 -0
- package/dist/preview/{chunk.DICM56FT.js → chunk.6LXIEM6B.js} +1 -1
- package/dist/preview/chunk.6MQ5NT7S.js +1 -0
- package/dist/preview/chunk.6P6NGZ6D.js +1 -0
- package/dist/preview/{chunk.F2TWV4TX.js → chunk.6TLXFMX2.js} +1 -1
- package/dist/preview/chunk.72XP2ARZ.js +1 -0
- package/dist/preview/{chunk.QSDBF7VL.js → chunk.72ZCLEQC.js} +1 -1
- package/dist/preview/{chunk.LY5CY7GE.js → chunk.7BIPZTJB.js} +1 -1
- package/dist/preview/chunk.7VADSNPZ.js +1 -0
- package/dist/preview/{chunk.IR4OW67N.js → chunk.7VP6Y6D2.js} +1 -1
- package/dist/preview/{chunk.C437FVD7.js → chunk.7ZKBYXUM.js} +1 -1
- package/dist/preview/chunk.AK7NGFEX.js +6 -0
- package/dist/preview/{chunk.FHHVW2WB.js → chunk.ANS2IEEV.js} +1 -1
- package/dist/preview/{chunk.LKK5YF2H.js → chunk.B6JRTW3A.js} +1 -1
- package/dist/preview/chunk.BCQWAFGD.js +1 -0
- package/dist/preview/{chunk.SOMRYDDH.js → chunk.BFAFCVL4.js} +1 -1
- package/dist/preview/chunk.BGAC3B7X.js +1 -0
- package/dist/preview/chunk.BMENTGDC.js +21 -0
- package/dist/preview/chunk.BOCVLC7X.js +1 -0
- package/dist/preview/{chunk.IMKD6QQG.js → chunk.BUVTUAB5.js} +1 -1
- package/dist/preview/chunk.BXBEGMPO.js +22 -0
- package/dist/preview/{chunk.ZYNC73DJ.js → chunk.BZ7QWHAE.js} +1 -1
- package/dist/preview/{chunk.AB4RZSYW.js → chunk.C2C3AXGI.js} +16 -16
- package/dist/preview/chunk.CBXS23YH.js +23 -0
- package/dist/preview/chunk.CEQQIW7Z.js +1 -0
- package/dist/preview/chunk.CEVGND3Y.js +6 -0
- package/dist/preview/{chunk.ZDUTEM3Z.js → chunk.CTASTRQN.js} +1 -1
- package/dist/preview/chunk.CU2WCYMK.js +1 -0
- package/dist/preview/{chunk.SPCAMQJE.js → chunk.CVPMSPCH.js} +1 -1
- package/dist/preview/chunk.DEHIR4EG.js +1 -0
- package/dist/preview/chunk.DPJNGFEZ.js +4 -0
- package/dist/preview/chunk.DQFHIJFN.js +1 -0
- package/dist/preview/chunk.DSYP43NN.js +1 -0
- package/dist/preview/chunk.DTCAUPLC.js +1 -0
- package/dist/preview/{chunk.7Q43N5JS.js → chunk.DZFM6GSY.js} +1 -1
- package/dist/preview/chunk.E3UL4MCD.js +35 -0
- package/dist/preview/chunk.E4VRRWFP.js +1 -0
- package/dist/preview/{chunk.6YDC6IDA.js → chunk.E7EWNWAN.js} +1 -1
- package/dist/preview/chunk.EG7OOJH5.js +1 -0
- package/dist/preview/{chunk.J6KNEI5R.js → chunk.EMFOMSMI.js} +1 -1
- package/dist/preview/{chunk.5THLLSS4.js → chunk.EQ4OODGO.js} +1 -1
- package/dist/preview/{chunk.P6TZGR3A.js → chunk.ES63XSIM.js} +1 -1
- package/dist/preview/chunk.EUAO4QNV.js +1 -0
- package/dist/preview/{chunk.O2W5JTWA.js → chunk.EXYCN4WI.js} +1 -1
- package/dist/preview/chunk.F4VB6Q2W.js +1 -0
- package/dist/preview/chunk.F7672TKJ.js +1 -0
- package/dist/preview/chunk.FA42HCPW.js +1 -0
- package/dist/preview/{chunk.L6FGKJ5H.js → chunk.FBILPNGH.js} +1 -1
- package/dist/preview/chunk.FBJAQPZ6.js +1 -0
- package/dist/preview/{chunk.FDWRH5P2.js → chunk.FDZE5LTJ.js} +2 -2
- package/dist/preview/{chunk.FOSY7MZF.js → chunk.FFOD5B4B.js} +1 -1
- package/dist/preview/{chunk.XSWR5LI4.js → chunk.FIFUMX5X.js} +1 -1
- package/dist/preview/{chunk.RFVOXX3P.js → chunk.FK722SHI.js} +1 -1
- package/dist/preview/chunk.FV72U33M.js +1 -0
- package/dist/preview/chunk.FXT5CN32.js +19 -0
- package/dist/preview/chunk.GAFMWOME.js +1 -0
- package/dist/preview/{chunk.PTQPS2FJ.js → chunk.GEFXU4VO.js} +1 -1
- package/dist/preview/chunk.GG47EIKO.js +1 -0
- package/dist/preview/{chunk.5M34BJIQ.js → chunk.GME63ZHI.js} +1 -1
- package/dist/preview/{chunk.IJ3YDBWI.js → chunk.GNEOSHQ6.js} +1 -1
- package/dist/preview/{chunk.N2FNHRI2.js → chunk.HOCD7KIR.js} +1 -1
- package/dist/preview/chunk.HSSIMVVM.js +1 -0
- package/dist/preview/{chunk.S2DOVJRL.js → chunk.I2737CPF.js} +1 -1
- package/dist/preview/chunk.I4Z7HVRT.js +1 -0
- package/dist/preview/{chunk.F5VEHAP2.js → chunk.IAEHUSQQ.js} +1 -1
- package/dist/preview/{chunk.7E4CSXBT.js → chunk.IGK7EZCX.js} +1 -1
- package/dist/preview/chunk.INHS3KTK.js +1 -0
- package/dist/preview/{chunk.LGRQDILY.js → chunk.IWYMKGZZ.js} +1 -1
- package/dist/preview/{chunk.3RFAUIGT.js → chunk.J2MM6BUW.js} +1 -1
- package/dist/preview/{chunk.7IGD2K4M.js → chunk.J7W2OFHY.js} +1 -1
- package/dist/preview/chunk.JMXXA4YG.js +1 -0
- package/dist/preview/chunk.JMYUQNXN.js +6 -0
- package/dist/preview/chunk.JO2X52D4.js +1 -0
- package/dist/preview/{chunk.2QQ37RCZ.js → chunk.JXNVNFV4.js} +1 -1
- package/dist/preview/chunk.K6DFXDPZ.js +1 -0
- package/dist/preview/{chunk.NSO6RUKW.js → chunk.KACSYPEV.js} +1 -1
- package/dist/preview/{chunk.ZMWAZACO.js → chunk.KBPJ7X7W.js} +1 -1
- package/dist/preview/chunk.KF27ME27.js +1 -0
- package/dist/preview/{chunk.35E75QJ7.js → chunk.KSIEO5W7.js} +1 -1
- package/dist/preview/chunk.L25DCT5S.js +1 -0
- package/dist/preview/{chunk.3KUYB5ZT.js → chunk.LETAQTLJ.js} +1 -1
- package/dist/preview/{chunk.44ZHHPPJ.js → chunk.LGRVEHXT.js} +2 -2
- package/dist/preview/chunk.LINSO5PN.js +1 -0
- package/dist/preview/{chunk.LVD3V77M.js → chunk.LLIURXFP.js} +1 -1
- package/dist/preview/{chunk.3IZEZPJB.js → chunk.LSN2IPAI.js} +1 -1
- package/dist/preview/chunk.M2JCFNHJ.js +1 -0
- package/dist/preview/{chunk.B3WVCSW5.js → chunk.M5FP4Y4Q.js} +1 -1
- package/dist/preview/{chunk.CPYBJNHP.js → chunk.M6ZN2KUO.js} +1 -1
- package/dist/preview/chunk.MODLZJD4.js +25 -0
- package/dist/preview/chunk.MWGZKZD6.js +1 -0
- package/dist/preview/{chunk.64FCAUAJ.js → chunk.NJRLJEJY.js} +1 -1
- package/dist/preview/chunk.NYLKG25K.js +4 -0
- package/dist/preview/{chunk.CD6YWH6T.js → chunk.OEIWIZCP.js} +1 -1
- package/dist/preview/{chunk.ZJFXM3LE.js → chunk.OJY7VJ7D.js} +1 -1
- package/dist/preview/chunk.OMT4QUZY.js +23 -0
- package/dist/preview/{chunk.R2TSTDS3.js → chunk.ONYBW45K.js} +1 -1
- package/dist/preview/chunk.OO2OP76C.js +1 -0
- package/dist/preview/{chunk.G3Q5IMM3.js → chunk.OOSIKCOS.js} +1 -1
- package/dist/preview/{chunk.7VQ3C7F4.js → chunk.OPTYYIGC.js} +1 -1
- package/dist/preview/{chunk.TUCSUZNO.js → chunk.OTV5XTBB.js} +1 -1
- package/dist/preview/{chunk.74B6KQF4.js → chunk.OWFS2YDQ.js} +1 -1
- package/dist/preview/{chunk.CXDGE5ZS.js → chunk.OWO3OV62.js} +1 -1
- package/dist/preview/{chunk.BUQKRXI6.js → chunk.PAGEGBUD.js} +1 -1
- package/dist/preview/{chunk.CGQ6KXVK.js → chunk.PDDIQ6PK.js} +1 -1
- package/dist/preview/{chunk.T3KNLP7C.js → chunk.PFQBCHQA.js} +1 -1
- package/dist/preview/{chunk.MH46V556.js → chunk.PPSYUOH7.js} +1 -1
- package/dist/preview/{chunk.HJS3LTSR.js → chunk.PSQYDCVM.js} +1 -1
- package/dist/preview/chunk.QDVGHI7R.js +1 -0
- package/dist/preview/chunk.QFHWG4LN.js +1 -0
- package/dist/preview/chunk.QGIM2WAY.js +1 -0
- package/dist/preview/chunk.QHMHUL6B.js +3 -0
- package/dist/preview/chunk.QOS5T46W.js +1 -0
- package/dist/preview/{chunk.KHAVEYT7.js → chunk.QPF4KSAW.js} +1 -1
- package/dist/preview/chunk.QQAZQDRW.js +1 -0
- package/dist/preview/chunk.QU52E5RG.js +3 -0
- package/dist/preview/{chunk.CS72MISN.js → chunk.QWNSHISU.js} +1 -1
- package/dist/preview/chunk.RSMCTI2N.js +1 -0
- package/dist/preview/chunk.RWIN3POV.js +1 -0
- package/dist/preview/chunk.SSF47GUY.js +1 -0
- package/dist/preview/chunk.T6DPWW2K.js +3 -0
- package/dist/preview/chunk.TA36WBHK.js +1 -0
- package/dist/preview/chunk.TGEL6EUA.js +1 -0
- package/dist/preview/chunk.TTGKX7LT.js +1 -0
- package/dist/preview/chunk.TXHYGFIZ.js +1 -0
- package/dist/preview/chunk.U3ED7W2U.js +1 -0
- package/dist/preview/chunk.U3HERHAI.js +88 -0
- package/dist/preview/chunk.U6QXLNHF.js +15 -0
- package/dist/preview/{chunk.FXG5AJF6.js → chunk.U6TEW6YD.js} +1 -1
- package/dist/preview/chunk.UJPX3BUV.js +1 -0
- package/dist/preview/chunk.V5I4GZEY.js +1 -0
- package/dist/preview/{chunk.XTTESA7X.js → chunk.V7W5AQKL.js} +1 -1
- package/dist/preview/{chunk.IFBGYFS4.js → chunk.VGHO3VCB.js} +1 -1
- package/dist/preview/{chunk.2TZSLREX.js → chunk.VKZIEZ5C.js} +2 -2
- package/dist/preview/chunk.VT2YGDK2.js +1 -0
- package/dist/preview/{chunk.ZTN7BS5O.js → chunk.W4YDPHCQ.js} +1 -1
- package/dist/preview/{chunk.NKYYDFIX.js → chunk.W53YNBSM.js} +1 -1
- package/dist/preview/chunk.WAB3L3ZI.js +1 -0
- package/dist/preview/chunk.WSDJPXJD.js +1 -0
- package/dist/preview/chunk.WSO7JOW5.js +1 -0
- package/dist/preview/{chunk.BU5PVRX7.js → chunk.WVLEGCRI.js} +1 -1
- package/dist/preview/chunk.XK65Y2KX.js +1 -0
- package/dist/preview/chunk.XMQG2PSM.js +50 -0
- package/dist/preview/{chunk.QO5RXOCS.js → chunk.XOE4KNP2.js} +2 -2
- package/dist/preview/chunk.YIPXZUTT.js +2 -0
- package/dist/preview/chunk.YNEHJWJV.js +2 -0
- package/dist/preview/{chunk.S3EEY7T3.js → chunk.YXEO3Y65.js} +1 -1
- package/dist/preview/chunk.Z274CL7J.js +1 -0
- package/dist/preview/{chunk.NBVPWLRY.js → chunk.Z7Y3R3YR.js} +1 -1
- package/dist/preview/{chunk.DJMSXXP4.js → chunk.ZBVYD4OX.js} +1 -1
- package/dist/preview/{chunk.4O3C2LJF.js → chunk.ZD7T234N.js} +1 -1
- package/dist/preview/{chunk.TY74U3EI.js → chunk.ZQR2SN65.js} +1 -1
- package/dist/preview/chunk.ZR2TP3BF.js +111 -0
- package/dist/preview/chunk.ZRBGYXAO.js +6 -0
- package/dist/preview/index.html +56 -54
- package/dist/preview/page.js +2 -2
- package/dist/preview/splash.js +17 -14
- package/package.json +6 -6
- package/dist/preview/chunk.2P34ML3O.js +0 -111
- package/dist/preview/chunk.2UW5CRHF.js +0 -1
- package/dist/preview/chunk.2YMO7ZVX.js +0 -1
- package/dist/preview/chunk.33ULA3CG.js +0 -1
- package/dist/preview/chunk.3CJLAJXP.js +0 -25
- package/dist/preview/chunk.3IJSB5ET.js +0 -1
- package/dist/preview/chunk.3KO35VN4.js +0 -1
- package/dist/preview/chunk.3L37FY3G.js +0 -4
- package/dist/preview/chunk.3WP66LB5.js +0 -1
- package/dist/preview/chunk.4GJ7F4SP.js +0 -35
- package/dist/preview/chunk.4IJTPV5X.js +0 -1
- package/dist/preview/chunk.4JFBLVXJ.js +0 -1
- package/dist/preview/chunk.4PCVQEVI.js +0 -1
- package/dist/preview/chunk.5FQSYMAE.js +0 -1
- package/dist/preview/chunk.5NCLZ4NZ.js +0 -1
- package/dist/preview/chunk.5YNLFOBJ.js +0 -5
- package/dist/preview/chunk.77XQEDT5.js +0 -1
- package/dist/preview/chunk.7HPQI5SY.js +0 -1
- package/dist/preview/chunk.A4VA3DU5.js +0 -1
- package/dist/preview/chunk.ABSY3UZF.js +0 -1
- package/dist/preview/chunk.ARHAD5IS.js +0 -1
- package/dist/preview/chunk.BOC2EOGB.js +0 -9
- package/dist/preview/chunk.BR6TINGU.js +0 -1
- package/dist/preview/chunk.CDEAAWPS.js +0 -1
- package/dist/preview/chunk.CXJJB3MK.js +0 -1
- package/dist/preview/chunk.CXLQPE4J.js +0 -1
- package/dist/preview/chunk.DA4RSHLW.js +0 -1
- package/dist/preview/chunk.DJPNVXBQ.js +0 -6
- package/dist/preview/chunk.DJVHKBEI.js +0 -1
- package/dist/preview/chunk.DVSTLVIH.js +0 -15
- package/dist/preview/chunk.E5WJSTOV.js +0 -1
- package/dist/preview/chunk.FEGSYSA7.js +0 -1
- package/dist/preview/chunk.HJUXC5GM.js +0 -1
- package/dist/preview/chunk.HNMSYQRA.js +0 -1
- package/dist/preview/chunk.HWLRKOI3.js +0 -1
- package/dist/preview/chunk.IHUMKFYH.js +0 -10
- package/dist/preview/chunk.IQ54QTA5.js +0 -1
- package/dist/preview/chunk.IQC3GOXO.js +0 -1
- package/dist/preview/chunk.ISN2QTVL.js +0 -2
- package/dist/preview/chunk.J24YPQ5I.js +0 -5
- package/dist/preview/chunk.J545NAMY.js +0 -1
- package/dist/preview/chunk.K2HDEL7I.js +0 -1
- package/dist/preview/chunk.K3JARAWU.js +0 -1
- package/dist/preview/chunk.KROR65KD.js +0 -2
- package/dist/preview/chunk.KV7GZBJ6.js +0 -50
- package/dist/preview/chunk.L7NJLZWV.js +0 -1
- package/dist/preview/chunk.LON75VHP.js +0 -1
- package/dist/preview/chunk.LQWVJQ5X.js +0 -18
- package/dist/preview/chunk.M5W2RHC6.js +0 -1
- package/dist/preview/chunk.M6BTLH24.js +0 -1
- package/dist/preview/chunk.MAGKI4PD.js +0 -1
- package/dist/preview/chunk.MD36ZSM5.js +0 -74
- package/dist/preview/chunk.MFZJVHWP.js +0 -1
- package/dist/preview/chunk.MHTA4HYB.js +0 -19
- package/dist/preview/chunk.N2YM247R.js +0 -1
- package/dist/preview/chunk.N35SJWAM.js +0 -1
- package/dist/preview/chunk.NJSK3UO2.js +0 -6
- package/dist/preview/chunk.OHMHPTEW.js +0 -1
- package/dist/preview/chunk.PV2I4UPH.js +0 -1
- package/dist/preview/chunk.QFQSSZN7.js +0 -1
- package/dist/preview/chunk.RSS6OHXG.js +0 -1
- package/dist/preview/chunk.SBCAYTMT.js +0 -1
- package/dist/preview/chunk.SMTGRCMG.js +0 -3
- package/dist/preview/chunk.TCZIZ2PU.js +0 -1
- package/dist/preview/chunk.U74PTRHJ.js +0 -1
- package/dist/preview/chunk.UAORKZLO.js +0 -1
- package/dist/preview/chunk.UDVTPI2W.js +0 -1
- package/dist/preview/chunk.UETLP5KC.js +0 -1
- package/dist/preview/chunk.UHI3X2YD.js +0 -1
- package/dist/preview/chunk.UL62ELNR.js +0 -1
- package/dist/preview/chunk.VRYSZYAD.js +0 -1
- package/dist/preview/chunk.VUZFLDOX.js +0 -1
- package/dist/preview/chunk.X2NGFOAF.js +0 -1
- package/dist/preview/chunk.XE762VL2.js +0 -2
- package/dist/preview/chunk.Y2RZ5B4U.js +0 -1
- package/dist/preview/chunk.YKMBXMZE.js +0 -1
- package/dist/preview/chunk.Z34KASY7.js +0 -1
- package/dist/preview/chunk.ZMGKWMID.js +0 -1
- package/dist/preview/chunk.ZT5YQSSP.js +0 -21
- package/dist/preview/chunk.ZZM75ZTN.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
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{a as ne}from"./chunk.72ZCLEQC.js";import{p as Te,q as te,t as H,u as xe,y as Ie}from"./chunk.5LJVOLKR.js";import{m as X,n as Me,o as Ae,p as Z,q as ee}from"./chunk.OJGHDWI6.js";import{b as Ee}from"./chunk.Z7Y3R3YR.js";import{b as Se,d as U,e as J,g as be,q as De}from"./chunk.U3HERHAI.js";import{b as he}from"./chunk.FBILPNGH.js";import{D as W,F as j,G as N,J as ve,Ja as we,Ka as ke,La as I,Pa as V,R as ge,Ra as $,W as M,ea as A,fa as q,ga as ye,m as pe,v as fe,z as me}from"./chunk.MODLZJD4.js";import{a as x}from"./chunk.SDO3U72B.js";import{Td as de,od as le,pa as _,td as ue}from"./chunk.6HY6ZGEE.js";import{b as w}from"./chunk.AJZBJBMO.js";var T=w(N(),1),D=w(M(),1),oe=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.M6ZN2KUO.js")))),Ne=oe.part(e=>(0,D.jsx)(e.HoverChipDoor,{}),{quiet:!0}),Re="A",Q=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.KHRS2SKB.js","./chunk.T6PU3NKP.js","./chunk.U3ED7W2U.js","./chunk.OPTYYIGC.js","./chunk.DPJNGFEZ.js","./chunk.YNEHJWJV.js","./chunk.2VR7YEJ6.js","./chunk.LETAQTLJ.js","./chunk.BUVTUAB5.js","./chunk.HJCQ6I3S.js","./chunk.OJY7VJ7D.js","./chunk.GEFXU4VO.js","./chunk.TXHYGFIZ.js","./chunk.WAB3L3ZI.js","./chunk.W53YNBSM.js","./chunk.2KFZHUAC.js","./chunk.V5I4GZEY.js","./chunk.TBY5IR7C.js","./chunk.FIFUMX5X.js","./chunk.BIDL7GQD.js","./chunk.V7W5AQKL.js","./chunk.EMFOMSMI.js","./chunk.QOS5T46W.js","./chunk.PPSYUOH7.js","./chunk.XOZU4OFA.js","./chunk.GME63ZHI.js","./chunk.Q5WEOX3Q.js","./chunk.4FCFNAA4.js","./chunk.4AC2QM7T.js","./chunk.YFVJUHAK.js","./chunk.JXNVNFV4.js","./chunk.I2737CPF.js","./chunk.NJRLJEJY.js","./chunk.CVPMSPCH.js","./chunk.OTV5XTBB.js","./chunk.KBPJ7X7W.js","./chunk.OEIWIZCP.js","./chunk.5LJVOLKR.js","./chunk.OJGHDWI6.js","./chunk.OWFS2YDQ.js","./chunk.WSDJPXJD.js","./chunk.F4VB6Q2W.js","./chunk.FFOD5B4B.js","./chunk.Z7Y3R3YR.js","./chunk.YXEO3Y65.js","./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.5CXIEYHY.js"))));var We=Q.part((e,t)=>(0,D.jsx)(e.InspectorPane,{...t}),{what:"This card's acts"});function He(e){let t=()=>{(typeof navigator>"u"||navigator.onLine!==!1)&&e()},n=globalThis;if(n.requestIdleCallback){let d=n.requestIdleCallback(t,{timeout:5e3});return()=>n.cancelIdleCallback?.(d)}let i=setTimeout(t,2500);return()=>clearTimeout(i)}var Ge=150,Be="[data-graview-pick], [data-graview-view], [data-graview-record], [data-graview-act], [data-graview-field], a[href]";function ze(e){if(e.closest("[data-graview-face='pages'], [data-graview-popover]"))return null;let t=e.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??e.closest("[data-graview-view]")?.getAttribute("data-graview-view");return t?{face:"scene",on:t,about:[t]}:null}function Fe(e){let{store:t,principal:n,providers:i,ai:d}=A(),u=xe(),v=j(d),o=(0,T.useRef)({aimAt:e,store:t,principal:n,providers:i,prepareSections:u,chipsOn:v});o.current={aimAt:e,store:t,principal:n,providers:i,prepareSections:u,chipsOn:v},(0,T.useEffect)(()=>{if(typeof document>"u")return;let c=null,h=null,k=null,l=g=>{let f=o.current,b=f.chipsOn?f.aimAt(g):null;b&&(k=g,oe.load().then(F=>{k===g&&F.restOn(b,g)},()=>{}))},m=()=>{c&&clearTimeout(c.timer),c=null},a=g=>{let f=o.current,b=f.aimAt(g);if(!b)return;let F=JSON.stringify([b.face,b.on,b.about,b.field,b.place,b.act,f.store.log.length]);F!==h&&(h=F,f.prepareSections(b),Q.load().then(Oe=>Oe.prepareActs(f.store,b,{principal:f.principal,providers:f.providers}),()=>{}))},r=g=>g.target instanceof Element?g.target.closest(Be):null,p=g=>{if(g.pointerType==="touch")return;let f=r(g);f!==null&&f===c?.element||(m(),f!==null&&(c={element:f,timer:setTimeout(()=>{c=null,a(f),l(f)},Ge)}))},y=g=>{let f=g.relatedTarget;k!==null&&!(f instanceof Node&&k.contains(f))&&(k=null,oe.current?.leaveRest()),c!==null&&(f instanceof Node&&c.element.contains(f)||m())},S=g=>{if(g.pointerType==="mouse")return;let f=r(g);f&&a(f)},E=g=>{if(!we())return;let f=r(g);f&&a(f)};return document.addEventListener("pointerover",p,{passive:!0}),document.addEventListener("pointerout",y,{passive:!0}),document.addEventListener("pointerdown",S,{capture:!0,passive:!0}),document.addEventListener("focusin",E),()=>{m(),document.removeEventListener("pointerover",p),document.removeEventListener("pointerout",y),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("focusin",E)}},[])}function ut({placement:e="float",openActs:t,aimAt:n}={}){let{menuAt:i,setMenuAt:d,registerActsDoor:u,ai:v}=A(),{selection:o}=V();Fe(n??ze),(0,T.useEffect)(()=>{if(Q.current)return;let m=()=>{y(),Q.prefetch()},a=()=>{},r=ke(()=>void(a=He(m))),p=["pointerdown","keydown"];for(let S of p)document.addEventListener(S,m,{capture:!0,passive:!0});function y(){r(),a();for(let S of p)document.removeEventListener(S,m,{capture:!0})}return y},[]),(0,T.useEffect)(()=>{if(e==="menu")return u({key:Re,open:t??(m=>{let a=m.getBoundingClientRect(),r=m.closest("[data-graview-pick]")?.getAttribute("data-graview-pick")??m.closest("[data-graview-view]")?.getAttribute("data-graview-view")??void 0;d({x:Math.round(a.left+Math.min(16,a.width/2)),y:Math.round(Math.min(a.bottom,a.top+36)),...r?{on:r}:{}})})}),()=>u(null)},[e,u,d,t]);let c=i!==null||o.length>0&&t===void 0,[h,k]=(0,T.useState)(c);(0,T.useEffect)(()=>{c&&k(!0)},[c]);let l=j(v)?(0,D.jsx)(T.Suspense,{fallback:null,children:(0,D.jsx)(Ne,{})}):null;return!h&&!c?l:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(T.Suspense,{fallback:null,children:(0,D.jsx)(We,{placement:e,chosen:t===void 0})}),l]})}var Y=w(N(),1),K=w(M(),1),_e=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.KHRS2SKB.js","./chunk.T6PU3NKP.js","./chunk.U3ED7W2U.js","./chunk.OPTYYIGC.js","./chunk.HOCD7KIR.js","./chunk.FDZE5LTJ.js","./chunk.LGRVEHXT.js","./chunk.CTASTRQN.js","./chunk.DPJNGFEZ.js","./chunk.YNEHJWJV.js","./chunk.QQAZQDRW.js","./chunk.72ZCLEQC.js","./chunk.ONYBW45K.js","./chunk.2VR7YEJ6.js","./chunk.FXT5CN32.js","./chunk.WVLEGCRI.js","./chunk.LETAQTLJ.js","./chunk.BUVTUAB5.js","./chunk.HJCQ6I3S.js","./chunk.OJY7VJ7D.js","./chunk.GEFXU4VO.js","./chunk.7VP6Y6D2.js","./chunk.WSO7JOW5.js","./chunk.XOE4KNP2.js","./chunk.25VJPUDH.js","./chunk.TXHYGFIZ.js","./chunk.WAB3L3ZI.js","./chunk.W53YNBSM.js","./chunk.2KFZHUAC.js","./chunk.V5I4GZEY.js","./chunk.TBY5IR7C.js","./chunk.FIFUMX5X.js","./chunk.BIDL7GQD.js","./chunk.V7W5AQKL.js","./chunk.EMFOMSMI.js","./chunk.QOS5T46W.js","./chunk.PPSYUOH7.js","./chunk.XOZU4OFA.js","./chunk.GME63ZHI.js","./chunk.Q5WEOX3Q.js","./chunk.4FCFNAA4.js","./chunk.4AC2QM7T.js","./chunk.YFVJUHAK.js","./chunk.JXNVNFV4.js","./chunk.WVUJXDXZ.js","./chunk.I2737CPF.js","./chunk.NJRLJEJY.js","./chunk.CVPMSPCH.js","./chunk.OTV5XTBB.js","./chunk.KBPJ7X7W.js","./chunk.OEIWIZCP.js","./chunk.MIE4TJRW.js","./chunk.5LJVOLKR.js","./chunk.OJGHDWI6.js","./chunk.OWFS2YDQ.js","./chunk.WSDJPXJD.js","./chunk.F4VB6Q2W.js","./chunk.FFOD5B4B.js","./chunk.Z7Y3R3YR.js","./chunk.YXEO3Y65.js","./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.4JULYKGD.js")))),qe=_e.part((e,t)=>{let n=e.DraftFrame;return(0,K.jsx)(n,{...t})},{what:"The view"});function mt(e){let{seatTalk:t}=A();return(0,Y.useSyncExternalStore)(t.subscribe,()=>t.get().draft!==null,()=>!1)?(0,K.jsx)(Y.Suspense,{fallback:null,children:(0,K.jsx)(qe,{...e})}):null}var L=w(N(),1),C=w(M(),1),re=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.BUVTUAB5.js","./chunk.MWGZKZD6.js","./chunk.QFHWG4LN.js","./chunk.YIPXZUTT.js","./chunk.BJUUSIQY.js","./chunk.EMFOMSMI.js","./chunk.PSQYDCVM.js","./chunk.QOS5T46W.js","./chunk.PPSYUOH7.js","./chunk.XOZU4OFA.js","./chunk.GME63ZHI.js","./chunk.NJRLJEJY.js","./chunk.WSDJPXJD.js","./chunk.F4VB6Q2W.js","./chunk.FFOD5B4B.js","./chunk.Z7Y3R3YR.js","./chunk.YXEO3Y65.js","./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.FV72U33M.js")))),Ve=re.part((e,t)=>{let n=e.QuickAskCard;return(0,C.jsx)(n,{...t})},{what:"The quick ask"});function kt({face:e,on:t=!0}){let{ai:n,aiDesk:i,selection:d,view:u}=A(),v=ge()?.open??!1,o=t&&W(n)&&!v,c=be(i),h=(0,L.useRef)(null),k=(0,L.useRef)({selection:d,place:u.within?.view});return k.current={selection:d,place:u.within?.view},(0,L.useEffect)(()=>{if(!o)return;let l=Se(i);return l.drawn+=1,l.preload=()=>{re.load().catch(()=>{}),(__graviewPreload(import.meta.url,["./chunk.YIPXZUTT.js","./chunk.BJUUSIQY.js","./chunk.NJRLJEJY.js","./chunk.YXEO3Y65.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.IGK7EZCX.js")).catch(()=>{})},U(l),()=>{l.drawn=Math.max(0,l.drawn-1),l.drawn===0&&(l.open=null),U(l)}},[o,i]),(0,L.useEffect)(()=>{if(!o)return;let l=m=>{if(m.defaultPrevented||m.key.toLowerCase()!=="k"||!(m.metaKey||m.ctrlKey)||m.altKey||m.shiftKey)return;let a=h.current?.closest("[data-graview-embed]"),r=m.target,p=!(r instanceof Node)||r===document.body||r===document.documentElement;if(a&&!(p||r instanceof Node&&a.contains(r)))return;m.preventDefault(),re.prefetch();let y=document.activeElement,{selection:S,place:E}=k.current;J(i,{pointed:{...S[0]!==void 0?{on:S[0]}:{},about:S,...E?{place:E}:{}},returnTo:y instanceof HTMLElement&&y!==document.body?y:null})};return window.addEventListener("keydown",l,!0),()=>window.removeEventListener("keydown",l,!0)},[o,i]),o?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{ref:h,hidden:!0,"data-graview-quick-ask":e}),c?(0,C.jsx)(L.Suspense,{fallback:null,children:(0,C.jsx)(Ve,{face:e,opening:c,close:()=>J(i,null)},c.at)}):null]}):null}var G=w(N(),1),O=w(M(),1),ie=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.MWGZKZD6.js","./chunk.QFHWG4LN.js","./chunk.YIPXZUTT.js","./chunk.BJUUSIQY.js","./chunk.EMFOMSMI.js","./chunk.PSQYDCVM.js","./chunk.QOS5T46W.js","./chunk.PPSYUOH7.js","./chunk.XOZU4OFA.js","./chunk.GME63ZHI.js","./chunk.NJRLJEJY.js","./chunk.WSDJPXJD.js","./chunk.F4VB6Q2W.js","./chunk.FFOD5B4B.js","./chunk.Z7Y3R3YR.js","./chunk.YXEO3Y65.js","./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.TTGKX7LT.js")))),$e=ie.part((e,t)=>{let n=e.InlineAiMenu;return(0,O.jsx)(n,{...t})},{what:"The AI's suggestions"}),Qe=ie.part((e,t)=>{let n=e.GhostTray;return(0,O.jsx)(n,{...t})},{quiet:!0});function Ke(){let{ai:e}=A(),t=W(e);return(0,G.useMemo)(()=>t?n=>({id:"inline-ai",heading:"AI",render:i=>(0,O.jsx)(G.Suspense,{fallback:null,children:(0,O.jsx)($e,{target:n,close:i})}),prepare:()=>ie.prefetch()}):null,[t])}var Ye=[];function Tt({children:e}){let t=Ke(),n=(0,G.useMemo)(()=>t?[t]:Ye,[t]);return(0,O.jsx)(H,{sections:n,children:e})}function xt(e){let{ai:t,aiDesk:n}=A(),{ghost:i}=ve(n);return i===null||i.onCard||t.off?null:(0,O.jsx)(G.Suspense,{fallback:null,children:(0,O.jsx)(Qe,{...e})})}var R=w(N(),1);var Ce=w(M(),1),Ue=e=>globalThis[Symbol.for("graview.shown-lists")]?.get(e),Pe=I(x(()=>(__graviewPreload(import.meta.url,["./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.OOSIKCOS.js"))));function Je(e){let t=e.about[0];if(e.about.length!==1||!t?.startsWith("aggregate:"))return;let n=t.slice(10).split("+");return n.length===1?n[0]:void 0}function Xe(e,t){return e.filter(n=>n.as!==t.as&&!n.hidden&&(n.kind===t.kind||n.over?.includes(t.kind)===!0)).at(-1)}function Ze(e){let t=q(),n=t?.keptViews,i=t?.views,d=(0,R.useContext)(De);return(0,R.useMemo)(()=>i?u=>{let v=n?.current(),o=Je(u),c=a=>a.length>0?{id:"tidy-view",items:a,prepare:()=>Pe.prefetch()}:null,h=(a,...r)=>Pe.load().then(p=>p[a](...r),()=>!1),k=(a,r)=>Ue(a)?.().menu(r,n,d)??[];if(u.place===void 0){if(u.face!=="pages"||o===void 0||u.on!==void 0)return null;let a=v?.may.lenses===!0&&n?.lens!==void 0,r=_(t.store.schema,o),p=i.arrangement?.()?.hide?.includes(o)===!0;return c([...a?[{id:p?"show-list":"hide-list",label:p?"Show":"Hide",hint:p?"Back in the places, for everyone":"Off the places, for everyone; still at its address",run:()=>void h("setListHidden",o,r,n,!p,d)}]:[],...k(`list:${o}`,a)])}let l=i.places().find(a=>a.as===u.place&&(o===void 0||a.kind===o||a.over?.includes(o)===!0));if(!l)return null;let m=n&&v?de(l,v,n):null;return c([...m?[l.hidden?{id:"show-view",label:"Show",hint:"Back in the places, for everyone",run:()=>void h("setHidden",l,m,n,!1,d)}:{id:"hide-view",label:"Hide",hint:"Off the places and the scene, for everyone",run:()=>void h("setHidden",l,m,n,!0,d)},{id:"delete-view",label:"Delete",hint:`Kept ${30} days under Recently deleted`,run:()=>{let a=Xe(i.places(),l);h("remove",l,m,n,d).then(r=>r&&e?.(l,a))}}]:[],...k(`place:${l.as}`,m==="lens")])}:null,[n,i,d,e])}var et=[];function Rt({children:e}){let{view:t,go:n}=$(),i=(0,R.useCallback)((v,o)=>{let c=t.within?.view;t.focusId===fe(v.kind)&&(c===void 0||c===v.as)&&n(o?me(t,o.kind,o.as):pe(t,!0))},[t,n]),d=Ze(i),u=(0,R.useMemo)(()=>d?[d]:et,[d]);return(0,Ce.jsx)(H,{sections:u,children:e})}var P=w(N(),1),ce=w(M(),1),B,se=new Set,Le=e=>(se.add(e),()=>void se.delete(e)),ae=()=>(__graviewPreload(import.meta.url,["./chunk.JMYUQNXN.js","./chunk.NYLKG25K.js","./chunk.TBY5IR7C.js","./chunk.QFHWG4LN.js","./chunk.YIPXZUTT.js","./chunk.BJUUSIQY.js","./chunk.PPSYUOH7.js","./chunk.XOZU4OFA.js","./chunk.GME63ZHI.js","./chunk.NJRLJEJY.js","./chunk.MIE4TJRW.js","./chunk.5LJVOLKR.js","./chunk.OJGHDWI6.js","./chunk.OWFS2YDQ.js","./chunk.WSDJPXJD.js","./chunk.F4VB6Q2W.js","./chunk.FFOD5B4B.js","./chunk.Z7Y3R3YR.js","./chunk.YXEO3Y65.js","./chunk.U3HERHAI.js","./chunk.FBILPNGH.js","./chunk.MODLZJD4.js","./chunk.SDO3U72B.js","./chunk.6HY6ZGEE.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.BOCVLC7X.js")).then(e=>{B=e,se.forEach(t=>t())});function tt(){let e=A(),{ai:t,keptViews:n,onProposeChange:i,composeChange:d}=e,u=(0,P.useRef)(e);u.current=e;let v=i!==void 0&&d!==void 0||typeof n?.fork=="function",o=W(t)&&(typeof n?.revise=="function"||v);o&&Ie(ae);let c=(0,P.useSyncExternalStore)(Le,()=>B!==void 0,()=>!1);return(0,P.useMemo)(()=>o?h=>h.section||h.page||h.face==="scene"&&v&&(h.on!==void 0||h.place!==void 0||h.about.length===1)?B?B.sectionFor(h,u.current):(ae(),null):null:null,[o,v,c])}var nt=[];function zt({children:e}){let t=tt(),n=(0,P.useMemo)(()=>t?[t]:nt,[t]);return(0,ce.jsx)(H,{sections:n,children:e})}function Ft(){let e=(0,P.useSyncExternalStore)(Le,()=>B?.SectionDoor,()=>{});return(0,P.useEffect)(()=>{try{sessionStorage.getItem("graview.better.from-scene")&&ae()}catch{}},[]),e?(0,ce.jsx)(e,{}):null}function $t(e={}){return e.scope===void 0?ne:he(ne,e.scope)}var z=w(N(),1),s=w(M(),1);function Xt({inside:e=!1,widthOf:t}={}){let{store:n,view:i,emphasis:d,setEmphasis:u}=A(),v=Te(),{selection:o,set:c}=V(),{show:h}=$(),k=ye(),l=(0,z.useMemo)(()=>{let r=new Map;for(let p of n.graph.allEdges()){let y=r.get(p.kind)??{count:0,ends:new Set};y.count+=1;for(let S of[p.from,p.to]){let E=n.graph.getNode(S);E&&y.ends.add(`kind:${E.kind}`)}r.set(p.kind,y)}return[...r.entries()].sort(([p],[y])=>p.localeCompare(y)).map(([p,y])=>({kind:p,count:y.count,ends:[...y.ends]}))},[n,k]),m=Math.max(0,...l.map(r=>r.count));if((0,z.useEffect)(()=>()=>u(null),[u]),!i.overview&&!e||l.length===0)return null;let a=new Set;for(let r of o){if(r.startsWith("kind:")){a.add(r);continue}let p=n.graph.getNode(r);p&&a.add(`kind:${p.kind}`)}return(0,s.jsxs)("section",{"aria-label":"What the lines mean",role:e?"group":void 0,"data-testid":"relation-key",style:e?{display:"grid",gap:1}:{position:"absolute",left:16,top:14,zIndex:ue("rail"),display:"grid",gap:1,padding:"8px 10px",borderRadius:10,border:"1px solid var(--graview-edge)",background:"var(--graview-float)",boxShadow:"var(--graview-lift-low)",maxWidth:ot,animation:"graview-settle 380ms 280ms ease backwards"},children:[e?null:(0,s.jsx)("span",{style:{fontSize:"0.75rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--graview-ink-faint)",paddingBottom:2},children:l.length===1?"1 relation":`${l.length} relations`}),t?(0,s.jsx)(it,{aloft:i.overview===!0}):null,l.map(({kind:r,count:p,ends:y})=>{let{connector:S,style:E}=te(v,r),g=rt(n.schema,r),f=d!==null?d===r:a.size===0||y.some(b=>a.has(b));return(0,s.jsxs)("button",{type:"button",title:n.schema.edge(r)?.description===void 0?`${p} of these`:g.words,onMouseEnter:()=>u(r),onMouseLeave:()=>u(null),onFocus:()=>u(r),onBlur:()=>u(null),onClick:()=>{c(y),h(null)},style:{all:"unset",outline:"revert-layer",cursor:"pointer",display:"grid",gridTemplateColumns:"30px 1fr auto",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px",borderRadius:6,opacity:f?1:.4},children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",style:{display:"block",opacity:S.visible?1:.35},children:i.overview&&t?(0,s.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",className:"graview-key-ribbon",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:t(p,m)}):(0,s.jsx)("path",{d:"M 1 5 L 29 5",fill:"none",stroke:Z(E),strokeWidth:ee(E,!0),strokeDasharray:X[E.pattern],strokeLinecap:"round"})}),(0,s.jsxs)("span",{style:{display:"grid",minWidth:0},"data-graview-relation-words":r,children:[(0,s.jsx)("span",{style:{fontSize:"0.8125rem",color:"var(--graview-ink)"},children:g.words}),(0,s.jsx)("span",{style:{fontSize:"0.6875rem",color:"var(--graview-ink-faint)"},children:g.ends})]}),S.visible?null:(0,s.jsx)("span",{"data-graview-quiet":r,style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontStyle:"italic"},children:"not drawn"}),(0,s.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--graview-ink-faint)",fontVariantNumeric:"tabular-nums"},children:p})]},r)})]})}var ot="min(280px, calc(100% - 28px))";function rt(e,t,n){let i=e.edge(t)?.from??[],d=new Map;for(let o of n!==void 0&&i.includes(n)?[n]:i.length>0?i:[""]){let c=Ee(e,o,t,"out");d.set(c,[...d.get(c)??[],o])}let u=o=>o==="*"?"anything":_(e,o),v=[...d].map(([o,c])=>{let h=c.flatMap(l=>e.tryDefinition(l)?.edges[t]?.to??[]),k=c[0]&&h.length>0?`${c.map(u).join(", ")} \u2192 ${(h.includes("*")?["*"]:[...new Set(h)]).map(u).join(", ")}`:"";return[o.charAt(0).toUpperCase()+o.slice(1),k]});return{words:v.map(([o])=>o).join(" \xB7 "),ends:v.flatMap(([,o])=>o?[o]:[]).join(" \xB7 ")}}function Zt({edgeKind:e,kit:t,width:n=30}){let i=q(),d=(0,z.useMemo)(()=>le(t??i?.brand?.kit),[t,i?.brand?.kit]),{connector:u,style:v}=te(d,e);return(0,s.jsx)("svg",{width:n,height:"8","aria-hidden":"true","data-testid":"relation-mark","data-graview-relation":e,style:{display:"inline-block",verticalAlign:"middle",opacity:u.visible?1:.35},children:(0,s.jsx)("path",{d:`M 1 4 L ${n-1} 4`,fill:"none",stroke:Z(v),strokeWidth:ee(v,!0),strokeDasharray:X[v.pattern],strokeLinecap:"round"})})}function it({aloft:e}){let t={display:"grid",gridTemplateColumns:"30px 1fr",alignItems:"center",gap:8,minHeight:23,padding:"2px 4px"},n={fontSize:"0.75rem",color:"var(--graview-ink-muted)"};return(0,s.jsxs)("div",{role:"group","aria-label":"The lines","data-testid":"line-manners",style:{display:"grid",gap:1,paddingBottom:6,marginBottom:4,borderBottom:"1px solid var(--graview-edge)"},children:[e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{style:t,"data-graview-manner":"ribbon",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-ink)",strokeOpacity:.35,strokeWidth:6})}),(0,s.jsx)("span",{style:n,children:"A relation between two districts, as wide as the links along it \u2014 point at one for its words"})]}),(0,s.jsxs)("div",{style:t,"data-graview-manner":"record",children:[(0,s.jsxs)("svg",{width:"30",height:"10","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M 1 5 L 25 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeLinecap:"round"}),(0,s.jsx)("circle",{cx:26,cy:5,r:3,fill:"var(--graview-accent)"})]}),(0,s.jsx)("span",{style:n,children:"A chosen record's link to another record, labeled with the relation"})]}),(0,s.jsxs)("div",{style:t,"data-graview-manner":"district",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeWidth:1.8,strokeDasharray:"5 4"})}),(0,s.jsx)("span",{style:n,children:"A chosen record's links into a district, with how many"})]})]}):null,(0,s.jsxs)("div",{style:t,"data-graview-manner":"unsure",children:[(0,s.jsx)("svg",{width:"30",height:"10","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M 1 5 L 29 5",stroke:"var(--graview-accent)",strokeOpacity:Ae,strokeWidth:1.8,strokeDasharray:Me,strokeLinecap:"round"})}),(0,s.jsx)("span",{style:n,children:"Unsure: a link its maker was less than sure of, until a person keeps it \u2014 point at its words for what it was based on"})]})]})}export{ut as a,mt as b,kt as c,Xt as d,ot as e,Zt as f,Ke as g,Tt as h,xt as i,Ze as j,Rt as k,tt as l,zt as m,Ft as n,$t as o};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as K}from"./chunk.
|
|
1
|
+
import{q as K}from"./chunk.U3HERHAI.js";import"./chunk.FBILPNGH.js";import{G as R,W as x,ea as N,fa as $}from"./chunk.MODLZJD4.js";import"./chunk.SDO3U72B.js";import{$d as k,Rd as v,Sd as b,Td as f,Zd as h,pa as g}from"./chunk.6HY6ZGEE.js";import"./chunk.FQLNBIQ5.js";import{b as w}from"./chunk.AJZBJBMO.js";var u=w(R(),1);var o=w(x(),1),E=()=>()=>{};function C(e){let n=(0,u.useMemo)(()=>e?.onChange?i=>e.onChange(i):E,[e]),t=()=>e?.current()??b;return(0,u.useSyncExternalStore)(n,t,t)}var D=(e,n)=>e.lens?n.may.lenses:n.may.views;async function p(e,n,t){try{return await n(),!0}catch(i){let r=i?.code,d=typeof r=="string"?r:void 0;return e?.notify({kind:"toast",tone:"bad",sentence:i instanceof Error&&i.message?i.message:t,...d?{code:d}:{}}),!1}}function H(e,n,t,i,r){let d=e.name;return p(r,()=>n==="view"&&d!==void 0?i?t.hide(d):t.show(d):t.lens?.({op:"set-lens-hidden",title:e.title,on:e.kind,hidden:i}),i?`\u201C${e.title}\u201D could not be hidden.`:`\u201C${e.title}\u201D could not be shown.`)}function L(e,n,t,i,r){return p(r,()=>t.lens?.({op:"set-lens-hidden",title:e,hidden:i}),i?`\u201C${n}\u201D could not be hidden.`:`\u201C${n}\u201D could not be shown.`)}function V(e,n,t){return p(t,()=>n.restore(e.name),`\u201C${e.title}\u201D could not be restored.`)}async function A(e,n,t,i){let r=n==="view"&&e.name!==void 0?e.name:v(e.title),d=await p(i,()=>n==="view"&&e.name!==void 0?t.remove(e.name,{title:e.title,kind:e.kind}):t.lens?.({op:"remove-lens",title:e.title,on:e.kind}),`\u201C${e.title}\u201D could not be deleted.`);return d&&i?.notify({kind:"toast",id:`deleted-view-${r}`,sentence:`Deleted \u201C${e.title}\u201D. It is under Recently deleted in the places for ${30} days.`,action:{label:"Restore",onSelect:()=>void V({name:r,title:e.title},t,i)}}),d}function G(){let e=$(),n=e?.keptViews,t=C(n),i=e?.views;return(0,u.useMemo)(()=>{if(!n||!i)return null;let r=s=>f(s,t,n),d=new Set,c=i.places().filter(s=>{if(!s.hidden||r(s)===null)return!1;let m=`${s.name??""}|${s.title}`;return d.has(m)?!1:(d.add(m),!0)}),l=e?.store.schema,y=t.may.lenses&&n.lens&&l?(i.arrangement?.()?.hide??[]).filter(s=>l.tryDefinition(s)!==void 0).map(s=>({kind:s,title:g(l,s),path:h(l,s)})):[];return{keeper:n,hidden:c,lists:y,removed:t.removed.filter(s=>D(s,t)),how:r}},[n,t,i,e?.store.schema])}function T(e,n){let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleDateString(n??"en-US",{month:"short",day:"numeric"})}var I=`.graview-bar-list li.graview-bar-tidied{display:flex;align-items:flex-start;gap:8px;padding:0 0 0 2px}
|
|
2
2
|
.graview-bar-tidied>.graview-bar-item,.graview-bar-gone{flex:1 1 auto;min-width:0}
|
|
3
3
|
.graview-bar-gone{display:grid;gap:1px;padding:7px 8px;font-size:.875rem;line-height:1.3;overflow-wrap:anywhere;color:var(--graview-ink-muted)}
|
|
4
4
|
.graview-bar-gone small{font-size:.75rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as $}from"./chunk.
|
|
1
|
+
import{e as $}from"./chunk.YNEHJWJV.js";import{a as C}from"./chunk.EMFOMSMI.js";import{l as M}from"./chunk.FFOD5B4B.js";import{Ob as x,la as k,ma as v,na as j}from"./chunk.6HY6ZGEE.js";function N(a,s){let c=a.tryDefinition(s),r=Object.keys(c?.fields?.shape??{}),m=[c?.lifecycle?.field,...r.filter(l=>/^(status|stage|state|phase)$/i.test(l))].filter(l=>l!==void 0&&r.includes(l));return[...new Set(m)].slice(0,1)}function P(a,s){return a.tryDefinition(s)?.fieldRoles?.title??"label"}function V(a,s,c={}){let r=s.map(e=>a.graph.getNode(e)).filter(e=>e!==void 0);if(r.length===0)return{acts:[],withheld:[]};let u=c.principal??{kind:"human"},m=C(a,r.map(e=>e.id),{...c.derive,principal:u,...c.context?{context:c.context}:{}}),l=new Map(a.allMutations().map(e=>[e.name,e])),g=[...new Set(r.map(e=>e.kind))],p=new Set(g.map(e=>P(a.schema,e))),h=new Set(m.affordances.filter(e=>e.provider==="schema").map(e=>e.mutation)),o=e=>{let n=l.get(e.mutation);if(!n?.subject)return;let t=r.length===1&&e.provider==="invariant"&&!h.has(e.mutation)&&e.args[n.subject.arg]===r[0].id;if(!(e.provider!=="schema"&&!t)&&!(r.length>1&&e.batch?.length!==r.length)&&n.derived?.act!=="edit"&&!e.open.some(i=>p.has(i.name)))return n},y=[],b=new Set;for(let e of m.affordances){let n=o(e);if(!n||b.has(n.name))continue;b.add(n.name);let{[n.subject.arg]:t,...i}=e.args;y.push({id:e.id,label:v(n),mutation:n.name,subject:n.subject.arg,args:i,open:e.open,...e.destructive||e.setsAside?{more:!0}:{},...e.destructive?{destructive:!0}:{},affordance:{...e,label:v(n)}})}if(g.length===1){let e=g[0];for(let n of N(a.schema,e))for(let t of $(a.schema,[...l.values()],e,n)){if(t.by==="none"||r.every(d=>d[n]===t.value))continue;let i=r.find(d=>d[n]!==t.value),f=t.acts.find(d=>{let D=t.by==="step"?{[d.subject.arg]:i.id}:{[d.subject.arg]:i.id,[n]:t.value};return a.permits({name:d.name,args:D},u).ok});if(!f)continue;let w=t.by==="step"?{}:{[n]:t.value};if(t.by==="step"&&y.some(d=>d.mutation===f.name))continue;let R=t.by==="step"?v(f):`Move to ${t.label}`,O=`set:${n}:${t.value}`;y.push({id:O,label:R,mutation:f.name,subject:f.subject.arg,args:w,open:[],affordance:{id:O,label:R,provider:"schema",mutation:f.name,args:{[f.subject.arg]:i.id,...w},open:[],score:0,why:`every one is ${e}`,nodeIds:r.map(d=>d.id)}})}}let S=[...y.filter(e=>!e.more),...y.filter(e=>e.more)],A=m.withheld.filter(e=>{let n=l.get(e.mutation);return n?.subject!==void 0&&n.derived?.act!=="edit"&&(r.length===1||e.batch?.length===r.length)}).map(e=>({label:v(l.get(e.mutation)),message:e.refusal.message}));return{acts:S,withheld:A}}function _(a,s,c,r={}){let u=r.author,m=a.allMutations().find(e=>e.name===s.mutation),l=e=>M(a.schema,a.allMutations(),e),g=e=>{let n=a.graph.getNode(e);return n?k(a.schema.tryDefinition(n.kind),n):e},p=[],h=[],o=[];for(let e of[...new Set(c)]){let n={name:s.mutation,args:{...s.args,[s.subject]:e}};if(!m){p.push({id:e,label:g(e),message:`There is no act \u201C${s.mutation}\u201D.`,reason:"invalid"});continue}let t=a.permits(n,u);if(!t.ok){p.push({id:e,label:g(e),message:t.refusal.message,reason:"forbidden"});continue}if(!a.wouldChange(n,u)){h.push(e);continue}o.push({id:e,call:n})}let y=e=>a.previewAll(e,{...u?{author:u}:{},...r.context?{context:r.context}:{}});for(let e=0;o.length>0;e+=1)try{y(o.map(n=>n.call));break}catch(n){let t=[];for(let i of o)try{y([i.call]),t.push(i)}catch(f){p.push({id:i.id,label:g(i.id),message:l(f),reason:x(f).reason})}if(t.length===o.length||e>o.length){for(let i of t)p.push({id:i.id,label:g(i.id),message:l(n),reason:x(n).reason});o=[];break}o=t}if(o.length===0)return{applied:[],unchanged:h,refused:p};let b=s.label??(m?v(m):s.mutation),S=[...new Set(o.map(e=>a.graph.getNode(e.id)?.kind))],A=`${b} \u2014 ${S.length===1&&S[0]?j(a.schema,S[0],o.length):`${o.length} records`}`;try{let e=a.applyAll(o.map(n=>n.call),{intent:A,...u?{author:u}:{},...r.via?{via:r.via}:{}});return{batch:e.batch,intent:A,applied:o.map(n=>n.id),unchanged:h,refused:p,result:e}}catch(e){let n=l(e),t=x(e).reason;return{applied:[],unchanged:h,refused:[...p,...o.map(i=>({id:i.id,label:g(i.id),message:n,reason:t}))],allOrNothing:!0}}}export{V as a,_ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as a}from"./chunk.
|
|
1
|
+
import{g as a}from"./chunk.KBPJ7X7W.js";import{c as l}from"./chunk.OEIWIZCP.js";import{Oa as d}from"./chunk.6HY6ZGEE.js";function m(n){let r=new Map;for(let i of n.kinds){let e=n.tryDefinition(i),o=a(e),s=d(e);r.set(i,{fields:new Set(Object.keys(e?.fields?.shape??{})),edges:new Map(Object.entries(e?.edges??{}).map(([p,y])=>[p,y.cardinality??"many"])),...o?{computed:o}:{},...s.size>0?{linked:s}:{}})}let t=a(n);return t&&r.set(l,{computed:t}),r}export{m as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{G as w,
|
|
1
|
+
import{G as w,Qa as c,da as f,ea as h,ga as g}from"./chunk.MODLZJD4.js";import{b as m}from"./chunk.AJZBJBMO.js";var d=m(w(),1);function j(){let e=c();return(0,d.useMemo)(()=>[...new Set(e.flatMap(n=>n.nodeIds))],[e])}function x(){let e=I(),n=f();return(0,d.useMemo)(()=>{if(!n)return e;let t=n.matched;return t.length===0&&e.length===0?[k]:[...new Set([...e,...t])]},[n,e])}function I(){let{store:e,selection:n}=h(),t=g(),r=c();return(0,d.useMemo)(()=>{if(n.length===0)return v;let u=n.join(`
|
|
2
2
|
`),s=y.get(e);if(s&&s.violations===r&&s.key===u)return s.reached;let a=new Set(n),i=new Set(a);for(let o of e.graph.allEdges())a.has(o.from)&&i.add(o.to),a.has(o.to)&&i.add(o.from);for(let o of r)if(o.subjectId!==void 0&&a.has(o.subjectId))for(let p of o.nodeIds)i.add(p);let l=[...i];return y.set(e,{violations:r,key:u,reached:l}),l},[e,n,t,r])}var v=[],y=new WeakMap,k="search:nothing";export{j as a,x as b,I as c};
|
|
@@ -1 +1 @@
|
|
|
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 Ae=globalThis,no=Ae.addEventListener,ro=Ae.removeEventListener,oo=Ae.postMessage,so=globalThis.queueMicrotask,dn=globalThis.performance,io=dn?dn.now.bind(dn):Date.now,_e={listen:t=>no.call(Ae,"message",t),unlisten:t=>ro.call(Ae,"message",t),post:t=>oo.call(Ae,t),microtask:t=>so.call(globalThis,t),now:()=>io()};var x=Symbol("name"),fe=Symbol("prefix"),me=Symbol("value"),S=Symbol("ns"),z=Symbol("owner"),I=Symbol("owner_document"),re=Symbol("attributes"),D=Symbol("prev"),p=Symbol("next"),R=Symbol("child"),Y=Symbol("parent"),pe=Symbol("host"),K=Symbol("data"),Te=Symbol("listeners"),fn=Symbol("isTrusted"),Pe=Symbol("path"),Ce=Symbol("stop_immediate_propagation"),Me=Symbol("dispatching"),ie=Symbol("content"),k=Symbol("hooks"),mt=Symbol("extensions"),Oe=Symbol("hooks_dispatch"),U=Symbol("is_connected"),Ie=Symbol("create_element"),$n=0,X=1,De=2,ke=3,Le=8,we=9,Kn=10,he=11,A="http://www.w3.org/1999/xhtml",Z="http://www.w3.org/2000/svg",Zn="http://www.w3.org/XML/1998/namespace",$e="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 Qn(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 Jn=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,er=/[\\0\\t\\n\\f\\r />=]/u,ao=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===""?null:e}function tr(t){Jn.test(t)||pn(t)}function mn(t){(t===""||er.test(t))&&pn(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===""||ao.test(i))||(n==="element"?!Jn.test(a):a===""||er.test(a)))&&pn(o),i!=null&&r==null)throw C(`A namespace is required for the prefix in "${o}"`,"NamespaceError");if(i==="xml"&&r!==Zn)throw C("The xml prefix requires the XML namespace","NamespaceError");if((o==="xmlns"||i==="xmlns")&&r!==$e)throw C("The xmlns name requires the XMLNS namespace","NamespaceError");if(r===$e&&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 pn(t){throw C(`Invalid name: "${t}"`,"InvalidCharacterError")}var gt=0,yt=1,nr=2,hn=3,lo=typeof performance>"u"?Date.now:performance.now.bind(performance),B=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=nr;static BUBBLING_PHASE=hn;timeStamp=lo();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,fn,{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[fn]}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 gn(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?nr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i=="object"?i.handleEvent(t):i.call(e,t)}catch(a){setTimeout(co,0,a)}if(t[Ce])break}}function co(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{rr(e)}catch{}throw r}return Ke.pop(),rr(e),n}function rr(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=[],yn=!1;function xe(t){for(let e of t)Nt.push(e),e[1]&&Ze.push(e[1]);if(!yn){yn=!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,yn=!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=En(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 h=this,g={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(g.normalizedListener=function(...M){if(g.signal?.aborted){Tt(h,g);return}return g.once&&Tt(h,g),typeof g.listener=="object"?g.listener.handleEvent(...M):g.listener.call(this,...M)});let y=this[Te];y||(y=new Map,this[Te]=y);let v=y.get(e);v||(v={},y.set(e,v));let b=v[a];if(b||(b=new Set,v[a]=b),f.set(n,g),b.add(g),i){let N=()=>{Tt(h,g)};g.abortListener=N,i.addEventListener("abort",N,{once:!0})}this[I]?.defaultView[Oe].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return uo.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(gn(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(gn(e,o[s],hn),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 uo(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=En(!!r),s=this[Je]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function En(t){return t?"capture":"bubble"}function Tt(t,e){let n=En(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[Oe].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var tt=0,or=1,Tn=2,On=3,nt=4,sr=0,ir=1,xt=2,St=3,ar=4,Nn=5,lr=6,cr=7,Ot=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function fo(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[R];return o&&n[0].matchers.length&&wn(o,n,s=>(r=s,!1)),r}function Rt(t,e){let n=typeof e=="string"?rt(e):[{combinator:nt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&wn(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=or:c[1]==="+"?r.combinator=On:c[1]==="~"?r.combinator=Tn: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 h,g=c[4]??c[5]??c[7];if(c[2]){Ot.test(u)||W(t);let y=c[5],v=y?.[0];if(c[3]==null&&(v===\'"\'||v==="\'")){let b=c[0].lastIndexOf(y);g=i.slice(c.index+b+1),s.lastIndex=i.length}else y!=null&&!Ot.test(y)&&W(t);h=ar}else c[6]?(Ot.test(u)||W(t),h=c[6]==="#"?xt:St):c[8]?h=c[9]==null?Nn:lr:c[7]==="*"?h=sr:c[7]&&Ot.test(c[7])?h=ir:W(t);c[9]?([g,s.lastIndex]=fo(i,s.lastIndex),u!=="has"&&u!=="not"&&W(t),u==="has"&&e&&W(t),rt(g,e||u==="has",u==="has")):h===Nn&&W(t),r.matchers.push({type:h,name:u,value:g}),a=s.lastIndex}return(a!==i.length||r.matchers.length===0)&&W(t),o}function mo(t,e){let n=rt(e);return n[0]?.matchers.length?et(t,n):!1}function po(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:cr,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===Tn?t[p]:t[R];if(!i)return!1;let a=!1;return wn(i,n,()=>(a=!0,!1),t),a}function wn(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[R];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(!wt(t,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(t,a,n)}let s=r===or||r===tt?Y:D,i=t[s];if(!i)return!1;if(r===tt||r===Tn){for(;i;){if(j(i)&&wt(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)||!wt(i,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(i,a,n)}}function bn(t,e){return t.getAttributeNS(null,t.namespaceURI===A?G(e):e)}function wt(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(wt(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case sr:return o==="*";case ir:return t.namespaceURI===A?t.localName===G(o):t.localName===o;case xt:return bn(t,"id")===o;case St:let i=bn(t,"class");return i?pt(i).includes(o):!1;case ar:let a=bn(t,o);return s==null?a!=null:a===s;case cr:return t===n;case Nn:W(`:${o}`);case lr:switch(o){case"has":return po(t,s||"");case"not":return!mo(t,s||"");default:W(`:${o}(${s})`)}}return!1}function ho(t){return t.nodeType===De}function ot(t){return K in t}function Sn(t){return t.nodeType===ke}function go(t){return t.nodeType===Le}function j(t){return t.nodeType===X}function xn(t){return t.nodeType===he}function mr(t){return"appendChild"in t}function At(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 h of u)o.has(h)||(o.add(h),e.push(h));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 ur(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[I]=e,r}function dr(t,e){if(Sn(t))return e.createTextNode(t.data);if(go(t))return e.createComment(t.data);if(ho(t))return ur(t,e);if(j(t)){let n=e[Ie](t[x],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(ur(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===we)throw C("Cannot clone a document node","NotSupportedError");let r=dr(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===A&&i.source.localName==="template"){let f=i.source[ie];f&&(o.has(f)&&fr(),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)&&fr(),o.add(a);let u=dr(a,n);j(a)||xn(a)?s.push({source:a,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function fr(){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:xt,name:n}])}function Ct(t,e){let n=[...new Set(pt(String(e)))];return Rt(t,n.map(r=>({type:St,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===A?s[x]===r:s[x]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],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=$n;[x]="";[Y]=null;[pe]=null;[R]=null;[D]=null;[p]=null;[U]=!1;get[k](){return this[I].defaultView[Oe]}get localName(){return this[x]}get nodeName(){return this[x]}get ownerDocument(){return this[I]}get isConnected(){return this[U]}isDefaultNamespace(e){let n=ae(e);return yo(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[R]}set firstChild(e){}get lastChild(){let e=this[R];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))Sn(n)&&(e+=n.data);return e}set textContent(e){if(ot(this))this.data=e;else if(mr(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 yo(t){let e=t;for(;e;)switch(e.nodeType){case X:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,"xmlns");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case we:e=e.documentElement;break;case Kn:case he:return null;case De:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol("insertNode"),An=Symbol("preflightInsertions"),Dt=Symbol("replaceNode"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=Se(e),r=this.parentNode;if(r)return vn(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=Se(e),r=this.parentNode;if(r)return vn(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=Se(e),r=this.parentNode;if(r)return vn(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 vn(t){return V(()=>{let e=[];try{t(e)}catch(n){try{xe(e)}catch{}throw n}xe(e)})}function Se(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[An](r);for(let s of r)o[ee](s,null,n);return o}var kt,_n=0,pr=0,hr=0,gr=0,Ge=!1,Cn=!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=Eo(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?_n++:Pn(i,-1),s.set(this,r),Pn(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),_n--,Pn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,_n===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 Eo(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 Pn(t,e){t.attributes&&(pr+=e),t.characterData&&(hr+=e),t.childList&&(gr+=e),Ge=pr>0,Cn=hr>0,lt=gr>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=Se(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=Se(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=Se(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"),xe(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:g})=>g)),u=s;for(;u&&c.has(u);)u=u[p];let f=Ht(this,n);if(a){for(let y of a)y[U]=!1;let g=new Set(a);for(let y of i)g.has(y.node)&&(y.shouldDisconnect=!1)}this.commitInsertion(i,u);let h=this[U];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),a&&this.enqueueTreeReactions(a,"disconnectedCallback"),this.enqueueInsertionReactions(i,h),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,f),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return Rt(this,e)}querySelector(e){return vt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[An](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):xe(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[R];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 h=At(i);f=h.nodes,c&&(u=h.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[R]=e,n[D]=e}else{e[p]=null;let s=this[R];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[R]=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!==X||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===X&&!Qe(s.parent)&&n.push([()=>s.parent[k].removeChild?.(s.parent,o,s.index)]),this.nodeType===X&&!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){Er(e,n)}};function yr(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&&Er(o,"disconnectedCallback");let c=[];t.nodeType===X&&!Qe(t)&&c.push([()=>t[k].removeChild?.(t,e,a)]),xe(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[R]=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 Er(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{[R]=null;constructor(e){this[z]=e}getNamedItem(e){let n=String(e),r=this[z][S]===A?G(n):n,o=this[R];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[R];for(;s;){if(s.localName===o&&s[S]===r)return s;s=s[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[z][S]===A?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[S]===r))}removeNamedItemImmediately(e){let n=this[z],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let s=r.value;return r[p]=null,r[z]=null,Ge&&te({type:"attributes",target:n,attributeName:r.name,attributeNamespace:r[S],oldValue:s}),n[k].removeAttribute?.(n,r.name,r[S]),ct(n,r.localName,s,null,r[S]),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[R],i=null;for(;s;){if(s.localName===e.localName&&s[S]===e[S]){if(s===e)return s;i?i[p]=e:this[R]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[R]=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[S],oldValue:o?.value??null}),c&&n[k].removeAttribute?.(n,o.name,o[S]),(a||c)&&n[k].setAttribute?.(n,e.name,e.value,e[S]),a&&ct(n,e.localName,o?.value??null,e.value,e[S]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var ve=class extends J{nodeType=De;[S]=null;[p]=null;[z]=null;constructor(e,n,r){super(),this[x]=e,this[me]=n,r&&(this[S]=r)}get nodeName(){return this[x]}set nodeName(e){}get name(){return this[x]}set name(e){}get localName(){if(this[S]==null)return this[x];let e=this[x].indexOf(":");return e<0?this[x]:this[x].slice(e+1)}get prefix(){if(this[S]==null)return null;let e=this[x].indexOf(":");return e<0?null:this[x].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[x],attributeNamespace:this[S],oldValue:o}),this[k].setAttribute?.(r,this[x],n,this[S]),ct(r,this.localName,o,n,this[S])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[z]}get namespaceURI(){return this[S]}get specified(){return!0}};var bo={amp:"&",AMP:"&",apos:"\'",gt:">",GT:">",lt:"<",LT:"<",quot:\'"\',QUOT:\'"\'},No=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),To=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>\'"=/\\s]+(?:=([\'"])[^]*?\\3|=[^>\'"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Tr=/\\s([^<>\'"=/\\n\\s]+)(?:=(["\'])([\\s\\S]*?)\\2|=([^>\'"\\n\\s]*)|)/g,Oo="|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|",wo=/^(?:color|face|size)$/i;function br(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 bo[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function Or(t){return t.namespaceURI===A&&No.has(t.localName)}function Nr(t){let e=t.localName;return t[S]===Z&&(e==="foreignObject"||e==="desc"||e==="title")}function xo(t,e){if(Oo.includes(`|${t}|`))return!0;if(t!=="font")return!1;for(let n of e.matchAll(Tr))if(wo.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(To)){let a=i[1];if(a){let c=i[2],u=G(a),f=o[o.length-1]?.element??e,h=f[S]===Z?Z:A;if(u==="svg")h=Z;else if(h===Z){if(Nr(f))h=A;else if(xo(u,c)){for(;o.length>0;){let v=o[o.length-1];if(v.element[S]!==Z||Nr(v.element))break;o.pop(),s=v.target}h=A}}let g=h===A?u:a,y=n[Ie](g,h,null,g);for(let v of c.matchAll(Tr))y.setAttribute(v[1],br(v[3]||v[4]||""));if(s.append(y),Or(y)||h!==A&&i[4])continue;o.push({element:y,target:s}),s=h===A&&u==="template"?y.content:y}else if(i[5]){let c=G(i[5]);for(let u=o.length-1;u>=0;u--){let f=o[u],h=G(f.element[x]);if(h===c){s=f.target,o.length=u;break}if(f.element[S]===A&&h==="template")break}}else i[6]?s.append(n.createComment(i[6])):s.append(br(i[7]))}return r}function Vt(t){return xr([{type:"content",child:t[R]}])}function wr(t){return xr([{type:"opening",node:t}])}function xr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case"opening":{let r=n.node;switch(r.nodeType){case X:{let o=r;e.push(`<${o[x]}`);let s=o[re]?.[R];for(;s;){e.push(` ${s[x]}`);let a=s[me];a!==""&&(a=String(a).replace(/&/g,"&").replace(/"/g,"""),e.push(`="${a}"`)),s=s[p]}if(e.push(">"),Or(o))break;let i=o.namespaceURI===A&&o.localName==="template"?o[ie]:o;t.push({type:"closing",name:o[x]}),t.push({type:"content",child:i?.[R]??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;[S]=A;[fe]=null;get namespaceURI(){return this[S]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[x]:this[x].slice(e.length+1)}get nodeName(){return this[S]===A?Qn(this[x]):this[x]}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);mn(r);let s=this[S]===A?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);mn(r);let o=this[S]===A?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[S]===A?G(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return wr(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{[S]=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=Cn,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;[x]="#text"};var Be=class extends Ee{nodeType=Le;[x]="#comment"};var Ve=class extends oe{nodeType=he;[x]="#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=we;[x]="#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 tr(n),Mn(this,G(n))}createElementNS(e,n){let r=ht(e,n,"element");return Mn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return Mn(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===we)throw C("Cannot import a document node","NotSupportedError");return _t(e,n,this)}adoptNode(e){if(e[I]===this)return e;let n=At(e);return V(()=>{let r=e.parentNode;return r?yr(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 Mn(t,e,n=A,r=null,o=e){let s;if(n===Z)s=new He;else if(n===A&&o==="template")s=new Fe;else if(n===A){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=A,o=null){return zt(t,e),Object.defineProperties(t,{[x]:{value:n},[S]:{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 Xt=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 $t=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 So=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,vo=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Sr(t){return So.test(t)&&!vo.has(t)}function vr(t){return C(`Invalid custom element name: "${t}"`,"SyntaxError")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Sr(e))throw vr(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(!Sr(e))return Promise.reject(vr(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 Ro=["onerror","onunhandledrejection"],Ar=Symbol.for("@remote-dom/polyfill/global-property");function _r(t){return Object.getOwnPropertyDescriptors(t)}function Pr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!=="constructor"&&typeof r.value=="function"&&(r.value=In(r.value.bind(t)),e[n]=r);return e}function Cr(t){let e={};for(let n of Ro)e[n]={configurable:!0,enumerable:!0,get:In(()=>t[n]),set:In(r=>{t[n]=r})};return e}function Ao(t){return Object.assign(_r(t),Pr(t),Cr(t))}function In(t){return Object.defineProperty(t,Ar,{value:!0}),t}function Rr(t,e){for(let n of Reflect.ownKeys(e)){let r=_o(t,n);(r==null||Po(r))&&Object.defineProperty(t,n,e[n])}}function _o(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Po(t){return[t.value,t.get,t.set].some(e=>typeof e=="function"&&e[Ar]===!0)}var Re=class extends ge{[k]={};[mt]=[];[Oe]=Mo(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=Xt;PromiseRejectionEvent=$t;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)Co(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=_r(e),s=Object.assign(Pr(e),Cr(e));delete o.self,Object.defineProperties(globalThis,o),Rr(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),Rr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ao(e))}};function Co(t,e){t[mt].push(e(t)??{})}function Mo(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 Re;var Dn="~";var be=new WeakMap;function je(t){return be.get(t)}var Hn=new WeakMap,Do=0;function $(t){let e=Hn.get(t);return e==null&&(e=String(Do++),nn(t,e)),e}function nn(t,e){Hn.set(t,e)}var Ln=new WeakMap;function ko(t){return Ln.get(t)}var Gn=new WeakMap;function Lo(t){let e=Gn.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 Go=new WeakMap;function Ho(t){return Go.get(t)}function Un(t,e,n){let r=Ln.get(t);if(r==null&&(r={},Ln.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,$(t),e,n,1]])}function Ne(t,e,n){let r=Gn.get(t);if(r==null&&(r={},Gn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,$(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:$(t),type:e,element:t.localName,properties:kn(ko(t)),attributes:kn(Lo(t)),eventListeners:kn(Ho(t)),children:Array.from(t.childNodes).map(ze)};case 3:case 8:return{id:$(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function kn(t){return t?{...t}:void 0}function Bn(t,e,...n){let r=Hn.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,$(t),ze(e),n]]))};Ye.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,$(t),n]]))};Ye.setText=(t,e)=>{let n=je(t);n?.mutate([[2,$(t),e]])};Ye.setAttribute=(t,e,n)=>{t.tagName.includes("-")||Ne(t,e,n)};Ye.removeAttribute=(t,e)=>{t.tagName.includes("-")||Ne(t,e)};Re.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 Ir=["wheel","drag","pinch"];function Dr(t){let e=t;return typeof t=="object"&&t!==null&&e.graview==="host-hello"&&typeof e.nonce=="string"}function Lr(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)}},h=()=>{},g=b=>{if(n||!t.fromHost(b)||!Dr(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?.(),h();for(let M of c.splice(0))u(M)}};h=t.listen(g),t.ready({graview:"guest-ready",protocol:1});let y,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()=>{};y?.disconnect();let L=new M(()=>v.size(Math.ceil(N.getBoundingClientRect().height)));return L.observe(N),y=L,()=>L.disconnect()},close(){y?.disconnect(),h(),n?.close(),i.clear()}};return{guest:v,send:u}}var Hr=["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"],Ur=["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"],Br=["self","postMessage","setTimeout","clearTimeout","setInterval","clearInterval","queueMicrotask","structuredClone","crypto","console","DOMException"],Vr=["TEMPORARY","PERSISTENT"],gl=Object.freeze([...Hr,...Ur,...Br,...Vr]),yl=Object.freeze(["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"]),Gr=t=>typeof t=="symbol"?`[${t.description??"symbol"}]`:t;function Fr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Hr,...Ur,...Br,...e,"constructor",Symbol.toStringTag]),i=(w,P)=>{let q=Reflect.getOwnPropertyDescriptor(w,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:Vr.includes(P)&&typeof q.value=="number"},a=t,c=a.setTimeout,u=a.setInterval,f=a.crypto,h=(w,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 w.call(t,q,We,...ft)},g=f?Object.freeze({getRandomValues:w=>f.getRandomValues(w)}):void 0,y=a.document?.defaultView;if(y&&y!==a)for(let w of Reflect.ownKeys(y))typeof w=="symbol"||s.has(w)||Reflect.deleteProperty(y,w)||o.push(`window.${w}`);let v=[];for(let w=t;w&&w!==Object.prototype;w=Object.getPrototypeOf(w))v.push(w);for(let w of v)for(let P of Reflect.ownKeys(w))s.has(P)||(Reflect.deleteProperty(w,P)?r.push(Gr(P)):i(w,P)||o.push(Gr(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 w of N){let P=b();Object.defineProperty(P,"prototype",{value:w,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(w,"constructor",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push("Function.prototype.constructor"),w===Function.prototype&&Reflect.defineProperty(t,"Function",{value:P,writable:!0,enumerable:!1,configurable:!0})}let M=(w,P)=>{Reflect.defineProperty(t,w,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(w)};M("setTimeout",h(c,"setTimeout")),M("setInterval",h(u,"setInterval")),g&&M("crypto",g);for(let w of v.slice(1))Object.freeze(w);for(let w of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,w);Reflect.defineProperty(t,w,"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,Dn)}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,Dn,ze(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Un(this,e,n)}callRemoteMethod(e,...n){return Bn(this,e,...n)}};var d={},Vn={empty:!0},Uo={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"},Fn={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:Vn,br:Vn,wbr:Vn,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"}}},Bo=["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"],Vo={id:"text",class:"text",style:"style",lang:"text",role:"text",tabindex:{oneOf:["-1","0"]},transform:"geometry",...Object.fromEntries(Bo.map(t=>[t,"css"]))},ue={x:"geometry",y:"geometry",width:"geometry",height:"geometry"},sn={viewBox:"geometry",preserveAspectRatio:"geometry"},jr={oneOf:["userSpaceOnUse","objectBoundingBox"]},qr={oneOf:["R","G","B","A"]},ne={...ue,in:"text",result:"text"},zr={gradientUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},gradientTransform:"geometry",spreadMethod:{oneOf:["pad","reflect","repeat"]},href:"fragment"},Yr={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",...zr}},radialGradient:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",fx:"geometry",fy:"geometry",fr:"geometry",...zr}},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:jr,primitiveUnits:jr}},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:qr,yChannelSelector:qr}},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 Wr={section:["aria-label","title"]};function Fo(t){return/^aria-[a-z]+$/.test(t)}function jo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var qo=new Map(Object.keys(Yr).map(t=>[t.toLowerCase(),t]));function Xr(t){return qo.get(t.toLowerCase())}function $r(t,e,n){let r=n.toLowerCase(),o=t==="html"?[Fn[e]?.attributes,Uo]:[Yr[e]?.attributes,Vo],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(Fo(r)||jo(r))return{name:r,kind:"text"}}var Kr="~",an=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 Zr(){let t=new Map,e=new Map,n=new Map([[Kr,{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 h of f.listeners.values())s(h);for(let h of f.children)i(h)}},a=(u,f,h=0)=>{if(!an(u)||h>64)return se(u);let g=typeof u.id=="string"?u.id:void 0,y=f&&g!==void 0&&g!==Kr;y&&i(g);let v={children:[],listeners:new Map};y&&n.set(g,v);let b={};for(let[N,M]of Object.entries(u))N==="children"&&Array.isArray(M)?b[N]=M.map(L=>{let w=a(L,y,h+1);return y&&an(L)&&typeof L.id=="string"&&v.children.push(L.id),w}):N==="eventListeners"&&an(M)?b[N]=Object.fromEntries(Object.entries(M).map(([L,w])=>{if(typeof w!="function"||!y)return[L,void 0];let P=o(w);return v.listeners.set(L,P),[L,{listener:P}]})):b[N]=se(M,h+1);return b},c=u=>{if(!Array.isArray(u))return se(u);let[f,h]=u,g=typeof h=="string"?n.get(h):void 0;if(f===0){let y=a(u[2],g!==void 0),v=an(u[2])?u[2].id:void 0;if(g&&typeof v=="string"&&n.has(v)){let b=Number(u[3]);g.children.splice(Number.isInteger(b)&&b>=0&&b<=g.children.length?b:g.children.length,0,v)}return[f,se(h),y,se(u[3])]}if(f===1){let y=Number(u[2]);return g&&Number.isInteger(y)&&y>=0&&y<g.children.length&&i(g.children.splice(y,1)[0]),se(u)}if(f===3&&u[4]===3){let y=String(u[2]),v=u[3],b=g&&typeof v=="function"?o(v):void 0,N=g?.listeners.get(y);return N!==void 0&&s(N),b===void 0?g?.listeners.delete(y):g.listeners.set(y,b),[f,se(h),y,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 ln="graview-view-root",zo=["value","checked","key","pressed","files","refused","x","y","width","height","deltaX","deltaY","deltaMode","ctrlKey","metaKey","phase","pointerId","button","pressure","dx","dy","scale","rotation"],Yo=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/\'/g,"'"),Wo=t=>Object.freeze({html:t,toString:()=>t}),Qr=t=>typeof t=="object"&&t!==null&&typeof t.html=="string"&&Object.isFrozen(t),Jr=t=>t==null||t===!1?"":Array.isArray(t)?t.map(Jr).join(""):Qr(t)?t.html:Yo(String(t));function eo(t){customElements.get(ln)||customElements.define(ln,dt);let e=Event,n=Zr(),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(ln),u=l=>{let m=E=>{for(let O of Array.from(E.childNodes)){if(O.nodeType!==1)continue;if($(O)===l)return O;let T=m(O);if(T)return T}};return m(c)},f=l=>{let m=u(l.target);if(!m)return;let E=new e(l.event,{bubbles:!0}),O={};for(let T of zo)l[T]!==void 0&&(O[T]=l[T]);for(let T of Object.keys(O))Object.defineProperty(E,T,{value:O[T],enumerable:!0});m.dispatchEvent(E);for(let T of o){if(T.type!==l.event)continue;let _;try{_=new Set(Array.from(c.querySelectorAll(T.selector)))}catch{continue}for(let F=m;F&&F!==c;F=F.parentNode)if(_.has(F)){T.listener(Object.freeze({type:l.event,target:m,element:F,...O}));break}}},h=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 T of r)try{T(l.props)}catch(_){t.threw(_)}let E=t.now()-m,O=l.push;typeof O=="number"&&t.microtask(()=>t.microtask(()=>t.send({type:"pushed",push:O,ms:E})))},g;c.connect({mutate(l){g||(g=[],t.microtask(()=>{let m=g??[];g=void 0,t.send({type:"render",records:n.encode(m)})})),g.push(...l)},call:()=>{}});let y=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&&y(l)===y(m));function b(l,m){let E=Array.from(m.childNodes),O=0;for(let T of E){let _=l.childNodes[O]??null;if(_&&v(_,T)){N(_,T),O+=1;continue}if(y(T)!==null){let de=Array.from(l.childNodes).slice(O+1).find(Xe=>v(Xe,T));if(de){l.insertBefore(de,_),N(de,T),O+=1;continue}}l.insertBefore(T,_),O+=1}for(;l.childNodes.length>O;)l.removeChild(l.lastChild)}function N(l,m){if(l.nodeType!==1){l.data!==m.data&&(l.data=m.data);return}let E=l,O=m,T=M(E);for(let _ of E.getAttributeNames())O.hasAttribute(_)||(E.removeAttribute(_),T&&Ne(E,_,void 0));for(let _ of O.getAttributeNames()){let F=O.getAttribute(_);E.getAttribute(_)!==F&&E.setAttribute(_,F),T&&Ne(E,_,F)}b(E,O)}let M=l=>l.localName.includes("-");function L(l){for(let m of Array.from(l.childNodes)){if(m.nodeType!==1)continue;let E=m;if(M(E))for(let O of E.getAttributeNames())Ne(E,O,E.getAttribute(O)??void 0);L(E)}}function w(l,m,E){for(let O of Array.from(l.childNodes)){if(O.nodeType!==1)continue;let T=O,_=T.localName,F=m||_.toLowerCase()==="svg",de=F?Xr(_):Object.prototype.hasOwnProperty.call(Fn,_.toLowerCase())?_.toLowerCase():void 0;if(!de){E.add(`<${_}>`);continue}for(let Xe of T.getAttributeNames())(!$r(F?"svg":"html",de,Xe)||!F&&Wr[de]?.includes(Xe.toLowerCase()))&&E.add(`${de} ${Xe}`);w(T,F,E)}}function P(l){let m=document.createElement("div"),E=Array.isArray(l)?l:[l];for(let T of E)if(T!=null)if(typeof T=="string"||Qr(T)){let _=document.createElement("div");_.innerHTML=typeof T=="string"?T:T.html,m.append(...Array.from(_.childNodes))}else m.append(T);let O=new Set;w(m,!1,O),i=[...O],i.length>0&&t.warn(`The host will not draw: ${i.join(", ")}`),L(m),b(c,m)}let q=[],We=new Set(Ir),ft="[]",cn=!1,Yn=()=>{cn||(cn=!0,t.microtask(()=>{cn=!1;let l=[...new Map([...o].filter(E=>We.has(E.type)).map(E=>[`${E.type} ${E.selector}`,{event:E.type,selector:E.selector}])).entries()].sort(([E],[O])=>E<O?-1:E>O?1:0).map(([,E])=>E),m=JSON.stringify(l);m!==ft&&(ft=m,t.send({type:"gestures",bound:l}))}))},Wn="[]",un=!1,Xn=()=>{un||(un=!0,t.microtask(()=>{un=!1;let l=[...new Set([...o].filter(E=>E.type==="click"&&typeof E.selector=="string").map(E=>E.selector))].sort().slice(0,200),m=JSON.stringify(l);m!==Wn&&(Wn=m,t.send({type:"clicks",selectors:l}))}))};return{view: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,E){let O={type:l,selector:m,listener:E};return o.add(O),typeof l=="string"&&!a.has(l)&&(a.add(l),t.send({type:"hears",events:[l]})),We.has(l)&&Yn(),l==="click"&&Xn(),()=>{o.delete(O),We.has(l)&&Yn(),l==="click"&&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 Wo(l.reduce((E,O,T)=>E+O+(T<m.length?Jr(m[T]):""),""))},get refused(){return i},get hardening(){return t.hardening()}}),hear:h,find:l=>{try{let m=c.querySelectorAll(l)[0];return m?$(m):void 0}catch{return}},listened:l=>{let m=new Set;for(let E of o)if(E.type===l)try{for(let O of Array.from(c.querySelectorAll(E.selector))){let T=$(O);T&&m.add(T)}}catch{}return[...m]}}}var zn={removed:[],stuck:[],sealed:!1,worker:!1},jn=Lr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>to.hear(t)}),to=eo({send:t=>jn.send(t),act:(t,e)=>jn.guest.act(t,e),navigate:t=>jn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>zn}),Xo=to.view;Object.defineProperty(globalThis,"graview",{value:Xo,enumerable:!0,configurable:!0,writable:!1});var qn="WorkerGlobalScope"in globalThis?Fr(globalThis,["graview"]):zn;zn=qn;if(qn.stuck.length>0)throw new Error(`The view\'s worker could not be hardened: ${qn.stuck.join(", ")} would not go.`);})();\n';export{e as VIEW_RUNTIME};
|
|
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 +1 @@
|
|
|
1
|
-
import{G as h}from"./chunk.
|
|
1
|
+
import{G as h}from"./chunk.MODLZJD4.js";import{Qd as u,Sc as a,ed as m}from"./chunk.6HY6ZGEE.js";import{b as l}from"./chunk.AJZBJBMO.js";function f(e){let t=[e?.typography?.body,e?.typography?.display,e?.typography?.mono],o=[];for(let i of t){let n=i?.split(",")[0]?.trim().replace(/^["']|["']$/g,"");!n||m(n)||n.toLowerCase()!==a.toLowerCase()&&(o.includes(n)||o.push(n))}return o}function g(e){let t=f(e);return t.length===0?null:`https://fonts.googleapis.com/css2?${t.map(i=>`family=${encodeURIComponent(i).replace(/%20/g,"+")}:wght@400;500;600;700`).join("&")}&display=swap`}var r=l(h(),1);function k(e,t){return new u({schema:e.schema,mutations:e.mutations??[],invariants:e.invariants??[],...t?{snapshot:t}:{},...e.policy?{policy:e.policy}:{},...e.publishing?{publishing:e.publishing}:{},...e.tidying?{tidying:e.tidying}:{},...e.intelligence?{intelligence:e.intelligence}:{},...e.brand?.timeZone?{timeZone:e.brand.timeZone}:{}})}function d(e){if(typeof document>"u")return e==="dark"?"dark":"light";let t=document.documentElement.dataset.theme;return t==="dark"||t==="light"?t:e==="dark"||e==="light"?e:typeof matchMedia=="function"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function v(e,t){let[o,i]=(0,r.useState)(()=>d(t));return(0,r.useEffect)(()=>{if(!e||typeof document>"u")return;let n=()=>i(d(t));n();let s=new MutationObserver(n);s.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]});let c=typeof matchMedia=="function"?matchMedia("(prefers-color-scheme: dark)"):null;return c?.addEventListener?.("change",n),()=>{s.disconnect(),c?.removeEventListener?.("change",n)}},[e,t]),o}export{g as a,k as b,v as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as p}from"./chunk.3PBTN7RO.js";import{vc as g}from"./chunk.6HY6ZGEE.js";function w(n){let r=n.policy?.sees??[];if(r.length===0)return!0;let t=o=>o.fields===void 0&&(o.hide?.length??0)===0;return n.schema.kinds.every(o=>r.some(s=>s.roles==="*"&&!s.own&&!s.via&&t(s)&&s.kinds.includes(o)))}function b(n){let r=n;for(let t=0;t<8&&r?._zod?.def;t+=1){let o=r._zod.def;if(o.type==="enum")return Object.values(o.entries);if(o.type==="literal")return o.values;if(!("innerType"in o))return;r=o.innerType}}var c=(n,r)=>({ok:!1,reason:n,message:r});function k(n,r){return p(n).find(t=>(t.as??t.act)===r)??p(n).find(t=>t.act===r&&t.as===void 0)}var m=n=>typeof n=="object"&&n!==null&&!Array.isArray(n)&&"href"in n;function S(n,r,t,o,s){let l=k(r,t);if(!l)return c("undeclared",`This view may not ask for \u201C${t}\u201D: its manifest does not name it.`);let u={},f=new Map;for(let[a,d]of Object.entries(o)){let y=i=>{if(!m(i))return i;let e=typeof i.href=="string"?s?.file(i.href):void 0;if(!e)throw c("malformed",`\u201C${a}\u201D is a file the host did not hand this view: a view hands an act a file the person dropped (event.files), or one a record it was shown holds, as it was handed.`);let h=s?.dropped(e.href);if(h){if(f.has(e.href))throw c("malformed",`\u201C${a}\u201D hands the act a dropped file it already carries: each file a person dropped goes in one act, once.`);f.set(e.href,h)}return e};try{u[a]=Array.isArray(d)?d.map(y):y(d)}catch(i){return i}}if(!w(n)){let a=new Set([...f.values()].map(e=>e.target)),d=a.size===1?[...a][0]:void 0,y=e=>m(e)&&typeof e.href=="string"&&f.has(e.href)||g(e)||d!==void 0&&e===d&&s?.shown.has(d)===!0;return f.size>0&&a.size===1&&Object.values(u).every(e=>Array.isArray(e)?e.every(y):y(e))?{ok:!0,name:l.act,args:{...u,...l.constants??{}},spent:[...f.keys()]}:c("press-only","In this app some members may not see some records, so a view's act applies only when you press it.")}return{ok:!0,name:l.act,args:{...u,...l.constants??{}}}}export{w as a,b,c,k as d,S as e};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as te}from"./chunk.3PBTN7RO.js";import{b as H,c as ee}from"./chunk.QDVGHI7R.js";import"./chunk.6P6NGZ6D.js";import{la as U,oa as X,ua as Y,uc as Q,ya as z}from"./chunk.6HY6ZGEE.js";import"./chunk.FQLNBIQ5.js";import"./chunk.AJZBJBMO.js";function ue(t){let n=t?.indexOf(":")??-1;if(!(!t||n<=0||n===t.length-1))return{relation:t.slice(0,n),record:t.slice(n+1)}}function re(t,n){if(t.length===0)return!0;let d=`${n.split("/")[0]}/*`;return t.some(a=>a==="*"||a==="*/*"||a===n||a===d)}function ie(t,n){let d=n.startsWith("image/")?"image":n.startsWith("video/")?"video":"file";return t.find(a=>a.as===d)??t.find(a=>a.as==="file")}function pe(t,n){let d=new Set(t.map(w=>w.as==="image"?"image/":w.as==="video"?"video/":""));if(d.has("")||n.kinds.length===0)return n.kinds.join(",");let a=[];for(let w of d){let p=n.kinds.filter(l=>l.startsWith(w));a.push(...p.length>0?p:[`${w}*`])}return a.join(",")}var W=t=>t.input?.shape??{},ae=(t,n)=>W(t)[n]?.safeParse(void 0).success===!1;function se(t,n){let d=new Set(H(t.input).map(a=>a.name));return Object.keys(W(t)).filter(a=>!n.has(a)&&!d.has(a)&&ae(t,a)&&W(t)[a].safeParse("a name").success&&!W(t)[a].safeParse(1).success)}var me=t=>t.replace(/\.[a-z0-9]{1,5}$/i,"")||t,oe=(t,n)=>{let d=Number.isFinite(Date.parse(n))?new Date(Date.parse(n)).toISOString():n;return[n,d,d.replace(/\.\d{3}Z$/,"Z"),n.slice(0,10)].find(a=>t.safeParse(a).success)},ge="2026-01-01T00:00:00.000Z";function ne(t,n){let d=W(t),a=new Set(se(t,n)),w=Object.keys(d).filter(l=>!n.has(l)&&!a.has(l)&&ae(t,l)),p=w.filter(l=>oe(d[l],ge)!==void 0);return{timed:p,left:w.filter(l=>!p.includes(l))}}function de(t,n,d,a,w){let p=e=>({ok:!1,says:e}),{kind:l}=a,R=(d.accepts??[]).filter(e=>e.kind===l&&(a.field===void 0||e.field===a.field));if(R.length===0)return p(a.field===void 0?`The view's accepts names no field of "${l}", so nothing dropped there can become one.`:`The view's accepts does not name ${l}'s "${a.field}".`);let k=w.files;if(!k||!(k.maxBytes>0))return p("This host takes no files.");let O=R.flatMap(e=>{let r=te(t,e.kind,e.field);return r?[{field:e.field,...r}]:[]}),v=O.filter(e=>e.as==="file"||k.kinds.length===0||k.kinds.some(r=>r==="*"||r==="*/*"||r.startsWith(e.as==="image"?"image/":"video/")));if(v.length===0)return p(`This host takes none of what ${l}'s ${O.map(e=>`"${e.field}"`).join(" or ")} holds.`);let c=a.connect===void 0?void 0:ue(a.connect);if(a.connect!==void 0&&(!c||w.shown.has(a.connect)))return p(`data-drop-connect is "<relation>:<record id>", not "${a.connect}".`);if(c&&!w.shown.has(c.record))return p(`data-drop-connect names "${c.record}", which this view was not shown.`);let m=c?t.seenBy(n).graph.getNode(c.record):void 0;if(c&&!m)return p(`data-drop-connect names "${c.record}", which this seat does not see.`);let $=e=>Object.hasOwn(t.schema.tryDefinition(e)?.edges??{},c.relation),D=c?$(l):!1;if(c&&!D&&!$(m.kind))return p(`Neither a "${l}" nor a "${m.kind}" has the relation "${c.relation}".`);let K=t.allMutations(),S=e=>t.permits(e,n).ok,J=e=>v.every(r=>Object.hasOwn(W(e),r.field)),V=K.filter(e=>(e.creates??[]).includes(l)&&J(e)),F=Y(t.schema.tryDefinition(l),l),T=X(t.schema,l).toLowerCase(),E=m?U(t.schema.tryDefinition(m.kind),m):void 0,B=e=>`${e===1?`a ${F}`:`${e} ${T}`}${E?` to ${E}`:""}`,q=e=>`Add ${B(e)}`,C=e=>`Added ${B(e)}.`,N=`Drop to add ${T}${E?` to ${E}`:""}.`,I=(e,r,h,g)=>{let A=new Set(Object.keys(r)),b=z(h.at)??g??new Date().toISOString();for(let L of ne(e,A).timed)r[L]=oe(W(e)[L],b);for(let L of se(e,A))r[L]=me(h.name);return r},Z=(e,...r)=>new Set([...v.map(h=>h.field),...r,...H(e.input).map(h=>h.name)]),x=(e,...r)=>ne(e,Z(e,...r)).left,i=(e,r)=>p(`"${e.title??e.name}" asks for ${r.map(h=>`"${h}"`).join(" and ")}, which no dropped file says, so nothing dropped here can become a ${F}.`),o=(e,r)=>e.list?[r]:r,f={ok:!0,kind:l,fields:v,accept:pe(v,k),...c?{connect:c}:{},intent:q,invite:N,added:C};if(!c){let e=V.find(r=>!r.subject&&S({name:r.name,args:{}}));return e?x(e).length>0?i(e,x(e)):{...f,calls:r=>[{name:e.name,args:I(e,{[r.field]:o(v.find(h=>h.field===r.field),r.value)},r.value,r.at)}]}:p(`This seat may not make a "${l}" here.`)}let s=V.find(e=>e.subject&&(e.subject.kinds==="*"||e.subject.kinds.includes(m.kind))&&(e.connects??[]).includes(c.relation)&&S({name:e.name,args:{[e.subject.arg]:c.record}}));if(s){let e=s.subject.arg;return x(s,e).length>0?i(s,x(s,e)):{...f,calls:r=>[{name:s.name,args:I(s,{[e]:c.record,[r.field]:o(v.find(h=>h.field===r.field),r.value)},r.value,r.at)}]}}let u=V.find(e=>!e.subject&&S({name:e.name,args:{}}));if(!u)return p(`This seat may not make a "${l}" here.`);if(x(u).length>0)return i(u,x(u));let y=D?l:m.kind,P=D?m.kind:l,M=K.find(e=>{if(!(e.connects??[]).includes(c.relation)||!e.subject)return!1;let r=e.subject.kinds;if(r!=="*"&&!r.includes(y))return!1;let h=H(e.input).find(g=>g.name!==e.subject.arg&&(g.kinds.includes("*")||g.kinds.includes(P)));return h?S({name:e.name,args:D?{[h.name]:c.record}:{[e.subject.arg]:c.record}}):!1});if(!M)return p(`This seat may not link a "${l}" to ${c.record} by "${c.relation}".`);let G=M.subject.arg,_=H(M.input).find(e=>e.name!==G&&(e.kinds.includes("*")||e.kinds.includes(P))).name;return{...f,calls:(e,r)=>[{name:u.name,args:I(u,{[e.field]:o(v.find(h=>h.field===e.field),e.value)},e.value,e.at)},{name:M.name,args:D?{[G]:Q(r*2),[_]:c.record}:{[G]:c.record,[_]:Q(r*2)}}]}}var le=t=>t.type.startsWith("image/"),ye=t=>t.type.startsWith("video/"),he=`
|
|
2
2
|
[data-graview-drop-over] { outline: 2px dashed var(--graview-accent, Highlight) !important; outline-offset: 2px !important; background-color: color-mix(in srgb, var(--graview-accent, Highlight) 10%, transparent) !important; }
|
|
3
3
|
[data-graview-drop-status], [data-graview-drop-refused] { margin: 4px 0 0; font: 0.8125rem/1.4 var(--graview-font-body, system-ui, sans-serif); color: var(--graview-ink-muted, GrayText); }
|
|
4
4
|
[data-graview-drop-refused] { color: var(--graview-warn, var(--graview-ink, CanvasText)); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk.
|
|
1
|
+
import{a as f}from"./chunk.GME63ZHI.js";import{la as d}from"./chunk.6HY6ZGEE.js";function S(e){let o=e.indexOf("{"),a=e.indexOf("["),t=a!==-1&&(o===-1||a<o)?a:o;if(t===-1)return;let n=e[t],r=n==="["?"]":"}",i=0,u=!1,l=!1;for(let s=t;s<e.length;s++){let c=e[s];if(u){l?l=!1:c==="\\"?l=!0:c==='"'&&(u=!1);continue}if(c==='"')u=!0;else if(c===n)i+=1;else if(c===r&&(i-=1,i===0))try{return JSON.parse(e.slice(t,s+1))}catch{return}}}function w(e,o){let a;try{a=e.mutation(o.mutation)}catch{return o}let t={...o.args},n=!1;for(let r of f(a.input)){if(r.control!=="node")continue;let i=t[r.name];if(typeof i!="string"||i.length===0||e.graph.getNode(i))continue;let u=i.trim().toLowerCase(),l=[...e.graph.allNodes()].filter(s=>(r.kinds.includes("*")||r.kinds.includes(s.kind))&&d(e.schema.tryDefinition(s.kind),s).trim().toLowerCase()===u);l.length===1&&(t[r.name]=l[0].id,n=!0)}return n?{...o,args:t}:o}function x(e,o,a){let t=a===void 0?null:new Set(a),n=[];for(let r of o){if(typeof r.mutation!="string")continue;let i=!0;try{e.mutation(r.mutation)}catch{i=!1}i?t&&!t.has(r.mutation)&&n.push({proposal:r,why:"not-allowed"}):n.push({proposal:r,why:"unknown"})}return n}function v(e,o,a){let t=a===void 0?null:new Set(a);return o.filter(n=>{if(typeof n.mutation!="string"||t&&!t.has(n.mutation))return!1;try{e.mutation(n.mutation)}catch{return!1}return n.args!==null&&typeof n.args=="object"})}export{S as a,w as b,x as c,v as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as g,
|
|
1
|
+
import{G as g,S as y,ea as m,oa as d}from"./chunk.MODLZJD4.js";import{b as S}from"./chunk.AJZBJBMO.js";var v=S(g(),1);function k(){let{store:w,principal:a,ai:n,aiDesk:r,seatTalk:i,views:p,app:t,brand:l,view:A,selection:s}=m(),e=y(w,a),c=d(),o=A.within?.view;return(0,v.useMemo)(()=>({store:e,principal:a,ai:n,desk:r,seatTalk:i,goTo:c,places:[...p.places()],app:t??{name:l?.name??"app",schema:e.schema,...e.policy?{policy:e.policy}:{}},...o?{place:o}:{},selection:s}),[e,a,n,r,i,c,p,t,l,o,s])}export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=Symbol.for("@graview/core:file"),f=Symbol.for("@graview/core:node-ref"),o=n=>typeof n=="object"&&n!==null?n._zod?.def:void 0;function t(n){let e=o(n);return e?.[s]??(e?.innerType?t(e.innerType):void 0)}function y(n){let e=t(n);if(e)return{as:e,list:!1};let r=o(n);for(;r?.innerType;)r=o(r.innerType);let i=r?.type==="array"?t(r.element):void 0;return i?{as:i,list:!0}:void 0}function l(n){if(typeof n!="object"||n===null)return;let e=n[f];if(e)return e;let r=o(n);return r?.[f]??(r?.innerType?l(r.innerType):void 0)}function a(n){let e=n?.shape??{};return Object.entries(e).flatMap(([r,i])=>{let d=l(i);return d?[{name:r,kinds:d}]:[]})}var u=n=>typeof n=="object"&&n!==null&&!Array.isArray(n)&&typeof n.href=="string"&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.bytes=="number",p=n=>(Array.isArray(n)?n:[n]).filter(u);export{y as a,a as b,u as c,p as d};
|