@highstate/designer 0.9.16 → 0.9.18
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/0A0GXgOL.js +13 -0
- package/.output/public/_nuxt/1DNp92w6.js +1 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5bLW0GMw.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/6nHXG8SA.js +1 -0
- package/.output/public/_nuxt/84XNjSIe.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/9ZFiTIhr.js +1 -0
- package/.output/public/_nuxt/B-hkwWGT.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B5ZR69Tn.js +1 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7grBCAR.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/BBGuKPBd.js +1 -0
- package/.output/public/_nuxt/BDzgwa52.js +1 -0
- package/.output/public/_nuxt/BE2KfCdU.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHREFWD.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BHrmToEH.js +1 -0
- package/.output/public/_nuxt/BIAuTxu3.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BIHI7g3E.js +1 -0
- package/.output/public/_nuxt/BKmAPqal.js +1 -0
- package/.output/public/_nuxt/BLOpwnqT.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BLxL40Jp.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMMyXqK5.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BPzJO5Oe.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BQvybpQq.js +1 -0
- package/.output/public/_nuxt/BR7mELCv.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTEhxafZ.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BU7Cl-8B.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXY8tDGw.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/B_HjzqPZ.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/B_wu9Dqv.js +1 -0
- package/.output/public/_nuxt/BbcW6ACK.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BebE75YV.js +1 -0
- package/.output/public/_nuxt/BepWV7mh.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/Bk5OV074.js +1 -0
- package/.output/public/_nuxt/BkPM1oy1.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/Bl2oy6fF.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bm_zuxCd.js +1 -0
- package/.output/public/_nuxt/BoKiGodi.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtsDLbAf.js +1 -0
- package/.output/public/_nuxt/Btyk0a-E.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/BuidTy5i.js +1 -0
- package/.output/public/_nuxt/BvAqAH-y.js +1 -0
- package/.output/public/_nuxt/BvYfgXkl.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-_oQ9hf.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3khCPGq.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C7Pw0Ztw.js +1 -0
- package/.output/public/_nuxt/C8-UwF3o.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8j9CRIf.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CA7CTBwS.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGqH5EJj.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CHadp7IV.js +1 -0
- package/.output/public/_nuxt/CHh-QcGE.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLvts2aQ.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CNBtkm4J.js +6 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COEtLSDF.js +1 -0
- package/.output/public/_nuxt/COI20M4I.js +1 -0
- package/.output/public/_nuxt/COWjEZnb.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CPSgaaQ0.js +1 -0
- package/.output/public/_nuxt/CPtXGFXV.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTIxkRwW.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CTUD0bHN.js +1 -0
- package/.output/public/_nuxt/CTWiQX6C.js +1 -0
- package/.output/public/_nuxt/CU1B2r8a.js +1 -0
- package/.output/public/_nuxt/CU27uY9n.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYRjgJw9.js +26 -0
- package/.output/public/_nuxt/CZlF05X6.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/Cb0HU5_O.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CcyOm34o.js +1 -0
- package/.output/public/_nuxt/CdggvHu8.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/CfeIJUat.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj-b45ZR.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/ClbN2oa7.js +2 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/CnK8MTSM.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CtMxL075.js +21 -0
- package/.output/public/_nuxt/CtrldY6v.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cv9koXgw.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D-pF80u_.js +1 -0
- package/.output/public/_nuxt/D08WgyRC.js +1 -0
- package/.output/public/_nuxt/D0Gq3ULd.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D1uDOp7C.js +1 -0
- package/.output/public/_nuxt/D22FLkUw.js +1 -0
- package/.output/public/_nuxt/D2CYqzqI.js +1 -0
- package/.output/public/_nuxt/D32k8WzR.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7ScPSBf.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DCWrMWBD.js +1 -0
- package/.output/public/_nuxt/DEsY2yuF.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DKYwYmdq.js +1 -0
- package/.output/public/_nuxt/DKzvysjW.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMDPKkZ0.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DNrj_gVY.js +1 -0
- package/.output/public/_nuxt/DPcUKYIF.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DPvdOr2J.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRprw4p4.js +1 -0
- package/.output/public/_nuxt/DS1LvVMU.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUSGQflk.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DbtIzDGy.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/DeWFVDHI.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df68jz8_.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/DiinP2Uv.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkhsQLT2.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlfHMoPT.js +1 -0
- package/.output/public/_nuxt/DljmTZ5-.js +1 -0
- package/.output/public/_nuxt/Dn2_MT6a.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/Dr8Zlu6v.js +1 -0
- package/.output/public/_nuxt/DrZfEa88.js +1 -0
- package/.output/public/_nuxt/Drp5UXmf.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dtc2v4kS.js +1 -0
- package/.output/public/_nuxt/DwheRqRn.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DyJlTyXw.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/ETK3OkTL.js +1 -0
- package/.output/public/_nuxt/I3RK9BU8.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/IvJ92aGK.js +1 -0
- package/.output/public/_nuxt/JhPuU2gP.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/NleAzG8P.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/PoHY5YXO.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/SQImb3Xm.js +1513 -0
- package/.output/public/_nuxt/SVGiTNnK.js +1 -0
- package/.output/public/_nuxt/SettingsDataTable.BLJqwlEK.css +1 -0
- package/.output/public/_nuxt/UInuXPgp.js +1 -0
- package/.output/public/_nuxt/UQxqNY8s.js +273 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/Xi2tawMN.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/ZwEiOJEn.js +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/about.fWlW3EhQ.css +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/brDaU2vB.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/b0e10f5e-bdc5-4007-9281-161aa323adf1.json +1 -0
- package/.output/public/_nuxt/codicon.DCmgc-ay.ttf +0 -0
- package/.output/public/_nuxt/components.CIe9upZ4.css +1 -0
- package/.output/public/_nuxt/dglhsJpM.js +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/edge-router-Cceh9XsC.js +4 -0
- package/.output/public/_nuxt/editor.worker-7Ic39DJY.js +12 -0
- package/.output/public/_nuxt/entry.YsT17dxl.css +1 -0
- package/.output/public/_nuxt/error-404.CH3riSrg.css +1 -0
- package/.output/public/_nuxt/error-500.C8Qk6cR7.css +1 -0
- package/.output/public/_nuxt/f7oK2omx.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/fve9TYiY.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/graph-layout-CFj469YF.js +1 -0
- package/.output/public/_nuxt/graph-resolver-ClVztv7P.js +175 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/hira-1.DuDDiA5P.png +0 -0
- package/.output/public/_nuxt/hira-unlock-impossible.B5Pl3pvF.png +0 -0
- package/.output/public/_nuxt/index.cU4FhqMM.css +1 -0
- package/.output/public/_nuxt/index.smtD6lYF.css +1 -0
- package/.output/public/_nuxt/instances.CGwVkdDM.css +1 -0
- package/.output/public/_nuxt/irsrSlf-.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.B6OSyW2I.woff2 +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.BpRar1d5.ttf +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.Bvl3VxMs.woff +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.TEmAk13K.eot +0 -0
- package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +1 -0
- package/.output/public/_nuxt/oVh4WQ21.js +1 -0
- package/.output/public/_nuxt/operations.BfCOaoAx.css +1 -0
- package/.output/public/_nuxt/operations.DvUkbQbt.css +1 -0
- package/.output/public/_nuxt/p5ZwBirz.js +1 -0
- package/.output/public/_nuxt/pkIJ47B4.js +1 -0
- package/.output/public/_nuxt/q-j0iyEw.js +1 -0
- package/.output/public/_nuxt/qliWkHmV.js +1 -0
- package/.output/public/_nuxt/secrets._PitGGJK.css +1 -0
- package/.output/public/_nuxt/settings.BCRf8MgD.css +1 -0
- package/.output/public/_nuxt/terminals.B07MGsh3.css +1 -0
- package/.output/public/_nuxt/uMbE6_td.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/vuetify.C_sYHwU6.css +5 -0
- package/.output/public/_nuxt/xVLoeQ-B.js +1 -0
- package/.output/public/_nuxt/yaml.worker-DLQcEOxU.js +410 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/libavoid.wasm +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/index.mjs +18396 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14586 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +58 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/contentTypeParsers-SN4WL9ze.mjs +13 -0
- package/.output/server/node_modules/@trpc/server/dist/getErrorShape-Uhlrl4Bk.mjs +263 -0
- package/.output/server/node_modules/@trpc/server/dist/http-CWyjOa1l.mjs +0 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs +358 -0
- package/.output/server/node_modules/@trpc/server/dist/node-http-ZvZKxPic.mjs +222 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-CUiPknO-.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-UMO3vUa_.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/parseTRPCMessage-ByIHyFRz.mjs +63 -0
- package/.output/server/node_modules/@trpc/server/dist/resolveResponse-CzlbRpCI.mjs +2183 -0
- package/.output/server/node_modules/@trpc/server/dist/tracked-gU3ttYjg.mjs +371 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-D89CaGtL.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/utils-DdbbrDku.mjs +137 -0
- package/.output/server/node_modules/@trpc/server/dist/ws-DsZkVWpZ.mjs +420 -0
- package/.output/server/node_modules/@trpc/server/package.json +232 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6705 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1402 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1806 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6696 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1677 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +95 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +219 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C13swrCa.mjs +48 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CAk5S5m6.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DeCxexjU.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Di5OD67x.mjs +190 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +101 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +18 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +550 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1388 -0
- package/.output/server/node_modules/ws/package.json +69 -0
- package/.output/server/node_modules/ws/wrapper.mjs +8 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +131 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +41 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +18 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +6 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/.output/server/node_modules/zod/v4/core/api.js +906 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +565 -0
- package/.output/server/node_modules/zod/v4/core/core.js +61 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +195 -0
- package/.output/server/node_modules/zod/v4/core/function.js +75 -0
- package/.output/server/node_modules/zod/v4/core/index.js +15 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +57 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +95 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +1718 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/.output/server/node_modules/zod/v4/core/util.js +493 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +135 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +39 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +121 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/.output/server/package.json +29 -0
- package/package.json +6 -6
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export { A as AliasSortingPlugin, D as DeprecationsPlugin, P as PromisesPlugin, T as TemplateParamsPlugin } from './shared/unhead.DeCxexjU.mjs';
|
|
2
|
+
import { d as defineHeadPlugin } from './shared/unhead.CApf5sj3.mjs';
|
|
3
|
+
export { F as FlatMetaPlugin, S as SafeInputPlugin } from './shared/unhead.CApf5sj3.mjs';
|
|
4
|
+
import './shared/unhead.DZbvapt-.mjs';
|
|
5
|
+
import './shared/unhead.C13swrCa.mjs';
|
|
6
|
+
import './shared/unhead.DQc16pHI.mjs';
|
|
7
|
+
import './shared/unhead.yem5I2v_.mjs';
|
|
8
|
+
|
|
9
|
+
function CanonicalPlugin(options) {
|
|
10
|
+
return (head) => {
|
|
11
|
+
let host = options.canonicalHost || (!head.ssr ? window.location.origin : "");
|
|
12
|
+
if (!host.startsWith("http") && !host.startsWith("//")) {
|
|
13
|
+
host = `https://${host}`;
|
|
14
|
+
}
|
|
15
|
+
host = new URL(host).origin;
|
|
16
|
+
function resolvePath(path) {
|
|
17
|
+
if (options?.customResolver) {
|
|
18
|
+
return options.customResolver(path);
|
|
19
|
+
}
|
|
20
|
+
if (path.startsWith("http") || path.startsWith("//"))
|
|
21
|
+
return path;
|
|
22
|
+
try {
|
|
23
|
+
return new URL(path, host).toString();
|
|
24
|
+
} catch {
|
|
25
|
+
return path;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
key: "canonical",
|
|
30
|
+
hooks: {
|
|
31
|
+
"tags:resolve": (ctx) => {
|
|
32
|
+
for (const tag of ctx.tags) {
|
|
33
|
+
if (tag.tag === "meta") {
|
|
34
|
+
if (tag.props.property?.startsWith("og:image") || tag.props.name?.startsWith("twitter:image")) {
|
|
35
|
+
tag.props.content = resolvePath(tag.props.content);
|
|
36
|
+
} else if (tag.props?.property === "og:url") {
|
|
37
|
+
tag.props.content = resolvePath(tag.props.content);
|
|
38
|
+
}
|
|
39
|
+
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
|
|
40
|
+
tag.props.href = resolvePath(tag.props.href);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function InferSeoMetaPlugin(options = {}) {
|
|
50
|
+
return defineHeadPlugin((head) => {
|
|
51
|
+
head.push({
|
|
52
|
+
meta: [
|
|
53
|
+
{
|
|
54
|
+
name: "twitter:card",
|
|
55
|
+
content: options.twitterCard || "summary_large_image",
|
|
56
|
+
tagPriority: "low"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"property": "og:title",
|
|
60
|
+
"tagPriority": "low",
|
|
61
|
+
"data-infer": ""
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"property": "og:description",
|
|
65
|
+
"tagPriority": "low",
|
|
66
|
+
"data-infer": ""
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
return {
|
|
71
|
+
key: "infer-seo-meta",
|
|
72
|
+
hooks: {
|
|
73
|
+
"tags:beforeResolve": ({ tagMap }) => {
|
|
74
|
+
let title = head._titleTemplate || head._title;
|
|
75
|
+
const ogTitle = tagMap.get("meta:og:title");
|
|
76
|
+
if (typeof ogTitle?.props["data-infer"] !== "undefined") {
|
|
77
|
+
if (typeof title === "function") {
|
|
78
|
+
title = title(head._title);
|
|
79
|
+
}
|
|
80
|
+
ogTitle.props.content = options.ogTitle ? options.ogTitle(title) : title || "";
|
|
81
|
+
ogTitle.processTemplateParams = true;
|
|
82
|
+
}
|
|
83
|
+
const description = tagMap.get("meta:description")?.props?.content;
|
|
84
|
+
const ogDescription = tagMap.get("meta:og:description");
|
|
85
|
+
if (typeof ogDescription?.props["data-infer"] !== "undefined") {
|
|
86
|
+
ogDescription.props.content = options.ogDescription ? options.ogDescription(description) : description || "";
|
|
87
|
+
ogDescription.processTemplateParams = true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { CanonicalPlugin, InferSeoMetaPlugin, defineHeadPlugin };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { a as createUnhead } from './shared/unhead.CAk5S5m6.mjs';
|
|
2
|
+
import { T as TagsWithInnerContent, S as SelfClosingTags$1 } from './shared/unhead.yem5I2v_.mjs';
|
|
3
|
+
import 'hookable';
|
|
4
|
+
import './shared/unhead.Di5OD67x.mjs';
|
|
5
|
+
import './shared/unhead.DZbvapt-.mjs';
|
|
6
|
+
|
|
7
|
+
// @__NO_SIDE_EFFECTS__
|
|
8
|
+
function createHead(options = {}) {
|
|
9
|
+
const unhead = createUnhead({
|
|
10
|
+
...options,
|
|
11
|
+
// @ts-expect-error untyped
|
|
12
|
+
document: false,
|
|
13
|
+
propResolvers: [
|
|
14
|
+
...options.propResolvers || [],
|
|
15
|
+
(k, v) => {
|
|
16
|
+
if (k && k.startsWith("on") && typeof v === "function") {
|
|
17
|
+
return `this.dataset.${k}fired = true`;
|
|
18
|
+
}
|
|
19
|
+
return v;
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
init: [
|
|
23
|
+
options.disableDefaults ? void 0 : {
|
|
24
|
+
htmlAttrs: {
|
|
25
|
+
lang: "en"
|
|
26
|
+
},
|
|
27
|
+
meta: [
|
|
28
|
+
{
|
|
29
|
+
charset: "utf-8"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "viewport",
|
|
33
|
+
content: "width=device-width, initial-scale=1"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
...options.init || []
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
unhead._ssrPayload = {};
|
|
41
|
+
unhead.use({
|
|
42
|
+
key: "server",
|
|
43
|
+
hooks: {
|
|
44
|
+
"tags:resolve": function(ctx) {
|
|
45
|
+
const title = ctx.tagMap.get("title");
|
|
46
|
+
const titleTemplate = ctx.tagMap.get("titleTemplate");
|
|
47
|
+
let payload = {
|
|
48
|
+
title: title?.mode === "server" ? unhead._title : void 0,
|
|
49
|
+
titleTemplate: titleTemplate?.mode === "server" ? unhead._titleTemplate : void 0
|
|
50
|
+
};
|
|
51
|
+
if (Object.keys(unhead._ssrPayload || {}).length > 0) {
|
|
52
|
+
payload = {
|
|
53
|
+
...unhead._ssrPayload,
|
|
54
|
+
...payload
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (Object.values(payload).some(Boolean)) {
|
|
58
|
+
ctx.tags.push({
|
|
59
|
+
tag: "script",
|
|
60
|
+
innerHTML: JSON.stringify(payload),
|
|
61
|
+
props: { id: "unhead:payload", type: "application/json" }
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return unhead;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const Attrs = /(\w+)(?:=["']([^"']*)["'])?/g;
|
|
71
|
+
const HtmlTag = /<html[^>]*>/;
|
|
72
|
+
const BodyTag = /<body[^>]*>/;
|
|
73
|
+
const HeadContent = /<head[^>]*>(.*?)<\/head>/s;
|
|
74
|
+
const SelfClosingTags = /<(meta|link|base)[^>]*>/g;
|
|
75
|
+
const ClosingTags = /<(title|script|style)[^>]*>[\s\S]*?<\/\1>/g;
|
|
76
|
+
const NewLines = /(\n\s*)+/g;
|
|
77
|
+
function extractAttributes(tag) {
|
|
78
|
+
const inner = tag.match(/<([^>]*)>/)?.[1].split(" ").slice(1).join(" ");
|
|
79
|
+
if (!inner)
|
|
80
|
+
return {};
|
|
81
|
+
const attrs = inner.match(Attrs);
|
|
82
|
+
return attrs?.reduce((acc, attr) => {
|
|
83
|
+
const sep = attr.indexOf("=");
|
|
84
|
+
const key = sep > 0 ? attr.slice(0, sep) : attr;
|
|
85
|
+
const val = sep > 0 ? attr.slice(sep + 1).slice(1, -1) : true;
|
|
86
|
+
return { ...acc, [key]: val };
|
|
87
|
+
}, {}) || {};
|
|
88
|
+
}
|
|
89
|
+
function extractUnheadInputFromHtml(html) {
|
|
90
|
+
const input = {};
|
|
91
|
+
input.htmlAttrs = extractAttributes(html.match(HtmlTag)?.[0] || "");
|
|
92
|
+
html = html.replace(HtmlTag, "<html>");
|
|
93
|
+
input.bodyAttrs = extractAttributes(html.match(BodyTag)?.[0] || "");
|
|
94
|
+
html = html.replace(BodyTag, "<body>");
|
|
95
|
+
const innerHead = html.match(HeadContent)?.[1] || "";
|
|
96
|
+
innerHead.match(SelfClosingTags)?.forEach((s) => {
|
|
97
|
+
html = html.replace(s, "");
|
|
98
|
+
const tag = s.split(" ")[0].slice(1);
|
|
99
|
+
input[tag] = input[tag] || [];
|
|
100
|
+
input[tag].push(extractAttributes(s));
|
|
101
|
+
});
|
|
102
|
+
innerHead.match(ClosingTags)?.map((tag) => tag.trim()).filter(Boolean).forEach((tag) => {
|
|
103
|
+
html = html.replace(tag, "");
|
|
104
|
+
const type = tag.match(/<([a-z-]+)/)?.[1];
|
|
105
|
+
const res = extractAttributes(tag);
|
|
106
|
+
const innerContent = tag.match(/>([\s\S]*)</)?.[1];
|
|
107
|
+
if (innerContent) {
|
|
108
|
+
res[type !== "script" ? "textContent" : "innerHTML"] = innerContent;
|
|
109
|
+
}
|
|
110
|
+
if (type === "title") {
|
|
111
|
+
input.title = res;
|
|
112
|
+
} else {
|
|
113
|
+
input[type] = input[type] || [];
|
|
114
|
+
input[type].push(res);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
html = html.replace(NewLines, "\n");
|
|
118
|
+
return { html, input };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function encodeAttribute(value) {
|
|
122
|
+
return String(value).replace(/"/g, """);
|
|
123
|
+
}
|
|
124
|
+
function propsToString(props) {
|
|
125
|
+
let attrs = "";
|
|
126
|
+
for (const key in props) {
|
|
127
|
+
if (!Object.hasOwn(props, key))
|
|
128
|
+
continue;
|
|
129
|
+
let value = props[key];
|
|
130
|
+
if ((key === "class" || key === "style") && typeof value !== "string") {
|
|
131
|
+
value = key === "class" ? Array.from(value).join(" ") : Array.from(value).map(([k, v]) => `${k}:${v}`).join(";");
|
|
132
|
+
}
|
|
133
|
+
if (value !== false && value !== null) {
|
|
134
|
+
attrs += value === true ? ` ${key}` : ` ${key}="${encodeAttribute(value)}"`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return attrs;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function escapeHtml(str) {
|
|
141
|
+
return str.replace(/[&<>"'/]/g, (char) => {
|
|
142
|
+
switch (char) {
|
|
143
|
+
case "&":
|
|
144
|
+
return "&";
|
|
145
|
+
case "<":
|
|
146
|
+
return "<";
|
|
147
|
+
case ">":
|
|
148
|
+
return ">";
|
|
149
|
+
case '"':
|
|
150
|
+
return """;
|
|
151
|
+
case "'":
|
|
152
|
+
return "'";
|
|
153
|
+
case "/":
|
|
154
|
+
return "/";
|
|
155
|
+
default:
|
|
156
|
+
return char;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function tagToString(tag) {
|
|
161
|
+
const attrs = propsToString(tag.props);
|
|
162
|
+
const openTag = `<${tag.tag}${attrs}>`;
|
|
163
|
+
if (!TagsWithInnerContent.has(tag.tag))
|
|
164
|
+
return SelfClosingTags$1.has(tag.tag) ? openTag : `${openTag}</${tag.tag}>`;
|
|
165
|
+
let content = String(tag.textContent || tag.innerHTML || "");
|
|
166
|
+
content = tag.tag === "title" ? escapeHtml(content) : content.replace(new RegExp(`</${tag.tag}`, "gi"), `<\\/${tag.tag}`);
|
|
167
|
+
return SelfClosingTags$1.has(tag.tag) ? openTag : `${openTag}${content}</${tag.tag}>`;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function ssrRenderTags(tags, options) {
|
|
171
|
+
const schema = { htmlAttrs: {}, bodyAttrs: {}, tags: { head: "", bodyClose: "", bodyOpen: "" } };
|
|
172
|
+
const lineBreaks = !options?.omitLineBreaks ? "\n" : "";
|
|
173
|
+
for (const tag of tags) {
|
|
174
|
+
if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") {
|
|
175
|
+
Object.assign(schema[tag.tag], tag.props);
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
const s = tagToString(tag);
|
|
179
|
+
const tagPosition = tag.tagPosition || "head";
|
|
180
|
+
schema.tags[tagPosition] += schema.tags[tagPosition] ? `${lineBreaks}${s}` : s;
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
headTags: schema.tags.head,
|
|
184
|
+
bodyTags: schema.tags.bodyClose,
|
|
185
|
+
bodyTagsOpen: schema.tags.bodyOpen,
|
|
186
|
+
htmlAttrs: propsToString(schema.htmlAttrs),
|
|
187
|
+
bodyAttrs: propsToString(schema.bodyAttrs)
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
async function renderSSRHead(head, options) {
|
|
192
|
+
const beforeRenderCtx = { shouldRender: true };
|
|
193
|
+
await head.hooks.callHook("ssr:beforeRender", beforeRenderCtx);
|
|
194
|
+
if (!beforeRenderCtx.shouldRender) {
|
|
195
|
+
return {
|
|
196
|
+
headTags: "",
|
|
197
|
+
bodyTags: "",
|
|
198
|
+
bodyTagsOpen: "",
|
|
199
|
+
htmlAttrs: "",
|
|
200
|
+
bodyAttrs: ""
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const ctx = { tags: options?.resolvedTags || await head.resolveTags() };
|
|
204
|
+
await head.hooks.callHook("ssr:render", ctx);
|
|
205
|
+
const html = ssrRenderTags(ctx.tags, options);
|
|
206
|
+
const renderCtx = { tags: ctx.tags, html };
|
|
207
|
+
await head.hooks.callHook("ssr:rendered", renderCtx);
|
|
208
|
+
return renderCtx.html;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
async function transformHtmlTemplate(head, html, options) {
|
|
212
|
+
const { html: parsedHtml, input } = extractUnheadInputFromHtml(html);
|
|
213
|
+
head.push(input, { _index: 0 });
|
|
214
|
+
const headHtml = await renderSSRHead(head, options);
|
|
215
|
+
return parsedHtml.replace("<html>", `<html${headHtml.htmlAttrs}>`).replace("<body>", `<body>${headHtml.bodyTagsOpen ? `
|
|
216
|
+
${headHtml.bodyTagsOpen}` : ``}`).replace("<body>", `<body${headHtml.bodyAttrs}>`).replace("</head>", `${headHtml.headTags}</head>`).replace("</body>", `${headHtml.bodyTags}</body>`);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export { createHead, escapeHtml, extractUnheadInputFromHtml, propsToString, renderSSRHead, ssrRenderTags, tagToString, transformHtmlTemplate };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const SepSub = "%separator";
|
|
2
|
+
const SepSubRE = new RegExp(`${SepSub}(?:\\s*${SepSub})*`, "g");
|
|
3
|
+
function sub(p, token, isJson = false) {
|
|
4
|
+
let val;
|
|
5
|
+
if (token === "s" || token === "pageTitle") {
|
|
6
|
+
val = p.pageTitle;
|
|
7
|
+
} else if (token.includes(".")) {
|
|
8
|
+
const dotIndex = token.indexOf(".");
|
|
9
|
+
val = p[token.substring(0, dotIndex)]?.[token.substring(dotIndex + 1)];
|
|
10
|
+
} else {
|
|
11
|
+
val = p[token];
|
|
12
|
+
}
|
|
13
|
+
if (val !== void 0) {
|
|
14
|
+
return isJson ? (val || "").replace(/\\/g, "\\\\").replace(/</g, "\\u003C").replace(/"/g, '\\"') : val || "";
|
|
15
|
+
}
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
function processTemplateParams(s, p, sep, isJson = false) {
|
|
19
|
+
if (typeof s !== "string" || !s.includes("%"))
|
|
20
|
+
return s;
|
|
21
|
+
let decoded = s;
|
|
22
|
+
try {
|
|
23
|
+
decoded = decodeURI(s);
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
const tokens = decoded.match(/%\w+(?:\.\w+)?/g);
|
|
27
|
+
if (!tokens) {
|
|
28
|
+
return s;
|
|
29
|
+
}
|
|
30
|
+
const hasSepSub = s.includes(SepSub);
|
|
31
|
+
s = s.replace(/%\w+(?:\.\w+)?/g, (token) => {
|
|
32
|
+
if (token === SepSub || !tokens.includes(token)) {
|
|
33
|
+
return token;
|
|
34
|
+
}
|
|
35
|
+
const re = sub(p, token.slice(1), isJson);
|
|
36
|
+
return re !== void 0 ? re : token;
|
|
37
|
+
}).trim();
|
|
38
|
+
if (hasSepSub) {
|
|
39
|
+
if (s.endsWith(SepSub))
|
|
40
|
+
s = s.slice(0, -SepSub.length);
|
|
41
|
+
if (s.startsWith(SepSub))
|
|
42
|
+
s = s.slice(SepSub.length);
|
|
43
|
+
s = s.replace(SepSubRE, sep || "").trim();
|
|
44
|
+
}
|
|
45
|
+
return s;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { processTemplateParams as p };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { createHooks } from 'hookable';
|
|
2
|
+
import { n as normalizeEntryToTags, d as dedupeKey, i as isMetaArrayDupeKey } from './unhead.Di5OD67x.mjs';
|
|
3
|
+
import { t as tagWeight, s as sortTags } from './unhead.DZbvapt-.mjs';
|
|
4
|
+
import { c as UsesMergeStrategy, V as ValidHeadTags } from './unhead.yem5I2v_.mjs';
|
|
5
|
+
|
|
6
|
+
function registerPlugin(head, p) {
|
|
7
|
+
const plugin = typeof p === "function" ? p(head) : p;
|
|
8
|
+
const key = plugin.key || String(head.plugins.size + 1);
|
|
9
|
+
const exists = head.plugins.get(key);
|
|
10
|
+
if (!exists) {
|
|
11
|
+
head.plugins.set(key, plugin);
|
|
12
|
+
head.hooks.addHooks(plugin.hooks || {});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
// @__NO_SIDE_EFFECTS__
|
|
16
|
+
function createHeadCore(resolvedOptions = {}) {
|
|
17
|
+
return /* @__PURE__ */ createUnhead(resolvedOptions);
|
|
18
|
+
}
|
|
19
|
+
// @__NO_SIDE_EFFECTS__
|
|
20
|
+
function createUnhead(resolvedOptions = {}) {
|
|
21
|
+
const hooks = createHooks();
|
|
22
|
+
hooks.addHooks(resolvedOptions.hooks || {});
|
|
23
|
+
const ssr = !resolvedOptions.document;
|
|
24
|
+
const entries = /* @__PURE__ */ new Map();
|
|
25
|
+
const plugins = /* @__PURE__ */ new Map();
|
|
26
|
+
const normalizeQueue = /* @__PURE__ */ new Set();
|
|
27
|
+
const head = {
|
|
28
|
+
_entryCount: 1,
|
|
29
|
+
// 0 is reserved for internal use
|
|
30
|
+
plugins,
|
|
31
|
+
dirty: false,
|
|
32
|
+
resolvedOptions,
|
|
33
|
+
hooks,
|
|
34
|
+
ssr,
|
|
35
|
+
entries,
|
|
36
|
+
headEntries() {
|
|
37
|
+
return [...entries.values()];
|
|
38
|
+
},
|
|
39
|
+
use: (p) => registerPlugin(head, p),
|
|
40
|
+
push(input, _options) {
|
|
41
|
+
const options = { ..._options || {} };
|
|
42
|
+
delete options.head;
|
|
43
|
+
const _i = options._index ?? head._entryCount++;
|
|
44
|
+
const inst = { _i, input, options };
|
|
45
|
+
const _ = {
|
|
46
|
+
_poll(rm = false) {
|
|
47
|
+
head.dirty = true;
|
|
48
|
+
!rm && normalizeQueue.add(_i);
|
|
49
|
+
hooks.callHook("entries:updated", head);
|
|
50
|
+
},
|
|
51
|
+
dispose() {
|
|
52
|
+
if (entries.delete(_i)) {
|
|
53
|
+
head.invalidate();
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
// a patch is the same as creating a new entry, just a nice DX
|
|
57
|
+
patch(input2) {
|
|
58
|
+
if (!options.mode || options.mode === "server" && ssr || options.mode === "client" && !ssr) {
|
|
59
|
+
inst.input = input2;
|
|
60
|
+
entries.set(_i, inst);
|
|
61
|
+
_._poll();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
_.patch(input);
|
|
66
|
+
return _;
|
|
67
|
+
},
|
|
68
|
+
async resolveTags() {
|
|
69
|
+
const ctx = {
|
|
70
|
+
tagMap: /* @__PURE__ */ new Map(),
|
|
71
|
+
tags: [],
|
|
72
|
+
entries: [...head.entries.values()]
|
|
73
|
+
};
|
|
74
|
+
await hooks.callHook("entries:resolve", ctx);
|
|
75
|
+
while (normalizeQueue.size) {
|
|
76
|
+
const i = normalizeQueue.values().next().value;
|
|
77
|
+
normalizeQueue.delete(i);
|
|
78
|
+
const e = entries.get(i);
|
|
79
|
+
if (e) {
|
|
80
|
+
const normalizeCtx = {
|
|
81
|
+
tags: normalizeEntryToTags(e.input, resolvedOptions.propResolvers || []).map((t) => Object.assign(t, e.options)),
|
|
82
|
+
entry: e
|
|
83
|
+
};
|
|
84
|
+
await hooks.callHook("entries:normalize", normalizeCtx);
|
|
85
|
+
e._tags = normalizeCtx.tags.map((t, i2) => {
|
|
86
|
+
t._w = tagWeight(head, t);
|
|
87
|
+
t._p = (e._i << 10) + i2;
|
|
88
|
+
t._d = dedupeKey(t);
|
|
89
|
+
return t;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
let hasFlatMeta = false;
|
|
94
|
+
ctx.entries.flatMap((e) => (e._tags || []).map((t) => ({ ...t, props: { ...t.props } }))).sort(sortTags).reduce((acc, next) => {
|
|
95
|
+
const k = String(next._d || next._p);
|
|
96
|
+
if (!acc.has(k))
|
|
97
|
+
return acc.set(k, next);
|
|
98
|
+
const prev = acc.get(k);
|
|
99
|
+
const strategy = next?.tagDuplicateStrategy || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null);
|
|
100
|
+
if (strategy === "merge") {
|
|
101
|
+
const newProps = { ...prev.props };
|
|
102
|
+
Object.entries(next.props).forEach(([p, v]) => (
|
|
103
|
+
// @ts-expect-error untyped
|
|
104
|
+
newProps[p] = p === "style" ? new Map([...prev.props.style || /* @__PURE__ */ new Map(), ...v]) : p === "class" ? /* @__PURE__ */ new Set([...prev.props.class || /* @__PURE__ */ new Set(), ...v]) : v
|
|
105
|
+
));
|
|
106
|
+
acc.set(k, { ...next, props: newProps });
|
|
107
|
+
} else if (next._p >> 10 === prev._p >> 10 && next.tag === "meta" && isMetaArrayDupeKey(k)) {
|
|
108
|
+
acc.set(k, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next));
|
|
109
|
+
hasFlatMeta = true;
|
|
110
|
+
} else if (next._w === prev._w ? next._p > prev._p : next?._w < prev?._w) {
|
|
111
|
+
acc.set(k, next);
|
|
112
|
+
}
|
|
113
|
+
return acc;
|
|
114
|
+
}, ctx.tagMap);
|
|
115
|
+
const title = ctx.tagMap.get("title");
|
|
116
|
+
const titleTemplate = ctx.tagMap.get("titleTemplate");
|
|
117
|
+
head._title = title?.textContent;
|
|
118
|
+
if (titleTemplate) {
|
|
119
|
+
const titleTemplateFn = titleTemplate?.textContent;
|
|
120
|
+
head._titleTemplate = titleTemplateFn;
|
|
121
|
+
if (titleTemplateFn) {
|
|
122
|
+
let newTitle = typeof titleTemplateFn === "function" ? titleTemplateFn(title?.textContent) : titleTemplateFn;
|
|
123
|
+
if (typeof newTitle === "string" && !head.plugins.has("template-params")) {
|
|
124
|
+
newTitle = newTitle.replace("%s", title?.textContent || "");
|
|
125
|
+
}
|
|
126
|
+
if (title) {
|
|
127
|
+
newTitle === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: newTitle });
|
|
128
|
+
} else {
|
|
129
|
+
titleTemplate.tag = "title";
|
|
130
|
+
titleTemplate.textContent = newTitle;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
ctx.tags = Array.from(ctx.tagMap.values());
|
|
135
|
+
if (hasFlatMeta) {
|
|
136
|
+
ctx.tags = ctx.tags.flat().sort(sortTags);
|
|
137
|
+
}
|
|
138
|
+
await hooks.callHook("tags:beforeResolve", ctx);
|
|
139
|
+
await hooks.callHook("tags:resolve", ctx);
|
|
140
|
+
await hooks.callHook("tags:afterResolve", ctx);
|
|
141
|
+
const finalTags = [];
|
|
142
|
+
for (const t of ctx.tags) {
|
|
143
|
+
const { innerHTML, tag, props } = t;
|
|
144
|
+
if (!ValidHeadTags.has(tag)) {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
if (Object.keys(props).length === 0 && !t.innerHTML && !t.textContent) {
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if (tag === "meta" && !props.content && !props["http-equiv"] && !props.charset) {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
if (tag === "script" && innerHTML) {
|
|
154
|
+
if (props.type?.endsWith("json")) {
|
|
155
|
+
const v = typeof innerHTML === "string" ? innerHTML : JSON.stringify(innerHTML);
|
|
156
|
+
t.innerHTML = v.replace(/</g, "\\u003C");
|
|
157
|
+
} else if (typeof innerHTML === "string") {
|
|
158
|
+
t.innerHTML = innerHTML.replace(new RegExp(`</${tag}`, "g"), `<\\/${tag}`);
|
|
159
|
+
}
|
|
160
|
+
t._d = dedupeKey(t);
|
|
161
|
+
}
|
|
162
|
+
finalTags.push(t);
|
|
163
|
+
}
|
|
164
|
+
return finalTags;
|
|
165
|
+
},
|
|
166
|
+
invalidate() {
|
|
167
|
+
for (const entry of entries.values()) {
|
|
168
|
+
normalizeQueue.add(entry._i);
|
|
169
|
+
}
|
|
170
|
+
head.dirty = true;
|
|
171
|
+
hooks.callHook("entries:updated", head);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
(resolvedOptions?.plugins || []).forEach((p) => registerPlugin(head, p));
|
|
175
|
+
head.hooks.callHook("init", head);
|
|
176
|
+
resolvedOptions.init?.forEach((e) => e && head.push(e));
|
|
177
|
+
return head;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { createUnhead as a, createHeadCore as c };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { u as unpackMeta } from './unhead.DQc16pHI.mjs';
|
|
2
|
+
|
|
3
|
+
function defineHeadPlugin(plugin) {
|
|
4
|
+
return plugin;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const FlatMetaPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
8
|
+
key: "flatMeta",
|
|
9
|
+
hooks: {
|
|
10
|
+
"entries:normalize": (ctx) => {
|
|
11
|
+
const tagsToAdd = [];
|
|
12
|
+
ctx.tags = ctx.tags.map((t) => {
|
|
13
|
+
if (t.tag !== "_flatMeta") {
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
tagsToAdd.push(unpackMeta(t.props).map((p) => ({
|
|
17
|
+
...t,
|
|
18
|
+
tag: "meta",
|
|
19
|
+
props: p
|
|
20
|
+
})));
|
|
21
|
+
return false;
|
|
22
|
+
}).filter(Boolean).concat(...tagsToAdd);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const WhitelistAttributes = {
|
|
28
|
+
htmlAttrs: /* @__PURE__ */ new Set(["class", "style", "lang", "dir"]),
|
|
29
|
+
bodyAttrs: /* @__PURE__ */ new Set(["class", "style"]),
|
|
30
|
+
meta: /* @__PURE__ */ new Set(["name", "property", "charset", "content", "media"]),
|
|
31
|
+
noscript: /* @__PURE__ */ new Set(["textContent"]),
|
|
32
|
+
style: /* @__PURE__ */ new Set(["media", "textContent", "nonce", "title", "blocking"]),
|
|
33
|
+
script: /* @__PURE__ */ new Set(["type", "textContent", "nonce", "blocking"]),
|
|
34
|
+
link: /* @__PURE__ */ new Set(["color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"])
|
|
35
|
+
};
|
|
36
|
+
function acceptDataAttrs(value) {
|
|
37
|
+
return Object.fromEntries(
|
|
38
|
+
Object.entries(value || {}).filter(([key]) => key === "id" || key.startsWith("data-"))
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function makeTagSafe(tag) {
|
|
42
|
+
let next = {};
|
|
43
|
+
const { tag: type, props: prev } = tag;
|
|
44
|
+
switch (type) {
|
|
45
|
+
// always safe
|
|
46
|
+
case "title":
|
|
47
|
+
case "titleTemplate":
|
|
48
|
+
case "templateParams":
|
|
49
|
+
next = prev;
|
|
50
|
+
break;
|
|
51
|
+
case "htmlAttrs":
|
|
52
|
+
case "bodyAttrs":
|
|
53
|
+
WhitelistAttributes[type].forEach((attr) => {
|
|
54
|
+
if (prev[attr]) {
|
|
55
|
+
next[attr] = prev[attr];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
break;
|
|
59
|
+
case "style":
|
|
60
|
+
next = acceptDataAttrs(prev);
|
|
61
|
+
WhitelistAttributes.style.forEach((key) => {
|
|
62
|
+
if (prev[key]) {
|
|
63
|
+
next[key] = prev[key];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
// meta is safe, except for http-equiv
|
|
68
|
+
case "meta":
|
|
69
|
+
WhitelistAttributes.meta.forEach((key) => {
|
|
70
|
+
if (prev[key]) {
|
|
71
|
+
next[key] = prev[key];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
break;
|
|
75
|
+
// link tags we don't allow stylesheets, scripts, preloading, prerendering, prefetching, etc
|
|
76
|
+
case "link":
|
|
77
|
+
WhitelistAttributes.link.forEach((key) => {
|
|
78
|
+
const val = prev[key];
|
|
79
|
+
if (!val) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (key === "rel" && (val === "canonical" || val === "modulepreload" || val === "prerender" || val === "preload" || val === "prefetch")) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (key === "href") {
|
|
86
|
+
if (val.includes("javascript:") || val.includes("data:")) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
next[key] = val;
|
|
90
|
+
} else if (val) {
|
|
91
|
+
next[key] = val;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
if (!next.href && !next.imagesrcset || !next.rel) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
case "noscript":
|
|
99
|
+
WhitelistAttributes.noscript.forEach((key) => {
|
|
100
|
+
if (prev[key]) {
|
|
101
|
+
next[key] = prev[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
break;
|
|
105
|
+
// we only allow JSON in scripts
|
|
106
|
+
case "script":
|
|
107
|
+
if (!tag.textContent || !prev.type?.endsWith("json")) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
WhitelistAttributes.script.forEach((s) => {
|
|
111
|
+
if (prev[s] === "textContent") {
|
|
112
|
+
try {
|
|
113
|
+
const jsonVal = typeof prev[s] === "string" ? JSON.parse(prev[s]) : prev[s];
|
|
114
|
+
next[s] = JSON.stringify(jsonVal, null, 0);
|
|
115
|
+
} catch {
|
|
116
|
+
}
|
|
117
|
+
} else if (prev[s]) {
|
|
118
|
+
next[s] = prev[s];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
if (!Object.keys(next).length && !tag.tag.endsWith("Attrs")) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
tag.props = { ...acceptDataAttrs(prev), ...next };
|
|
127
|
+
return tag;
|
|
128
|
+
}
|
|
129
|
+
const SafeInputPlugin = (
|
|
130
|
+
/* @PURE */
|
|
131
|
+
defineHeadPlugin({
|
|
132
|
+
key: "safe",
|
|
133
|
+
hooks: {
|
|
134
|
+
"entries:normalize": (ctx) => {
|
|
135
|
+
if (ctx.entry.options?._safe) {
|
|
136
|
+
ctx.tags = ctx.tags.reduce((acc, tag) => {
|
|
137
|
+
const safeTag = makeTagSafe(tag);
|
|
138
|
+
if (safeTag)
|
|
139
|
+
acc.push(safeTag);
|
|
140
|
+
return acc;
|
|
141
|
+
}, []);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
export { FlatMetaPlugin as F, SafeInputPlugin as S, defineHeadPlugin as d };
|