uomtiles 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/1d1PDhA4.js +1 -0
- package/.output/public/_nuxt/3B2XYGg4.js +1 -0
- package/.output/public/_nuxt/981KwFWf.js +1 -0
- package/.output/public/_nuxt/B30dSvM4.js +1 -0
- package/.output/public/_nuxt/BN1Gp4Dm.js +1 -0
- package/.output/public/_nuxt/BQlj8Xoe.js +6 -0
- package/.output/public/_nuxt/BRkljK8J.js +1 -0
- package/.output/public/_nuxt/BSdHYVlE2.js +1 -0
- package/.output/public/_nuxt/B_MqTg2k2.js +1 -0
- package/.output/public/_nuxt/BiWblTbb2.js +64 -0
- package/.output/public/_nuxt/BrPwntMr.js +1 -0
- package/.output/public/_nuxt/BskybydR.js +1 -0
- package/.output/public/_nuxt/ByRlKR9F.js +1 -0
- package/.output/public/_nuxt/C0Zdl2EE2.js +1 -0
- package/.output/public/_nuxt/C4qlzA4o.js +1 -0
- package/.output/public/_nuxt/C7HxHbxA.js +1 -0
- package/.output/public/_nuxt/C97TfNgP.js +3 -0
- package/.output/public/_nuxt/CNs_Ozdc.js +1 -0
- package/.output/public/_nuxt/CPuhwLY1.js +1 -0
- package/.output/public/_nuxt/CVE291Pi.js +1 -0
- package/.output/public/_nuxt/C_0VY3Cv2.js +4 -0
- package/.output/public/_nuxt/Ce26t8_Y.js +1 -0
- package/.output/public/_nuxt/CfW544W5.js +1 -0
- package/.output/public/_nuxt/CgMd2Y5s.js +2 -0
- package/.output/public/_nuxt/CgdzV712.js +1 -0
- package/.output/public/_nuxt/D1wVNWS0.js +1 -0
- package/.output/public/_nuxt/DC3bhq63.js +1 -0
- package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
- package/.output/public/_nuxt/DL1MZZLI.js +1 -0
- package/.output/public/_nuxt/DXm-42Fi.js +1 -0
- package/.output/public/_nuxt/Djg3Kzfv.js +1 -0
- package/.output/public/_nuxt/DkcySee1.js +1 -0
- package/.output/public/_nuxt/DmN-PKW1.js +1 -0
- package/.output/public/_nuxt/DtFVCXI9.js +1 -0
- package/.output/public/_nuxt/Dz7VMlHR.js +1 -0
- package/.output/public/_nuxt/NL65vbjG2.js +1 -0
- package/.output/public/_nuxt/Oxy7pKSk.js +3 -0
- package/.output/public/_nuxt/Pik8or8N2.js +1 -0
- package/.output/public/_nuxt/XZ59tThl.js +1 -0
- package/.output/public/_nuxt/ZpWjFsgV.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/9f85104e-738d-4a74-8daa-40b136ce17d5.json +1 -0
- package/.output/public/_nuxt/dXz6dFgW2.js +1 -0
- package/.output/public/_nuxt/entry.P6tFNE31.css +1 -0
- package/.output/public/_nuxt/error-404.Biv0P6cJ.css +1 -0
- package/.output/public/_nuxt/error-500.8ok468rV.css +1 -0
- package/.output/public/_nuxt/j0MRD-c3.js +1 -0
- package/.output/public/_nuxt/local-pixel-diff.worker-C6RdZoCq.js +2 -0
- package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +6 -0
- package/.output/public/_nuxt/nearest-area.worker-iSLH0Y_s.js +2 -0
- package/.output/public/_nuxt/q7DkoVkj.js +828 -0
- package/.output/public/_nuxt/raster-tile.worker-BFlOgJig.js +2 -0
- package/.output/public/_nuxt/services._3nQizF8.css +1 -0
- package/.output/public/_nuxt/sql-wasm.DfANybxk.wasm +0 -0
- package/.output/public/_nuxt/tile-diff.worker-CvWWI_eu.js +1 -0
- package/.output/public/_nuxt/zZ1EGR7Y.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/favicon.svg +8 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/site.webmanifest +11 -0
- package/.output/server/chunks/_/config.mjs +208 -0
- package/.output/server/chunks/_/config.mjs.map +1 -0
- package/.output/server/chunks/_/data-directory.mjs +24 -0
- package/.output/server/chunks/_/data-directory.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/file-workspace.mjs +910 -0
- package/.output/server/chunks/_/file-workspace.mjs.map +1 -0
- package/.output/server/chunks/_/icons.mjs +6269 -0
- package/.output/server/chunks/_/icons.mjs.map +1 -0
- package/.output/server/chunks/_/map-service.mjs +233 -0
- package/.output/server/chunks/_/map-service.mjs.map +1 -0
- package/.output/server/chunks/_/missing-tile.mjs +104 -0
- package/.output/server/chunks/_/missing-tile.mjs.map +1 -0
- package/.output/server/chunks/_/pixel-diff.mjs +78 -0
- package/.output/server/chunks/_/pixel-diff.mjs.map +1 -0
- package/.output/server/chunks/_/uom-auth.mjs +334 -0
- package/.output/server/chunks/_/uom-auth.mjs.map +1 -0
- package/.output/server/chunks/_/uom-map.mjs +265 -0
- package/.output/server/chunks/_/uom-map.mjs.map +1 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs +5076 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs.map +1 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs +569 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs.map +1 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs +359 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs.map +1 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs +207 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs.map +1 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs +278 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs.map +1 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs +592 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs.map +1 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs +2003 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs.map +1 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs +1326 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs.map +1 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs +146 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs.map +1 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs +1025 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs.map +1 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs +2066 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs.map +1 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs +379 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs.map +1 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs +1087 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs +1345 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs.map +1 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs +7 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs.map +1 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs +1430 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs.map +1 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs +1093 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs.map +1 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs +3217 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs.map +1 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs +3714 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +86 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs +9 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +74 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs +9 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs.map +1 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +1121 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs +411 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs.map +1 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs +642 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs.map +1 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs +220 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs.map +1 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs +3005 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs.map +1 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs +9 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs +915 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs +87 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6215 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs +27 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +44 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +48 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +46 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs +38 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs +41 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs +35 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +47 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +42 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +48 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +45 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +422 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wms.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wmts.get.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/chunks/virtual/entry.mjs +18545 -0
- package/.output/server/chunks/virtual/entry.mjs.map +1 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
- package/.output/server/chunks/virtual/styles.mjs +10 -0
- package/.output/server/chunks/virtual/styles.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 +14611 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -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 +692 -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 +1420 -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 +1903 -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 +6976 -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 +1841 -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 +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -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/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +193 -0
- package/.output/server/node_modules/devalue/src/parse.js +270 -0
- package/.output/server/node_modules/devalue/src/stringify.js +428 -0
- package/.output/server/node_modules/devalue/src/uneval.js +582 -0
- package/.output/server/node_modules/devalue/src/utils.js +185 -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/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/fflate/esm/index.mjs +2710 -0
- package/.output/server/node_modules/fflate/package.json +128 -0
- package/.output/server/node_modules/fnv1a-64/dist/index.mjs +95 -0
- package/.output/server/node_modules/fnv1a-64/package.json +75 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +53 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
- package/.output/server/node_modules/nostics/package.json +125 -0
- package/.output/server/node_modules/object-identity/index.js +60 -0
- package/.output/server/node_modules/object-identity/package.json +40 -0
- package/.output/server/node_modules/p-limit/index.js +104 -0
- package/.output/server/node_modules/p-limit/package.json +58 -0
- package/.output/server/node_modules/pmtiles/dist/esm/index.js +2 -0
- package/.output/server/node_modules/pmtiles/package.json +50 -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/tailwindcss/dist/chunk-DCG7AFIE.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/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
- package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +585 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +223 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -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 +278 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
- package/.output/server/node_modules/yocto-queue/index.js +90 -0
- package/.output/server/node_modules/yocto-queue/package.json +48 -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 +599 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/.output/server/node_modules/zod/v4/core/api.js +1087 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
- package/.output/server/node_modules/zod/v4/core/core.js +78 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +185 -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 +601 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/package.json +7 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +139 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +2239 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/.output/server/node_modules/zod/v4/core/util.js +674 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -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/el.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +113 -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 +125 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +122 -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 +52 -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 +7 -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/ro.js +119 -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 +110 -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/package.json +37 -0
- package/LICENSE +3 -0
- package/README.md +125 -0
- package/dist/src/bbox.js +55 -0
- package/dist/src/cli.js +255 -0
- package/dist/src/config.js +56 -0
- package/dist/src/core/fetch-process.js +19 -0
- package/dist/src/core/grid-renderer.js +149 -0
- package/dist/src/core/lease.js +103 -0
- package/dist/src/core/paths.js +13 -0
- package/dist/src/core/png.js +192 -0
- package/dist/src/core/raster-style.js +33 -0
- package/dist/src/core/uomtiles.js +307 -0
- package/dist/src/fetcher.js +208 -0
- package/dist/src/geographic-grid.js +162 -0
- package/dist/src/grid-crawl.js +478 -0
- package/dist/src/mask-image.js +16 -0
- package/dist/src/official-grid.js +51 -0
- package/dist/src/quality.js +30 -0
- package/dist/src/token.js +206 -0
- package/package.json +68 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +8 -0
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/site.webmanifest +11 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { U as UniqueTags, c as TagsWithInnerContent, M as MetaTagsArrayable, i as isUnsafeKey, H as HasElementTags, T as TagConfigKeys, D as DupeableTags, d as UsesMergeStrategy, V as ValidHeadTags, h as hasContent } from './unhead.CGPOfp5O.mjs';
|
|
2
|
+
import { a as callHook } from './unhead.Bm4Y6XQI.mjs';
|
|
3
|
+
|
|
4
|
+
const META_NOREWRITE_RE = /^(?:viewport|description|keywords|robots)$/;
|
|
5
|
+
const META_KEY_ATTRS = ["name", "property", "http-equiv"];
|
|
6
|
+
function isMetaArrayDupeKey(v) {
|
|
7
|
+
const i = v.indexOf(":");
|
|
8
|
+
if (i === -1)
|
|
9
|
+
return false;
|
|
10
|
+
const key = v.slice(i + 1);
|
|
11
|
+
return MetaTagsArrayable.has(key) || key.startsWith("og:image:") || key.startsWith("og:video:") || key.startsWith("og:audio:") || key.startsWith("twitter:image:");
|
|
12
|
+
}
|
|
13
|
+
function dedupeKey(tag) {
|
|
14
|
+
const { props, tag: t, key } = tag;
|
|
15
|
+
if (UniqueTags.has(t))
|
|
16
|
+
return t;
|
|
17
|
+
if (t === "link") {
|
|
18
|
+
if (props.rel === "canonical")
|
|
19
|
+
return "canonical";
|
|
20
|
+
if (props.rel === "alternate" && props.hreflang)
|
|
21
|
+
return `alternate:${props.hreflang}`;
|
|
22
|
+
}
|
|
23
|
+
if (props.charset)
|
|
24
|
+
return "charset";
|
|
25
|
+
if (t === "meta") {
|
|
26
|
+
for (const n of META_KEY_ATTRS) {
|
|
27
|
+
const v = props[n];
|
|
28
|
+
if (v !== void 0)
|
|
29
|
+
return `meta:${v}${(typeof v !== "string" || !v.includes(":")) && !META_NOREWRITE_RE.test(v) && key ? `:key:${key}` : ""}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (key)
|
|
33
|
+
return `${t}:key:${key}`;
|
|
34
|
+
if (props.id)
|
|
35
|
+
return `${t}:id:${props.id}`;
|
|
36
|
+
if (t === "link" && props.rel && props.href)
|
|
37
|
+
return `link:${props.rel}:${props.href}`;
|
|
38
|
+
return TagsWithInnerContent.has(t) && (tag.textContent || tag.innerHTML) ? `${t}:content:${tag.textContent || tag.innerHTML}` : void 0;
|
|
39
|
+
}
|
|
40
|
+
function hashTag(tag) {
|
|
41
|
+
const identity = tag._h || tag._d || tag.textContent || tag.innerHTML;
|
|
42
|
+
if (identity)
|
|
43
|
+
return identity;
|
|
44
|
+
const keys = Object.keys(tag.props).sort();
|
|
45
|
+
let hash = `${tag.tag}:`;
|
|
46
|
+
let separator = "";
|
|
47
|
+
for (const key of keys) {
|
|
48
|
+
hash += `${separator}${key}:${String(tag.props[key])}`;
|
|
49
|
+
separator = ",";
|
|
50
|
+
}
|
|
51
|
+
return hash;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function walkResolver(val, resolve, key) {
|
|
55
|
+
if (key === "_resolver")
|
|
56
|
+
return val;
|
|
57
|
+
if (typeof val === "function" && (!key || key !== "titleTemplate" && !key.startsWith("on")))
|
|
58
|
+
val = val();
|
|
59
|
+
const v = resolve ? resolve(key, val) : val;
|
|
60
|
+
if (Array.isArray(v)) {
|
|
61
|
+
let out;
|
|
62
|
+
for (let i = 0; i < v.length; i++) {
|
|
63
|
+
const r = walkResolver(v[i], resolve);
|
|
64
|
+
if (out) {
|
|
65
|
+
out[i] = r;
|
|
66
|
+
} else if (r !== v[i]) {
|
|
67
|
+
out = v.slice(0, i);
|
|
68
|
+
out[i] = r;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return out || v;
|
|
72
|
+
}
|
|
73
|
+
if (v?.constructor === Object) {
|
|
74
|
+
let next;
|
|
75
|
+
for (const k in v) {
|
|
76
|
+
const unsafe = isUnsafeKey(k);
|
|
77
|
+
const r = unsafe ? void 0 : walkResolver(v[k], resolve, k);
|
|
78
|
+
if (!next && (unsafe || r !== v[k])) {
|
|
79
|
+
next = {};
|
|
80
|
+
for (const pk in v) {
|
|
81
|
+
if (pk === k)
|
|
82
|
+
break;
|
|
83
|
+
next[pk] = v[pk];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (next && !unsafe)
|
|
87
|
+
next[k] = r;
|
|
88
|
+
}
|
|
89
|
+
return next || v;
|
|
90
|
+
}
|
|
91
|
+
return v;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const INVALID_ATTR_NAME_RE = /[\s"'<>/=\x00-\x1F\x7F]/;
|
|
95
|
+
|
|
96
|
+
function normalizeStyleClassProps(key, value) {
|
|
97
|
+
const isStyle = key === "style";
|
|
98
|
+
const store = isStyle ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
|
|
99
|
+
const add = (v) => {
|
|
100
|
+
if (!v)
|
|
101
|
+
return;
|
|
102
|
+
if (isStyle) {
|
|
103
|
+
const i = v.indexOf(":");
|
|
104
|
+
i > 0 && store.set(v.slice(0, i).trim(), v.slice(i + 1).trim());
|
|
105
|
+
} else {
|
|
106
|
+
v.split(" ").forEach((c) => c && store.add(c));
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
if (typeof value === "string") {
|
|
110
|
+
(isStyle ? value.split(";") : [value]).forEach(add);
|
|
111
|
+
} else if (Array.isArray(value)) {
|
|
112
|
+
value.forEach(add);
|
|
113
|
+
} else if (value && typeof value === "object") {
|
|
114
|
+
for (const k in value) {
|
|
115
|
+
const v = value[k];
|
|
116
|
+
v && v !== "false" && (isStyle ? store.set(k.trim(), String(v)) : add(k));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return store;
|
|
120
|
+
}
|
|
121
|
+
function normalizeProps(tag, input) {
|
|
122
|
+
tag.props = tag.props || {};
|
|
123
|
+
if (!input)
|
|
124
|
+
return tag;
|
|
125
|
+
if (tag.tag === "templateParams") {
|
|
126
|
+
tag.props = input;
|
|
127
|
+
return tag;
|
|
128
|
+
}
|
|
129
|
+
const isHtmlTag = HasElementTags.has(tag.tag) || tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs";
|
|
130
|
+
for (const prop in input) {
|
|
131
|
+
if (isUnsafeKey(prop))
|
|
132
|
+
continue;
|
|
133
|
+
const isData = prop.startsWith("data-");
|
|
134
|
+
const isHtmlAttr = isHtmlTag && !TagConfigKeys.has(prop);
|
|
135
|
+
const key = isHtmlAttr && !isData ? prop.toLowerCase() : prop;
|
|
136
|
+
if (isHtmlAttr && (!key || INVALID_ATTR_NAME_RE.test(key)))
|
|
137
|
+
continue;
|
|
138
|
+
const value = input[prop];
|
|
139
|
+
if (value === null) {
|
|
140
|
+
tag.props[key] = null;
|
|
141
|
+
} else if (prop === "class" || prop === "style") {
|
|
142
|
+
tag.props[prop] = normalizeStyleClassProps(prop, value);
|
|
143
|
+
} else if (TagConfigKeys.has(prop)) {
|
|
144
|
+
if ((prop === "textContent" || prop === "innerHTML") && typeof value === "object") {
|
|
145
|
+
const type = input.type || "application/json";
|
|
146
|
+
if (type.endsWith("json") || type === "speculationrules" || type === "importmap") {
|
|
147
|
+
tag.props.type = input.type = type;
|
|
148
|
+
tag[prop] = JSON.stringify(value);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
tag[prop] = value;
|
|
152
|
+
}
|
|
153
|
+
} else if (value !== void 0) {
|
|
154
|
+
const str = String(value);
|
|
155
|
+
const isMeta = tag.tag === "meta" && key === "content";
|
|
156
|
+
tag.props[key] = str === "true" || str === "" ? isData || isMeta ? str : true : !value && isData && str === "false" ? "false" : value;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return tag;
|
|
160
|
+
}
|
|
161
|
+
function resolveHeadInput(input, propResolvers) {
|
|
162
|
+
let resolve;
|
|
163
|
+
if (propResolvers.length) {
|
|
164
|
+
resolve = (key, val) => {
|
|
165
|
+
for (let i = 0; i < propResolvers.length; i++)
|
|
166
|
+
val = propResolvers[i](key, val);
|
|
167
|
+
return val;
|
|
168
|
+
};
|
|
169
|
+
input = resolve(void 0, input);
|
|
170
|
+
}
|
|
171
|
+
return walkResolver(input, resolve);
|
|
172
|
+
}
|
|
173
|
+
function normalizeTag(tagName, _input) {
|
|
174
|
+
const input = typeof _input === "object" && typeof _input !== "function" ? _input : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: _input };
|
|
175
|
+
const tag = normalizeProps({ tag: tagName, props: {} }, input);
|
|
176
|
+
if (tag.key && DupeableTags.has(tag.tag))
|
|
177
|
+
tag.props["data-hid"] = tag._h = tag.key;
|
|
178
|
+
if (tag.tag === "script" && typeof tag.innerHTML === "object") {
|
|
179
|
+
tag.innerHTML = JSON.stringify(tag.innerHTML);
|
|
180
|
+
tag.props.type = tag.props.type || "application/json";
|
|
181
|
+
}
|
|
182
|
+
if (Array.isArray(tag.props.content)) {
|
|
183
|
+
const tags = [];
|
|
184
|
+
for (const content of tag.props.content) {
|
|
185
|
+
tags.push({ ...tag, props: { ...tag.props, content } });
|
|
186
|
+
}
|
|
187
|
+
return tags;
|
|
188
|
+
}
|
|
189
|
+
return tag;
|
|
190
|
+
}
|
|
191
|
+
function pushNormalizedTag(tags, tag) {
|
|
192
|
+
if (Array.isArray(tag)) {
|
|
193
|
+
for (const t of tag) tags.push(t);
|
|
194
|
+
} else {
|
|
195
|
+
tags.push(tag);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function normalizeEntryToTags(input, propResolvers) {
|
|
199
|
+
if (!input)
|
|
200
|
+
return [];
|
|
201
|
+
if (typeof input === "function")
|
|
202
|
+
input = input();
|
|
203
|
+
input = resolveHeadInput(input, propResolvers);
|
|
204
|
+
const tags = [];
|
|
205
|
+
for (const key in input) {
|
|
206
|
+
const value = input[key];
|
|
207
|
+
if (value !== void 0) {
|
|
208
|
+
if (Array.isArray(value)) {
|
|
209
|
+
for (const v of value) pushNormalizedTag(tags, normalizeTag(key, v));
|
|
210
|
+
} else {
|
|
211
|
+
pushNormalizedTag(tags, normalizeTag(key, value));
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return tags;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const LT_RE = /</g;
|
|
219
|
+
const SCRIPT_END_RE = /<\/script/g;
|
|
220
|
+
const sortTags = (a, b) => a._w === b._w ? a._p - b._p : a._w - b._w;
|
|
221
|
+
const DEFAULT_TAG_WEIGHT = () => 100;
|
|
222
|
+
function isEmptyProps(props) {
|
|
223
|
+
for (const _ in props)
|
|
224
|
+
return false;
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
const TAG_MUTATING_HOOK_RE = /^tags:|:render/;
|
|
228
|
+
function syncEntryHookCache(head, hooks) {
|
|
229
|
+
const count = (hooks["entries:resolve"]?.length || 0) + (hooks["entries:normalize"]?.length || 0);
|
|
230
|
+
if (head._h !== count) {
|
|
231
|
+
head._h = count;
|
|
232
|
+
for (const entry of head.entries.values())
|
|
233
|
+
delete entry._tags;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function cloneTagsInPlace(tags) {
|
|
237
|
+
for (let i = 0; i < tags.length; i++) {
|
|
238
|
+
const t = tags[i];
|
|
239
|
+
const props = { ...t.props };
|
|
240
|
+
if (props.class instanceof Set)
|
|
241
|
+
props.class = new Set(props.class);
|
|
242
|
+
if (props.style instanceof Map)
|
|
243
|
+
props.style = new Map(props.style);
|
|
244
|
+
tags[i] = { ...t, props };
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function valuesToTags(ctx, sortFlatMeta) {
|
|
248
|
+
const tags = ctx.tags;
|
|
249
|
+
let w = 0;
|
|
250
|
+
for (const value of ctx.tagMap.values()) {
|
|
251
|
+
if (Array.isArray(value)) {
|
|
252
|
+
for (const tag of value) tags[w++] = tag;
|
|
253
|
+
} else {
|
|
254
|
+
tags[w++] = value;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
tags.length = w;
|
|
258
|
+
if (sortFlatMeta)
|
|
259
|
+
tags.sort(sortTags);
|
|
260
|
+
}
|
|
261
|
+
function dedupeTags(ctx) {
|
|
262
|
+
let hasFlatMeta = false;
|
|
263
|
+
for (const next of ctx.tags.sort(sortTags)) {
|
|
264
|
+
const k = next._d || hashTag(next);
|
|
265
|
+
if (!k)
|
|
266
|
+
continue;
|
|
267
|
+
const prev = ctx.tagMap.get(k);
|
|
268
|
+
if (!prev) {
|
|
269
|
+
ctx.tagMap.set(k, next);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
const strategy = next.tagDuplicateStrategy || (UsesMergeStrategy.has(next.tag) ? "merge" : null) || (next.key && next.key === prev.key ? "merge" : null);
|
|
273
|
+
if (strategy === "merge") {
|
|
274
|
+
const props = { ...prev.props };
|
|
275
|
+
for (const p in next.props) {
|
|
276
|
+
props[p] = p === "style" ? new Map([...prev.props.style || /* @__PURE__ */ new Map(), ...next.props[p]]) : p === "class" ? /* @__PURE__ */ new Set([...prev.props.class || [], ...next.props[p]]) : next.props[p];
|
|
277
|
+
}
|
|
278
|
+
ctx.tagMap.set(k, { ...next, props });
|
|
279
|
+
} else if (next._p >> 10 === prev._p >> 10 && next.tag === "meta" && isMetaArrayDupeKey(k)) {
|
|
280
|
+
ctx.tagMap.set(k, Object.assign([...Array.isArray(prev) ? prev : [prev], next], next));
|
|
281
|
+
hasFlatMeta = true;
|
|
282
|
+
} else if (next._w === prev._w ? next._p > prev._p : next._w < prev._w) {
|
|
283
|
+
ctx.tagMap.set(k, next);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return hasFlatMeta;
|
|
287
|
+
}
|
|
288
|
+
function resolveTitleTemplate(ctx, head) {
|
|
289
|
+
const title = ctx.tagMap.get("title");
|
|
290
|
+
const tpl = ctx.tagMap.get("titleTemplate");
|
|
291
|
+
head._title = title?.textContent;
|
|
292
|
+
if (!tpl)
|
|
293
|
+
return;
|
|
294
|
+
const fn = tpl.textContent;
|
|
295
|
+
head._titleTemplate = fn;
|
|
296
|
+
if (!fn)
|
|
297
|
+
return;
|
|
298
|
+
let v = typeof fn === "function" ? fn(title?.textContent) : fn;
|
|
299
|
+
if (typeof v === "string" && !head.plugins.has("template-params"))
|
|
300
|
+
v = v.replace("%s", title?.textContent || "");
|
|
301
|
+
if (title) {
|
|
302
|
+
v === null ? ctx.tagMap.delete("title") : ctx.tagMap.set("title", { ...title, textContent: v });
|
|
303
|
+
} else {
|
|
304
|
+
ctx.tagMap.set("titleTemplate", { ...tpl, tag: "title", textContent: v });
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function sanitizeTagsInPlace(tags) {
|
|
308
|
+
let w = 0;
|
|
309
|
+
for (let t of tags) {
|
|
310
|
+
const { innerHTML, tag, props } = t;
|
|
311
|
+
if (!ValidHeadTags.has(tag) || isEmptyProps(props) && !hasContent(innerHTML) && !hasContent(t.textContent))
|
|
312
|
+
continue;
|
|
313
|
+
if (tag === "meta") {
|
|
314
|
+
if (!hasContent(props.content) && !props["http-equiv"] && !props.charset)
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if (tag === "script" && (innerHTML || t.textContent)) {
|
|
318
|
+
const type = String(props.type);
|
|
319
|
+
const isJsonLike = type.endsWith("json") || type === "importmap" || type === "speculationrules";
|
|
320
|
+
const escape = (content) => isJsonLike ? (typeof content === "string" ? content : JSON.stringify(content)).replace(LT_RE, "\\u003C") : typeof content === "string" ? content.replace(SCRIPT_END_RE, "<\\/script") : content;
|
|
321
|
+
t = { ...t };
|
|
322
|
+
if (innerHTML)
|
|
323
|
+
t.innerHTML = escape(innerHTML);
|
|
324
|
+
if (t.textContent)
|
|
325
|
+
t.textContent = escape(t.textContent);
|
|
326
|
+
t._d = dedupeKey(t);
|
|
327
|
+
}
|
|
328
|
+
tags[w++] = t;
|
|
329
|
+
}
|
|
330
|
+
tags.length = w;
|
|
331
|
+
return tags;
|
|
332
|
+
}
|
|
333
|
+
function sanitizeTags(tags) {
|
|
334
|
+
return sanitizeTagsInPlace([...tags]);
|
|
335
|
+
}
|
|
336
|
+
function resolveTags(head, options) {
|
|
337
|
+
const weightFn = options?.tagWeight ?? head.resolvedOptions._tagWeight ?? DEFAULT_TAG_WEIGHT;
|
|
338
|
+
const ctx = { tagMap: /* @__PURE__ */ new Map(), tags: [] };
|
|
339
|
+
const hooks = head.hooks?._hooks || {};
|
|
340
|
+
syncEntryHookCache(head, hooks);
|
|
341
|
+
for (const e of head.entries.values()) {
|
|
342
|
+
if (e._pending !== void 0) {
|
|
343
|
+
e.input = e._pending;
|
|
344
|
+
delete e._pending;
|
|
345
|
+
delete e._tags;
|
|
346
|
+
delete e._precomputedTags;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
let entries;
|
|
350
|
+
if (hooks["entries:resolve"]?.length || hooks["entries:normalize"]?.length) {
|
|
351
|
+
entries = [...head.entries.values()];
|
|
352
|
+
if (hooks["entries:resolve"]?.length)
|
|
353
|
+
callHook(head, "entries:resolve", { entries, ...ctx });
|
|
354
|
+
}
|
|
355
|
+
syncEntryHookCache(head, hooks);
|
|
356
|
+
for (const e of entries || head.entries.values()) {
|
|
357
|
+
let tags = e._tags;
|
|
358
|
+
if (!tags) {
|
|
359
|
+
if (e._precomputedTags && weightFn === head.resolvedOptions._tagWeight && !hooks["entries:normalize"]?.length && !hooks["entries:resolve"]?.length && (!e.options || isEmptyProps(e.options))) {
|
|
360
|
+
tags = e._precomputedTags;
|
|
361
|
+
} else {
|
|
362
|
+
tags = normalizeEntryToTags(e.input, head.resolvedOptions.propResolvers || []);
|
|
363
|
+
if (e.options && !isEmptyProps(e.options)) {
|
|
364
|
+
for (const t of tags)
|
|
365
|
+
Object.assign(t, e.options);
|
|
366
|
+
}
|
|
367
|
+
if (hooks["entries:normalize"]?.length) {
|
|
368
|
+
const normalizeCtx = { tags, entry: e };
|
|
369
|
+
callHook(head, "entries:normalize", normalizeCtx);
|
|
370
|
+
tags = normalizeCtx.tags;
|
|
371
|
+
}
|
|
372
|
+
for (let i = 0; i < tags.length; i++) {
|
|
373
|
+
const t = tags[i];
|
|
374
|
+
t._w = weightFn(t);
|
|
375
|
+
t._p = (e._i << 10) + i;
|
|
376
|
+
t._d = dedupeKey(t);
|
|
377
|
+
if (!t._d)
|
|
378
|
+
t._h = hashTag(t);
|
|
379
|
+
}
|
|
380
|
+
e._tags = tags;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
ctx.tags.push(...tags);
|
|
384
|
+
}
|
|
385
|
+
for (const name in hooks) {
|
|
386
|
+
if (hooks[name]?.length && TAG_MUTATING_HOOK_RE.test(name)) {
|
|
387
|
+
cloneTagsInPlace(ctx.tags);
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const hasFlatMeta = dedupeTags(ctx);
|
|
392
|
+
resolveTitleTemplate(ctx, head);
|
|
393
|
+
valuesToTags(ctx, hasFlatMeta);
|
|
394
|
+
callHook(head, "tags:beforeResolve", ctx);
|
|
395
|
+
callHook(head, "tags:resolve", ctx);
|
|
396
|
+
callHook(head, "tags:afterResolve", ctx);
|
|
397
|
+
return sanitizeTagsInPlace(ctx.tags);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export { INVALID_ATTR_NAME_RE as I, dedupeTags as a, normalizeProps as b, resolveTitleTemplate as c, dedupeKey as d, resolveHeadInput as e, hashTag as h, isMetaArrayDupeKey as i, normalizeEntryToTags as n, resolveTags as r, sanitizeTags as s, walkResolver as w };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c as createUnhead } from './unhead.D7HkBzZn.mjs';
|
|
2
|
+
import { b as TagPriorityAliases } from './unhead.CGPOfp5O.mjs';
|
|
3
|
+
import { c as createHooks } from './unhead.Bm4Y6XQI.mjs';
|
|
4
|
+
import { c as createClientHeadAdapter } from './unhead.Bb4d5b9h.mjs';
|
|
5
|
+
import { c as createDomRenderer } from './unhead.C3b2Ipoj.mjs';
|
|
6
|
+
|
|
7
|
+
const tagWeight = (tag) => typeof tag.tagPriority === "number" ? tag.tagPriority : 100 + (TagPriorityAliases[tag.tagPriority] || 0);
|
|
8
|
+
function createHead(options = {}) {
|
|
9
|
+
options.document = options.document || (typeof window !== "undefined" ? document : void 0);
|
|
10
|
+
const renderer = options.render || createDomRenderer({ document: options.document });
|
|
11
|
+
const core = createUnhead(renderer, { document: options.document, propResolvers: options.propResolvers, _tagWeight: tagWeight, init: [] });
|
|
12
|
+
const hooks = createHooks(options.hooks);
|
|
13
|
+
const head = createClientHeadAdapter(core, hooks, renderer);
|
|
14
|
+
options.plugins?.forEach((p) => head.use(p));
|
|
15
|
+
options.init?.forEach((e) => e && head.push(e));
|
|
16
|
+
return head;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { createHead as c };
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { u as unpackMeta } from './unhead.BQWSw36o.mjs';
|
|
2
|
+
import { d as defineHeadPlugin } from './unhead.CHEy9ana.mjs';
|
|
3
|
+
import { h as hasContent, i as isUnsafeKey } from './unhead.CGPOfp5O.mjs';
|
|
4
|
+
|
|
5
|
+
const FlatMetaPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
6
|
+
key: "flatMeta",
|
|
7
|
+
hooks: {
|
|
8
|
+
"entries:normalize": (ctx) => {
|
|
9
|
+
let hasFlatMeta = false;
|
|
10
|
+
const tags = [];
|
|
11
|
+
const tagsToAdd = [];
|
|
12
|
+
for (const t of ctx.tags) {
|
|
13
|
+
if (t.tag !== "_flatMeta") {
|
|
14
|
+
tags.push(t);
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
hasFlatMeta = true;
|
|
18
|
+
for (const props of unpackMeta(t.props))
|
|
19
|
+
tagsToAdd.push({ ...t, tag: "meta", props });
|
|
20
|
+
}
|
|
21
|
+
if (!hasFlatMeta)
|
|
22
|
+
return;
|
|
23
|
+
for (const tag of tagsToAdd) tags.push(tag);
|
|
24
|
+
ctx.tags = tags;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const WhitelistAttributes = {
|
|
30
|
+
htmlAttrs: /* @__PURE__ */ new Set(["class", "style", "lang", "dir"]),
|
|
31
|
+
bodyAttrs: /* @__PURE__ */ new Set(["class", "style"]),
|
|
32
|
+
meta: /* @__PURE__ */ new Set(["name", "property", "charset", "content", "media"]),
|
|
33
|
+
noscript: /* @__PURE__ */ new Set([]),
|
|
34
|
+
style: /* @__PURE__ */ new Set(["media", "nonce", "title", "blocking"]),
|
|
35
|
+
script: /* @__PURE__ */ new Set(["type", "textContent", "nonce", "blocking"]),
|
|
36
|
+
link: /* @__PURE__ */ new Set(["color", "crossorigin", "fetchpriority", "href", "hreflang", "imagesrcset", "imagesizes", "integrity", "media", "referrerpolicy", "rel", "sizes", "type"])
|
|
37
|
+
};
|
|
38
|
+
const BlockedLinkRels = /* @__PURE__ */ new Set(["canonical", "modulepreload", "prerender", "preload", "prefetch", "dns-prefetch", "preconnect", "manifest", "pingback"]);
|
|
39
|
+
const SafeDataAttrName = /^[a-z][a-z0-9-]*[a-z0-9]$/i;
|
|
40
|
+
const AsciiWhitespace = /[\t\n\f\r ]+/;
|
|
41
|
+
const HtmlEntityHex = /&#x([0-9a-f]+);?/gi;
|
|
42
|
+
const HtmlEntityDec = /&#(\d+);?/g;
|
|
43
|
+
const HtmlEntityNamed = /&(tab|newline|colon|semi|lpar|rpar|sol|bsol|comma|period|excl|num|dollar|percnt|amp|apos|ast|plus|lt|gt|equals|quest|at|lsqb|rsqb|lcub|rcub|vert|hat|grave|tilde|nbsp);?/gi;
|
|
44
|
+
const ControlChars = /[\x00-\x20]+/g;
|
|
45
|
+
const NamedEntityMap = {
|
|
46
|
+
tab: " ",
|
|
47
|
+
newline: "\n",
|
|
48
|
+
colon: ":",
|
|
49
|
+
semi: ";",
|
|
50
|
+
lpar: "(",
|
|
51
|
+
rpar: ")",
|
|
52
|
+
sol: "/",
|
|
53
|
+
bsol: "\\",
|
|
54
|
+
comma: ",",
|
|
55
|
+
period: ".",
|
|
56
|
+
excl: "!",
|
|
57
|
+
num: "#",
|
|
58
|
+
dollar: "$",
|
|
59
|
+
percnt: "%",
|
|
60
|
+
amp: "&",
|
|
61
|
+
apos: "'",
|
|
62
|
+
ast: "*",
|
|
63
|
+
plus: "+",
|
|
64
|
+
lt: "<",
|
|
65
|
+
gt: ">",
|
|
66
|
+
equals: "=",
|
|
67
|
+
quest: "?",
|
|
68
|
+
at: "@",
|
|
69
|
+
lsqb: "[",
|
|
70
|
+
rsqb: "]",
|
|
71
|
+
lcub: "{",
|
|
72
|
+
rcub: "}",
|
|
73
|
+
vert: "|",
|
|
74
|
+
hat: "^",
|
|
75
|
+
grave: "`",
|
|
76
|
+
tilde: "~",
|
|
77
|
+
nbsp: "\xA0"
|
|
78
|
+
};
|
|
79
|
+
function safeFromCodePoint(codePoint) {
|
|
80
|
+
if (codePoint > 1114111 || codePoint < 0 || Number.isNaN(codePoint))
|
|
81
|
+
return "";
|
|
82
|
+
return String.fromCodePoint(codePoint);
|
|
83
|
+
}
|
|
84
|
+
function decodeHtmlEntities(str) {
|
|
85
|
+
return str.replace(HtmlEntityHex, (_, hex) => safeFromCodePoint(Number.parseInt(hex, 16))).replace(HtmlEntityDec, (_, dec) => safeFromCodePoint(Number(dec))).replace(HtmlEntityNamed, (_, name) => NamedEntityMap[name.toLowerCase()] || "");
|
|
86
|
+
}
|
|
87
|
+
function hasDangerousProtocol(url) {
|
|
88
|
+
const entityDecoded = decodeHtmlEntities(url);
|
|
89
|
+
const cleaned = entityDecoded.replace(ControlChars, "");
|
|
90
|
+
let decoded;
|
|
91
|
+
try {
|
|
92
|
+
decoded = decodeURIComponent(cleaned);
|
|
93
|
+
} catch {
|
|
94
|
+
decoded = cleaned;
|
|
95
|
+
}
|
|
96
|
+
const sanitized = decoded.replace(ControlChars, "");
|
|
97
|
+
const lower = sanitized.toLowerCase();
|
|
98
|
+
return lower.startsWith("javascript:") || lower.startsWith("data:") || lower.startsWith("vbscript:");
|
|
99
|
+
}
|
|
100
|
+
function stripProtoKeys(obj) {
|
|
101
|
+
if (Array.isArray(obj))
|
|
102
|
+
return obj.map(stripProtoKeys);
|
|
103
|
+
if (obj && typeof obj === "object") {
|
|
104
|
+
const clean = {};
|
|
105
|
+
for (const key of Object.keys(obj)) {
|
|
106
|
+
if (isUnsafeKey(key))
|
|
107
|
+
continue;
|
|
108
|
+
clean[key] = stripProtoKeys(obj[key]);
|
|
109
|
+
}
|
|
110
|
+
return clean;
|
|
111
|
+
}
|
|
112
|
+
return obj;
|
|
113
|
+
}
|
|
114
|
+
function acceptDataAttrs(value, allowId = true) {
|
|
115
|
+
const next = {};
|
|
116
|
+
if (!value)
|
|
117
|
+
return next;
|
|
118
|
+
const keys = Object.keys(value);
|
|
119
|
+
for (let i = 0; i < keys.length; i++) {
|
|
120
|
+
const key = keys[i];
|
|
121
|
+
const isData = key.startsWith("data-");
|
|
122
|
+
if ((isData || allowId && key === "id") && SafeDataAttrName.test(key))
|
|
123
|
+
next[key] = value[key];
|
|
124
|
+
}
|
|
125
|
+
return next;
|
|
126
|
+
}
|
|
127
|
+
function hasBlockedRel(rel) {
|
|
128
|
+
const tokens = rel.split(AsciiWhitespace);
|
|
129
|
+
return !tokens.some(Boolean) || tokens.some((token) => BlockedLinkRels.has(token.toLowerCase()));
|
|
130
|
+
}
|
|
131
|
+
function makeTagSafe(tag) {
|
|
132
|
+
let next = {};
|
|
133
|
+
const { tag: type, props: prev } = tag;
|
|
134
|
+
switch (type) {
|
|
135
|
+
// title: textContent is escaped in rendering (tagToString), no props needed
|
|
136
|
+
case "title":
|
|
137
|
+
break;
|
|
138
|
+
// virtual tags, not rendered to HTML — but sanitize to prevent injection if rendered
|
|
139
|
+
case "titleTemplate":
|
|
140
|
+
case "templateParams":
|
|
141
|
+
next = prev;
|
|
142
|
+
break;
|
|
143
|
+
case "htmlAttrs":
|
|
144
|
+
case "bodyAttrs":
|
|
145
|
+
WhitelistAttributes[type].forEach((attr) => {
|
|
146
|
+
if (prev[attr]) {
|
|
147
|
+
next[attr] = prev[attr];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
delete tag.innerHTML;
|
|
151
|
+
delete tag.textContent;
|
|
152
|
+
tag.props = { ...acceptDataAttrs(prev, false), ...next };
|
|
153
|
+
return !Object.keys(tag.props).length ? false : tag;
|
|
154
|
+
case "style":
|
|
155
|
+
next = acceptDataAttrs(prev);
|
|
156
|
+
WhitelistAttributes.style.forEach((key) => {
|
|
157
|
+
if (prev[key]) {
|
|
158
|
+
next[key] = prev[key];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
break;
|
|
162
|
+
// meta is safe, except for http-equiv
|
|
163
|
+
case "meta":
|
|
164
|
+
WhitelistAttributes.meta.forEach((key) => {
|
|
165
|
+
if (hasContent(prev[key])) {
|
|
166
|
+
next[key] = prev[key];
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
break;
|
|
170
|
+
// link tags we block preloading, prerendering, prefetching, dns-prefetch, preconnect, manifest, etc
|
|
171
|
+
case "link":
|
|
172
|
+
WhitelistAttributes.link.forEach((key) => {
|
|
173
|
+
const val = prev[key];
|
|
174
|
+
if (!val) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (key === "rel" && (typeof val !== "string" || hasBlockedRel(val))) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
if (key === "href" || key === "imagesrcset") {
|
|
181
|
+
if (typeof val !== "string") {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const urls = key === "imagesrcset" ? val.split(",").map((s) => s.trim()) : [val];
|
|
185
|
+
if (urls.some((u) => hasDangerousProtocol(u))) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
next[key] = val;
|
|
189
|
+
} else if (val) {
|
|
190
|
+
next[key] = val;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
if (!next.href && !next.imagesrcset || !next.rel) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
break;
|
|
197
|
+
case "noscript":
|
|
198
|
+
WhitelistAttributes.noscript.forEach((key) => {
|
|
199
|
+
if (prev[key]) {
|
|
200
|
+
next[key] = prev[key];
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
break;
|
|
204
|
+
// we only allow JSON in scripts
|
|
205
|
+
case "script":
|
|
206
|
+
if (!tag.textContent || typeof prev.type !== "string" || !prev.type.endsWith("json")) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
try {
|
|
210
|
+
const jsonVal = typeof tag.textContent === "string" ? JSON.parse(tag.textContent) : tag.textContent;
|
|
211
|
+
tag.textContent = JSON.stringify(stripProtoKeys(jsonVal), null, 0);
|
|
212
|
+
} catch {
|
|
213
|
+
return false;
|
|
214
|
+
}
|
|
215
|
+
WhitelistAttributes.script.forEach((s) => {
|
|
216
|
+
if (s !== "textContent" && prev[s]) {
|
|
217
|
+
next[s] = prev[s];
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
delete tag.innerHTML;
|
|
223
|
+
if (type !== "title" && type !== "script") {
|
|
224
|
+
delete tag.textContent;
|
|
225
|
+
}
|
|
226
|
+
tag.props = { ...acceptDataAttrs(prev), ...next };
|
|
227
|
+
if (!Object.keys(tag.props).length && !tag.tag.endsWith("Attrs") && !tag.textContent) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
return tag;
|
|
231
|
+
}
|
|
232
|
+
const SafeInputPlugin = /* @__PURE__ */ defineHeadPlugin({
|
|
233
|
+
key: "safe",
|
|
234
|
+
hooks: {
|
|
235
|
+
"entries:normalize": (ctx) => {
|
|
236
|
+
if (ctx.entry.options?._safe) {
|
|
237
|
+
ctx.tags = ctx.tags.reduce((acc, tag) => {
|
|
238
|
+
const safeTag = makeTagSafe(tag);
|
|
239
|
+
if (safeTag)
|
|
240
|
+
acc.push(safeTag);
|
|
241
|
+
return acc;
|
|
242
|
+
}, []);
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"tags:afterResolve": (ctx) => {
|
|
246
|
+
ctx.tags = ctx.tags.reduce((acc, tag) => {
|
|
247
|
+
if (!tag._safe) {
|
|
248
|
+
acc.push(tag);
|
|
249
|
+
return acc;
|
|
250
|
+
}
|
|
251
|
+
if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") {
|
|
252
|
+
acc.push(tag);
|
|
253
|
+
return acc;
|
|
254
|
+
}
|
|
255
|
+
const safeTag = makeTagSafe(tag);
|
|
256
|
+
if (safeTag)
|
|
257
|
+
acc.push(safeTag);
|
|
258
|
+
return acc;
|
|
259
|
+
}, []);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export { FlatMetaPlugin as F, SafeInputPlugin as S };
|