nuxt-ignis 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.data/content/contents.sqlite +0 -0
- package/.env +1 -1
- package/.nuxt/components.d.ts +480 -858
- package/.nuxt/content/components.ts +177 -320
- package/.nuxt/dev/index.mjs +542 -530
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.mjs +1 -1
- package/.nuxt/dist/server/client.precomputed.mjs +1 -1
- package/.nuxt/eslint-typegen.d.ts +60 -111
- package/.nuxt/eslint.config.d.mts +2 -2
- package/.nuxt/eslint.config.mjs +9 -9
- package/.nuxt/imports.d.ts +71 -70
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +13 -12
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +8 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
- package/.nuxt/nitro.json +4 -4
- package/.nuxt/nuxt.d.ts +6 -6
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +7 -6
- package/.nuxt/tsconfig.app.json +192 -188
- package/.nuxt/tsconfig.json +195 -191
- package/.nuxt/tsconfig.node.json +108 -104
- package/.nuxt/tsconfig.server.json +128 -127
- package/.nuxt/tsconfig.shared.json +62 -62
- package/.nuxt/types/build.d.ts +1 -1
- package/.nuxt/types/components.d.ts +480 -858
- package/.nuxt/types/i18n-plugin.d.ts +2 -2
- package/.nuxt/types/imports.d.ts +368 -366
- package/.nuxt/types/modules.d.ts +22 -24
- package/.nuxt/types/nitro-imports.d.ts +66 -66
- package/.nuxt/types/nitro-nuxt.d.ts +1 -1
- package/.nuxt/types/nitro-routes.d.ts +16 -16
- package/.nuxt/types/plugins.d.ts +37 -37
- package/.nuxt/types/runtime-config.d.ts +3 -1
- package/.output/nitro.json +2 -2
- package/.output/public/_ignis-config.json +6 -0
- package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
- package/.output/public/_nuxt/-z2jk33i.js +1 -0
- package/.output/public/_nuxt/3L5yAyVe.js +1 -0
- package/.output/public/_nuxt/8nlalpbc.js +1 -0
- package/.output/public/_nuxt/As5Zy5cG.js +1 -0
- package/.output/public/_nuxt/B-TDuiGE.js +1 -0
- package/.output/public/_nuxt/B04mZI32.js +1 -0
- package/.output/public/_nuxt/B3zmx-p1.js +1 -0
- package/.output/public/_nuxt/B4eQjLRH.js +1 -0
- package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
- package/.output/public/_nuxt/BB2ULiwb.js +1 -0
- package/.output/public/_nuxt/BEvX3xjB.js +1 -0
- package/.output/public/_nuxt/BFcGh2xo.js +1 -0
- package/.output/public/_nuxt/BFdGKCUO.js +1 -0
- package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
- package/.output/public/_nuxt/BeRTSVEP.js +1 -0
- package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
- package/.output/public/_nuxt/BvFz8iHh.js +1 -0
- package/.output/public/_nuxt/BwUgVogm.js +1 -0
- package/.output/public/_nuxt/C1fHW8CN.js +1 -0
- package/.output/public/_nuxt/C1getMtX.js +49 -0
- package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
- package/.output/public/_nuxt/CExm4AMI.js +1 -0
- package/.output/public/_nuxt/CHcd0nHy.js +1 -0
- package/.output/public/_nuxt/CTbEZMxa.js +1 -0
- package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
- package/.output/public/_nuxt/Cna7T5zY.js +1 -0
- package/.output/public/_nuxt/CnghUxEk.js +1 -0
- package/.output/public/_nuxt/CvJSUdvI.js +1 -0
- package/.output/public/_nuxt/CwgBHvd_.js +1 -0
- package/.output/public/_nuxt/D1nIr4-J.js +1 -0
- package/.output/public/_nuxt/D2atCez-.js +1 -0
- package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
- package/.output/public/_nuxt/D5duQQkG.js +1 -0
- package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
- package/.output/public/_nuxt/DB3c8m3K.js +1 -0
- package/.output/public/_nuxt/DFP1sKjc.js +1 -0
- package/.output/public/_nuxt/DI5_qtj_.js +1 -0
- package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
- package/.output/public/_nuxt/DN3AlbuD.js +1 -0
- package/.output/public/_nuxt/DPDbQA17.js +1 -0
- package/.output/public/_nuxt/DSErOj49.js +1 -0
- package/.output/public/_nuxt/DXrSmKSt.js +1 -0
- package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
- package/.output/public/_nuxt/DgCebJqk.js +1 -0
- package/.output/public/_nuxt/DhhwMwQM.js +1 -0
- package/.output/public/_nuxt/Djhwz52y.js +1 -0
- package/.output/public/_nuxt/DnE1KSqg.js +1 -0
- package/.output/public/_nuxt/DncFEy6i.js +1 -0
- package/.output/public/_nuxt/DpZCZGQO.js +1 -0
- package/.output/public/_nuxt/Dx95U2T3.js +1 -0
- package/.output/public/_nuxt/FUdAqSn9.js +9 -0
- package/.output/public/_nuxt/GvxWNFgu.js +1 -0
- package/.output/public/_nuxt/HgKyGH3C.js +1 -0
- package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
- package/.output/public/_nuxt/LpFrvoF7.js +1 -0
- package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
- package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
- package/.output/public/_nuxt/U1_7ggcx.js +1 -0
- package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
- package/.output/public/_nuxt/ahq42_9S.js +1 -0
- package/.output/public/_nuxt/b0AtYQ73.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
- package/.output/public/_nuxt/efC_w6sP.js +1 -0
- package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
- package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
- package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
- package/.output/public/_nuxt/ulE7jr93.js +1 -0
- package/.output/public/_nuxt/xHyrElgL.js +1 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +1176 -1775
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
- package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
- package/.output/server/chunks/raw/headers.mjs.map +1 -1
- package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
- package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +27 -2
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
- package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
- package/.output/server/chunks/virtual/global-sources.mjs +0 -8
- package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/{entities@4.5.0/lib/decode_codepoint.js → entities@7.0.0/dist/commonjs/decode-codepoint.js} +16 -15
- package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
- package/.output/server/node_modules/@intlify/core/package.json +3 -3
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
- package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
- package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
- package/.output/server/node_modules/@intlify/shared/package.json +1 -1
- package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
- package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
- package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
- package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
- package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
- package/.output/server/node_modules/@poppinss/string/package.json +28 -25
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
- package/.output/server/node_modules/@shikijs/core/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
- package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
- package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
- package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
- package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
- package/.output/server/node_modules/@shikijs/types/package.json +1 -1
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
- package/.output/server/node_modules/devalue/index.js +1 -0
- package/.output/server/node_modules/devalue/package.json +1 -1
- package/.output/server/node_modules/devalue/src/parse.js +5 -1
- package/.output/server/node_modules/devalue/src/stringify.js +7 -3
- package/.output/server/node_modules/devalue/src/uneval.js +7 -3
- package/.output/server/node_modules/devalue/src/utils.js +5 -1
- package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
- package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
- package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
- package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
- package/.output/server/node_modules/jose/package.json +1 -1
- package/.output/server/node_modules/node-mock-http/package.json +10 -10
- package/.output/server/node_modules/regex/package.json +6 -6
- package/.output/server/node_modules/regex/src/atomic.js +6 -3
- package/.output/server/node_modules/shiki/package.json +7 -7
- package/.output/server/node_modules/strnum/package.json +1 -1
- package/.output/server/node_modules/strnum/strnum.js +1 -1
- package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
- package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
- package/.output/server/node_modules/vue-router/package.json +2 -3
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
- package/.output/server/node_modules/yaml/dist/errors.js +1 -1
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
- package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
- package/.output/server/node_modules/yaml/package.json +4 -4
- package/.output/server/package.json +35 -38
- package/bin/set-app-vue.js +1 -1
- package/bin/set-css.js +1 -1
- package/bin/set-eslint.js +1 -1
- package/bin/setup.js +3 -3
- package/eslint.config.mjs +7 -4
- package/package.json +7 -7
- package/public/_ignis-config.json +6 -0
- package/vitest.config.ts +1 -3
- package/.output/public/_nuxt/-PRJHlJd.js +0 -1
- package/.output/public/_nuxt/38NkCNo_.js +0 -0
- package/.output/public/_nuxt/4p0_eEbF.js +0 -0
- package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
- package/.output/public/_nuxt/5msm7UDY.js +0 -0
- package/.output/public/_nuxt/7I_cTX05.js +0 -1
- package/.output/public/_nuxt/7N8aGG8C.js +0 -1
- package/.output/public/_nuxt/9j0d6I4O.js +0 -0
- package/.output/public/_nuxt/B7b1sBVf.js +0 -0
- package/.output/public/_nuxt/B7pFyPXj.js +0 -1
- package/.output/public/_nuxt/B8s7UrMM.js +0 -1
- package/.output/public/_nuxt/BHBmrOu8.js +0 -1
- package/.output/public/_nuxt/BHIv_dM4.js +0 -0
- package/.output/public/_nuxt/BI2n4fU-.js +0 -0
- package/.output/public/_nuxt/BJos6QuZ.js +0 -0
- package/.output/public/_nuxt/BKsXoEBs.js +0 -0
- package/.output/public/_nuxt/BNKvjWkT.js +0 -1
- package/.output/public/_nuxt/BQmtXkqc.js +0 -1
- package/.output/public/_nuxt/BQuCJQB8.js +0 -0
- package/.output/public/_nuxt/BSEIdlOb.js +0 -0
- package/.output/public/_nuxt/BST7mczs.js +0 -1
- package/.output/public/_nuxt/BTAjWPAo.js +0 -1
- package/.output/public/_nuxt/BYIIksjz.js +0 -0
- package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
- package/.output/public/_nuxt/Bg-6qayI.js +0 -1
- package/.output/public/_nuxt/BgP-osMP.js +0 -1
- package/.output/public/_nuxt/BiCkyLWS.js +0 -1
- package/.output/public/_nuxt/BjN_umGo.js +0 -1
- package/.output/public/_nuxt/BqK0HYmw.js +0 -1
- package/.output/public/_nuxt/BrSteMIA.js +0 -1
- package/.output/public/_nuxt/C-MeLOeF.js +0 -1
- package/.output/public/_nuxt/C-OKZMJp.js +0 -1
- package/.output/public/_nuxt/C6tJinWY.js +0 -0
- package/.output/public/_nuxt/C7lLQr2h.js +0 -0
- package/.output/public/_nuxt/CDLGLk8m.js +0 -1
- package/.output/public/_nuxt/CDT62st6.js +0 -1
- package/.output/public/_nuxt/CFimyBH-.js +0 -0
- package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
- package/.output/public/_nuxt/CKPnIC-C.js +0 -0
- package/.output/public/_nuxt/COPw3T3p.js +0 -1
- package/.output/public/_nuxt/CQGFUxxa.js +0 -1
- package/.output/public/_nuxt/CSX_cLY6.js +0 -1
- package/.output/public/_nuxt/CaVNnfk7.js +0 -0
- package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
- package/.output/public/_nuxt/CdygaddQ.js +0 -9
- package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
- package/.output/public/_nuxt/CfmMK6-y.js +0 -1
- package/.output/public/_nuxt/Civ5r6YF.js +0 -1
- package/.output/public/_nuxt/CkdnMzBA.js +0 -0
- package/.output/public/_nuxt/CnlJVizr.js +0 -1
- package/.output/public/_nuxt/Coqgx10n.js +0 -0
- package/.output/public/_nuxt/CxMUMwzI.js +0 -1
- package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
- package/.output/public/_nuxt/CzKgiVVn.js +0 -1
- package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
- package/.output/public/_nuxt/D2vgCRoc.js +0 -1
- package/.output/public/_nuxt/D4fuXfD_.js +0 -1
- package/.output/public/_nuxt/D5IuxRu4.js +0 -1
- package/.output/public/_nuxt/D5j9Embb.js +0 -1
- package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
- package/.output/public/_nuxt/DAIwjxRT.js +0 -0
- package/.output/public/_nuxt/DBEY94Mo.js +0 -0
- package/.output/public/_nuxt/DCQOMtdo.js +0 -1
- package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
- package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
- package/.output/public/_nuxt/DL4qe-W_.js +0 -0
- package/.output/public/_nuxt/DLKI6lgi.js +0 -0
- package/.output/public/_nuxt/DOAeoYpG.js +0 -0
- package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
- package/.output/public/_nuxt/DP_txrAq.js +0 -1
- package/.output/public/_nuxt/DQKS5ddY.js +0 -1
- package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
- package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
- package/.output/public/_nuxt/DdWDmJe7.js +0 -0
- package/.output/public/_nuxt/Df59gZou.js +0 -0
- package/.output/public/_nuxt/DiIccoHR.js +0 -0
- package/.output/public/_nuxt/DiL3rzK6.js +0 -1
- package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
- package/.output/public/_nuxt/DmRrrdJv.js +0 -1
- package/.output/public/_nuxt/Do5nYv4E.js +0 -0
- package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
- package/.output/public/_nuxt/DrE64K_R.js +0 -1
- package/.output/public/_nuxt/DrskXsQH.js +0 -1
- package/.output/public/_nuxt/Ds7AWph0.js +0 -0
- package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
- package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
- package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
- package/.output/public/_nuxt/QyE4cqYn.js +0 -1
- package/.output/public/_nuxt/Tcmkoyas.js +0 -1
- package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
- package/.output/public/_nuxt/VOEA7UHD.js +0 -0
- package/.output/public/_nuxt/WOOfaOjG.js +0 -1
- package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
- package/.output/public/_nuxt/ZDbum-dK.js +0 -1
- package/.output/public/_nuxt/ZTY82FYd.js +0 -0
- package/.output/public/_nuxt/asVu8S_S.js +0 -51
- package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
- package/.output/public/_nuxt/cjlVjclE.js +0 -1
- package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
- package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
- package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
- package/.output/public/_nuxt/gmjYz5n6.js +0 -0
- package/.output/public/_nuxt/iatO0zkI.js +0 -1
- package/.output/public/_nuxt/jieRiiOw.js +0 -0
- package/.output/public/_nuxt/lAhMwKxb.js +0 -1
- package/.output/public/_nuxt/mHcxE7OD.js +0 -0
- package/.output/public/_nuxt/n17zLPF6.js +0 -0
- package/.output/public/_nuxt/ncv2QjU2.js +0 -1
- package/.output/public/_nuxt/osXHzmfu.js +0 -1
- package/.output/public/_nuxt/plapqmiu.js +0 -1
- package/.output/public/_nuxt/pnNmDVjA.js +0 -0
- package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
- package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
- package/.output/public/_nuxt/t9C3L8ir.js +0 -1
- package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
- package/.output/public/_nuxt/z6h75OXJ.js +0 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
- package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
- package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
- package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
- package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
- package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
- package/.output/server/node_modules/bytes/index.js +0 -170
- package/.output/server/node_modules/bytes/package.json +0 -42
- package/.output/server/node_modules/truncatise/index.js +0 -188
- package/.output/server/node_modules/truncatise/package.json +0 -36
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/server-renderer/index.mjs +0 -0
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
exports.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
3
|
+
exports.xmlDecodeTree = exports.htmlDecodeTree = exports.replaceCodePoint = exports.fromCodePoint = exports.decodeCodePoint = exports.EntityDecoder = exports.DecodingMode = void 0;
|
|
4
|
+
exports.determineBranch = determineBranch;
|
|
5
|
+
exports.decodeHTML = decodeHTML;
|
|
6
|
+
exports.decodeHTMLAttribute = decodeHTMLAttribute;
|
|
7
|
+
exports.decodeHTMLStrict = decodeHTMLStrict;
|
|
8
|
+
exports.decodeXML = decodeXML;
|
|
9
|
+
const decode_codepoint_js_1 = require("./decode-codepoint.js");
|
|
10
|
+
const decode_data_html_js_1 = require("./generated/decode-data-html.js");
|
|
11
|
+
const decode_data_xml_js_1 = require("./generated/decode-data-xml.js");
|
|
12
|
+
const bin_trie_flags_js_1 = require("./internal/bin-trie-flags.js");
|
|
39
13
|
var CharCodes;
|
|
40
14
|
(function (CharCodes) {
|
|
41
15
|
CharCodes[CharCodes["NUM"] = 35] = "NUM";
|
|
@@ -52,13 +26,7 @@ var CharCodes;
|
|
|
52
26
|
CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
|
|
53
27
|
})(CharCodes || (CharCodes = {}));
|
|
54
28
|
/** Bit that needs to be set to convert an upper case ASCII character to lower case */
|
|
55
|
-
|
|
56
|
-
var BinTrieFlags;
|
|
57
|
-
(function (BinTrieFlags) {
|
|
58
|
-
BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
|
|
59
|
-
BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
|
|
60
|
-
BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
|
61
|
-
})(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
|
|
29
|
+
const TO_LOWER_BIT = 32;
|
|
62
30
|
function isNumber(code) {
|
|
63
31
|
return code >= CharCodes.ZERO && code <= CharCodes.NINE;
|
|
64
32
|
}
|
|
@@ -96,13 +64,14 @@ var DecodingMode;
|
|
|
96
64
|
DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
|
|
97
65
|
/** Entities in attributes have limitations on ending characters. */
|
|
98
66
|
DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
|
|
99
|
-
})(DecodingMode
|
|
67
|
+
})(DecodingMode || (exports.DecodingMode = DecodingMode = {}));
|
|
100
68
|
/**
|
|
101
69
|
* Token decoder with support of writing partial entities.
|
|
102
70
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
71
|
+
class EntityDecoder {
|
|
72
|
+
constructor(
|
|
105
73
|
/** The tree used to decode entities. */
|
|
74
|
+
// biome-ignore lint/correctness/noUnusedPrivateClassMembers: False positive
|
|
106
75
|
decodeTree,
|
|
107
76
|
/**
|
|
108
77
|
* The function that is called when a codepoint is decoded.
|
|
@@ -138,14 +107,14 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
138
107
|
this.decodeMode = DecodingMode.Strict;
|
|
139
108
|
}
|
|
140
109
|
/** Resets the instance to make it reusable. */
|
|
141
|
-
|
|
110
|
+
startEntity(decodeMode) {
|
|
142
111
|
this.decodeMode = decodeMode;
|
|
143
112
|
this.state = EntityDecoderState.EntityStart;
|
|
144
113
|
this.result = 0;
|
|
145
114
|
this.treeIndex = 0;
|
|
146
115
|
this.excess = 1;
|
|
147
116
|
this.consumed = 1;
|
|
148
|
-
}
|
|
117
|
+
}
|
|
149
118
|
/**
|
|
150
119
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
151
120
|
* If the entity is incomplete, the decoder will return -1.
|
|
@@ -153,113 +122,106 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
153
122
|
* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
|
|
154
123
|
* entity is incomplete, and resume when the next string is written.
|
|
155
124
|
*
|
|
156
|
-
* @param
|
|
125
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
157
126
|
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
158
127
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
159
128
|
*/
|
|
160
|
-
|
|
129
|
+
write(input, offset) {
|
|
161
130
|
switch (this.state) {
|
|
162
131
|
case EntityDecoderState.EntityStart: {
|
|
163
|
-
if (
|
|
132
|
+
if (input.charCodeAt(offset) === CharCodes.NUM) {
|
|
164
133
|
this.state = EntityDecoderState.NumericStart;
|
|
165
134
|
this.consumed += 1;
|
|
166
|
-
return this.stateNumericStart(
|
|
135
|
+
return this.stateNumericStart(input, offset + 1);
|
|
167
136
|
}
|
|
168
137
|
this.state = EntityDecoderState.NamedEntity;
|
|
169
|
-
return this.stateNamedEntity(
|
|
138
|
+
return this.stateNamedEntity(input, offset);
|
|
170
139
|
}
|
|
171
140
|
case EntityDecoderState.NumericStart: {
|
|
172
|
-
return this.stateNumericStart(
|
|
141
|
+
return this.stateNumericStart(input, offset);
|
|
173
142
|
}
|
|
174
143
|
case EntityDecoderState.NumericDecimal: {
|
|
175
|
-
return this.stateNumericDecimal(
|
|
144
|
+
return this.stateNumericDecimal(input, offset);
|
|
176
145
|
}
|
|
177
146
|
case EntityDecoderState.NumericHex: {
|
|
178
|
-
return this.stateNumericHex(
|
|
147
|
+
return this.stateNumericHex(input, offset);
|
|
179
148
|
}
|
|
180
149
|
case EntityDecoderState.NamedEntity: {
|
|
181
|
-
return this.stateNamedEntity(
|
|
150
|
+
return this.stateNamedEntity(input, offset);
|
|
182
151
|
}
|
|
183
152
|
}
|
|
184
|
-
}
|
|
153
|
+
}
|
|
185
154
|
/**
|
|
186
155
|
* Switches between the numeric decimal and hexadecimal states.
|
|
187
156
|
*
|
|
188
157
|
* Equivalent to the `Numeric character reference state` in the HTML spec.
|
|
189
158
|
*
|
|
190
|
-
* @param
|
|
159
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
191
160
|
* @param offset The current offset.
|
|
192
161
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
193
162
|
*/
|
|
194
|
-
|
|
195
|
-
if (offset >=
|
|
163
|
+
stateNumericStart(input, offset) {
|
|
164
|
+
if (offset >= input.length) {
|
|
196
165
|
return -1;
|
|
197
166
|
}
|
|
198
|
-
if ((
|
|
167
|
+
if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
|
|
199
168
|
this.state = EntityDecoderState.NumericHex;
|
|
200
169
|
this.consumed += 1;
|
|
201
|
-
return this.stateNumericHex(
|
|
170
|
+
return this.stateNumericHex(input, offset + 1);
|
|
202
171
|
}
|
|
203
172
|
this.state = EntityDecoderState.NumericDecimal;
|
|
204
|
-
return this.stateNumericDecimal(
|
|
205
|
-
}
|
|
206
|
-
EntityDecoder.prototype.addToNumericResult = function (str, start, end, base) {
|
|
207
|
-
if (start !== end) {
|
|
208
|
-
var digitCount = end - start;
|
|
209
|
-
this.result =
|
|
210
|
-
this.result * Math.pow(base, digitCount) +
|
|
211
|
-
parseInt(str.substr(start, digitCount), base);
|
|
212
|
-
this.consumed += digitCount;
|
|
213
|
-
}
|
|
214
|
-
};
|
|
173
|
+
return this.stateNumericDecimal(input, offset);
|
|
174
|
+
}
|
|
215
175
|
/**
|
|
216
176
|
* Parses a hexadecimal numeric entity.
|
|
217
177
|
*
|
|
218
178
|
* Equivalent to the `Hexademical character reference state` in the HTML spec.
|
|
219
179
|
*
|
|
220
|
-
* @param
|
|
180
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
221
181
|
* @param offset The current offset.
|
|
222
182
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
223
183
|
*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
var char = str.charCodeAt(offset);
|
|
184
|
+
stateNumericHex(input, offset) {
|
|
185
|
+
while (offset < input.length) {
|
|
186
|
+
const char = input.charCodeAt(offset);
|
|
228
187
|
if (isNumber(char) || isHexadecimalCharacter(char)) {
|
|
229
|
-
|
|
188
|
+
// Convert hex digit to value (0-15); 'a'/'A' -> 10.
|
|
189
|
+
const digit = char <= CharCodes.NINE
|
|
190
|
+
? char - CharCodes.ZERO
|
|
191
|
+
: (char | TO_LOWER_BIT) - CharCodes.LOWER_A + 10;
|
|
192
|
+
this.result = this.result * 16 + digit;
|
|
193
|
+
this.consumed++;
|
|
194
|
+
offset++;
|
|
230
195
|
}
|
|
231
196
|
else {
|
|
232
|
-
this.addToNumericResult(str, startIdx, offset, 16);
|
|
233
197
|
return this.emitNumericEntity(char, 3);
|
|
234
198
|
}
|
|
235
199
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
};
|
|
200
|
+
return -1; // Incomplete entity
|
|
201
|
+
}
|
|
239
202
|
/**
|
|
240
203
|
* Parses a decimal numeric entity.
|
|
241
204
|
*
|
|
242
205
|
* Equivalent to the `Decimal character reference state` in the HTML spec.
|
|
243
206
|
*
|
|
244
|
-
* @param
|
|
207
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
245
208
|
* @param offset The current offset.
|
|
246
209
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
247
210
|
*/
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
var char = str.charCodeAt(offset);
|
|
211
|
+
stateNumericDecimal(input, offset) {
|
|
212
|
+
while (offset < input.length) {
|
|
213
|
+
const char = input.charCodeAt(offset);
|
|
252
214
|
if (isNumber(char)) {
|
|
253
|
-
|
|
215
|
+
this.result = this.result * 10 + (char - CharCodes.ZERO);
|
|
216
|
+
this.consumed++;
|
|
217
|
+
offset++;
|
|
254
218
|
}
|
|
255
219
|
else {
|
|
256
|
-
this.addToNumericResult(str, startIdx, offset, 10);
|
|
257
220
|
return this.emitNumericEntity(char, 2);
|
|
258
221
|
}
|
|
259
222
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
};
|
|
223
|
+
return -1; // Incomplete entity
|
|
224
|
+
}
|
|
263
225
|
/**
|
|
264
226
|
* Validate and emit a numeric entity.
|
|
265
227
|
*
|
|
@@ -273,7 +235,7 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
273
235
|
* was consumed.
|
|
274
236
|
* @returns The number of characters that were consumed.
|
|
275
237
|
*/
|
|
276
|
-
|
|
238
|
+
emitNumericEntity(lastCp, expectedLength) {
|
|
277
239
|
var _a;
|
|
278
240
|
// Ensure we consumed at least one digit.
|
|
279
241
|
if (this.consumed <= expectedLength) {
|
|
@@ -295,23 +257,80 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
295
257
|
this.errors.validateNumericCharacterReference(this.result);
|
|
296
258
|
}
|
|
297
259
|
return this.consumed;
|
|
298
|
-
}
|
|
260
|
+
}
|
|
299
261
|
/**
|
|
300
262
|
* Parses a named entity.
|
|
301
263
|
*
|
|
302
264
|
* Equivalent to the `Named character reference state` in the HTML spec.
|
|
303
265
|
*
|
|
304
|
-
* @param
|
|
266
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
305
267
|
* @param offset The current offset.
|
|
306
268
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
307
269
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
// The
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
270
|
+
stateNamedEntity(input, offset) {
|
|
271
|
+
const { decodeTree } = this;
|
|
272
|
+
let current = decodeTree[this.treeIndex];
|
|
273
|
+
// The length is the number of bytes of the value, including the current byte.
|
|
274
|
+
let valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
275
|
+
while (offset < input.length) {
|
|
276
|
+
// Handle compact runs (possibly inline): valueLength == 0 and SEMI_REQUIRED bit set.
|
|
277
|
+
if (valueLength === 0 && (current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) !== 0) {
|
|
278
|
+
const runLength = (current & bin_trie_flags_js_1.BinTrieFlags.BRANCH_LENGTH) >> 7; /* 2..63 */
|
|
279
|
+
const firstChar = current & bin_trie_flags_js_1.BinTrieFlags.JUMP_TABLE;
|
|
280
|
+
// Fast-fail if we don't have enough remaining input for the full run (incomplete entity)
|
|
281
|
+
if (offset + runLength > input.length)
|
|
282
|
+
return -1;
|
|
283
|
+
// Verify first char
|
|
284
|
+
if (input.charCodeAt(offset) !== firstChar) {
|
|
285
|
+
return this.result === 0
|
|
286
|
+
? 0
|
|
287
|
+
: this.emitNotTerminatedNamedEntity();
|
|
288
|
+
}
|
|
289
|
+
offset++;
|
|
290
|
+
this.excess++;
|
|
291
|
+
// Remaining characters after the first
|
|
292
|
+
const remaining = runLength - 1;
|
|
293
|
+
// Iterate over packed 2-char words
|
|
294
|
+
for (let runPos = 1; runPos < runLength; runPos += 2) {
|
|
295
|
+
const packedWord = decodeTree[this.treeIndex + 1 + ((runPos - 1) >> 1)];
|
|
296
|
+
const low = packedWord & 0xff;
|
|
297
|
+
if (input.charCodeAt(offset) !== low) {
|
|
298
|
+
return this.result === 0
|
|
299
|
+
? 0
|
|
300
|
+
: this.emitNotTerminatedNamedEntity();
|
|
301
|
+
}
|
|
302
|
+
offset++;
|
|
303
|
+
this.excess++;
|
|
304
|
+
const high = (packedWord >> 8) & 0xff;
|
|
305
|
+
if (runPos + 1 < runLength) {
|
|
306
|
+
if (input.charCodeAt(offset) !== high) {
|
|
307
|
+
return this.result === 0
|
|
308
|
+
? 0
|
|
309
|
+
: this.emitNotTerminatedNamedEntity();
|
|
310
|
+
}
|
|
311
|
+
offset++;
|
|
312
|
+
this.excess++;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
this.treeIndex += 1 + ((remaining + 1) >> 1);
|
|
316
|
+
current = decodeTree[this.treeIndex];
|
|
317
|
+
valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
318
|
+
}
|
|
319
|
+
if (offset >= input.length)
|
|
320
|
+
break;
|
|
321
|
+
const char = input.charCodeAt(offset);
|
|
322
|
+
/*
|
|
323
|
+
* Implicit semicolon handling for nodes that require a semicolon but
|
|
324
|
+
* don't have an explicit ';' branch stored in the trie. If we have
|
|
325
|
+
* a value on the current node, it requires a semicolon, and the
|
|
326
|
+
* current input character is a semicolon, emit the entity using the
|
|
327
|
+
* current node (without descending further).
|
|
328
|
+
*/
|
|
329
|
+
if (char === CharCodes.SEMI &&
|
|
330
|
+
valueLength !== 0 &&
|
|
331
|
+
(current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) !== 0) {
|
|
332
|
+
return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
|
|
333
|
+
}
|
|
315
334
|
this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
|
|
316
335
|
if (this.treeIndex < 0) {
|
|
317
336
|
return this.result === 0 ||
|
|
@@ -325,7 +344,7 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
325
344
|
: this.emitNotTerminatedNamedEntity();
|
|
326
345
|
}
|
|
327
346
|
current = decodeTree[this.treeIndex];
|
|
328
|
-
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
347
|
+
valueLength = (current & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
329
348
|
// If the branch is a value, store it and continue
|
|
330
349
|
if (valueLength !== 0) {
|
|
331
350
|
// If the entity is terminated by a semicolon, we are done.
|
|
@@ -333,28 +352,32 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
333
352
|
return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
|
|
334
353
|
}
|
|
335
354
|
// If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
|
|
336
|
-
if (this.decodeMode !== DecodingMode.Strict
|
|
355
|
+
if (this.decodeMode !== DecodingMode.Strict &&
|
|
356
|
+
(current & bin_trie_flags_js_1.BinTrieFlags.FLAG13) === 0) {
|
|
337
357
|
this.result = this.treeIndex;
|
|
338
358
|
this.consumed += this.excess;
|
|
339
359
|
this.excess = 0;
|
|
340
360
|
}
|
|
341
361
|
}
|
|
362
|
+
// Increment offset & excess for next iteration
|
|
363
|
+
offset++;
|
|
364
|
+
this.excess++;
|
|
342
365
|
}
|
|
343
366
|
return -1;
|
|
344
|
-
}
|
|
367
|
+
}
|
|
345
368
|
/**
|
|
346
369
|
* Emit a named entity that was not terminated with a semicolon.
|
|
347
370
|
*
|
|
348
371
|
* @returns The number of characters consumed.
|
|
349
372
|
*/
|
|
350
|
-
|
|
373
|
+
emitNotTerminatedNamedEntity() {
|
|
351
374
|
var _a;
|
|
352
|
-
|
|
353
|
-
|
|
375
|
+
const { result, decodeTree } = this;
|
|
376
|
+
const valueLength = (decodeTree[result] & bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
354
377
|
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
355
378
|
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
|
|
356
379
|
return this.consumed;
|
|
357
|
-
}
|
|
380
|
+
}
|
|
358
381
|
/**
|
|
359
382
|
* Emit a named entity.
|
|
360
383
|
*
|
|
@@ -364,17 +387,18 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
364
387
|
*
|
|
365
388
|
* @returns The number of characters consumed.
|
|
366
389
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
390
|
+
emitNamedEntityData(result, valueLength, consumed) {
|
|
391
|
+
const { decodeTree } = this;
|
|
369
392
|
this.emitCodePoint(valueLength === 1
|
|
370
|
-
? decodeTree[result] &
|
|
393
|
+
? decodeTree[result] &
|
|
394
|
+
~(bin_trie_flags_js_1.BinTrieFlags.VALUE_LENGTH | bin_trie_flags_js_1.BinTrieFlags.FLAG13)
|
|
371
395
|
: decodeTree[result + 1], consumed);
|
|
372
396
|
if (valueLength === 3) {
|
|
373
397
|
// For multi-byte values, we need to emit the second byte.
|
|
374
398
|
this.emitCodePoint(decodeTree[result + 2], consumed);
|
|
375
399
|
}
|
|
376
400
|
return consumed;
|
|
377
|
-
}
|
|
401
|
+
}
|
|
378
402
|
/**
|
|
379
403
|
* Signal to the parser that the end of the input was reached.
|
|
380
404
|
*
|
|
@@ -382,7 +406,7 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
382
406
|
*
|
|
383
407
|
* @returns The number of characters consumed.
|
|
384
408
|
*/
|
|
385
|
-
|
|
409
|
+
end() {
|
|
386
410
|
var _a;
|
|
387
411
|
switch (this.state) {
|
|
388
412
|
case EntityDecoderState.NamedEntity: {
|
|
@@ -409,9 +433,8 @@ var EntityDecoder = /** @class */ (function () {
|
|
|
409
433
|
return 0;
|
|
410
434
|
}
|
|
411
435
|
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
}());
|
|
436
|
+
}
|
|
437
|
+
}
|
|
415
438
|
exports.EntityDecoder = EntityDecoder;
|
|
416
439
|
/**
|
|
417
440
|
* Creates a function that decodes entities in a string.
|
|
@@ -420,28 +443,28 @@ exports.EntityDecoder = EntityDecoder;
|
|
|
420
443
|
* @returns A function that decodes entities in a string.
|
|
421
444
|
*/
|
|
422
445
|
function getDecoder(decodeTree) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
return function decodeWithTrie(
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
while ((offset =
|
|
429
|
-
|
|
446
|
+
let returnValue = "";
|
|
447
|
+
const decoder = new EntityDecoder(decodeTree, (data) => (returnValue += (0, decode_codepoint_js_1.fromCodePoint)(data)));
|
|
448
|
+
return function decodeWithTrie(input, decodeMode) {
|
|
449
|
+
let lastIndex = 0;
|
|
450
|
+
let offset = 0;
|
|
451
|
+
while ((offset = input.indexOf("&", offset)) >= 0) {
|
|
452
|
+
returnValue += input.slice(lastIndex, offset);
|
|
430
453
|
decoder.startEntity(decodeMode);
|
|
431
|
-
|
|
454
|
+
const length = decoder.write(input,
|
|
432
455
|
// Skip the "&"
|
|
433
456
|
offset + 1);
|
|
434
|
-
if (
|
|
457
|
+
if (length < 0) {
|
|
435
458
|
lastIndex = offset + decoder.end();
|
|
436
459
|
break;
|
|
437
460
|
}
|
|
438
|
-
lastIndex = offset +
|
|
439
|
-
// If `
|
|
440
|
-
offset =
|
|
461
|
+
lastIndex = offset + length;
|
|
462
|
+
// If `length` is 0, skip the current `&` and continue.
|
|
463
|
+
offset = length === 0 ? lastIndex + 1 : lastIndex;
|
|
441
464
|
}
|
|
442
|
-
|
|
465
|
+
const result = returnValue + input.slice(lastIndex);
|
|
443
466
|
// Make sure we don't keep a reference to the final string.
|
|
444
|
-
|
|
467
|
+
returnValue = "";
|
|
445
468
|
return result;
|
|
446
469
|
};
|
|
447
470
|
}
|
|
@@ -455,82 +478,91 @@ function getDecoder(decodeTree) {
|
|
|
455
478
|
* @param char The current character.
|
|
456
479
|
* @returns The index of the next node, or -1 if no branch is taken.
|
|
457
480
|
*/
|
|
458
|
-
function determineBranch(decodeTree, current,
|
|
459
|
-
|
|
460
|
-
|
|
481
|
+
function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
482
|
+
const branchCount = (current & bin_trie_flags_js_1.BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
483
|
+
const jumpOffset = current & bin_trie_flags_js_1.BinTrieFlags.JUMP_TABLE;
|
|
461
484
|
// Case 1: Single branch encoded in jump offset
|
|
462
485
|
if (branchCount === 0) {
|
|
463
|
-
return jumpOffset !== 0 && char === jumpOffset ?
|
|
486
|
+
return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
|
|
464
487
|
}
|
|
465
488
|
// Case 2: Multiple branches encoded in jump table
|
|
466
489
|
if (jumpOffset) {
|
|
467
|
-
|
|
490
|
+
const value = char - jumpOffset;
|
|
468
491
|
return value < 0 || value >= branchCount
|
|
469
492
|
? -1
|
|
470
|
-
: decodeTree[
|
|
493
|
+
: decodeTree[nodeIndex + value] - 1;
|
|
471
494
|
}
|
|
472
|
-
// Case 3: Multiple branches encoded in dictionary
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
495
|
+
// Case 3: Multiple branches encoded in packed dictionary (two keys per uint16)
|
|
496
|
+
const packedKeySlots = (branchCount + 1) >> 1;
|
|
497
|
+
/*
|
|
498
|
+
* Treat packed keys as a virtual sorted array of length `branchCount`.
|
|
499
|
+
* Key(i) = low byte for even i, high byte for odd i in slot i>>1.
|
|
500
|
+
*/
|
|
501
|
+
let lo = 0;
|
|
502
|
+
let hi = branchCount - 1;
|
|
476
503
|
while (lo <= hi) {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
504
|
+
const mid = (lo + hi) >>> 1;
|
|
505
|
+
const slot = mid >> 1;
|
|
506
|
+
const packed = decodeTree[nodeIndex + slot];
|
|
507
|
+
const midKey = (packed >> ((mid & 1) * 8)) & 0xff;
|
|
508
|
+
if (midKey < char) {
|
|
480
509
|
lo = mid + 1;
|
|
481
510
|
}
|
|
482
|
-
else if (
|
|
511
|
+
else if (midKey > char) {
|
|
483
512
|
hi = mid - 1;
|
|
484
513
|
}
|
|
485
514
|
else {
|
|
486
|
-
return decodeTree[
|
|
515
|
+
return decodeTree[nodeIndex + packedKeySlots + mid];
|
|
487
516
|
}
|
|
488
517
|
}
|
|
489
518
|
return -1;
|
|
490
519
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
var xmlDecoder = getDecoder(decode_data_xml_js_1.default);
|
|
520
|
+
const htmlDecoder = /* #__PURE__ */ getDecoder(decode_data_html_js_1.htmlDecodeTree);
|
|
521
|
+
const xmlDecoder = /* #__PURE__ */ getDecoder(decode_data_xml_js_1.xmlDecodeTree);
|
|
494
522
|
/**
|
|
495
523
|
* Decodes an HTML string.
|
|
496
524
|
*
|
|
497
|
-
* @param
|
|
525
|
+
* @param htmlString The string to decode.
|
|
498
526
|
* @param mode The decoding mode.
|
|
499
527
|
* @returns The decoded string.
|
|
500
528
|
*/
|
|
501
|
-
function decodeHTML(
|
|
502
|
-
|
|
503
|
-
return htmlDecoder(str, mode);
|
|
529
|
+
function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
|
|
530
|
+
return htmlDecoder(htmlString, mode);
|
|
504
531
|
}
|
|
505
|
-
exports.decodeHTML = decodeHTML;
|
|
506
532
|
/**
|
|
507
533
|
* Decodes an HTML string in an attribute.
|
|
508
534
|
*
|
|
509
|
-
* @param
|
|
535
|
+
* @param htmlAttribute The string to decode.
|
|
510
536
|
* @returns The decoded string.
|
|
511
537
|
*/
|
|
512
|
-
function decodeHTMLAttribute(
|
|
513
|
-
return htmlDecoder(
|
|
538
|
+
function decodeHTMLAttribute(htmlAttribute) {
|
|
539
|
+
return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
|
|
514
540
|
}
|
|
515
|
-
exports.decodeHTMLAttribute = decodeHTMLAttribute;
|
|
516
541
|
/**
|
|
517
542
|
* Decodes an HTML string, requiring all entities to be terminated by a semicolon.
|
|
518
543
|
*
|
|
519
|
-
* @param
|
|
544
|
+
* @param htmlString The string to decode.
|
|
520
545
|
* @returns The decoded string.
|
|
521
546
|
*/
|
|
522
|
-
function decodeHTMLStrict(
|
|
523
|
-
return htmlDecoder(
|
|
547
|
+
function decodeHTMLStrict(htmlString) {
|
|
548
|
+
return htmlDecoder(htmlString, DecodingMode.Strict);
|
|
524
549
|
}
|
|
525
|
-
exports.decodeHTMLStrict = decodeHTMLStrict;
|
|
526
550
|
/**
|
|
527
551
|
* Decodes an XML string, requiring all entities to be terminated by a semicolon.
|
|
528
552
|
*
|
|
529
|
-
* @param
|
|
553
|
+
* @param xmlString The string to decode.
|
|
530
554
|
* @returns The decoded string.
|
|
531
555
|
*/
|
|
532
|
-
function decodeXML(
|
|
533
|
-
return xmlDecoder(
|
|
556
|
+
function decodeXML(xmlString) {
|
|
557
|
+
return xmlDecoder(xmlString, DecodingMode.Strict);
|
|
534
558
|
}
|
|
535
|
-
|
|
559
|
+
var decode_codepoint_js_2 = require("./decode-codepoint.js");
|
|
560
|
+
Object.defineProperty(exports, "decodeCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.decodeCodePoint; } });
|
|
561
|
+
Object.defineProperty(exports, "fromCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.fromCodePoint; } });
|
|
562
|
+
Object.defineProperty(exports, "replaceCodePoint", { enumerable: true, get: function () { return decode_codepoint_js_2.replaceCodePoint; } });
|
|
563
|
+
// Re-export for use by eg. htmlparser2
|
|
564
|
+
var decode_data_html_js_2 = require("./generated/decode-data-html.js");
|
|
565
|
+
Object.defineProperty(exports, "htmlDecodeTree", { enumerable: true, get: function () { return decode_data_html_js_2.htmlDecodeTree; } });
|
|
566
|
+
var decode_data_xml_js_2 = require("./generated/decode-data-xml.js");
|
|
567
|
+
Object.defineProperty(exports, "xmlDecodeTree", { enumerable: true, get: function () { return decode_data_xml_js_2.xmlDecodeTree; } });
|
|
536
568
|
//# sourceMappingURL=decode.js.map
|