@highstate/designer 0.1.0 → 0.2.0
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/package.json +10 -8
- package/.output/nitro.json +0 -15
- package/.output/public/_nuxt/1jbH28Ud.js +0 -1
- package/.output/public/_nuxt/BAsjE6c8.js +0 -69
- package/.output/public/_nuxt/D4AvvZ3p.js +0 -1
- package/.output/public/_nuxt/DcSK-0AR.js +0 -1
- package/.output/public/_nuxt/builds/latest.json +0 -1
- package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +0 -1
- package/.output/public/_nuxt/entry.Df9XoxdB.css +0 -1
- package/.output/public/_nuxt/error-404.SWzu_puR.css +0 -1
- package/.output/public/_nuxt/error-500.Bkv_zTjr.css +0 -1
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +0 -1
- package/.output/server/chunks/_/error-500.mjs +0 -8
- package/.output/server/chunks/_/error-500.mjs.map +0 -1
- package/.output/server/chunks/_/index.mjs +0 -229
- package/.output/server/chunks/_/index.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +0 -6
- package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +0 -1
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +0 -6
- package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +0 -7
- package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +0 -6
- package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +0 -1
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +0 -6
- package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +0 -1
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +0 -6
- package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +0 -1
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +0 -6
- package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +0 -6
- package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +0 -1
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +0 -6
- package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +0 -1
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +0 -6
- package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +0 -1
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +0 -6
- package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +0 -1
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +0 -6
- package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +0 -1
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +0 -6
- package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +0 -1
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +0 -6
- package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +0 -1
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +0 -6
- package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +0 -1
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +0 -6
- package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +0 -1
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +0 -6
- package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +0 -1
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +0 -6
- package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +0 -1
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +0 -6
- package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +0 -1
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +0 -6
- package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +0 -1
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +0 -6
- package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +0 -1
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +0 -6
- package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +0 -1
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +0 -6
- package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +0 -6
- package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +0 -1
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +0 -6
- package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +0 -1
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +0 -6
- package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +0 -1
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +0 -6
- package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +0 -1
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +0 -6
- package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +0 -1
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +0 -6
- package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +0 -1
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +0 -6
- package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +0 -6
- package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +0 -1
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +0 -6
- package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +0 -1
- package/.output/server/chunks/build/client.manifest.mjs +0 -82
- package/.output/server/chunks/build/client.manifest.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +0 -4
- package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +0 -39
- package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs +0 -399
- package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +0 -4
- package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +0 -6
- package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs +0 -80
- package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +0 -4
- package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +0 -6
- package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +0 -1
- package/.output/server/chunks/build/index-C2merokO.mjs +0 -34
- package/.output/server/chunks/build/index-C2merokO.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +0 -6
- package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +0 -1
- package/.output/server/chunks/build/server.mjs +0 -10495
- package/.output/server/chunks/build/server.mjs.map +0 -1
- package/.output/server/chunks/build/styles.mjs +0 -47
- package/.output/server/chunks/build/styles.mjs.map +0 -1
- package/.output/server/chunks/nitro/nitro.mjs +0 -6203
- package/.output/server/chunks/nitro/nitro.mjs.map +0 -1
- package/.output/server/chunks/routes/api/_trpc_.mjs +0 -209
- package/.output/server/chunks/routes/api/_trpc_.mjs.map +0 -1
- package/.output/server/chunks/routes/renderer.mjs +0 -391
- package/.output/server/chunks/routes/renderer.mjs.map +0 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
- package/.output/server/index.mjs +0 -7
- package/.output/server/index.mjs.map +0 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14023
- package/.output/server/node_modules/@babel/parser/package.json +0 -50
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1996
- package/.output/server/node_modules/@iconify/vue/package.json +0 -65
- package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +0 -59
- package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +0 -248
- package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +0 -144
- package/.output/server/node_modules/@trpc/client/dist/index.mjs +0 -365
- package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +0 -62
- package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +0 -173
- package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +0 -278
- package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +0 -45
- package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +0 -58
- package/.output/server/node_modules/@trpc/client/package.json +0 -101
- package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +0 -39
- package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +0 -30
- package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +0 -44
- package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +0 -196
- package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +0 -52
- package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +0 -33
- package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +0 -9
- package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +0 -97
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -871
- package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +0 -147
- package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +0 -81
- package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +0 -291
- package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +0 -4
- package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +0 -53
- package/.output/server/node_modules/@trpc/server/package.json +0 -177
- package/.output/server/node_modules/@unhead/dom/dist/index.mjs +0 -197
- package/.output/server/node_modules/@unhead/dom/package.json +0 -40
- package/.output/server/node_modules/@unhead/shared/dist/index.mjs +0 -731
- package/.output/server/node_modules/@unhead/shared/package.json +0 -47
- package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +0 -95
- package/.output/server/node_modules/@unhead/ssr/package.json +0 -40
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
- package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
- package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
- package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
- package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
- package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
- package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
- package/.output/server/node_modules/@vue/shared/package.json +0 -47
- package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +0 -126
- package/.output/server/node_modules/@vue-flow/background/package.json +0 -73
- package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +0 -9873
- package/.output/server/node_modules/@vue-flow/core/package.json +0 -92
- package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +0 -2953
- package/.output/server/node_modules/@vue-flow/minimap/package.json +0 -80
- package/.output/server/node_modules/devalue/index.js +0 -3
- package/.output/server/node_modules/devalue/package.json +0 -34
- package/.output/server/node_modules/devalue/src/base64.js +0 -110
- package/.output/server/node_modules/devalue/src/constants.js +0 -6
- package/.output/server/node_modules/devalue/src/parse.js +0 -160
- package/.output/server/node_modules/devalue/src/stringify.js +0 -232
- package/.output/server/node_modules/devalue/src/uneval.js +0 -351
- package/.output/server/node_modules/devalue/src/utils.js +0 -113
- package/.output/server/node_modules/entities/lib/decode.js +0 -536
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/entities/package.json +0 -90
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
- package/.output/server/node_modules/estree-walker/package.json +0 -37
- package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
- package/.output/server/node_modules/hookable/package.json +0 -49
- package/.output/server/node_modules/nanoid/index.js +0 -46
- package/.output/server/node_modules/nanoid/package.json +0 -41
- package/.output/server/node_modules/nanoid/url-alphabet/index.js +0 -2
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +0 -858
- package/.output/server/node_modules/pinia/package.json +0 -100
- package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
- package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
- package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
- package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
- package/.output/server/node_modules/source-map-js/package.json +0 -71
- package/.output/server/node_modules/source-map-js/source-map.js +0 -8
- package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
- package/.output/server/node_modules/ufo/package.json +0 -47
- package/.output/server/node_modules/unhead/dist/index.mjs +0 -747
- package/.output/server/node_modules/unhead/package.json +0 -46
- package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/vue/index.js +0 -7
- package/.output/server/node_modules/vue/index.mjs +0 -1
- package/.output/server/node_modules/vue/package.json +0 -112
- package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
- package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
- package/.output/server/node_modules/vue-demi/lib/index.cjs +0 -29
- package/.output/server/node_modules/vue-demi/package.json +0 -47
- package/.output/server/node_modules/zod/lib/index.mjs +0 -4236
- package/.output/server/node_modules/zod/package.json +0 -119
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +0 -31
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +0 -14
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +0 -37
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +0 -1
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +0 -164
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +0 -49
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +0 -46
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +0 -7
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +0 -6
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +0 -21
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +0 -25
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +0 -16
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +0 -10
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +0 -33
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +0 -52
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +0 -45
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +0 -4
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +0 -57
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +0 -20
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +0 -324
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +0 -32
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +0 -5
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +0 -80
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +0 -3
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +0 -59
- package/.output/server/node_modules/zod-to-json-schema/package.json +0 -89
- package/.output/server/package.json +0 -1
|
@@ -1,731 +0,0 @@
|
|
|
1
|
-
function asArray$1(value) {
|
|
2
|
-
return Array.isArray(value) ? value : [value];
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
const SelfClosingTags = /* @__PURE__ */ new Set(["meta", "link", "base"]);
|
|
6
|
-
const TagsWithInnerContent = /* @__PURE__ */ new Set(["title", "titleTemplate", "script", "style", "noscript"]);
|
|
7
|
-
const HasElementTags = /* @__PURE__ */ new Set([
|
|
8
|
-
"base",
|
|
9
|
-
"meta",
|
|
10
|
-
"link",
|
|
11
|
-
"style",
|
|
12
|
-
"script",
|
|
13
|
-
"noscript"
|
|
14
|
-
]);
|
|
15
|
-
const ValidHeadTags = /* @__PURE__ */ new Set([
|
|
16
|
-
"title",
|
|
17
|
-
"titleTemplate",
|
|
18
|
-
"templateParams",
|
|
19
|
-
"base",
|
|
20
|
-
"htmlAttrs",
|
|
21
|
-
"bodyAttrs",
|
|
22
|
-
"meta",
|
|
23
|
-
"link",
|
|
24
|
-
"style",
|
|
25
|
-
"script",
|
|
26
|
-
"noscript"
|
|
27
|
-
]);
|
|
28
|
-
const UniqueTags = /* @__PURE__ */ new Set(["base", "title", "titleTemplate", "bodyAttrs", "htmlAttrs", "templateParams"]);
|
|
29
|
-
const TagConfigKeys = /* @__PURE__ */ new Set(["tagPosition", "tagPriority", "tagDuplicateStrategy", "children", "innerHTML", "textContent", "processTemplateParams"]);
|
|
30
|
-
const IsBrowser = typeof window !== "undefined";
|
|
31
|
-
const composableNames = [
|
|
32
|
-
"getActiveHead",
|
|
33
|
-
"useHead",
|
|
34
|
-
"useSeoMeta",
|
|
35
|
-
"useHeadSafe",
|
|
36
|
-
"useServerHead",
|
|
37
|
-
"useServerSeoMeta",
|
|
38
|
-
"useServerHeadSafe"
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
function defineHeadPlugin(plugin) {
|
|
42
|
-
return plugin;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function hashCode(s) {
|
|
46
|
-
let h = 9;
|
|
47
|
-
for (let i = 0; i < s.length; )
|
|
48
|
-
h = Math.imul(h ^ s.charCodeAt(i++), 9 ** 9);
|
|
49
|
-
return ((h ^ h >>> 9) + 65536).toString(16).substring(1, 8).toLowerCase();
|
|
50
|
-
}
|
|
51
|
-
function hashTag(tag) {
|
|
52
|
-
if (tag._h) {
|
|
53
|
-
return tag._h;
|
|
54
|
-
}
|
|
55
|
-
if (tag._d) {
|
|
56
|
-
return hashCode(tag._d);
|
|
57
|
-
}
|
|
58
|
-
let content = `${tag.tag}:${tag.textContent || tag.innerHTML || ""}:`;
|
|
59
|
-
for (const key in tag.props) {
|
|
60
|
-
content += `${key}:${String(tag.props[key])},`;
|
|
61
|
-
}
|
|
62
|
-
return hashCode(content);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function asArray(input) {
|
|
66
|
-
return Array.isArray(input) ? input : [input];
|
|
67
|
-
}
|
|
68
|
-
const InternalKeySymbol = "_$key";
|
|
69
|
-
function packObject(input, options) {
|
|
70
|
-
const keys = Object.keys(input);
|
|
71
|
-
let [k, v] = keys;
|
|
72
|
-
options = options || {};
|
|
73
|
-
options.key = options.key || k;
|
|
74
|
-
options.value = options.value || v;
|
|
75
|
-
options.resolveKey = options.resolveKey || ((k2) => k2);
|
|
76
|
-
const resolveKey = (index) => {
|
|
77
|
-
const arr = asArray(options[index]);
|
|
78
|
-
return arr.find((k2) => {
|
|
79
|
-
if (typeof k2 === "string" && k2.includes(".")) {
|
|
80
|
-
return k2;
|
|
81
|
-
}
|
|
82
|
-
return k2 && keys.includes(k2);
|
|
83
|
-
});
|
|
84
|
-
};
|
|
85
|
-
const resolveValue = (k2, input2) => {
|
|
86
|
-
if (k2.includes(".")) {
|
|
87
|
-
const paths = k2.split(".");
|
|
88
|
-
let val = input2;
|
|
89
|
-
for (const path of paths)
|
|
90
|
-
val = val[path];
|
|
91
|
-
return val;
|
|
92
|
-
}
|
|
93
|
-
return input2[k2];
|
|
94
|
-
};
|
|
95
|
-
k = resolveKey("key") || k;
|
|
96
|
-
v = resolveKey("value") || v;
|
|
97
|
-
const dedupeKeyPrefix = input.key ? `${InternalKeySymbol}${input.key}-` : "";
|
|
98
|
-
let keyValue = resolveValue(k, input);
|
|
99
|
-
keyValue = options.resolveKey(keyValue);
|
|
100
|
-
return {
|
|
101
|
-
[`${dedupeKeyPrefix}${keyValue}`]: resolveValue(v, input)
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function packArray(input, options) {
|
|
106
|
-
const packed = {};
|
|
107
|
-
for (const i of input) {
|
|
108
|
-
const packedObj = packObject(i, options);
|
|
109
|
-
const pKey = Object.keys(packedObj)[0];
|
|
110
|
-
const isDedupeKey = pKey.startsWith(InternalKeySymbol);
|
|
111
|
-
if (!isDedupeKey && packed[pKey]) {
|
|
112
|
-
packed[pKey] = Array.isArray(packed[pKey]) ? packed[pKey] : [packed[pKey]];
|
|
113
|
-
packed[pKey].push(Object.values(packedObj)[0]);
|
|
114
|
-
} else {
|
|
115
|
-
packed[isDedupeKey ? pKey.split("-").slice(1).join("-") || pKey : pKey] = packedObj[pKey];
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return packed;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function unpackToArray(input, options) {
|
|
122
|
-
const unpacked = [];
|
|
123
|
-
const kFn = options.resolveKeyData || ((ctx) => ctx.key);
|
|
124
|
-
const vFn = options.resolveValueData || ((ctx) => ctx.value);
|
|
125
|
-
for (const [k, v] of Object.entries(input)) {
|
|
126
|
-
unpacked.push(...(Array.isArray(v) ? v : [v]).map((i) => {
|
|
127
|
-
const ctx = { key: k, value: i };
|
|
128
|
-
const val = vFn(ctx);
|
|
129
|
-
if (typeof val === "object")
|
|
130
|
-
return unpackToArray(val, options);
|
|
131
|
-
if (Array.isArray(val))
|
|
132
|
-
return val;
|
|
133
|
-
return {
|
|
134
|
-
[typeof options.key === "function" ? options.key(ctx) : options.key]: kFn(ctx),
|
|
135
|
-
[typeof options.value === "function" ? options.value(ctx) : options.value]: val
|
|
136
|
-
};
|
|
137
|
-
}).flat());
|
|
138
|
-
}
|
|
139
|
-
return unpacked;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function unpackToString(value, options) {
|
|
143
|
-
return Object.entries(value).map(([key, value2]) => {
|
|
144
|
-
if (typeof value2 === "object")
|
|
145
|
-
value2 = unpackToString(value2, options);
|
|
146
|
-
if (options.resolve) {
|
|
147
|
-
const resolved = options.resolve({ key, value: value2 });
|
|
148
|
-
if (typeof resolved !== "undefined")
|
|
149
|
-
return resolved;
|
|
150
|
-
}
|
|
151
|
-
if (typeof value2 === "number")
|
|
152
|
-
value2 = value2.toString();
|
|
153
|
-
if (typeof value2 === "string" && options.wrapValue) {
|
|
154
|
-
value2 = value2.replace(new RegExp(options.wrapValue, "g"), `\\${options.wrapValue}`);
|
|
155
|
-
value2 = `${options.wrapValue}${value2}${options.wrapValue}`;
|
|
156
|
-
}
|
|
157
|
-
return `${key}${options.keyValueSeparator || ""}${value2}`;
|
|
158
|
-
}).join(options.entrySeparator || "");
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const p = (p2) => ({ keyValue: p2, metaKey: "property" });
|
|
162
|
-
const k = (p2) => ({ keyValue: p2 });
|
|
163
|
-
const MetaPackingSchema = {
|
|
164
|
-
appleItunesApp: {
|
|
165
|
-
unpack: {
|
|
166
|
-
entrySeparator: ", ",
|
|
167
|
-
resolve({ key, value }) {
|
|
168
|
-
return `${fixKeyCase(key)}=${value}`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
articleExpirationTime: p("article:expiration_time"),
|
|
173
|
-
articleModifiedTime: p("article:modified_time"),
|
|
174
|
-
articlePublishedTime: p("article:published_time"),
|
|
175
|
-
bookReleaseDate: p("book:release_date"),
|
|
176
|
-
charset: {
|
|
177
|
-
metaKey: "charset"
|
|
178
|
-
},
|
|
179
|
-
contentSecurityPolicy: {
|
|
180
|
-
unpack: {
|
|
181
|
-
entrySeparator: "; ",
|
|
182
|
-
resolve({ key, value }) {
|
|
183
|
-
return `${fixKeyCase(key)} ${value}`;
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
metaKey: "http-equiv"
|
|
187
|
-
},
|
|
188
|
-
contentType: {
|
|
189
|
-
metaKey: "http-equiv"
|
|
190
|
-
},
|
|
191
|
-
defaultStyle: {
|
|
192
|
-
metaKey: "http-equiv"
|
|
193
|
-
},
|
|
194
|
-
fbAppId: p("fb:app_id"),
|
|
195
|
-
msapplicationConfig: k("msapplication-Config"),
|
|
196
|
-
msapplicationTileColor: k("msapplication-TileColor"),
|
|
197
|
-
msapplicationTileImage: k("msapplication-TileImage"),
|
|
198
|
-
ogAudioSecureUrl: p("og:audio:secure_url"),
|
|
199
|
-
ogAudioUrl: p("og:audio"),
|
|
200
|
-
ogImageSecureUrl: p("og:image:secure_url"),
|
|
201
|
-
ogImageUrl: p("og:image"),
|
|
202
|
-
ogSiteName: p("og:site_name"),
|
|
203
|
-
ogVideoSecureUrl: p("og:video:secure_url"),
|
|
204
|
-
ogVideoUrl: p("og:video"),
|
|
205
|
-
profileFirstName: p("profile:first_name"),
|
|
206
|
-
profileLastName: p("profile:last_name"),
|
|
207
|
-
profileUsername: p("profile:username"),
|
|
208
|
-
refresh: {
|
|
209
|
-
metaKey: "http-equiv",
|
|
210
|
-
unpack: {
|
|
211
|
-
entrySeparator: ";",
|
|
212
|
-
resolve({ key, value }) {
|
|
213
|
-
if (key === "seconds")
|
|
214
|
-
return `${value}`;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
robots: {
|
|
219
|
-
unpack: {
|
|
220
|
-
entrySeparator: ", ",
|
|
221
|
-
resolve({ key, value }) {
|
|
222
|
-
if (typeof value === "boolean")
|
|
223
|
-
return `${fixKeyCase(key)}`;
|
|
224
|
-
else
|
|
225
|
-
return `${fixKeyCase(key)}:${value}`;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
xUaCompatible: {
|
|
230
|
-
metaKey: "http-equiv"
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
const openGraphNamespaces = /* @__PURE__ */ new Set([
|
|
234
|
-
"og",
|
|
235
|
-
"book",
|
|
236
|
-
"article",
|
|
237
|
-
"profile"
|
|
238
|
-
]);
|
|
239
|
-
function resolveMetaKeyType(key) {
|
|
240
|
-
const fKey = fixKeyCase(key);
|
|
241
|
-
const prefixIndex = fKey.indexOf(":");
|
|
242
|
-
if (openGraphNamespaces.has(fKey.substring(0, prefixIndex)))
|
|
243
|
-
return "property";
|
|
244
|
-
return MetaPackingSchema[key]?.metaKey || "name";
|
|
245
|
-
}
|
|
246
|
-
function resolveMetaKeyValue(key) {
|
|
247
|
-
return MetaPackingSchema[key]?.keyValue || fixKeyCase(key);
|
|
248
|
-
}
|
|
249
|
-
function fixKeyCase(key) {
|
|
250
|
-
const updated = key.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
251
|
-
const prefixIndex = updated.indexOf("-");
|
|
252
|
-
const fKey = updated.substring(0, prefixIndex);
|
|
253
|
-
if (fKey === "twitter" || openGraphNamespaces.has(fKey))
|
|
254
|
-
return key.replace(/([A-Z])/g, ":$1").toLowerCase();
|
|
255
|
-
return updated;
|
|
256
|
-
}
|
|
257
|
-
function changeKeyCasingDeep(input) {
|
|
258
|
-
if (Array.isArray(input)) {
|
|
259
|
-
return input.map((entry) => changeKeyCasingDeep(entry));
|
|
260
|
-
}
|
|
261
|
-
if (typeof input !== "object" || Array.isArray(input))
|
|
262
|
-
return input;
|
|
263
|
-
const output = {};
|
|
264
|
-
for (const key in input) {
|
|
265
|
-
if (!Object.prototype.hasOwnProperty.call(input, key)) {
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
output[fixKeyCase(key)] = changeKeyCasingDeep(input[key]);
|
|
269
|
-
}
|
|
270
|
-
return output;
|
|
271
|
-
}
|
|
272
|
-
function resolvePackedMetaObjectValue(value, key) {
|
|
273
|
-
const definition = MetaPackingSchema[key];
|
|
274
|
-
if (key === "refresh")
|
|
275
|
-
return `${value.seconds};url=${value.url}`;
|
|
276
|
-
return unpackToString(
|
|
277
|
-
changeKeyCasingDeep(value),
|
|
278
|
-
{
|
|
279
|
-
keyValueSeparator: "=",
|
|
280
|
-
entrySeparator: ", ",
|
|
281
|
-
resolve({ value: value2, key: key2 }) {
|
|
282
|
-
if (value2 === null)
|
|
283
|
-
return "";
|
|
284
|
-
if (typeof value2 === "boolean")
|
|
285
|
-
return `${key2}`;
|
|
286
|
-
},
|
|
287
|
-
...definition?.unpack
|
|
288
|
-
}
|
|
289
|
-
);
|
|
290
|
-
}
|
|
291
|
-
const ObjectArrayEntries = /* @__PURE__ */ new Set(["og:image", "og:video", "og:audio", "twitter:image"]);
|
|
292
|
-
function sanitize(input) {
|
|
293
|
-
const out = {};
|
|
294
|
-
for (const k2 in input) {
|
|
295
|
-
if (!Object.prototype.hasOwnProperty.call(input, k2)) {
|
|
296
|
-
continue;
|
|
297
|
-
}
|
|
298
|
-
const v = input[k2];
|
|
299
|
-
if (String(v) !== "false" && k2)
|
|
300
|
-
out[k2] = v;
|
|
301
|
-
}
|
|
302
|
-
return out;
|
|
303
|
-
}
|
|
304
|
-
function handleObjectEntry(key, v) {
|
|
305
|
-
const value = sanitize(v);
|
|
306
|
-
const fKey = fixKeyCase(key);
|
|
307
|
-
const attr = resolveMetaKeyType(fKey);
|
|
308
|
-
if (ObjectArrayEntries.has(fKey)) {
|
|
309
|
-
const input = {};
|
|
310
|
-
for (const k2 in value) {
|
|
311
|
-
if (!Object.prototype.hasOwnProperty.call(value, k2)) {
|
|
312
|
-
continue;
|
|
313
|
-
}
|
|
314
|
-
input[`${key}${k2 === "url" ? "" : `${k2[0].toUpperCase()}${k2.slice(1)}`}`] = value[k2];
|
|
315
|
-
}
|
|
316
|
-
return unpackMeta(input).sort((a, b) => (a[attr]?.length || 0) - (b[attr]?.length || 0));
|
|
317
|
-
}
|
|
318
|
-
return [{ [attr]: fKey, ...value }];
|
|
319
|
-
}
|
|
320
|
-
function unpackMeta(input) {
|
|
321
|
-
const extras = [];
|
|
322
|
-
const primitives = {};
|
|
323
|
-
for (const key in input) {
|
|
324
|
-
if (!Object.prototype.hasOwnProperty.call(input, key)) {
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
const value = input[key];
|
|
328
|
-
if (!Array.isArray(value)) {
|
|
329
|
-
if (typeof value === "object" && value) {
|
|
330
|
-
if (ObjectArrayEntries.has(fixKeyCase(key))) {
|
|
331
|
-
extras.push(...handleObjectEntry(key, value));
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
primitives[key] = sanitize(value);
|
|
335
|
-
} else {
|
|
336
|
-
primitives[key] = value;
|
|
337
|
-
}
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
for (const v of value) {
|
|
341
|
-
extras.push(...typeof v === "string" ? unpackMeta({ [key]: v }) : handleObjectEntry(key, v));
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
const meta = unpackToArray(primitives, {
|
|
345
|
-
key({ key }) {
|
|
346
|
-
return resolveMetaKeyType(key);
|
|
347
|
-
},
|
|
348
|
-
value({ key }) {
|
|
349
|
-
return key === "charset" ? "charset" : "content";
|
|
350
|
-
},
|
|
351
|
-
resolveKeyData({ key }) {
|
|
352
|
-
return resolveMetaKeyValue(key);
|
|
353
|
-
},
|
|
354
|
-
resolveValueData({ value, key }) {
|
|
355
|
-
if (value === null)
|
|
356
|
-
return "_null";
|
|
357
|
-
if (typeof value === "object")
|
|
358
|
-
return resolvePackedMetaObjectValue(value, key);
|
|
359
|
-
return typeof value === "number" ? value.toString() : value;
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
return [...extras, ...meta].map((m) => {
|
|
363
|
-
if (m.content === "_null")
|
|
364
|
-
m.content = null;
|
|
365
|
-
return m;
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
function packMeta(inputs) {
|
|
369
|
-
const mappedPackingSchema = Object.entries(MetaPackingSchema).map(([key, value]) => [key, value.keyValue]);
|
|
370
|
-
return packArray(inputs, {
|
|
371
|
-
key: ["name", "property", "httpEquiv", "http-equiv", "charset"],
|
|
372
|
-
value: ["content", "charset"],
|
|
373
|
-
resolveKey(k2) {
|
|
374
|
-
let key = mappedPackingSchema.filter((sk) => sk[1] === k2)?.[0]?.[0] || k2;
|
|
375
|
-
const replacer = (_, letter) => letter?.toUpperCase();
|
|
376
|
-
key = key.replace(/:([a-z])/g, replacer).replace(/-([a-z])/g, replacer);
|
|
377
|
-
return key;
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
function thenable(val, thenFn) {
|
|
383
|
-
if (val instanceof Promise) {
|
|
384
|
-
return val.then(thenFn);
|
|
385
|
-
}
|
|
386
|
-
return thenFn(val);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
function normaliseTag(tagName, input, e, normalizedProps) {
|
|
390
|
-
const props = normalizedProps || normaliseProps(
|
|
391
|
-
// explicitly check for an object
|
|
392
|
-
// @ts-expect-error untyped
|
|
393
|
-
typeof input === "object" && typeof input !== "function" && !(input instanceof Promise) ? { ...input } : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: input },
|
|
394
|
-
tagName === "templateParams" || tagName === "titleTemplate"
|
|
395
|
-
);
|
|
396
|
-
if (props instanceof Promise) {
|
|
397
|
-
return props.then((val) => normaliseTag(tagName, input, e, val));
|
|
398
|
-
}
|
|
399
|
-
const tag = {
|
|
400
|
-
tag: tagName,
|
|
401
|
-
props
|
|
402
|
-
};
|
|
403
|
-
for (const k of TagConfigKeys) {
|
|
404
|
-
const val = tag.props[k] !== void 0 ? tag.props[k] : e[k];
|
|
405
|
-
if (val !== void 0) {
|
|
406
|
-
if (!(k === "innerHTML" || k === "textContent" || k === "children") || TagsWithInnerContent.has(tag.tag)) {
|
|
407
|
-
tag[k === "children" ? "innerHTML" : k] = val;
|
|
408
|
-
}
|
|
409
|
-
delete tag.props[k];
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
if (tag.props.body) {
|
|
413
|
-
tag.tagPosition = "bodyClose";
|
|
414
|
-
delete tag.props.body;
|
|
415
|
-
}
|
|
416
|
-
if (tag.tag === "script") {
|
|
417
|
-
if (typeof tag.innerHTML === "object") {
|
|
418
|
-
tag.innerHTML = JSON.stringify(tag.innerHTML);
|
|
419
|
-
tag.props.type = tag.props.type || "application/json";
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
|
|
423
|
-
}
|
|
424
|
-
function normaliseStyleClassProps(key, v) {
|
|
425
|
-
const sep = key === "class" ? " " : ";";
|
|
426
|
-
if (v && typeof v === "object" && !Array.isArray(v)) {
|
|
427
|
-
v = Object.entries(v).filter(([, v2]) => v2).map(([k, v2]) => key === "style" ? `${k}:${v2}` : k);
|
|
428
|
-
}
|
|
429
|
-
return String(Array.isArray(v) ? v.join(sep) : v)?.split(sep).filter((c) => Boolean(c.trim())).join(sep);
|
|
430
|
-
}
|
|
431
|
-
function nestedNormaliseProps(props, virtual, keys, startIndex) {
|
|
432
|
-
for (let i = startIndex; i < keys.length; i += 1) {
|
|
433
|
-
const k = keys[i];
|
|
434
|
-
if (k === "class" || k === "style") {
|
|
435
|
-
props[k] = normaliseStyleClassProps(k, props[k]);
|
|
436
|
-
continue;
|
|
437
|
-
}
|
|
438
|
-
if (props[k] instanceof Promise) {
|
|
439
|
-
return props[k].then((val) => {
|
|
440
|
-
props[k] = val;
|
|
441
|
-
return nestedNormaliseProps(props, virtual, keys, i);
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
if (!virtual && !TagConfigKeys.has(k)) {
|
|
445
|
-
const v = String(props[k]);
|
|
446
|
-
const isDataKey = k.startsWith("data-");
|
|
447
|
-
if (v === "true" || v === "") {
|
|
448
|
-
props[k] = isDataKey ? "true" : true;
|
|
449
|
-
} else if (!props[k]) {
|
|
450
|
-
if (isDataKey && v === "false")
|
|
451
|
-
props[k] = "false";
|
|
452
|
-
else
|
|
453
|
-
delete props[k];
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
function normaliseProps(props, virtual = false) {
|
|
459
|
-
const resolvedProps = nestedNormaliseProps(props, virtual, Object.keys(props), 0);
|
|
460
|
-
if (resolvedProps instanceof Promise) {
|
|
461
|
-
return resolvedProps.then(() => props);
|
|
462
|
-
}
|
|
463
|
-
return props;
|
|
464
|
-
}
|
|
465
|
-
const TagEntityBits = 10;
|
|
466
|
-
function nestedNormaliseEntryTags(headTags, tagPromises, startIndex) {
|
|
467
|
-
for (let i = startIndex; i < tagPromises.length; i += 1) {
|
|
468
|
-
const tags = tagPromises[i];
|
|
469
|
-
if (tags instanceof Promise) {
|
|
470
|
-
return tags.then((val) => {
|
|
471
|
-
tagPromises[i] = val;
|
|
472
|
-
return nestedNormaliseEntryTags(headTags, tagPromises, i);
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
if (Array.isArray(tags)) {
|
|
476
|
-
headTags.push(...tags);
|
|
477
|
-
} else {
|
|
478
|
-
headTags.push(tags);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
function normaliseEntryTags(e) {
|
|
483
|
-
const tagPromises = [];
|
|
484
|
-
const input = e.resolvedInput;
|
|
485
|
-
for (const k in input) {
|
|
486
|
-
if (!Object.prototype.hasOwnProperty.call(input, k)) {
|
|
487
|
-
continue;
|
|
488
|
-
}
|
|
489
|
-
const v = input[k];
|
|
490
|
-
if (v === void 0 || !ValidHeadTags.has(k)) {
|
|
491
|
-
continue;
|
|
492
|
-
}
|
|
493
|
-
if (Array.isArray(v)) {
|
|
494
|
-
for (const props of v) {
|
|
495
|
-
tagPromises.push(normaliseTag(k, props, e));
|
|
496
|
-
}
|
|
497
|
-
continue;
|
|
498
|
-
}
|
|
499
|
-
tagPromises.push(normaliseTag(k, v, e));
|
|
500
|
-
}
|
|
501
|
-
if (tagPromises.length === 0) {
|
|
502
|
-
return [];
|
|
503
|
-
}
|
|
504
|
-
const headTags = [];
|
|
505
|
-
return thenable(nestedNormaliseEntryTags(headTags, tagPromises, 0), () => headTags.map((t, i) => {
|
|
506
|
-
t._e = e._i;
|
|
507
|
-
e.mode && (t._m = e.mode);
|
|
508
|
-
t._p = (e._i << TagEntityBits) + i;
|
|
509
|
-
return t;
|
|
510
|
-
}));
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
const WhitelistAttributes = {
|
|
514
|
-
htmlAttrs: ["id", "class", "lang", "dir"],
|
|
515
|
-
bodyAttrs: ["id", "class"],
|
|
516
|
-
meta: ["id", "name", "property", "charset", "content"],
|
|
517
|
-
noscript: ["id", "textContent"],
|
|
518
|
-
script: ["id", "type", "textContent"],
|
|
519
|
-
link: ["id", "color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"]
|
|
520
|
-
};
|
|
521
|
-
function acceptDataAttrs(value) {
|
|
522
|
-
const filtered = {};
|
|
523
|
-
Object.keys(value || {}).filter((a) => a.startsWith("data-")).forEach((a) => {
|
|
524
|
-
filtered[a] = value[a];
|
|
525
|
-
});
|
|
526
|
-
return filtered;
|
|
527
|
-
}
|
|
528
|
-
function whitelistSafeInput(input) {
|
|
529
|
-
const filtered = {};
|
|
530
|
-
Object.keys(input).forEach((key) => {
|
|
531
|
-
const tagValue = input[key];
|
|
532
|
-
if (!tagValue)
|
|
533
|
-
return;
|
|
534
|
-
switch (key) {
|
|
535
|
-
case "title":
|
|
536
|
-
case "titleTemplate":
|
|
537
|
-
case "templateParams":
|
|
538
|
-
filtered[key] = tagValue;
|
|
539
|
-
break;
|
|
540
|
-
case "htmlAttrs":
|
|
541
|
-
case "bodyAttrs":
|
|
542
|
-
filtered[key] = acceptDataAttrs(tagValue);
|
|
543
|
-
WhitelistAttributes[key].forEach((a) => {
|
|
544
|
-
if (tagValue[a])
|
|
545
|
-
filtered[key][a] = tagValue[a];
|
|
546
|
-
});
|
|
547
|
-
break;
|
|
548
|
-
case "meta":
|
|
549
|
-
if (Array.isArray(tagValue)) {
|
|
550
|
-
filtered[key] = tagValue.map((meta) => {
|
|
551
|
-
const safeMeta = acceptDataAttrs(meta);
|
|
552
|
-
WhitelistAttributes.meta.forEach((key2) => {
|
|
553
|
-
if (meta[key2])
|
|
554
|
-
safeMeta[key2] = meta[key2];
|
|
555
|
-
});
|
|
556
|
-
return safeMeta;
|
|
557
|
-
}).filter((meta) => Object.keys(meta).length > 0);
|
|
558
|
-
}
|
|
559
|
-
break;
|
|
560
|
-
case "link":
|
|
561
|
-
if (Array.isArray(tagValue)) {
|
|
562
|
-
filtered[key] = tagValue.map((meta) => {
|
|
563
|
-
const link = acceptDataAttrs(meta);
|
|
564
|
-
WhitelistAttributes.link.forEach((key2) => {
|
|
565
|
-
const val = meta[key2];
|
|
566
|
-
if (key2 === "rel" && (val === "stylesheet" || val === "canonical" || val === "modulepreload" || val === "prerender" || val === "preload" || val === "prefetch"))
|
|
567
|
-
return;
|
|
568
|
-
if (key2 === "href") {
|
|
569
|
-
if (val.includes("javascript:") || val.includes("data:"))
|
|
570
|
-
return;
|
|
571
|
-
link[key2] = val;
|
|
572
|
-
} else if (val) {
|
|
573
|
-
link[key2] = val;
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
return link;
|
|
577
|
-
}).filter((link) => Object.keys(link).length > 1 && !!link.rel);
|
|
578
|
-
}
|
|
579
|
-
break;
|
|
580
|
-
case "noscript":
|
|
581
|
-
if (Array.isArray(tagValue)) {
|
|
582
|
-
filtered[key] = tagValue.map((meta) => {
|
|
583
|
-
const noscript = acceptDataAttrs(meta);
|
|
584
|
-
WhitelistAttributes.noscript.forEach((key2) => {
|
|
585
|
-
if (meta[key2])
|
|
586
|
-
noscript[key2] = meta[key2];
|
|
587
|
-
});
|
|
588
|
-
return noscript;
|
|
589
|
-
}).filter((meta) => Object.keys(meta).length > 0);
|
|
590
|
-
}
|
|
591
|
-
break;
|
|
592
|
-
case "script":
|
|
593
|
-
if (Array.isArray(tagValue)) {
|
|
594
|
-
filtered[key] = tagValue.map((script) => {
|
|
595
|
-
const safeScript = acceptDataAttrs(script);
|
|
596
|
-
WhitelistAttributes.script.forEach((s) => {
|
|
597
|
-
if (script[s]) {
|
|
598
|
-
if (s === "textContent") {
|
|
599
|
-
try {
|
|
600
|
-
const jsonVal = typeof script[s] === "string" ? JSON.parse(script[s]) : script[s];
|
|
601
|
-
safeScript[s] = JSON.stringify(jsonVal, null, 0);
|
|
602
|
-
} catch (e) {
|
|
603
|
-
}
|
|
604
|
-
} else {
|
|
605
|
-
safeScript[s] = script[s];
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
return safeScript;
|
|
610
|
-
}).filter((meta) => Object.keys(meta).length > 0);
|
|
611
|
-
}
|
|
612
|
-
break;
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
return filtered;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
const NetworkEvents = /* @__PURE__ */ new Set(["onload", "onerror", "onabort", "onprogress", "onloadstart"]);
|
|
619
|
-
const ScriptNetworkEvents = /* @__PURE__ */ new Set(["onload", "onerror"]);
|
|
620
|
-
|
|
621
|
-
const TAG_WEIGHTS = {
|
|
622
|
-
// tags
|
|
623
|
-
base: -10,
|
|
624
|
-
title: 10
|
|
625
|
-
};
|
|
626
|
-
const TAG_ALIASES = {
|
|
627
|
-
// relative scores to their default values
|
|
628
|
-
critical: -80,
|
|
629
|
-
high: -10,
|
|
630
|
-
low: 20
|
|
631
|
-
};
|
|
632
|
-
function tagWeight(tag) {
|
|
633
|
-
const priority = tag.tagPriority;
|
|
634
|
-
if (typeof priority === "number")
|
|
635
|
-
return priority;
|
|
636
|
-
let weight = 100;
|
|
637
|
-
if (tag.tag === "meta") {
|
|
638
|
-
if (tag.props["http-equiv"] === "content-security-policy")
|
|
639
|
-
weight = -30;
|
|
640
|
-
else if (tag.props.charset)
|
|
641
|
-
weight = -20;
|
|
642
|
-
else if (tag.props.name === "viewport")
|
|
643
|
-
weight = -15;
|
|
644
|
-
} else if (tag.tag === "link" && tag.props.rel === "preconnect") {
|
|
645
|
-
weight = 20;
|
|
646
|
-
} else if (tag.tag in TAG_WEIGHTS) {
|
|
647
|
-
weight = TAG_WEIGHTS[tag.tag];
|
|
648
|
-
}
|
|
649
|
-
if (priority && priority in TAG_ALIASES) {
|
|
650
|
-
return weight + TAG_ALIASES[priority];
|
|
651
|
-
}
|
|
652
|
-
return weight;
|
|
653
|
-
}
|
|
654
|
-
const SortModifiers = [{ prefix: "before:", offset: -1 }, { prefix: "after:", offset: 1 }];
|
|
655
|
-
|
|
656
|
-
const allowedMetaProperties = ["name", "property", "http-equiv"];
|
|
657
|
-
function tagDedupeKey(tag) {
|
|
658
|
-
const { props, tag: tagName } = tag;
|
|
659
|
-
if (UniqueTags.has(tagName))
|
|
660
|
-
return tagName;
|
|
661
|
-
if (tagName === "link" && props.rel === "canonical")
|
|
662
|
-
return "canonical";
|
|
663
|
-
if (props.charset)
|
|
664
|
-
return "charset";
|
|
665
|
-
if (props.id) {
|
|
666
|
-
return `${tagName}:id:${props.id}`;
|
|
667
|
-
}
|
|
668
|
-
for (const n of allowedMetaProperties) {
|
|
669
|
-
if (props[n] !== void 0) {
|
|
670
|
-
return `${tagName}:${n}:${props[n]}`;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
return false;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
const sepSub = "%separator";
|
|
677
|
-
function sub(p, token, isJson = false) {
|
|
678
|
-
let val;
|
|
679
|
-
if (token === "s" || token === "pageTitle") {
|
|
680
|
-
val = p.pageTitle;
|
|
681
|
-
} else if (token.includes(".")) {
|
|
682
|
-
const dotIndex = token.indexOf(".");
|
|
683
|
-
val = p[token.substring(0, dotIndex)]?.[token.substring(dotIndex + 1)];
|
|
684
|
-
} else {
|
|
685
|
-
val = p[token];
|
|
686
|
-
}
|
|
687
|
-
if (val !== void 0) {
|
|
688
|
-
return isJson ? (val || "").replace(/"/g, '\\"') : val || "";
|
|
689
|
-
}
|
|
690
|
-
return void 0;
|
|
691
|
-
}
|
|
692
|
-
const sepSubRe = new RegExp(`${sepSub}(?:\\s*${sepSub})*`, "g");
|
|
693
|
-
function processTemplateParams(s, p, sep, isJson = false) {
|
|
694
|
-
if (typeof s !== "string" || !s.includes("%"))
|
|
695
|
-
return s;
|
|
696
|
-
let decoded = s;
|
|
697
|
-
try {
|
|
698
|
-
decoded = decodeURI(s);
|
|
699
|
-
} catch {
|
|
700
|
-
}
|
|
701
|
-
const tokens = decoded.match(/%\w+(?:\.\w+)?/g);
|
|
702
|
-
if (!tokens) {
|
|
703
|
-
return s;
|
|
704
|
-
}
|
|
705
|
-
const hasSepSub = s.includes(sepSub);
|
|
706
|
-
s = s.replace(/%\w+(?:\.\w+)?/g, (token) => {
|
|
707
|
-
if (token === sepSub || !tokens.includes(token)) {
|
|
708
|
-
return token;
|
|
709
|
-
}
|
|
710
|
-
const re = sub(p, token.slice(1), isJson);
|
|
711
|
-
return re !== void 0 ? re : token;
|
|
712
|
-
}).trim();
|
|
713
|
-
if (hasSepSub) {
|
|
714
|
-
if (s.endsWith(sepSub))
|
|
715
|
-
s = s.slice(0, -sepSub.length);
|
|
716
|
-
if (s.startsWith(sepSub))
|
|
717
|
-
s = s.slice(sepSub.length);
|
|
718
|
-
s = s.replace(sepSubRe, sep).trim();
|
|
719
|
-
}
|
|
720
|
-
return s;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
function resolveTitleTemplate(template, title) {
|
|
724
|
-
if (template == null)
|
|
725
|
-
return title || null;
|
|
726
|
-
if (typeof template === "function")
|
|
727
|
-
return template(title);
|
|
728
|
-
return template;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export { HasElementTags, IsBrowser, NetworkEvents, ScriptNetworkEvents, SelfClosingTags, SortModifiers, TAG_ALIASES, TAG_WEIGHTS, TagConfigKeys, TagEntityBits, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray$1 as asArray, composableNames, defineHeadPlugin, hashCode, hashTag, normaliseEntryTags, normaliseProps, normaliseStyleClassProps, normaliseTag, packMeta, processTemplateParams, resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue, resolveTitleTemplate, tagDedupeKey, tagWeight, thenable, unpackMeta, whitelistSafeInput };
|