@nullix/zod-mongoose-studio 3.3.1 → 3.3.3
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 +1 -1
- package/.output/public/_nuxt/{BCIlnd0g.js → 5ZXm4f56.js} +1 -1
- package/.output/public/_nuxt/{DcJ7oPvZ.js → B2fcLSyW.js} +1 -1
- package/.output/public/_nuxt/{B0N6xv5E.js → BBN7l5Hn.js} +1 -1
- package/.output/public/_nuxt/BBTTtb8r.js +41 -0
- package/.output/public/_nuxt/{5Tu2WUJz.js → BDbISGvP.js} +1 -1
- package/.output/public/_nuxt/{D87QMS6j.js → BijI4RNx.js} +1 -1
- package/.output/public/_nuxt/{C2BHp-MG.js → Bp9qkJ9m.js} +1 -1
- package/.output/public/_nuxt/{I3Ucam2s.js → Bu3-sqCf.js} +1 -1
- package/.output/public/_nuxt/{BO4hqv6q.js → C-FtTvwz.js} +1 -1
- package/.output/public/_nuxt/C02JV0Aj.js +1 -0
- package/.output/public/_nuxt/{sKEJiAHO.js → C1UkIsDc.js} +1 -1
- package/.output/public/_nuxt/{CKULsFUz.js → CJT28r6J.js} +1 -1
- package/.output/public/_nuxt/{BNDnV2op.js → CL7qtgl2.js} +3 -3
- package/.output/public/_nuxt/{DA0pQuyP.js → CRMd2YH2.js} +3 -3
- package/.output/public/_nuxt/{DpKrXpkK.js → CRkdQgFz.js} +1 -1
- package/.output/public/_nuxt/{B0cUlOSM.js → Cw1XFOz5.js} +1 -1
- package/.output/public/_nuxt/{CzbCpNnc.js → D5yWk6Ly.js} +1 -1
- package/.output/public/_nuxt/{BOsJJ_ZU.js → DA9GjKpR.js} +1 -1
- package/.output/public/_nuxt/{Dce9SnGa.js → DaWAlZhp.js} +1 -1
- package/.output/public/_nuxt/{tqQNlhT9.js → DafLMUHo.js} +1 -1
- package/.output/public/_nuxt/{ypRHVLFO.js → Dyaldc-t.js} +1 -1
- package/.output/public/_nuxt/{o-NCh2rp.js → UU9fpRNQ.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
- package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
- package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
- package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
- package/.output/public/_nuxt/{CMH9iX_E.js → kFZJW2-u.js} +2 -2
- package/.output/public/_nuxt/{DsnIpnT9.js → u3DlT5Mh.js} +1 -1
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/parse-request.mjs +29 -0
- package/.output/server/chunks/_/parse-request.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
- package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
- package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
- package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
- package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +3913 -3378
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/nitro/nitro.mjs +652 -2278
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/editor-types.get.mjs +91 -28
- package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
- package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
- package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/studio/run.post.mjs +50 -12
- package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +21 -44
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs +1 -7
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
- package/.output/server/node_modules/@babel/parser/package.json +7 -7
- package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
- package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
- package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
- package/.output/server/node_modules/@iconify/utils/package.json +15 -13
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
- package/.output/server/node_modules/devalue/index.js +15 -2
- package/.output/server/node_modules/devalue/package.json +5 -3
- package/.output/server/node_modules/devalue/src/base64.js +46 -96
- package/.output/server/node_modules/devalue/src/constants.js +5 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +76 -62
- package/.output/server/node_modules/devalue/src/stringify.js +164 -81
- package/.output/server/node_modules/devalue/src/uneval.js +312 -104
- package/.output/server/node_modules/devalue/src/utils.js +61 -19
- package/.output/server/node_modules/esbuild/lib/main.js +12 -8
- package/.output/server/node_modules/esbuild/package.json +50 -50
- package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
- package/.output/server/node_modules/hookable/package.json +23 -22
- package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
- package/.output/server/node_modules/ip-address/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +20 -8
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
- package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
- package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
- package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
- package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
- package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
- package/.output/server/node_modules/zod/v4/core/api.js +51 -26
- package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
- package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
- package/.output/server/node_modules/zod/v4/core/core.js +87 -22
- package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
- package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
- package/.output/server/node_modules/zod/v4/core/index.js +3 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
- package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
- package/.output/server/node_modules/zod/v4/core/package.json +2 -1
- package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
- package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
- package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
- package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
- package/.output/server/node_modules/zod/v4/core/util.js +383 -175
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
- package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
- package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
- package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
- package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
- package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
- package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
- package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/.output/server/node_modules/zod/v4/package.json +2 -1
- package/.output/server/package.json +18 -18
- package/README.md +12 -1
- package/package.json +10 -9
- package/server/api/editor-types.get.ts +2 -23
- package/server/api/studio/run.post.ts +18 -6
- package/server/utils/editor-types.json +1 -0
- package/.output/public/_nuxt/B9paGgN0.js +0 -33
- package/.output/public/_nuxt/builds/meta/51f1351c-0667-4235-9ddc-16582a51ce03.json +0 -1
- package/.output/public/_nuxt/entry.B-vs1tRH.css +0 -1
- package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
- package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
- package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
- package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import http, {
|
|
2
|
-
import vm from 'node:vm';
|
|
3
|
-
import { transformSync } from 'esbuild';
|
|
4
|
-
import util from 'node:util';
|
|
5
|
-
import { parse } from 'acorn';
|
|
6
|
-
import * as zod from 'zod/v4';
|
|
7
|
-
import { z } from 'zod/v4';
|
|
8
|
-
import mongoose from 'mongoose';
|
|
1
|
+
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import http, { Server as Server$1 } from 'node:http';
|
|
9
2
|
import https, { Server } from 'node:https';
|
|
10
3
|
import { EventEmitter } from 'node:events';
|
|
11
4
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
@@ -88,12 +81,14 @@ const HASH_RE = /#/g;
|
|
|
88
81
|
const AMPERSAND_RE = /&/g;
|
|
89
82
|
const SLASH_RE = /\//g;
|
|
90
83
|
const EQUAL_RE = /=/g;
|
|
84
|
+
const IM_RE = /\?/g;
|
|
91
85
|
const PLUS_RE = /\+/g;
|
|
92
86
|
const ENC_CARET_RE = /%5e/gi;
|
|
93
87
|
const ENC_BACKTICK_RE = /%60/gi;
|
|
94
88
|
const ENC_PIPE_RE = /%7c/gi;
|
|
95
89
|
const ENC_SPACE_RE = /%20/gi;
|
|
96
90
|
const ENC_SLASH_RE = /%2f/gi;
|
|
91
|
+
const ENC_ENC_SLASH_RE = /%252f/gi;
|
|
97
92
|
function encode(text) {
|
|
98
93
|
return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
|
|
99
94
|
}
|
|
@@ -103,6 +98,9 @@ function encodeQueryValue(input) {
|
|
|
103
98
|
function encodeQueryKey(text) {
|
|
104
99
|
return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
|
|
105
100
|
}
|
|
101
|
+
function encodePath(text) {
|
|
102
|
+
return encode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F").replace(ENC_ENC_SLASH_RE, "%2F").replace(AMPERSAND_RE, "%26").replace(PLUS_RE, "%2B");
|
|
103
|
+
}
|
|
106
104
|
function decode(text = "") {
|
|
107
105
|
try {
|
|
108
106
|
return decodeURIComponent("" + text);
|
|
@@ -166,6 +164,8 @@ function stringifyQuery(query) {
|
|
|
166
164
|
const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/;
|
|
167
165
|
const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/;
|
|
168
166
|
const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/;
|
|
167
|
+
const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i;
|
|
168
|
+
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
169
169
|
const JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
170
170
|
function hasProtocol(inputString, opts = {}) {
|
|
171
171
|
if (typeof opts === "boolean") {
|
|
@@ -176,20 +176,52 @@ function hasProtocol(inputString, opts = {}) {
|
|
|
176
176
|
}
|
|
177
177
|
return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false);
|
|
178
178
|
}
|
|
179
|
+
function isScriptProtocol(protocol) {
|
|
180
|
+
return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol);
|
|
181
|
+
}
|
|
179
182
|
function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
180
|
-
{
|
|
183
|
+
if (!respectQueryAndFragment) {
|
|
181
184
|
return input.endsWith("/");
|
|
182
185
|
}
|
|
186
|
+
return TRAILING_SLASH_RE.test(input);
|
|
183
187
|
}
|
|
184
188
|
function withoutTrailingSlash(input = "", respectQueryAndFragment) {
|
|
185
|
-
{
|
|
189
|
+
if (!respectQueryAndFragment) {
|
|
186
190
|
return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/";
|
|
187
191
|
}
|
|
192
|
+
if (!hasTrailingSlash(input, true)) {
|
|
193
|
+
return input || "/";
|
|
194
|
+
}
|
|
195
|
+
let path = input;
|
|
196
|
+
let fragment = "";
|
|
197
|
+
const fragmentIndex = input.indexOf("#");
|
|
198
|
+
if (fragmentIndex !== -1) {
|
|
199
|
+
path = input.slice(0, fragmentIndex);
|
|
200
|
+
fragment = input.slice(fragmentIndex);
|
|
201
|
+
}
|
|
202
|
+
const [s0, ...s] = path.split("?");
|
|
203
|
+
const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0;
|
|
204
|
+
return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
188
205
|
}
|
|
189
206
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
190
|
-
{
|
|
207
|
+
if (!respectQueryAndFragment) {
|
|
191
208
|
return input.endsWith("/") ? input : input + "/";
|
|
192
209
|
}
|
|
210
|
+
if (hasTrailingSlash(input, true)) {
|
|
211
|
+
return input || "/";
|
|
212
|
+
}
|
|
213
|
+
let path = input;
|
|
214
|
+
let fragment = "";
|
|
215
|
+
const fragmentIndex = input.indexOf("#");
|
|
216
|
+
if (fragmentIndex !== -1) {
|
|
217
|
+
path = input.slice(0, fragmentIndex);
|
|
218
|
+
fragment = input.slice(fragmentIndex);
|
|
219
|
+
if (!path) {
|
|
220
|
+
return fragment;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const [s0, ...s] = path.split("?");
|
|
224
|
+
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
193
225
|
}
|
|
194
226
|
function hasLeadingSlash(input = "") {
|
|
195
227
|
return input.startsWith("/");
|
|
@@ -1943,12 +1975,12 @@ function toNodeListener(app) {
|
|
|
1943
1975
|
return toNodeHandle;
|
|
1944
1976
|
}
|
|
1945
1977
|
|
|
1946
|
-
function flatHooks
|
|
1978
|
+
function flatHooks(configHooks, hooks = {}, parentName) {
|
|
1947
1979
|
for (const key in configHooks) {
|
|
1948
1980
|
const subHook = configHooks[key];
|
|
1949
1981
|
const name = parentName ? `${parentName}:${key}` : key;
|
|
1950
1982
|
if (typeof subHook === "object" && subHook !== null) {
|
|
1951
|
-
flatHooks
|
|
1983
|
+
flatHooks(subHook, hooks, name);
|
|
1952
1984
|
} else if (typeof subHook === "function") {
|
|
1953
1985
|
hooks[name] = subHook;
|
|
1954
1986
|
}
|
|
@@ -1957,27 +1989,27 @@ function flatHooks$1(configHooks, hooks = {}, parentName) {
|
|
|
1957
1989
|
}
|
|
1958
1990
|
const defaultTask = { run: (function_) => function_() };
|
|
1959
1991
|
const _createTask = () => defaultTask;
|
|
1960
|
-
const createTask
|
|
1961
|
-
function serialTaskCaller
|
|
1992
|
+
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
|
|
1993
|
+
function serialTaskCaller(hooks, args) {
|
|
1962
1994
|
const name = args.shift();
|
|
1963
|
-
const task = createTask
|
|
1995
|
+
const task = createTask(name);
|
|
1964
1996
|
return hooks.reduce(
|
|
1965
1997
|
(promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
|
|
1966
1998
|
Promise.resolve()
|
|
1967
1999
|
);
|
|
1968
2000
|
}
|
|
1969
|
-
function parallelTaskCaller
|
|
2001
|
+
function parallelTaskCaller(hooks, args) {
|
|
1970
2002
|
const name = args.shift();
|
|
1971
|
-
const task = createTask
|
|
2003
|
+
const task = createTask(name);
|
|
1972
2004
|
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
|
1973
2005
|
}
|
|
1974
|
-
function callEachWith
|
|
2006
|
+
function callEachWith(callbacks, arg0) {
|
|
1975
2007
|
for (const callback of [...callbacks]) {
|
|
1976
2008
|
callback(arg0);
|
|
1977
2009
|
}
|
|
1978
2010
|
}
|
|
1979
2011
|
|
|
1980
|
-
|
|
2012
|
+
class Hookable {
|
|
1981
2013
|
constructor() {
|
|
1982
2014
|
this._hooks = {};
|
|
1983
2015
|
this._before = void 0;
|
|
@@ -2069,7 +2101,7 @@ let Hookable$1 = class Hookable {
|
|
|
2069
2101
|
}
|
|
2070
2102
|
}
|
|
2071
2103
|
addHooks(configHooks) {
|
|
2072
|
-
const hooks = flatHooks
|
|
2104
|
+
const hooks = flatHooks(configHooks);
|
|
2073
2105
|
const removeFns = Object.keys(hooks).map(
|
|
2074
2106
|
(key) => this.hook(key, hooks[key])
|
|
2075
2107
|
);
|
|
@@ -2080,7 +2112,7 @@ let Hookable$1 = class Hookable {
|
|
|
2080
2112
|
};
|
|
2081
2113
|
}
|
|
2082
2114
|
removeHooks(configHooks) {
|
|
2083
|
-
const hooks = flatHooks
|
|
2115
|
+
const hooks = flatHooks(configHooks);
|
|
2084
2116
|
for (const key in hooks) {
|
|
2085
2117
|
this.removeHook(key, hooks[key]);
|
|
2086
2118
|
}
|
|
@@ -2092,16 +2124,16 @@ let Hookable$1 = class Hookable {
|
|
|
2092
2124
|
}
|
|
2093
2125
|
callHook(name, ...arguments_) {
|
|
2094
2126
|
arguments_.unshift(name);
|
|
2095
|
-
return this.callHookWith(serialTaskCaller
|
|
2127
|
+
return this.callHookWith(serialTaskCaller, name, ...arguments_);
|
|
2096
2128
|
}
|
|
2097
2129
|
callHookParallel(name, ...arguments_) {
|
|
2098
2130
|
arguments_.unshift(name);
|
|
2099
|
-
return this.callHookWith(parallelTaskCaller
|
|
2131
|
+
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
|
|
2100
2132
|
}
|
|
2101
2133
|
callHookWith(caller, name, ...arguments_) {
|
|
2102
2134
|
const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
|
|
2103
2135
|
if (this._before) {
|
|
2104
|
-
callEachWith
|
|
2136
|
+
callEachWith(this._before, event);
|
|
2105
2137
|
}
|
|
2106
2138
|
const result = caller(
|
|
2107
2139
|
name in this._hooks ? [...this._hooks[name]] : [],
|
|
@@ -2110,12 +2142,12 @@ let Hookable$1 = class Hookable {
|
|
|
2110
2142
|
if (result instanceof Promise) {
|
|
2111
2143
|
return result.finally(() => {
|
|
2112
2144
|
if (this._after && event) {
|
|
2113
|
-
callEachWith
|
|
2145
|
+
callEachWith(this._after, event);
|
|
2114
2146
|
}
|
|
2115
2147
|
});
|
|
2116
2148
|
}
|
|
2117
2149
|
if (this._after && event) {
|
|
2118
|
-
callEachWith
|
|
2150
|
+
callEachWith(this._after, event);
|
|
2119
2151
|
}
|
|
2120
2152
|
return result;
|
|
2121
2153
|
}
|
|
@@ -2143,9 +2175,9 @@ let Hookable$1 = class Hookable {
|
|
|
2143
2175
|
}
|
|
2144
2176
|
};
|
|
2145
2177
|
}
|
|
2146
|
-
}
|
|
2147
|
-
function createHooks
|
|
2148
|
-
return new Hookable
|
|
2178
|
+
}
|
|
2179
|
+
function createHooks() {
|
|
2180
|
+
return new Hookable();
|
|
2149
2181
|
}
|
|
2150
2182
|
|
|
2151
2183
|
const s=globalThis.Headers,i=globalThis.AbortController,l=globalThis.fetch||(()=>{throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!")});
|
|
@@ -2279,7 +2311,7 @@ function mergeHeaders(input, defaults, Headers) {
|
|
|
2279
2311
|
}
|
|
2280
2312
|
return headers;
|
|
2281
2313
|
}
|
|
2282
|
-
async function callHooks
|
|
2314
|
+
async function callHooks(context, hooks) {
|
|
2283
2315
|
if (hooks) {
|
|
2284
2316
|
if (Array.isArray(hooks)) {
|
|
2285
2317
|
for (const hook of hooks) {
|
|
@@ -2359,7 +2391,7 @@ function createFetch(globalOptions = {}) {
|
|
|
2359
2391
|
context.options.method = context.options.method.toUpperCase();
|
|
2360
2392
|
}
|
|
2361
2393
|
if (context.options.onRequest) {
|
|
2362
|
-
await callHooks
|
|
2394
|
+
await callHooks(context, context.options.onRequest);
|
|
2363
2395
|
if (!(context.options.headers instanceof Headers)) {
|
|
2364
2396
|
context.options.headers = new Headers(
|
|
2365
2397
|
context.options.headers || {}
|
|
@@ -2427,7 +2459,7 @@ function createFetch(globalOptions = {}) {
|
|
|
2427
2459
|
} catch (error) {
|
|
2428
2460
|
context.error = error;
|
|
2429
2461
|
if (context.options.onRequestError) {
|
|
2430
|
-
await callHooks
|
|
2462
|
+
await callHooks(
|
|
2431
2463
|
context,
|
|
2432
2464
|
context.options.onRequestError
|
|
2433
2465
|
);
|
|
@@ -2461,14 +2493,14 @@ function createFetch(globalOptions = {}) {
|
|
|
2461
2493
|
}
|
|
2462
2494
|
}
|
|
2463
2495
|
if (context.options.onResponse) {
|
|
2464
|
-
await callHooks
|
|
2496
|
+
await callHooks(
|
|
2465
2497
|
context,
|
|
2466
2498
|
context.options.onResponse
|
|
2467
2499
|
);
|
|
2468
2500
|
}
|
|
2469
2501
|
if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {
|
|
2470
2502
|
if (context.options.onResponseError) {
|
|
2471
|
-
await callHooks
|
|
2503
|
+
await callHooks(
|
|
2472
2504
|
context,
|
|
2473
2505
|
context.options.onResponseError
|
|
2474
2506
|
);
|
|
@@ -2516,7 +2548,7 @@ const fetch$1 = globalThis.fetch ? (...args) => globalThis.fetch(...args) : crea
|
|
|
2516
2548
|
const Headers$1 = globalThis.Headers || s;
|
|
2517
2549
|
const AbortController = globalThis.AbortController || i;
|
|
2518
2550
|
const ofetch = createFetch({ fetch: fetch$1, Headers: Headers$1, AbortController });
|
|
2519
|
-
const $fetch
|
|
2551
|
+
const $fetch = ofetch;
|
|
2520
2552
|
|
|
2521
2553
|
function wrapToPromise(value) {
|
|
2522
2554
|
if (!value || typeof value.then !== "function") {
|
|
@@ -4112,6 +4144,7 @@ const inlineAppConfig = {
|
|
|
4112
4144
|
"reload": "i-lucide-rotate-ccw",
|
|
4113
4145
|
"search": "i-lucide-search",
|
|
4114
4146
|
"stop": "i-lucide-square",
|
|
4147
|
+
"star": "i-lucide-star",
|
|
4115
4148
|
"success": "i-lucide-circle-check",
|
|
4116
4149
|
"system": "i-lucide-monitor",
|
|
4117
4150
|
"tip": "i-lucide-lightbulb",
|
|
@@ -4462,7 +4495,7 @@ function _expandFromEnv(value) {
|
|
|
4462
4495
|
const _inlineRuntimeConfig = {
|
|
4463
4496
|
"app": {
|
|
4464
4497
|
"baseURL": "/",
|
|
4465
|
-
"buildId": "
|
|
4498
|
+
"buildId": "717459d8-0da1-42ed-af0b-9ec5395e8fdc",
|
|
4466
4499
|
"buildAssetsDir": "/_nuxt/",
|
|
4467
4500
|
"cdnURL": ""
|
|
4468
4501
|
},
|
|
@@ -4523,12 +4556,7 @@ function useRuntimeConfig(event) {
|
|
|
4523
4556
|
event.context.nitro.runtimeConfig = runtimeConfig;
|
|
4524
4557
|
return runtimeConfig;
|
|
4525
4558
|
}
|
|
4526
|
-
|
|
4527
|
-
function useAppConfig(event) {
|
|
4528
|
-
{
|
|
4529
|
-
return _sharedAppConfig;
|
|
4530
|
-
}
|
|
4531
|
-
}
|
|
4559
|
+
_deepFreeze(klona(appConfig));
|
|
4532
4560
|
function _deepFreeze(object) {
|
|
4533
4561
|
const propNames = Object.getOwnPropertyNames(object);
|
|
4534
4562
|
for (const name of propNames) {
|
|
@@ -4933,891 +4961,898 @@ async function errorHandler(error, event) {
|
|
|
4933
4961
|
// H3 will handle fallback
|
|
4934
4962
|
}
|
|
4935
4963
|
|
|
4936
|
-
const script = "\"use strict\";(()=>{const
|
|
4964
|
+
const script = "\"use strict\";(()=>{const o=window,e=document.documentElement,c=[\"dark\",\"light\"],s=getStorageValue(\"localStorage\",\"nuxt-color-mode\")||\"system\";let r=s===\"system\"?f():s;const l=e.getAttribute(\"data-color-mode-forced\");l&&(r=l),i(r),o[\"__NUXT_COLOR_MODE__\"]={preference:s,value:r,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(t){const a=\"\"+t+\"\",n=\"\";e.classList?e.classList.add(a):e.className+=\" \"+a,n&&e.setAttribute(\"data-\"+n,t)}function d(t){const a=\"\"+t+\"\",n=\"\";e.classList?e.classList.remove(a):e.className=e.className.replace(new RegExp(a,\"g\"),\"\"),n&&e.removeAttribute(\"data-\"+n)}function u(t){return o.matchMedia(\"(prefers-color-scheme\"+t+\")\")}function f(){if(o.matchMedia&&u(\"\").media!==\"not all\"){for(const t of c)if(u(\":\"+t).matches)return t}return\"light\"}})();function getStorageValue(o,e){switch(o){case\"localStorage\":try{return window.localStorage.getItem(e)}catch{return null}case\"sessionStorage\":try{return window.sessionStorage.getItem(e)}catch{return null}case\"cookie\":try{return getCookie(e)}catch{return null}default:return null}}function getCookie(o){const c=(\"; \"+window.document.cookie).split(\"; \"+o+\"=\");if(c.length===2){const s=c.pop();return s?s.split(\";\").shift():null}}";
|
|
4937
4965
|
|
|
4938
|
-
const
|
|
4966
|
+
const _IQJoKiGTkLUZoFQY5blCKInda0KJEvzAdTkvmE4BTIY = (function(nitro) {
|
|
4939
4967
|
nitro.hooks.hook("render:html", (htmlContext) => {
|
|
4940
4968
|
htmlContext.head.push(`<script>${script}<\/script>`);
|
|
4941
4969
|
});
|
|
4942
4970
|
});
|
|
4943
4971
|
|
|
4944
4972
|
const plugins = [
|
|
4945
|
-
|
|
4973
|
+
_IQJoKiGTkLUZoFQY5blCKInda0KJEvzAdTkvmE4BTIY
|
|
4946
4974
|
];
|
|
4947
4975
|
|
|
4948
4976
|
const assets = {
|
|
4949
|
-
"/android-chrome-192x192.png": {
|
|
4950
|
-
"type": "image/png",
|
|
4951
|
-
"etag": "\"3ad0-QyBoLY89FSkQ3jQ6kYWo21t19MI\"",
|
|
4952
|
-
"mtime": "2026-09-29T10:07:41.529Z",
|
|
4953
|
-
"size": 15056,
|
|
4954
|
-
"path": "../public/android-chrome-192x192.png"
|
|
4955
|
-
},
|
|
4956
4977
|
"/android-chrome-512x512.png": {
|
|
4957
4978
|
"type": "image/png",
|
|
4958
4979
|
"etag": "\"a607-Tx5rFH47AswgZVVr/4EZAFZgo/A\"",
|
|
4959
|
-
"mtime": "2026-
|
|
4980
|
+
"mtime": "2026-10-09T11:58:05.988Z",
|
|
4960
4981
|
"size": 42503,
|
|
4961
4982
|
"path": "../public/android-chrome-512x512.png"
|
|
4962
4983
|
},
|
|
4984
|
+
"/android-chrome-192x192.png": {
|
|
4985
|
+
"type": "image/png",
|
|
4986
|
+
"etag": "\"3ad0-QyBoLY89FSkQ3jQ6kYWo21t19MI\"",
|
|
4987
|
+
"mtime": "2026-10-09T11:58:05.988Z",
|
|
4988
|
+
"size": 15056,
|
|
4989
|
+
"path": "../public/android-chrome-192x192.png"
|
|
4990
|
+
},
|
|
4963
4991
|
"/apple-touch-icon.png": {
|
|
4964
4992
|
"type": "image/png",
|
|
4965
4993
|
"etag": "\"34bd-3QQEmjyBlqNXOHQzdK75bZGa41E\"",
|
|
4966
|
-
"mtime": "2026-
|
|
4994
|
+
"mtime": "2026-10-09T11:58:05.988Z",
|
|
4967
4995
|
"size": 13501,
|
|
4968
4996
|
"path": "../public/apple-touch-icon.png"
|
|
4969
4997
|
},
|
|
4970
4998
|
"/favicon-16x16.png": {
|
|
4971
4999
|
"type": "image/png",
|
|
4972
5000
|
"etag": "\"300-3ReZfkEBD+LQFkb0huYbCmUrRNo\"",
|
|
4973
|
-
"mtime": "2026-
|
|
5001
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
4974
5002
|
"size": 768,
|
|
4975
5003
|
"path": "../public/favicon-16x16.png"
|
|
4976
5004
|
},
|
|
4977
5005
|
"/favicon-32x32.png": {
|
|
4978
5006
|
"type": "image/png",
|
|
4979
5007
|
"etag": "\"6b7-NntNGG1aOmdW9ivfGhxBdj9tfVw\"",
|
|
4980
|
-
"mtime": "2026-
|
|
5008
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
4981
5009
|
"size": 1719,
|
|
4982
5010
|
"path": "../public/favicon-32x32.png"
|
|
4983
5011
|
},
|
|
4984
|
-
"/favicon.ico": {
|
|
4985
|
-
"type": "image/vnd.microsoft.icon",
|
|
4986
|
-
"etag": "\"3c2e-es1fg4pe8uDI2uJ6zpC4eMeZwAo\"",
|
|
4987
|
-
"mtime": "2026-09-29T10:07:41.529Z",
|
|
4988
|
-
"size": 15406,
|
|
4989
|
-
"path": "../public/favicon.ico"
|
|
4990
|
-
},
|
|
4991
5012
|
"/robots.txt": {
|
|
4992
5013
|
"type": "text/plain; charset=utf-8",
|
|
4993
5014
|
"etag": "\"18-j8OIsL9qGDmNZ+lHhp2tyH4XtaE\"",
|
|
4994
|
-
"mtime": "2026-
|
|
5015
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
4995
5016
|
"size": 24,
|
|
4996
5017
|
"path": "../public/robots.txt"
|
|
4997
5018
|
},
|
|
5019
|
+
"/favicon.ico": {
|
|
5020
|
+
"type": "image/vnd.microsoft.icon",
|
|
5021
|
+
"etag": "\"3c2e-es1fg4pe8uDI2uJ6zpC4eMeZwAo\"",
|
|
5022
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5023
|
+
"size": 15406,
|
|
5024
|
+
"path": "../public/favicon.ico"
|
|
5025
|
+
},
|
|
4998
5026
|
"/site.webmanifest": {
|
|
4999
5027
|
"type": "application/manifest+json",
|
|
5000
5028
|
"etag": "\"107-vzG6+RvdL83iSkXj8qG+M3M8b2k\"",
|
|
5001
|
-
"mtime": "2026-
|
|
5029
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5002
5030
|
"size": 263,
|
|
5003
5031
|
"path": "../public/site.webmanifest"
|
|
5004
5032
|
},
|
|
5005
5033
|
"/zodmongoose-b.jpg": {
|
|
5006
5034
|
"type": "image/jpeg",
|
|
5007
5035
|
"etag": "\"bba9-C7tcEi/Rte2CpxJPn9o2oDEfZ5I\"",
|
|
5008
|
-
"mtime": "2026-
|
|
5036
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5009
5037
|
"size": 48041,
|
|
5010
5038
|
"path": "../public/zodmongoose-b.jpg"
|
|
5011
5039
|
},
|
|
5040
|
+
"/zodmongoose-b.png": {
|
|
5041
|
+
"type": "image/png",
|
|
5042
|
+
"etag": "\"8ca6-2NZ8CEl6Sh3yXhHwinshX6s5YJk\"",
|
|
5043
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5044
|
+
"size": 36006,
|
|
5045
|
+
"path": "../public/zodmongoose-b.png"
|
|
5046
|
+
},
|
|
5012
5047
|
"/zodmongoose-b.svg": {
|
|
5013
5048
|
"type": "image/svg+xml",
|
|
5014
5049
|
"etag": "\"8d1-fyAQMwygQVSe1aEhM1zq8g7uh0E\"",
|
|
5015
|
-
"mtime": "2026-
|
|
5050
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5016
5051
|
"size": 2257,
|
|
5017
5052
|
"path": "../public/zodmongoose-b.svg"
|
|
5018
5053
|
},
|
|
5019
|
-
"/zodmongoose
|
|
5020
|
-
"type": "image/
|
|
5021
|
-
"etag": "\"
|
|
5022
|
-
"mtime": "2026-
|
|
5023
|
-
"size":
|
|
5024
|
-
"path": "../public/zodmongoose
|
|
5054
|
+
"/zodmongoose.jpg": {
|
|
5055
|
+
"type": "image/jpeg",
|
|
5056
|
+
"etag": "\"1cb92-DVl82sENXcztkHA/oqGnF7i8mNw\"",
|
|
5057
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5058
|
+
"size": 117650,
|
|
5059
|
+
"path": "../public/zodmongoose.jpg"
|
|
5025
5060
|
},
|
|
5026
5061
|
"/zodmongoose.png": {
|
|
5027
5062
|
"type": "image/png",
|
|
5028
5063
|
"etag": "\"a5cd-fvxOutXODdTKApyIjJvfHKZ9/lk\"",
|
|
5029
|
-
"mtime": "2026-
|
|
5064
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5030
5065
|
"size": 42445,
|
|
5031
5066
|
"path": "../public/zodmongoose.png"
|
|
5032
5067
|
},
|
|
5033
5068
|
"/zodmongoose.svg": {
|
|
5034
5069
|
"type": "image/svg+xml",
|
|
5035
5070
|
"etag": "\"2223-/eFCEKOmfvQfyKwirwvmMm+9U+c\"",
|
|
5036
|
-
"mtime": "2026-
|
|
5071
|
+
"mtime": "2026-10-09T11:58:05.989Z",
|
|
5037
5072
|
"size": 8739,
|
|
5038
5073
|
"path": "../public/zodmongoose.svg"
|
|
5039
5074
|
},
|
|
5040
|
-
"/zodmongoose.jpg": {
|
|
5041
|
-
"type": "image/jpeg",
|
|
5042
|
-
"etag": "\"1cb92-DVl82sENXcztkHA/oqGnF7i8mNw\"",
|
|
5043
|
-
"mtime": "2026-09-29T10:07:41.530Z",
|
|
5044
|
-
"size": 117650,
|
|
5045
|
-
"path": "../public/zodmongoose.jpg"
|
|
5046
|
-
},
|
|
5047
5075
|
"/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2": {
|
|
5048
5076
|
"type": "font/woff2",
|
|
5049
5077
|
"etag": "\"4b5c-TAo9mx7r3xQs52+HbHcHJ52z8Qo\"",
|
|
5050
|
-
"mtime": "2026-
|
|
5078
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5051
5079
|
"size": 19292,
|
|
5052
5080
|
"path": "../public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2"
|
|
5053
5081
|
},
|
|
5054
5082
|
"/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2": {
|
|
5055
5083
|
"type": "font/woff2",
|
|
5056
5084
|
"etag": "\"212c-FshXJibFzNhd2HEIMP8C3JR5PYg\"",
|
|
5057
|
-
"mtime": "2026-
|
|
5085
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5058
5086
|
"size": 8492,
|
|
5059
5087
|
"path": "../public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2"
|
|
5060
5088
|
},
|
|
5061
5089
|
"/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2": {
|
|
5062
5090
|
"type": "font/woff2",
|
|
5063
5091
|
"etag": "\"680c-mJtsV33lkTAKSmfq5k3lKHSllcU\"",
|
|
5064
|
-
"mtime": "2026-
|
|
5092
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5065
5093
|
"size": 26636,
|
|
5066
5094
|
"path": "../public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2"
|
|
5067
5095
|
},
|
|
5068
5096
|
"/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2": {
|
|
5069
5097
|
"type": "font/woff2",
|
|
5070
5098
|
"etag": "\"6ec4-8OoFFPZKF1grqmfGVjh5JDE6DOU\"",
|
|
5071
|
-
"mtime": "2026-
|
|
5099
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5072
5100
|
"size": 28356,
|
|
5073
5101
|
"path": "../public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2"
|
|
5074
5102
|
},
|
|
5075
5103
|
"/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2": {
|
|
5076
5104
|
"type": "font/woff2",
|
|
5077
5105
|
"etag": "\"1d98-cDZfMibtk4T04FTTAmlfhWDpkN0\"",
|
|
5078
|
-
"mtime": "2026-
|
|
5106
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5079
5107
|
"size": 7576,
|
|
5080
5108
|
"path": "../public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2"
|
|
5081
5109
|
},
|
|
5082
5110
|
"/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2": {
|
|
5083
5111
|
"type": "font/woff2",
|
|
5084
5112
|
"etag": "\"47c4-5xyngHnzzhetUee74tMx9OTgqNQ\"",
|
|
5085
|
-
"mtime": "2026-
|
|
5113
|
+
"mtime": "2026-10-09T11:58:05.910Z",
|
|
5086
5114
|
"size": 18372,
|
|
5087
5115
|
"path": "../public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2"
|
|
5088
5116
|
},
|
|
5089
|
-
"/_nuxt/
|
|
5117
|
+
"/_nuxt/5ZXm4f56.js": {
|
|
5090
5118
|
"type": "text/javascript; charset=utf-8",
|
|
5091
|
-
"etag": "\"
|
|
5092
|
-
"mtime": "2026-
|
|
5093
|
-
"size":
|
|
5094
|
-
"path": "../public/_nuxt/
|
|
5119
|
+
"etag": "\"da4-rm2JK7/QggjGaugkeUvibpoLdPA\"",
|
|
5120
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5121
|
+
"size": 3492,
|
|
5122
|
+
"path": "../public/_nuxt/5ZXm4f56.js"
|
|
5095
5123
|
},
|
|
5096
5124
|
"/_nuxt/8SOpv6rk.js": {
|
|
5097
5125
|
"type": "text/javascript; charset=utf-8",
|
|
5098
5126
|
"etag": "\"1252-jhNpKqIAahWiFbQfUlPi0MNOHvA\"",
|
|
5099
|
-
"mtime": "2026-
|
|
5127
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5100
5128
|
"size": 4690,
|
|
5101
5129
|
"path": "../public/_nuxt/8SOpv6rk.js"
|
|
5102
5130
|
},
|
|
5103
5131
|
"/_nuxt/9HpZscsL.js": {
|
|
5104
5132
|
"type": "text/javascript; charset=utf-8",
|
|
5105
5133
|
"etag": "\"eb0-1etrd79M3Jdeb7OGrU7ZnEhsLww\"",
|
|
5106
|
-
"mtime": "2026-
|
|
5134
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5107
5135
|
"size": 3760,
|
|
5108
5136
|
"path": "../public/_nuxt/9HpZscsL.js"
|
|
5109
5137
|
},
|
|
5110
|
-
"/_nuxt/
|
|
5111
|
-
"type": "text/javascript; charset=utf-8",
|
|
5112
|
-
"etag": "\"4ca-IQWqJFkL9EMCJbZuXLH8c99qTLY\"",
|
|
5113
|
-
"mtime": "2026-09-29T10:07:41.516Z",
|
|
5114
|
-
"size": 1226,
|
|
5115
|
-
"path": "../public/_nuxt/B0N6xv5E.js"
|
|
5116
|
-
},
|
|
5117
|
-
"/_nuxt/B0cUlOSM.js": {
|
|
5138
|
+
"/_nuxt/B2fcLSyW.js": {
|
|
5118
5139
|
"type": "text/javascript; charset=utf-8",
|
|
5119
|
-
"etag": "\"
|
|
5120
|
-
"mtime": "2026-
|
|
5121
|
-
"size":
|
|
5122
|
-
"path": "../public/_nuxt/
|
|
5140
|
+
"etag": "\"1337-DwM0p4R/9Z7G4UJaT2BrXEP+WVs\"",
|
|
5141
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5142
|
+
"size": 4919,
|
|
5143
|
+
"path": "../public/_nuxt/B2fcLSyW.js"
|
|
5123
5144
|
},
|
|
5124
5145
|
"/_nuxt/B8OfTtLu.js": {
|
|
5125
5146
|
"type": "text/javascript; charset=utf-8",
|
|
5126
5147
|
"etag": "\"a77-BXgbntlXNqUnAJ9kYer+IEdVpyw\"",
|
|
5127
|
-
"mtime": "2026-
|
|
5148
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5128
5149
|
"size": 2679,
|
|
5129
5150
|
"path": "../public/_nuxt/B8OfTtLu.js"
|
|
5130
5151
|
},
|
|
5152
|
+
"/_nuxt/BBN7l5Hn.js": {
|
|
5153
|
+
"type": "text/javascript; charset=utf-8",
|
|
5154
|
+
"etag": "\"4ca-9uBQfk5SwIEX9PKwIRr+nAK5z8Q\"",
|
|
5155
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5156
|
+
"size": 1226,
|
|
5157
|
+
"path": "../public/_nuxt/BBN7l5Hn.js"
|
|
5158
|
+
},
|
|
5131
5159
|
"/_nuxt/BBUBE1dy.js": {
|
|
5132
5160
|
"type": "text/javascript; charset=utf-8",
|
|
5133
5161
|
"etag": "\"1ed1-PSPAfQCHqDoY8hy5ZiY2soJ8wSg\"",
|
|
5134
|
-
"mtime": "2026-
|
|
5162
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5135
5163
|
"size": 7889,
|
|
5136
5164
|
"path": "../public/_nuxt/BBUBE1dy.js"
|
|
5137
5165
|
},
|
|
5138
5166
|
"/_nuxt/BBc9UKZt.js": {
|
|
5139
5167
|
"type": "text/javascript; charset=utf-8",
|
|
5140
5168
|
"etag": "\"69b-7FkyMvpdK8QgqiellgZa0BocbOw\"",
|
|
5141
|
-
"mtime": "2026-
|
|
5169
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5142
5170
|
"size": 1691,
|
|
5143
5171
|
"path": "../public/_nuxt/BBc9UKZt.js"
|
|
5144
5172
|
},
|
|
5145
|
-
"/_nuxt/
|
|
5146
|
-
"type": "text/javascript; charset=utf-8",
|
|
5147
|
-
"etag": "\"56eca-e9xiz0t6YGUSrKFkqLqIUFpbEEo\"",
|
|
5148
|
-
"mtime": "2026-09-29T10:07:41.516Z",
|
|
5149
|
-
"size": 356042,
|
|
5150
|
-
"path": "../public/_nuxt/B9paGgN0.js"
|
|
5151
|
-
},
|
|
5152
|
-
"/_nuxt/BCIlnd0g.js": {
|
|
5173
|
+
"/_nuxt/BDbISGvP.js": {
|
|
5153
5174
|
"type": "text/javascript; charset=utf-8",
|
|
5154
|
-
"etag": "\"
|
|
5155
|
-
"mtime": "2026-
|
|
5156
|
-
"size":
|
|
5157
|
-
"path": "../public/_nuxt/
|
|
5175
|
+
"etag": "\"d7b-+27mqnYtvL7lpxJPRsaDYIlM3Mk\"",
|
|
5176
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5177
|
+
"size": 3451,
|
|
5178
|
+
"path": "../public/_nuxt/BDbISGvP.js"
|
|
5158
5179
|
},
|
|
5159
5180
|
"/_nuxt/BDtDVThU.js": {
|
|
5160
5181
|
"type": "text/javascript; charset=utf-8",
|
|
5161
5182
|
"etag": "\"8d8-tdOSVG0mR4S2JoHY+vUk3Ju14DM\"",
|
|
5162
|
-
"mtime": "2026-
|
|
5183
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5163
5184
|
"size": 2264,
|
|
5164
5185
|
"path": "../public/_nuxt/BDtDVThU.js"
|
|
5165
5186
|
},
|
|
5187
|
+
"/_nuxt/BBTTtb8r.js": {
|
|
5188
|
+
"type": "text/javascript; charset=utf-8",
|
|
5189
|
+
"etag": "\"5c8fa-vC8/CmMEb8yHKq9btUaS7VLWbpA\"",
|
|
5190
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5191
|
+
"size": 379130,
|
|
5192
|
+
"path": "../public/_nuxt/BBTTtb8r.js"
|
|
5193
|
+
},
|
|
5166
5194
|
"/_nuxt/BEgZUVRK.js": {
|
|
5167
5195
|
"type": "text/javascript; charset=utf-8",
|
|
5168
5196
|
"etag": "\"1454-fqd1Il1nKLHt2iPsHLZ/Nx1xAt8\"",
|
|
5169
|
-
"mtime": "2026-
|
|
5197
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5170
5198
|
"size": 5204,
|
|
5171
5199
|
"path": "../public/_nuxt/BEgZUVRK.js"
|
|
5172
5200
|
},
|
|
5173
|
-
"/_nuxt/BFxVWTOG.js": {
|
|
5174
|
-
"type": "text/javascript; charset=utf-8",
|
|
5175
|
-
"etag": "\"e42-Ti91WI2wfk479jJPLvNuO2MJ+jY\"",
|
|
5176
|
-
"mtime": "2026-09-29T10:07:41.516Z",
|
|
5177
|
-
"size": 3650,
|
|
5178
|
-
"path": "../public/_nuxt/BFxVWTOG.js"
|
|
5179
|
-
},
|
|
5180
5201
|
"/_nuxt/BG73LgW2.js": {
|
|
5181
5202
|
"type": "text/javascript; charset=utf-8",
|
|
5182
5203
|
"etag": "\"6c3-JuIkJIg19gnyh5BltKBXx9CtvXI\"",
|
|
5183
|
-
"mtime": "2026-
|
|
5204
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5184
5205
|
"size": 1731,
|
|
5185
5206
|
"path": "../public/_nuxt/BG73LgW2.js"
|
|
5186
5207
|
},
|
|
5187
|
-
"/_nuxt/BO4hqv6q.js": {
|
|
5188
|
-
"type": "text/javascript; charset=utf-8",
|
|
5189
|
-
"etag": "\"799-eI33w61PIIiT7XKUrpAPnb8BTYA\"",
|
|
5190
|
-
"mtime": "2026-09-29T10:07:41.516Z",
|
|
5191
|
-
"size": 1945,
|
|
5192
|
-
"path": "../public/_nuxt/BO4hqv6q.js"
|
|
5193
|
-
},
|
|
5194
|
-
"/_nuxt/BOsJJ_ZU.js": {
|
|
5195
|
-
"type": "text/javascript; charset=utf-8",
|
|
5196
|
-
"etag": "\"10f1-7SbN3Je7a2Fv0oqBnQswOt1oYJc\"",
|
|
5197
|
-
"mtime": "2026-09-29T10:07:41.516Z",
|
|
5198
|
-
"size": 4337,
|
|
5199
|
-
"path": "../public/_nuxt/BOsJJ_ZU.js"
|
|
5200
|
-
},
|
|
5201
5208
|
"/_nuxt/BOtBlQCF.js": {
|
|
5202
5209
|
"type": "text/javascript; charset=utf-8",
|
|
5203
5210
|
"etag": "\"1010-rOMZ3v1/JH2RPnwfxLBlHoNhcjU\"",
|
|
5204
|
-
"mtime": "2026-
|
|
5211
|
+
"mtime": "2026-10-09T11:58:05.929Z",
|
|
5205
5212
|
"size": 4112,
|
|
5206
5213
|
"path": "../public/_nuxt/BOtBlQCF.js"
|
|
5207
5214
|
},
|
|
5215
|
+
"/_nuxt/BFxVWTOG.js": {
|
|
5216
|
+
"type": "text/javascript; charset=utf-8",
|
|
5217
|
+
"etag": "\"e42-Ti91WI2wfk479jJPLvNuO2MJ+jY\"",
|
|
5218
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5219
|
+
"size": 3650,
|
|
5220
|
+
"path": "../public/_nuxt/BFxVWTOG.js"
|
|
5221
|
+
},
|
|
5208
5222
|
"/_nuxt/BPhDTwHR.js": {
|
|
5209
5223
|
"type": "text/javascript; charset=utf-8",
|
|
5210
5224
|
"etag": "\"65d-nnBDUcRkn5FxqG4j7Ws9cb+Jbqg\"",
|
|
5211
|
-
"mtime": "2026-
|
|
5225
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5212
5226
|
"size": 1629,
|
|
5213
5227
|
"path": "../public/_nuxt/BPhDTwHR.js"
|
|
5214
5228
|
},
|
|
5215
5229
|
"/_nuxt/BTesnYfV.js": {
|
|
5216
5230
|
"type": "text/javascript; charset=utf-8",
|
|
5217
5231
|
"etag": "\"1c2a-TdSFrM2B/G8uIhtdAwwad7rkLKo\"",
|
|
5218
|
-
"mtime": "2026-
|
|
5232
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5219
5233
|
"size": 7210,
|
|
5220
5234
|
"path": "../public/_nuxt/BTesnYfV.js"
|
|
5221
5235
|
},
|
|
5222
5236
|
"/_nuxt/BbWJElDN.js": {
|
|
5223
5237
|
"type": "text/javascript; charset=utf-8",
|
|
5224
5238
|
"etag": "\"142a-gcnvXQkw+BLtDirIDN1qoykZ1eQ\"",
|
|
5225
|
-
"mtime": "2026-
|
|
5239
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5226
5240
|
"size": 5162,
|
|
5227
5241
|
"path": "../public/_nuxt/BbWJElDN.js"
|
|
5228
5242
|
},
|
|
5229
5243
|
"/_nuxt/Bd8akH9Z.js": {
|
|
5230
5244
|
"type": "text/javascript; charset=utf-8",
|
|
5231
5245
|
"etag": "\"d7c-qPEaxTe1e/19xQbh0bDW+7GABkM\"",
|
|
5232
|
-
"mtime": "2026-
|
|
5246
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5233
5247
|
"size": 3452,
|
|
5234
5248
|
"path": "../public/_nuxt/Bd8akH9Z.js"
|
|
5235
5249
|
},
|
|
5236
5250
|
"/_nuxt/BeJ5waoc.js": {
|
|
5237
5251
|
"type": "text/javascript; charset=utf-8",
|
|
5238
5252
|
"etag": "\"688-fDBCazkBE0Ve++r7xTYqSjIHPqw\"",
|
|
5239
|
-
"mtime": "2026-
|
|
5253
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5240
5254
|
"size": 1672,
|
|
5241
5255
|
"path": "../public/_nuxt/BeJ5waoc.js"
|
|
5242
5256
|
},
|
|
5257
|
+
"/_nuxt/BijI4RNx.js": {
|
|
5258
|
+
"type": "text/javascript; charset=utf-8",
|
|
5259
|
+
"etag": "\"2076-QNKzTKCWDd0HqXcciT4F/CfIeDE\"",
|
|
5260
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5261
|
+
"size": 8310,
|
|
5262
|
+
"path": "../public/_nuxt/BijI4RNx.js"
|
|
5263
|
+
},
|
|
5243
5264
|
"/_nuxt/Bf6VGUru.js": {
|
|
5244
5265
|
"type": "text/javascript; charset=utf-8",
|
|
5245
5266
|
"etag": "\"7ff-Gv7mpIJ7ZogR82C4wudMW57LNnQ\"",
|
|
5246
|
-
"mtime": "2026-
|
|
5267
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5247
5268
|
"size": 2047,
|
|
5248
5269
|
"path": "../public/_nuxt/Bf6VGUru.js"
|
|
5249
5270
|
},
|
|
5271
|
+
"/_nuxt/BkW5O-1t.js": {
|
|
5272
|
+
"type": "text/javascript; charset=utf-8",
|
|
5273
|
+
"etag": "\"2787-G/iQTgRGWNywui88yVOLY64apsc\"",
|
|
5274
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5275
|
+
"size": 10119,
|
|
5276
|
+
"path": "../public/_nuxt/BkW5O-1t.js"
|
|
5277
|
+
},
|
|
5250
5278
|
"/_nuxt/BlNEE0v7.js": {
|
|
5251
5279
|
"type": "text/javascript; charset=utf-8",
|
|
5252
5280
|
"etag": "\"340e-XPsjtSBMxJFSpwO3KLzzTelAc8c\"",
|
|
5253
|
-
"mtime": "2026-
|
|
5281
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5254
5282
|
"size": 13326,
|
|
5255
5283
|
"path": "../public/_nuxt/BlNEE0v7.js"
|
|
5256
5284
|
},
|
|
5257
|
-
"/_nuxt/
|
|
5285
|
+
"/_nuxt/Bp9qkJ9m.js": {
|
|
5258
5286
|
"type": "text/javascript; charset=utf-8",
|
|
5259
|
-
"etag": "\"
|
|
5260
|
-
"mtime": "2026-
|
|
5261
|
-
"size":
|
|
5262
|
-
"path": "../public/_nuxt/
|
|
5287
|
+
"etag": "\"327-JfEcFcVZS2munKAJUuxYdt0AOts\"",
|
|
5288
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5289
|
+
"size": 807,
|
|
5290
|
+
"path": "../public/_nuxt/Bp9qkJ9m.js"
|
|
5263
5291
|
},
|
|
5264
5292
|
"/_nuxt/Brw8urJB.js": {
|
|
5265
5293
|
"type": "text/javascript; charset=utf-8",
|
|
5266
5294
|
"etag": "\"22cc-KnaOFvwgeCLBSd9UO2qvWVfHCX0\"",
|
|
5267
|
-
"mtime": "2026-
|
|
5295
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5268
5296
|
"size": 8908,
|
|
5269
5297
|
"path": "../public/_nuxt/Brw8urJB.js"
|
|
5270
5298
|
},
|
|
5271
5299
|
"/_nuxt/Bs9aos_-.js": {
|
|
5272
5300
|
"type": "text/javascript; charset=utf-8",
|
|
5273
5301
|
"etag": "\"2d8e-+OAf34Vqp9asPVr2gIyoXG3h7rw\"",
|
|
5274
|
-
"mtime": "2026-
|
|
5302
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5275
5303
|
"size": 11662,
|
|
5276
5304
|
"path": "../public/_nuxt/Bs9aos_-.js"
|
|
5277
5305
|
},
|
|
5278
5306
|
"/_nuxt/Bs9z6M-B.js": {
|
|
5279
5307
|
"type": "text/javascript; charset=utf-8",
|
|
5280
5308
|
"etag": "\"1d29-5OK7B2BhDsF1oIZMdmoxMRvjYjc\"",
|
|
5281
|
-
"mtime": "2026-
|
|
5309
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5282
5310
|
"size": 7465,
|
|
5283
5311
|
"path": "../public/_nuxt/Bs9z6M-B.js"
|
|
5284
5312
|
},
|
|
5285
5313
|
"/_nuxt/Btyra-wh.js": {
|
|
5286
5314
|
"type": "text/javascript; charset=utf-8",
|
|
5287
5315
|
"etag": "\"a62-n03ZFcwvHyVBGpaAPL8sTXCL3xM\"",
|
|
5288
|
-
"mtime": "2026-
|
|
5316
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5289
5317
|
"size": 2658,
|
|
5290
5318
|
"path": "../public/_nuxt/Btyra-wh.js"
|
|
5291
5319
|
},
|
|
5320
|
+
"/_nuxt/Bu3-sqCf.js": {
|
|
5321
|
+
"type": "text/javascript; charset=utf-8",
|
|
5322
|
+
"etag": "\"18a2-nVUMraLmG9J6buxk7Ult2x0VU/4\"",
|
|
5323
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5324
|
+
"size": 6306,
|
|
5325
|
+
"path": "../public/_nuxt/Bu3-sqCf.js"
|
|
5326
|
+
},
|
|
5292
5327
|
"/_nuxt/Bu5POkcn.js": {
|
|
5293
5328
|
"type": "text/javascript; charset=utf-8",
|
|
5294
5329
|
"etag": "\"d5a-eK38bQbEiAw/HGqXBvNq08kZZG4\"",
|
|
5295
|
-
"mtime": "2026-
|
|
5330
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5296
5331
|
"size": 3418,
|
|
5297
5332
|
"path": "../public/_nuxt/Bu5POkcn.js"
|
|
5298
5333
|
},
|
|
5299
5334
|
"/_nuxt/Bw9ernYp.js": {
|
|
5300
5335
|
"type": "text/javascript; charset=utf-8",
|
|
5301
5336
|
"etag": "\"beb-Y9DS887GVG7a2J92jf1FP7iT67I\"",
|
|
5302
|
-
"mtime": "2026-
|
|
5337
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5303
5338
|
"size": 3051,
|
|
5304
5339
|
"path": "../public/_nuxt/Bw9ernYp.js"
|
|
5305
5340
|
},
|
|
5306
|
-
"/_nuxt/BxJiqAUM.js": {
|
|
5307
|
-
"type": "text/javascript; charset=utf-8",
|
|
5308
|
-
"etag": "\"84a-uI9yfgCiugU9v7cHcK25l+a5KzU\"",
|
|
5309
|
-
"mtime": "2026-09-29T10:07:41.517Z",
|
|
5310
|
-
"size": 2122,
|
|
5311
|
-
"path": "../public/_nuxt/BxJiqAUM.js"
|
|
5312
|
-
},
|
|
5313
5341
|
"/_nuxt/BwHxbl9M.js": {
|
|
5314
5342
|
"type": "text/javascript; charset=utf-8",
|
|
5315
5343
|
"etag": "\"6ab-PLn3WC0GPBiY30NiFfKEp4+1mkk\"",
|
|
5316
|
-
"mtime": "2026-
|
|
5344
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5317
5345
|
"size": 1707,
|
|
5318
5346
|
"path": "../public/_nuxt/BwHxbl9M.js"
|
|
5319
5347
|
},
|
|
5348
|
+
"/_nuxt/BxJiqAUM.js": {
|
|
5349
|
+
"type": "text/javascript; charset=utf-8",
|
|
5350
|
+
"etag": "\"84a-uI9yfgCiugU9v7cHcK25l+a5KzU\"",
|
|
5351
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5352
|
+
"size": 2122,
|
|
5353
|
+
"path": "../public/_nuxt/BxJiqAUM.js"
|
|
5354
|
+
},
|
|
5320
5355
|
"/_nuxt/BzKRNQWT.js": {
|
|
5321
5356
|
"type": "text/javascript; charset=utf-8",
|
|
5322
5357
|
"etag": "\"fb6-0/zdhyEwcnC+KUfsLQHqqIquIRI\"",
|
|
5323
|
-
"mtime": "2026-
|
|
5358
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5324
5359
|
"size": 4022,
|
|
5325
5360
|
"path": "../public/_nuxt/BzKRNQWT.js"
|
|
5326
5361
|
},
|
|
5327
|
-
"/_nuxt/
|
|
5328
|
-
"type": "text/javascript; charset=utf-8",
|
|
5329
|
-
"etag": "\"327-RwEiytRh/LVFdN6TnD8WzFX+28s\"",
|
|
5330
|
-
"mtime": "2026-09-29T10:07:41.517Z",
|
|
5331
|
-
"size": 807,
|
|
5332
|
-
"path": "../public/_nuxt/C2BHp-MG.js"
|
|
5333
|
-
},
|
|
5334
|
-
"/_nuxt/CFznDFnq.js": {
|
|
5362
|
+
"/_nuxt/C-FtTvwz.js": {
|
|
5335
5363
|
"type": "text/javascript; charset=utf-8",
|
|
5336
|
-
"etag": "\"
|
|
5337
|
-
"mtime": "2026-
|
|
5338
|
-
"size":
|
|
5339
|
-
"path": "../public/_nuxt/
|
|
5364
|
+
"etag": "\"799-JozWQ9CzbF6DKG3BjC5dT397IWc\"",
|
|
5365
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5366
|
+
"size": 1945,
|
|
5367
|
+
"path": "../public/_nuxt/C-FtTvwz.js"
|
|
5340
5368
|
},
|
|
5341
|
-
"/_nuxt/
|
|
5369
|
+
"/_nuxt/C02JV0Aj.js": {
|
|
5342
5370
|
"type": "text/javascript; charset=utf-8",
|
|
5343
|
-
"etag": "\"
|
|
5344
|
-
"mtime": "2026-
|
|
5345
|
-
"size":
|
|
5346
|
-
"path": "../public/_nuxt/
|
|
5371
|
+
"etag": "\"c0c-asb42TbZOtzatnOmxgp+aMVhoTc\"",
|
|
5372
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5373
|
+
"size": 3084,
|
|
5374
|
+
"path": "../public/_nuxt/C02JV0Aj.js"
|
|
5347
5375
|
},
|
|
5348
|
-
"/_nuxt/
|
|
5376
|
+
"/_nuxt/C1UkIsDc.js": {
|
|
5349
5377
|
"type": "text/javascript; charset=utf-8",
|
|
5350
|
-
"etag": "\"
|
|
5351
|
-
"mtime": "2026-
|
|
5352
|
-
"size":
|
|
5353
|
-
"path": "../public/_nuxt/
|
|
5378
|
+
"etag": "\"e98-KU3VDsQlBPWiuqlGcUge1IBvoQU\"",
|
|
5379
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5380
|
+
"size": 3736,
|
|
5381
|
+
"path": "../public/_nuxt/C1UkIsDc.js"
|
|
5354
5382
|
},
|
|
5355
5383
|
"/_nuxt/CBJaRo0y.js": {
|
|
5356
5384
|
"type": "text/javascript; charset=utf-8",
|
|
5357
5385
|
"etag": "\"187f-TAOu7M5TSNFZv9eK6WPfKQutcjg\"",
|
|
5358
|
-
"mtime": "2026-
|
|
5386
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5359
5387
|
"size": 6271,
|
|
5360
5388
|
"path": "../public/_nuxt/CBJaRo0y.js"
|
|
5361
5389
|
},
|
|
5362
|
-
"/_nuxt/
|
|
5390
|
+
"/_nuxt/CHwy0fLd.js": {
|
|
5391
|
+
"type": "text/javascript; charset=utf-8",
|
|
5392
|
+
"etag": "\"1c5d-fsu8CSsQUjWWmWJ6QyDe2G8Hvbs\"",
|
|
5393
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5394
|
+
"size": 7261,
|
|
5395
|
+
"path": "../public/_nuxt/CHwy0fLd.js"
|
|
5396
|
+
},
|
|
5397
|
+
"/_nuxt/CFznDFnq.js": {
|
|
5398
|
+
"type": "text/javascript; charset=utf-8",
|
|
5399
|
+
"etag": "\"95e-Ym6ce0oG7iVD2TvmuRd+y0a2LVg\"",
|
|
5400
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5401
|
+
"size": 2398,
|
|
5402
|
+
"path": "../public/_nuxt/CFznDFnq.js"
|
|
5403
|
+
},
|
|
5404
|
+
"/_nuxt/CJT28r6J.js": {
|
|
5363
5405
|
"type": "text/javascript; charset=utf-8",
|
|
5364
|
-
"etag": "\"e99-
|
|
5365
|
-
"mtime": "2026-
|
|
5406
|
+
"etag": "\"e99-ezyFxY8KOHfGKeDnEUWVHbsqP5M\"",
|
|
5407
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5366
5408
|
"size": 3737,
|
|
5367
|
-
"path": "../public/_nuxt/
|
|
5409
|
+
"path": "../public/_nuxt/CJT28r6J.js"
|
|
5368
5410
|
},
|
|
5369
|
-
"/_nuxt/
|
|
5411
|
+
"/_nuxt/CJmd_6j2.js": {
|
|
5370
5412
|
"type": "text/javascript; charset=utf-8",
|
|
5371
|
-
"etag": "\"
|
|
5372
|
-
"mtime": "2026-
|
|
5373
|
-
"size":
|
|
5374
|
-
"path": "../public/_nuxt/
|
|
5413
|
+
"etag": "\"96e-3trx2EbkUMYYdVFbsrCcpVQWXVI\"",
|
|
5414
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5415
|
+
"size": 2414,
|
|
5416
|
+
"path": "../public/_nuxt/CJmd_6j2.js"
|
|
5375
5417
|
},
|
|
5376
5418
|
"/_nuxt/COWaemsV.js": {
|
|
5377
5419
|
"type": "text/javascript; charset=utf-8",
|
|
5378
5420
|
"etag": "\"c3b-tOwJ5hUYWQ08zZb3SQ5ZGujJOhQ\"",
|
|
5379
|
-
"mtime": "2026-
|
|
5421
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5380
5422
|
"size": 3131,
|
|
5381
5423
|
"path": "../public/_nuxt/COWaemsV.js"
|
|
5382
5424
|
},
|
|
5425
|
+
"/_nuxt/CRMd2YH2.js": {
|
|
5426
|
+
"type": "text/javascript; charset=utf-8",
|
|
5427
|
+
"etag": "\"45db-NQ0UuDag6uOUKjpSOjhHTCW7Q3I\"",
|
|
5428
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5429
|
+
"size": 17883,
|
|
5430
|
+
"path": "../public/_nuxt/CRMd2YH2.js"
|
|
5431
|
+
},
|
|
5432
|
+
"/_nuxt/CRkdQgFz.js": {
|
|
5433
|
+
"type": "text/javascript; charset=utf-8",
|
|
5434
|
+
"etag": "\"7005-SrxfuRtY1uHAgSqH72PYBw1P5/I\"",
|
|
5435
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5436
|
+
"size": 28677,
|
|
5437
|
+
"path": "../public/_nuxt/CRkdQgFz.js"
|
|
5438
|
+
},
|
|
5383
5439
|
"/_nuxt/CXBNlu9o.js": {
|
|
5384
5440
|
"type": "text/javascript; charset=utf-8",
|
|
5385
5441
|
"etag": "\"c0b-a/8ur+Uvnhetml4WhYTeUvZcdPQ\"",
|
|
5386
|
-
"mtime": "2026-
|
|
5442
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5387
5443
|
"size": 3083,
|
|
5388
5444
|
"path": "../public/_nuxt/CXBNlu9o.js"
|
|
5389
5445
|
},
|
|
5390
5446
|
"/_nuxt/C_tMU-Nz.js": {
|
|
5391
5447
|
"type": "text/javascript; charset=utf-8",
|
|
5392
5448
|
"etag": "\"2b80-Hzdx+2Wi4L4QzSXNdWmXzbSERYo\"",
|
|
5393
|
-
"mtime": "2026-
|
|
5449
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5394
5450
|
"size": 11136,
|
|
5395
5451
|
"path": "../public/_nuxt/C_tMU-Nz.js"
|
|
5396
5452
|
},
|
|
5397
|
-
"/_nuxt/CiqrrVzr.js": {
|
|
5398
|
-
"type": "text/javascript; charset=utf-8",
|
|
5399
|
-
"etag": "\"989-Blq/VGs6v4RnRWlMonYeDSId2O0\"",
|
|
5400
|
-
"mtime": "2026-09-29T10:07:41.518Z",
|
|
5401
|
-
"size": 2441,
|
|
5402
|
-
"path": "../public/_nuxt/CiqrrVzr.js"
|
|
5403
|
-
},
|
|
5404
5453
|
"/_nuxt/ClhHkBeG.js": {
|
|
5405
5454
|
"type": "text/javascript; charset=utf-8",
|
|
5406
5455
|
"etag": "\"27af-nRsYy/UEQy/wu/d8+EL49MBHHFM\"",
|
|
5407
|
-
"mtime": "2026-
|
|
5456
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5408
5457
|
"size": 10159,
|
|
5409
5458
|
"path": "../public/_nuxt/ClhHkBeG.js"
|
|
5410
5459
|
},
|
|
5411
|
-
"/_nuxt/
|
|
5460
|
+
"/_nuxt/CiqrrVzr.js": {
|
|
5412
5461
|
"type": "text/javascript; charset=utf-8",
|
|
5413
|
-
"etag": "\"
|
|
5414
|
-
"mtime": "2026-
|
|
5415
|
-
"size":
|
|
5416
|
-
"path": "../public/_nuxt/
|
|
5462
|
+
"etag": "\"989-Blq/VGs6v4RnRWlMonYeDSId2O0\"",
|
|
5463
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5464
|
+
"size": 2441,
|
|
5465
|
+
"path": "../public/_nuxt/CiqrrVzr.js"
|
|
5417
5466
|
},
|
|
5418
5467
|
"/_nuxt/CnmFD0ga.js": {
|
|
5419
5468
|
"type": "text/javascript; charset=utf-8",
|
|
5420
5469
|
"etag": "\"12a6-OamqOWlZ20f/sgLqwvaTuGvLE+I\"",
|
|
5421
|
-
"mtime": "2026-
|
|
5470
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5422
5471
|
"size": 4774,
|
|
5423
5472
|
"path": "../public/_nuxt/CnmFD0ga.js"
|
|
5424
5473
|
},
|
|
5425
5474
|
"/_nuxt/Co3qMtFm.js": {
|
|
5426
5475
|
"type": "text/javascript; charset=utf-8",
|
|
5427
5476
|
"etag": "\"1122-VLYaFYADytCHkH1byjlwnEwqLNM\"",
|
|
5428
|
-
"mtime": "2026-
|
|
5477
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5429
5478
|
"size": 4386,
|
|
5430
5479
|
"path": "../public/_nuxt/Co3qMtFm.js"
|
|
5431
5480
|
},
|
|
5481
|
+
"/_nuxt/CnS9iZB_.js": {
|
|
5482
|
+
"type": "text/javascript; charset=utf-8",
|
|
5483
|
+
"etag": "\"a42-QYFMl2/kiGHCTk16FYDXZVG3s9s\"",
|
|
5484
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5485
|
+
"size": 2626,
|
|
5486
|
+
"path": "../public/_nuxt/CnS9iZB_.js"
|
|
5487
|
+
},
|
|
5432
5488
|
"/_nuxt/CocnycG-.js": {
|
|
5433
5489
|
"type": "text/javascript; charset=utf-8",
|
|
5434
5490
|
"etag": "\"1e26-FFwOFKedG3tL3W0yLs13Oq+kp1s\"",
|
|
5435
|
-
"mtime": "2026-
|
|
5491
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5436
5492
|
"size": 7718,
|
|
5437
5493
|
"path": "../public/_nuxt/CocnycG-.js"
|
|
5438
5494
|
},
|
|
5439
5495
|
"/_nuxt/CqXO7rUv.js": {
|
|
5440
5496
|
"type": "text/javascript; charset=utf-8",
|
|
5441
5497
|
"etag": "\"eab-1axeWc9wAjztE3YuOaJpDZ7ZbBE\"",
|
|
5442
|
-
"mtime": "2026-
|
|
5498
|
+
"mtime": "2026-10-09T11:58:05.930Z",
|
|
5443
5499
|
"size": 3755,
|
|
5444
5500
|
"path": "../public/_nuxt/CqXO7rUv.js"
|
|
5445
5501
|
},
|
|
5446
5502
|
"/_nuxt/Csy3S7wG.js": {
|
|
5447
5503
|
"type": "text/javascript; charset=utf-8",
|
|
5448
5504
|
"etag": "\"16cb-xilhkn1Hlq6beJlDBqY4Z/7dbFQ\"",
|
|
5449
|
-
"mtime": "2026-
|
|
5505
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5450
5506
|
"size": 5835,
|
|
5451
5507
|
"path": "../public/_nuxt/Csy3S7wG.js"
|
|
5452
5508
|
},
|
|
5509
|
+
"/_nuxt/Cw1XFOz5.js": {
|
|
5510
|
+
"type": "text/javascript; charset=utf-8",
|
|
5511
|
+
"etag": "\"11c2-HPjs16C8Z/J0O2jysDL6CkuIjpc\"",
|
|
5512
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5513
|
+
"size": 4546,
|
|
5514
|
+
"path": "../public/_nuxt/Cw1XFOz5.js"
|
|
5515
|
+
},
|
|
5516
|
+
"/_nuxt/D-4FJmMZ.js": {
|
|
5517
|
+
"type": "text/javascript; charset=utf-8",
|
|
5518
|
+
"etag": "\"501-fRMALPoL/H3CwAldqFY/RaJHYHY\"",
|
|
5519
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5520
|
+
"size": 1281,
|
|
5521
|
+
"path": "../public/_nuxt/D-4FJmMZ.js"
|
|
5522
|
+
},
|
|
5453
5523
|
"/_nuxt/Cyyb5UIc.js": {
|
|
5454
5524
|
"type": "text/javascript; charset=utf-8",
|
|
5455
5525
|
"etag": "\"7c1-mK4SLHO4wVeiYlM0Pl6H409caeI\"",
|
|
5456
|
-
"mtime": "2026-
|
|
5526
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5457
5527
|
"size": 1985,
|
|
5458
5528
|
"path": "../public/_nuxt/Cyyb5UIc.js"
|
|
5459
5529
|
},
|
|
5460
|
-
"/_nuxt/
|
|
5530
|
+
"/_nuxt/D5yWk6Ly.js": {
|
|
5461
5531
|
"type": "text/javascript; charset=utf-8",
|
|
5462
|
-
"etag": "\"
|
|
5463
|
-
"mtime": "2026-
|
|
5464
|
-
"size": 3674222,
|
|
5465
|
-
"path": "../public/_nuxt/BNDnV2op.js"
|
|
5466
|
-
},
|
|
5467
|
-
"/_nuxt/CzbCpNnc.js": {
|
|
5468
|
-
"type": "text/javascript; charset=utf-8",
|
|
5469
|
-
"etag": "\"560b-ihdpIFyS0NS/Fvue57VEkHWQe4E\"",
|
|
5470
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5532
|
+
"etag": "\"560b-cGshhLCNXZS8qta5vDSHcWUU2hM\"",
|
|
5533
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5471
5534
|
"size": 22027,
|
|
5472
|
-
"path": "../public/_nuxt/
|
|
5473
|
-
},
|
|
5474
|
-
"/_nuxt/D-4FJmMZ.js": {
|
|
5475
|
-
"type": "text/javascript; charset=utf-8",
|
|
5476
|
-
"etag": "\"501-fRMALPoL/H3CwAldqFY/RaJHYHY\"",
|
|
5477
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5478
|
-
"size": 1281,
|
|
5479
|
-
"path": "../public/_nuxt/D-4FJmMZ.js"
|
|
5535
|
+
"path": "../public/_nuxt/D5yWk6Ly.js"
|
|
5480
5536
|
},
|
|
5481
5537
|
"/_nuxt/D9hQfWCl.js": {
|
|
5482
5538
|
"type": "text/javascript; charset=utf-8",
|
|
5483
5539
|
"etag": "\"1c0c-s+MlVwUDxaubGuMUOEzLtrq2AP4\"",
|
|
5484
|
-
"mtime": "2026-
|
|
5540
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5485
5541
|
"size": 7180,
|
|
5486
5542
|
"path": "../public/_nuxt/D9hQfWCl.js"
|
|
5487
5543
|
},
|
|
5488
|
-
"/_nuxt/
|
|
5489
|
-
"type": "text/javascript; charset=utf-8",
|
|
5490
|
-
"etag": "\"45db-4UDtgyPOYvKM8VqPZeWY6xJU1j8\"",
|
|
5491
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5492
|
-
"size": 17883,
|
|
5493
|
-
"path": "../public/_nuxt/DA0pQuyP.js"
|
|
5494
|
-
},
|
|
5495
|
-
"/_nuxt/D87QMS6j.js": {
|
|
5544
|
+
"/_nuxt/DA9GjKpR.js": {
|
|
5496
5545
|
"type": "text/javascript; charset=utf-8",
|
|
5497
|
-
"etag": "\"
|
|
5498
|
-
"mtime": "2026-
|
|
5499
|
-
"size":
|
|
5500
|
-
"path": "../public/_nuxt/
|
|
5546
|
+
"etag": "\"10f1-6n9DuGFxU0FuTYSMUlsALZ5S7Hs\"",
|
|
5547
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5548
|
+
"size": 4337,
|
|
5549
|
+
"path": "../public/_nuxt/DA9GjKpR.js"
|
|
5501
5550
|
},
|
|
5502
5551
|
"/_nuxt/DLDM7-KI.js": {
|
|
5503
5552
|
"type": "text/javascript; charset=utf-8",
|
|
5504
5553
|
"etag": "\"36c9-NeGvJyvUtaEi2zP8TTycIoN+9ik\"",
|
|
5505
|
-
"mtime": "2026-
|
|
5554
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5506
5555
|
"size": 14025,
|
|
5507
5556
|
"path": "../public/_nuxt/DLDM7-KI.js"
|
|
5508
5557
|
},
|
|
5509
5558
|
"/_nuxt/DNDY2TF8.js": {
|
|
5510
5559
|
"type": "text/javascript; charset=utf-8",
|
|
5511
5560
|
"etag": "\"eec-/y88b7oP/vv7ucqPwLxQGQfzNRs\"",
|
|
5512
|
-
"mtime": "2026-
|
|
5561
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5513
5562
|
"size": 3820,
|
|
5514
5563
|
"path": "../public/_nuxt/DNDY2TF8.js"
|
|
5515
5564
|
},
|
|
5565
|
+
"/_nuxt/DaWAlZhp.js": {
|
|
5566
|
+
"type": "text/javascript; charset=utf-8",
|
|
5567
|
+
"etag": "\"3cfa-A+uKF21MTAdGnoUNMndYsTWpzXc\"",
|
|
5568
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5569
|
+
"size": 15610,
|
|
5570
|
+
"path": "../public/_nuxt/DaWAlZhp.js"
|
|
5571
|
+
},
|
|
5516
5572
|
"/_nuxt/DSh2-awV.js": {
|
|
5517
5573
|
"type": "text/javascript; charset=utf-8",
|
|
5518
5574
|
"etag": "\"609-gma5J4AsxYswFMs9/q2hPWeL3/w\"",
|
|
5519
|
-
"mtime": "2026-
|
|
5575
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5520
5576
|
"size": 1545,
|
|
5521
5577
|
"path": "../public/_nuxt/DSh2-awV.js"
|
|
5522
5578
|
},
|
|
5523
|
-
"/_nuxt/
|
|
5579
|
+
"/_nuxt/DafLMUHo.js": {
|
|
5524
5580
|
"type": "text/javascript; charset=utf-8",
|
|
5525
|
-
"etag": "\"
|
|
5526
|
-
"mtime": "2026-
|
|
5527
|
-
"size":
|
|
5528
|
-
"path": "../public/_nuxt/
|
|
5581
|
+
"etag": "\"de5-Ezb8fKExTN2q+UW0lvOzQprQwMI\"",
|
|
5582
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5583
|
+
"size": 3557,
|
|
5584
|
+
"path": "../public/_nuxt/DafLMUHo.js"
|
|
5529
5585
|
},
|
|
5530
5586
|
"/_nuxt/Db0cS2oM.js": {
|
|
5531
5587
|
"type": "text/javascript; charset=utf-8",
|
|
5532
5588
|
"etag": "\"1615-zFLqA9G3tON1fz/HkCc2t3XjQjI\"",
|
|
5533
|
-
"mtime": "2026-
|
|
5589
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5534
5590
|
"size": 5653,
|
|
5535
5591
|
"path": "../public/_nuxt/Db0cS2oM.js"
|
|
5536
5592
|
},
|
|
5537
|
-
"/_nuxt/DcJ7oPvZ.js": {
|
|
5538
|
-
"type": "text/javascript; charset=utf-8",
|
|
5539
|
-
"etag": "\"1337-zaMtR7IXphNa76fOD4sXiTVMAb4\"",
|
|
5540
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5541
|
-
"size": 4919,
|
|
5542
|
-
"path": "../public/_nuxt/DcJ7oPvZ.js"
|
|
5543
|
-
},
|
|
5544
5593
|
"/_nuxt/DdJfP1eB.js": {
|
|
5545
5594
|
"type": "text/javascript; charset=utf-8",
|
|
5546
5595
|
"etag": "\"1114-ZiGCRyVUVmAnLZKAbaKEl8oGrBE\"",
|
|
5547
|
-
"mtime": "2026-
|
|
5596
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5548
5597
|
"size": 4372,
|
|
5549
5598
|
"path": "../public/_nuxt/DdJfP1eB.js"
|
|
5550
5599
|
},
|
|
5600
|
+
"/_nuxt/Db0IVjzk.js": {
|
|
5601
|
+
"type": "text/javascript; charset=utf-8",
|
|
5602
|
+
"etag": "\"481b-h+EMNByZJtiUhHL2111jzdwomeU\"",
|
|
5603
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5604
|
+
"size": 18459,
|
|
5605
|
+
"path": "../public/_nuxt/Db0IVjzk.js"
|
|
5606
|
+
},
|
|
5551
5607
|
"/_nuxt/DiJ1NA_G.js": {
|
|
5552
5608
|
"type": "text/javascript; charset=utf-8",
|
|
5553
5609
|
"etag": "\"b77-27guNmtnqK26sUIdwjV/UWag06k\"",
|
|
5554
|
-
"mtime": "2026-
|
|
5610
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5555
5611
|
"size": 2935,
|
|
5556
5612
|
"path": "../public/_nuxt/DiJ1NA_G.js"
|
|
5557
5613
|
},
|
|
5558
|
-
"/_nuxt/Dce9SnGa.js": {
|
|
5559
|
-
"type": "text/javascript; charset=utf-8",
|
|
5560
|
-
"etag": "\"3cfa-wFhzWg18vfmDZCFgACJn/hAo4PM\"",
|
|
5561
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5562
|
-
"size": 15610,
|
|
5563
|
-
"path": "../public/_nuxt/Dce9SnGa.js"
|
|
5564
|
-
},
|
|
5565
5614
|
"/_nuxt/Dm6ycUr_.js": {
|
|
5566
5615
|
"type": "text/javascript; charset=utf-8",
|
|
5567
5616
|
"etag": "\"d69-uvm/T2W7Zql8b4WevPWGxDp31GA\"",
|
|
5568
|
-
"mtime": "2026-
|
|
5617
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5569
5618
|
"size": 3433,
|
|
5570
5619
|
"path": "../public/_nuxt/Dm6ycUr_.js"
|
|
5571
5620
|
},
|
|
5572
5621
|
"/_nuxt/DmeGPVcC.js": {
|
|
5573
5622
|
"type": "text/javascript; charset=utf-8",
|
|
5574
5623
|
"etag": "\"12a6-IpV48Cn+k80cDAztUr4cVZAz7fk\"",
|
|
5575
|
-
"mtime": "2026-
|
|
5624
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5576
5625
|
"size": 4774,
|
|
5577
5626
|
"path": "../public/_nuxt/DmeGPVcC.js"
|
|
5578
5627
|
},
|
|
5579
5628
|
"/_nuxt/Dnu-v4kV.js": {
|
|
5580
5629
|
"type": "text/javascript; charset=utf-8",
|
|
5581
5630
|
"etag": "\"2521-BhMCxe+LzVWeIAHwh4q7WDF+zMc\"",
|
|
5582
|
-
"mtime": "2026-
|
|
5631
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5583
5632
|
"size": 9505,
|
|
5584
5633
|
"path": "../public/_nuxt/Dnu-v4kV.js"
|
|
5585
5634
|
},
|
|
5586
|
-
"/_nuxt/DpKrXpkK.js": {
|
|
5587
|
-
"type": "text/javascript; charset=utf-8",
|
|
5588
|
-
"etag": "\"7005-3CJRucz00w5zUnQ3yVpCjSYie6o\"",
|
|
5589
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5590
|
-
"size": 28677,
|
|
5591
|
-
"path": "../public/_nuxt/DpKrXpkK.js"
|
|
5592
|
-
},
|
|
5593
|
-
"/_nuxt/DsnIpnT9.js": {
|
|
5594
|
-
"type": "text/javascript; charset=utf-8",
|
|
5595
|
-
"etag": "\"da8-6OksCyx5weCwY3SBsIVkW+1i4QU\"",
|
|
5596
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5597
|
-
"size": 3496,
|
|
5598
|
-
"path": "../public/_nuxt/DsnIpnT9.js"
|
|
5599
|
-
},
|
|
5600
5635
|
"/_nuxt/DtV1sZF8.js": {
|
|
5601
5636
|
"type": "text/javascript; charset=utf-8",
|
|
5602
5637
|
"etag": "\"d7c-TF/n+eds/qat+FOhi4LDKi7HsQk\"",
|
|
5603
|
-
"mtime": "2026-
|
|
5638
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5604
5639
|
"size": 3452,
|
|
5605
5640
|
"path": "../public/_nuxt/DtV1sZF8.js"
|
|
5606
5641
|
},
|
|
5607
|
-
"/_nuxt/I3Ucam2s.js": {
|
|
5608
|
-
"type": "text/javascript; charset=utf-8",
|
|
5609
|
-
"etag": "\"18a2-GXDc4vsbYze1LAjdHWSSweXYsCw\"",
|
|
5610
|
-
"mtime": "2026-09-29T10:07:41.519Z",
|
|
5611
|
-
"size": 6306,
|
|
5612
|
-
"path": "../public/_nuxt/I3Ucam2s.js"
|
|
5613
|
-
},
|
|
5614
5642
|
"/_nuxt/DtZ0uQbO.js": {
|
|
5615
5643
|
"type": "text/javascript; charset=utf-8",
|
|
5616
5644
|
"etag": "\"746-RUOXngPrXM//PuRICAmsc/faYQs\"",
|
|
5617
|
-
"mtime": "2026-
|
|
5645
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5618
5646
|
"size": 1862,
|
|
5619
5647
|
"path": "../public/_nuxt/DtZ0uQbO.js"
|
|
5620
5648
|
},
|
|
5649
|
+
"/_nuxt/Dyaldc-t.js": {
|
|
5650
|
+
"type": "text/javascript; charset=utf-8",
|
|
5651
|
+
"etag": "\"bdd-xBnKC2tCNaklZy3OBj3S3xOEH0w\"",
|
|
5652
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5653
|
+
"size": 3037,
|
|
5654
|
+
"path": "../public/_nuxt/Dyaldc-t.js"
|
|
5655
|
+
},
|
|
5621
5656
|
"/_nuxt/Kd9XrMLS.js": {
|
|
5622
5657
|
"type": "text/javascript; charset=utf-8",
|
|
5623
5658
|
"etag": "\"3c3-UDltCtijZU7FawMyNTyHB77jOcQ\"",
|
|
5624
|
-
"mtime": "2026-
|
|
5659
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5625
5660
|
"size": 963,
|
|
5626
5661
|
"path": "../public/_nuxt/Kd9XrMLS.js"
|
|
5627
5662
|
},
|
|
5663
|
+
"/_nuxt/CL7qtgl2.js": {
|
|
5664
|
+
"type": "text/javascript; charset=utf-8",
|
|
5665
|
+
"etag": "\"38106e-gZ4P9MZknbI1xWbOGuth7PUvqPM\"",
|
|
5666
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5667
|
+
"size": 3674222,
|
|
5668
|
+
"path": "../public/_nuxt/CL7qtgl2.js"
|
|
5669
|
+
},
|
|
5628
5670
|
"/_nuxt/OrD6JF1K.js": {
|
|
5629
5671
|
"type": "text/javascript; charset=utf-8",
|
|
5630
5672
|
"etag": "\"8fb-KiGVisOmak2as1VB/uqwEGIKDpw\"",
|
|
5631
|
-
"mtime": "2026-
|
|
5673
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5632
5674
|
"size": 2299,
|
|
5633
5675
|
"path": "../public/_nuxt/OrD6JF1K.js"
|
|
5634
5676
|
},
|
|
5635
5677
|
"/_nuxt/PahG7c26.js": {
|
|
5636
5678
|
"type": "text/javascript; charset=utf-8",
|
|
5637
5679
|
"etag": "\"b1d-bWlWeI4121TNED4AHZm9XOKmyVY\"",
|
|
5638
|
-
"mtime": "2026-
|
|
5680
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5639
5681
|
"size": 2845,
|
|
5640
5682
|
"path": "../public/_nuxt/PahG7c26.js"
|
|
5641
5683
|
},
|
|
5642
|
-
"/_nuxt/
|
|
5684
|
+
"/_nuxt/UU9fpRNQ.js": {
|
|
5643
5685
|
"type": "text/javascript; charset=utf-8",
|
|
5644
|
-
"etag": "\"
|
|
5645
|
-
"mtime": "2026-
|
|
5646
|
-
"size":
|
|
5647
|
-
"path": "../public/_nuxt/
|
|
5686
|
+
"etag": "\"307f-pdyv9taDwSX3CAWPX/6GKh4zslc\"",
|
|
5687
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5688
|
+
"size": 12415,
|
|
5689
|
+
"path": "../public/_nuxt/UU9fpRNQ.js"
|
|
5648
5690
|
},
|
|
5649
5691
|
"/_nuxt/Ub6l9XKa.js": {
|
|
5650
5692
|
"type": "text/javascript; charset=utf-8",
|
|
5651
5693
|
"etag": "\"1fb5-EBSbIH3NcQsdpCtwGYIi0JWAQhs\"",
|
|
5652
|
-
"mtime": "2026-
|
|
5694
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5653
5695
|
"size": 8117,
|
|
5654
5696
|
"path": "../public/_nuxt/Ub6l9XKa.js"
|
|
5655
5697
|
},
|
|
5656
|
-
"/_nuxt/
|
|
5698
|
+
"/_nuxt/Y6nb8tq_.js": {
|
|
5657
5699
|
"type": "text/javascript; charset=utf-8",
|
|
5658
|
-
"etag": "\"
|
|
5659
|
-
"mtime": "2026-
|
|
5660
|
-
"size":
|
|
5661
|
-
"path": "../public/_nuxt/
|
|
5662
|
-
},
|
|
5700
|
+
"etag": "\"2c6-2RkdP9PGU+pTqWxDG4zosKFLiR4\"",
|
|
5701
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5702
|
+
"size": 710,
|
|
5703
|
+
"path": "../public/_nuxt/Y6nb8tq_.js"
|
|
5704
|
+
},
|
|
5663
5705
|
"/_nuxt/cTPe9QuQ.js": {
|
|
5664
5706
|
"type": "text/javascript; charset=utf-8",
|
|
5665
5707
|
"etag": "\"caf-yZbn8PPUakonW4XhqIhpgeiXewo\"",
|
|
5666
|
-
"mtime": "2026-
|
|
5708
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5667
5709
|
"size": 3247,
|
|
5668
5710
|
"path": "../public/_nuxt/cTPe9QuQ.js"
|
|
5669
5711
|
},
|
|
5670
|
-
"/_nuxt/
|
|
5671
|
-
"type": "
|
|
5672
|
-
"etag": "\"
|
|
5673
|
-
"mtime": "2026-
|
|
5674
|
-
"size":
|
|
5675
|
-
"path": "../public/_nuxt/
|
|
5712
|
+
"/_nuxt/acbASCJo.js": {
|
|
5713
|
+
"type": "text/javascript; charset=utf-8",
|
|
5714
|
+
"etag": "\"9d7-SLi0hO/Y8EGtV+Lcy2UWJ4mmikI\"",
|
|
5715
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5716
|
+
"size": 2519,
|
|
5717
|
+
"path": "../public/_nuxt/acbASCJo.js"
|
|
5676
5718
|
},
|
|
5677
5719
|
"/_nuxt/cl7-CwDS.js": {
|
|
5678
5720
|
"type": "text/javascript; charset=utf-8",
|
|
5679
5721
|
"etag": "\"1b63-QdNi9/6d3b4Hcm8s4FHiVLfduog\"",
|
|
5680
|
-
"mtime": "2026-
|
|
5722
|
+
"mtime": "2026-10-09T11:58:05.931Z",
|
|
5681
5723
|
"size": 7011,
|
|
5682
5724
|
"path": "../public/_nuxt/cl7-CwDS.js"
|
|
5683
5725
|
},
|
|
5684
|
-
"/_nuxt/
|
|
5685
|
-
"type": "
|
|
5686
|
-
"etag": "\"
|
|
5687
|
-
"mtime": "2026-
|
|
5688
|
-
"size":
|
|
5689
|
-
"path": "../public/_nuxt/
|
|
5726
|
+
"/_nuxt/codicon.ngg6Pgfi.ttf": {
|
|
5727
|
+
"type": "font/ttf",
|
|
5728
|
+
"etag": "\"1dc74-XBOjto8AfgSVQjDgT1tQlYjB3+A\"",
|
|
5729
|
+
"mtime": "2026-10-09T11:58:05.932Z",
|
|
5730
|
+
"size": 121972,
|
|
5731
|
+
"path": "../public/_nuxt/codicon.ngg6Pgfi.ttf"
|
|
5690
5732
|
},
|
|
5691
|
-
"/_nuxt/error-404.
|
|
5733
|
+
"/_nuxt/error-404.hPtlUQpd.css": {
|
|
5692
5734
|
"type": "text/css; charset=utf-8",
|
|
5693
|
-
"etag": "\"97e-
|
|
5694
|
-
"mtime": "2026-
|
|
5735
|
+
"etag": "\"97e-4bjFmzlGnBPkSwHJn3dD2bHxF1E\"",
|
|
5736
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5695
5737
|
"size": 2430,
|
|
5696
|
-
"path": "../public/_nuxt/error-404.
|
|
5738
|
+
"path": "../public/_nuxt/error-404.hPtlUQpd.css"
|
|
5697
5739
|
},
|
|
5698
|
-
"/_nuxt/
|
|
5740
|
+
"/_nuxt/error-500.E-PXUb6B.css": {
|
|
5699
5741
|
"type": "text/css; charset=utf-8",
|
|
5700
|
-
"etag": "\"
|
|
5701
|
-
"mtime": "2026-
|
|
5702
|
-
"size":
|
|
5703
|
-
"path": "../public/_nuxt/
|
|
5742
|
+
"etag": "\"773-pdYCR4ZqjnoqNQP+5DU9wk3nZV8\"",
|
|
5743
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5744
|
+
"size": 1907,
|
|
5745
|
+
"path": "../public/_nuxt/error-500.E-PXUb6B.css"
|
|
5704
5746
|
},
|
|
5705
|
-
"/_nuxt/
|
|
5747
|
+
"/_nuxt/entry.CDPplHzk.css": {
|
|
5706
5748
|
"type": "text/css; charset=utf-8",
|
|
5707
|
-
"etag": "\"
|
|
5708
|
-
"mtime": "2026-
|
|
5709
|
-
"size":
|
|
5710
|
-
"path": "../public/_nuxt/
|
|
5749
|
+
"etag": "\"33b6f-UxfJd4krFe9yx3CQwLt6RYDHGPc\"",
|
|
5750
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5751
|
+
"size": 211823,
|
|
5752
|
+
"path": "../public/_nuxt/entry.CDPplHzk.css"
|
|
5711
5753
|
},
|
|
5712
5754
|
"/_nuxt/j7ic8hl3.js": {
|
|
5713
5755
|
"type": "text/javascript; charset=utf-8",
|
|
5714
5756
|
"etag": "\"bb1-9Sa0UM8wJM2r2qsvCyphIbL8AZg\"",
|
|
5715
|
-
"mtime": "2026-
|
|
5757
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5716
5758
|
"size": 2993,
|
|
5717
5759
|
"path": "../public/_nuxt/j7ic8hl3.js"
|
|
5718
5760
|
},
|
|
5719
|
-
"/_nuxt/
|
|
5720
|
-
"type": "text/javascript; charset=utf-8",
|
|
5721
|
-
"etag": "\"307f-T6jQ7s4/uy+Ib/Hok7UmqxPht5o\"",
|
|
5722
|
-
"mtime": "2026-09-29T10:07:41.521Z",
|
|
5723
|
-
"size": 12415,
|
|
5724
|
-
"path": "../public/_nuxt/o-NCh2rp.js"
|
|
5725
|
-
},
|
|
5726
|
-
"/_nuxt/s7OhZKlX.js": {
|
|
5727
|
-
"type": "text/javascript; charset=utf-8",
|
|
5728
|
-
"etag": "\"cbe-Dm9BrC9HzAMmu490V+uHkCppSHQ\"",
|
|
5729
|
-
"mtime": "2026-09-29T10:07:41.521Z",
|
|
5730
|
-
"size": 3262,
|
|
5731
|
-
"path": "../public/_nuxt/s7OhZKlX.js"
|
|
5732
|
-
},
|
|
5733
|
-
"/_nuxt/sKEJiAHO.js": {
|
|
5761
|
+
"/_nuxt/kFZJW2-u.js": {
|
|
5734
5762
|
"type": "text/javascript; charset=utf-8",
|
|
5735
|
-
"etag": "\"
|
|
5736
|
-
"mtime": "2026-
|
|
5737
|
-
"size":
|
|
5738
|
-
"path": "../public/_nuxt/
|
|
5763
|
+
"etag": "\"17ac5-dXl8y5LG+So84E7AtlKgzgHRdOU\"",
|
|
5764
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5765
|
+
"size": 96965,
|
|
5766
|
+
"path": "../public/_nuxt/kFZJW2-u.js"
|
|
5739
5767
|
},
|
|
5740
5768
|
"/_nuxt/monaco.CdBKkuhR.css": {
|
|
5741
5769
|
"type": "text/css; charset=utf-8",
|
|
5742
5770
|
"etag": "\"23759-zBPviZ9kjoGDK/SONPmPgsNdfbw\"",
|
|
5743
|
-
"mtime": "2026-
|
|
5771
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5744
5772
|
"size": 145241,
|
|
5745
5773
|
"path": "../public/_nuxt/monaco.CdBKkuhR.css"
|
|
5746
5774
|
},
|
|
5775
|
+
"/_nuxt/s7OhZKlX.js": {
|
|
5776
|
+
"type": "text/javascript; charset=utf-8",
|
|
5777
|
+
"etag": "\"cbe-Dm9BrC9HzAMmu490V+uHkCppSHQ\"",
|
|
5778
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5779
|
+
"size": 3262,
|
|
5780
|
+
"path": "../public/_nuxt/s7OhZKlX.js"
|
|
5781
|
+
},
|
|
5747
5782
|
"/_nuxt/json.worker-BoL8UZqY.js": {
|
|
5748
5783
|
"type": "text/javascript; charset=utf-8",
|
|
5749
5784
|
"etag": "\"5d85e-EsskSG2CAA9ynrYCpqRN2KaS2FE\"",
|
|
5750
|
-
"mtime": "2026-
|
|
5785
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5751
5786
|
"size": 383070,
|
|
5752
5787
|
"path": "../public/_nuxt/json.worker-BoL8UZqY.js"
|
|
5753
5788
|
},
|
|
5754
5789
|
"/_nuxt/tScXyioY.js": {
|
|
5755
5790
|
"type": "text/javascript; charset=utf-8",
|
|
5756
5791
|
"etag": "\"41a1-nk+NFTZ2H2UrRNYafqTgJU8ebz0\"",
|
|
5757
|
-
"mtime": "2026-
|
|
5792
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5758
5793
|
"size": 16801,
|
|
5759
5794
|
"path": "../public/_nuxt/tScXyioY.js"
|
|
5760
5795
|
},
|
|
5761
|
-
"/_nuxt/
|
|
5796
|
+
"/_nuxt/u3DlT5Mh.js": {
|
|
5762
5797
|
"type": "text/javascript; charset=utf-8",
|
|
5763
|
-
"etag": "\"
|
|
5764
|
-
"mtime": "2026-
|
|
5765
|
-
"size":
|
|
5766
|
-
"path": "../public/_nuxt/
|
|
5798
|
+
"etag": "\"da8-kTXFP7PPfPbJy+dPzyzRMAjEA84\"",
|
|
5799
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5800
|
+
"size": 3496,
|
|
5801
|
+
"path": "../public/_nuxt/u3DlT5Mh.js"
|
|
5767
5802
|
},
|
|
5768
5803
|
"/_nuxt/vHIfCaH5.js": {
|
|
5769
5804
|
"type": "text/javascript; charset=utf-8",
|
|
5770
5805
|
"etag": "\"b29-PFK6LQMWX+z+o5Uu4RxwUH/hoLM\"",
|
|
5771
|
-
"mtime": "2026-
|
|
5806
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5772
5807
|
"size": 2857,
|
|
5773
5808
|
"path": "../public/_nuxt/vHIfCaH5.js"
|
|
5774
5809
|
},
|
|
5775
|
-
"/_nuxt/
|
|
5776
|
-
"type": "text/javascript; charset=utf-8",
|
|
5777
|
-
"etag": "\"bdd-bi7c7P3snUj27uJXJbsHDICrHFw\"",
|
|
5778
|
-
"mtime": "2026-09-29T10:07:41.521Z",
|
|
5779
|
-
"size": 3037,
|
|
5780
|
-
"path": "../public/_nuxt/ypRHVLFO.js"
|
|
5781
|
-
},
|
|
5782
|
-
"/_nuxt/zBfavPgS.js": {
|
|
5810
|
+
"/_nuxt/editor.worker-CdQrwHl8.js": {
|
|
5783
5811
|
"type": "text/javascript; charset=utf-8",
|
|
5784
|
-
"etag": "\"
|
|
5785
|
-
"mtime": "2026-
|
|
5786
|
-
"size":
|
|
5787
|
-
"path": "../public/_nuxt/
|
|
5812
|
+
"etag": "\"3d7a2-wUBOfk+WxdfYdSew1MghFYzMaK8\"",
|
|
5813
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5814
|
+
"size": 251810,
|
|
5815
|
+
"path": "../public/_nuxt/editor.worker-CdQrwHl8.js"
|
|
5788
5816
|
},
|
|
5789
5817
|
"/_nuxt/css.worker-DBVD8oXr.js": {
|
|
5790
5818
|
"type": "text/javascript; charset=utf-8",
|
|
5791
5819
|
"etag": "\"fb8d8-EvsLU5LlgKGfDfWJSsik5yRf4nU\"",
|
|
5792
|
-
"mtime": "2026-
|
|
5820
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5793
5821
|
"size": 1030360,
|
|
5794
5822
|
"path": "../public/_nuxt/css.worker-DBVD8oXr.js"
|
|
5795
5823
|
},
|
|
5796
5824
|
"/_nuxt/html.worker-CwpTb9lJ.js": {
|
|
5797
5825
|
"type": "text/javascript; charset=utf-8",
|
|
5798
5826
|
"etag": "\"a93a9-v76H5kkCqgwj/Gcu1VzC4lCX/cQ\"",
|
|
5799
|
-
"mtime": "2026-
|
|
5827
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5800
5828
|
"size": 693161,
|
|
5801
5829
|
"path": "../public/_nuxt/html.worker-CwpTb9lJ.js"
|
|
5802
5830
|
},
|
|
5831
|
+
"/_nuxt/zBfavPgS.js": {
|
|
5832
|
+
"type": "text/javascript; charset=utf-8",
|
|
5833
|
+
"etag": "\"20ae-EddstE0hogAcS7TcgzuXbgtStMI\"",
|
|
5834
|
+
"mtime": "2026-10-09T11:58:05.944Z",
|
|
5835
|
+
"size": 8366,
|
|
5836
|
+
"path": "../public/_nuxt/zBfavPgS.js"
|
|
5837
|
+
},
|
|
5803
5838
|
"/_nuxt/builds/latest.json": {
|
|
5804
5839
|
"type": "application/json",
|
|
5805
|
-
"etag": "\"47-
|
|
5806
|
-
"mtime": "2026-
|
|
5840
|
+
"etag": "\"47-tTmrkaZ5qqQ7aJyRvFnBknmpTAU\"",
|
|
5841
|
+
"mtime": "2026-10-09T11:58:05.908Z",
|
|
5807
5842
|
"size": 71,
|
|
5808
5843
|
"path": "../public/_nuxt/builds/latest.json"
|
|
5809
5844
|
},
|
|
5810
|
-
"/_nuxt/builds/meta/
|
|
5845
|
+
"/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json": {
|
|
5811
5846
|
"type": "application/json",
|
|
5812
|
-
"etag": "\"58-
|
|
5813
|
-
"mtime": "2026-
|
|
5847
|
+
"etag": "\"58-tq6lWWV9z7iiP8h/7lLy+Zo6iO8\"",
|
|
5848
|
+
"mtime": "2026-10-09T11:58:05.905Z",
|
|
5814
5849
|
"size": 88,
|
|
5815
|
-
"path": "../public/_nuxt/builds/meta/
|
|
5850
|
+
"path": "../public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json"
|
|
5816
5851
|
},
|
|
5817
5852
|
"/_nuxt/ts.worker-CTGvpNXs.js": {
|
|
5818
5853
|
"type": "text/javascript; charset=utf-8",
|
|
5819
5854
|
"etag": "\"6af794-CJfRH6VLp2lTqjWugbyUmUsVeeg\"",
|
|
5820
|
-
"mtime": "2026-
|
|
5855
|
+
"mtime": "2026-10-09T11:58:05.945Z",
|
|
5821
5856
|
"size": 7010196,
|
|
5822
5857
|
"path": "../public/_nuxt/ts.worker-CTGvpNXs.js"
|
|
5823
5858
|
}
|
|
@@ -5925,18 +5960,6 @@ const dirname = function(p) {
|
|
|
5925
5960
|
}
|
|
5926
5961
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
5927
5962
|
};
|
|
5928
|
-
const basename = function(p, extension) {
|
|
5929
|
-
const segments = normalizeWindowsPath(p).split("/");
|
|
5930
|
-
let lastSegment = "";
|
|
5931
|
-
for (let i = segments.length - 1; i >= 0; i--) {
|
|
5932
|
-
const val = segments[i];
|
|
5933
|
-
if (val) {
|
|
5934
|
-
lastSegment = val;
|
|
5935
|
-
break;
|
|
5936
|
-
}
|
|
5937
|
-
}
|
|
5938
|
-
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
5939
|
-
};
|
|
5940
5963
|
|
|
5941
5964
|
function readAsset (id) {
|
|
5942
5965
|
const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
|
|
@@ -5961,7 +5984,7 @@ function getAsset (id) {
|
|
|
5961
5984
|
|
|
5962
5985
|
const METHODS = /* @__PURE__ */ new Set(["HEAD", "GET"]);
|
|
5963
5986
|
const EncodingMap = { gzip: ".gz", br: ".br" };
|
|
5964
|
-
const
|
|
5987
|
+
const _epnMfa = eventHandler((event) => {
|
|
5965
5988
|
if (event.method && !METHODS.has(event.method)) {
|
|
5966
5989
|
return;
|
|
5967
5990
|
}
|
|
@@ -6076,6 +6099,217 @@ const _c_y9US = defineEventHandler((event) => {
|
|
|
6076
6099
|
|
|
6077
6100
|
const _SxA8c9 = defineEventHandler(() => {});
|
|
6078
6101
|
|
|
6102
|
+
const options = {"iconifyApiEndpoint":"https://api.iconify.design"};
|
|
6103
|
+
|
|
6104
|
+
const collections = {
|
|
6105
|
+
};
|
|
6106
|
+
|
|
6107
|
+
const _pjczaX = defineCachedEventHandler(async (event) => {
|
|
6108
|
+
const collectionName = event.context.params?.collection?.replace(/\.json$/, "");
|
|
6109
|
+
const collection = collectionName && Object.hasOwn(collections, collectionName) ? await collections[collectionName]?.() : null;
|
|
6110
|
+
const apiEndPoint = options.iconifyApiEndpoint;
|
|
6111
|
+
const icons = String(parseQuery(parsePath(event.path).search).icons || "").split(",");
|
|
6112
|
+
if (!collectionName) return createError$1({ status: 400, message: "No collection specified" });
|
|
6113
|
+
if (!icons.length) return createError$1({ status: 400, message: "No icons specified" });
|
|
6114
|
+
if (collection) {
|
|
6115
|
+
const data = getIcons(
|
|
6116
|
+
collection,
|
|
6117
|
+
icons
|
|
6118
|
+
);
|
|
6119
|
+
consola.debug(`[Icon] serving ${icons.map((i) => "`" + collectionName + ":" + i + "`").join(",")} from bundled collection`);
|
|
6120
|
+
return data;
|
|
6121
|
+
}
|
|
6122
|
+
{
|
|
6123
|
+
const apiUrl = new URL(`./${collectionName}.json?icons=${icons.join(",")}`, apiEndPoint);
|
|
6124
|
+
consola.debug(`[Icon] fetching ${icons.map((i) => "`" + collectionName + ":" + i + "`").join(",")} from iconify api`);
|
|
6125
|
+
if (apiUrl.host !== new URL(apiEndPoint).host) {
|
|
6126
|
+
return createError$1({ status: 400, message: "Invalid icon request" });
|
|
6127
|
+
}
|
|
6128
|
+
try {
|
|
6129
|
+
const response = await fetch(apiUrl);
|
|
6130
|
+
if (!response.ok) {
|
|
6131
|
+
return response.status === 404 ? createError$1({ status: 404 }) : createError$1({ status: 500, message: "Failed to fetch fallback icon" });
|
|
6132
|
+
}
|
|
6133
|
+
return response.json();
|
|
6134
|
+
} catch (e) {
|
|
6135
|
+
consola.error(e);
|
|
6136
|
+
return createError$1({ status: 500, message: "Failed to fetch fallback icon" });
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
return createError$1({ status: 404 });
|
|
6140
|
+
}, {
|
|
6141
|
+
group: "nuxt",
|
|
6142
|
+
name: "icon",
|
|
6143
|
+
getKey(event) {
|
|
6144
|
+
const collection = event.context.params?.collection?.replace(/\.json$/, "") || "unknown";
|
|
6145
|
+
const icons = String(parseQuery(parsePath(event.path).search).icons || "").split(",");
|
|
6146
|
+
return `${collection}_${icons[0]}_${icons.length}_${hash$1(icons.join(","))}`;
|
|
6147
|
+
},
|
|
6148
|
+
swr: true,
|
|
6149
|
+
maxAge: 60 * 60 * 24 * 7
|
|
6150
|
+
// 1 week
|
|
6151
|
+
});
|
|
6152
|
+
|
|
6153
|
+
const _lazy_eqV2hV = () => import('../routes/api/editor-types.get.mjs');
|
|
6154
|
+
const _lazy_ops91K = () => import('../routes/api/parse.post.mjs');
|
|
6155
|
+
const _lazy__MlMs_ = () => import('../routes/api/resolve.get.mjs');
|
|
6156
|
+
const _lazy_XgkH_R = () => import('../routes/api/studio/run.post.mjs');
|
|
6157
|
+
const _lazy_0CDiy5 = () => import('../routes/renderer.mjs').then(function (n) { return n.r; });
|
|
6158
|
+
|
|
6159
|
+
const handlers = [
|
|
6160
|
+
{ route: '', handler: _epnMfa, lazy: false, middleware: true, method: undefined },
|
|
6161
|
+
{ route: '', handler: _c_y9US, lazy: false, middleware: true, method: undefined },
|
|
6162
|
+
{ route: '/api/editor-types', handler: _lazy_eqV2hV, lazy: true, middleware: false, method: "get" },
|
|
6163
|
+
{ route: '/api/parse', handler: _lazy_ops91K, lazy: true, middleware: false, method: "post" },
|
|
6164
|
+
{ route: '/api/resolve', handler: _lazy__MlMs_, lazy: true, middleware: false, method: "get" },
|
|
6165
|
+
{ route: '/api/studio/run', handler: _lazy_XgkH_R, lazy: true, middleware: false, method: "post" },
|
|
6166
|
+
{ route: '/__nuxt_error', handler: _lazy_0CDiy5, lazy: true, middleware: false, method: undefined },
|
|
6167
|
+
{ route: '/__nuxt_island/**', handler: _SxA8c9, lazy: false, middleware: false, method: undefined },
|
|
6168
|
+
{ route: '/api/_nuxt_icon/:collection', handler: _pjczaX, lazy: false, middleware: false, method: undefined },
|
|
6169
|
+
{ route: '/**', handler: _lazy_0CDiy5, lazy: true, middleware: false, method: undefined }
|
|
6170
|
+
];
|
|
6171
|
+
|
|
6172
|
+
function createNitroApp() {
|
|
6173
|
+
const config = useRuntimeConfig();
|
|
6174
|
+
const hooks = createHooks();
|
|
6175
|
+
const captureError = (error, context = {}) => {
|
|
6176
|
+
const promise = hooks.callHookParallel("error", error, context).catch((error_) => {
|
|
6177
|
+
console.error("Error while capturing another error", error_);
|
|
6178
|
+
});
|
|
6179
|
+
if (context.event && isEvent(context.event)) {
|
|
6180
|
+
const errors = context.event.context.nitro?.errors;
|
|
6181
|
+
if (errors) {
|
|
6182
|
+
errors.push({ error, context });
|
|
6183
|
+
}
|
|
6184
|
+
if (context.event.waitUntil) {
|
|
6185
|
+
context.event.waitUntil(promise);
|
|
6186
|
+
}
|
|
6187
|
+
}
|
|
6188
|
+
};
|
|
6189
|
+
const h3App = createApp({
|
|
6190
|
+
debug: destr(false),
|
|
6191
|
+
onError: (error, event) => {
|
|
6192
|
+
captureError(error, { event, tags: ["request"] });
|
|
6193
|
+
return errorHandler(error, event);
|
|
6194
|
+
},
|
|
6195
|
+
onRequest: async (event) => {
|
|
6196
|
+
event.context.nitro = event.context.nitro || { errors: [] };
|
|
6197
|
+
const fetchContext = event.node.req?.__unenv__;
|
|
6198
|
+
if (fetchContext?._platform) {
|
|
6199
|
+
event.context = {
|
|
6200
|
+
_platform: fetchContext?._platform,
|
|
6201
|
+
// #3335
|
|
6202
|
+
...fetchContext._platform,
|
|
6203
|
+
...event.context
|
|
6204
|
+
};
|
|
6205
|
+
}
|
|
6206
|
+
if (!event.context.waitUntil && fetchContext?.waitUntil) {
|
|
6207
|
+
event.context.waitUntil = fetchContext.waitUntil;
|
|
6208
|
+
}
|
|
6209
|
+
event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
|
|
6210
|
+
event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
|
|
6211
|
+
fetch: $fetch
|
|
6212
|
+
});
|
|
6213
|
+
event.waitUntil = (promise) => {
|
|
6214
|
+
if (!event.context.nitro._waitUntilPromises) {
|
|
6215
|
+
event.context.nitro._waitUntilPromises = [];
|
|
6216
|
+
}
|
|
6217
|
+
event.context.nitro._waitUntilPromises.push(promise);
|
|
6218
|
+
if (event.context.waitUntil) {
|
|
6219
|
+
event.context.waitUntil(promise);
|
|
6220
|
+
}
|
|
6221
|
+
};
|
|
6222
|
+
event.captureError = (error, context) => {
|
|
6223
|
+
captureError(error, { event, ...context });
|
|
6224
|
+
};
|
|
6225
|
+
await nitroApp$1.hooks.callHook("request", event).catch((error) => {
|
|
6226
|
+
captureError(error, { event, tags: ["request"] });
|
|
6227
|
+
});
|
|
6228
|
+
},
|
|
6229
|
+
onBeforeResponse: async (event, response) => {
|
|
6230
|
+
await nitroApp$1.hooks.callHook("beforeResponse", event, response).catch((error) => {
|
|
6231
|
+
captureError(error, { event, tags: ["request", "response"] });
|
|
6232
|
+
});
|
|
6233
|
+
},
|
|
6234
|
+
onAfterResponse: async (event, response) => {
|
|
6235
|
+
await nitroApp$1.hooks.callHook("afterResponse", event, response).catch((error) => {
|
|
6236
|
+
captureError(error, { event, tags: ["request", "response"] });
|
|
6237
|
+
});
|
|
6238
|
+
}
|
|
6239
|
+
});
|
|
6240
|
+
const router = createRouter({
|
|
6241
|
+
preemptive: true
|
|
6242
|
+
});
|
|
6243
|
+
const nodeHandler = toNodeListener(h3App);
|
|
6244
|
+
const localCall = (aRequest) => b(
|
|
6245
|
+
nodeHandler,
|
|
6246
|
+
aRequest
|
|
6247
|
+
);
|
|
6248
|
+
const localFetch = (input, init) => {
|
|
6249
|
+
if (!input.toString().startsWith("/")) {
|
|
6250
|
+
return globalThis.fetch(input, init);
|
|
6251
|
+
}
|
|
6252
|
+
return C(
|
|
6253
|
+
nodeHandler,
|
|
6254
|
+
input,
|
|
6255
|
+
init
|
|
6256
|
+
).then((response) => normalizeFetchResponse(response));
|
|
6257
|
+
};
|
|
6258
|
+
const $fetch = createFetch({
|
|
6259
|
+
fetch: localFetch,
|
|
6260
|
+
Headers: Headers$1,
|
|
6261
|
+
defaults: { baseURL: config.app.baseURL }
|
|
6262
|
+
});
|
|
6263
|
+
globalThis.$fetch = $fetch;
|
|
6264
|
+
h3App.use(createRouteRulesHandler({ localFetch }));
|
|
6265
|
+
for (const h of handlers) {
|
|
6266
|
+
let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
|
|
6267
|
+
if (h.middleware || !h.route) {
|
|
6268
|
+
const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
|
|
6269
|
+
/\/+/g,
|
|
6270
|
+
"/"
|
|
6271
|
+
);
|
|
6272
|
+
h3App.use(middlewareBase, handler);
|
|
6273
|
+
} else {
|
|
6274
|
+
const routeRules = getRouteRulesForPath(
|
|
6275
|
+
h.route.replace(/:\w+|\*\*/g, "_")
|
|
6276
|
+
);
|
|
6277
|
+
if (routeRules.cache) {
|
|
6278
|
+
handler = cachedEventHandler(handler, {
|
|
6279
|
+
group: "nitro/routes",
|
|
6280
|
+
...routeRules.cache
|
|
6281
|
+
});
|
|
6282
|
+
}
|
|
6283
|
+
router.use(h.route, handler, h.method);
|
|
6284
|
+
}
|
|
6285
|
+
}
|
|
6286
|
+
h3App.use(config.app.baseURL, router.handler);
|
|
6287
|
+
const app = {
|
|
6288
|
+
hooks,
|
|
6289
|
+
h3App,
|
|
6290
|
+
router,
|
|
6291
|
+
localCall,
|
|
6292
|
+
localFetch,
|
|
6293
|
+
captureError
|
|
6294
|
+
};
|
|
6295
|
+
return app;
|
|
6296
|
+
}
|
|
6297
|
+
function runNitroPlugins(nitroApp2) {
|
|
6298
|
+
for (const plugin of plugins) {
|
|
6299
|
+
try {
|
|
6300
|
+
plugin(nitroApp2);
|
|
6301
|
+
} catch (error) {
|
|
6302
|
+
nitroApp2.captureError(error, { tags: ["plugin"] });
|
|
6303
|
+
throw error;
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
}
|
|
6307
|
+
const nitroApp$1 = createNitroApp();
|
|
6308
|
+
function useNitroApp() {
|
|
6309
|
+
return nitroApp$1;
|
|
6310
|
+
}
|
|
6311
|
+
runNitroPlugins(nitroApp$1);
|
|
6312
|
+
|
|
6079
6313
|
function defineRenderHandler(render) {
|
|
6080
6314
|
const runtimeConfig = useRuntimeConfig();
|
|
6081
6315
|
return eventHandler(async (event) => {
|
|
@@ -6115,1866 +6349,6 @@ function defineRenderHandler(render) {
|
|
|
6115
6349
|
});
|
|
6116
6350
|
}
|
|
6117
6351
|
|
|
6118
|
-
function baseURL() {
|
|
6119
|
-
// TODO: support passing event to `useRuntimeConfig`
|
|
6120
|
-
return useRuntimeConfig().app.baseURL;
|
|
6121
|
-
}
|
|
6122
|
-
function buildAssetsDir() {
|
|
6123
|
-
// TODO: support passing event to `useRuntimeConfig`
|
|
6124
|
-
return useRuntimeConfig().app.buildAssetsDir;
|
|
6125
|
-
}
|
|
6126
|
-
function buildAssetsURL(...path) {
|
|
6127
|
-
return joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path);
|
|
6128
|
-
}
|
|
6129
|
-
function publicAssetsURL(...path) {
|
|
6130
|
-
// TODO: support passing event to `useRuntimeConfig`
|
|
6131
|
-
const app = useRuntimeConfig().app;
|
|
6132
|
-
const publicBase = app.cdnURL || app.baseURL;
|
|
6133
|
-
return path.length ? joinRelativeURL(publicBase, ...path) : publicBase;
|
|
6134
|
-
}
|
|
6135
|
-
|
|
6136
|
-
var __defProp$1 = Object.defineProperty;
|
|
6137
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6138
|
-
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6139
|
-
function flatHooks(configHooks, hooks2 = {}, parentName) {
|
|
6140
|
-
for (const key in configHooks) {
|
|
6141
|
-
const subHook = configHooks[key];
|
|
6142
|
-
const name = parentName ? `${parentName}:${key}` : key;
|
|
6143
|
-
if (typeof subHook === "object" && subHook !== null) flatHooks(subHook, hooks2, name);
|
|
6144
|
-
else if (typeof subHook === "function") hooks2[name] = subHook;
|
|
6145
|
-
}
|
|
6146
|
-
return hooks2;
|
|
6147
|
-
}
|
|
6148
|
-
const createTask = /* @__PURE__ */ (() => {
|
|
6149
|
-
if (console.createTask) return console.createTask;
|
|
6150
|
-
const defaultTask = { run: (fn) => fn() };
|
|
6151
|
-
return () => defaultTask;
|
|
6152
|
-
})();
|
|
6153
|
-
function callHooks(hooks2, args, startIndex, task) {
|
|
6154
|
-
for (let i = startIndex; i < hooks2.length; i += 1) try {
|
|
6155
|
-
const result = task ? task.run(() => hooks2[i](...args)) : hooks2[i](...args);
|
|
6156
|
-
if (result instanceof Promise) return result.then(() => callHooks(hooks2, args, i + 1, task));
|
|
6157
|
-
} catch (error) {
|
|
6158
|
-
return Promise.reject(error);
|
|
6159
|
-
}
|
|
6160
|
-
}
|
|
6161
|
-
function serialTaskCaller(hooks2, args, name) {
|
|
6162
|
-
if (hooks2.length > 0) return callHooks(hooks2, args, 0, createTask(name));
|
|
6163
|
-
}
|
|
6164
|
-
function parallelTaskCaller(hooks2, args, name) {
|
|
6165
|
-
if (hooks2.length > 0) {
|
|
6166
|
-
const task = createTask(name);
|
|
6167
|
-
return Promise.all(hooks2.map((hook) => task.run(() => hook(...args))));
|
|
6168
|
-
}
|
|
6169
|
-
}
|
|
6170
|
-
function callEachWith(callbacks, arg0) {
|
|
6171
|
-
for (const callback of [...callbacks]) callback(arg0);
|
|
6172
|
-
}
|
|
6173
|
-
var Hookable = class {
|
|
6174
|
-
constructor() {
|
|
6175
|
-
__publicField$1(this, "_hooks");
|
|
6176
|
-
__publicField$1(this, "_before");
|
|
6177
|
-
__publicField$1(this, "_after");
|
|
6178
|
-
__publicField$1(this, "_deprecatedHooks");
|
|
6179
|
-
__publicField$1(this, "_deprecatedMessages");
|
|
6180
|
-
this._hooks = {};
|
|
6181
|
-
this._before = void 0;
|
|
6182
|
-
this._after = void 0;
|
|
6183
|
-
this._deprecatedMessages = void 0;
|
|
6184
|
-
this._deprecatedHooks = {};
|
|
6185
|
-
this.hook = this.hook.bind(this);
|
|
6186
|
-
this.callHook = this.callHook.bind(this);
|
|
6187
|
-
this.callHookWith = this.callHookWith.bind(this);
|
|
6188
|
-
}
|
|
6189
|
-
hook(name, function_, options = {}) {
|
|
6190
|
-
if (!name || typeof function_ !== "function") return () => {
|
|
6191
|
-
};
|
|
6192
|
-
const originalName = name;
|
|
6193
|
-
let dep;
|
|
6194
|
-
while (this._deprecatedHooks[name]) {
|
|
6195
|
-
dep = this._deprecatedHooks[name];
|
|
6196
|
-
name = dep.to;
|
|
6197
|
-
}
|
|
6198
|
-
if (dep && !options.allowDeprecated) {
|
|
6199
|
-
let message = dep.message;
|
|
6200
|
-
if (!message) message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
|
6201
|
-
if (!this._deprecatedMessages) this._deprecatedMessages = /* @__PURE__ */ new Set();
|
|
6202
|
-
if (!this._deprecatedMessages.has(message)) {
|
|
6203
|
-
console.warn(message);
|
|
6204
|
-
this._deprecatedMessages.add(message);
|
|
6205
|
-
}
|
|
6206
|
-
}
|
|
6207
|
-
if (!function_.name) try {
|
|
6208
|
-
Object.defineProperty(function_, "name", {
|
|
6209
|
-
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
|
6210
|
-
configurable: true
|
|
6211
|
-
});
|
|
6212
|
-
} catch {
|
|
6213
|
-
}
|
|
6214
|
-
this._hooks[name] = this._hooks[name] || [];
|
|
6215
|
-
this._hooks[name].push(function_);
|
|
6216
|
-
return () => {
|
|
6217
|
-
if (function_) {
|
|
6218
|
-
this.removeHook(name, function_);
|
|
6219
|
-
function_ = void 0;
|
|
6220
|
-
}
|
|
6221
|
-
};
|
|
6222
|
-
}
|
|
6223
|
-
hookOnce(name, function_) {
|
|
6224
|
-
let _unreg;
|
|
6225
|
-
let _function = (...arguments_) => {
|
|
6226
|
-
if (typeof _unreg === "function") _unreg();
|
|
6227
|
-
_unreg = void 0;
|
|
6228
|
-
_function = void 0;
|
|
6229
|
-
return function_(...arguments_);
|
|
6230
|
-
};
|
|
6231
|
-
_unreg = this.hook(name, _function);
|
|
6232
|
-
return _unreg;
|
|
6233
|
-
}
|
|
6234
|
-
removeHook(name, function_) {
|
|
6235
|
-
const hooks2 = this._hooks[name];
|
|
6236
|
-
if (hooks2) {
|
|
6237
|
-
const index = hooks2.indexOf(function_);
|
|
6238
|
-
if (index !== -1) hooks2.splice(index, 1);
|
|
6239
|
-
if (hooks2.length === 0) this._hooks[name] = void 0;
|
|
6240
|
-
}
|
|
6241
|
-
}
|
|
6242
|
-
clearHook(name) {
|
|
6243
|
-
this._hooks[name] = void 0;
|
|
6244
|
-
}
|
|
6245
|
-
deprecateHook(name, deprecated) {
|
|
6246
|
-
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
|
6247
|
-
const _hooks = this._hooks[name] || [];
|
|
6248
|
-
this._hooks[name] = void 0;
|
|
6249
|
-
for (const hook of _hooks) this.hook(name, hook);
|
|
6250
|
-
}
|
|
6251
|
-
deprecateHooks(deprecatedHooks) {
|
|
6252
|
-
for (const name in deprecatedHooks) this.deprecateHook(name, deprecatedHooks[name]);
|
|
6253
|
-
}
|
|
6254
|
-
addHooks(configHooks) {
|
|
6255
|
-
const hooks2 = flatHooks(configHooks);
|
|
6256
|
-
const removeFns = Object.keys(hooks2).map((key) => this.hook(key, hooks2[key]));
|
|
6257
|
-
return () => {
|
|
6258
|
-
for (const unreg of removeFns) unreg();
|
|
6259
|
-
removeFns.length = 0;
|
|
6260
|
-
};
|
|
6261
|
-
}
|
|
6262
|
-
removeHooks(configHooks) {
|
|
6263
|
-
const hooks2 = flatHooks(configHooks);
|
|
6264
|
-
for (const key in hooks2) this.removeHook(key, hooks2[key]);
|
|
6265
|
-
}
|
|
6266
|
-
removeAllHooks() {
|
|
6267
|
-
this._hooks = {};
|
|
6268
|
-
}
|
|
6269
|
-
callHook(name, ...args) {
|
|
6270
|
-
return this.callHookWith(serialTaskCaller, name, args);
|
|
6271
|
-
}
|
|
6272
|
-
callHookParallel(name, ...args) {
|
|
6273
|
-
return this.callHookWith(parallelTaskCaller, name, args);
|
|
6274
|
-
}
|
|
6275
|
-
callHookWith(caller, name, args) {
|
|
6276
|
-
const event = this._before || this._after ? {
|
|
6277
|
-
name,
|
|
6278
|
-
args,
|
|
6279
|
-
context: {}
|
|
6280
|
-
} : void 0;
|
|
6281
|
-
if (this._before) callEachWith(this._before, event);
|
|
6282
|
-
const result = caller(this._hooks[name] ? [...this._hooks[name]] : [], args, name);
|
|
6283
|
-
if (result instanceof Promise) return result.finally(() => {
|
|
6284
|
-
if (this._after && event) callEachWith(this._after, event);
|
|
6285
|
-
});
|
|
6286
|
-
if (this._after && event) callEachWith(this._after, event);
|
|
6287
|
-
return result;
|
|
6288
|
-
}
|
|
6289
|
-
beforeEach(function_) {
|
|
6290
|
-
this._before = this._before || [];
|
|
6291
|
-
this._before.push(function_);
|
|
6292
|
-
return () => {
|
|
6293
|
-
if (this._before !== void 0) {
|
|
6294
|
-
const index = this._before.indexOf(function_);
|
|
6295
|
-
if (index !== -1) this._before.splice(index, 1);
|
|
6296
|
-
}
|
|
6297
|
-
};
|
|
6298
|
-
}
|
|
6299
|
-
afterEach(function_) {
|
|
6300
|
-
this._after = this._after || [];
|
|
6301
|
-
this._after.push(function_);
|
|
6302
|
-
return () => {
|
|
6303
|
-
if (this._after !== void 0) {
|
|
6304
|
-
const index = this._after.indexOf(function_);
|
|
6305
|
-
if (index !== -1) this._after.splice(index, 1);
|
|
6306
|
-
}
|
|
6307
|
-
};
|
|
6308
|
-
}
|
|
6309
|
-
};
|
|
6310
|
-
function createHooks() {
|
|
6311
|
-
return new Hookable();
|
|
6312
|
-
}
|
|
6313
|
-
const hooks = createHooks();
|
|
6314
|
-
function callHookSync(name, ...args) {
|
|
6315
|
-
hooks.callHookWith((callbacks, args2) => {
|
|
6316
|
-
for (const callback of callbacks) {
|
|
6317
|
-
callback(...args2);
|
|
6318
|
-
}
|
|
6319
|
-
}, name, args);
|
|
6320
|
-
}
|
|
6321
|
-
const mongooseRegistry = z.registry();
|
|
6322
|
-
function withMongoose(schema, meta = {}) {
|
|
6323
|
-
callHookSync("registry:get:before", { schema });
|
|
6324
|
-
const existing = mongooseRegistry.get(schema) || {};
|
|
6325
|
-
callHookSync("registry:get", { schema, meta: existing });
|
|
6326
|
-
const merged = { ...existing, ...meta };
|
|
6327
|
-
callHookSync("registry:add", { schema, meta: merged });
|
|
6328
|
-
mongooseRegistry.add(schema, merged);
|
|
6329
|
-
callHookSync("registry:added", { schema, meta: merged });
|
|
6330
|
-
return schema;
|
|
6331
|
-
}
|
|
6332
|
-
function getMongooseMeta(schema) {
|
|
6333
|
-
const def = schema._def;
|
|
6334
|
-
if (!def)
|
|
6335
|
-
return {};
|
|
6336
|
-
let meta = mongooseRegistry.get(schema) || {};
|
|
6337
|
-
if (def.innerType) {
|
|
6338
|
-
meta = { ...getMongooseMeta(def.innerType), ...meta };
|
|
6339
|
-
} else if (def.schema) {
|
|
6340
|
-
meta = { ...getMongooseMeta(def.schema), ...meta };
|
|
6341
|
-
}
|
|
6342
|
-
if (def.type === "pipe") {
|
|
6343
|
-
meta = { ...getMongooseMeta(def.in), ...getMongooseMeta(def.out), ...meta };
|
|
6344
|
-
}
|
|
6345
|
-
return meta;
|
|
6346
|
-
}
|
|
6347
|
-
function objectStrictness(schema) {
|
|
6348
|
-
var _a, _b, _c, _d;
|
|
6349
|
-
const catchall = (_b = (_a = schema._zod) == null ? void 0 : _a.def) == null ? void 0 : _b.catchall;
|
|
6350
|
-
if (!catchall)
|
|
6351
|
-
return true;
|
|
6352
|
-
return ((_d = (_c = catchall._zod) == null ? void 0 : _c.def) == null ? void 0 : _d.type) === "never" ? "throw" : false;
|
|
6353
|
-
}
|
|
6354
|
-
function unwrapZodSchema(schema, features = { required: true }, visited = /* @__PURE__ */ new Set()) {
|
|
6355
|
-
var _a, _b, _c, _d, _e;
|
|
6356
|
-
if (!schema)
|
|
6357
|
-
return { schema, features };
|
|
6358
|
-
if (visited.has(schema))
|
|
6359
|
-
return { schema, features };
|
|
6360
|
-
const def = schema._def;
|
|
6361
|
-
if (!def)
|
|
6362
|
-
return { schema, features };
|
|
6363
|
-
if (!(schema instanceof z.ZodOptional) && !(schema instanceof z.ZodNullable) && !(schema instanceof z.ZodDefault) && def.type !== "pipe") {
|
|
6364
|
-
visited.add(schema);
|
|
6365
|
-
}
|
|
6366
|
-
if (schema instanceof z.ZodOptional) {
|
|
6367
|
-
const inner = schema.unwrap();
|
|
6368
|
-
const result = unwrapZodSchema(
|
|
6369
|
-
// @ts-expect-error Zod v4 schema.unwrap() return type mismatch
|
|
6370
|
-
inner,
|
|
6371
|
-
features,
|
|
6372
|
-
visited
|
|
6373
|
-
);
|
|
6374
|
-
return {
|
|
6375
|
-
schema: result.schema,
|
|
6376
|
-
features: {
|
|
6377
|
-
...result.features,
|
|
6378
|
-
required: false,
|
|
6379
|
-
isOptional: true,
|
|
6380
|
-
isExactOptional: false,
|
|
6381
|
-
isNonOptional: false
|
|
6382
|
-
}
|
|
6383
|
-
};
|
|
6384
|
-
}
|
|
6385
|
-
if (schema instanceof z.ZodExactOptional) {
|
|
6386
|
-
const result = unwrapZodSchema(schema.unwrap(), features, visited);
|
|
6387
|
-
return {
|
|
6388
|
-
schema: result.schema,
|
|
6389
|
-
features: {
|
|
6390
|
-
...result.features,
|
|
6391
|
-
required: false,
|
|
6392
|
-
isOptional: true,
|
|
6393
|
-
isExactOptional: true,
|
|
6394
|
-
isNonOptional: false
|
|
6395
|
-
}
|
|
6396
|
-
};
|
|
6397
|
-
}
|
|
6398
|
-
if (schema instanceof z.ZodNonOptional) {
|
|
6399
|
-
const result = unwrapZodSchema(schema.unwrap(), features, visited);
|
|
6400
|
-
return {
|
|
6401
|
-
schema: result.schema,
|
|
6402
|
-
features: {
|
|
6403
|
-
...result.features,
|
|
6404
|
-
required: true,
|
|
6405
|
-
isOptional: false,
|
|
6406
|
-
isExactOptional: false,
|
|
6407
|
-
isNonOptional: true
|
|
6408
|
-
}
|
|
6409
|
-
};
|
|
6410
|
-
}
|
|
6411
|
-
if (schema instanceof z.ZodNullable) {
|
|
6412
|
-
return unwrapZodSchema(
|
|
6413
|
-
// @ts-expect-error Zod v4 schema.unwrap() return type mismatch
|
|
6414
|
-
schema.unwrap(),
|
|
6415
|
-
{
|
|
6416
|
-
...features,
|
|
6417
|
-
isNullable: true
|
|
6418
|
-
},
|
|
6419
|
-
visited
|
|
6420
|
-
);
|
|
6421
|
-
}
|
|
6422
|
-
if (schema instanceof z.ZodDefault) {
|
|
6423
|
-
const defaultValue = typeof def.defaultValue === "function" ? def.defaultValue() : def.defaultValue;
|
|
6424
|
-
return unwrapZodSchema(def.innerType, {
|
|
6425
|
-
...features,
|
|
6426
|
-
default: defaultValue
|
|
6427
|
-
}, visited);
|
|
6428
|
-
}
|
|
6429
|
-
const { type } = def;
|
|
6430
|
-
if (type === "pipe") {
|
|
6431
|
-
const inType = (_b = (_a = def.in) == null ? void 0 : _a._def) == null ? void 0 : _b.type;
|
|
6432
|
-
const outType = (_d = (_c = def.out) == null ? void 0 : _c._def) == null ? void 0 : _d.type;
|
|
6433
|
-
if (inType === "transform") {
|
|
6434
|
-
return unwrapZodSchema(def.out, features, visited);
|
|
6435
|
-
}
|
|
6436
|
-
if (outType === "transform" || outType === "refinement") {
|
|
6437
|
-
const transformFeatures = { ...features };
|
|
6438
|
-
const outDef = (_e = def.out) == null ? void 0 : _e._def;
|
|
6439
|
-
const effects = (outDef == null ? void 0 : outDef.effects) || (outDef == null ? void 0 : outDef.transformations) || (outType === "transform" ? [outDef] : []);
|
|
6440
|
-
if (effects && Array.isArray(effects)) {
|
|
6441
|
-
transformFeatures.transformations = [
|
|
6442
|
-
...transformFeatures.transformations || [],
|
|
6443
|
-
...effects
|
|
6444
|
-
];
|
|
6445
|
-
}
|
|
6446
|
-
return unwrapZodSchema(def.in, transformFeatures, visited);
|
|
6447
|
-
}
|
|
6448
|
-
return unwrapZodSchema(def.out, features, visited);
|
|
6449
|
-
}
|
|
6450
|
-
if (type === "transform" || type === "preprocess" || type === "refinement" || type === "effects") {
|
|
6451
|
-
const transformFeatures = { ...features };
|
|
6452
|
-
const effects = def.effects || def.transformations || (def.type === "transform" || type === "transform" ? [def] : []);
|
|
6453
|
-
if (effects && Array.isArray(effects)) {
|
|
6454
|
-
transformFeatures.transformations = [
|
|
6455
|
-
...transformFeatures.transformations || [],
|
|
6456
|
-
...effects
|
|
6457
|
-
];
|
|
6458
|
-
}
|
|
6459
|
-
const inner = def.schema || def.innerType;
|
|
6460
|
-
if (inner) {
|
|
6461
|
-
const result = unwrapZodSchema(inner, transformFeatures, visited);
|
|
6462
|
-
return result;
|
|
6463
|
-
}
|
|
6464
|
-
}
|
|
6465
|
-
if (type === "lazy") {
|
|
6466
|
-
return { schema, features };
|
|
6467
|
-
}
|
|
6468
|
-
if (type === "branded" || type === "readonly") {
|
|
6469
|
-
return unwrapZodSchema(schema.unwrap(), {
|
|
6470
|
-
...features,
|
|
6471
|
-
...type === "readonly" ? { readOnly: true } : {}
|
|
6472
|
-
}, visited);
|
|
6473
|
-
}
|
|
6474
|
-
if (def.checks && Array.isArray(def.checks)) {
|
|
6475
|
-
features.checks = [...features.checks || [], ...def.checks];
|
|
6476
|
-
}
|
|
6477
|
-
return { schema, features };
|
|
6478
|
-
}
|
|
6479
|
-
function prepareForZodValidation(schema, value, mongooseSchema, pathPrefix = "") {
|
|
6480
|
-
var _a;
|
|
6481
|
-
if (value === null || value === void 0)
|
|
6482
|
-
return value;
|
|
6483
|
-
const { schema: unwrapped } = unwrapZodSchema(schema);
|
|
6484
|
-
const def = unwrapped == null ? void 0 : unwrapped._def;
|
|
6485
|
-
if ((def == null ? void 0 : def.type) === "lazy") {
|
|
6486
|
-
return prepareForZodValidation(def.getter(), value, mongooseSchema, pathPrefix);
|
|
6487
|
-
}
|
|
6488
|
-
if ((def == null ? void 0 : def.type) === "object" && typeof value === "object" && !Array.isArray(value)) {
|
|
6489
|
-
const { shape } = unwrapped;
|
|
6490
|
-
const result = { ...value };
|
|
6491
|
-
if (mongooseSchema && !pathPrefix && mongooseSchema.options._id !== false && !Object.hasOwn(shape, "_id")) {
|
|
6492
|
-
delete result._id;
|
|
6493
|
-
}
|
|
6494
|
-
const versionKey = !pathPrefix && (mongooseSchema == null ? void 0 : mongooseSchema.options.versionKey);
|
|
6495
|
-
if (typeof versionKey === "string" && !Object.hasOwn(shape, versionKey)) {
|
|
6496
|
-
delete result[versionKey];
|
|
6497
|
-
}
|
|
6498
|
-
const timestamps = !pathPrefix && (mongooseSchema == null ? void 0 : mongooseSchema.options.timestamps);
|
|
6499
|
-
if (timestamps) {
|
|
6500
|
-
for (const key of ["createdAt", "updatedAt"]) {
|
|
6501
|
-
const configured = typeof timestamps === "object" ? timestamps[key] : void 0;
|
|
6502
|
-
if (configured === false)
|
|
6503
|
-
continue;
|
|
6504
|
-
const fieldName = typeof configured === "string" ? configured : key;
|
|
6505
|
-
if (!Object.hasOwn(shape, fieldName))
|
|
6506
|
-
delete result[fieldName];
|
|
6507
|
-
}
|
|
6508
|
-
}
|
|
6509
|
-
for (const [key, fieldSchema] of Object.entries(shape)) {
|
|
6510
|
-
if (!Object.hasOwn(result, key))
|
|
6511
|
-
continue;
|
|
6512
|
-
const path = pathPrefix ? `${pathPrefix}.${key}` : key;
|
|
6513
|
-
const nestedSchema = (_a = mongooseSchema == null ? void 0 : mongooseSchema.path(path)) == null ? void 0 : _a.schema;
|
|
6514
|
-
result[key] = prepareForZodValidation(fieldSchema, result[key], nestedSchema || mongooseSchema, nestedSchema ? "" : path);
|
|
6515
|
-
}
|
|
6516
|
-
return result;
|
|
6517
|
-
}
|
|
6518
|
-
if (Array.isArray(value)) {
|
|
6519
|
-
if ((def == null ? void 0 : def.type) === "array" || (def == null ? void 0 : def.type) === "set") {
|
|
6520
|
-
const element = unwrapped.element || def.valueType;
|
|
6521
|
-
return element ? value.map((item) => prepareForZodValidation(element, item, mongooseSchema, pathPrefix)) : value;
|
|
6522
|
-
}
|
|
6523
|
-
if ((def == null ? void 0 : def.type) === "tuple") {
|
|
6524
|
-
return value.map((item, index) => {
|
|
6525
|
-
var _a2;
|
|
6526
|
-
const element = ((_a2 = def.items) == null ? void 0 : _a2[index]) || def.rest;
|
|
6527
|
-
return element ? prepareForZodValidation(element, item, mongooseSchema, pathPrefix) : item;
|
|
6528
|
-
});
|
|
6529
|
-
}
|
|
6530
|
-
}
|
|
6531
|
-
return value;
|
|
6532
|
-
}
|
|
6533
|
-
let mongooseInstance = null;
|
|
6534
|
-
let isFrontend;
|
|
6535
|
-
const setFrontendMode = (enabled) => {
|
|
6536
|
-
console.warn("[zod-mongoose] setFrontendMode() is deprecated and will be removed in v4. Conditional exports select the appropriate implementation automatically.");
|
|
6537
|
-
isFrontend = enabled;
|
|
6538
|
-
};
|
|
6539
|
-
const getFrontendMode = () => {
|
|
6540
|
-
if (isFrontend === void 0 || isFrontend === null) {
|
|
6541
|
-
return globalThis.window !== void 0 && globalThis.document !== void 0;
|
|
6542
|
-
}
|
|
6543
|
-
return isFrontend;
|
|
6544
|
-
};
|
|
6545
|
-
const setMongoose = (m) => {
|
|
6546
|
-
mongooseInstance = m;
|
|
6547
|
-
};
|
|
6548
|
-
const getMongoose = () => {
|
|
6549
|
-
var _a;
|
|
6550
|
-
if (getFrontendMode()) {
|
|
6551
|
-
return null;
|
|
6552
|
-
}
|
|
6553
|
-
if (mongooseInstance) {
|
|
6554
|
-
return mongooseInstance;
|
|
6555
|
-
}
|
|
6556
|
-
try {
|
|
6557
|
-
if (typeof require !== "undefined") {
|
|
6558
|
-
const m = require("mongoose");
|
|
6559
|
-
if (m && (m.Schema || ((_a = m.default) == null ? void 0 : _a.Schema))) {
|
|
6560
|
-
return m.default || m;
|
|
6561
|
-
}
|
|
6562
|
-
return m;
|
|
6563
|
-
}
|
|
6564
|
-
return null;
|
|
6565
|
-
} catch {
|
|
6566
|
-
if (globalThis.mongoose) {
|
|
6567
|
-
return globalThis.mongoose;
|
|
6568
|
-
}
|
|
6569
|
-
return null;
|
|
6570
|
-
}
|
|
6571
|
-
};
|
|
6572
|
-
function mapZodChecksToMongoose(checks, mongooseProp) {
|
|
6573
|
-
var _a, _b;
|
|
6574
|
-
if (!checks || !Array.isArray(checks))
|
|
6575
|
-
return;
|
|
6576
|
-
for (const check of checks) {
|
|
6577
|
-
const traitSet = (_a = check._zod) == null ? void 0 : _a.traits;
|
|
6578
|
-
const checkDef = (_b = check._zod) == null ? void 0 : _b.def;
|
|
6579
|
-
if (!traitSet || !checkDef)
|
|
6580
|
-
continue;
|
|
6581
|
-
if (traitSet.has("$ZodCheckMinLength")) {
|
|
6582
|
-
mongooseProp.minlength = checkDef.minimum;
|
|
6583
|
-
}
|
|
6584
|
-
if (traitSet.has("$ZodCheckMaxLength")) {
|
|
6585
|
-
mongooseProp.maxlength = checkDef.maximum;
|
|
6586
|
-
}
|
|
6587
|
-
if (traitSet.has("$ZodCheckLengthEquals")) {
|
|
6588
|
-
mongooseProp.minlength = checkDef.length;
|
|
6589
|
-
mongooseProp.maxlength = checkDef.length;
|
|
6590
|
-
}
|
|
6591
|
-
if (traitSet.has("$ZodCheckGreaterThan")) {
|
|
6592
|
-
mongooseProp.min = checkDef.value;
|
|
6593
|
-
}
|
|
6594
|
-
if (traitSet.has("$ZodCheckLessThan")) {
|
|
6595
|
-
mongooseProp.max = checkDef.value;
|
|
6596
|
-
}
|
|
6597
|
-
if (traitSet.has("$ZodCheckRegex")) {
|
|
6598
|
-
mongooseProp.match = checkDef.pattern;
|
|
6599
|
-
}
|
|
6600
|
-
if (traitSet.has("$ZodUUID")) {
|
|
6601
|
-
const mongoose = globalThis.mongoose || globalThis.__mongoose;
|
|
6602
|
-
if (mongoose == null ? void 0 : mongoose.Schema.Types.UUID) {
|
|
6603
|
-
mongooseProp.type = mongoose.Schema.Types.UUID;
|
|
6604
|
-
}
|
|
6605
|
-
}
|
|
6606
|
-
if (traitSet.has("$ZodISODateTime") || traitSet.has("$ZodISODate")) {
|
|
6607
|
-
mongooseProp.type = Date;
|
|
6608
|
-
}
|
|
6609
|
-
if (traitSet.has("$ZodCheckOverwrite") && typeof checkDef.tx === "function") {
|
|
6610
|
-
const txStr = checkDef.tx.toString();
|
|
6611
|
-
if (txStr.includes(".trim()")) {
|
|
6612
|
-
mongooseProp.trim = true;
|
|
6613
|
-
} else if (txStr.includes(".toLowerCase()")) {
|
|
6614
|
-
mongooseProp.lowercase = true;
|
|
6615
|
-
} else if (txStr.includes(".toUpperCase()")) {
|
|
6616
|
-
mongooseProp.uppercase = true;
|
|
6617
|
-
}
|
|
6618
|
-
}
|
|
6619
|
-
}
|
|
6620
|
-
callHookSync("validation:mappers", { checks, mongooseProp });
|
|
6621
|
-
}
|
|
6622
|
-
function handleObject(unwrapped, mongooseProp, visited, extractMongooseDef2, isField = false) {
|
|
6623
|
-
var _a, _b, _c, _d, _e;
|
|
6624
|
-
callHookSync("schema:object:before", { schema: unwrapped, mongooseProp, visited });
|
|
6625
|
-
const { shape } = unwrapped;
|
|
6626
|
-
const objDef = {};
|
|
6627
|
-
const placeholder = mongooseProp.type ? mongooseProp : objDef;
|
|
6628
|
-
visited.set(unwrapped, placeholder);
|
|
6629
|
-
for (const key in shape) {
|
|
6630
|
-
if (!Object.prototype.hasOwnProperty.call(shape, key))
|
|
6631
|
-
continue;
|
|
6632
|
-
if (key === "_id") {
|
|
6633
|
-
const idMeta = mongooseRegistry.get(shape[key]) || {};
|
|
6634
|
-
const unwrappedId = unwrapZodSchema(shape[key]).schema;
|
|
6635
|
-
const unwrappedIdMeta = mongooseRegistry.get(unwrappedId) || {};
|
|
6636
|
-
if (idMeta.includeId !== true && unwrappedIdMeta.includeId !== true && mongooseProp.includeId !== true) {
|
|
6637
|
-
continue;
|
|
6638
|
-
}
|
|
6639
|
-
}
|
|
6640
|
-
const def = extractMongooseDef2(shape[key], visited);
|
|
6641
|
-
if (def && typeof def === "object" && def.__isDiscriminatorUnion) {
|
|
6642
|
-
const mongoose = getMongoose();
|
|
6643
|
-
if (mongoose) {
|
|
6644
|
-
const baseSchema = new mongoose.Schema(def.baseDef, {
|
|
6645
|
-
discriminatorKey: def.discriminatorKey,
|
|
6646
|
-
_id: false
|
|
6647
|
-
});
|
|
6648
|
-
const discriminators = {};
|
|
6649
|
-
for (const [dKey, dDef] of Object.entries(def.discriminators)) {
|
|
6650
|
-
discriminators[dKey] = new mongoose.Schema(dDef, { _id: false });
|
|
6651
|
-
}
|
|
6652
|
-
objDef[key] = {
|
|
6653
|
-
type: baseSchema,
|
|
6654
|
-
discriminators
|
|
6655
|
-
};
|
|
6656
|
-
} else {
|
|
6657
|
-
objDef[key] = def;
|
|
6658
|
-
}
|
|
6659
|
-
} else if (typeof def === "object" && def !== null && !Array.isArray(def)) {
|
|
6660
|
-
const { includeId, ...cleanDef } = def;
|
|
6661
|
-
objDef[key] = cleanDef;
|
|
6662
|
-
} else {
|
|
6663
|
-
objDef[key] = def;
|
|
6664
|
-
}
|
|
6665
|
-
callHookSync("schema:object:field", { key, schema: shape[key], objDef, visited });
|
|
6666
|
-
}
|
|
6667
|
-
let result;
|
|
6668
|
-
const shouldBeSubSchema = isField && mongooseProp.schema !== false;
|
|
6669
|
-
if (isField && mongooseProp.schema === false && !mongooseProp.type && objectStrictness(unwrapped) !== true) {
|
|
6670
|
-
throw new Error("A strict, loose, or catchall Zod object needs a Mongoose subschema. Remove {schema: false} or provide a Mongoose type override.");
|
|
6671
|
-
}
|
|
6672
|
-
if (shouldBeSubSchema && !mongooseProp.type) {
|
|
6673
|
-
const mongoose = getMongoose();
|
|
6674
|
-
if (mongoose) {
|
|
6675
|
-
const options = typeof mongooseProp.schema === "object" ? mongooseProp.schema : {};
|
|
6676
|
-
const { plugins, ...schemaOptions } = options;
|
|
6677
|
-
const strict = (_b = (_a = schemaOptions.strict) != null ? _a : mongooseProp.strict) != null ? _b : objectStrictness(unwrapped);
|
|
6678
|
-
const minimize = (_d = (_c = schemaOptions.minimize) != null ? _c : mongooseProp.minimize) != null ? _d : objectStrictness(unwrapped) === false ? false : void 0;
|
|
6679
|
-
const subSchema = new mongoose.Schema(objDef, {
|
|
6680
|
-
...schemaOptions,
|
|
6681
|
-
strict,
|
|
6682
|
-
...minimize === void 0 ? {} : { minimize }
|
|
6683
|
-
});
|
|
6684
|
-
if (plugins && Array.isArray(plugins)) {
|
|
6685
|
-
for (const plugin of plugins) {
|
|
6686
|
-
subSchema.plugin(plugin);
|
|
6687
|
-
}
|
|
6688
|
-
}
|
|
6689
|
-
mongooseProp.type = subSchema;
|
|
6690
|
-
}
|
|
6691
|
-
}
|
|
6692
|
-
if (mongooseProp.type) {
|
|
6693
|
-
const mongoose = getMongoose();
|
|
6694
|
-
const isSchema = mongoose && (mongooseProp.type instanceof mongoose.Schema || ((_e = mongooseProp.type.constructor) == null ? void 0 : _e.name) === "Schema");
|
|
6695
|
-
if (!isSchema) {
|
|
6696
|
-
Object.assign(mongooseProp, objDef);
|
|
6697
|
-
}
|
|
6698
|
-
result = mongooseProp;
|
|
6699
|
-
} else {
|
|
6700
|
-
Object.assign(mongooseProp, objDef);
|
|
6701
|
-
const topLevelOptions = /* @__PURE__ */ new Set([
|
|
6702
|
-
"collection",
|
|
6703
|
-
"versionKey",
|
|
6704
|
-
"timestamps",
|
|
6705
|
-
"discriminatorKey",
|
|
6706
|
-
"strict",
|
|
6707
|
-
"id",
|
|
6708
|
-
"_id",
|
|
6709
|
-
"minimize",
|
|
6710
|
-
"validateBeforeSave",
|
|
6711
|
-
"schema"
|
|
6712
|
-
]);
|
|
6713
|
-
const hasFieldMetadata = Object.keys(mongooseProp).some((k) => {
|
|
6714
|
-
if (Object.prototype.hasOwnProperty.call(objDef, k))
|
|
6715
|
-
return false;
|
|
6716
|
-
if (topLevelOptions.has(k))
|
|
6717
|
-
return false;
|
|
6718
|
-
if (k === "required" && mongooseProp[k] === false)
|
|
6719
|
-
return false;
|
|
6720
|
-
return true;
|
|
6721
|
-
});
|
|
6722
|
-
result = hasFieldMetadata ? mongooseProp : objDef;
|
|
6723
|
-
}
|
|
6724
|
-
callHookSync("schema:object:after", { schema: unwrapped, mongooseProp, objDef, result });
|
|
6725
|
-
return result;
|
|
6726
|
-
}
|
|
6727
|
-
function handleArray(unwrapped, mongooseProp, visited, extractMongooseDef2) {
|
|
6728
|
-
var _a;
|
|
6729
|
-
callHookSync("schema:array:before", { schema: unwrapped, mongooseProp, visited });
|
|
6730
|
-
const element = unwrapped.element || unwrapped._def.valueType || unwrapped._def.rest || ((_a = unwrapped._def.items) == null ? void 0 : _a[0]);
|
|
6731
|
-
const mongoose = getMongoose();
|
|
6732
|
-
const innerDef = element ? extractMongooseDef2(element, visited) : (mongoose == null ? void 0 : mongoose.Schema.Types.Mixed) || "Mixed";
|
|
6733
|
-
if (!mongooseProp.type) {
|
|
6734
|
-
if (innerDef && typeof innerDef === "object" && innerDef.__isDiscriminatorUnion && mongoose) {
|
|
6735
|
-
const discriminators = {};
|
|
6736
|
-
for (const [dKey, dDef] of Object.entries(innerDef.discriminators)) {
|
|
6737
|
-
discriminators[dKey] = new mongoose.Schema(dDef, { _id: false });
|
|
6738
|
-
}
|
|
6739
|
-
mongooseProp.type = [
|
|
6740
|
-
new mongoose.Schema({}, {
|
|
6741
|
-
discriminatorKey: innerDef.discriminatorKey,
|
|
6742
|
-
_id: false
|
|
6743
|
-
})
|
|
6744
|
-
];
|
|
6745
|
-
mongooseProp.discriminators = discriminators;
|
|
6746
|
-
} else {
|
|
6747
|
-
const innerType = innerDef.type || innerDef;
|
|
6748
|
-
mongooseProp.type = [innerType];
|
|
6749
|
-
if (typeof innerDef === "object") {
|
|
6750
|
-
const { type: _extractedType, ...innerMeta } = innerDef;
|
|
6751
|
-
Object.assign(mongooseProp, innerMeta);
|
|
6752
|
-
mongooseProp.type = [innerType];
|
|
6753
|
-
}
|
|
6754
|
-
}
|
|
6755
|
-
}
|
|
6756
|
-
callHookSync("schema:array:after", { schema: unwrapped, mongooseProp, innerDef });
|
|
6757
|
-
}
|
|
6758
|
-
function handleRecord(unwrapped, mongooseProp, visited, extractMongooseDef2) {
|
|
6759
|
-
var _a, _b;
|
|
6760
|
-
callHookSync("schema:record:before", { schema: unwrapped, mongooseProp, visited });
|
|
6761
|
-
const type = (_a = unwrapped._def) == null ? void 0 : _a.type;
|
|
6762
|
-
const isMap = type === "map";
|
|
6763
|
-
const valueType = unwrapped.valueType || unwrapped.valueSchema || unwrapped._def.valueType || unwrapped._def.valueSchema || unwrapped._def.innerType;
|
|
6764
|
-
let innerDef;
|
|
6765
|
-
if (!mongooseProp.type || mongooseProp.type === Map || mongooseProp.type === Object) {
|
|
6766
|
-
mongooseProp.type = isMap ? Map : Object;
|
|
6767
|
-
const finalValueType = valueType || unwrapped.valueSchema || ((_b = unwrapped._def) == null ? void 0 : _b.valueSchema);
|
|
6768
|
-
if (finalValueType) {
|
|
6769
|
-
innerDef = extractMongooseDef2(finalValueType, visited);
|
|
6770
|
-
mongooseProp.of = innerDef.type || innerDef;
|
|
6771
|
-
}
|
|
6772
|
-
}
|
|
6773
|
-
callHookSync("schema:record:after", { schema: unwrapped, mongooseProp, innerDef });
|
|
6774
|
-
}
|
|
6775
|
-
function areDefinitionsEqual(left, right, seen = /* @__PURE__ */ new WeakMap()) {
|
|
6776
|
-
if (left === right)
|
|
6777
|
-
return true;
|
|
6778
|
-
if (left === null || right === null || typeof left !== "object" || typeof right !== "object") {
|
|
6779
|
-
return false;
|
|
6780
|
-
}
|
|
6781
|
-
const mongoose = getMongoose();
|
|
6782
|
-
const leftIsSchema = mongoose && left instanceof mongoose.Schema;
|
|
6783
|
-
const rightIsSchema = mongoose && right instanceof mongoose.Schema;
|
|
6784
|
-
if (leftIsSchema || rightIsSchema) {
|
|
6785
|
-
return Boolean(leftIsSchema && rightIsSchema && areDefinitionsEqual(left.obj, right.obj, seen));
|
|
6786
|
-
}
|
|
6787
|
-
let seenRight = seen.get(left);
|
|
6788
|
-
if (seenRight == null ? void 0 : seenRight.has(right))
|
|
6789
|
-
return true;
|
|
6790
|
-
if (!seenRight) {
|
|
6791
|
-
seenRight = /* @__PURE__ */ new WeakSet();
|
|
6792
|
-
seen.set(left, seenRight);
|
|
6793
|
-
}
|
|
6794
|
-
seenRight.add(right);
|
|
6795
|
-
if (Array.isArray(left) || Array.isArray(right)) {
|
|
6796
|
-
return Array.isArray(left) && Array.isArray(right) && left.length === right.length && left.every((value, index) => areDefinitionsEqual(value, right[index], seen));
|
|
6797
|
-
}
|
|
6798
|
-
const leftKeys = Object.keys(left);
|
|
6799
|
-
const rightKeys = Object.keys(right);
|
|
6800
|
-
return leftKeys.length === rightKeys.length && leftKeys.every((key) => Object.prototype.hasOwnProperty.call(right, key) && areDefinitionsEqual(left[key], right[key], seen));
|
|
6801
|
-
}
|
|
6802
|
-
function extractMongooseDef(schema, visited = /* @__PURE__ */ new Map(), isField = false, noWrap = false) {
|
|
6803
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
6804
|
-
if (visited.size === 0) {
|
|
6805
|
-
callHookSync("converter:before", { schema, visited });
|
|
6806
|
-
}
|
|
6807
|
-
callHookSync("converter:start", { schema, visited });
|
|
6808
|
-
const { schema: unwrapped, features } = unwrapZodSchema(schema);
|
|
6809
|
-
const meta = mongooseRegistry.get(schema) || {};
|
|
6810
|
-
const mongooseProp = getMongooseMeta(schema);
|
|
6811
|
-
callHookSync("converter:unwrapped", {
|
|
6812
|
-
schema,
|
|
6813
|
-
unwrapped,
|
|
6814
|
-
features,
|
|
6815
|
-
meta: mongooseProp,
|
|
6816
|
-
mongooseProp
|
|
6817
|
-
});
|
|
6818
|
-
if (features.isOptional === true && mongooseProp.type && mongooseProp.required !== true) {
|
|
6819
|
-
mongooseProp.required = false;
|
|
6820
|
-
}
|
|
6821
|
-
if (visited.has(schema)) {
|
|
6822
|
-
const existing = visited.get(schema);
|
|
6823
|
-
if (existing === mongooseProp) {
|
|
6824
|
-
return existing;
|
|
6825
|
-
}
|
|
6826
|
-
if (Object.keys(meta).length > 0) {
|
|
6827
|
-
Object.assign(existing, mongooseProp);
|
|
6828
|
-
}
|
|
6829
|
-
return existing;
|
|
6830
|
-
}
|
|
6831
|
-
visited.set(schema, mongooseProp);
|
|
6832
|
-
if (features.default !== void 0) {
|
|
6833
|
-
mongooseProp.default = features.default;
|
|
6834
|
-
}
|
|
6835
|
-
if (features.required === false) {
|
|
6836
|
-
mongooseProp.required = false;
|
|
6837
|
-
}
|
|
6838
|
-
if (features.isNullable === true && mongooseProp.required === void 0) {
|
|
6839
|
-
mongooseProp.required = false;
|
|
6840
|
-
}
|
|
6841
|
-
if (features.isNonOptional === true && features.isNullable !== true && mongooseProp.required !== false) {
|
|
6842
|
-
mongooseProp.required = true;
|
|
6843
|
-
}
|
|
6844
|
-
if (features.readOnly === true) {
|
|
6845
|
-
mongooseProp.readOnly = true;
|
|
6846
|
-
}
|
|
6847
|
-
if (isField && features.isExactOptional === true) {
|
|
6848
|
-
const previousSetter = mongooseProp.set;
|
|
6849
|
-
mongooseProp.set = function exactOptionalSetter(value) {
|
|
6850
|
-
if (value === void 0) {
|
|
6851
|
-
throw new TypeError("An exactOptional field cannot be set to undefined");
|
|
6852
|
-
}
|
|
6853
|
-
return typeof previousSetter === "function" ? previousSetter.call(this, value) : value;
|
|
6854
|
-
};
|
|
6855
|
-
}
|
|
6856
|
-
mapZodChecksToMongoose(features.checks, mongooseProp);
|
|
6857
|
-
const def = unwrapped._def;
|
|
6858
|
-
if (!def) {
|
|
6859
|
-
callHookSync("converter:after", {
|
|
6860
|
-
schema,
|
|
6861
|
-
mongooseProp
|
|
6862
|
-
});
|
|
6863
|
-
return mongooseProp;
|
|
6864
|
-
}
|
|
6865
|
-
const { type } = def;
|
|
6866
|
-
callHookSync("converter:node", {
|
|
6867
|
-
schema: unwrapped,
|
|
6868
|
-
mongooseProp,
|
|
6869
|
-
type
|
|
6870
|
-
});
|
|
6871
|
-
if (type === "object") {
|
|
6872
|
-
const wrapperFn = (s, v) => extractMongooseDef(s, v, true);
|
|
6873
|
-
const previousUnwrapped = schema === unwrapped ? void 0 : visited.get(unwrapped);
|
|
6874
|
-
const result = handleObject(unwrapped, mongooseProp, visited, wrapperFn, isField && !noWrap);
|
|
6875
|
-
visited.set(schema, result);
|
|
6876
|
-
if (schema !== unwrapped) {
|
|
6877
|
-
if (previousUnwrapped === void 0)
|
|
6878
|
-
visited.delete(unwrapped);
|
|
6879
|
-
else
|
|
6880
|
-
visited.set(unwrapped, previousUnwrapped);
|
|
6881
|
-
}
|
|
6882
|
-
callHookSync("converter:after", {
|
|
6883
|
-
schema,
|
|
6884
|
-
mongooseProp: result
|
|
6885
|
-
});
|
|
6886
|
-
if (typeof result === "object" && result !== null && !Array.isArray(result)) {
|
|
6887
|
-
delete result.includeId;
|
|
6888
|
-
}
|
|
6889
|
-
return result;
|
|
6890
|
-
}
|
|
6891
|
-
if (type === "array" || type === "set" || type === "tuple") {
|
|
6892
|
-
handleArray(unwrapped, mongooseProp, visited, (s, v) => extractMongooseDef(s, v, true));
|
|
6893
|
-
}
|
|
6894
|
-
if (type === "record" || type === "map") {
|
|
6895
|
-
handleRecord(unwrapped, mongooseProp, visited, (s, v) => extractMongooseDef(s, v, true));
|
|
6896
|
-
}
|
|
6897
|
-
if (type === "intersection") {
|
|
6898
|
-
const left = extractMongooseDef(unwrapped._def.left, visited, isField, true);
|
|
6899
|
-
const right = extractMongooseDef(unwrapped._def.right, visited, isField, true);
|
|
6900
|
-
if (typeof left === "object" && typeof right === "object") {
|
|
6901
|
-
Object.assign(mongooseProp, left, right);
|
|
6902
|
-
if (isField && !noWrap && mongooseProp.schema !== false && !mongooseProp.type) {
|
|
6903
|
-
const mongoose = getMongoose();
|
|
6904
|
-
if (mongoose) {
|
|
6905
|
-
const options = typeof mongooseProp.schema === "object" ? mongooseProp.schema : {};
|
|
6906
|
-
const { plugins, ...schemaOptions } = options;
|
|
6907
|
-
const definition = { ...mongooseProp };
|
|
6908
|
-
delete definition.schema;
|
|
6909
|
-
const subSchema = new mongoose.Schema(definition, schemaOptions);
|
|
6910
|
-
if (plugins && Array.isArray(plugins)) {
|
|
6911
|
-
for (const plugin of plugins) {
|
|
6912
|
-
subSchema.plugin(plugin);
|
|
6913
|
-
}
|
|
6914
|
-
}
|
|
6915
|
-
mongooseProp.type = subSchema;
|
|
6916
|
-
for (const key of Object.keys(mongooseProp)) {
|
|
6917
|
-
if (key !== "type")
|
|
6918
|
-
delete mongooseProp[key];
|
|
6919
|
-
}
|
|
6920
|
-
}
|
|
6921
|
-
}
|
|
6922
|
-
} else if (!mongooseProp.type) {
|
|
6923
|
-
mongooseProp.type = ((_a = getMongoose()) == null ? void 0 : _a.Schema.Types.Mixed) || "Mixed";
|
|
6924
|
-
}
|
|
6925
|
-
}
|
|
6926
|
-
if ((type === "union" || type === "discriminatedunion" || type === "discriminated_union" || type === "xor") && !mongooseProp.type) {
|
|
6927
|
-
const mongoose = getMongoose();
|
|
6928
|
-
const options = unwrapped.options || unwrapped._def.options;
|
|
6929
|
-
const discriminatorKey = unwrapped._def.discriminator;
|
|
6930
|
-
const unionCtx = {
|
|
6931
|
-
isSimpleUnion: false,
|
|
6932
|
-
isObjectUnion: false,
|
|
6933
|
-
isXor: type === "xor" || (((_b = unwrapped._def) == null ? void 0 : _b.inclusive) === false || ((_c = schema._def) == null ? void 0 : _c.inclusive) === false) && !discriminatorKey && !((_d = schema._def) == null ? void 0 : _d.discriminator)
|
|
6934
|
-
};
|
|
6935
|
-
if (Array.isArray(options) && options.length > 0) {
|
|
6936
|
-
unionCtx.isSimpleUnion = options.every((opt) => {
|
|
6937
|
-
const { type: type2 } = unwrapZodSchema(opt).schema._def;
|
|
6938
|
-
return ["string", "number", "boolean", "date", "bigint", "literal"].includes(type2);
|
|
6939
|
-
});
|
|
6940
|
-
unionCtx.isObjectUnion = options.every((opt) => {
|
|
6941
|
-
const { type: type2 } = unwrapZodSchema(opt).schema._def;
|
|
6942
|
-
return type2 === "object";
|
|
6943
|
-
});
|
|
6944
|
-
}
|
|
6945
|
-
callHookSync("schema:union:before", { schema: unwrapped, mongooseProp, ctx: unionCtx });
|
|
6946
|
-
if (discriminatorKey && unionCtx.isObjectUnion) {
|
|
6947
|
-
const discriminators = {};
|
|
6948
|
-
const allOptionDefs = [];
|
|
6949
|
-
for (const option of options) {
|
|
6950
|
-
const { schema: unwrappedOpt } = unwrapZodSchema(option);
|
|
6951
|
-
const { shape } = unwrappedOpt._def;
|
|
6952
|
-
const discriminatorProp = shape[discriminatorKey];
|
|
6953
|
-
const { schema: unwrappedDisc } = unwrapZodSchema(discriminatorProp);
|
|
6954
|
-
const discriminatorValue = (_f = unwrappedDisc._def.value) != null ? _f : (_e = unwrappedDisc._def.values) == null ? void 0 : _e[0];
|
|
6955
|
-
const optionDef = extractMongooseDef(option, /* @__PURE__ */ new Map(), true, true);
|
|
6956
|
-
if (optionDef && typeof optionDef === "object" && !Array.isArray(optionDef)) {
|
|
6957
|
-
const cleanOptionDef = { ...optionDef };
|
|
6958
|
-
delete cleanOptionDef[discriminatorKey];
|
|
6959
|
-
discriminators[discriminatorValue] = cleanOptionDef;
|
|
6960
|
-
allOptionDefs.push(cleanOptionDef);
|
|
6961
|
-
}
|
|
6962
|
-
}
|
|
6963
|
-
const baseDef = {};
|
|
6964
|
-
if (allOptionDefs.length > 0) {
|
|
6965
|
-
const firstOption = allOptionDefs[0];
|
|
6966
|
-
for (const key of Object.keys(firstOption)) {
|
|
6967
|
-
const isCommon = allOptionDefs.every((def2) => {
|
|
6968
|
-
if (!(key in def2))
|
|
6969
|
-
return false;
|
|
6970
|
-
return areDefinitionsEqual(def2[key], firstOption[key]);
|
|
6971
|
-
});
|
|
6972
|
-
if (isCommon) {
|
|
6973
|
-
baseDef[key] = firstOption[key];
|
|
6974
|
-
for (const def2 of allOptionDefs) {
|
|
6975
|
-
delete def2[key];
|
|
6976
|
-
}
|
|
6977
|
-
}
|
|
6978
|
-
}
|
|
6979
|
-
}
|
|
6980
|
-
const result = {
|
|
6981
|
-
__isDiscriminatorUnion: true,
|
|
6982
|
-
discriminatorKey,
|
|
6983
|
-
discriminators,
|
|
6984
|
-
baseDef,
|
|
6985
|
-
validate: {
|
|
6986
|
-
validator(_v) {
|
|
6987
|
-
var _a2, _b2;
|
|
6988
|
-
try {
|
|
6989
|
-
const mongoose2 = getMongoose();
|
|
6990
|
-
const doc = mongoose2 && this instanceof mongoose2.Document ? this.toObject() : this || {};
|
|
6991
|
-
schema.parse(doc);
|
|
6992
|
-
return true;
|
|
6993
|
-
} catch (err) {
|
|
6994
|
-
const message = ((_b2 = (_a2 = err == null ? void 0 : err.errors) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.message) || err.message;
|
|
6995
|
-
if (this && typeof this.invalidate === "function") {
|
|
6996
|
-
this.invalidate(discriminatorKey, `Zod validation failed: ${message}`);
|
|
6997
|
-
}
|
|
6998
|
-
return false;
|
|
6999
|
-
}
|
|
7000
|
-
},
|
|
7001
|
-
message: (props) => `Validation failed for ${props.path}`
|
|
7002
|
-
}
|
|
7003
|
-
};
|
|
7004
|
-
if (mongooseProp && typeof mongooseProp === "object" && !Array.isArray(mongooseProp)) {
|
|
7005
|
-
Object.assign(mongooseProp, result);
|
|
7006
|
-
callHookSync("schema:union:after", {
|
|
7007
|
-
schema: unwrapped,
|
|
7008
|
-
mongooseProp,
|
|
7009
|
-
ctx: unionCtx
|
|
7010
|
-
});
|
|
7011
|
-
return mongooseProp;
|
|
7012
|
-
}
|
|
7013
|
-
callHookSync("schema:union:after", {
|
|
7014
|
-
schema: unwrapped,
|
|
7015
|
-
mongooseProp: result,
|
|
7016
|
-
ctx: unionCtx
|
|
7017
|
-
});
|
|
7018
|
-
return result;
|
|
7019
|
-
}
|
|
7020
|
-
if (((_g = getMongoose()) == null ? void 0 : _g.Schema.Types.Union) && unionCtx.isSimpleUnion && options.length > 0 && !unionCtx.isXor) {
|
|
7021
|
-
mongooseProp.type = mongoose.Schema.Types.Union;
|
|
7022
|
-
mongooseProp.of = options.map((opt) => {
|
|
7023
|
-
const def2 = extractMongooseDef(opt, visited, true, true);
|
|
7024
|
-
return def2.type || def2;
|
|
7025
|
-
});
|
|
7026
|
-
} else if (unionCtx.isObjectUnion && options.length > 0) {
|
|
7027
|
-
const mergedDef = {};
|
|
7028
|
-
for (const opt of options) {
|
|
7029
|
-
const def2 = extractMongooseDef(opt, /* @__PURE__ */ new Map(), true, true);
|
|
7030
|
-
if (typeof def2 === "object" && def2 !== null) {
|
|
7031
|
-
for (const [key, prop] of Object.entries(def2)) {
|
|
7032
|
-
if (typeof prop === "object" && prop !== null && !Array.isArray(prop)) {
|
|
7033
|
-
prop.required = false;
|
|
7034
|
-
}
|
|
7035
|
-
if (mergedDef[key] && typeof mergedDef[key] === "object" && typeof prop === "object" && !Array.isArray(mergedDef[key]) && !Array.isArray(prop)) {
|
|
7036
|
-
const existingType = mergedDef[key].type || mergedDef[key].instance || (typeof mergedDef[key] === "function" ? mergedDef[key] : null);
|
|
7037
|
-
const newType = prop.type || prop.instance || (typeof prop === "function" ? prop : null);
|
|
7038
|
-
const isMixed = (t) => {
|
|
7039
|
-
var _a2, _b2;
|
|
7040
|
-
return !t || t === "Mixed" || t === "SchemaMixed" || (t == null ? void 0 : t.name) === "Mixed" || (t == null ? void 0 : t.instance) === "Mixed" || (t == null ? void 0 : t.name) === "SchemaMixed" || (t == null ? void 0 : t.instance) === "SchemaMixed" || ((_a2 = getMongoose()) == null ? void 0 : _a2.Schema.Types.Mixed) && (t === ((_b2 = getMongoose()) == null ? void 0 : _b2.Schema.Types.Mixed) || (t == null ? void 0 : t.instance) === "Mixed" || (t == null ? void 0 : t.instance) === "SchemaMixed");
|
|
7041
|
-
};
|
|
7042
|
-
if (isMixed(existingType) && !isMixed(newType)) {
|
|
7043
|
-
mergedDef[key] = prop;
|
|
7044
|
-
} else if (!isMixed(existingType) && isMixed(newType)) ;
|
|
7045
|
-
else {
|
|
7046
|
-
Object.assign(mergedDef[key], prop);
|
|
7047
|
-
}
|
|
7048
|
-
} else if (!mergedDef[key] || typeof mergedDef[key] !== "object" || Array.isArray(mergedDef[key])) {
|
|
7049
|
-
mergedDef[key] = prop;
|
|
7050
|
-
}
|
|
7051
|
-
}
|
|
7052
|
-
}
|
|
7053
|
-
}
|
|
7054
|
-
if (isField && unionCtx.isXor) {
|
|
7055
|
-
mongooseProp.type = (mongoose == null ? void 0 : mongoose.Schema.Types.Mixed) || "Mixed";
|
|
7056
|
-
mongooseProp.validate = {
|
|
7057
|
-
validator(v) {
|
|
7058
|
-
try {
|
|
7059
|
-
schema.parse(v);
|
|
7060
|
-
return true;
|
|
7061
|
-
} catch {
|
|
7062
|
-
return false;
|
|
7063
|
-
}
|
|
7064
|
-
},
|
|
7065
|
-
message: "XOR validation failed"
|
|
7066
|
-
};
|
|
7067
|
-
} else {
|
|
7068
|
-
if (!mongooseProp.type || mongooseProp.type === (((_h = getMongoose()) == null ? void 0 : _h.Schema.Types.Mixed) || "Mixed")) {
|
|
7069
|
-
delete mongooseProp.type;
|
|
7070
|
-
}
|
|
7071
|
-
Object.assign(mongooseProp, mergedDef);
|
|
7072
|
-
if (isField && Object.prototype.hasOwnProperty.call(mongooseProp, "type") && Object.keys(mongooseProp).length > 1) {
|
|
7073
|
-
const mongooseInstance3 = getMongoose();
|
|
7074
|
-
if (mongooseInstance3) {
|
|
7075
|
-
mongooseProp.type = new mongooseInstance3.Schema(mongooseProp, { _id: false });
|
|
7076
|
-
for (const key of Object.keys(mongooseProp)) {
|
|
7077
|
-
if (key !== "type")
|
|
7078
|
-
delete mongooseProp[key];
|
|
7079
|
-
}
|
|
7080
|
-
}
|
|
7081
|
-
}
|
|
7082
|
-
}
|
|
7083
|
-
} else {
|
|
7084
|
-
mongooseProp.type = (mongoose == null ? void 0 : mongoose.Schema.Types.Mixed) || "Mixed";
|
|
7085
|
-
if (isField && (type === "xor" || type === "discriminated_union" || type === "discriminatedunion" || type === "union") && !mongooseProp.ref && // Skip Zod validation for populated fields
|
|
7086
|
-
!Array.isArray(mongooseProp.type) && // Skip Zod validation for arrays
|
|
7087
|
-
mongooseProp.type !== Map && // Skip Zod validation for maps
|
|
7088
|
-
!mongooseProp.of) {
|
|
7089
|
-
mongooseProp.validate = {
|
|
7090
|
-
validator(v) {
|
|
7091
|
-
try {
|
|
7092
|
-
schema.parse(v);
|
|
7093
|
-
return true;
|
|
7094
|
-
} catch (err) {
|
|
7095
|
-
return false;
|
|
7096
|
-
}
|
|
7097
|
-
},
|
|
7098
|
-
message: (props) => {
|
|
7099
|
-
if (unionCtx.isXor)
|
|
7100
|
-
return "XOR validation failed";
|
|
7101
|
-
try {
|
|
7102
|
-
schema.parse(props.value);
|
|
7103
|
-
} catch (err) {
|
|
7104
|
-
return `Union validation failed: ${err.message}`;
|
|
7105
|
-
}
|
|
7106
|
-
return "Union validation failed";
|
|
7107
|
-
}
|
|
7108
|
-
};
|
|
7109
|
-
}
|
|
7110
|
-
}
|
|
7111
|
-
callHookSync("schema:union:after", {
|
|
7112
|
-
schema: unwrapped,
|
|
7113
|
-
mongooseProp,
|
|
7114
|
-
ctx: unionCtx
|
|
7115
|
-
});
|
|
7116
|
-
}
|
|
7117
|
-
if (type === "literal" && !mongooseProp.type) {
|
|
7118
|
-
mongooseProp.type = ((_i = getMongoose()) == null ? void 0 : _i.Schema.Types.Mixed) || "Mixed";
|
|
7119
|
-
}
|
|
7120
|
-
switch (type) {
|
|
7121
|
-
case "string":
|
|
7122
|
-
case "number":
|
|
7123
|
-
case "boolean":
|
|
7124
|
-
case "date":
|
|
7125
|
-
case "bigint":
|
|
7126
|
-
case "stringbool":
|
|
7127
|
-
case "boolstring":
|
|
7128
|
-
case "booleanstring": {
|
|
7129
|
-
if (!mongooseProp.type) {
|
|
7130
|
-
if (type === "bigint") {
|
|
7131
|
-
mongooseProp.type = typeof BigInt === "undefined" ? Number : BigInt;
|
|
7132
|
-
} else {
|
|
7133
|
-
const typeMap = {
|
|
7134
|
-
string: String,
|
|
7135
|
-
number: Number,
|
|
7136
|
-
boolean: Boolean,
|
|
7137
|
-
date: Date,
|
|
7138
|
-
stringbool: Boolean,
|
|
7139
|
-
boolstring: Boolean,
|
|
7140
|
-
booleanstring: Boolean
|
|
7141
|
-
};
|
|
7142
|
-
mongooseProp.type = typeMap[type];
|
|
7143
|
-
if (mongooseProp.default !== void 0) {
|
|
7144
|
-
const defaultType = typeof mongooseProp.default;
|
|
7145
|
-
if (defaultType === "boolean" && type !== "boolean") {
|
|
7146
|
-
mongooseProp.type = Boolean;
|
|
7147
|
-
} else if (defaultType === "number" && type !== "number") {
|
|
7148
|
-
mongooseProp.type = Number;
|
|
7149
|
-
} else if (defaultType === "string" && type !== "string") {
|
|
7150
|
-
mongooseProp.type = String;
|
|
7151
|
-
} else if (mongooseProp.default instanceof Date && type !== "date") {
|
|
7152
|
-
mongooseProp.type = Date;
|
|
7153
|
-
}
|
|
7154
|
-
}
|
|
7155
|
-
if (mongooseProp.type === String && features.transformations) {
|
|
7156
|
-
for (const tx of features.transformations) {
|
|
7157
|
-
const txStr = ((_j = tx.transform) == null ? void 0 : _j.toString()) || tx.toString();
|
|
7158
|
-
if (txStr.includes("stringbool") || txStr.includes("boolstring") || txStr.includes("booleanstring")) {
|
|
7159
|
-
mongooseProp.type = Boolean;
|
|
7160
|
-
break;
|
|
7161
|
-
}
|
|
7162
|
-
if (txStr.includes('=== "true"') || txStr.includes("=== 'true'")) {
|
|
7163
|
-
mongooseProp.type = Boolean;
|
|
7164
|
-
break;
|
|
7165
|
-
}
|
|
7166
|
-
}
|
|
7167
|
-
}
|
|
7168
|
-
}
|
|
7169
|
-
}
|
|
7170
|
-
if (mongooseProp.required !== false)
|
|
7171
|
-
mongooseProp.required = true;
|
|
7172
|
-
break;
|
|
7173
|
-
}
|
|
7174
|
-
case "enum":
|
|
7175
|
-
case "nativeenum":
|
|
7176
|
-
case "native_enum": {
|
|
7177
|
-
if (!mongooseProp.type)
|
|
7178
|
-
mongooseProp.type = String;
|
|
7179
|
-
mongooseProp.enum = type === "enum" ? unwrapped.options || def.values : Object.values(unwrapped.enum || def.values);
|
|
7180
|
-
if (mongooseProp.required !== false)
|
|
7181
|
-
mongooseProp.required = true;
|
|
7182
|
-
break;
|
|
7183
|
-
}
|
|
7184
|
-
}
|
|
7185
|
-
const mongooseInstance2 = getMongoose();
|
|
7186
|
-
if (type === "any" || type === "unknown" || type === "custom") {
|
|
7187
|
-
const cls = def.cls || unwrapped.cls;
|
|
7188
|
-
if (cls === Buffer || typeof Uint8Array !== "undefined" && cls === Uint8Array) {
|
|
7189
|
-
if (!mongooseProp.type)
|
|
7190
|
-
mongooseProp.type = (mongooseInstance2 == null ? void 0 : mongooseInstance2.Schema.Types.Buffer) || "Buffer";
|
|
7191
|
-
} else if (((cls == null ? void 0 : cls.name) === "ObjectId" || mongooseInstance2 && cls === mongooseInstance2.Types.ObjectId) && !mongooseProp.type) {
|
|
7192
|
-
mongooseProp.type = (mongooseInstance2 == null ? void 0 : mongooseInstance2.Schema.Types.ObjectId) || "ObjectId";
|
|
7193
|
-
}
|
|
7194
|
-
}
|
|
7195
|
-
if (type === "lazy") {
|
|
7196
|
-
const inner = def.getter();
|
|
7197
|
-
const result = extractMongooseDef(inner, visited, isField);
|
|
7198
|
-
if (Object.keys(meta).length > 0 && result !== mongooseProp) {
|
|
7199
|
-
if (typeof result === "object" && !Array.isArray(result)) {
|
|
7200
|
-
Object.assign(mongooseProp, result);
|
|
7201
|
-
} else {
|
|
7202
|
-
mongooseProp.type = result.type || result;
|
|
7203
|
-
}
|
|
7204
|
-
return mongooseProp;
|
|
7205
|
-
}
|
|
7206
|
-
return result;
|
|
7207
|
-
}
|
|
7208
|
-
if (!mongooseProp.type && type !== "object") {
|
|
7209
|
-
mongooseProp.type = ((_k = getMongoose()) == null ? void 0 : _k.Schema.Types.Mixed) || "Mixed";
|
|
7210
|
-
}
|
|
7211
|
-
callHookSync("converter:after", {
|
|
7212
|
-
schema,
|
|
7213
|
-
mongooseProp
|
|
7214
|
-
});
|
|
7215
|
-
if (typeof mongooseProp === "object" && mongooseProp !== null && !Array.isArray(mongooseProp)) {
|
|
7216
|
-
delete mongooseProp.includeId;
|
|
7217
|
-
}
|
|
7218
|
-
return mongooseProp;
|
|
7219
|
-
}
|
|
7220
|
-
function modelNameFromCollection(collection) {
|
|
7221
|
-
const singular = collection.replace(/ies$/i, "y").replace(/(ses|xes|zes|ches|shes)$/i, (suffix) => suffix.slice(0, -2)).replace(/s$/i, "");
|
|
7222
|
-
return singular.slice(0, 1).toUpperCase() + singular.slice(1);
|
|
7223
|
-
}
|
|
7224
|
-
function toMongooseSchema(schema, options) {
|
|
7225
|
-
var _a, _b;
|
|
7226
|
-
const { schema: unwrapped } = unwrapZodSchema(schema);
|
|
7227
|
-
const meta = mongooseRegistry.get(schema) || mongooseRegistry.get(unwrapped) || ((_a = schema.meta) == null ? void 0 : _a.call(schema)) || ((_b = unwrapped.meta) == null ? void 0 : _b.call(unwrapped)) || {};
|
|
7228
|
-
const { plugins, modelName, ...schemaOptions } = options || {};
|
|
7229
|
-
const mergedOptions = {
|
|
7230
|
-
...unwrapped instanceof z.ZodObject ? { strict: objectStrictness(unwrapped) } : {},
|
|
7231
|
-
...unwrapped instanceof z.ZodObject && objectStrictness(unwrapped) === false ? { minimize: false } : {},
|
|
7232
|
-
// Also merge other schema options from meta if they exist
|
|
7233
|
-
...meta.collection ? { collection: meta.collection } : {},
|
|
7234
|
-
// eslint-disable-next-line unicorn/no-negated-condition
|
|
7235
|
-
...meta.strict !== void 0 ? { strict: meta.strict } : {},
|
|
7236
|
-
// eslint-disable-next-line unicorn/no-negated-condition
|
|
7237
|
-
...meta.minimize !== void 0 ? { minimize: meta.minimize } : {},
|
|
7238
|
-
// eslint-disable-next-line unicorn/no-negated-condition
|
|
7239
|
-
...meta.validateBeforeSave !== void 0 ? { validateBeforeSave: meta.validateBeforeSave } : {},
|
|
7240
|
-
// eslint-disable-next-line unicorn/no-negated-condition
|
|
7241
|
-
...meta.versionKey !== void 0 ? { versionKey: meta.versionKey } : {},
|
|
7242
|
-
...meta.id === void 0 ? {} : { id: meta.id },
|
|
7243
|
-
...meta._id === void 0 ? {} : { _id: meta._id },
|
|
7244
|
-
...meta.timestamps ? { timestamps: meta.timestamps } : {},
|
|
7245
|
-
...meta.discriminatorKey ? { discriminatorKey: meta.discriminatorKey } : {},
|
|
7246
|
-
...schemaOptions
|
|
7247
|
-
};
|
|
7248
|
-
let definition = extractMongooseDef(schema, /* @__PURE__ */ new Map(), false);
|
|
7249
|
-
const mongoose = getMongoose();
|
|
7250
|
-
if (!mongoose) {
|
|
7251
|
-
throw new Error("Mongoose must be installed to use toMongooseSchema. If you are in an ESM environment, ensure mongoose is loaded.");
|
|
7252
|
-
}
|
|
7253
|
-
let mongooseSchema;
|
|
7254
|
-
if (definition && typeof definition === "object" && definition.__isDiscriminatorUnion) {
|
|
7255
|
-
const baseModelName = modelName || schemaOptions.collection && modelNameFromCollection(schemaOptions.collection);
|
|
7256
|
-
if (!baseModelName) {
|
|
7257
|
-
throw new Error("toMongooseSchema() found a top-level discriminated union. Provide `modelName` or `collection` so discriminator model names can be made unique, for example `{ modelName: 'Activity' }`.");
|
|
7258
|
-
}
|
|
7259
|
-
const { discriminatorKey, discriminators, baseDef, validate } = definition;
|
|
7260
|
-
mongooseSchema = new mongoose.Schema(baseDef, {
|
|
7261
|
-
...mergedOptions,
|
|
7262
|
-
discriminatorKey
|
|
7263
|
-
});
|
|
7264
|
-
if (validate) {
|
|
7265
|
-
if (!mongooseSchema.path(discriminatorKey)) {
|
|
7266
|
-
mongooseSchema.add({ [discriminatorKey]: { type: String } });
|
|
7267
|
-
}
|
|
7268
|
-
mongooseSchema.path(discriminatorKey).validate(validate);
|
|
7269
|
-
}
|
|
7270
|
-
for (const [key, dDef] of Object.entries(discriminators)) {
|
|
7271
|
-
const discriminatorModelName = `${baseModelName}_${key}`;
|
|
7272
|
-
if (mongooseSchema.discriminators && mongooseSchema.discriminators[discriminatorModelName]) {
|
|
7273
|
-
continue;
|
|
7274
|
-
}
|
|
7275
|
-
mongooseSchema.discriminator(discriminatorModelName, new mongoose.Schema(dDef, { _id: false }), { value: key });
|
|
7276
|
-
}
|
|
7277
|
-
} else {
|
|
7278
|
-
if (typeof definition === "object" && definition !== null) {
|
|
7279
|
-
const { includeId, ...cleanDefinition } = definition;
|
|
7280
|
-
definition = cleanDefinition;
|
|
7281
|
-
for (const value of Object.values(definition)) {
|
|
7282
|
-
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
7283
|
-
delete value.includeId;
|
|
7284
|
-
}
|
|
7285
|
-
}
|
|
7286
|
-
}
|
|
7287
|
-
mongooseSchema = new mongoose.Schema(definition, mergedOptions);
|
|
7288
|
-
}
|
|
7289
|
-
if (mergedOptions.validateBeforeSave !== false) {
|
|
7290
|
-
mongooseSchema.post("validate", function() {
|
|
7291
|
-
var _a2, _b2, _c, _d;
|
|
7292
|
-
try {
|
|
7293
|
-
schema.parse(prepareForZodValidation(schema, this.toObject(), mongooseSchema));
|
|
7294
|
-
} catch (e) {
|
|
7295
|
-
if (e instanceof z.ZodError) {
|
|
7296
|
-
e.message = JSON.stringify({
|
|
7297
|
-
context: {
|
|
7298
|
-
model: ((_a2 = this.constructor) == null ? void 0 : _a2.modelName) || ((_b2 = this.constructor) == null ? void 0 : _b2.name) || "_unknown_",
|
|
7299
|
-
id: ((_c = this._id) == null ? void 0 : _c.toString()) || ((_d = this.id) == null ? void 0 : _d.toString()) || "_unknown_"
|
|
7300
|
-
},
|
|
7301
|
-
errors: e.issues || e.errors || []
|
|
7302
|
-
});
|
|
7303
|
-
}
|
|
7304
|
-
throw e;
|
|
7305
|
-
}
|
|
7306
|
-
});
|
|
7307
|
-
}
|
|
7308
|
-
if (plugins && Array.isArray(plugins)) {
|
|
7309
|
-
for (const plugin of plugins) {
|
|
7310
|
-
mongooseSchema.plugin(plugin);
|
|
7311
|
-
}
|
|
7312
|
-
}
|
|
7313
|
-
callHookSync("schema:created", {
|
|
7314
|
-
schema,
|
|
7315
|
-
mongooseSchema,
|
|
7316
|
-
options: mergedOptions
|
|
7317
|
-
});
|
|
7318
|
-
return mongooseSchema;
|
|
7319
|
-
}
|
|
7320
|
-
function populateZodSchema(schema, keys) {
|
|
7321
|
-
const { shape } = schema;
|
|
7322
|
-
const newShape = { ...shape };
|
|
7323
|
-
const keysToPopulate = keys || Object.keys(shape);
|
|
7324
|
-
const populateField = (field) => {
|
|
7325
|
-
const meta = getMongooseMeta(field);
|
|
7326
|
-
const { schema: unwrapped, features } = unwrapZodSchema(field);
|
|
7327
|
-
let result = field;
|
|
7328
|
-
if (meta == null ? void 0 : meta.refSchema) {
|
|
7329
|
-
result = meta.refSchema;
|
|
7330
|
-
} else if (unwrapped instanceof z.ZodArray) {
|
|
7331
|
-
const populatedInner = populateField(unwrapped.element);
|
|
7332
|
-
if (populatedInner !== unwrapped.element) {
|
|
7333
|
-
result = z.array(populatedInner);
|
|
7334
|
-
}
|
|
7335
|
-
} else if (unwrapped instanceof z.ZodObject) {
|
|
7336
|
-
result = populateZodSchema(unwrapped);
|
|
7337
|
-
}
|
|
7338
|
-
if (result !== field && result !== unwrapped) {
|
|
7339
|
-
if (features.isOptional && !(result instanceof z.ZodOptional))
|
|
7340
|
-
result = result.optional();
|
|
7341
|
-
if (features.isNullable && !(result instanceof z.ZodNullable))
|
|
7342
|
-
result = result.nullable();
|
|
7343
|
-
if (features.default !== void 0 && !(result instanceof z.ZodDefault))
|
|
7344
|
-
result = result.default(features.default);
|
|
7345
|
-
}
|
|
7346
|
-
return result;
|
|
7347
|
-
};
|
|
7348
|
-
for (const key of keysToPopulate) {
|
|
7349
|
-
newShape[key] = populateField(shape[key]);
|
|
7350
|
-
}
|
|
7351
|
-
return z.object(newShape);
|
|
7352
|
-
}
|
|
7353
|
-
const genTimestampsSchema = (createdAtField = "createdAt", updatedAtField = "updatedAt") => {
|
|
7354
|
-
if (createdAtField != null && updatedAtField != null && createdAtField === updatedAtField) {
|
|
7355
|
-
throw new Error("`createdAt` and `updatedAt` fields must be different");
|
|
7356
|
-
}
|
|
7357
|
-
const shape = {};
|
|
7358
|
-
if (createdAtField != null)
|
|
7359
|
-
shape[createdAtField] = z.date().default(() => /* @__PURE__ */ new Date());
|
|
7360
|
-
if (updatedAtField != null)
|
|
7361
|
-
shape[updatedAtField] = z.date().default(() => /* @__PURE__ */ new Date());
|
|
7362
|
-
return shape;
|
|
7363
|
-
};
|
|
7364
|
-
const bufferMongooseGetter = (value) => value != null && value._bsontype === "Binary" ? value.buffer : value;
|
|
7365
|
-
const position = z.tuple([z.number(), z.number()]);
|
|
7366
|
-
const zPoint = (options) => withMongoose(z.object({
|
|
7367
|
-
type: withMongoose(z.literal("Point"), { type: String, enum: ["Point"], required: true }),
|
|
7368
|
-
coordinates: withMongoose(position, { required: true })
|
|
7369
|
-
}), { schema: { _id: false }, required: true, ...options });
|
|
7370
|
-
const zPolygon = (options) => withMongoose(z.object({
|
|
7371
|
-
type: withMongoose(z.literal("Polygon"), { type: String, enum: ["Polygon"], required: true }),
|
|
7372
|
-
coordinates: withMongoose(z.array(z.array(position).refine((ring) => {
|
|
7373
|
-
var _a, _b, _c, _d;
|
|
7374
|
-
return ring.length >= 4 && ((_a = ring[0]) == null ? void 0 : _a[0]) === ((_b = ring.at(-1)) == null ? void 0 : _b[0]) && ((_c = ring[0]) == null ? void 0 : _c[1]) === ((_d = ring.at(-1)) == null ? void 0 : _d[1]);
|
|
7375
|
-
}, "Polygon rings must be closed")).refine((rings) => rings.length > 0, "Polygon must have at least one ring"), { required: true })
|
|
7376
|
-
}), { schema: { _id: false }, required: true, ...options });
|
|
7377
|
-
const preprocessFn = (val) => val === null ? void 0 : val;
|
|
7378
|
-
const zObjectId = (options) => {
|
|
7379
|
-
var _a;
|
|
7380
|
-
const objectIdSchema = z.custom((val) => {
|
|
7381
|
-
const mongooseInstance2 = getMongoose();
|
|
7382
|
-
return mongooseInstance2 && val instanceof mongooseInstance2.Types.ObjectId;
|
|
7383
|
-
});
|
|
7384
|
-
const baseUnion = z.preprocess(preprocessFn, z.union([objectIdSchema, z.string().regex(/^[\dA-Fa-f]{24}$/, "Invalid ObjectId")]));
|
|
7385
|
-
const inputSchema = z.codec(baseUnion, objectIdSchema, {
|
|
7386
|
-
decode: (val) => {
|
|
7387
|
-
const mongooseInstance2 = getMongoose();
|
|
7388
|
-
if (!mongooseInstance2)
|
|
7389
|
-
return val;
|
|
7390
|
-
if (val instanceof mongooseInstance2.Types.ObjectId) {
|
|
7391
|
-
return val;
|
|
7392
|
-
}
|
|
7393
|
-
return new mongooseInstance2.Types.ObjectId(val);
|
|
7394
|
-
},
|
|
7395
|
-
encode: (val) => val.toString()
|
|
7396
|
-
});
|
|
7397
|
-
return withMongoose(inputSchema, {
|
|
7398
|
-
type: ((_a = getMongoose()) == null ? void 0 : _a.Schema.Types.ObjectId) || "ObjectId",
|
|
7399
|
-
...options
|
|
7400
|
-
});
|
|
7401
|
-
};
|
|
7402
|
-
const zBuffer = (options) => {
|
|
7403
|
-
var _a;
|
|
7404
|
-
return withMongoose(z.preprocess((val) => {
|
|
7405
|
-
var _a2;
|
|
7406
|
-
const Binary = (_a2 = getMongoose()) == null ? void 0 : _a2.mongo.Binary;
|
|
7407
|
-
return Binary && val instanceof Binary ? Buffer.from(val.value()) : val;
|
|
7408
|
-
}, z.custom((val) => val instanceof Uint8Array)), { type: ((_a = getMongoose()) == null ? void 0 : _a.Schema.Types.Buffer) || "Buffer", ...options });
|
|
7409
|
-
};
|
|
7410
|
-
const zRef = (ref, schema, options) => {
|
|
7411
|
-
var _a;
|
|
7412
|
-
const objectIdSchema = zObjectId();
|
|
7413
|
-
const base = z.codec(z.union([objectIdSchema, schema]), objectIdSchema, {
|
|
7414
|
-
decode: (val) => typeof val === "object" && val !== null && "_id" in val ? val._id : val,
|
|
7415
|
-
encode: (val) => val
|
|
7416
|
-
});
|
|
7417
|
-
return withMongoose(base, {
|
|
7418
|
-
type: ((_a = getMongoose()) == null ? void 0 : _a.Schema.Types.ObjectId) || "ObjectId",
|
|
7419
|
-
ref,
|
|
7420
|
-
refSchema: schema,
|
|
7421
|
-
...options
|
|
7422
|
-
});
|
|
7423
|
-
};
|
|
7424
|
-
function toStrictModel(name, mongooseSchema) {
|
|
7425
|
-
const m = getMongoose();
|
|
7426
|
-
if (!m) {
|
|
7427
|
-
throw new Error("Mongoose must be installed to use toStrictModel.");
|
|
7428
|
-
}
|
|
7429
|
-
const rawModel = m.model(name, mongooseSchema);
|
|
7430
|
-
return rawModel;
|
|
7431
|
-
}
|
|
7432
|
-
|
|
7433
|
-
const mongooseZod = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
7434
|
-
__proto__: null,
|
|
7435
|
-
bufferMongooseGetter: bufferMongooseGetter,
|
|
7436
|
-
callHookSync: callHookSync,
|
|
7437
|
-
extractMongooseDef: extractMongooseDef,
|
|
7438
|
-
genTimestampsSchema: genTimestampsSchema,
|
|
7439
|
-
getFrontendMode: getFrontendMode,
|
|
7440
|
-
getMongoose: getMongoose,
|
|
7441
|
-
getMongooseMeta: getMongooseMeta,
|
|
7442
|
-
hooks: hooks,
|
|
7443
|
-
mongooseRegistry: mongooseRegistry,
|
|
7444
|
-
objectStrictness: objectStrictness,
|
|
7445
|
-
populateZodSchema: populateZodSchema,
|
|
7446
|
-
setFrontendMode: setFrontendMode,
|
|
7447
|
-
setMongoose: setMongoose,
|
|
7448
|
-
toMongooseSchema: toMongooseSchema,
|
|
7449
|
-
toStrictModel: toStrictModel,
|
|
7450
|
-
unwrapZodSchema: unwrapZodSchema,
|
|
7451
|
-
withMongoose: withMongoose,
|
|
7452
|
-
zBuffer: zBuffer,
|
|
7453
|
-
zObjectId: zObjectId,
|
|
7454
|
-
zPoint: zPoint,
|
|
7455
|
-
zPolygon: zPolygon,
|
|
7456
|
-
zRef: zRef
|
|
7457
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
7458
|
-
|
|
7459
|
-
function checks(schema) {
|
|
7460
|
-
return (schema._def.checks || []).map((check) => {
|
|
7461
|
-
var _a;
|
|
7462
|
-
return ((_a = check._zod) == null ? void 0 : _a.def) || check.def || {};
|
|
7463
|
-
});
|
|
7464
|
-
}
|
|
7465
|
-
function sampleString(schema, key) {
|
|
7466
|
-
var _a;
|
|
7467
|
-
const rules = checks(schema);
|
|
7468
|
-
const format = schema._def.format || ((_a = rules.find((rule) => rule.format)) == null ? void 0 : _a.format);
|
|
7469
|
-
if (format === "email" || /email/i.test(key)) return "alex@example.com";
|
|
7470
|
-
if (format === "uuid") return "123e4567-e89b-42d3-a456-426614174000";
|
|
7471
|
-
if (format === "url") return "https://example.com";
|
|
7472
|
-
if (format === "datetime") return "2026-01-01T12:00:00.000Z";
|
|
7473
|
-
if (format === "date") return "2026-01-01";
|
|
7474
|
-
const minimum = Math.max(1, ...rules.filter((rule) => rule.check === "min_length").map((rule) => rule.minimum));
|
|
7475
|
-
const base = /name/i.test(key) ? "Alex Morgan" : /title/i.test(key) ? "Example title" : "example";
|
|
7476
|
-
return base.padEnd(Math.min(minimum, 100), "x");
|
|
7477
|
-
}
|
|
7478
|
-
function sampleNumber(schema) {
|
|
7479
|
-
const rules = checks(schema);
|
|
7480
|
-
const lower = rules.find((rule) => rule.check === "greater_than");
|
|
7481
|
-
const upper = rules.find((rule) => rule.check === "less_than");
|
|
7482
|
-
const integer = schema._def.type === "int" || rules.some((rule) => rule.check === "number_format" && rule.format === "safeint");
|
|
7483
|
-
const minimum = lower ? Number(lower.value) + (lower.inclusive ? 0 : integer ? 1 : 0.1) : 1;
|
|
7484
|
-
const maximum = upper ? Number(upper.value) - (upper.inclusive ? 0 : integer ? 1 : 0.1) : Infinity;
|
|
7485
|
-
const candidate = Math.min(Math.max(21, minimum), maximum);
|
|
7486
|
-
return integer ? Math.ceil(candidate) : candidate;
|
|
7487
|
-
}
|
|
7488
|
-
function createExample(schema, key = "value", depth = 0, seen = /* @__PURE__ */ new Set()) {
|
|
7489
|
-
var _a;
|
|
7490
|
-
if (depth > 8 || seen.has(schema)) throw new Error("This recursive schema needs a handwritten example.");
|
|
7491
|
-
const nextSeen = new Set(seen).add(schema);
|
|
7492
|
-
const def = schema._def;
|
|
7493
|
-
const mongooseType = getMongooseMeta(schema).type;
|
|
7494
|
-
if (mongooseType === "ObjectId" || (mongooseType == null ? void 0 : mongooseType.schemaName) === "ObjectId") return "507f1f77bcf86cd799439011";
|
|
7495
|
-
switch (def.type) {
|
|
7496
|
-
case "optional":
|
|
7497
|
-
case "default":
|
|
7498
|
-
case "prefault":
|
|
7499
|
-
return depth === 0 ? createExample(def.innerType, key, depth + 1, nextSeen) : void 0;
|
|
7500
|
-
case "nullable":
|
|
7501
|
-
case "nonoptional":
|
|
7502
|
-
case "readonly":
|
|
7503
|
-
case "catch":
|
|
7504
|
-
return createExample(def.innerType, key, depth + 1, nextSeen);
|
|
7505
|
-
case "pipe":
|
|
7506
|
-
return createExample(def.in, key, depth + 1, nextSeen);
|
|
7507
|
-
case "lazy":
|
|
7508
|
-
return createExample(def.getter(), key, depth + 1, nextSeen);
|
|
7509
|
-
case "object": {
|
|
7510
|
-
const result = {};
|
|
7511
|
-
for (const [field, fieldSchema] of Object.entries(schema.shape || def.shape || {})) {
|
|
7512
|
-
const value = createExample(fieldSchema, field, depth + 1, nextSeen);
|
|
7513
|
-
if (value !== void 0) result[field] = value;
|
|
7514
|
-
}
|
|
7515
|
-
return result;
|
|
7516
|
-
}
|
|
7517
|
-
case "array": {
|
|
7518
|
-
const minimum = Math.max(0, ...checks(schema).filter((rule) => rule.check === "min_length").map((rule) => rule.minimum));
|
|
7519
|
-
return Array.from({ length: Math.min(Math.max(1, minimum), 10) }, () => createExample(def.element, key, depth + 1, nextSeen));
|
|
7520
|
-
}
|
|
7521
|
-
case "tuple":
|
|
7522
|
-
return def.items.map((item) => createExample(item, key, depth + 1, nextSeen));
|
|
7523
|
-
case "string":
|
|
7524
|
-
return sampleString(schema, key);
|
|
7525
|
-
case "number":
|
|
7526
|
-
case "int":
|
|
7527
|
-
return sampleNumber(schema);
|
|
7528
|
-
case "boolean":
|
|
7529
|
-
return true;
|
|
7530
|
-
case "enum":
|
|
7531
|
-
return Object.values(def.entries)[0];
|
|
7532
|
-
case "literal":
|
|
7533
|
-
return (_a = def.values) == null ? void 0 : _a[0];
|
|
7534
|
-
case "union":
|
|
7535
|
-
return createExample(def.options[0], key, depth + 1, nextSeen);
|
|
7536
|
-
case "record":
|
|
7537
|
-
return { example: createExample(def.valueType, key, depth + 1, nextSeen) };
|
|
7538
|
-
case "date":
|
|
7539
|
-
return "2026-01-01T12:00:00.000Z";
|
|
7540
|
-
default:
|
|
7541
|
-
throw new Error(`Automatic examples do not yet support ${def.type || "this schema"}.`);
|
|
7542
|
-
}
|
|
7543
|
-
}
|
|
7544
|
-
|
|
7545
|
-
const MAX_BODY_BYTES = 16e4;
|
|
7546
|
-
async function readStudioRequest(event) {
|
|
7547
|
-
const chunks = [];
|
|
7548
|
-
let size = 0;
|
|
7549
|
-
for await (const chunk of event.node.req) {
|
|
7550
|
-
const bytes = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
7551
|
-
size += bytes.length;
|
|
7552
|
-
if (size > MAX_BODY_BYTES) throw createError$1({ statusCode: 413, message: "Studio input is too large." });
|
|
7553
|
-
chunks.push(bytes);
|
|
7554
|
-
}
|
|
7555
|
-
let body;
|
|
7556
|
-
try {
|
|
7557
|
-
body = JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
7558
|
-
} catch {
|
|
7559
|
-
throw createError$1({ statusCode: 400, message: "Invalid JSON request." });
|
|
7560
|
-
}
|
|
7561
|
-
if (typeof (body == null ? void 0 : body.sourceCode) !== "string" || !body.sourceCode.trim()) {
|
|
7562
|
-
throw createError$1({ statusCode: 400, message: "Add a Zod schema to the editor first." });
|
|
7563
|
-
}
|
|
7564
|
-
if (body.sourceCode.length > 5e4 || typeof body.inputData !== "string" || body.inputData.length > 1e5 || body.selectedSchema !== void 0 && typeof body.selectedSchema !== "string" || body.action !== void 0 && body.action !== "run" && body.action !== "example") {
|
|
7565
|
-
throw createError$1({ statusCode: 400, message: "Invalid or oversized Studio input." });
|
|
7566
|
-
}
|
|
7567
|
-
return body;
|
|
7568
|
-
}
|
|
7569
|
-
|
|
7570
|
-
const MAX_RESPONSE_BYTES = 1e6;
|
|
7571
|
-
function runInContainer(body, socketPath) {
|
|
7572
|
-
const payload = JSON.stringify(body);
|
|
7573
|
-
return new Promise((resolve, reject) => {
|
|
7574
|
-
const req = request({
|
|
7575
|
-
socketPath,
|
|
7576
|
-
path: "/run",
|
|
7577
|
-
method: "POST",
|
|
7578
|
-
headers: { "content-type": "application/json", "content-length": Buffer.byteLength(payload) }
|
|
7579
|
-
}, (res) => {
|
|
7580
|
-
const chunks = [];
|
|
7581
|
-
let size = 0;
|
|
7582
|
-
res.on("data", (chunk) => {
|
|
7583
|
-
size += chunk.length;
|
|
7584
|
-
if (size > MAX_RESPONSE_BYTES) {
|
|
7585
|
-
req.destroy(new Error("Studio result is too large."));
|
|
7586
|
-
return;
|
|
7587
|
-
}
|
|
7588
|
-
chunks.push(chunk);
|
|
7589
|
-
});
|
|
7590
|
-
res.on("end", () => {
|
|
7591
|
-
try {
|
|
7592
|
-
const result = JSON.parse(Buffer.concat(chunks).toString("utf8"));
|
|
7593
|
-
if (res.statusCode !== 200) {
|
|
7594
|
-
reject(createError$1({ statusCode: res.statusCode === 400 ? 400 : res.statusCode === 504 ? 504 : 503, message: result.error || "Studio runner failed." }));
|
|
7595
|
-
} else resolve(result);
|
|
7596
|
-
} catch {
|
|
7597
|
-
reject(createError$1({ statusCode: 502, message: "Invalid response from Studio runner." }));
|
|
7598
|
-
}
|
|
7599
|
-
});
|
|
7600
|
-
res.on("error", reject);
|
|
7601
|
-
});
|
|
7602
|
-
req.setTimeout(5e3, () => req.destroy(new Error("Studio runner timed out.")));
|
|
7603
|
-
req.on("error", reject);
|
|
7604
|
-
req.end(payload);
|
|
7605
|
-
});
|
|
7606
|
-
}
|
|
7607
|
-
|
|
7608
|
-
var __defProp = Object.defineProperty;
|
|
7609
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7610
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
7611
|
-
setMongoose(mongoose);
|
|
7612
|
-
class StudioExecutionError extends Error {
|
|
7613
|
-
constructor() {
|
|
7614
|
-
super(...arguments);
|
|
7615
|
-
__publicField(this, "statusCode", 400);
|
|
7616
|
-
}
|
|
7617
|
-
}
|
|
7618
|
-
function errorMessage(error) {
|
|
7619
|
-
return error instanceof Error ? error.message || error.name : String(error);
|
|
7620
|
-
}
|
|
7621
|
-
function declaredNames(jsCode) {
|
|
7622
|
-
const file = parse(jsCode, { ecmaVersion: "latest", sourceType: "script" });
|
|
7623
|
-
const names = [];
|
|
7624
|
-
for (const statement of file.body) {
|
|
7625
|
-
if (statement.type !== "VariableDeclaration") continue;
|
|
7626
|
-
for (const declaration of statement.declarations) {
|
|
7627
|
-
if (declaration.id.type === "Identifier") names.push(declaration.id.name);
|
|
7628
|
-
}
|
|
7629
|
-
}
|
|
7630
|
-
return names;
|
|
7631
|
-
}
|
|
7632
|
-
function displayValue(value) {
|
|
7633
|
-
const seen = /* @__PURE__ */ new WeakSet();
|
|
7634
|
-
return JSON.stringify(value, (_key, item) => {
|
|
7635
|
-
if (typeof item === "bigint") return `${item.toString()}n`;
|
|
7636
|
-
if (typeof item === "undefined") return "[undefined]";
|
|
7637
|
-
if (typeof item === "number" && !Number.isFinite(item)) return String(item);
|
|
7638
|
-
if (typeof item === "object" && item !== null) {
|
|
7639
|
-
if (item instanceof Date) return item.toISOString();
|
|
7640
|
-
if (typeof item.toHexString === "function") return item.toHexString();
|
|
7641
|
-
if (seen.has(item)) return "[Circular]";
|
|
7642
|
-
seen.add(item);
|
|
7643
|
-
}
|
|
7644
|
-
return item;
|
|
7645
|
-
}, 2) || "undefined";
|
|
7646
|
-
}
|
|
7647
|
-
function formatMongoose(value) {
|
|
7648
|
-
if (typeof value === "function") return value.name || value.toString();
|
|
7649
|
-
if (Array.isArray(value)) return value.map(formatMongoose);
|
|
7650
|
-
if (value !== null && typeof value === "object" && value.constructor === Object) {
|
|
7651
|
-
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, formatMongoose(entry)]));
|
|
7652
|
-
}
|
|
7653
|
-
return value;
|
|
7654
|
-
}
|
|
7655
|
-
function executeStudio(body, timeoutMs) {
|
|
7656
|
-
var _a;
|
|
7657
|
-
const sourceCode = body.sourceCode;
|
|
7658
|
-
hooks.removeAllHooks();
|
|
7659
|
-
try {
|
|
7660
|
-
let jsCode;
|
|
7661
|
-
try {
|
|
7662
|
-
jsCode = transformSync(sourceCode, { loader: "ts", format: "cjs", target: "esnext" }).code;
|
|
7663
|
-
} catch (error) {
|
|
7664
|
-
throw new StudioExecutionError(`Compilation error: ${errorMessage(error)}`);
|
|
7665
|
-
}
|
|
7666
|
-
const names = declaredNames(jsCode);
|
|
7667
|
-
const sandboxRequire = (moduleName) => {
|
|
7668
|
-
if (moduleName === "zod" || moduleName === "zod/v4") return zod;
|
|
7669
|
-
if (moduleName === "@nullix/zod-mongoose") return mongooseZod;
|
|
7670
|
-
if (moduleName === "mongoose") return mongoose;
|
|
7671
|
-
throw new Error(`Module "${moduleName}" is unavailable in Studio.`);
|
|
7672
|
-
};
|
|
7673
|
-
const context = vm.createContext({
|
|
7674
|
-
...mongooseZod,
|
|
7675
|
-
z: zod.z,
|
|
7676
|
-
mongoose,
|
|
7677
|
-
require: sandboxRequire,
|
|
7678
|
-
console: { log: () => {
|
|
7679
|
-
}, warn: () => {
|
|
7680
|
-
}, error: () => {
|
|
7681
|
-
} },
|
|
7682
|
-
__filename: "/sandbox/main.ts",
|
|
7683
|
-
__dirname: "/sandbox"
|
|
7684
|
-
});
|
|
7685
|
-
const captured = names.map((name) => `${JSON.stringify(name)}: typeof ${name} === "undefined" ? undefined : ${name}`).join(",");
|
|
7686
|
-
const script = new vm.Script(`
|
|
7687
|
-
(() => {
|
|
7688
|
-
let exports = {};
|
|
7689
|
-
let module = { exports };
|
|
7690
|
-
${jsCode}
|
|
7691
|
-
return { exported: module.exports, declared: { ${captured} } };
|
|
7692
|
-
})()
|
|
7693
|
-
`);
|
|
7694
|
-
const result = script.runInContext(context, { timeout: timeoutMs });
|
|
7695
|
-
const choices = /* @__PURE__ */ new Map();
|
|
7696
|
-
for (const [name, value] of Object.entries(result.declared)) {
|
|
7697
|
-
if (value instanceof zod.ZodType && ![...choices.values()].includes(value)) choices.set(name, value);
|
|
7698
|
-
}
|
|
7699
|
-
for (const [name, value] of Object.entries(result.exported || {})) {
|
|
7700
|
-
if (value instanceof zod.ZodType && ![...choices.values()].includes(value)) choices.set(name, value);
|
|
7701
|
-
}
|
|
7702
|
-
const defaultExport = result.exported instanceof zod.ZodType ? result.exported : (_a = result.exported) == null ? void 0 : _a.default;
|
|
7703
|
-
if (defaultExport instanceof zod.ZodType && ![...choices.values()].includes(defaultExport)) choices.set("default", defaultExport);
|
|
7704
|
-
if (!choices.size) throw new Error("Define a Zod schema, such as const UserSchema = z.object({ name: z.string() }).");
|
|
7705
|
-
const selectedSchema = body.selectedSchema && choices.has(body.selectedSchema) ? body.selectedSchema : choices.keys().next().value;
|
|
7706
|
-
const schema = choices.get(selectedSchema);
|
|
7707
|
-
const schemaNames = [...choices.keys()];
|
|
7708
|
-
let example;
|
|
7709
|
-
let exampleError;
|
|
7710
|
-
let inputData = body.inputData;
|
|
7711
|
-
if (body.action === "example") {
|
|
7712
|
-
try {
|
|
7713
|
-
const fixture = result.declared.exampleInput;
|
|
7714
|
-
const generated = fixture !== void 0 ? fixture : createExample(schema);
|
|
7715
|
-
const exampleResult = schema.safeParse(generated);
|
|
7716
|
-
if (!exampleResult.success) throw new Error("The example does not satisfy this schema. Add or update a valid const exampleInput for custom rules.");
|
|
7717
|
-
example = displayValue(generated);
|
|
7718
|
-
inputData = example;
|
|
7719
|
-
} catch (error) {
|
|
7720
|
-
exampleError = errorMessage(error);
|
|
7721
|
-
}
|
|
7722
|
-
}
|
|
7723
|
-
let validation = { status: "empty" };
|
|
7724
|
-
if (typeof inputData !== "string" || !inputData.trim()) {
|
|
7725
|
-
validation = { status: "empty", message: "Add JSON data to try this schema." };
|
|
7726
|
-
} else {
|
|
7727
|
-
let input;
|
|
7728
|
-
let inputValid = false;
|
|
7729
|
-
try {
|
|
7730
|
-
input = JSON.parse(inputData);
|
|
7731
|
-
inputValid = true;
|
|
7732
|
-
} catch (error) {
|
|
7733
|
-
validation = { status: "json-error", message: errorMessage(error) };
|
|
7734
|
-
}
|
|
7735
|
-
if (inputValid) {
|
|
7736
|
-
try {
|
|
7737
|
-
const parsed = schema.safeParse(input);
|
|
7738
|
-
validation = parsed.success ? { status: "valid", parsed: displayValue(parsed.data) } : { status: "invalid", issues: parsed.error.issues.map((issue) => ({ path: issue.path.length ? issue.path.join(".") : "(root)", message: issue.message, code: issue.code })) };
|
|
7739
|
-
} catch (error) {
|
|
7740
|
-
validation = { status: "parse-error", message: `Validation could not run: ${errorMessage(error)}` };
|
|
7741
|
-
}
|
|
7742
|
-
}
|
|
7743
|
-
}
|
|
7744
|
-
let conversion;
|
|
7745
|
-
try {
|
|
7746
|
-
const extracted = extractMongooseDef(schema);
|
|
7747
|
-
const converted = toMongooseSchema(schema, { modelName: "ParsedSchema" });
|
|
7748
|
-
const inspect = (value) => util.inspect(formatMongoose(value), { depth: null, colors: false, showHidden: false });
|
|
7749
|
-
conversion = {
|
|
7750
|
-
definition: inspect(extracted),
|
|
7751
|
-
schemaObj: inspect(converted.obj),
|
|
7752
|
-
schemaTree: inspect(converted.tree),
|
|
7753
|
-
schemaPaths: inspect(converted.paths)
|
|
7754
|
-
};
|
|
7755
|
-
} catch (error) {
|
|
7756
|
-
conversion = { error: errorMessage(error) };
|
|
7757
|
-
}
|
|
7758
|
-
return { schemaNames, selectedSchema, validation, conversion, example, exampleError };
|
|
7759
|
-
} finally {
|
|
7760
|
-
hooks.removeAllHooks();
|
|
7761
|
-
}
|
|
7762
|
-
}
|
|
7763
|
-
|
|
7764
|
-
const collections = {
|
|
7765
|
-
};
|
|
7766
|
-
|
|
7767
|
-
const DEFAULT_ENDPOINT = "https://api.iconify.design";
|
|
7768
|
-
const _rFljpJ = defineCachedEventHandler(async (event) => {
|
|
7769
|
-
const url = getRequestURL(event);
|
|
7770
|
-
if (!url)
|
|
7771
|
-
return createError$1({ status: 400, message: "Invalid icon request" });
|
|
7772
|
-
const options = useAppConfig().icon;
|
|
7773
|
-
const collectionName = event.context.params?.collection?.replace(/\.json$/, "");
|
|
7774
|
-
const collection = collectionName ? await collections[collectionName]?.() : null;
|
|
7775
|
-
const apiEndPoint = options.iconifyApiEndpoint || DEFAULT_ENDPOINT;
|
|
7776
|
-
const icons = url.searchParams.get("icons")?.split(",");
|
|
7777
|
-
if (collection) {
|
|
7778
|
-
if (icons?.length) {
|
|
7779
|
-
const data = getIcons(
|
|
7780
|
-
collection,
|
|
7781
|
-
icons
|
|
7782
|
-
);
|
|
7783
|
-
consola.debug(`[Icon] serving ${(icons || []).map((i) => "`" + collectionName + ":" + i + "`").join(",")} from bundled collection`);
|
|
7784
|
-
return data;
|
|
7785
|
-
}
|
|
7786
|
-
}
|
|
7787
|
-
if (options.fallbackToApi === true || options.fallbackToApi === "server-only") {
|
|
7788
|
-
const apiUrl = new URL("./" + basename(url.pathname) + url.search, apiEndPoint);
|
|
7789
|
-
consola.debug(`[Icon] fetching ${(icons || []).map((i) => "`" + collectionName + ":" + i + "`").join(",")} from iconify api`);
|
|
7790
|
-
if (apiUrl.host !== new URL(apiEndPoint).host) {
|
|
7791
|
-
return createError$1({ status: 400, message: "Invalid icon request" });
|
|
7792
|
-
}
|
|
7793
|
-
try {
|
|
7794
|
-
const data = await $fetch(apiUrl.href);
|
|
7795
|
-
return data;
|
|
7796
|
-
} catch (e) {
|
|
7797
|
-
consola.error(e);
|
|
7798
|
-
if (e.status === 404)
|
|
7799
|
-
return createError$1({ status: 404 });
|
|
7800
|
-
else
|
|
7801
|
-
return createError$1({ status: 500, message: "Failed to fetch fallback icon" });
|
|
7802
|
-
}
|
|
7803
|
-
}
|
|
7804
|
-
return createError$1({ status: 404 });
|
|
7805
|
-
}, {
|
|
7806
|
-
group: "nuxt",
|
|
7807
|
-
name: "icon",
|
|
7808
|
-
getKey(event) {
|
|
7809
|
-
const collection = event.context.params?.collection?.replace(/\.json$/, "") || "unknown";
|
|
7810
|
-
const icons = String(getQuery(event).icons || "");
|
|
7811
|
-
return `${collection}_${icons.split(",")[0]}_${icons.length}_${hash$1(icons)}`;
|
|
7812
|
-
},
|
|
7813
|
-
swr: true,
|
|
7814
|
-
maxAge: 60 * 60 * 24 * 7
|
|
7815
|
-
// 1 week
|
|
7816
|
-
});
|
|
7817
|
-
|
|
7818
|
-
const _lazy_eqV2hV = () => import('../routes/api/editor-types.get.mjs');
|
|
7819
|
-
const _lazy_ops91K = () => import('../routes/api/parse.post.mjs');
|
|
7820
|
-
const _lazy__MlMs_ = () => import('../routes/api/resolve.get.mjs');
|
|
7821
|
-
const _lazy_XgkH_R = () => import('../routes/api/studio/run.post.mjs');
|
|
7822
|
-
const _lazy_k3cCUd = () => import('../routes/renderer.mjs').then(function (n) { return n.r; });
|
|
7823
|
-
|
|
7824
|
-
const handlers = [
|
|
7825
|
-
{ route: '', handler: _jvAnmE, lazy: false, middleware: true, method: undefined },
|
|
7826
|
-
{ route: '', handler: _c_y9US, lazy: false, middleware: true, method: undefined },
|
|
7827
|
-
{ route: '/api/editor-types', handler: _lazy_eqV2hV, lazy: true, middleware: false, method: "get" },
|
|
7828
|
-
{ route: '/api/parse', handler: _lazy_ops91K, lazy: true, middleware: false, method: "post" },
|
|
7829
|
-
{ route: '/api/resolve', handler: _lazy__MlMs_, lazy: true, middleware: false, method: "get" },
|
|
7830
|
-
{ route: '/api/studio/run', handler: _lazy_XgkH_R, lazy: true, middleware: false, method: "post" },
|
|
7831
|
-
{ route: '/__nuxt_error', handler: _lazy_k3cCUd, lazy: true, middleware: false, method: undefined },
|
|
7832
|
-
{ route: '/__nuxt_island/**', handler: _SxA8c9, lazy: false, middleware: false, method: undefined },
|
|
7833
|
-
{ route: '/api/_nuxt_icon/:collection', handler: _rFljpJ, lazy: false, middleware: false, method: undefined },
|
|
7834
|
-
{ route: '/**', handler: _lazy_k3cCUd, lazy: true, middleware: false, method: undefined }
|
|
7835
|
-
];
|
|
7836
|
-
|
|
7837
|
-
function createNitroApp() {
|
|
7838
|
-
const config = useRuntimeConfig();
|
|
7839
|
-
const hooks = createHooks$1();
|
|
7840
|
-
const captureError = (error, context = {}) => {
|
|
7841
|
-
const promise = hooks.callHookParallel("error", error, context).catch((error_) => {
|
|
7842
|
-
console.error("Error while capturing another error", error_);
|
|
7843
|
-
});
|
|
7844
|
-
if (context.event && isEvent(context.event)) {
|
|
7845
|
-
const errors = context.event.context.nitro?.errors;
|
|
7846
|
-
if (errors) {
|
|
7847
|
-
errors.push({ error, context });
|
|
7848
|
-
}
|
|
7849
|
-
if (context.event.waitUntil) {
|
|
7850
|
-
context.event.waitUntil(promise);
|
|
7851
|
-
}
|
|
7852
|
-
}
|
|
7853
|
-
};
|
|
7854
|
-
const h3App = createApp({
|
|
7855
|
-
debug: destr(false),
|
|
7856
|
-
onError: (error, event) => {
|
|
7857
|
-
captureError(error, { event, tags: ["request"] });
|
|
7858
|
-
return errorHandler(error, event);
|
|
7859
|
-
},
|
|
7860
|
-
onRequest: async (event) => {
|
|
7861
|
-
event.context.nitro = event.context.nitro || { errors: [] };
|
|
7862
|
-
const fetchContext = event.node.req?.__unenv__;
|
|
7863
|
-
if (fetchContext?._platform) {
|
|
7864
|
-
event.context = {
|
|
7865
|
-
_platform: fetchContext?._platform,
|
|
7866
|
-
// #3335
|
|
7867
|
-
...fetchContext._platform,
|
|
7868
|
-
...event.context
|
|
7869
|
-
};
|
|
7870
|
-
}
|
|
7871
|
-
if (!event.context.waitUntil && fetchContext?.waitUntil) {
|
|
7872
|
-
event.context.waitUntil = fetchContext.waitUntil;
|
|
7873
|
-
}
|
|
7874
|
-
event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
|
|
7875
|
-
event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
|
|
7876
|
-
fetch: $fetch
|
|
7877
|
-
});
|
|
7878
|
-
event.waitUntil = (promise) => {
|
|
7879
|
-
if (!event.context.nitro._waitUntilPromises) {
|
|
7880
|
-
event.context.nitro._waitUntilPromises = [];
|
|
7881
|
-
}
|
|
7882
|
-
event.context.nitro._waitUntilPromises.push(promise);
|
|
7883
|
-
if (event.context.waitUntil) {
|
|
7884
|
-
event.context.waitUntil(promise);
|
|
7885
|
-
}
|
|
7886
|
-
};
|
|
7887
|
-
event.captureError = (error, context) => {
|
|
7888
|
-
captureError(error, { event, ...context });
|
|
7889
|
-
};
|
|
7890
|
-
await nitroApp$1.hooks.callHook("request", event).catch((error) => {
|
|
7891
|
-
captureError(error, { event, tags: ["request"] });
|
|
7892
|
-
});
|
|
7893
|
-
},
|
|
7894
|
-
onBeforeResponse: async (event, response) => {
|
|
7895
|
-
await nitroApp$1.hooks.callHook("beforeResponse", event, response).catch((error) => {
|
|
7896
|
-
captureError(error, { event, tags: ["request", "response"] });
|
|
7897
|
-
});
|
|
7898
|
-
},
|
|
7899
|
-
onAfterResponse: async (event, response) => {
|
|
7900
|
-
await nitroApp$1.hooks.callHook("afterResponse", event, response).catch((error) => {
|
|
7901
|
-
captureError(error, { event, tags: ["request", "response"] });
|
|
7902
|
-
});
|
|
7903
|
-
}
|
|
7904
|
-
});
|
|
7905
|
-
const router = createRouter({
|
|
7906
|
-
preemptive: true
|
|
7907
|
-
});
|
|
7908
|
-
const nodeHandler = toNodeListener(h3App);
|
|
7909
|
-
const localCall = (aRequest) => b(
|
|
7910
|
-
nodeHandler,
|
|
7911
|
-
aRequest
|
|
7912
|
-
);
|
|
7913
|
-
const localFetch = (input, init) => {
|
|
7914
|
-
if (!input.toString().startsWith("/")) {
|
|
7915
|
-
return globalThis.fetch(input, init);
|
|
7916
|
-
}
|
|
7917
|
-
return C(
|
|
7918
|
-
nodeHandler,
|
|
7919
|
-
input,
|
|
7920
|
-
init
|
|
7921
|
-
).then((response) => normalizeFetchResponse(response));
|
|
7922
|
-
};
|
|
7923
|
-
const $fetch = createFetch({
|
|
7924
|
-
fetch: localFetch,
|
|
7925
|
-
Headers: Headers$1,
|
|
7926
|
-
defaults: { baseURL: config.app.baseURL }
|
|
7927
|
-
});
|
|
7928
|
-
globalThis.$fetch = $fetch;
|
|
7929
|
-
h3App.use(createRouteRulesHandler({ localFetch }));
|
|
7930
|
-
for (const h of handlers) {
|
|
7931
|
-
let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
|
|
7932
|
-
if (h.middleware || !h.route) {
|
|
7933
|
-
const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
|
|
7934
|
-
/\/+/g,
|
|
7935
|
-
"/"
|
|
7936
|
-
);
|
|
7937
|
-
h3App.use(middlewareBase, handler);
|
|
7938
|
-
} else {
|
|
7939
|
-
const routeRules = getRouteRulesForPath(
|
|
7940
|
-
h.route.replace(/:\w+|\*\*/g, "_")
|
|
7941
|
-
);
|
|
7942
|
-
if (routeRules.cache) {
|
|
7943
|
-
handler = cachedEventHandler(handler, {
|
|
7944
|
-
group: "nitro/routes",
|
|
7945
|
-
...routeRules.cache
|
|
7946
|
-
});
|
|
7947
|
-
}
|
|
7948
|
-
router.use(h.route, handler, h.method);
|
|
7949
|
-
}
|
|
7950
|
-
}
|
|
7951
|
-
h3App.use(config.app.baseURL, router.handler);
|
|
7952
|
-
const app = {
|
|
7953
|
-
hooks,
|
|
7954
|
-
h3App,
|
|
7955
|
-
router,
|
|
7956
|
-
localCall,
|
|
7957
|
-
localFetch,
|
|
7958
|
-
captureError
|
|
7959
|
-
};
|
|
7960
|
-
return app;
|
|
7961
|
-
}
|
|
7962
|
-
function runNitroPlugins(nitroApp2) {
|
|
7963
|
-
for (const plugin of plugins) {
|
|
7964
|
-
try {
|
|
7965
|
-
plugin(nitroApp2);
|
|
7966
|
-
} catch (error) {
|
|
7967
|
-
nitroApp2.captureError(error, { tags: ["plugin"] });
|
|
7968
|
-
throw error;
|
|
7969
|
-
}
|
|
7970
|
-
}
|
|
7971
|
-
}
|
|
7972
|
-
const nitroApp$1 = createNitroApp();
|
|
7973
|
-
function useNitroApp() {
|
|
7974
|
-
return nitroApp$1;
|
|
7975
|
-
}
|
|
7976
|
-
runNitroPlugins(nitroApp$1);
|
|
7977
|
-
|
|
7978
6352
|
const debug = (...args) => {
|
|
7979
6353
|
};
|
|
7980
6354
|
function GracefulShutdown(server, opts) {
|
|
@@ -8247,5 +6621,5 @@ trapUnhandledNodeErrors();
|
|
|
8247
6621
|
setupGracefulShutdown(listener, nitroApp);
|
|
8248
6622
|
const nodeServer = {};
|
|
8249
6623
|
|
|
8250
|
-
export { $fetch
|
|
6624
|
+
export { $fetch as $, defu as A, executeAsync as B, nodeServer as C, getResponseStatusText as a, getResponseStatus as b, createError$1 as c, defineEventHandler as d, defineRenderHandler as e, destr as f, getQuery as g, getRouteRules as h, joinURL as i, joinRelativeURL as j, useNitroApp as k, klona as l, hasProtocol as m, parseURL as n, encodePath as o, parseQuery as p, decodePath as q, getContext as r, setHeader as s, isScriptProtocol as t, useRuntimeConfig as u, withTrailingSlash as v, withQuery as w, withoutTrailingSlash as x, sanitizeStatusCode as y, hash$1 as z };
|
|
8251
6625
|
//# sourceMappingURL=nitro.mjs.map
|