@nullix/zod-mongoose-studio 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/8SOpv6rk.js +1 -0
- package/.output/public/_nuxt/9HpZscsL.js +2 -0
- package/.output/public/_nuxt/B2KnRiWG.js +4 -0
- package/.output/public/_nuxt/B8OfTtLu.js +1 -0
- package/.output/public/_nuxt/BBUBE1dy.js +1 -0
- package/.output/public/_nuxt/BBc9UKZt.js +1 -0
- package/.output/public/_nuxt/BDtDVThU.js +1 -0
- package/.output/public/_nuxt/BEgZUVRK.js +1 -0
- package/.output/public/_nuxt/BFxVWTOG.js +1 -0
- package/.output/public/_nuxt/BG73LgW2.js +1 -0
- package/.output/public/_nuxt/BKILRCQU.js +1 -0
- package/.output/public/_nuxt/BOtBlQCF.js +1 -0
- package/.output/public/_nuxt/BPhDTwHR.js +1 -0
- package/.output/public/_nuxt/BTesnYfV.js +298 -0
- package/.output/public/_nuxt/BbWJElDN.js +1 -0
- package/.output/public/_nuxt/BcvAzS8a.js +3 -0
- package/.output/public/_nuxt/Bd8akH9Z.js +1 -0
- package/.output/public/_nuxt/Be1F0pOV.js +1 -0
- package/.output/public/_nuxt/BeJ5waoc.js +1 -0
- package/.output/public/_nuxt/Bf6VGUru.js +1 -0
- package/.output/public/_nuxt/BkW5O-1t.js +1 -0
- package/.output/public/_nuxt/BlNEE0v7.js +1 -0
- package/.output/public/_nuxt/Brw8urJB.js +2 -0
- package/.output/public/_nuxt/Bs9aos_-.js +1 -0
- package/.output/public/_nuxt/Bs9z6M-B.js +1 -0
- package/.output/public/_nuxt/Btyra-wh.js +1 -0
- package/.output/public/_nuxt/Bu5POkcn.js +1 -0
- package/.output/public/_nuxt/Bw9ernYp.js +1 -0
- package/.output/public/_nuxt/BwHxbl9M.js +1 -0
- package/.output/public/_nuxt/BxJiqAUM.js +1 -0
- package/.output/public/_nuxt/BzKRNQWT.js +1 -0
- package/.output/public/_nuxt/CBJaRo0y.js +3 -0
- package/.output/public/_nuxt/CFznDFnq.js +2 -0
- package/.output/public/_nuxt/CHwy0fLd.js +1 -0
- package/.output/public/_nuxt/CJmd_6j2.js +1 -0
- package/.output/public/_nuxt/CMQZ64NL.js +1 -0
- package/.output/public/_nuxt/COWaemsV.js +1 -0
- package/.output/public/_nuxt/CXBNlu9o.js +1 -0
- package/.output/public/_nuxt/C_tMU-Nz.js +1 -0
- package/.output/public/_nuxt/CiqrrVzr.js +1 -0
- package/.output/public/_nuxt/ClhHkBeG.js +1 -0
- package/.output/public/_nuxt/CnS9iZB_.js +1 -0
- package/.output/public/_nuxt/CnmFD0ga.js +1 -0
- package/.output/public/_nuxt/Co3qMtFm.js +1 -0
- package/.output/public/_nuxt/CocnycG-.js +1 -0
- package/.output/public/_nuxt/CpO_ztTX.js +1 -0
- package/.output/public/_nuxt/CqXO7rUv.js +1 -0
- package/.output/public/_nuxt/Csy3S7wG.js +1 -0
- package/.output/public/_nuxt/CtU7CIYd.js +11 -0
- package/.output/public/_nuxt/Cw6BJv9p.js +908 -0
- package/.output/public/_nuxt/Cyyb5UIc.js +1 -0
- package/.output/public/_nuxt/D-4FJmMZ.js +1 -0
- package/.output/public/_nuxt/D9hQfWCl.js +1 -0
- package/.output/public/_nuxt/DARyPmWN.js +1 -0
- package/.output/public/_nuxt/DA_xQXIa.js +1 -0
- package/.output/public/_nuxt/DIpCSwC3.js +1 -0
- package/.output/public/_nuxt/DLDM7-KI.js +1 -0
- package/.output/public/_nuxt/DNDY2TF8.js +1 -0
- package/.output/public/_nuxt/DSgGBnBI.js +1 -0
- package/.output/public/_nuxt/DSh2-awV.js +1 -0
- package/.output/public/_nuxt/DWLU9E4j.js +7 -0
- package/.output/public/_nuxt/Db0IVjzk.js +1 -0
- package/.output/public/_nuxt/Db0cS2oM.js +1 -0
- package/.output/public/_nuxt/Dcm9cKUX.js +1 -0
- package/.output/public/_nuxt/DdJfP1eB.js +3 -0
- package/.output/public/_nuxt/DiJ1NA_G.js +1 -0
- package/.output/public/_nuxt/Dj0IH4Bd.js +1 -0
- package/.output/public/_nuxt/Dm6ycUr_.js +1 -0
- package/.output/public/_nuxt/Dm9fPMHo.js +1 -0
- package/.output/public/_nuxt/DmeGPVcC.js +1 -0
- package/.output/public/_nuxt/Dnu-v4kV.js +1 -0
- package/.output/public/_nuxt/DtV1sZF8.js +1 -0
- package/.output/public/_nuxt/DtZ0uQbO.js +1 -0
- package/.output/public/_nuxt/DuqnmPmx.js +33 -0
- package/.output/public/_nuxt/JqRWe2rp.js +1 -0
- package/.output/public/_nuxt/Kd9XrMLS.js +1 -0
- package/.output/public/_nuxt/OrD6JF1K.js +1 -0
- package/.output/public/_nuxt/PahG7c26.js +1 -0
- package/.output/public/_nuxt/Ub6l9XKa.js +1 -0
- package/.output/public/_nuxt/XOt5hzHz.js +1 -0
- package/.output/public/_nuxt/Y6nb8tq_.js +1 -0
- package/.output/public/_nuxt/acbASCJo.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/5f8bfdb9-d523-4660-afb9-2a5faf918ee2.json +1 -0
- package/.output/public/_nuxt/cCwfBBRk.js +59 -0
- package/.output/public/_nuxt/cTPe9QuQ.js +1 -0
- package/.output/public/_nuxt/c_t8T7LW.js +1 -0
- package/.output/public/_nuxt/cl7-CwDS.js +1 -0
- package/.output/public/_nuxt/codicon.ngg6Pgfi.ttf +0 -0
- package/.output/public/_nuxt/css.worker-DBVD8oXr.js +93 -0
- package/.output/public/_nuxt/editor.CdBKkuhR.css +1 -0
- package/.output/public/_nuxt/editor.worker-CdQrwHl8.js +26 -0
- package/.output/public/_nuxt/entry.V-_Q9qpd.css +1 -0
- package/.output/public/_nuxt/error-404.ZEdaMr7r.css +1 -0
- package/.output/public/_nuxt/error-500.CPEQ7gwd.css +1 -0
- package/.output/public/_nuxt/html.worker-CwpTb9lJ.js +470 -0
- package/.output/public/_nuxt/j7ic8hl3.js +1 -0
- package/.output/public/_nuxt/json.worker-BoL8UZqY.js +58 -0
- package/.output/public/_nuxt/s7OhZKlX.js +1 -0
- package/.output/public/_nuxt/tScXyioY.js +1 -0
- package/.output/public/_nuxt/ts.worker-CTGvpNXs.js +67718 -0
- package/.output/public/_nuxt/vHIfCaH5.js +1 -0
- package/.output/public/_nuxt/zBfavPgS.js +1 -0
- package/.output/public/android-chrome-192x192.png +0 -0
- package/.output/public/android-chrome-512x512.png +0 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon-16x16.png +0 -0
- package/.output/public/favicon-32x32.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/robots.txt +2 -0
- package/.output/public/site.webmanifest +1 -0
- package/.output/public/zodmongoose-b.jpg +0 -0
- package/.output/public/zodmongoose-b.png +0 -0
- package/.output/public/zodmongoose-b.svg +10 -0
- package/.output/public/zodmongoose.jpg +0 -0
- package/.output/public/zodmongoose.png +0 -0
- package/.output/public/zodmongoose.svg +12 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-C01T0Fs3.mjs +93 -0
- package/.output/server/chunks/build/error-404-C01T0Fs3.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.C9SFt1Pa.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.C9SFt1Pa.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-BxPzc_RO.mjs +76 -0
- package/.output/server/chunks/build/error-500-BxPzc_RO.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BgBkJrKx.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.BgBkJrKx.mjs.map +1 -0
- package/.output/server/chunks/build/index-Cm3PgUzj.mjs +504 -0
- package/.output/server/chunks/build/index-Cm3PgUzj.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +14569 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +10 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6533 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/parse.post.mjs +1293 -0
- package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/resolve.get.mjs +42 -0
- package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +483 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
- package/.output/server/node_modules/@esbuild/darwin-arm64/package.json +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
- package/.output/server/node_modules/@iconify/utils/package.json +118 -0
- package/.output/server/node_modules/@mongodb-js/saslprep/dist/code-points-data.js +5 -0
- package/.output/server/node_modules/@mongodb-js/saslprep/dist/index.js +65 -0
- package/.output/server/node_modules/@mongodb-js/saslprep/dist/memory-code-points.js +32 -0
- package/.output/server/node_modules/@mongodb-js/saslprep/dist/node.js +15 -0
- package/.output/server/node_modules/@mongodb-js/saslprep/package.json +87 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/bson/lib/bson.cjs +4636 -0
- package/.output/server/node_modules/bson/package.json +120 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +7 -0
- package/.output/server/node_modules/devalue/src/parse.js +265 -0
- package/.output/server/node_modules/devalue/src/stringify.js +350 -0
- package/.output/server/node_modules/devalue/src/uneval.js +490 -0
- package/.output/server/node_modules/devalue/src/utils.js +148 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/esbuild/lib/main.js +2532 -0
- package/.output/server/node_modules/esbuild/package.json +74 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
- package/.output/server/node_modules/hookable/package.json +53 -0
- package/.output/server/node_modules/ip-address/dist/address-error.js +12 -0
- package/.output/server/node_modules/ip-address/dist/common.js +46 -0
- package/.output/server/node_modules/ip-address/dist/ip-address.js +35 -0
- package/.output/server/node_modules/ip-address/dist/ipv4.js +360 -0
- package/.output/server/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/.output/server/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/.output/server/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/.output/server/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/.output/server/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/.output/server/node_modules/ip-address/package.json +78 -0
- package/.output/server/node_modules/kareem/index.js +668 -0
- package/.output/server/node_modules/kareem/package.json +28 -0
- package/.output/server/node_modules/memory-pager/index.js +160 -0
- package/.output/server/node_modules/memory-pager/package.json +24 -0
- package/.output/server/node_modules/mongodb/lib/admin.js +136 -0
- package/.output/server/node_modules/mongodb/lib/bson.js +84 -0
- package/.output/server/node_modules/mongodb/lib/bulk/common.js +837 -0
- package/.output/server/node_modules/mongodb/lib/bulk/ordered.js +67 -0
- package/.output/server/node_modules/mongodb/lib/bulk/unordered.js +92 -0
- package/.output/server/node_modules/mongodb/lib/change_stream.js +465 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.js +274 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/client_encryption.js +610 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.js +81 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/errors.js +136 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.js +85 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/aws.js +23 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/azure.js +132 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js +16 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/providers/index.js +43 -0
- package/.output/server/node_modules/mongodb/lib/client-side-encryption/state_machine.js +426 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/auth_provider.js +51 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.js +150 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/gssapi.js +154 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongo_credentials.js +183 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_aws.js +138 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.js +84 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.js +62 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.js +141 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.js +44 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.js +39 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.js +122 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.js +31 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.js +52 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.js +22 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.js +73 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/plain.js +26 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/providers.js +23 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/scram.js +254 -0
- package/.output/server/node_modules/mongodb/lib/cmap/auth/x509.js +36 -0
- package/.output/server/node_modules/mongodb/lib/cmap/command_monitoring_events.js +223 -0
- package/.output/server/node_modules/mongodb/lib/cmap/commands.js +535 -0
- package/.output/server/node_modules/mongodb/lib/cmap/connect.js +366 -0
- package/.output/server/node_modules/mongodb/lib/cmap/connection.js +570 -0
- package/.output/server/node_modules/mongodb/lib/cmap/connection_pool.js +558 -0
- package/.output/server/node_modules/mongodb/lib/cmap/connection_pool_events.js +190 -0
- package/.output/server/node_modules/mongodb/lib/cmap/errors.js +108 -0
- package/.output/server/node_modules/mongodb/lib/cmap/handshake/client_metadata.js +239 -0
- package/.output/server/node_modules/mongodb/lib/cmap/metrics.js +62 -0
- package/.output/server/node_modules/mongodb/lib/cmap/stream_description.js +70 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/compression.js +163 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/constants.js +19 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/on_data.js +112 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.js +222 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/responses.js +315 -0
- package/.output/server/node_modules/mongodb/lib/cmap/wire_protocol/shared.js +35 -0
- package/.output/server/node_modules/mongodb/lib/collection.js +751 -0
- package/.output/server/node_modules/mongodb/lib/connection_string.js +1091 -0
- package/.output/server/node_modules/mongodb/lib/constants.js +170 -0
- package/.output/server/node_modules/mongodb/lib/cursor/abstract_cursor.js +941 -0
- package/.output/server/node_modules/mongodb/lib/cursor/aggregation_cursor.js +164 -0
- package/.output/server/node_modules/mongodb/lib/cursor/change_stream_cursor.js +104 -0
- package/.output/server/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.js +52 -0
- package/.output/server/node_modules/mongodb/lib/cursor/explainable_cursor.js +36 -0
- package/.output/server/node_modules/mongodb/lib/cursor/find_cursor.js +388 -0
- package/.output/server/node_modules/mongodb/lib/cursor/list_collections_cursor.js +34 -0
- package/.output/server/node_modules/mongodb/lib/cursor/list_indexes_cursor.js +32 -0
- package/.output/server/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.js +14 -0
- package/.output/server/node_modules/mongodb/lib/cursor/run_command_cursor.js +94 -0
- package/.output/server/node_modules/mongodb/lib/db.js +420 -0
- package/.output/server/node_modules/mongodb/lib/deps.js +125 -0
- package/.output/server/node_modules/mongodb/lib/encrypter.js +106 -0
- package/.output/server/node_modules/mongodb/lib/error.js +1383 -0
- package/.output/server/node_modules/mongodb/lib/explain.js +59 -0
- package/.output/server/node_modules/mongodb/lib/gridfs/download.js +305 -0
- package/.output/server/node_modules/mongodb/lib/gridfs/index.js +164 -0
- package/.output/server/node_modules/mongodb/lib/gridfs/upload.js +364 -0
- package/.output/server/node_modules/mongodb/lib/index.js +195 -0
- package/.output/server/node_modules/mongodb/lib/mongo_client.js +566 -0
- package/.output/server/node_modules/mongodb/lib/mongo_client_auth_providers.js +86 -0
- package/.output/server/node_modules/mongodb/lib/mongo_logger.js +649 -0
- package/.output/server/node_modules/mongodb/lib/mongo_types.js +57 -0
- package/.output/server/node_modules/mongodb/lib/operations/aggregate.js +93 -0
- package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.js +51 -0
- package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.js +340 -0
- package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/executor.js +120 -0
- package/.output/server/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.js +204 -0
- package/.output/server/node_modules/mongodb/lib/operations/command.js +83 -0
- package/.output/server/node_modules/mongodb/lib/operations/count.js +45 -0
- package/.output/server/node_modules/mongodb/lib/operations/create_collection.js +110 -0
- package/.output/server/node_modules/mongodb/lib/operations/delete.js +125 -0
- package/.output/server/node_modules/mongodb/lib/operations/distinct.js +61 -0
- package/.output/server/node_modules/mongodb/lib/operations/drop.js +94 -0
- package/.output/server/node_modules/mongodb/lib/operations/estimated_document_count.js +41 -0
- package/.output/server/node_modules/mongodb/lib/operations/execute_operation.js +236 -0
- package/.output/server/node_modules/mongodb/lib/operations/find.js +148 -0
- package/.output/server/node_modules/mongodb/lib/operations/find_and_modify.js +158 -0
- package/.output/server/node_modules/mongodb/lib/operations/get_more.js +62 -0
- package/.output/server/node_modules/mongodb/lib/operations/indexes.js +186 -0
- package/.output/server/node_modules/mongodb/lib/operations/insert.js +70 -0
- package/.output/server/node_modules/mongodb/lib/operations/kill_cursors.js +43 -0
- package/.output/server/node_modules/mongodb/lib/operations/list_collections.js +53 -0
- package/.output/server/node_modules/mongodb/lib/operations/list_databases.js +40 -0
- package/.output/server/node_modules/mongodb/lib/operations/operation.js +102 -0
- package/.output/server/node_modules/mongodb/lib/operations/profiling_level.js +43 -0
- package/.output/server/node_modules/mongodb/lib/operations/remove_user.js +27 -0
- package/.output/server/node_modules/mongodb/lib/operations/rename.js +38 -0
- package/.output/server/node_modules/mongodb/lib/operations/run_command.js +47 -0
- package/.output/server/node_modules/mongodb/lib/operations/search_indexes/create.js +33 -0
- package/.output/server/node_modules/mongodb/lib/operations/search_indexes/drop.js +43 -0
- package/.output/server/node_modules/mongodb/lib/operations/search_indexes/update.js +35 -0
- package/.output/server/node_modules/mongodb/lib/operations/set_profiling_level.js +53 -0
- package/.output/server/node_modules/mongodb/lib/operations/stats.js +27 -0
- package/.output/server/node_modules/mongodb/lib/operations/update.js +188 -0
- package/.output/server/node_modules/mongodb/lib/operations/validate_collection.js +37 -0
- package/.output/server/node_modules/mongodb/lib/read_concern.js +73 -0
- package/.output/server/node_modules/mongodb/lib/read_preference.js +195 -0
- package/.output/server/node_modules/mongodb/lib/resource_management.js +58 -0
- package/.output/server/node_modules/mongodb/lib/sdam/common.js +49 -0
- package/.output/server/node_modules/mongodb/lib/sdam/events.js +146 -0
- package/.output/server/node_modules/mongodb/lib/sdam/monitor.js +544 -0
- package/.output/server/node_modules/mongodb/lib/sdam/server.js +392 -0
- package/.output/server/node_modules/mongodb/lib/sdam/server_description.js +204 -0
- package/.output/server/node_modules/mongodb/lib/sdam/server_selection.js +231 -0
- package/.output/server/node_modules/mongodb/lib/sdam/server_selection_events.js +85 -0
- package/.output/server/node_modules/mongodb/lib/sdam/srv_polling.js +108 -0
- package/.output/server/node_modules/mongodb/lib/sdam/topology.js +694 -0
- package/.output/server/node_modules/mongodb/lib/sdam/topology_description.js +383 -0
- package/.output/server/node_modules/mongodb/lib/sessions.js +827 -0
- package/.output/server/node_modules/mongodb/lib/sort.js +103 -0
- package/.output/server/node_modules/mongodb/lib/timeout.js +296 -0
- package/.output/server/node_modules/mongodb/lib/transactions.js +146 -0
- package/.output/server/node_modules/mongodb/lib/utils.js +1203 -0
- package/.output/server/node_modules/mongodb/lib/write_concern.js +100 -0
- package/.output/server/node_modules/mongodb/package.json +178 -0
- package/.output/server/node_modules/mongodb-connection-string-url/lib/index.js +213 -0
- package/.output/server/node_modules/mongodb-connection-string-url/lib/redact.js +86 -0
- package/.output/server/node_modules/mongodb-connection-string-url/package.json +62 -0
- package/.output/server/node_modules/mongoose/index.js +64 -0
- package/.output/server/node_modules/mongoose/lib/aggregate.js +1245 -0
- package/.output/server/node_modules/mongoose/lib/browserDocument.js +101 -0
- package/.output/server/node_modules/mongoose/lib/cast/bigint.js +46 -0
- package/.output/server/node_modules/mongoose/lib/cast/boolean.js +32 -0
- package/.output/server/node_modules/mongoose/lib/cast/date.js +41 -0
- package/.output/server/node_modules/mongoose/lib/cast/decimal128.js +39 -0
- package/.output/server/node_modules/mongoose/lib/cast/double.js +50 -0
- package/.output/server/node_modules/mongoose/lib/cast/int32.js +36 -0
- package/.output/server/node_modules/mongoose/lib/cast/number.js +42 -0
- package/.output/server/node_modules/mongoose/lib/cast/objectid.js +29 -0
- package/.output/server/node_modules/mongoose/lib/cast/string.js +37 -0
- package/.output/server/node_modules/mongoose/lib/cast/uuid.js +78 -0
- package/.output/server/node_modules/mongoose/lib/cast.js +444 -0
- package/.output/server/node_modules/mongoose/lib/collection.js +321 -0
- package/.output/server/node_modules/mongoose/lib/connection.js +1850 -0
- package/.output/server/node_modules/mongoose/lib/connectionState.js +26 -0
- package/.output/server/node_modules/mongoose/lib/constants.js +73 -0
- package/.output/server/node_modules/mongoose/lib/cursor/aggregationCursor.js +476 -0
- package/.output/server/node_modules/mongoose/lib/cursor/changeStream.js +198 -0
- package/.output/server/node_modules/mongoose/lib/cursor/queryCursor.js +629 -0
- package/.output/server/node_modules/mongoose/lib/document.js +5512 -0
- package/.output/server/node_modules/mongoose/lib/documentProvider.js +30 -0
- package/.output/server/node_modules/mongoose/lib/driver.js +15 -0
- package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/bulkWriteResult.js +5 -0
- package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js +471 -0
- package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js +528 -0
- package/.output/server/node_modules/mongoose/lib/drivers/node-mongodb-native/index.js +10 -0
- package/.output/server/node_modules/mongoose/lib/error/bulkSaveIncompleteError.js +44 -0
- package/.output/server/node_modules/mongoose/lib/error/bulkWriteError.js +41 -0
- package/.output/server/node_modules/mongoose/lib/error/cast.js +158 -0
- package/.output/server/node_modules/mongoose/lib/error/createCollectionsError.js +26 -0
- package/.output/server/node_modules/mongoose/lib/error/divergentArray.js +40 -0
- package/.output/server/node_modules/mongoose/lib/error/eachAsyncMultiError.js +41 -0
- package/.output/server/node_modules/mongoose/lib/error/index.js +237 -0
- package/.output/server/node_modules/mongoose/lib/error/invalidSchemaOption.js +32 -0
- package/.output/server/node_modules/mongoose/lib/error/messages.js +47 -0
- package/.output/server/node_modules/mongoose/lib/error/missingSchema.js +33 -0
- package/.output/server/node_modules/mongoose/lib/error/mongooseError.js +13 -0
- package/.output/server/node_modules/mongoose/lib/error/notFound.js +47 -0
- package/.output/server/node_modules/mongoose/lib/error/objectExpected.js +31 -0
- package/.output/server/node_modules/mongoose/lib/error/objectParameter.js +32 -0
- package/.output/server/node_modules/mongoose/lib/error/overwriteModel.js +31 -0
- package/.output/server/node_modules/mongoose/lib/error/parallelSave.js +33 -0
- package/.output/server/node_modules/mongoose/lib/error/parallelValidate.js +33 -0
- package/.output/server/node_modules/mongoose/lib/error/serverSelection.js +62 -0
- package/.output/server/node_modules/mongoose/lib/error/setOptionError.js +103 -0
- package/.output/server/node_modules/mongoose/lib/error/strict.js +35 -0
- package/.output/server/node_modules/mongoose/lib/error/strictPopulate.js +31 -0
- package/.output/server/node_modules/mongoose/lib/error/syncIndexes.js +30 -0
- package/.output/server/node_modules/mongoose/lib/error/validation.js +105 -0
- package/.output/server/node_modules/mongoose/lib/error/validator.js +100 -0
- package/.output/server/node_modules/mongoose/lib/error/version.js +38 -0
- package/.output/server/node_modules/mongoose/lib/helpers/aggregate/prepareDiscriminatorPipeline.js +39 -0
- package/.output/server/node_modules/mongoose/lib/helpers/aggregate/stringifyFunctionOperators.js +50 -0
- package/.output/server/node_modules/mongoose/lib/helpers/arrayDepth.js +33 -0
- package/.output/server/node_modules/mongoose/lib/helpers/clone.js +236 -0
- package/.output/server/node_modules/mongoose/lib/helpers/common.js +127 -0
- package/.output/server/node_modules/mongoose/lib/helpers/createJSONSchemaTypeDefinition.js +24 -0
- package/.output/server/node_modules/mongoose/lib/helpers/cursor/eachAsync.js +225 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/applyEmbeddedDiscriminators.js +36 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/areDiscriminatorValuesEqual.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/checkEmbeddedDiscriminatorKeyProjection.js +12 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getConstructor.js +29 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getDiscriminatorByValue.js +28 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/getSchemaDiscriminatorByValue.js +27 -0
- package/.output/server/node_modules/mongoose/lib/helpers/discriminator/mergeDiscriminatorSchema.js +91 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/applyDefaults.js +132 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/applyTimestamps.js +105 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/applyVirtuals.js +146 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/cleanModifiedSubpaths.js +45 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/compile.js +238 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/getDeepestSubdocumentForPath.js +38 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/getEmbeddedDiscriminatorPath.js +53 -0
- package/.output/server/node_modules/mongoose/lib/helpers/document/handleSpreadDoc.js +35 -0
- package/.output/server/node_modules/mongoose/lib/helpers/each.js +25 -0
- package/.output/server/node_modules/mongoose/lib/helpers/error/combinePathErrors.js +22 -0
- package/.output/server/node_modules/mongoose/lib/helpers/firstKey.js +8 -0
- package/.output/server/node_modules/mongoose/lib/helpers/get.js +65 -0
- package/.output/server/node_modules/mongoose/lib/helpers/getConstructorName.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/getDefaultBulkwriteResult.js +18 -0
- package/.output/server/node_modules/mongoose/lib/helpers/getFunctionName.js +10 -0
- package/.output/server/node_modules/mongoose/lib/helpers/immediate.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/applySchemaCollation.js +13 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/decorateDiscriminatorIndexOptions.js +14 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/getRelatedIndexes.js +63 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/isDefaultIdIndex.js +18 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/isIndexEqual.js +96 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/isIndexSpecEqual.js +32 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/isTextIndex.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/indexes/isTimeseriesIndex.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isAsyncFunction.js +9 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isBsonType.js +15 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isMongooseObject.js +22 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isObject.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isPOJO.js +12 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isPromise.js +6 -0
- package/.output/server/node_modules/mongoose/lib/helpers/isSimpleValidator.js +22 -0
- package/.output/server/node_modules/mongoose/lib/helpers/minimize.js +41 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/applyDefaultsToPOJO.js +52 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/applyHooks.js +150 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/applyMethods.js +70 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/applyStaticHooks.js +80 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/applyStatics.js +13 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/castBulkWrite.js +326 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/decorateBulkWriteResult.js +8 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/discriminator.js +265 -0
- package/.output/server/node_modules/mongoose/lib/helpers/model/pushNestedArrayPaths.js +15 -0
- package/.output/server/node_modules/mongoose/lib/helpers/omitUndefined.js +20 -0
- package/.output/server/node_modules/mongoose/lib/helpers/parallelLimit.js +55 -0
- package/.output/server/node_modules/mongoose/lib/helpers/path/parentPaths.js +18 -0
- package/.output/server/node_modules/mongoose/lib/helpers/path/setDottedPath.js +33 -0
- package/.output/server/node_modules/mongoose/lib/helpers/pluralize.js +95 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/assignRawDocsToIdStructure.js +136 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/assignVals.js +360 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/createPopulateQueryFilter.js +97 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/getModelsMapForPopulate.js +766 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/getSchemaTypes.js +229 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/getVirtual.js +103 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/leanPopulateMap.js +7 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/lookupLocalFields.js +40 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/markArraySubdocsPopulated.js +49 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/modelNamesFromRefPath.js +66 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/removeDeselectedForeignField.js +31 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/setPopulatedVirtualValue.js +33 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/skipPopulateValue.js +10 -0
- package/.output/server/node_modules/mongoose/lib/helpers/populate/validateRef.js +19 -0
- package/.output/server/node_modules/mongoose/lib/helpers/printJestWarning.js +21 -0
- package/.output/server/node_modules/mongoose/lib/helpers/processConnectionOptions.js +65 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/applyProjection.js +83 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/hasIncludedChildren.js +41 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js +18 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isExclusive.js +37 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isInclusive.js +39 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isNestedProjection.js +8 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isPathExcluded.js +40 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isPathSelectedInclusive.js +28 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/isSubpath.js +14 -0
- package/.output/server/node_modules/mongoose/lib/helpers/projection/parseProjection.js +33 -0
- package/.output/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js +54 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/applyGlobalOption.js +29 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/cast$expr.js +289 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/castFilterPath.js +54 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/castUpdate.js +641 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/getEmbeddedDiscriminatorPath.js +103 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/handleImmutable.js +44 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/handleReadPreferenceAliases.js +23 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/hasDollarKeys.js +23 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/isOperator.js +14 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/sanitizeFilter.js +41 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/sanitizeProjection.js +14 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/selectPopulatedFields.js +62 -0
- package/.output/server/node_modules/mongoose/lib/helpers/query/trusted.js +13 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/addAutoId.js +7 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/applyBuiltinPlugins.js +12 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/applyPlugins.js +55 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/applyReadConcern.js +20 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/applyWriteConcern.js +37 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/cleanPositionalOperators.js +12 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/getIndexes.js +177 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/getKeysInSchemaOrder.js +28 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/getPath.js +43 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/getSubdocumentStrictValue.js +32 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/handleIdOption.js +20 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js +24 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/idGetter.js +34 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schema/merge.js +36 -0
- package/.output/server/node_modules/mongoose/lib/helpers/schematype/handleImmutable.js +50 -0
- package/.output/server/node_modules/mongoose/lib/helpers/setDefaultsOnInsert.js +161 -0
- package/.output/server/node_modules/mongoose/lib/helpers/specialProperties.js +3 -0
- package/.output/server/node_modules/mongoose/lib/helpers/symbols.js +20 -0
- package/.output/server/node_modules/mongoose/lib/helpers/timers.js +3 -0
- package/.output/server/node_modules/mongoose/lib/helpers/timestamps/setDocumentTimestamps.js +26 -0
- package/.output/server/node_modules/mongoose/lib/helpers/timestamps/setupTimestamps.js +110 -0
- package/.output/server/node_modules/mongoose/lib/helpers/topology/allServersUnknown.js +12 -0
- package/.output/server/node_modules/mongoose/lib/helpers/topology/isAtlas.js +31 -0
- package/.output/server/node_modules/mongoose/lib/helpers/topology/isSSLError.js +16 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/applyTimestampsToChildren.js +193 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/applyTimestampsToUpdate.js +130 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/castArrayFilters.js +113 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/decorateUpdateWithVersionKey.js +35 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/modifiedPaths.js +33 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/moveImmutableProperties.js +53 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/removeUnusedArrayFilters.js +32 -0
- package/.output/server/node_modules/mongoose/lib/helpers/update/updatedPathsByArrayFilter.js +27 -0
- package/.output/server/node_modules/mongoose/lib/helpers/updateValidators.js +247 -0
- package/.output/server/node_modules/mongoose/lib/index.js +17 -0
- package/.output/server/node_modules/mongoose/lib/internal.js +46 -0
- package/.output/server/node_modules/mongoose/lib/model.js +5208 -0
- package/.output/server/node_modules/mongoose/lib/modifiedPathsSnapshot.js +9 -0
- package/.output/server/node_modules/mongoose/lib/mongoose.js +1383 -0
- package/.output/server/node_modules/mongoose/lib/options/populateOptions.js +36 -0
- package/.output/server/node_modules/mongoose/lib/options/propertyOptions.js +8 -0
- package/.output/server/node_modules/mongoose/lib/options/saveOptions.js +16 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaArrayOptions.js +78 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaBufferOptions.js +38 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaDateOptions.js +71 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaDocumentArrayOptions.js +68 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaMapOptions.js +43 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaNumberOptions.js +101 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaObjectIdOptions.js +64 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaStringOptions.js +138 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaSubdocumentOptions.js +66 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaTypeOptions.js +244 -0
- package/.output/server/node_modules/mongoose/lib/options/schemaUnionOptions.js +32 -0
- package/.output/server/node_modules/mongoose/lib/options/virtualOptions.js +164 -0
- package/.output/server/node_modules/mongoose/lib/options.js +18 -0
- package/.output/server/node_modules/mongoose/lib/plugins/index.js +6 -0
- package/.output/server/node_modules/mongoose/lib/plugins/saveSubdocs.js +102 -0
- package/.output/server/node_modules/mongoose/lib/plugins/sharding.js +83 -0
- package/.output/server/node_modules/mongoose/lib/plugins/trackTransaction.js +85 -0
- package/.output/server/node_modules/mongoose/lib/plugins/validateBeforeSave.js +51 -0
- package/.output/server/node_modules/mongoose/lib/query.js +5693 -0
- package/.output/server/node_modules/mongoose/lib/queryHelpers.js +394 -0
- package/.output/server/node_modules/mongoose/lib/schema/array.js +744 -0
- package/.output/server/node_modules/mongoose/lib/schema/bigint.js +282 -0
- package/.output/server/node_modules/mongoose/lib/schema/boolean.js +332 -0
- package/.output/server/node_modules/mongoose/lib/schema/buffer.js +343 -0
- package/.output/server/node_modules/mongoose/lib/schema/date.js +467 -0
- package/.output/server/node_modules/mongoose/lib/schema/decimal128.js +263 -0
- package/.output/server/node_modules/mongoose/lib/schema/documentArray.js +701 -0
- package/.output/server/node_modules/mongoose/lib/schema/documentArrayElement.js +102 -0
- package/.output/server/node_modules/mongoose/lib/schema/double.js +246 -0
- package/.output/server/node_modules/mongoose/lib/schema/index.js +31 -0
- package/.output/server/node_modules/mongoose/lib/schema/int32.js +289 -0
- package/.output/server/node_modules/mongoose/lib/schema/map.js +201 -0
- package/.output/server/node_modules/mongoose/lib/schema/mixed.js +146 -0
- package/.output/server/node_modules/mongoose/lib/schema/number.js +498 -0
- package/.output/server/node_modules/mongoose/lib/schema/objectId.js +333 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/bitwise.js +38 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/exists.js +12 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/geospatial.js +107 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/helpers.js +32 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/text.js +39 -0
- package/.output/server/node_modules/mongoose/lib/schema/operators/type.js +20 -0
- package/.output/server/node_modules/mongoose/lib/schema/string.js +733 -0
- package/.output/server/node_modules/mongoose/lib/schema/subdocument.js +445 -0
- package/.output/server/node_modules/mongoose/lib/schema/symbols.js +5 -0
- package/.output/server/node_modules/mongoose/lib/schema/union.js +113 -0
- package/.output/server/node_modules/mongoose/lib/schema/uuid.js +326 -0
- package/.output/server/node_modules/mongoose/lib/schema.js +3185 -0
- package/.output/server/node_modules/mongoose/lib/schemaType.js +1853 -0
- package/.output/server/node_modules/mongoose/lib/stateMachine.js +232 -0
- package/.output/server/node_modules/mongoose/lib/types/array/index.js +119 -0
- package/.output/server/node_modules/mongoose/lib/types/array/isMongooseArray.js +5 -0
- package/.output/server/node_modules/mongoose/lib/types/array/methods/index.js +1096 -0
- package/.output/server/node_modules/mongoose/lib/types/arraySubdocument.js +208 -0
- package/.output/server/node_modules/mongoose/lib/types/buffer.js +294 -0
- package/.output/server/node_modules/mongoose/lib/types/decimal128.js +13 -0
- package/.output/server/node_modules/mongoose/lib/types/documentArray/index.js +113 -0
- package/.output/server/node_modules/mongoose/lib/types/documentArray/isMongooseDocumentArray.js +5 -0
- package/.output/server/node_modules/mongoose/lib/types/documentArray/methods/index.js +413 -0
- package/.output/server/node_modules/mongoose/lib/types/double.js +13 -0
- package/.output/server/node_modules/mongoose/lib/types/index.js +23 -0
- package/.output/server/node_modules/mongoose/lib/types/map.js +419 -0
- package/.output/server/node_modules/mongoose/lib/types/objectid.js +41 -0
- package/.output/server/node_modules/mongoose/lib/types/subdocument.js +492 -0
- package/.output/server/node_modules/mongoose/lib/types/uuid.js +13 -0
- package/.output/server/node_modules/mongoose/lib/utils.js +1043 -0
- package/.output/server/node_modules/mongoose/lib/validOptions.js +42 -0
- package/.output/server/node_modules/mongoose/lib/virtualType.js +204 -0
- package/.output/server/node_modules/mongoose/package.json +156 -0
- package/.output/server/node_modules/mpath/index.js +3 -0
- package/.output/server/node_modules/mpath/lib/index.js +336 -0
- package/.output/server/node_modules/mpath/lib/stringToParts.js +48 -0
- package/.output/server/node_modules/mpath/package.json +144 -0
- package/.output/server/node_modules/mquery/lib/collection/collection.js +45 -0
- package/.output/server/node_modules/mquery/lib/collection/index.js +13 -0
- package/.output/server/node_modules/mquery/lib/collection/node.js +114 -0
- package/.output/server/node_modules/mquery/lib/env.js +22 -0
- package/.output/server/node_modules/mquery/lib/mquery.js +2705 -0
- package/.output/server/node_modules/mquery/lib/permissions.js +78 -0
- package/.output/server/node_modules/mquery/lib/utils.js +297 -0
- package/.output/server/node_modules/mquery/package.json +38 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/punycode/package.json +58 -0
- package/.output/server/node_modules/punycode/punycode.js +443 -0
- package/.output/server/node_modules/sift/index.js +4 -0
- package/.output/server/node_modules/sift/lib/index.js +781 -0
- package/.output/server/node_modules/sift/package.json +61 -0
- package/.output/server/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/.output/server/node_modules/smart-buffer/build/utils.js +108 -0
- package/.output/server/node_modules/smart-buffer/package.json +81 -0
- package/.output/server/node_modules/socks/build/client/socksclient.js +793 -0
- package/.output/server/node_modules/socks/build/common/constants.js +108 -0
- package/.output/server/node_modules/socks/build/common/helpers.js +167 -0
- package/.output/server/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/.output/server/node_modules/socks/build/common/util.js +25 -0
- package/.output/server/node_modules/socks/build/index.js +18 -0
- package/.output/server/node_modules/socks/package.json +58 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/sparse-bitfield/index.js +95 -0
- package/.output/server/node_modules/sparse-bitfield/package.json +27 -0
- package/.output/server/node_modules/supports-color/index.js +202 -0
- package/.output/server/node_modules/supports-color/package.json +64 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/tr46/index.js +344 -0
- package/.output/server/node_modules/tr46/lib/mappingTable.json +1 -0
- package/.output/server/node_modules/tr46/lib/regexes.js +29 -0
- package/.output/server/node_modules/tr46/lib/statusMapping.js +9 -0
- package/.output/server/node_modules/tr46/package.json +44 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.0eF0fa-Y.mjs +236 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B5FWS6X0.mjs +207 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Chhckluj.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Ct24BOby.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead._ybhDo-G.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/webidl-conversions/lib/index.js +450 -0
- package/.output/server/node_modules/webidl-conversions/package.json +35 -0
- package/.output/server/node_modules/whatwg-url/index.js +27 -0
- package/.output/server/node_modules/whatwg-url/lib/Function.js +42 -0
- package/.output/server/node_modules/whatwg-url/lib/URL-impl.js +233 -0
- package/.output/server/node_modules/whatwg-url/lib/URL.js +499 -0
- package/.output/server/node_modules/whatwg-url/lib/URLSearchParams-impl.js +135 -0
- package/.output/server/node_modules/whatwg-url/lib/URLSearchParams.js +505 -0
- package/.output/server/node_modules/whatwg-url/lib/encoding.js +16 -0
- package/.output/server/node_modules/whatwg-url/lib/infra.js +26 -0
- package/.output/server/node_modules/whatwg-url/lib/percent-encoding.js +142 -0
- package/.output/server/node_modules/whatwg-url/lib/url-state-machine.js +1274 -0
- package/.output/server/node_modules/whatwg-url/lib/urlencoded.js +89 -0
- package/.output/server/node_modules/whatwg-url/lib/utils.js +190 -0
- package/.output/server/node_modules/whatwg-url/package.json +53 -0
- package/.output/server/node_modules/whatwg-url/webidl2js-wrapper.js +7 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +135 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/package.json +6 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/.output/server/node_modules/zod/v4/core/api.js +1082 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
- package/.output/server/node_modules/zod/v4/core/core.js +76 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +182 -0
- package/.output/server/node_modules/zod/v4/core/index.js +16 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/package.json +6 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +133 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +2093 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/.output/server/node_modules/zod/v4/core/util.js +651 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +49 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +6 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/.output/server/node_modules/zod/v4/package.json +6 -0
- package/.output/server/package.json +53 -0
- package/README.md +131 -0
- package/app/app.vue +7 -0
- package/app/assets/css/main.css +2 -0
- package/app/components/StudioEditor.vue +114 -0
- package/app/components/StudioOutput.vue +43 -0
- package/app/components/ZodMongooseStudio.vue +121 -0
- package/app/pages/index.vue +3 -0
- package/app/plugins/monaco.client.ts +14 -0
- package/bin/index.mjs +69 -0
- package/nuxt.config.ts +18 -0
- package/package.json +49 -0
- package/server/api/parse.post.ts +90 -0
- package/server/api/resolve.get.ts +38 -0
- package/server/middleware/security.ts +40 -0
|
@@ -0,0 +1,1877 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/reactivity v3.5.32
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var shared = require('@vue/shared');
|
|
11
|
+
|
|
12
|
+
let activeEffectScope;
|
|
13
|
+
class EffectScope {
|
|
14
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
15
|
+
constructor(detached = false) {
|
|
16
|
+
this.detached = detached;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
this._active = true;
|
|
21
|
+
/**
|
|
22
|
+
* @internal track `on` calls, allow `on` call multiple times
|
|
23
|
+
*/
|
|
24
|
+
this._on = 0;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
this.effects = [];
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
this.cleanups = [];
|
|
33
|
+
this._isPaused = false;
|
|
34
|
+
this.__v_skip = true;
|
|
35
|
+
this.parent = activeEffectScope;
|
|
36
|
+
if (!detached && activeEffectScope) {
|
|
37
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
38
|
+
this
|
|
39
|
+
) - 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
get active() {
|
|
43
|
+
return this._active;
|
|
44
|
+
}
|
|
45
|
+
pause() {
|
|
46
|
+
if (this._active) {
|
|
47
|
+
this._isPaused = true;
|
|
48
|
+
let i, l;
|
|
49
|
+
if (this.scopes) {
|
|
50
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
51
|
+
this.scopes[i].pause();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
55
|
+
this.effects[i].pause();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Resumes the effect scope, including all child scopes and effects.
|
|
61
|
+
*/
|
|
62
|
+
resume() {
|
|
63
|
+
if (this._active) {
|
|
64
|
+
if (this._isPaused) {
|
|
65
|
+
this._isPaused = false;
|
|
66
|
+
let i, l;
|
|
67
|
+
if (this.scopes) {
|
|
68
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
69
|
+
this.scopes[i].resume();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
73
|
+
this.effects[i].resume();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
run(fn) {
|
|
79
|
+
if (this._active) {
|
|
80
|
+
const currentEffectScope = activeEffectScope;
|
|
81
|
+
try {
|
|
82
|
+
activeEffectScope = this;
|
|
83
|
+
return fn();
|
|
84
|
+
} finally {
|
|
85
|
+
activeEffectScope = currentEffectScope;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* This should only be called on non-detached scopes
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
on() {
|
|
94
|
+
if (++this._on === 1) {
|
|
95
|
+
this.prevScope = activeEffectScope;
|
|
96
|
+
activeEffectScope = this;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* This should only be called on non-detached scopes
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
off() {
|
|
104
|
+
if (this._on > 0 && --this._on === 0) {
|
|
105
|
+
activeEffectScope = this.prevScope;
|
|
106
|
+
this.prevScope = void 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
stop(fromParent) {
|
|
110
|
+
if (this._active) {
|
|
111
|
+
this._active = false;
|
|
112
|
+
let i, l;
|
|
113
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
114
|
+
this.effects[i].stop();
|
|
115
|
+
}
|
|
116
|
+
this.effects.length = 0;
|
|
117
|
+
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
118
|
+
this.cleanups[i]();
|
|
119
|
+
}
|
|
120
|
+
this.cleanups.length = 0;
|
|
121
|
+
if (this.scopes) {
|
|
122
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
123
|
+
this.scopes[i].stop(true);
|
|
124
|
+
}
|
|
125
|
+
this.scopes.length = 0;
|
|
126
|
+
}
|
|
127
|
+
if (!this.detached && this.parent && !fromParent) {
|
|
128
|
+
const last = this.parent.scopes.pop();
|
|
129
|
+
if (last && last !== this) {
|
|
130
|
+
this.parent.scopes[this.index] = last;
|
|
131
|
+
last.index = this.index;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
this.parent = void 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function effectScope(detached) {
|
|
139
|
+
return new EffectScope(detached);
|
|
140
|
+
}
|
|
141
|
+
function getCurrentScope() {
|
|
142
|
+
return activeEffectScope;
|
|
143
|
+
}
|
|
144
|
+
function onScopeDispose(fn, failSilently = false) {
|
|
145
|
+
if (activeEffectScope) {
|
|
146
|
+
activeEffectScope.cleanups.push(fn);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
let activeSub;
|
|
151
|
+
const EffectFlags = {
|
|
152
|
+
"ACTIVE": 1,
|
|
153
|
+
"1": "ACTIVE",
|
|
154
|
+
"RUNNING": 2,
|
|
155
|
+
"2": "RUNNING",
|
|
156
|
+
"TRACKING": 4,
|
|
157
|
+
"4": "TRACKING",
|
|
158
|
+
"NOTIFIED": 8,
|
|
159
|
+
"8": "NOTIFIED",
|
|
160
|
+
"DIRTY": 16,
|
|
161
|
+
"16": "DIRTY",
|
|
162
|
+
"ALLOW_RECURSE": 32,
|
|
163
|
+
"32": "ALLOW_RECURSE",
|
|
164
|
+
"PAUSED": 64,
|
|
165
|
+
"64": "PAUSED",
|
|
166
|
+
"EVALUATED": 128,
|
|
167
|
+
"128": "EVALUATED"
|
|
168
|
+
};
|
|
169
|
+
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
|
|
170
|
+
class ReactiveEffect {
|
|
171
|
+
constructor(fn) {
|
|
172
|
+
this.fn = fn;
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
this.deps = void 0;
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
this.depsTail = void 0;
|
|
181
|
+
/**
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
this.flags = 1 | 4;
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
this.next = void 0;
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
this.cleanup = void 0;
|
|
193
|
+
this.scheduler = void 0;
|
|
194
|
+
if (activeEffectScope && activeEffectScope.active) {
|
|
195
|
+
activeEffectScope.effects.push(this);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
pause() {
|
|
199
|
+
this.flags |= 64;
|
|
200
|
+
}
|
|
201
|
+
resume() {
|
|
202
|
+
if (this.flags & 64) {
|
|
203
|
+
this.flags &= -65;
|
|
204
|
+
if (pausedQueueEffects.has(this)) {
|
|
205
|
+
pausedQueueEffects.delete(this);
|
|
206
|
+
this.trigger();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
213
|
+
notify() {
|
|
214
|
+
if (this.flags & 2 && !(this.flags & 32)) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
if (!(this.flags & 8)) {
|
|
218
|
+
batch(this);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
run() {
|
|
222
|
+
if (!(this.flags & 1)) {
|
|
223
|
+
return this.fn();
|
|
224
|
+
}
|
|
225
|
+
this.flags |= 2;
|
|
226
|
+
cleanupEffect(this);
|
|
227
|
+
prepareDeps(this);
|
|
228
|
+
const prevEffect = activeSub;
|
|
229
|
+
const prevShouldTrack = shouldTrack;
|
|
230
|
+
activeSub = this;
|
|
231
|
+
shouldTrack = true;
|
|
232
|
+
try {
|
|
233
|
+
return this.fn();
|
|
234
|
+
} finally {
|
|
235
|
+
cleanupDeps(this);
|
|
236
|
+
activeSub = prevEffect;
|
|
237
|
+
shouldTrack = prevShouldTrack;
|
|
238
|
+
this.flags &= -3;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
stop() {
|
|
242
|
+
if (this.flags & 1) {
|
|
243
|
+
for (let link = this.deps; link; link = link.nextDep) {
|
|
244
|
+
removeSub(link);
|
|
245
|
+
}
|
|
246
|
+
this.deps = this.depsTail = void 0;
|
|
247
|
+
cleanupEffect(this);
|
|
248
|
+
this.onStop && this.onStop();
|
|
249
|
+
this.flags &= -2;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
trigger() {
|
|
253
|
+
if (this.flags & 64) {
|
|
254
|
+
pausedQueueEffects.add(this);
|
|
255
|
+
} else if (this.scheduler) {
|
|
256
|
+
this.scheduler();
|
|
257
|
+
} else {
|
|
258
|
+
this.runIfDirty();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
runIfDirty() {
|
|
265
|
+
if (isDirty(this)) {
|
|
266
|
+
this.run();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
get dirty() {
|
|
270
|
+
return isDirty(this);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
let batchDepth = 0;
|
|
274
|
+
let batchedSub;
|
|
275
|
+
let batchedComputed;
|
|
276
|
+
function batch(sub, isComputed = false) {
|
|
277
|
+
sub.flags |= 8;
|
|
278
|
+
if (isComputed) {
|
|
279
|
+
sub.next = batchedComputed;
|
|
280
|
+
batchedComputed = sub;
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
sub.next = batchedSub;
|
|
284
|
+
batchedSub = sub;
|
|
285
|
+
}
|
|
286
|
+
function startBatch() {
|
|
287
|
+
batchDepth++;
|
|
288
|
+
}
|
|
289
|
+
function endBatch() {
|
|
290
|
+
if (--batchDepth > 0) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
if (batchedComputed) {
|
|
294
|
+
let e = batchedComputed;
|
|
295
|
+
batchedComputed = void 0;
|
|
296
|
+
while (e) {
|
|
297
|
+
const next = e.next;
|
|
298
|
+
e.next = void 0;
|
|
299
|
+
e.flags &= -9;
|
|
300
|
+
e = next;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
let error;
|
|
304
|
+
while (batchedSub) {
|
|
305
|
+
let e = batchedSub;
|
|
306
|
+
batchedSub = void 0;
|
|
307
|
+
while (e) {
|
|
308
|
+
const next = e.next;
|
|
309
|
+
e.next = void 0;
|
|
310
|
+
e.flags &= -9;
|
|
311
|
+
if (e.flags & 1) {
|
|
312
|
+
try {
|
|
313
|
+
;
|
|
314
|
+
e.trigger();
|
|
315
|
+
} catch (err) {
|
|
316
|
+
if (!error) error = err;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
e = next;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (error) throw error;
|
|
323
|
+
}
|
|
324
|
+
function prepareDeps(sub) {
|
|
325
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
326
|
+
link.version = -1;
|
|
327
|
+
link.prevActiveLink = link.dep.activeLink;
|
|
328
|
+
link.dep.activeLink = link;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function cleanupDeps(sub) {
|
|
332
|
+
let head;
|
|
333
|
+
let tail = sub.depsTail;
|
|
334
|
+
let link = tail;
|
|
335
|
+
while (link) {
|
|
336
|
+
const prev = link.prevDep;
|
|
337
|
+
if (link.version === -1) {
|
|
338
|
+
if (link === tail) tail = prev;
|
|
339
|
+
removeSub(link);
|
|
340
|
+
removeDep(link);
|
|
341
|
+
} else {
|
|
342
|
+
head = link;
|
|
343
|
+
}
|
|
344
|
+
link.dep.activeLink = link.prevActiveLink;
|
|
345
|
+
link.prevActiveLink = void 0;
|
|
346
|
+
link = prev;
|
|
347
|
+
}
|
|
348
|
+
sub.deps = head;
|
|
349
|
+
sub.depsTail = tail;
|
|
350
|
+
}
|
|
351
|
+
function isDirty(sub) {
|
|
352
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
353
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
354
|
+
return true;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (sub._dirty) {
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
function refreshComputed(computed) {
|
|
363
|
+
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
computed.flags &= -17;
|
|
367
|
+
if (computed.globalVersion === globalVersion) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
computed.globalVersion = globalVersion;
|
|
371
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
computed.flags |= 2;
|
|
375
|
+
const dep = computed.dep;
|
|
376
|
+
const prevSub = activeSub;
|
|
377
|
+
const prevShouldTrack = shouldTrack;
|
|
378
|
+
activeSub = computed;
|
|
379
|
+
shouldTrack = true;
|
|
380
|
+
try {
|
|
381
|
+
prepareDeps(computed);
|
|
382
|
+
const value = computed.fn(computed._value);
|
|
383
|
+
if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
|
|
384
|
+
computed.flags |= 128;
|
|
385
|
+
computed._value = value;
|
|
386
|
+
dep.version++;
|
|
387
|
+
}
|
|
388
|
+
} catch (err) {
|
|
389
|
+
dep.version++;
|
|
390
|
+
throw err;
|
|
391
|
+
} finally {
|
|
392
|
+
activeSub = prevSub;
|
|
393
|
+
shouldTrack = prevShouldTrack;
|
|
394
|
+
cleanupDeps(computed);
|
|
395
|
+
computed.flags &= -3;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
function removeSub(link, soft = false) {
|
|
399
|
+
const { dep, prevSub, nextSub } = link;
|
|
400
|
+
if (prevSub) {
|
|
401
|
+
prevSub.nextSub = nextSub;
|
|
402
|
+
link.prevSub = void 0;
|
|
403
|
+
}
|
|
404
|
+
if (nextSub) {
|
|
405
|
+
nextSub.prevSub = prevSub;
|
|
406
|
+
link.nextSub = void 0;
|
|
407
|
+
}
|
|
408
|
+
if (dep.subs === link) {
|
|
409
|
+
dep.subs = prevSub;
|
|
410
|
+
if (!prevSub && dep.computed) {
|
|
411
|
+
dep.computed.flags &= -5;
|
|
412
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
413
|
+
removeSub(l, true);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
418
|
+
dep.map.delete(dep.key);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function removeDep(link) {
|
|
422
|
+
const { prevDep, nextDep } = link;
|
|
423
|
+
if (prevDep) {
|
|
424
|
+
prevDep.nextDep = nextDep;
|
|
425
|
+
link.prevDep = void 0;
|
|
426
|
+
}
|
|
427
|
+
if (nextDep) {
|
|
428
|
+
nextDep.prevDep = prevDep;
|
|
429
|
+
link.nextDep = void 0;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function effect(fn, options) {
|
|
433
|
+
if (fn.effect instanceof ReactiveEffect) {
|
|
434
|
+
fn = fn.effect.fn;
|
|
435
|
+
}
|
|
436
|
+
const e = new ReactiveEffect(fn);
|
|
437
|
+
if (options) {
|
|
438
|
+
shared.extend(e, options);
|
|
439
|
+
}
|
|
440
|
+
try {
|
|
441
|
+
e.run();
|
|
442
|
+
} catch (err) {
|
|
443
|
+
e.stop();
|
|
444
|
+
throw err;
|
|
445
|
+
}
|
|
446
|
+
const runner = e.run.bind(e);
|
|
447
|
+
runner.effect = e;
|
|
448
|
+
return runner;
|
|
449
|
+
}
|
|
450
|
+
function stop(runner) {
|
|
451
|
+
runner.effect.stop();
|
|
452
|
+
}
|
|
453
|
+
let shouldTrack = true;
|
|
454
|
+
const trackStack = [];
|
|
455
|
+
function pauseTracking() {
|
|
456
|
+
trackStack.push(shouldTrack);
|
|
457
|
+
shouldTrack = false;
|
|
458
|
+
}
|
|
459
|
+
function enableTracking() {
|
|
460
|
+
trackStack.push(shouldTrack);
|
|
461
|
+
shouldTrack = true;
|
|
462
|
+
}
|
|
463
|
+
function resetTracking() {
|
|
464
|
+
const last = trackStack.pop();
|
|
465
|
+
shouldTrack = last === void 0 ? true : last;
|
|
466
|
+
}
|
|
467
|
+
function onEffectCleanup(fn, failSilently = false) {
|
|
468
|
+
if (activeSub instanceof ReactiveEffect) {
|
|
469
|
+
activeSub.cleanup = fn;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
function cleanupEffect(e) {
|
|
473
|
+
const { cleanup } = e;
|
|
474
|
+
e.cleanup = void 0;
|
|
475
|
+
if (cleanup) {
|
|
476
|
+
const prevSub = activeSub;
|
|
477
|
+
activeSub = void 0;
|
|
478
|
+
try {
|
|
479
|
+
cleanup();
|
|
480
|
+
} finally {
|
|
481
|
+
activeSub = prevSub;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
let globalVersion = 0;
|
|
487
|
+
class Link {
|
|
488
|
+
constructor(sub, dep) {
|
|
489
|
+
this.sub = sub;
|
|
490
|
+
this.dep = dep;
|
|
491
|
+
this.version = dep.version;
|
|
492
|
+
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
class Dep {
|
|
496
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
497
|
+
constructor(computed) {
|
|
498
|
+
this.computed = computed;
|
|
499
|
+
this.version = 0;
|
|
500
|
+
/**
|
|
501
|
+
* Link between this dep and the current active effect
|
|
502
|
+
*/
|
|
503
|
+
this.activeLink = void 0;
|
|
504
|
+
/**
|
|
505
|
+
* Doubly linked list representing the subscribing effects (tail)
|
|
506
|
+
*/
|
|
507
|
+
this.subs = void 0;
|
|
508
|
+
/**
|
|
509
|
+
* For object property deps cleanup
|
|
510
|
+
*/
|
|
511
|
+
this.map = void 0;
|
|
512
|
+
this.key = void 0;
|
|
513
|
+
/**
|
|
514
|
+
* Subscriber counter
|
|
515
|
+
*/
|
|
516
|
+
this.sc = 0;
|
|
517
|
+
/**
|
|
518
|
+
* @internal
|
|
519
|
+
*/
|
|
520
|
+
this.__v_skip = true;
|
|
521
|
+
}
|
|
522
|
+
track(debugInfo) {
|
|
523
|
+
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
let link = this.activeLink;
|
|
527
|
+
if (link === void 0 || link.sub !== activeSub) {
|
|
528
|
+
link = this.activeLink = new Link(activeSub, this);
|
|
529
|
+
if (!activeSub.deps) {
|
|
530
|
+
activeSub.deps = activeSub.depsTail = link;
|
|
531
|
+
} else {
|
|
532
|
+
link.prevDep = activeSub.depsTail;
|
|
533
|
+
activeSub.depsTail.nextDep = link;
|
|
534
|
+
activeSub.depsTail = link;
|
|
535
|
+
}
|
|
536
|
+
addSub(link);
|
|
537
|
+
} else if (link.version === -1) {
|
|
538
|
+
link.version = this.version;
|
|
539
|
+
if (link.nextDep) {
|
|
540
|
+
const next = link.nextDep;
|
|
541
|
+
next.prevDep = link.prevDep;
|
|
542
|
+
if (link.prevDep) {
|
|
543
|
+
link.prevDep.nextDep = next;
|
|
544
|
+
}
|
|
545
|
+
link.prevDep = activeSub.depsTail;
|
|
546
|
+
link.nextDep = void 0;
|
|
547
|
+
activeSub.depsTail.nextDep = link;
|
|
548
|
+
activeSub.depsTail = link;
|
|
549
|
+
if (activeSub.deps === link) {
|
|
550
|
+
activeSub.deps = next;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return link;
|
|
555
|
+
}
|
|
556
|
+
trigger(debugInfo) {
|
|
557
|
+
this.version++;
|
|
558
|
+
globalVersion++;
|
|
559
|
+
this.notify(debugInfo);
|
|
560
|
+
}
|
|
561
|
+
notify(debugInfo) {
|
|
562
|
+
startBatch();
|
|
563
|
+
try {
|
|
564
|
+
if (false) ;
|
|
565
|
+
for (let link = this.subs; link; link = link.prevSub) {
|
|
566
|
+
if (link.sub.notify()) {
|
|
567
|
+
;
|
|
568
|
+
link.sub.dep.notify();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
} finally {
|
|
572
|
+
endBatch();
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
function addSub(link) {
|
|
577
|
+
link.dep.sc++;
|
|
578
|
+
if (link.sub.flags & 4) {
|
|
579
|
+
const computed = link.dep.computed;
|
|
580
|
+
if (computed && !link.dep.subs) {
|
|
581
|
+
computed.flags |= 4 | 16;
|
|
582
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
583
|
+
addSub(l);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
const currentTail = link.dep.subs;
|
|
587
|
+
if (currentTail !== link) {
|
|
588
|
+
link.prevSub = currentTail;
|
|
589
|
+
if (currentTail) currentTail.nextSub = link;
|
|
590
|
+
}
|
|
591
|
+
link.dep.subs = link;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
595
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
596
|
+
""
|
|
597
|
+
);
|
|
598
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
599
|
+
""
|
|
600
|
+
);
|
|
601
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
602
|
+
""
|
|
603
|
+
);
|
|
604
|
+
function track(target, type, key) {
|
|
605
|
+
if (shouldTrack && activeSub) {
|
|
606
|
+
let depsMap = targetMap.get(target);
|
|
607
|
+
if (!depsMap) {
|
|
608
|
+
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
|
609
|
+
}
|
|
610
|
+
let dep = depsMap.get(key);
|
|
611
|
+
if (!dep) {
|
|
612
|
+
depsMap.set(key, dep = new Dep());
|
|
613
|
+
dep.map = depsMap;
|
|
614
|
+
dep.key = key;
|
|
615
|
+
}
|
|
616
|
+
{
|
|
617
|
+
dep.track();
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
622
|
+
const depsMap = targetMap.get(target);
|
|
623
|
+
if (!depsMap) {
|
|
624
|
+
globalVersion++;
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
const run = (dep) => {
|
|
628
|
+
if (dep) {
|
|
629
|
+
{
|
|
630
|
+
dep.trigger();
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
startBatch();
|
|
635
|
+
if (type === "clear") {
|
|
636
|
+
depsMap.forEach(run);
|
|
637
|
+
} else {
|
|
638
|
+
const targetIsArray = shared.isArray(target);
|
|
639
|
+
const isArrayIndex = targetIsArray && shared.isIntegerKey(key);
|
|
640
|
+
if (targetIsArray && key === "length") {
|
|
641
|
+
const newLength = Number(newValue);
|
|
642
|
+
depsMap.forEach((dep, key2) => {
|
|
643
|
+
if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !shared.isSymbol(key2) && key2 >= newLength) {
|
|
644
|
+
run(dep);
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
} else {
|
|
648
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
649
|
+
run(depsMap.get(key));
|
|
650
|
+
}
|
|
651
|
+
if (isArrayIndex) {
|
|
652
|
+
run(depsMap.get(ARRAY_ITERATE_KEY));
|
|
653
|
+
}
|
|
654
|
+
switch (type) {
|
|
655
|
+
case "add":
|
|
656
|
+
if (!targetIsArray) {
|
|
657
|
+
run(depsMap.get(ITERATE_KEY));
|
|
658
|
+
if (shared.isMap(target)) {
|
|
659
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
660
|
+
}
|
|
661
|
+
} else if (isArrayIndex) {
|
|
662
|
+
run(depsMap.get("length"));
|
|
663
|
+
}
|
|
664
|
+
break;
|
|
665
|
+
case "delete":
|
|
666
|
+
if (!targetIsArray) {
|
|
667
|
+
run(depsMap.get(ITERATE_KEY));
|
|
668
|
+
if (shared.isMap(target)) {
|
|
669
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
break;
|
|
673
|
+
case "set":
|
|
674
|
+
if (shared.isMap(target)) {
|
|
675
|
+
run(depsMap.get(ITERATE_KEY));
|
|
676
|
+
}
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
endBatch();
|
|
682
|
+
}
|
|
683
|
+
function getDepFromReactive(object, key) {
|
|
684
|
+
const depMap = targetMap.get(object);
|
|
685
|
+
return depMap && depMap.get(key);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
function reactiveReadArray(array) {
|
|
689
|
+
const raw = toRaw(array);
|
|
690
|
+
if (raw === array) return raw;
|
|
691
|
+
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
692
|
+
return isShallow(array) ? raw : raw.map(toReactive);
|
|
693
|
+
}
|
|
694
|
+
function shallowReadArray(arr) {
|
|
695
|
+
track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
696
|
+
return arr;
|
|
697
|
+
}
|
|
698
|
+
function toWrapped(target, item) {
|
|
699
|
+
if (isReadonly(target)) {
|
|
700
|
+
return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
701
|
+
}
|
|
702
|
+
return toReactive(item);
|
|
703
|
+
}
|
|
704
|
+
const arrayInstrumentations = {
|
|
705
|
+
__proto__: null,
|
|
706
|
+
[Symbol.iterator]() {
|
|
707
|
+
return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
|
|
708
|
+
},
|
|
709
|
+
concat(...args) {
|
|
710
|
+
return reactiveReadArray(this).concat(
|
|
711
|
+
...args.map((x) => shared.isArray(x) ? reactiveReadArray(x) : x)
|
|
712
|
+
);
|
|
713
|
+
},
|
|
714
|
+
entries() {
|
|
715
|
+
return iterator(this, "entries", (value) => {
|
|
716
|
+
value[1] = toWrapped(this, value[1]);
|
|
717
|
+
return value;
|
|
718
|
+
});
|
|
719
|
+
},
|
|
720
|
+
every(fn, thisArg) {
|
|
721
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
722
|
+
},
|
|
723
|
+
filter(fn, thisArg) {
|
|
724
|
+
return apply(
|
|
725
|
+
this,
|
|
726
|
+
"filter",
|
|
727
|
+
fn,
|
|
728
|
+
thisArg,
|
|
729
|
+
(v) => v.map((item) => toWrapped(this, item)),
|
|
730
|
+
arguments
|
|
731
|
+
);
|
|
732
|
+
},
|
|
733
|
+
find(fn, thisArg) {
|
|
734
|
+
return apply(
|
|
735
|
+
this,
|
|
736
|
+
"find",
|
|
737
|
+
fn,
|
|
738
|
+
thisArg,
|
|
739
|
+
(item) => toWrapped(this, item),
|
|
740
|
+
arguments
|
|
741
|
+
);
|
|
742
|
+
},
|
|
743
|
+
findIndex(fn, thisArg) {
|
|
744
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
745
|
+
},
|
|
746
|
+
findLast(fn, thisArg) {
|
|
747
|
+
return apply(
|
|
748
|
+
this,
|
|
749
|
+
"findLast",
|
|
750
|
+
fn,
|
|
751
|
+
thisArg,
|
|
752
|
+
(item) => toWrapped(this, item),
|
|
753
|
+
arguments
|
|
754
|
+
);
|
|
755
|
+
},
|
|
756
|
+
findLastIndex(fn, thisArg) {
|
|
757
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
758
|
+
},
|
|
759
|
+
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
760
|
+
forEach(fn, thisArg) {
|
|
761
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
762
|
+
},
|
|
763
|
+
includes(...args) {
|
|
764
|
+
return searchProxy(this, "includes", args);
|
|
765
|
+
},
|
|
766
|
+
indexOf(...args) {
|
|
767
|
+
return searchProxy(this, "indexOf", args);
|
|
768
|
+
},
|
|
769
|
+
join(separator) {
|
|
770
|
+
return reactiveReadArray(this).join(separator);
|
|
771
|
+
},
|
|
772
|
+
// keys() iterator only reads `length`, no optimization required
|
|
773
|
+
lastIndexOf(...args) {
|
|
774
|
+
return searchProxy(this, "lastIndexOf", args);
|
|
775
|
+
},
|
|
776
|
+
map(fn, thisArg) {
|
|
777
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
778
|
+
},
|
|
779
|
+
pop() {
|
|
780
|
+
return noTracking(this, "pop");
|
|
781
|
+
},
|
|
782
|
+
push(...args) {
|
|
783
|
+
return noTracking(this, "push", args);
|
|
784
|
+
},
|
|
785
|
+
reduce(fn, ...args) {
|
|
786
|
+
return reduce(this, "reduce", fn, args);
|
|
787
|
+
},
|
|
788
|
+
reduceRight(fn, ...args) {
|
|
789
|
+
return reduce(this, "reduceRight", fn, args);
|
|
790
|
+
},
|
|
791
|
+
shift() {
|
|
792
|
+
return noTracking(this, "shift");
|
|
793
|
+
},
|
|
794
|
+
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
795
|
+
some(fn, thisArg) {
|
|
796
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
797
|
+
},
|
|
798
|
+
splice(...args) {
|
|
799
|
+
return noTracking(this, "splice", args);
|
|
800
|
+
},
|
|
801
|
+
toReversed() {
|
|
802
|
+
return reactiveReadArray(this).toReversed();
|
|
803
|
+
},
|
|
804
|
+
toSorted(comparer) {
|
|
805
|
+
return reactiveReadArray(this).toSorted(comparer);
|
|
806
|
+
},
|
|
807
|
+
toSpliced(...args) {
|
|
808
|
+
return reactiveReadArray(this).toSpliced(...args);
|
|
809
|
+
},
|
|
810
|
+
unshift(...args) {
|
|
811
|
+
return noTracking(this, "unshift", args);
|
|
812
|
+
},
|
|
813
|
+
values() {
|
|
814
|
+
return iterator(this, "values", (item) => toWrapped(this, item));
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
function iterator(self, method, wrapValue) {
|
|
818
|
+
const arr = shallowReadArray(self);
|
|
819
|
+
const iter = arr[method]();
|
|
820
|
+
if (arr !== self && !isShallow(self)) {
|
|
821
|
+
iter._next = iter.next;
|
|
822
|
+
iter.next = () => {
|
|
823
|
+
const result = iter._next();
|
|
824
|
+
if (!result.done) {
|
|
825
|
+
result.value = wrapValue(result.value);
|
|
826
|
+
}
|
|
827
|
+
return result;
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
return iter;
|
|
831
|
+
}
|
|
832
|
+
const arrayProto = Array.prototype;
|
|
833
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
834
|
+
const arr = shallowReadArray(self);
|
|
835
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
836
|
+
const methodFn = arr[method];
|
|
837
|
+
if (methodFn !== arrayProto[method]) {
|
|
838
|
+
const result2 = methodFn.apply(self, args);
|
|
839
|
+
return needsWrap ? toReactive(result2) : result2;
|
|
840
|
+
}
|
|
841
|
+
let wrappedFn = fn;
|
|
842
|
+
if (arr !== self) {
|
|
843
|
+
if (needsWrap) {
|
|
844
|
+
wrappedFn = function(item, index) {
|
|
845
|
+
return fn.call(this, toWrapped(self, item), index, self);
|
|
846
|
+
};
|
|
847
|
+
} else if (fn.length > 2) {
|
|
848
|
+
wrappedFn = function(item, index) {
|
|
849
|
+
return fn.call(this, item, index, self);
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
854
|
+
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
855
|
+
}
|
|
856
|
+
function reduce(self, method, fn, args) {
|
|
857
|
+
const arr = shallowReadArray(self);
|
|
858
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
859
|
+
let wrappedFn = fn;
|
|
860
|
+
let wrapInitialAccumulator = false;
|
|
861
|
+
if (arr !== self) {
|
|
862
|
+
if (needsWrap) {
|
|
863
|
+
wrapInitialAccumulator = args.length === 0;
|
|
864
|
+
wrappedFn = function(acc, item, index) {
|
|
865
|
+
if (wrapInitialAccumulator) {
|
|
866
|
+
wrapInitialAccumulator = false;
|
|
867
|
+
acc = toWrapped(self, acc);
|
|
868
|
+
}
|
|
869
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
870
|
+
};
|
|
871
|
+
} else if (fn.length > 3) {
|
|
872
|
+
wrappedFn = function(acc, item, index) {
|
|
873
|
+
return fn.call(this, acc, item, index, self);
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
const result = arr[method](wrappedFn, ...args);
|
|
878
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
879
|
+
}
|
|
880
|
+
function searchProxy(self, method, args) {
|
|
881
|
+
const arr = toRaw(self);
|
|
882
|
+
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
883
|
+
const res = arr[method](...args);
|
|
884
|
+
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
885
|
+
args[0] = toRaw(args[0]);
|
|
886
|
+
return arr[method](...args);
|
|
887
|
+
}
|
|
888
|
+
return res;
|
|
889
|
+
}
|
|
890
|
+
function noTracking(self, method, args = []) {
|
|
891
|
+
pauseTracking();
|
|
892
|
+
startBatch();
|
|
893
|
+
const res = toRaw(self)[method].apply(self, args);
|
|
894
|
+
endBatch();
|
|
895
|
+
resetTracking();
|
|
896
|
+
return res;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
const isNonTrackableKeys = /* @__PURE__ */ shared.makeMap(`__proto__,__v_isRef,__isVue`);
|
|
900
|
+
const builtInSymbols = new Set(
|
|
901
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(shared.isSymbol)
|
|
902
|
+
);
|
|
903
|
+
function hasOwnProperty(key) {
|
|
904
|
+
if (!shared.isSymbol(key)) key = String(key);
|
|
905
|
+
const obj = toRaw(this);
|
|
906
|
+
track(obj, "has", key);
|
|
907
|
+
return obj.hasOwnProperty(key);
|
|
908
|
+
}
|
|
909
|
+
class BaseReactiveHandler {
|
|
910
|
+
constructor(_isReadonly = false, _isShallow = false) {
|
|
911
|
+
this._isReadonly = _isReadonly;
|
|
912
|
+
this._isShallow = _isShallow;
|
|
913
|
+
}
|
|
914
|
+
get(target, key, receiver) {
|
|
915
|
+
if (key === "__v_skip") return target["__v_skip"];
|
|
916
|
+
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
917
|
+
if (key === "__v_isReactive") {
|
|
918
|
+
return !isReadonly2;
|
|
919
|
+
} else if (key === "__v_isReadonly") {
|
|
920
|
+
return isReadonly2;
|
|
921
|
+
} else if (key === "__v_isShallow") {
|
|
922
|
+
return isShallow2;
|
|
923
|
+
} else if (key === "__v_raw") {
|
|
924
|
+
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
925
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
926
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
927
|
+
return target;
|
|
928
|
+
}
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
const targetIsArray = shared.isArray(target);
|
|
932
|
+
if (!isReadonly2) {
|
|
933
|
+
let fn;
|
|
934
|
+
if (targetIsArray && (fn = arrayInstrumentations[key])) {
|
|
935
|
+
return fn;
|
|
936
|
+
}
|
|
937
|
+
if (key === "hasOwnProperty") {
|
|
938
|
+
return hasOwnProperty;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
const res = Reflect.get(
|
|
942
|
+
target,
|
|
943
|
+
key,
|
|
944
|
+
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
945
|
+
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
946
|
+
// its class methods
|
|
947
|
+
isRef(target) ? target : receiver
|
|
948
|
+
);
|
|
949
|
+
if (shared.isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
950
|
+
return res;
|
|
951
|
+
}
|
|
952
|
+
if (!isReadonly2) {
|
|
953
|
+
track(target, "get", key);
|
|
954
|
+
}
|
|
955
|
+
if (isShallow2) {
|
|
956
|
+
return res;
|
|
957
|
+
}
|
|
958
|
+
if (isRef(res)) {
|
|
959
|
+
const value = targetIsArray && shared.isIntegerKey(key) ? res : res.value;
|
|
960
|
+
return isReadonly2 && shared.isObject(value) ? readonly(value) : value;
|
|
961
|
+
}
|
|
962
|
+
if (shared.isObject(res)) {
|
|
963
|
+
return isReadonly2 ? readonly(res) : reactive(res);
|
|
964
|
+
}
|
|
965
|
+
return res;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
969
|
+
constructor(isShallow2 = false) {
|
|
970
|
+
super(false, isShallow2);
|
|
971
|
+
}
|
|
972
|
+
set(target, key, value, receiver) {
|
|
973
|
+
let oldValue = target[key];
|
|
974
|
+
const isArrayWithIntegerKey = shared.isArray(target) && shared.isIntegerKey(key);
|
|
975
|
+
if (!this._isShallow) {
|
|
976
|
+
const isOldValueReadonly = isReadonly(oldValue);
|
|
977
|
+
if (!isShallow(value) && !isReadonly(value)) {
|
|
978
|
+
oldValue = toRaw(oldValue);
|
|
979
|
+
value = toRaw(value);
|
|
980
|
+
}
|
|
981
|
+
if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {
|
|
982
|
+
if (isOldValueReadonly) {
|
|
983
|
+
return true;
|
|
984
|
+
} else {
|
|
985
|
+
oldValue.value = value;
|
|
986
|
+
return true;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : shared.hasOwn(target, key);
|
|
991
|
+
const result = Reflect.set(
|
|
992
|
+
target,
|
|
993
|
+
key,
|
|
994
|
+
value,
|
|
995
|
+
isRef(target) ? target : receiver
|
|
996
|
+
);
|
|
997
|
+
if (target === toRaw(receiver)) {
|
|
998
|
+
if (!hadKey) {
|
|
999
|
+
trigger(target, "add", key, value);
|
|
1000
|
+
} else if (shared.hasChanged(value, oldValue)) {
|
|
1001
|
+
trigger(target, "set", key, value);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
return result;
|
|
1005
|
+
}
|
|
1006
|
+
deleteProperty(target, key) {
|
|
1007
|
+
const hadKey = shared.hasOwn(target, key);
|
|
1008
|
+
target[key];
|
|
1009
|
+
const result = Reflect.deleteProperty(target, key);
|
|
1010
|
+
if (result && hadKey) {
|
|
1011
|
+
trigger(target, "delete", key, void 0);
|
|
1012
|
+
}
|
|
1013
|
+
return result;
|
|
1014
|
+
}
|
|
1015
|
+
has(target, key) {
|
|
1016
|
+
const result = Reflect.has(target, key);
|
|
1017
|
+
if (!shared.isSymbol(key) || !builtInSymbols.has(key)) {
|
|
1018
|
+
track(target, "has", key);
|
|
1019
|
+
}
|
|
1020
|
+
return result;
|
|
1021
|
+
}
|
|
1022
|
+
ownKeys(target) {
|
|
1023
|
+
track(
|
|
1024
|
+
target,
|
|
1025
|
+
"iterate",
|
|
1026
|
+
shared.isArray(target) ? "length" : ITERATE_KEY
|
|
1027
|
+
);
|
|
1028
|
+
return Reflect.ownKeys(target);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
1032
|
+
constructor(isShallow2 = false) {
|
|
1033
|
+
super(true, isShallow2);
|
|
1034
|
+
}
|
|
1035
|
+
set(target, key) {
|
|
1036
|
+
return true;
|
|
1037
|
+
}
|
|
1038
|
+
deleteProperty(target, key) {
|
|
1039
|
+
return true;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
1043
|
+
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
1044
|
+
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
|
|
1045
|
+
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
1046
|
+
|
|
1047
|
+
const toShallow = (value) => value;
|
|
1048
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
1049
|
+
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
1050
|
+
return function(...args) {
|
|
1051
|
+
const target = this["__v_raw"];
|
|
1052
|
+
const rawTarget = toRaw(target);
|
|
1053
|
+
const targetIsMap = shared.isMap(rawTarget);
|
|
1054
|
+
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
1055
|
+
const isKeyOnly = method === "keys" && targetIsMap;
|
|
1056
|
+
const innerIterator = target[method](...args);
|
|
1057
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1058
|
+
!isReadonly2 && track(
|
|
1059
|
+
rawTarget,
|
|
1060
|
+
"iterate",
|
|
1061
|
+
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1062
|
+
);
|
|
1063
|
+
return shared.extend(
|
|
1064
|
+
// inheriting all iterator properties
|
|
1065
|
+
Object.create(innerIterator),
|
|
1066
|
+
{
|
|
1067
|
+
// iterator protocol
|
|
1068
|
+
next() {
|
|
1069
|
+
const { value, done } = innerIterator.next();
|
|
1070
|
+
return done ? { value, done } : {
|
|
1071
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1072
|
+
done
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
);
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
function createReadonlyMethod(type) {
|
|
1080
|
+
return function(...args) {
|
|
1081
|
+
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function createInstrumentations(readonly, shallow) {
|
|
1085
|
+
const instrumentations = {
|
|
1086
|
+
get(key) {
|
|
1087
|
+
const target = this["__v_raw"];
|
|
1088
|
+
const rawTarget = toRaw(target);
|
|
1089
|
+
const rawKey = toRaw(key);
|
|
1090
|
+
if (!readonly) {
|
|
1091
|
+
if (shared.hasChanged(key, rawKey)) {
|
|
1092
|
+
track(rawTarget, "get", key);
|
|
1093
|
+
}
|
|
1094
|
+
track(rawTarget, "get", rawKey);
|
|
1095
|
+
}
|
|
1096
|
+
const { has } = getProto(rawTarget);
|
|
1097
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1098
|
+
if (has.call(rawTarget, key)) {
|
|
1099
|
+
return wrap(target.get(key));
|
|
1100
|
+
} else if (has.call(rawTarget, rawKey)) {
|
|
1101
|
+
return wrap(target.get(rawKey));
|
|
1102
|
+
} else if (target !== rawTarget) {
|
|
1103
|
+
target.get(key);
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
get size() {
|
|
1107
|
+
const target = this["__v_raw"];
|
|
1108
|
+
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1109
|
+
return target.size;
|
|
1110
|
+
},
|
|
1111
|
+
has(key) {
|
|
1112
|
+
const target = this["__v_raw"];
|
|
1113
|
+
const rawTarget = toRaw(target);
|
|
1114
|
+
const rawKey = toRaw(key);
|
|
1115
|
+
if (!readonly) {
|
|
1116
|
+
if (shared.hasChanged(key, rawKey)) {
|
|
1117
|
+
track(rawTarget, "has", key);
|
|
1118
|
+
}
|
|
1119
|
+
track(rawTarget, "has", rawKey);
|
|
1120
|
+
}
|
|
1121
|
+
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1122
|
+
},
|
|
1123
|
+
forEach(callback, thisArg) {
|
|
1124
|
+
const observed = this;
|
|
1125
|
+
const target = observed["__v_raw"];
|
|
1126
|
+
const rawTarget = toRaw(target);
|
|
1127
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1128
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1129
|
+
return target.forEach((value, key) => {
|
|
1130
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
};
|
|
1134
|
+
shared.extend(
|
|
1135
|
+
instrumentations,
|
|
1136
|
+
readonly ? {
|
|
1137
|
+
add: createReadonlyMethod("add"),
|
|
1138
|
+
set: createReadonlyMethod("set"),
|
|
1139
|
+
delete: createReadonlyMethod("delete"),
|
|
1140
|
+
clear: createReadonlyMethod("clear")
|
|
1141
|
+
} : {
|
|
1142
|
+
add(value) {
|
|
1143
|
+
const target = toRaw(this);
|
|
1144
|
+
const proto = getProto(target);
|
|
1145
|
+
const rawValue = toRaw(value);
|
|
1146
|
+
const valueToAdd = !shallow && !isShallow(value) && !isReadonly(value) ? rawValue : value;
|
|
1147
|
+
const hadKey = proto.has.call(target, valueToAdd) || shared.hasChanged(value, valueToAdd) && proto.has.call(target, value) || shared.hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue);
|
|
1148
|
+
if (!hadKey) {
|
|
1149
|
+
target.add(valueToAdd);
|
|
1150
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1151
|
+
}
|
|
1152
|
+
return this;
|
|
1153
|
+
},
|
|
1154
|
+
set(key, value) {
|
|
1155
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1156
|
+
value = toRaw(value);
|
|
1157
|
+
}
|
|
1158
|
+
const target = toRaw(this);
|
|
1159
|
+
const { has, get } = getProto(target);
|
|
1160
|
+
let hadKey = has.call(target, key);
|
|
1161
|
+
if (!hadKey) {
|
|
1162
|
+
key = toRaw(key);
|
|
1163
|
+
hadKey = has.call(target, key);
|
|
1164
|
+
}
|
|
1165
|
+
const oldValue = get.call(target, key);
|
|
1166
|
+
target.set(key, value);
|
|
1167
|
+
if (!hadKey) {
|
|
1168
|
+
trigger(target, "add", key, value);
|
|
1169
|
+
} else if (shared.hasChanged(value, oldValue)) {
|
|
1170
|
+
trigger(target, "set", key, value);
|
|
1171
|
+
}
|
|
1172
|
+
return this;
|
|
1173
|
+
},
|
|
1174
|
+
delete(key) {
|
|
1175
|
+
const target = toRaw(this);
|
|
1176
|
+
const { has, get } = getProto(target);
|
|
1177
|
+
let hadKey = has.call(target, key);
|
|
1178
|
+
if (!hadKey) {
|
|
1179
|
+
key = toRaw(key);
|
|
1180
|
+
hadKey = has.call(target, key);
|
|
1181
|
+
}
|
|
1182
|
+
get ? get.call(target, key) : void 0;
|
|
1183
|
+
const result = target.delete(key);
|
|
1184
|
+
if (hadKey) {
|
|
1185
|
+
trigger(target, "delete", key, void 0);
|
|
1186
|
+
}
|
|
1187
|
+
return result;
|
|
1188
|
+
},
|
|
1189
|
+
clear() {
|
|
1190
|
+
const target = toRaw(this);
|
|
1191
|
+
const hadItems = target.size !== 0;
|
|
1192
|
+
const result = target.clear();
|
|
1193
|
+
if (hadItems) {
|
|
1194
|
+
trigger(
|
|
1195
|
+
target,
|
|
1196
|
+
"clear",
|
|
1197
|
+
void 0,
|
|
1198
|
+
void 0);
|
|
1199
|
+
}
|
|
1200
|
+
return result;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
);
|
|
1204
|
+
const iteratorMethods = [
|
|
1205
|
+
"keys",
|
|
1206
|
+
"values",
|
|
1207
|
+
"entries",
|
|
1208
|
+
Symbol.iterator
|
|
1209
|
+
];
|
|
1210
|
+
iteratorMethods.forEach((method) => {
|
|
1211
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1212
|
+
});
|
|
1213
|
+
return instrumentations;
|
|
1214
|
+
}
|
|
1215
|
+
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
1216
|
+
const instrumentations = createInstrumentations(isReadonly2, shallow);
|
|
1217
|
+
return (target, key, receiver) => {
|
|
1218
|
+
if (key === "__v_isReactive") {
|
|
1219
|
+
return !isReadonly2;
|
|
1220
|
+
} else if (key === "__v_isReadonly") {
|
|
1221
|
+
return isReadonly2;
|
|
1222
|
+
} else if (key === "__v_raw") {
|
|
1223
|
+
return target;
|
|
1224
|
+
}
|
|
1225
|
+
return Reflect.get(
|
|
1226
|
+
shared.hasOwn(instrumentations, key) && key in target ? instrumentations : target,
|
|
1227
|
+
key,
|
|
1228
|
+
receiver
|
|
1229
|
+
);
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
const mutableCollectionHandlers = {
|
|
1233
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, false)
|
|
1234
|
+
};
|
|
1235
|
+
const shallowCollectionHandlers = {
|
|
1236
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, true)
|
|
1237
|
+
};
|
|
1238
|
+
const readonlyCollectionHandlers = {
|
|
1239
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, false)
|
|
1240
|
+
};
|
|
1241
|
+
const shallowReadonlyCollectionHandlers = {
|
|
1242
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1246
|
+
const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1247
|
+
const readonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1248
|
+
const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1249
|
+
function targetTypeMap(rawType) {
|
|
1250
|
+
switch (rawType) {
|
|
1251
|
+
case "Object":
|
|
1252
|
+
case "Array":
|
|
1253
|
+
return 1 /* COMMON */;
|
|
1254
|
+
case "Map":
|
|
1255
|
+
case "Set":
|
|
1256
|
+
case "WeakMap":
|
|
1257
|
+
case "WeakSet":
|
|
1258
|
+
return 2 /* COLLECTION */;
|
|
1259
|
+
default:
|
|
1260
|
+
return 0 /* INVALID */;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
function getTargetType(value) {
|
|
1264
|
+
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(shared.toRawType(value));
|
|
1265
|
+
}
|
|
1266
|
+
// @__NO_SIDE_EFFECTS__
|
|
1267
|
+
function reactive(target) {
|
|
1268
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1269
|
+
return target;
|
|
1270
|
+
}
|
|
1271
|
+
return createReactiveObject(
|
|
1272
|
+
target,
|
|
1273
|
+
false,
|
|
1274
|
+
mutableHandlers,
|
|
1275
|
+
mutableCollectionHandlers,
|
|
1276
|
+
reactiveMap
|
|
1277
|
+
);
|
|
1278
|
+
}
|
|
1279
|
+
// @__NO_SIDE_EFFECTS__
|
|
1280
|
+
function shallowReactive(target) {
|
|
1281
|
+
return createReactiveObject(
|
|
1282
|
+
target,
|
|
1283
|
+
false,
|
|
1284
|
+
shallowReactiveHandlers,
|
|
1285
|
+
shallowCollectionHandlers,
|
|
1286
|
+
shallowReactiveMap
|
|
1287
|
+
);
|
|
1288
|
+
}
|
|
1289
|
+
// @__NO_SIDE_EFFECTS__
|
|
1290
|
+
function readonly(target) {
|
|
1291
|
+
return createReactiveObject(
|
|
1292
|
+
target,
|
|
1293
|
+
true,
|
|
1294
|
+
readonlyHandlers,
|
|
1295
|
+
readonlyCollectionHandlers,
|
|
1296
|
+
readonlyMap
|
|
1297
|
+
);
|
|
1298
|
+
}
|
|
1299
|
+
// @__NO_SIDE_EFFECTS__
|
|
1300
|
+
function shallowReadonly(target) {
|
|
1301
|
+
return createReactiveObject(
|
|
1302
|
+
target,
|
|
1303
|
+
true,
|
|
1304
|
+
shallowReadonlyHandlers,
|
|
1305
|
+
shallowReadonlyCollectionHandlers,
|
|
1306
|
+
shallowReadonlyMap
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1310
|
+
if (!shared.isObject(target)) {
|
|
1311
|
+
return target;
|
|
1312
|
+
}
|
|
1313
|
+
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1314
|
+
return target;
|
|
1315
|
+
}
|
|
1316
|
+
const targetType = getTargetType(target);
|
|
1317
|
+
if (targetType === 0 /* INVALID */) {
|
|
1318
|
+
return target;
|
|
1319
|
+
}
|
|
1320
|
+
const existingProxy = proxyMap.get(target);
|
|
1321
|
+
if (existingProxy) {
|
|
1322
|
+
return existingProxy;
|
|
1323
|
+
}
|
|
1324
|
+
const proxy = new Proxy(
|
|
1325
|
+
target,
|
|
1326
|
+
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
1327
|
+
);
|
|
1328
|
+
proxyMap.set(target, proxy);
|
|
1329
|
+
return proxy;
|
|
1330
|
+
}
|
|
1331
|
+
// @__NO_SIDE_EFFECTS__
|
|
1332
|
+
function isReactive(value) {
|
|
1333
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1334
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1335
|
+
}
|
|
1336
|
+
return !!(value && value["__v_isReactive"]);
|
|
1337
|
+
}
|
|
1338
|
+
// @__NO_SIDE_EFFECTS__
|
|
1339
|
+
function isReadonly(value) {
|
|
1340
|
+
return !!(value && value["__v_isReadonly"]);
|
|
1341
|
+
}
|
|
1342
|
+
// @__NO_SIDE_EFFECTS__
|
|
1343
|
+
function isShallow(value) {
|
|
1344
|
+
return !!(value && value["__v_isShallow"]);
|
|
1345
|
+
}
|
|
1346
|
+
// @__NO_SIDE_EFFECTS__
|
|
1347
|
+
function isProxy(value) {
|
|
1348
|
+
return value ? !!value["__v_raw"] : false;
|
|
1349
|
+
}
|
|
1350
|
+
// @__NO_SIDE_EFFECTS__
|
|
1351
|
+
function toRaw(observed) {
|
|
1352
|
+
const raw = observed && observed["__v_raw"];
|
|
1353
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1354
|
+
}
|
|
1355
|
+
function markRaw(value) {
|
|
1356
|
+
if (!shared.hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
1357
|
+
shared.def(value, "__v_skip", true);
|
|
1358
|
+
}
|
|
1359
|
+
return value;
|
|
1360
|
+
}
|
|
1361
|
+
const toReactive = (value) => shared.isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1362
|
+
const toReadonly = (value) => shared.isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1363
|
+
|
|
1364
|
+
// @__NO_SIDE_EFFECTS__
|
|
1365
|
+
function isRef(r) {
|
|
1366
|
+
return r ? r["__v_isRef"] === true : false;
|
|
1367
|
+
}
|
|
1368
|
+
// @__NO_SIDE_EFFECTS__
|
|
1369
|
+
function ref(value) {
|
|
1370
|
+
return createRef(value, false);
|
|
1371
|
+
}
|
|
1372
|
+
// @__NO_SIDE_EFFECTS__
|
|
1373
|
+
function shallowRef(value) {
|
|
1374
|
+
return createRef(value, true);
|
|
1375
|
+
}
|
|
1376
|
+
function createRef(rawValue, shallow) {
|
|
1377
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1378
|
+
return rawValue;
|
|
1379
|
+
}
|
|
1380
|
+
return new RefImpl(rawValue, shallow);
|
|
1381
|
+
}
|
|
1382
|
+
class RefImpl {
|
|
1383
|
+
constructor(value, isShallow2) {
|
|
1384
|
+
this.dep = new Dep();
|
|
1385
|
+
this["__v_isRef"] = true;
|
|
1386
|
+
this["__v_isShallow"] = false;
|
|
1387
|
+
this._rawValue = isShallow2 ? value : toRaw(value);
|
|
1388
|
+
this._value = isShallow2 ? value : toReactive(value);
|
|
1389
|
+
this["__v_isShallow"] = isShallow2;
|
|
1390
|
+
}
|
|
1391
|
+
get value() {
|
|
1392
|
+
{
|
|
1393
|
+
this.dep.track();
|
|
1394
|
+
}
|
|
1395
|
+
return this._value;
|
|
1396
|
+
}
|
|
1397
|
+
set value(newValue) {
|
|
1398
|
+
const oldValue = this._rawValue;
|
|
1399
|
+
const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue);
|
|
1400
|
+
newValue = useDirectValue ? newValue : toRaw(newValue);
|
|
1401
|
+
if (shared.hasChanged(newValue, oldValue)) {
|
|
1402
|
+
this._rawValue = newValue;
|
|
1403
|
+
this._value = useDirectValue ? newValue : toReactive(newValue);
|
|
1404
|
+
{
|
|
1405
|
+
this.dep.trigger();
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
function triggerRef(ref2) {
|
|
1411
|
+
if (ref2.dep) {
|
|
1412
|
+
{
|
|
1413
|
+
ref2.dep.trigger();
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
function unref(ref2) {
|
|
1418
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1419
|
+
}
|
|
1420
|
+
function toValue(source) {
|
|
1421
|
+
return shared.isFunction(source) ? source() : unref(source);
|
|
1422
|
+
}
|
|
1423
|
+
const shallowUnwrapHandlers = {
|
|
1424
|
+
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1425
|
+
set: (target, key, value, receiver) => {
|
|
1426
|
+
const oldValue = target[key];
|
|
1427
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1428
|
+
oldValue.value = value;
|
|
1429
|
+
return true;
|
|
1430
|
+
} else {
|
|
1431
|
+
return Reflect.set(target, key, value, receiver);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
function proxyRefs(objectWithRefs) {
|
|
1436
|
+
return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
1437
|
+
}
|
|
1438
|
+
class CustomRefImpl {
|
|
1439
|
+
constructor(factory) {
|
|
1440
|
+
this["__v_isRef"] = true;
|
|
1441
|
+
this._value = void 0;
|
|
1442
|
+
const dep = this.dep = new Dep();
|
|
1443
|
+
const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
|
|
1444
|
+
this._get = get;
|
|
1445
|
+
this._set = set;
|
|
1446
|
+
}
|
|
1447
|
+
get value() {
|
|
1448
|
+
return this._value = this._get();
|
|
1449
|
+
}
|
|
1450
|
+
set value(newVal) {
|
|
1451
|
+
this._set(newVal);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
function customRef(factory) {
|
|
1455
|
+
return new CustomRefImpl(factory);
|
|
1456
|
+
}
|
|
1457
|
+
// @__NO_SIDE_EFFECTS__
|
|
1458
|
+
function toRefs(object) {
|
|
1459
|
+
const ret = shared.isArray(object) ? new Array(object.length) : {};
|
|
1460
|
+
for (const key in object) {
|
|
1461
|
+
ret[key] = propertyToRef(object, key);
|
|
1462
|
+
}
|
|
1463
|
+
return ret;
|
|
1464
|
+
}
|
|
1465
|
+
class ObjectRefImpl {
|
|
1466
|
+
constructor(_object, key, _defaultValue) {
|
|
1467
|
+
this._object = _object;
|
|
1468
|
+
this._defaultValue = _defaultValue;
|
|
1469
|
+
this["__v_isRef"] = true;
|
|
1470
|
+
this._value = void 0;
|
|
1471
|
+
this._key = shared.isSymbol(key) ? key : String(key);
|
|
1472
|
+
this._raw = toRaw(_object);
|
|
1473
|
+
let shallow = true;
|
|
1474
|
+
let obj = _object;
|
|
1475
|
+
if (!shared.isArray(_object) || shared.isSymbol(this._key) || !shared.isIntegerKey(this._key)) {
|
|
1476
|
+
do {
|
|
1477
|
+
shallow = !isProxy(obj) || isShallow(obj);
|
|
1478
|
+
} while (shallow && (obj = obj["__v_raw"]));
|
|
1479
|
+
}
|
|
1480
|
+
this._shallow = shallow;
|
|
1481
|
+
}
|
|
1482
|
+
get value() {
|
|
1483
|
+
let val = this._object[this._key];
|
|
1484
|
+
if (this._shallow) {
|
|
1485
|
+
val = unref(val);
|
|
1486
|
+
}
|
|
1487
|
+
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1488
|
+
}
|
|
1489
|
+
set value(newVal) {
|
|
1490
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1491
|
+
const nestedRef = this._object[this._key];
|
|
1492
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1493
|
+
nestedRef.value = newVal;
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
this._object[this._key] = newVal;
|
|
1498
|
+
}
|
|
1499
|
+
get dep() {
|
|
1500
|
+
return getDepFromReactive(this._raw, this._key);
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
class GetterRefImpl {
|
|
1504
|
+
constructor(_getter) {
|
|
1505
|
+
this._getter = _getter;
|
|
1506
|
+
this["__v_isRef"] = true;
|
|
1507
|
+
this["__v_isReadonly"] = true;
|
|
1508
|
+
this._value = void 0;
|
|
1509
|
+
}
|
|
1510
|
+
get value() {
|
|
1511
|
+
return this._value = this._getter();
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
// @__NO_SIDE_EFFECTS__
|
|
1515
|
+
function toRef(source, key, defaultValue) {
|
|
1516
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1517
|
+
return source;
|
|
1518
|
+
} else if (shared.isFunction(source)) {
|
|
1519
|
+
return new GetterRefImpl(source);
|
|
1520
|
+
} else if (shared.isObject(source) && arguments.length > 1) {
|
|
1521
|
+
return propertyToRef(source, key, defaultValue);
|
|
1522
|
+
} else {
|
|
1523
|
+
return /* @__PURE__ */ ref(source);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function propertyToRef(source, key, defaultValue) {
|
|
1527
|
+
return new ObjectRefImpl(source, key, defaultValue);
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
class ComputedRefImpl {
|
|
1531
|
+
constructor(fn, setter, isSSR) {
|
|
1532
|
+
this.fn = fn;
|
|
1533
|
+
this.setter = setter;
|
|
1534
|
+
/**
|
|
1535
|
+
* @internal
|
|
1536
|
+
*/
|
|
1537
|
+
this._value = void 0;
|
|
1538
|
+
/**
|
|
1539
|
+
* @internal
|
|
1540
|
+
*/
|
|
1541
|
+
this.dep = new Dep(this);
|
|
1542
|
+
/**
|
|
1543
|
+
* @internal
|
|
1544
|
+
*/
|
|
1545
|
+
this.__v_isRef = true;
|
|
1546
|
+
// TODO isolatedDeclarations "__v_isReadonly"
|
|
1547
|
+
// A computed is also a subscriber that tracks other deps
|
|
1548
|
+
/**
|
|
1549
|
+
* @internal
|
|
1550
|
+
*/
|
|
1551
|
+
this.deps = void 0;
|
|
1552
|
+
/**
|
|
1553
|
+
* @internal
|
|
1554
|
+
*/
|
|
1555
|
+
this.depsTail = void 0;
|
|
1556
|
+
/**
|
|
1557
|
+
* @internal
|
|
1558
|
+
*/
|
|
1559
|
+
this.flags = 16;
|
|
1560
|
+
/**
|
|
1561
|
+
* @internal
|
|
1562
|
+
*/
|
|
1563
|
+
this.globalVersion = globalVersion - 1;
|
|
1564
|
+
/**
|
|
1565
|
+
* @internal
|
|
1566
|
+
*/
|
|
1567
|
+
this.next = void 0;
|
|
1568
|
+
// for backwards compat
|
|
1569
|
+
this.effect = this;
|
|
1570
|
+
this["__v_isReadonly"] = !setter;
|
|
1571
|
+
this.isSSR = isSSR;
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* @internal
|
|
1575
|
+
*/
|
|
1576
|
+
notify() {
|
|
1577
|
+
this.flags |= 16;
|
|
1578
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1579
|
+
activeSub !== this) {
|
|
1580
|
+
batch(this, true);
|
|
1581
|
+
return true;
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
get value() {
|
|
1585
|
+
const link = this.dep.track();
|
|
1586
|
+
refreshComputed(this);
|
|
1587
|
+
if (link) {
|
|
1588
|
+
link.version = this.dep.version;
|
|
1589
|
+
}
|
|
1590
|
+
return this._value;
|
|
1591
|
+
}
|
|
1592
|
+
set value(newValue) {
|
|
1593
|
+
if (this.setter) {
|
|
1594
|
+
this.setter(newValue);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
// @__NO_SIDE_EFFECTS__
|
|
1599
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
1600
|
+
let getter;
|
|
1601
|
+
let setter;
|
|
1602
|
+
if (shared.isFunction(getterOrOptions)) {
|
|
1603
|
+
getter = getterOrOptions;
|
|
1604
|
+
} else {
|
|
1605
|
+
getter = getterOrOptions.get;
|
|
1606
|
+
setter = getterOrOptions.set;
|
|
1607
|
+
}
|
|
1608
|
+
const cRef = new ComputedRefImpl(getter, setter, isSSR);
|
|
1609
|
+
return cRef;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
const TrackOpTypes = {
|
|
1613
|
+
"GET": "get",
|
|
1614
|
+
"HAS": "has",
|
|
1615
|
+
"ITERATE": "iterate"
|
|
1616
|
+
};
|
|
1617
|
+
const TriggerOpTypes = {
|
|
1618
|
+
"SET": "set",
|
|
1619
|
+
"ADD": "add",
|
|
1620
|
+
"DELETE": "delete",
|
|
1621
|
+
"CLEAR": "clear"
|
|
1622
|
+
};
|
|
1623
|
+
const ReactiveFlags = {
|
|
1624
|
+
"SKIP": "__v_skip",
|
|
1625
|
+
"IS_REACTIVE": "__v_isReactive",
|
|
1626
|
+
"IS_READONLY": "__v_isReadonly",
|
|
1627
|
+
"IS_SHALLOW": "__v_isShallow",
|
|
1628
|
+
"RAW": "__v_raw",
|
|
1629
|
+
"IS_REF": "__v_isRef"
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
const WatchErrorCodes = {
|
|
1633
|
+
"WATCH_GETTER": 2,
|
|
1634
|
+
"2": "WATCH_GETTER",
|
|
1635
|
+
"WATCH_CALLBACK": 3,
|
|
1636
|
+
"3": "WATCH_CALLBACK",
|
|
1637
|
+
"WATCH_CLEANUP": 4,
|
|
1638
|
+
"4": "WATCH_CLEANUP"
|
|
1639
|
+
};
|
|
1640
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
1641
|
+
const cleanupMap = /* @__PURE__ */ new WeakMap();
|
|
1642
|
+
let activeWatcher = void 0;
|
|
1643
|
+
function getCurrentWatcher() {
|
|
1644
|
+
return activeWatcher;
|
|
1645
|
+
}
|
|
1646
|
+
function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
|
|
1647
|
+
if (owner) {
|
|
1648
|
+
let cleanups = cleanupMap.get(owner);
|
|
1649
|
+
if (!cleanups) cleanupMap.set(owner, cleanups = []);
|
|
1650
|
+
cleanups.push(cleanupFn);
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
function watch(source, cb, options = shared.EMPTY_OBJ) {
|
|
1654
|
+
const { immediate, deep, once, scheduler, augmentJob, call } = options;
|
|
1655
|
+
const reactiveGetter = (source2) => {
|
|
1656
|
+
if (deep) return source2;
|
|
1657
|
+
if (isShallow(source2) || deep === false || deep === 0)
|
|
1658
|
+
return traverse(source2, 1);
|
|
1659
|
+
return traverse(source2);
|
|
1660
|
+
};
|
|
1661
|
+
let effect;
|
|
1662
|
+
let getter;
|
|
1663
|
+
let cleanup;
|
|
1664
|
+
let boundCleanup;
|
|
1665
|
+
let forceTrigger = false;
|
|
1666
|
+
let isMultiSource = false;
|
|
1667
|
+
if (isRef(source)) {
|
|
1668
|
+
getter = () => source.value;
|
|
1669
|
+
forceTrigger = isShallow(source);
|
|
1670
|
+
} else if (isReactive(source)) {
|
|
1671
|
+
getter = () => reactiveGetter(source);
|
|
1672
|
+
forceTrigger = true;
|
|
1673
|
+
} else if (shared.isArray(source)) {
|
|
1674
|
+
isMultiSource = true;
|
|
1675
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1676
|
+
getter = () => source.map((s) => {
|
|
1677
|
+
if (isRef(s)) {
|
|
1678
|
+
return s.value;
|
|
1679
|
+
} else if (isReactive(s)) {
|
|
1680
|
+
return reactiveGetter(s);
|
|
1681
|
+
} else if (shared.isFunction(s)) {
|
|
1682
|
+
return call ? call(s, 2) : s();
|
|
1683
|
+
} else ;
|
|
1684
|
+
});
|
|
1685
|
+
} else if (shared.isFunction(source)) {
|
|
1686
|
+
if (cb) {
|
|
1687
|
+
getter = call ? () => call(source, 2) : source;
|
|
1688
|
+
} else {
|
|
1689
|
+
getter = () => {
|
|
1690
|
+
if (cleanup) {
|
|
1691
|
+
pauseTracking();
|
|
1692
|
+
try {
|
|
1693
|
+
cleanup();
|
|
1694
|
+
} finally {
|
|
1695
|
+
resetTracking();
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
const currentEffect = activeWatcher;
|
|
1699
|
+
activeWatcher = effect;
|
|
1700
|
+
try {
|
|
1701
|
+
return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
|
|
1702
|
+
} finally {
|
|
1703
|
+
activeWatcher = currentEffect;
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
} else {
|
|
1708
|
+
getter = shared.NOOP;
|
|
1709
|
+
}
|
|
1710
|
+
if (cb && deep) {
|
|
1711
|
+
const baseGetter = getter;
|
|
1712
|
+
const depth = deep === true ? Infinity : deep;
|
|
1713
|
+
getter = () => traverse(baseGetter(), depth);
|
|
1714
|
+
}
|
|
1715
|
+
const scope = getCurrentScope();
|
|
1716
|
+
const watchHandle = () => {
|
|
1717
|
+
effect.stop();
|
|
1718
|
+
if (scope && scope.active) {
|
|
1719
|
+
shared.remove(scope.effects, effect);
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
if (once && cb) {
|
|
1723
|
+
const _cb = cb;
|
|
1724
|
+
cb = (...args) => {
|
|
1725
|
+
_cb(...args);
|
|
1726
|
+
watchHandle();
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
1730
|
+
const job = (immediateFirstRun) => {
|
|
1731
|
+
if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1734
|
+
if (cb) {
|
|
1735
|
+
const newValue = effect.run();
|
|
1736
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => shared.hasChanged(v, oldValue[i])) : shared.hasChanged(newValue, oldValue))) {
|
|
1737
|
+
if (cleanup) {
|
|
1738
|
+
cleanup();
|
|
1739
|
+
}
|
|
1740
|
+
const currentWatcher = activeWatcher;
|
|
1741
|
+
activeWatcher = effect;
|
|
1742
|
+
try {
|
|
1743
|
+
const args = [
|
|
1744
|
+
newValue,
|
|
1745
|
+
// pass undefined as the old value when it's changed for the first time
|
|
1746
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1747
|
+
boundCleanup
|
|
1748
|
+
];
|
|
1749
|
+
oldValue = newValue;
|
|
1750
|
+
call ? call(cb, 3, args) : (
|
|
1751
|
+
// @ts-expect-error
|
|
1752
|
+
cb(...args)
|
|
1753
|
+
);
|
|
1754
|
+
} finally {
|
|
1755
|
+
activeWatcher = currentWatcher;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
} else {
|
|
1759
|
+
effect.run();
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
if (augmentJob) {
|
|
1763
|
+
augmentJob(job);
|
|
1764
|
+
}
|
|
1765
|
+
effect = new ReactiveEffect(getter);
|
|
1766
|
+
effect.scheduler = scheduler ? () => scheduler(job, false) : job;
|
|
1767
|
+
boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);
|
|
1768
|
+
cleanup = effect.onStop = () => {
|
|
1769
|
+
const cleanups = cleanupMap.get(effect);
|
|
1770
|
+
if (cleanups) {
|
|
1771
|
+
if (call) {
|
|
1772
|
+
call(cleanups, 4);
|
|
1773
|
+
} else {
|
|
1774
|
+
for (const cleanup2 of cleanups) cleanup2();
|
|
1775
|
+
}
|
|
1776
|
+
cleanupMap.delete(effect);
|
|
1777
|
+
}
|
|
1778
|
+
};
|
|
1779
|
+
if (cb) {
|
|
1780
|
+
if (immediate) {
|
|
1781
|
+
job(true);
|
|
1782
|
+
} else {
|
|
1783
|
+
oldValue = effect.run();
|
|
1784
|
+
}
|
|
1785
|
+
} else if (scheduler) {
|
|
1786
|
+
scheduler(job.bind(null, true), true);
|
|
1787
|
+
} else {
|
|
1788
|
+
effect.run();
|
|
1789
|
+
}
|
|
1790
|
+
watchHandle.pause = effect.pause.bind(effect);
|
|
1791
|
+
watchHandle.resume = effect.resume.bind(effect);
|
|
1792
|
+
watchHandle.stop = watchHandle;
|
|
1793
|
+
return watchHandle;
|
|
1794
|
+
}
|
|
1795
|
+
function traverse(value, depth = Infinity, seen) {
|
|
1796
|
+
if (depth <= 0 || !shared.isObject(value) || value["__v_skip"]) {
|
|
1797
|
+
return value;
|
|
1798
|
+
}
|
|
1799
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
1800
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
1801
|
+
return value;
|
|
1802
|
+
}
|
|
1803
|
+
seen.set(value, depth);
|
|
1804
|
+
depth--;
|
|
1805
|
+
if (isRef(value)) {
|
|
1806
|
+
traverse(value.value, depth, seen);
|
|
1807
|
+
} else if (shared.isArray(value)) {
|
|
1808
|
+
for (let i = 0; i < value.length; i++) {
|
|
1809
|
+
traverse(value[i], depth, seen);
|
|
1810
|
+
}
|
|
1811
|
+
} else if (shared.isSet(value) || shared.isMap(value)) {
|
|
1812
|
+
value.forEach((v) => {
|
|
1813
|
+
traverse(v, depth, seen);
|
|
1814
|
+
});
|
|
1815
|
+
} else if (shared.isPlainObject(value)) {
|
|
1816
|
+
for (const key in value) {
|
|
1817
|
+
traverse(value[key], depth, seen);
|
|
1818
|
+
}
|
|
1819
|
+
for (const key of Object.getOwnPropertySymbols(value)) {
|
|
1820
|
+
if (Object.prototype.propertyIsEnumerable.call(value, key)) {
|
|
1821
|
+
traverse(value[key], depth, seen);
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
return value;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
exports.ARRAY_ITERATE_KEY = ARRAY_ITERATE_KEY;
|
|
1829
|
+
exports.EffectFlags = EffectFlags;
|
|
1830
|
+
exports.EffectScope = EffectScope;
|
|
1831
|
+
exports.ITERATE_KEY = ITERATE_KEY;
|
|
1832
|
+
exports.MAP_KEY_ITERATE_KEY = MAP_KEY_ITERATE_KEY;
|
|
1833
|
+
exports.ReactiveEffect = ReactiveEffect;
|
|
1834
|
+
exports.ReactiveFlags = ReactiveFlags;
|
|
1835
|
+
exports.TrackOpTypes = TrackOpTypes;
|
|
1836
|
+
exports.TriggerOpTypes = TriggerOpTypes;
|
|
1837
|
+
exports.WatchErrorCodes = WatchErrorCodes;
|
|
1838
|
+
exports.computed = computed;
|
|
1839
|
+
exports.customRef = customRef;
|
|
1840
|
+
exports.effect = effect;
|
|
1841
|
+
exports.effectScope = effectScope;
|
|
1842
|
+
exports.enableTracking = enableTracking;
|
|
1843
|
+
exports.getCurrentScope = getCurrentScope;
|
|
1844
|
+
exports.getCurrentWatcher = getCurrentWatcher;
|
|
1845
|
+
exports.isProxy = isProxy;
|
|
1846
|
+
exports.isReactive = isReactive;
|
|
1847
|
+
exports.isReadonly = isReadonly;
|
|
1848
|
+
exports.isRef = isRef;
|
|
1849
|
+
exports.isShallow = isShallow;
|
|
1850
|
+
exports.markRaw = markRaw;
|
|
1851
|
+
exports.onEffectCleanup = onEffectCleanup;
|
|
1852
|
+
exports.onScopeDispose = onScopeDispose;
|
|
1853
|
+
exports.onWatcherCleanup = onWatcherCleanup;
|
|
1854
|
+
exports.pauseTracking = pauseTracking;
|
|
1855
|
+
exports.proxyRefs = proxyRefs;
|
|
1856
|
+
exports.reactive = reactive;
|
|
1857
|
+
exports.reactiveReadArray = reactiveReadArray;
|
|
1858
|
+
exports.readonly = readonly;
|
|
1859
|
+
exports.ref = ref;
|
|
1860
|
+
exports.resetTracking = resetTracking;
|
|
1861
|
+
exports.shallowReactive = shallowReactive;
|
|
1862
|
+
exports.shallowReadArray = shallowReadArray;
|
|
1863
|
+
exports.shallowReadonly = shallowReadonly;
|
|
1864
|
+
exports.shallowRef = shallowRef;
|
|
1865
|
+
exports.stop = stop;
|
|
1866
|
+
exports.toRaw = toRaw;
|
|
1867
|
+
exports.toReactive = toReactive;
|
|
1868
|
+
exports.toReadonly = toReadonly;
|
|
1869
|
+
exports.toRef = toRef;
|
|
1870
|
+
exports.toRefs = toRefs;
|
|
1871
|
+
exports.toValue = toValue;
|
|
1872
|
+
exports.track = track;
|
|
1873
|
+
exports.traverse = traverse;
|
|
1874
|
+
exports.trigger = trigger;
|
|
1875
|
+
exports.triggerRef = triggerRef;
|
|
1876
|
+
exports.unref = unref;
|
|
1877
|
+
exports.watch = watch;
|