emdash 0.33.0 → 0.35.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/dist/{adapters-BMyNSSZi.d.mts → adapters-Bb1vG41D.d.mts} +33 -2
- package/dist/adapters-Bb1vG41D.d.mts.map +1 -0
- package/dist/{allowed-origins-CG1pACtS.mjs → allowed-origins-DW7sYyqg.mjs} +2 -2
- package/dist/{allowed-origins-CG1pACtS.mjs.map → allowed-origins-DW7sYyqg.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +22 -21
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +6 -5
- package/dist/{api-D2hunekQ.mjs → api-BeBglVxU.mjs} +98 -407
- package/dist/api-BeBglVxU.mjs.map +1 -0
- package/dist/{api-tokens-CSND0i1z.mjs → api-tokens-KO24G1Fd.mjs} +2 -2
- package/dist/{api-tokens-CSND0i1z.mjs.map → api-tokens-KO24G1Fd.mjs.map} +1 -1
- package/dist/{apply-kwNEJW2l.mjs → apply-kUDt80-G.mjs} +131 -107
- package/dist/apply-kUDt80-G.mjs.map +1 -0
- package/dist/astro/index.d.mts +12 -12
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +163 -49
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +10 -10
- package/dist/astro/middleware/auth.mjs +8 -8
- package/dist/astro/middleware/media-usage-write-fence.d.mts +7 -0
- package/dist/astro/middleware/media-usage-write-fence.d.mts.map +1 -0
- package/dist/astro/middleware/media-usage-write-fence.mjs +35 -0
- package/dist/astro/middleware/media-usage-write-fence.mjs.map +1 -0
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +10 -7
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.mjs +3 -3
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +12 -11
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +1763 -173
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +9 -8
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +9 -8
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/api-tokens/index.mjs +6 -6
- package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +6 -6
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +12 -11
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +12 -11
- package/dist/astro/routes/api/admin/byline-fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +12 -11
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +17 -17
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +17 -17
- package/dist/astro/routes/api/admin/bylines/index.mjs +17 -17
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +14 -13
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/bulk.mjs +12 -11
- package/dist/astro/routes/api/admin/comments/bulk.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +6 -6
- package/dist/astro/routes/api/admin/comments/index.mjs +12 -11
- package/dist/astro/routes/api/admin/comments/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +5 -5
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +4 -4
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +36 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.d.mts +8 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +36 -0
- package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/repair.mjs +15 -14
- package/dist/astro/routes/api/admin/media-usage/repair.mjs.map +1 -1
- package/dist/astro/routes/api/admin/media-usage/work/index.d.mts +8 -0
- package/dist/astro/routes/api/admin/media-usage/work/index.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs +37 -0
- package/dist/astro/routes/api/admin/media-usage/work/index.mjs.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/work/retry.d.mts +8 -0
- package/dist/astro/routes/api/admin/media-usage/work/retry.d.mts.map +1 -0
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +37 -0
- package/dist/astro/routes/api/admin/media-usage/work/retry.mjs.map +1 -0
- package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +5 -5
- package/dist/astro/routes/api/admin/oauth-clients/index.mjs +5 -5
- package/dist/astro/routes/api/admin/plugins/_id_/disable.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +51 -43
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +51 -43
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +6 -6
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +50 -42
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +50 -42
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +4 -4
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +50 -42
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +50 -42
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +51 -43
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.d.mts.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +51 -43
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +47 -42
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +47 -42
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +4 -4
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +47 -42
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +9 -8
- package/dist/astro/routes/api/admin/users/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +4 -4
- package/dist/astro/routes/api/admin/users/index.mjs +9 -8
- package/dist/astro/routes/api/admin/users/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.d.mts.map +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -9
- package/dist/astro/routes/api/auth/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/accept.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/complete.mjs +13 -12
- package/dist/astro/routes/api/auth/invite/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/index.mjs +10 -9
- package/dist/astro/routes/api/auth/invite/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/register-options.mjs +12 -11
- package/dist/astro/routes/api/auth/invite/register-options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/logout.mjs +4 -4
- package/dist/astro/routes/api/auth/magic-link/send.mjs +12 -11
- package/dist/astro/routes/api/auth/magic-link/send.mjs.map +1 -1
- package/dist/astro/routes/api/auth/magic-link/verify.mjs +4 -4
- package/dist/astro/routes/api/auth/me.mjs +10 -9
- package/dist/astro/routes/api/auth/me.mjs.map +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +4 -4
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +3 -3
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +9 -8
- package/dist/astro/routes/api/auth/passkey/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/index.mjs +3 -3
- package/dist/astro/routes/api/auth/passkey/options.mjs +14 -13
- package/dist/astro/routes/api/auth/passkey/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +12 -11
- package/dist/astro/routes/api/auth/passkey/register/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +13 -12
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/verify.mjs +13 -12
- package/dist/astro/routes/api/auth/passkey/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.mjs +13 -12
- package/dist/astro/routes/api/auth/signup/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/request.mjs +12 -11
- package/dist/astro/routes/api/auth/signup/request.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/verify.mjs +3 -3
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +15 -14
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs.map +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +14 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +13 -13
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +18 -17
- package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.d.mts.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +44 -31
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +5 -5
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/authors.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/index.mjs +11 -10
- package/dist/astro/routes/api/content/_collection_/index.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/trash.mjs +10 -9
- package/dist/astro/routes/api/content/_collection_/trash.mjs.map +1 -1
- package/dist/astro/routes/api/dashboard.mjs +10 -8
- package/dist/astro/routes/api/dashboard.mjs.map +1 -1
- package/dist/astro/routes/api/dev/emails.mjs +4 -4
- package/dist/astro/routes/api/import/probe.d.mts +3 -3
- package/dist/astro/routes/api/import/probe.mjs +18 -16
- package/dist/astro/routes/api/import/probe.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/analyze.mjs +5 -5
- package/dist/astro/routes/api/import/wordpress/execute.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress/execute.mjs +15 -15
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.d.mts +10 -10
- package/dist/astro/routes/api/import/wordpress/media.mjs +14 -12
- package/dist/astro/routes/api/import/wordpress/media.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +13 -12
- package/dist/astro/routes/api/import/wordpress/prepare.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +14 -14
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +18 -16
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/callback.mjs +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +11 -11
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +28 -27
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
- package/dist/astro/routes/api/manifest.mjs +5 -5
- package/dist/astro/routes/api/mcp.d.mts.map +1 -1
- package/dist/astro/routes/api/mcp.mjs +174 -72
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +13 -11
- package/dist/astro/routes/api/media/_id_/confirm.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/upload.mjs +6 -6
- package/dist/astro/routes/api/media/_id_/usage.mjs +17 -16
- package/dist/astro/routes/api/media/_id_/usage.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_.mjs +16 -15
- package/dist/astro/routes/api/media/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/media/file/_...key_.mjs +3 -3
- package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +4 -4
- package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +4 -4
- package/dist/astro/routes/api/media/providers/index.mjs +4 -4
- package/dist/astro/routes/api/media/upload-url.mjs +11 -10
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.mjs +18 -15
- package/dist/astro/routes/api/media.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +11 -11
- package/dist/astro/routes/api/menus/_name_/items.mjs +11 -11
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +11 -11
- package/dist/astro/routes/api/menus/_name_/translations.mjs +11 -11
- package/dist/astro/routes/api/menus/_name_.mjs +11 -11
- package/dist/astro/routes/api/menus/index.mjs +11 -11
- package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
- package/dist/astro/routes/api/oauth/device/authorize.mjs +7 -7
- package/dist/astro/routes/api/oauth/device/code.mjs +10 -10
- package/dist/astro/routes/api/oauth/device/token.mjs +9 -9
- package/dist/astro/routes/api/oauth/register.mjs +4 -4
- package/dist/astro/routes/api/oauth/token/refresh.mjs +7 -7
- package/dist/astro/routes/api/oauth/token/revoke.mjs +7 -7
- package/dist/astro/routes/api/oauth/token.mjs +7 -7
- package/dist/astro/routes/api/openapi.json.mjs +152 -6
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.d.mts.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +8 -7
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/index.mjs +12 -11
- package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/summary.mjs +12 -11
- package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +13 -12
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +13 -12
- package/dist/astro/routes/api/redirects/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/_id_/index.mjs +18 -17
- package/dist/astro/routes/api/relations/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/relations/_id_/translations.mjs +13 -12
- package/dist/astro/routes/api/relations/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/relations/index.mjs +18 -17
- package/dist/astro/routes/api/relations/index.mjs.map +1 -1
- package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +4 -4
- package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +5 -5
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.d.mts.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/reorder.mjs +47 -42
- package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +10 -9
- package/dist/astro/routes/api/schema/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +47 -42
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +47 -42
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +13 -13
- package/dist/astro/routes/api/search/index.mjs +12 -12
- package/dist/astro/routes/api/search/rebuild.mjs +13 -13
- package/dist/astro/routes/api/search/stats.mjs +8 -8
- package/dist/astro/routes/api/search/suggest.mjs +12 -12
- package/dist/astro/routes/api/sections/_slug_.mjs +12 -11
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +12 -11
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/archives/index.mjs +6 -6
- package/dist/astro/routes/api/settings/backups/export.mjs +7 -7
- package/dist/astro/routes/api/settings/backups/index.mjs +8 -8
- package/dist/astro/routes/api/settings/email.mjs +5 -5
- package/dist/astro/routes/api/settings.mjs +14 -13
- package/dist/astro/routes/api/settings.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.mjs +14 -13
- package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin.mjs +13 -12
- package/dist/astro/routes/api/setup/admin.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/dev-bypass.mjs +30 -31
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +3 -3
- package/dist/astro/routes/api/setup/index.d.mts.map +1 -1
- package/dist/astro/routes/api/setup/index.mjs +31 -35
- package/dist/astro/routes/api/setup/index.mjs.map +1 -1
- package/dist/astro/routes/api/setup/status.mjs +5 -5
- package/dist/astro/routes/api/snapshot.mjs +8 -8
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +16 -15
- package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +16 -15
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +16 -15
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.d.mts.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +18 -16
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/translations.d.mts +8 -0
- package/dist/astro/routes/api/taxonomies/_name_/translations.d.mts.map +1 -0
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +46 -0
- package/dist/astro/routes/api/taxonomies/_name_/translations.mjs.map +1 -0
- package/dist/astro/routes/api/taxonomies/_name_.d.mts +19 -0
- package/dist/astro/routes/api/taxonomies/_name_.d.mts.map +1 -0
- package/dist/astro/routes/api/taxonomies/_name_.mjs +88 -0
- package/dist/astro/routes/api/taxonomies/_name_.mjs.map +1 -0
- package/dist/astro/routes/api/taxonomies/index.mjs +16 -15
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- package/dist/astro/routes/api/themes/preview.mjs +6 -6
- package/dist/astro/routes/api/typegen.mjs +6 -6
- package/dist/astro/routes/api/well-known/auth.mjs +1 -1
- package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
- package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +10 -9
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +12 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +12 -11
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +7 -6
- package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/index.mjs +12 -11
- package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
- package/dist/astro/routes/api/widget-components.mjs +4 -4
- package/dist/astro/routes/robots.txt.mjs +7 -6
- package/dist/astro/routes/robots.txt.mjs.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +10 -10
- package/dist/astro/routes/sitemap.xml.mjs +8 -7
- package/dist/astro/routes/sitemap.xml.mjs.map +1 -1
- package/dist/astro/types.d.mts +35 -17
- package/dist/astro/types.d.mts.map +1 -1
- package/dist/auth/providers/github.d.mts +1 -1
- package/dist/auth/providers/google.d.mts +1 -1
- package/dist/{authorize-qRhWQnel.mjs → authorize-DUElxgOQ.mjs} +2 -2
- package/dist/{authorize-qRhWQnel.mjs.map → authorize-DUElxgOQ.mjs.map} +1 -1
- package/dist/{backup-CtA6LDNw.mjs → backup-DWYpJlLj.mjs} +4 -4
- package/dist/{backup-CtA6LDNw.mjs.map → backup-DWYpJlLj.mjs.map} +1 -1
- package/dist/{base64-B-PsqheR.mjs → base64-CvLhUKQv.mjs} +1 -1
- package/dist/{base64-B-PsqheR.mjs.map → base64-CvLhUKQv.mjs.map} +1 -1
- package/dist/bundle-vn56sLos.mjs +663 -0
- package/dist/bundle-vn56sLos.mjs.map +1 -0
- package/dist/{byline-fields-CNc0Yq5i.mjs → byline-fields-txaLGoME.mjs} +2 -2
- package/dist/{byline-fields-CNc0Yq5i.mjs.map → byline-fields-txaLGoME.mjs.map} +1 -1
- package/dist/{byline-registry-ZkPKqEwC.mjs → byline-registry-DDun8sxh.mjs} +2 -2
- package/dist/{byline-registry-ZkPKqEwC.mjs.map → byline-registry-DDun8sxh.mjs.map} +1 -1
- package/dist/{byline-Cp6csL84.mjs → byline-yjvWq4ip.mjs} +5 -5
- package/dist/{byline-Cp6csL84.mjs.map → byline-yjvWq4ip.mjs.map} +1 -1
- package/dist/{bylines-cf-C9lmF.mjs → bylines-Bu7pchQ4.mjs} +5 -5
- package/dist/{bylines-cf-C9lmF.mjs.map → bylines-Bu7pchQ4.mjs.map} +1 -1
- package/dist/{bylines-CEj5CdT4.mjs → bylines-DjXS5p0P.mjs} +7 -7
- package/dist/{bylines-CEj5CdT4.mjs.map → bylines-DjXS5p0P.mjs.map} +1 -1
- package/dist/{cache-C9FptTFR.mjs → cache-C46-3Irl.mjs} +3 -3
- package/dist/{cache-C9FptTFR.mjs.map → cache-C46-3Irl.mjs.map} +1 -1
- package/dist/{challenge-store-D9VNKELo.mjs → challenge-store-SIL5DsF2.mjs} +1 -1
- package/dist/{challenge-store-D9VNKELo.mjs.map → challenge-store-SIL5DsF2.mjs.map} +1 -1
- package/dist/{chunks-DbYzib_k.mjs → chunks-fiZ8G9RJ.mjs} +2 -2
- package/dist/{chunks-DbYzib_k.mjs.map → chunks-fiZ8G9RJ.mjs.map} +1 -1
- package/dist/cli/index.mjs +655 -677
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +74 -4
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/index.mjs +25 -2
- package/dist/client/index.mjs.map +1 -1
- package/dist/collection-deletion-DQPvMD8R.mjs +779 -0
- package/dist/collection-deletion-DQPvMD8R.mjs.map +1 -0
- package/dist/{comment-BIkJ6Fil.mjs → comment-Dxlep6cE.mjs} +2 -2
- package/dist/{comment-BIkJ6Fil.mjs.map → comment-Dxlep6cE.mjs.map} +1 -1
- package/dist/{comment-reaction-D-laEceb.mjs → comment-reaction-D-2J84UE.mjs} +2 -2
- package/dist/{comment-reaction-D-laEceb.mjs.map → comment-reaction-D-2J84UE.mjs.map} +1 -1
- package/dist/{comments-0_w6KChA.mjs → comments-CTfZtLmM.mjs} +3 -3
- package/dist/{comments-0_w6KChA.mjs.map → comments-CTfZtLmM.mjs.map} +1 -1
- package/dist/{components-BPxrRjpE.mjs → components-CQy3lh9x.mjs} +1 -1
- package/dist/{components-BPxrRjpE.mjs.map → components-CQy3lh9x.mjs.map} +1 -1
- package/dist/{config-DyF3OKg_.mjs → config-C3EBstHi.mjs} +18 -2
- package/dist/config-C3EBstHi.mjs.map +1 -0
- package/dist/config-COQzTe5Q.d.mts +34 -0
- package/dist/config-COQzTe5Q.d.mts.map +1 -0
- package/dist/{content-CJ94NEx5.mjs → content-ZHCc1ngN.mjs} +509 -78
- package/dist/content-ZHCc1ngN.mjs.map +1 -0
- package/dist/content-list-query-wJ2WN8Vp.d.mts +26 -0
- package/dist/content-list-query-wJ2WN8Vp.d.mts.map +1 -0
- package/dist/content-refresh-B_8SJzuU.mjs +2560 -0
- package/dist/content-refresh-B_8SJzuU.mjs.map +1 -0
- package/dist/{context-C_1nrqnW.mjs → context-ZldbZcle.mjs} +25 -17
- package/dist/context-ZldbZcle.mjs.map +1 -0
- package/dist/{cron-DRV-UC4K.mjs → cron-Y9aLtgrA.mjs} +1 -1
- package/dist/{cron-DRV-UC4K.mjs.map → cron-Y9aLtgrA.mjs.map} +1 -1
- package/dist/{dashboard-DINnNVVU.mjs → dashboard-DvHbk_cv.mjs} +44 -10
- package/dist/dashboard-DvHbk_cv.mjs.map +1 -0
- package/dist/db/index.d.mts +4 -4
- package/dist/db/index.mjs +31 -8
- package/dist/db/index.mjs.map +1 -1
- package/dist/db/libsql-migrations.d.mts +11 -0
- package/dist/db/libsql-migrations.d.mts.map +1 -0
- package/dist/db/libsql-migrations.mjs +57 -0
- package/dist/db/libsql-migrations.mjs.map +1 -0
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres-migrations.d.mts +10 -0
- package/dist/db/postgres-migrations.d.mts.map +1 -0
- package/dist/db/postgres-migrations.mjs +47 -0
- package/dist/db/postgres-migrations.mjs.map +1 -0
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite-migrations.d.mts +10 -0
- package/dist/db/sqlite-migrations.d.mts.map +1 -0
- package/dist/db/sqlite-migrations.mjs +28 -0
- package/dist/db/sqlite-migrations.mjs.map +1 -0
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{db-errors-CcWLaRiR.mjs → db-errors-Cl-sKYTm.mjs} +1 -1
- package/dist/{db-errors-CcWLaRiR.mjs.map → db-errors-Cl-sKYTm.mjs.map} +1 -1
- package/dist/{default-BD2FG0xV.mjs → default-DdDl3fxv.mjs} +1 -1
- package/dist/{default-BD2FG0xV.mjs.map → default-DdDl3fxv.mjs.map} +1 -1
- package/dist/{deferred-tasks-C-WRCcKo.d.mts → deferred-tasks-SDWxrgzJ.d.mts} +1 -1
- package/dist/{deferred-tasks-C-WRCcKo.d.mts.map → deferred-tasks-SDWxrgzJ.d.mts.map} +1 -1
- package/dist/{device-flow-CTqd8mud.mjs → device-flow-C0GdD_z8.mjs} +4 -4
- package/dist/{device-flow-CTqd8mud.mjs.map → device-flow-C0GdD_z8.mjs.map} +1 -1
- package/dist/direct-executor-CDXeJCSs.mjs +85 -0
- package/dist/direct-executor-CDXeJCSs.mjs.map +1 -0
- package/dist/dist-D_6CKR8z.mjs +810 -0
- package/dist/dist-D_6CKR8z.mjs.map +1 -0
- package/dist/{email-console-C6WdcWbL.mjs → email-console-BHNjIwiB.mjs} +1 -1
- package/dist/{email-console-C6WdcWbL.mjs.map → email-console-BHNjIwiB.mjs.map} +1 -1
- package/dist/{enrich-CFJJgxs_.mjs → enrich-_ySMEvEE.mjs} +2 -2
- package/dist/{enrich-CFJJgxs_.mjs.map → enrich-_ySMEvEE.mjs.map} +1 -1
- package/dist/{error-oh_9i6bR.mjs → error-DupyJZE2.mjs} +3 -3
- package/dist/{error-oh_9i6bR.mjs.map → error-DupyJZE2.mjs.map} +1 -1
- package/dist/{errors-BucQ8VYz.mjs → errors-CLUPm7aD.mjs} +14 -2
- package/dist/errors-CLUPm7aD.mjs.map +1 -0
- package/dist/{escape-CXps5F_v.mjs → escape-DUY2r2Zs.mjs} +1 -1
- package/dist/{escape-CXps5F_v.mjs.map → escape-DUY2r2Zs.mjs.map} +1 -1
- package/dist/{field-defs-cache-WD82dMQq.mjs → field-defs-cache-BzwBlJrR.mjs} +4 -4
- package/dist/{field-defs-cache-WD82dMQq.mjs.map → field-defs-cache-BzwBlJrR.mjs.map} +1 -1
- package/dist/{fts-manager-BITakW_R.mjs → fts-manager-DyZEohZC.mjs} +76 -50
- package/dist/fts-manager-DyZEohZC.mjs.map +1 -0
- package/dist/{hreflang-BdZuVBhL.mjs → hreflang-BBe83kKa.mjs} +7 -7
- package/dist/{hreflang-BdZuVBhL.mjs.map → hreflang-BBe83kKa.mjs.map} +1 -1
- package/dist/{hreflang-BaLCNcDx.d.mts → hreflang-DwT2E0Sa.d.mts} +2 -2
- package/dist/{hreflang-BaLCNcDx.d.mts.map → hreflang-DwT2E0Sa.d.mts.map} +1 -1
- package/dist/identity-Ys6Dlc9C.mjs +35 -0
- package/dist/identity-Ys6Dlc9C.mjs.map +1 -0
- package/dist/{import-C-9uqyT3.mjs → import-DPkLmeXO.mjs} +5 -5
- package/dist/{import-C-9uqyT3.mjs.map → import-DPkLmeXO.mjs.map} +1 -1
- package/dist/{index-M37iz29I.d.mts → index-BVBZj4-7.d.mts} +236 -104
- package/dist/index-BVBZj4-7.d.mts.map +1 -0
- package/dist/{index-MGw47uWq.d.mts → index-C9KuQyO-.d.mts} +5 -10
- package/dist/index-C9KuQyO-.d.mts.map +1 -0
- package/dist/index.d.mts +21 -19
- package/dist/index.mjs +73 -67
- package/dist/{init-lock-DJkX6Hto.mjs → init-lock-6b309ZrF.mjs} +1 -1
- package/dist/{init-lock-DJkX6Hto.mjs.map → init-lock-6b309ZrF.mjs.map} +1 -1
- package/dist/{load-DV1DZuUJ.mjs → load-YJ2xl3ra.mjs} +2 -2
- package/dist/{load-DV1DZuUJ.mjs.map → load-YJ2xl3ra.mjs.map} +1 -1
- package/dist/{loader-CGugY7Zl.mjs → loader-CdG_Ci3H.mjs} +95 -53
- package/dist/loader-CdG_Ci3H.mjs.map +1 -0
- package/dist/manifest-builder-B252yQUf.mjs +189 -0
- package/dist/manifest-builder-B252yQUf.mjs.map +1 -0
- package/dist/{manifest-schema-Da7kj23y.mjs → manifest-schema-BXbUAHod.mjs} +1 -1
- package/dist/{manifest-schema-Da7kj23y.mjs.map → manifest-schema-BXbUAHod.mjs.map} +1 -1
- package/dist/media/image-endpoint.mjs +1 -1
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +3 -2
- package/dist/media/index.mjs.map +1 -1
- package/dist/media/local-runtime.d.mts +12 -12
- package/dist/media/local-runtime.mjs +6 -5
- package/dist/media/local-runtime.mjs.map +1 -1
- package/dist/{media-OhYL-7Io.mjs → media-BWWWb8kg.mjs} +92 -3
- package/dist/media-BWWWb8kg.mjs.map +1 -0
- package/dist/{media-BP7S-nHT.mjs → media-CzhAn2--.mjs} +2 -2
- package/dist/{media-BP7S-nHT.mjs.map → media-CzhAn2--.mjs.map} +1 -1
- package/dist/{media-allowlist-D-peH1H5.mjs → media-allowlist-D6x-Us02.mjs} +14 -3
- package/dist/media-allowlist-D6x-Us02.mjs.map +1 -0
- package/dist/{media-upload-DtrwU2B0.mjs → media-upload-CHBVn6m-.mjs} +10 -8
- package/dist/{media-upload-DtrwU2B0.mjs.map → media-upload-CHBVn6m-.mjs.map} +1 -1
- package/dist/{media-url-DYs_YLOx.mjs → media-url-BvoX88FA.mjs} +1 -1
- package/dist/{media-url-DYs_YLOx.mjs.map → media-url-BvoX88FA.mjs.map} +1 -1
- package/dist/{media-usage-BlxfTkN0.mjs → media-usage-BZCydfvu.mjs} +137 -60
- package/dist/media-usage-BZCydfvu.mjs.map +1 -0
- package/dist/media-usage-work-CLo_6tct.mjs +152 -0
- package/dist/media-usage-work-CLo_6tct.mjs.map +1 -0
- package/dist/media-usage-work-DrCbqBcl.mjs +424 -0
- package/dist/media-usage-work-DrCbqBcl.mjs.map +1 -0
- package/dist/media-usage-write-fence-aHEgN1zB.mjs +42 -0
- package/dist/media-usage-write-fence-aHEgN1zB.mjs.map +1 -0
- package/dist/{menus-Y54RDPIN.mjs → menus-DSo5QeW0.mjs} +351 -95
- package/dist/menus-DSo5QeW0.mjs.map +1 -0
- package/dist/{menus-BcQWxeXu.mjs → menus-TCNSd2vp.mjs} +3 -3
- package/dist/{menus-BcQWxeXu.mjs.map → menus-TCNSd2vp.mjs.map} +1 -1
- package/dist/migrations/index.d.mts +22 -0
- package/dist/migrations/index.d.mts.map +1 -0
- package/dist/migrations/index.mjs +7 -0
- package/dist/{mode-BWyTBe3I.mjs → mode-BDoH_WcF.mjs} +1 -1
- package/dist/{mode-BWyTBe3I.mjs.map → mode-BDoH_WcF.mjs.map} +1 -1
- package/dist/{normalize-C-SHXmra.mjs → normalize-Bc-s_r-a.mjs} +1 -1
- package/dist/{normalize-C-SHXmra.mjs.map → normalize-Bc-s_r-a.mjs.map} +1 -1
- package/dist/{oauth-authorization-ClvktmrL.mjs → oauth-authorization-iOikmrJd.mjs} +4 -4
- package/dist/{oauth-authorization-ClvktmrL.mjs.map → oauth-authorization-iOikmrJd.mjs.map} +1 -1
- package/dist/{oauth-clients-8ao-U66l.mjs → oauth-clients-CvI0nHMJ.mjs} +1 -1
- package/dist/{oauth-clients-8ao-U66l.mjs.map → oauth-clients-CvI0nHMJ.mjs.map} +1 -1
- package/dist/{oauth-state-store-B1ofdTiQ.mjs → oauth-state-store-Ba8KZlwW.mjs} +1 -1
- package/dist/{oauth-state-store-B1ofdTiQ.mjs.map → oauth-state-store-Ba8KZlwW.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-CscEuIiR.mjs → oauth-user-lookup-C5SQwGYC.mjs} +1 -1
- package/dist/{oauth-user-lookup-CscEuIiR.mjs.map → oauth-user-lookup-C5SQwGYC.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +1 -1
- package/dist/{options-CA4eVX6P.d.mts → options--hhz-jZ1.d.mts} +4 -3
- package/dist/options--hhz-jZ1.d.mts.map +1 -0
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-CJKNuewM.mjs → parse-DFbuc-Fh.mjs} +2 -2
- package/dist/{parse-CJKNuewM.mjs.map → parse-DFbuc-Fh.mjs.map} +1 -1
- package/dist/{passkey-config-D-zrzMJI.mjs → passkey-config-DFAmUyuE.mjs} +1 -1
- package/dist/{passkey-config-D-zrzMJI.mjs.map → passkey-config-DFAmUyuE.mjs.map} +1 -1
- package/dist/{placeholder-DaeNS-VG.d.mts → placeholder-Dp0K3RkD.d.mts} +1 -1
- package/dist/{placeholder-DaeNS-VG.d.mts.map → placeholder-Dp0K3RkD.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +8 -1
- package/dist/plugin-types.d.mts.map +1 -1
- package/dist/plugin-utils.d.mts +10 -10
- package/dist/plugins/adapt-sandbox-entry.d.mts +10 -10
- package/dist/plugins/adapt-sandbox-entry.mjs +7 -4
- package/dist/plugins/adapt-sandbox-entry.mjs.map +1 -1
- package/dist/policy-TluUIxuu.mjs +45 -0
- package/dist/policy-TluUIxuu.mjs.map +1 -0
- package/dist/{portable-text-B_kqBmXB.mjs → portable-text-imBW5cHK.mjs} +1 -1
- package/dist/{portable-text-B_kqBmXB.mjs.map → portable-text-imBW5cHK.mjs.map} +1 -1
- package/dist/{preview-BU6PaLpM.mjs → preview-PW-nOnq4.mjs} +2 -2
- package/dist/{preview-BU6PaLpM.mjs.map → preview-PW-nOnq4.mjs.map} +1 -1
- package/dist/protocol-DjsJHTlK.d.mts +52 -0
- package/dist/protocol-DjsJHTlK.d.mts.map +1 -0
- package/dist/{public-url-Ox9oOlgp.mjs → public-url-CWoFhQT8.mjs} +1 -1
- package/dist/{public-url-Ox9oOlgp.mjs.map → public-url-CWoFhQT8.mjs.map} +1 -1
- package/dist/{query-rC9HKv1N.mjs → query-BWs7O5Il.mjs} +3 -3
- package/dist/{query-rC9HKv1N.mjs.map → query-BWs7O5Il.mjs.map} +1 -1
- package/dist/{query-C5w7PsRQ.mjs → query-zTVAR1Sl.mjs} +31 -49
- package/dist/query-zTVAR1Sl.mjs.map +1 -0
- package/dist/{rate-limit-kug6q99V.mjs → rate-limit-Bx4g9m3p.mjs} +2 -2
- package/dist/{rate-limit-kug6q99V.mjs.map → rate-limit-Bx4g9m3p.mjs.map} +1 -1
- package/dist/{redirect-Egf2R9yP.mjs → redirect-BgAOGHDq.mjs} +1 -1
- package/dist/{redirect-Egf2R9yP.mjs.map → redirect-BgAOGHDq.mjs.map} +1 -1
- package/dist/{redirect-DIJxXKOG.mjs → redirect-COsS6SWJ.mjs} +2 -2
- package/dist/{redirect-DIJxXKOG.mjs.map → redirect-COsS6SWJ.mjs.map} +1 -1
- package/dist/{redirects-G8wAhWAf.mjs → redirects-DTDHWH31.mjs} +133 -14
- package/dist/redirects-DTDHWH31.mjs.map +1 -0
- package/dist/{redirects-Bzm812bY.mjs → redirects-DyChwDkG.mjs} +4 -4
- package/dist/{redirects-Bzm812bY.mjs.map → redirects-DyChwDkG.mjs.map} +1 -1
- package/dist/registry-Cqa2I749.mjs +1275 -0
- package/dist/registry-Cqa2I749.mjs.map +1 -0
- package/dist/{relation-Cbe3Sd3m.mjs → relation-BnHB0T4J.mjs} +3 -3
- package/dist/{relation-Cbe3Sd3m.mjs.map → relation-BnHB0T4J.mjs.map} +1 -1
- package/dist/{relations-Bw_E1TXo.mjs → relations-BBApI4e2.mjs} +3 -3
- package/dist/{relations-Bw_E1TXo.mjs.map → relations-BBApI4e2.mjs.map} +1 -1
- package/dist/{relations-G2ta7GIl.d.mts → relations-BHo5A8Zf.d.mts} +367 -33
- package/dist/relations-BHo5A8Zf.d.mts.map +1 -0
- package/dist/{relations-qHwpUe66.mjs → relations-D5sM5fW0.mjs} +6 -6
- package/dist/{relations-qHwpUe66.mjs.map → relations-D5sM5fW0.mjs.map} +1 -1
- package/dist/request-context.d.mts +1 -1
- package/dist/{request-meta-Df-jFbAd.mjs → request-meta-DgZJh3zG.mjs} +2 -2
- package/dist/{request-meta-Df-jFbAd.mjs.map → request-meta-DgZJh3zG.mjs.map} +1 -1
- package/dist/{resolve-DZzG4HqM.mjs → resolve-DOhVEvty.mjs} +2 -2
- package/dist/{resolve-DZzG4HqM.mjs.map → resolve-DOhVEvty.mjs.map} +1 -1
- package/dist/{runner-BaADli8l.d.mts → runner-BYHZn3Jy.d.mts} +16 -3
- package/dist/runner-BYHZn3Jy.d.mts.map +1 -0
- package/dist/{runner-BFTrkYhu.mjs → runner-C1T11CfC.mjs} +1190 -257
- package/dist/runner-C1T11CfC.mjs.map +1 -0
- package/dist/runtime.d.mts +11 -11
- package/dist/runtime.mjs +4 -3
- package/dist/runtime.mjs.map +1 -1
- package/dist/schema-2AOsSn2v.mjs +390 -0
- package/dist/schema-2AOsSn2v.mjs.map +1 -0
- package/dist/{schema-CiQXr6_F.mjs → schema-DZ5YVVZj.mjs} +3 -3
- package/dist/{schema-CiQXr6_F.mjs.map → schema-DZ5YVVZj.mjs.map} +1 -1
- package/dist/{scopes-CNJVT5i5.mjs → scopes-8ClPF2bC.mjs} +3 -3
- package/dist/{scopes-CNJVT5i5.mjs.map → scopes-8ClPF2bC.mjs.map} +1 -1
- package/dist/{search-FZhx5dDU.mjs → search-u1QYdOCG.mjs} +25 -15
- package/dist/search-u1QYdOCG.mjs.map +1 -0
- package/dist/{secrets-DLd8RXee.mjs → secrets-BEgsAQEU.mjs} +3 -3
- package/dist/{secrets-DLd8RXee.mjs.map → secrets-BEgsAQEU.mjs.map} +1 -1
- package/dist/{sections-BrIrMUCn.mjs → sections-DmHviGyM.mjs} +3 -3
- package/dist/{sections-BrIrMUCn.mjs.map → sections-DmHviGyM.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +24 -22
- package/dist/seo/index.d.mts +3 -3
- package/dist/seo/index.mjs +16 -15
- package/dist/seo/index.mjs.map +1 -1
- package/dist/{seo-CobNfOvb.mjs → seo-AFpVvTqr.mjs} +5 -3
- package/dist/seo-AFpVvTqr.mjs.map +1 -0
- package/dist/{seo-DTHRntNC.mjs → seo-Dq4G-RrO.mjs} +2 -2
- package/dist/{seo-DTHRntNC.mjs.map → seo-Dq4G-RrO.mjs.map} +1 -1
- package/dist/{service-B-pYGPgR.mjs → service-BpArayPr.mjs} +3 -3
- package/dist/{service-B-pYGPgR.mjs.map → service-BpArayPr.mjs.map} +1 -1
- package/dist/{session-user-BvM9-zNl.mjs → session-user-BEorKVT-.mjs} +1 -1
- package/dist/{session-user-BvM9-zNl.mjs.map → session-user-BEorKVT-.mjs.map} +1 -1
- package/dist/{settings-DPHau-WH.mjs → settings-DE9xtzqd.mjs} +3 -3
- package/dist/{settings-DPHau-WH.mjs.map → settings-DE9xtzqd.mjs.map} +1 -1
- package/dist/{settings-kJhGiQ4z.mjs → settings-xRdoUZr0.mjs} +4 -4
- package/dist/{settings-kJhGiQ4z.mjs.map → settings-xRdoUZr0.mjs.map} +1 -1
- package/dist/{setup-complete-u50Qm8rY.mjs → setup-complete-BnT8pq_C.mjs} +1 -1
- package/dist/{setup-complete-u50Qm8rY.mjs.map → setup-complete-BnT8pq_C.mjs.map} +1 -1
- package/dist/{setup-nonce-DCjiiOD2.mjs → setup-nonce-CBitf_oQ.mjs} +1 -1
- package/dist/{setup-nonce-DCjiiOD2.mjs.map → setup-nonce-CBitf_oQ.mjs.map} +1 -1
- package/dist/{single-flight-cache-DW3w11Pu.mjs → single-flight-cache-B0eLKS6K.mjs} +2 -2
- package/dist/{single-flight-cache-DW3w11Pu.mjs.map → single-flight-cache-B0eLKS6K.mjs.map} +1 -1
- package/dist/{site-url-I-lJ5kma.mjs → site-url-DjpIXMXJ.mjs} +2 -2
- package/dist/{site-url-I-lJ5kma.mjs.map → site-url-DjpIXMXJ.mjs.map} +1 -1
- package/dist/slugify-B994zkXC.mjs +17 -0
- package/dist/slugify-B994zkXC.mjs.map +1 -0
- package/dist/{snapshot-I_fjLDaD.mjs → snapshot-BBlGkb2q.mjs} +1 -1
- package/dist/{snapshot-I_fjLDaD.mjs.map → snapshot-BBlGkb2q.mjs.map} +1 -1
- package/dist/{ssrf-CTa6v21i.mjs → ssrf-Cpvg_n3A.mjs} +1 -1
- package/dist/{ssrf-CTa6v21i.mjs.map → ssrf-Cpvg_n3A.mjs.map} +1 -1
- package/dist/{state-CQvoefYP.mjs → state-DYwPue40.mjs} +1 -1
- package/dist/{state-CQvoefYP.mjs.map → state-DYwPue40.mjs.map} +1 -1
- package/dist/{status-CIsmlC1E.mjs → status-CWVYpbD8.mjs} +1 -1
- package/dist/{status-CIsmlC1E.mjs.map → status-CWVYpbD8.mjs.map} +1 -1
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +3 -3
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/target-DixqqV5i.mjs +27 -0
- package/dist/target-DixqqV5i.mjs.map +1 -0
- package/dist/{taxonomies-CLN1N92E.mjs → taxonomies-BlrncHi9.mjs} +75 -64
- package/dist/taxonomies-BlrncHi9.mjs.map +1 -0
- package/dist/{taxonomies-CKuaZER5.mjs → taxonomies-OHUIiIpI.mjs} +280 -56
- package/dist/taxonomies-OHUIiIpI.mjs.map +1 -0
- package/dist/{taxonomy-pOrB2kZe.mjs → taxonomy-BqCZ1TdU.mjs} +131 -78
- package/dist/taxonomy-BqCZ1TdU.mjs.map +1 -0
- package/dist/{tokens-DagaJGK8.mjs → tokens-C39klX8R.mjs} +2 -2
- package/dist/{tokens-DagaJGK8.mjs.map → tokens-C39klX8R.mjs.map} +1 -1
- package/dist/{transport-DVsa5YYo.mjs → transport-DBJwa-Si.mjs} +1 -1
- package/dist/{transport-DVsa5YYo.mjs.map → transport-DBJwa-Si.mjs.map} +1 -1
- package/dist/{transport-CAwTaTp_.d.mts → transport-RQE36APG.d.mts} +1 -1
- package/dist/{transport-CAwTaTp_.d.mts.map → transport-RQE36APG.d.mts.map} +1 -1
- package/dist/{trusted-proxy-D20_7fyX.mjs → trusted-proxy-CEVekpby.mjs} +1 -1
- package/dist/{trusted-proxy-D20_7fyX.mjs.map → trusted-proxy-CEVekpby.mjs.map} +1 -1
- package/dist/{types-NBI3rF-_.mjs → types-75KIqzL9.mjs} +18 -2
- package/dist/types-75KIqzL9.mjs.map +1 -0
- package/dist/{types-BjxTKxrZ.mjs → types-BW1syrlw.mjs} +1 -1
- package/dist/{types-BjxTKxrZ.mjs.map → types-BW1syrlw.mjs.map} +1 -1
- package/dist/{types-DLG4IFEQ.d.mts → types-BcqdcT-r.d.mts} +1 -1
- package/dist/{types-DLG4IFEQ.d.mts.map → types-BcqdcT-r.d.mts.map} +1 -1
- package/dist/{types-LoagAGzH.d.mts → types-BntycPTF.d.mts} +1 -1
- package/dist/{types-LoagAGzH.d.mts.map → types-BntycPTF.d.mts.map} +1 -1
- package/dist/{types-BnFP1M3J.d.mts → types-C2pMvO62.d.mts} +32 -10
- package/dist/types-C2pMvO62.d.mts.map +1 -0
- package/dist/{types-Cd8iuS1J.mjs → types-CQPWhPxE.mjs} +9 -12
- package/dist/types-CQPWhPxE.mjs.map +1 -0
- package/dist/{types-C8oz_ayJ.d.mts → types-CXnOzDe1.d.mts} +1 -1
- package/dist/{types-C8oz_ayJ.d.mts.map → types-CXnOzDe1.d.mts.map} +1 -1
- package/dist/types-CtzytVXn.mjs.map +1 -1
- package/dist/{types-BGWPMiBO.d.mts → types-DN64_zzZ.d.mts} +44 -5
- package/dist/types-DN64_zzZ.d.mts.map +1 -0
- package/dist/{types-Dc4ntQjQ.d.mts → types-DQIDRKF2.d.mts} +124 -1
- package/dist/types-DQIDRKF2.d.mts.map +1 -0
- package/dist/{types-CbUcuxxc.d.mts → types-DWRhk9xZ.d.mts} +1 -1
- package/dist/{types-CbUcuxxc.d.mts.map → types-DWRhk9xZ.d.mts.map} +1 -1
- package/dist/{types-BK6U01Ro.d.mts → types-Dfk8KI5R.d.mts} +1 -1
- package/dist/{types-BK6U01Ro.d.mts.map → types-Dfk8KI5R.d.mts.map} +1 -1
- package/dist/{types-Cz8hNch2.d.mts → types-DrJrVCT1.d.mts} +25 -5
- package/dist/types-DrJrVCT1.d.mts.map +1 -0
- package/dist/{upload-attempts-D8QAFLUJ.mjs → upload-attempts-D4FS8LT6.mjs} +1 -1
- package/dist/{upload-attempts-D8QAFLUJ.mjs.map → upload-attempts-D4FS8LT6.mjs.map} +1 -1
- package/dist/url-pattern-BHS0V5Ng.mjs +33 -0
- package/dist/url-pattern-BHS0V5Ng.mjs.map +1 -0
- package/dist/{user-DBrq4UVq.mjs → user-DJZfUJVE.mjs} +3 -3
- package/dist/{user-DBrq4UVq.mjs.map → user-DJZfUJVE.mjs.map} +1 -1
- package/dist/{utils-hLzi_2Fn.mjs → utils-D4vD_Y98.mjs} +3 -3
- package/dist/{utils-hLzi_2Fn.mjs.map → utils-D4vD_Y98.mjs.map} +1 -1
- package/dist/{validate-mKo3RxBM.mjs → validate-BMLBvxOC.mjs} +24 -5
- package/dist/validate-BMLBvxOC.mjs.map +1 -0
- package/dist/{validate-C3oSmA7F.d.mts → validate-CTqt5nuE.d.mts} +15 -7
- package/dist/validate-CTqt5nuE.d.mts.map +1 -0
- package/dist/{validation-BgpucsvF.mjs → validation-npvENUCB.mjs} +11 -10
- package/dist/{validation-BgpucsvF.mjs.map → validation-npvENUCB.mjs.map} +1 -1
- package/dist/version-DB_fqCSI.mjs +7 -0
- package/dist/{version-C4PnpmoV.mjs.map → version-DB_fqCSI.mjs.map} +1 -1
- package/dist/{widgets-CJJtkiKh.mjs → widgets-BD3ho7Rq.mjs} +3 -3
- package/dist/{widgets-CJJtkiKh.mjs.map → widgets-BD3ho7Rq.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-9PPSy8X6.mjs → wxr-taxonomies-B1R3vBoD.mjs} +13 -32
- package/dist/{wxr-taxonomies-9PPSy8X6.mjs.map → wxr-taxonomies-B1R3vBoD.mjs.map} +1 -1
- package/dist/{wxr-taxonomies-Bkpp_2tK.d.mts → wxr-taxonomies-Ca68766D.d.mts} +1 -1
- package/dist/{wxr-taxonomies-Bkpp_2tK.d.mts.map → wxr-taxonomies-Ca68766D.d.mts.map} +1 -1
- package/dist/{zod-generator-CG64Hnbh.mjs → zod-generator-LC-on_Vb.mjs} +52 -5
- package/dist/zod-generator-LC-on_Vb.mjs.map +1 -0
- package/package.json +32 -8
- package/src/api/errors.ts +12 -0
- package/src/api/handlers/content.ts +127 -29
- package/src/api/handlers/dashboard.ts +12 -2
- package/src/api/handlers/index.ts +16 -0
- package/src/api/handlers/manifest.ts +2 -0
- package/src/api/handlers/media-allowlist.ts +13 -2
- package/src/api/handlers/media-usage-work.ts +188 -0
- package/src/api/handlers/media-usage.ts +5 -3
- package/src/api/handlers/schema.ts +9 -3
- package/src/api/handlers/seo.ts +5 -2
- package/src/api/handlers/taxonomies.ts +345 -82
- package/src/api/media-usage-write-fence.ts +64 -0
- package/src/api/openapi/document.ts +199 -0
- package/src/api/schemas/common.ts +3 -1
- package/src/api/schemas/content.ts +122 -1
- package/src/api/schemas/media-usage.ts +133 -0
- package/src/api/schemas/schema.ts +78 -3
- package/src/api/schemas/taxonomies.ts +40 -8
- package/src/api/types.ts +1 -0
- package/src/astro/integration/index.ts +101 -56
- package/src/astro/integration/routes.ts +34 -4
- package/src/astro/integration/runtime.ts +18 -0
- package/src/astro/integration/virtual-modules.ts +25 -1
- package/src/astro/integration/vite-config.ts +16 -1
- package/src/astro/middleware/media-usage-write-fence.ts +30 -0
- package/src/astro/middleware/redirect.ts +12 -2
- package/src/astro/middleware/scoped-db.ts +21 -0
- package/src/astro/middleware.ts +140 -16
- package/src/astro/routes/api/admin/media-usage/collection-deletions/index.ts +22 -0
- package/src/astro/routes/api/admin/media-usage/collection-deletions/retry.ts +22 -0
- package/src/astro/routes/api/admin/media-usage/work/index.ts +26 -0
- package/src/astro/routes/api/admin/media-usage/work/retry.ts +26 -0
- package/src/astro/routes/api/admin/plugins/[id]/disable.ts +4 -0
- package/src/astro/routes/api/admin/plugins/[id]/enable.ts +4 -0
- package/src/astro/routes/api/admin/plugins/[id]/uninstall.ts +4 -0
- package/src/astro/routes/api/admin/plugins/[id]/update.ts +4 -0
- package/src/astro/routes/api/admin/plugins/marketplace/[id]/install.ts +4 -0
- package/src/astro/routes/api/admin/plugins/registry/[id]/uninstall.ts +4 -0
- package/src/astro/routes/api/admin/plugins/registry/[id]/update.ts +4 -0
- package/src/astro/routes/api/admin/plugins/registry/install.ts +4 -0
- package/src/astro/routes/api/auth/dev-bypass.ts +0 -4
- package/src/astro/routes/api/content/[collection]/[id]/terms/[taxonomy].ts +67 -31
- package/src/astro/routes/api/import/wordpress/execute.ts +3 -10
- package/src/astro/routes/api/mcp.ts +1 -0
- package/src/astro/routes/api/plugins/[pluginId]/[...path].ts +7 -1
- package/src/astro/routes/api/schema/collections/[slug]/index.ts +1 -7
- package/src/astro/routes/api/setup/dev-bypass.ts +2 -7
- package/src/astro/routes/api/setup/index.ts +5 -13
- package/src/astro/routes/api/taxonomies/[name]/terms/index.ts +1 -0
- package/src/astro/routes/api/taxonomies/[name]/translations.ts +48 -0
- package/src/astro/routes/api/taxonomies/[name].ts +102 -0
- package/src/astro/types.ts +25 -4
- package/src/cleanup.ts +6 -12
- package/src/cli/commands/doctor.ts +193 -6
- package/src/cli/commands/export-seed.ts +4 -1
- package/src/cli/commands/migrate.ts +593 -0
- package/src/cli/index.ts +2 -23
- package/src/client/index.ts +119 -0
- package/src/components/Block.astro +12 -0
- package/src/components/InlinePortableTextEditor.tsx +89 -1
- package/src/content/converters/mark-safety.ts +120 -0
- package/src/content/converters/portable-text-to-prosemirror.ts +25 -16
- package/src/content/converters/prosemirror-to-portable-text.ts +12 -2
- package/src/content-list-query.ts +29 -0
- package/src/database/index.ts +8 -2
- package/src/database/migrations/060_collection_admin_config.ts +16 -0
- package/src/database/migrations/061_media_usage_cleanup.ts +77 -0
- package/src/database/migrations/062_media_usage_cleanup_fence.ts +295 -0
- package/src/database/migrations/063_media_usage_incremental_work.ts +397 -0
- package/src/database/migrations/064_fts_plain_text.ts +253 -0
- package/src/database/migrations/065_media_usage_collection_deletion.ts +85 -0
- package/src/database/migrations/066_media_usage_reconciliation.ts +115 -0
- package/src/database/migrations/067_indexed_content_fields.ts +39 -0
- package/src/database/migrations/068_content_taxonomy_entry_groups.ts +61 -0
- package/src/database/migrations/069_collection_title_date_fields.ts +45 -0
- package/src/database/migrations/070_collection_routable.ts +18 -0
- package/src/database/migrations/policy.ts +70 -0
- package/src/database/migrations/runner.ts +71 -3
- package/src/database/repositories/content.ts +861 -96
- package/src/database/repositories/media-usage-work.ts +848 -0
- package/src/database/repositories/media-usage.ts +1502 -138
- package/src/database/repositories/revision.ts +17 -6
- package/src/database/repositories/taxonomy.ts +234 -103
- package/src/database/repositories/types.ts +51 -2
- package/src/database/types.ts +134 -16
- package/src/db/adapters.ts +78 -2
- package/src/db/index.ts +6 -1
- package/src/db/libsql-migrations.ts +72 -0
- package/src/db/postgres-migrations.ts +59 -0
- package/src/db/sqlite-migrations.ts +37 -0
- package/src/emdash-runtime.ts +271 -35
- package/src/fields/file.ts +7 -4
- package/src/fields/image.ts +8 -1
- package/src/fields/types.ts +18 -5
- package/src/i18n/config.ts +32 -0
- package/src/i18n/normalize.ts +31 -0
- package/src/i18n/repair-locale-casing.ts +0 -14
- package/src/i18n/taxonomy-locale-diagnostic.ts +47 -0
- package/src/import/wxr-taxonomies.ts +7 -47
- package/src/index.ts +32 -3
- package/src/loader.ts +119 -65
- package/src/mcp/server.ts +242 -34
- package/src/media/usage/activation.ts +626 -0
- package/src/media/usage/capture-triggers.ts +543 -0
- package/src/media/usage/cleanup.ts +305 -0
- package/src/media/usage/collection-deletion-processor.ts +356 -0
- package/src/media/usage/collection-deletion.ts +836 -0
- package/src/media/usage/content-fields.ts +40 -3
- package/src/media/usage/content-refresh.ts +356 -47
- package/src/media/usage/content-repair.ts +180 -61
- package/src/media/usage/content-snapshots.ts +85 -105
- package/src/media/usage/projection-fingerprint.ts +129 -0
- package/src/media/usage/reconciliation-processor.ts +372 -0
- package/src/media/usage/reconciliation.ts +1117 -0
- package/src/media/usage/source-key.ts +4 -0
- package/src/media/usage/types.ts +2 -0
- package/src/media/usage/work-processor.ts +248 -0
- package/src/menus/index.ts +246 -141
- package/src/migrations/config-loader.ts +205 -0
- package/src/migrations/direct-executor.ts +141 -0
- package/src/migrations/identity.ts +46 -0
- package/src/migrations/index.ts +19 -0
- package/src/migrations/integration-metadata.ts +67 -0
- package/src/migrations/manifest-builder.ts +55 -0
- package/src/migrations/manifest-writer.ts +63 -0
- package/src/migrations/manifest.ts +197 -0
- package/src/migrations/protocol.ts +59 -0
- package/src/migrations/target.ts +35 -0
- package/src/plugin-types.ts +8 -0
- package/src/plugins/adapt-sandbox-entry.ts +24 -5
- package/src/plugins/context.ts +24 -7
- package/src/plugins/index.ts +9 -0
- package/src/plugins/routes.ts +43 -1
- package/src/plugins/sandbox/index.ts +10 -1
- package/src/plugins/sandbox/types.ts +78 -1
- package/src/plugins/scheduler/node.ts +13 -1
- package/src/plugins/scheduler/types.ts +2 -0
- package/src/plugins/types.ts +39 -2
- package/src/query.ts +29 -37
- package/src/scheduler-health.ts +46 -0
- package/src/schema/registry.ts +777 -255
- package/src/schema/types.ts +50 -8
- package/src/schema/url-pattern.ts +33 -0
- package/src/schema/zod-generator.ts +77 -5
- package/src/search/fts-manager.ts +117 -76
- package/src/search/query.ts +32 -11
- package/src/search/types.ts +2 -0
- package/src/seed/apply.ts +68 -15
- package/src/seed/types.ts +11 -3
- package/src/seed/validate.ts +52 -2
- package/src/taxonomies/index.ts +77 -75
- package/src/taxonomies/term-counts.ts +21 -8
- package/src/utils/slugify.ts +1 -29
- package/src/virtual-modules.d.ts +24 -0
- package/dist/adapters-BMyNSSZi.d.mts.map +0 -1
- package/dist/api-D2hunekQ.mjs.map +0 -1
- package/dist/apply-kwNEJW2l.mjs.map +0 -1
- package/dist/config-DyF3OKg_.mjs.map +0 -1
- package/dist/content-CJ94NEx5.mjs.map +0 -1
- package/dist/content-refresh-Xw7aKmou.mjs +0 -1629
- package/dist/content-refresh-Xw7aKmou.mjs.map +0 -1
- package/dist/context-C_1nrqnW.mjs.map +0 -1
- package/dist/dashboard-DINnNVVU.mjs.map +0 -1
- package/dist/errors-BucQ8VYz.mjs.map +0 -1
- package/dist/fts-manager-BITakW_R.mjs.map +0 -1
- package/dist/index-M37iz29I.d.mts.map +0 -1
- package/dist/index-MGw47uWq.d.mts.map +0 -1
- package/dist/loader-CGugY7Zl.mjs.map +0 -1
- package/dist/media-OhYL-7Io.mjs.map +0 -1
- package/dist/media-allowlist-D-peH1H5.mjs.map +0 -1
- package/dist/media-usage-BlxfTkN0.mjs.map +0 -1
- package/dist/menus-Y54RDPIN.mjs.map +0 -1
- package/dist/options-CA4eVX6P.d.mts.map +0 -1
- package/dist/query-C5w7PsRQ.mjs.map +0 -1
- package/dist/redirects-G8wAhWAf.mjs.map +0 -1
- package/dist/registry-Dbodb4Uo.mjs +0 -840
- package/dist/registry-Dbodb4Uo.mjs.map +0 -1
- package/dist/relations-G2ta7GIl.d.mts.map +0 -1
- package/dist/runner-BFTrkYhu.mjs.map +0 -1
- package/dist/runner-BaADli8l.d.mts.map +0 -1
- package/dist/search-FZhx5dDU.mjs.map +0 -1
- package/dist/seo-CobNfOvb.mjs.map +0 -1
- package/dist/slugify-C_tqlU4G.mjs +0 -30
- package/dist/slugify-C_tqlU4G.mjs.map +0 -1
- package/dist/taxonomies-CKuaZER5.mjs.map +0 -1
- package/dist/taxonomies-CLN1N92E.mjs.map +0 -1
- package/dist/taxonomy-pOrB2kZe.mjs.map +0 -1
- package/dist/types-BGWPMiBO.d.mts.map +0 -1
- package/dist/types-BnFP1M3J.d.mts.map +0 -1
- package/dist/types-Cd8iuS1J.mjs.map +0 -1
- package/dist/types-Cz8hNch2.d.mts.map +0 -1
- package/dist/types-Dc4ntQjQ.d.mts.map +0 -1
- package/dist/types-NBI3rF-_.mjs.map +0 -1
- package/dist/validate-C3oSmA7F.d.mts.map +0 -1
- package/dist/validate-mKo3RxBM.mjs.map +0 -1
- package/dist/version-C4PnpmoV.mjs +0 -7
- package/dist/zod-generator-CG64Hnbh.mjs.map +0 -1
- /package/dist/{api-tokens-Dai9dND0.mjs → api-tokens-rIXC6LdE.mjs} +0 -0
- /package/dist/{ssrf-Cj568Dgs.mjs → ssrf-DpXgKsna.mjs} +0 -0
- /package/dist/{types-DKuWPYV5.mjs → types-CP1CflWf.mjs} +0 -0
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/image-size@2.0.2_patch_hash=77c12533e3a635c4066c55da8952f4912e8210416539dc1249550fa639271595/node_modules/image-size/dist/index.mjs
|
|
2
|
+
var decoder = new TextDecoder();
|
|
3
|
+
var toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
4
|
+
var toHexString = (input, start = 0, end = input.length) => input.slice(start, end).reduce((memo, i) => memo + `0${i.toString(16)}`.slice(-2), "");
|
|
5
|
+
var getView = (input, offset) => new DataView(input.buffer, input.byteOffset + offset);
|
|
6
|
+
var readInt16LE = (input, offset = 0) => getView(input, offset).getInt16(0, true);
|
|
7
|
+
var readUInt16BE = (input, offset = 0) => getView(input, offset).getUint16(0, false);
|
|
8
|
+
var readUInt16LE = (input, offset = 0) => getView(input, offset).getUint16(0, true);
|
|
9
|
+
var readUInt24LE = (input, offset = 0) => {
|
|
10
|
+
const view = getView(input, offset);
|
|
11
|
+
return view.getUint16(0, true) + (view.getUint8(2) << 16);
|
|
12
|
+
};
|
|
13
|
+
var readInt32LE = (input, offset = 0) => getView(input, offset).getInt32(0, true);
|
|
14
|
+
var readUInt32BE = (input, offset = 0) => getView(input, offset).getUint32(0, false);
|
|
15
|
+
var readUInt32LE = (input, offset = 0) => getView(input, offset).getUint32(0, true);
|
|
16
|
+
var readUInt64 = (input, offset, isBigEndian) => getView(input, offset).getBigUint64(0, !isBigEndian);
|
|
17
|
+
var methods = {
|
|
18
|
+
readUInt16BE,
|
|
19
|
+
readUInt16LE,
|
|
20
|
+
readUInt32BE,
|
|
21
|
+
readUInt32LE
|
|
22
|
+
};
|
|
23
|
+
function readUInt(input, bits, offset = 0, isBigEndian = false) {
|
|
24
|
+
return methods[`readUInt${bits}${isBigEndian ? "BE" : "LE"}`](input, offset);
|
|
25
|
+
}
|
|
26
|
+
function readBox(input, offset) {
|
|
27
|
+
if (input.length - offset < 4) return;
|
|
28
|
+
const boxSize = readUInt32BE(input, offset);
|
|
29
|
+
if (input.length - offset < boxSize) return;
|
|
30
|
+
return {
|
|
31
|
+
name: toUTF8String(input, 4 + offset, 8 + offset),
|
|
32
|
+
offset,
|
|
33
|
+
size: boxSize
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function findBox(input, boxName, currentOffset) {
|
|
37
|
+
while (currentOffset < input.length) {
|
|
38
|
+
const box = readBox(input, currentOffset);
|
|
39
|
+
if (!box) break;
|
|
40
|
+
if (box.name === boxName) return box;
|
|
41
|
+
currentOffset += box.size > 0 ? box.size : 8;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var BMP = {
|
|
45
|
+
validate: (input) => toUTF8String(input, 0, 2) === "BM",
|
|
46
|
+
calculate: (input) => ({
|
|
47
|
+
height: Math.abs(readInt32LE(input, 22)),
|
|
48
|
+
width: readUInt32LE(input, 18)
|
|
49
|
+
})
|
|
50
|
+
};
|
|
51
|
+
var TYPE_ICON = 1;
|
|
52
|
+
var SIZE_HEADER = 6;
|
|
53
|
+
var SIZE_IMAGE_ENTRY = 16;
|
|
54
|
+
function getSizeFromOffset(input, offset) {
|
|
55
|
+
const value = input[offset];
|
|
56
|
+
return value === 0 ? 256 : value;
|
|
57
|
+
}
|
|
58
|
+
function getImageSize(input, imageIndex) {
|
|
59
|
+
const offset = SIZE_HEADER + imageIndex * SIZE_IMAGE_ENTRY;
|
|
60
|
+
return {
|
|
61
|
+
height: getSizeFromOffset(input, offset + 1),
|
|
62
|
+
width: getSizeFromOffset(input, offset)
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
var ICO = {
|
|
66
|
+
validate(input) {
|
|
67
|
+
const reserved = readUInt16LE(input, 0);
|
|
68
|
+
const imageCount = readUInt16LE(input, 4);
|
|
69
|
+
if (reserved !== 0 || imageCount === 0) return false;
|
|
70
|
+
return readUInt16LE(input, 2) === TYPE_ICON;
|
|
71
|
+
},
|
|
72
|
+
calculate(input) {
|
|
73
|
+
const nbImages = readUInt16LE(input, 4);
|
|
74
|
+
const imageSize2 = getImageSize(input, 0);
|
|
75
|
+
if (nbImages === 1) return imageSize2;
|
|
76
|
+
const images = [];
|
|
77
|
+
for (let imageIndex = 0; imageIndex < nbImages; imageIndex += 1) images.push(getImageSize(input, imageIndex));
|
|
78
|
+
return {
|
|
79
|
+
width: imageSize2.width,
|
|
80
|
+
height: imageSize2.height,
|
|
81
|
+
images
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var TYPE_CURSOR = 2;
|
|
86
|
+
var CUR = {
|
|
87
|
+
validate(input) {
|
|
88
|
+
const reserved = readUInt16LE(input, 0);
|
|
89
|
+
const imageCount = readUInt16LE(input, 4);
|
|
90
|
+
if (reserved !== 0 || imageCount === 0) return false;
|
|
91
|
+
return readUInt16LE(input, 2) === TYPE_CURSOR;
|
|
92
|
+
},
|
|
93
|
+
calculate: (input) => ICO.calculate(input)
|
|
94
|
+
};
|
|
95
|
+
var DDS = {
|
|
96
|
+
validate: (input) => readUInt32LE(input, 0) === 542327876,
|
|
97
|
+
calculate: (input) => ({
|
|
98
|
+
height: readUInt32LE(input, 12),
|
|
99
|
+
width: readUInt32LE(input, 16)
|
|
100
|
+
})
|
|
101
|
+
};
|
|
102
|
+
var gifRegexp = /^GIF8[79]a/;
|
|
103
|
+
var GIF = {
|
|
104
|
+
validate: (input) => gifRegexp.test(toUTF8String(input, 0, 6)),
|
|
105
|
+
calculate: (input) => ({
|
|
106
|
+
height: readUInt16LE(input, 8),
|
|
107
|
+
width: readUInt16LE(input, 6)
|
|
108
|
+
})
|
|
109
|
+
};
|
|
110
|
+
var brandMap = {
|
|
111
|
+
avif: "avif",
|
|
112
|
+
mif1: "heif",
|
|
113
|
+
msf1: "heif",
|
|
114
|
+
heic: "heic",
|
|
115
|
+
heix: "heic",
|
|
116
|
+
hevc: "heic",
|
|
117
|
+
hevx: "heic"
|
|
118
|
+
};
|
|
119
|
+
var HEIF = {
|
|
120
|
+
validate(input) {
|
|
121
|
+
if (toUTF8String(input, 4, 8) !== "ftyp") return false;
|
|
122
|
+
const ftypBox = findBox(input, "ftyp", 0);
|
|
123
|
+
if (!ftypBox) return false;
|
|
124
|
+
return toUTF8String(input, ftypBox.offset + 8, ftypBox.offset + 12) in brandMap;
|
|
125
|
+
},
|
|
126
|
+
calculate(input) {
|
|
127
|
+
const metaBox = findBox(input, "meta", 0);
|
|
128
|
+
const iprpBox = metaBox && findBox(input, "iprp", metaBox.offset + 12);
|
|
129
|
+
const ipcoBox = iprpBox && findBox(input, "ipco", iprpBox.offset + 8);
|
|
130
|
+
if (!ipcoBox) throw new TypeError("Invalid HEIF, no ipco box found");
|
|
131
|
+
const type = toUTF8String(input, 8, 12);
|
|
132
|
+
const images = [];
|
|
133
|
+
let currentOffset = ipcoBox.offset + 8;
|
|
134
|
+
while (currentOffset < ipcoBox.offset + ipcoBox.size) {
|
|
135
|
+
const ispeBox = findBox(input, "ispe", currentOffset);
|
|
136
|
+
if (!ispeBox) break;
|
|
137
|
+
const rawWidth = readUInt32BE(input, ispeBox.offset + 12);
|
|
138
|
+
const rawHeight = readUInt32BE(input, ispeBox.offset + 16);
|
|
139
|
+
const clapBox = findBox(input, "clap", currentOffset);
|
|
140
|
+
let width = rawWidth;
|
|
141
|
+
let height = rawHeight;
|
|
142
|
+
if (clapBox && clapBox.offset < ipcoBox.offset + ipcoBox.size) width = rawWidth - readUInt32BE(input, clapBox.offset + 12);
|
|
143
|
+
images.push({
|
|
144
|
+
height,
|
|
145
|
+
width
|
|
146
|
+
});
|
|
147
|
+
currentOffset = ispeBox.offset + (ispeBox.size > 0 ? ispeBox.size : 8);
|
|
148
|
+
}
|
|
149
|
+
if (images.length === 0) throw new TypeError("Invalid HEIF, no sizes found");
|
|
150
|
+
return {
|
|
151
|
+
width: images[0].width,
|
|
152
|
+
height: images[0].height,
|
|
153
|
+
type,
|
|
154
|
+
...images.length > 1 ? { images } : {}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
var SIZE_HEADER2 = 8;
|
|
159
|
+
var FILE_LENGTH_OFFSET = 4;
|
|
160
|
+
var ENTRY_LENGTH_OFFSET = 4;
|
|
161
|
+
var ICON_TYPE_SIZE = {
|
|
162
|
+
ICON: 32,
|
|
163
|
+
"ICN#": 32,
|
|
164
|
+
"icm#": 16,
|
|
165
|
+
icm4: 16,
|
|
166
|
+
icm8: 16,
|
|
167
|
+
"ics#": 16,
|
|
168
|
+
ics4: 16,
|
|
169
|
+
ics8: 16,
|
|
170
|
+
is32: 16,
|
|
171
|
+
s8mk: 16,
|
|
172
|
+
icp4: 16,
|
|
173
|
+
icl4: 32,
|
|
174
|
+
icl8: 32,
|
|
175
|
+
il32: 32,
|
|
176
|
+
l8mk: 32,
|
|
177
|
+
icp5: 32,
|
|
178
|
+
ic11: 32,
|
|
179
|
+
ich4: 48,
|
|
180
|
+
ich8: 48,
|
|
181
|
+
ih32: 48,
|
|
182
|
+
h8mk: 48,
|
|
183
|
+
icp6: 64,
|
|
184
|
+
ic12: 32,
|
|
185
|
+
it32: 128,
|
|
186
|
+
t8mk: 128,
|
|
187
|
+
ic07: 128,
|
|
188
|
+
ic08: 256,
|
|
189
|
+
ic13: 256,
|
|
190
|
+
ic09: 512,
|
|
191
|
+
ic14: 512,
|
|
192
|
+
ic10: 1024
|
|
193
|
+
};
|
|
194
|
+
function readImageHeader(input, imageOffset) {
|
|
195
|
+
const imageLengthOffset = imageOffset + ENTRY_LENGTH_OFFSET;
|
|
196
|
+
return [toUTF8String(input, imageOffset, imageLengthOffset), readUInt32BE(input, imageLengthOffset)];
|
|
197
|
+
}
|
|
198
|
+
function getImageSize2(type) {
|
|
199
|
+
const size = ICON_TYPE_SIZE[type];
|
|
200
|
+
return {
|
|
201
|
+
width: size,
|
|
202
|
+
height: size,
|
|
203
|
+
type
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
var ICNS = {
|
|
207
|
+
validate: (input) => toUTF8String(input, 0, 4) === "icns",
|
|
208
|
+
calculate(input) {
|
|
209
|
+
const inputLength = input.length;
|
|
210
|
+
const fileLength = readUInt32BE(input, FILE_LENGTH_OFFSET);
|
|
211
|
+
let imageOffset = SIZE_HEADER2;
|
|
212
|
+
const images = [];
|
|
213
|
+
while (imageOffset < fileLength && imageOffset < inputLength) {
|
|
214
|
+
const imageHeader = readImageHeader(input, imageOffset);
|
|
215
|
+
const imageSize2 = getImageSize2(imageHeader[0]);
|
|
216
|
+
images.push(imageSize2);
|
|
217
|
+
imageOffset += imageHeader[1] > 0 ? imageHeader[1] : 8;
|
|
218
|
+
}
|
|
219
|
+
if (images.length === 0) throw new TypeError("Invalid ICNS, no sizes found");
|
|
220
|
+
return {
|
|
221
|
+
width: images[0].width,
|
|
222
|
+
height: images[0].height,
|
|
223
|
+
...images.length > 1 ? { images } : {}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var J2C = {
|
|
228
|
+
validate: (input) => readUInt32BE(input, 0) === 4283432785,
|
|
229
|
+
calculate: (input) => ({
|
|
230
|
+
height: readUInt32BE(input, 12),
|
|
231
|
+
width: readUInt32BE(input, 8)
|
|
232
|
+
})
|
|
233
|
+
};
|
|
234
|
+
var JP2 = {
|
|
235
|
+
validate(input) {
|
|
236
|
+
if (toUTF8String(input, 4, 8) !== "jP ") return false;
|
|
237
|
+
const ftypBox = findBox(input, "ftyp", 0);
|
|
238
|
+
if (!ftypBox) return false;
|
|
239
|
+
return toUTF8String(input, ftypBox.offset + 8, ftypBox.offset + 12) === "jp2 ";
|
|
240
|
+
},
|
|
241
|
+
calculate(input) {
|
|
242
|
+
const jp2hBox = findBox(input, "jp2h", 0);
|
|
243
|
+
const ihdrBox = jp2hBox && findBox(input, "ihdr", jp2hBox.offset + 8);
|
|
244
|
+
if (ihdrBox) return {
|
|
245
|
+
height: readUInt32BE(input, ihdrBox.offset + 8),
|
|
246
|
+
width: readUInt32BE(input, ihdrBox.offset + 12)
|
|
247
|
+
};
|
|
248
|
+
throw new TypeError("Unsupported JPEG 2000 format");
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
var EXIF_MARKER = "45786966";
|
|
252
|
+
var APP1_DATA_SIZE_BYTES = 2;
|
|
253
|
+
var EXIF_HEADER_BYTES = 6;
|
|
254
|
+
var TIFF_BYTE_ALIGN_BYTES = 2;
|
|
255
|
+
var BIG_ENDIAN_BYTE_ALIGN = "4d4d";
|
|
256
|
+
var LITTLE_ENDIAN_BYTE_ALIGN = "4949";
|
|
257
|
+
var IDF_ENTRY_BYTES = 12;
|
|
258
|
+
var NUM_DIRECTORY_ENTRIES_BYTES = 2;
|
|
259
|
+
function isEXIF(input) {
|
|
260
|
+
return toHexString(input, 2, 6) === EXIF_MARKER;
|
|
261
|
+
}
|
|
262
|
+
function extractSize(input, index) {
|
|
263
|
+
return {
|
|
264
|
+
height: readUInt16BE(input, index),
|
|
265
|
+
width: readUInt16BE(input, index + 2)
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function extractOrientation(exifBlock, isBigEndian) {
|
|
269
|
+
const offset = EXIF_HEADER_BYTES + 8;
|
|
270
|
+
const idfDirectoryEntries = readUInt(exifBlock, 16, offset, isBigEndian);
|
|
271
|
+
for (let directoryEntryNumber = 0; directoryEntryNumber < idfDirectoryEntries; directoryEntryNumber++) {
|
|
272
|
+
const start = offset + NUM_DIRECTORY_ENTRIES_BYTES + directoryEntryNumber * IDF_ENTRY_BYTES;
|
|
273
|
+
const end = start + IDF_ENTRY_BYTES;
|
|
274
|
+
if (start > exifBlock.length) return;
|
|
275
|
+
const block = exifBlock.slice(start, end);
|
|
276
|
+
if (readUInt(block, 16, 0, isBigEndian) === 274) {
|
|
277
|
+
if (readUInt(block, 16, 2, isBigEndian) !== 3) return;
|
|
278
|
+
if (readUInt(block, 32, 4, isBigEndian) !== 1) return;
|
|
279
|
+
return readUInt(block, 16, 8, isBigEndian);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function validateExifBlock(input, index) {
|
|
284
|
+
const exifBlock = input.slice(APP1_DATA_SIZE_BYTES, index);
|
|
285
|
+
const byteAlign = toHexString(exifBlock, EXIF_HEADER_BYTES, EXIF_HEADER_BYTES + TIFF_BYTE_ALIGN_BYTES);
|
|
286
|
+
const isBigEndian = byteAlign === BIG_ENDIAN_BYTE_ALIGN;
|
|
287
|
+
if (isBigEndian || byteAlign === LITTLE_ENDIAN_BYTE_ALIGN) return extractOrientation(exifBlock, isBigEndian);
|
|
288
|
+
}
|
|
289
|
+
function validateInput(input, index) {
|
|
290
|
+
if (index > input.length) throw new TypeError("Corrupt JPG, exceeded buffer limits");
|
|
291
|
+
}
|
|
292
|
+
var JPG = {
|
|
293
|
+
validate: (input) => toHexString(input, 0, 2) === "ffd8",
|
|
294
|
+
calculate(_input) {
|
|
295
|
+
let input = _input.slice(4);
|
|
296
|
+
let orientation;
|
|
297
|
+
let next;
|
|
298
|
+
while (input.length) {
|
|
299
|
+
const i = readUInt16BE(input, 0);
|
|
300
|
+
validateInput(input, i);
|
|
301
|
+
if (input[i] !== 255) {
|
|
302
|
+
input = input.slice(1);
|
|
303
|
+
continue;
|
|
304
|
+
}
|
|
305
|
+
if (isEXIF(input)) orientation = validateExifBlock(input, i);
|
|
306
|
+
next = input[i + 1];
|
|
307
|
+
if (next === 192 || next === 193 || next === 194) {
|
|
308
|
+
const size = extractSize(input, i + 5);
|
|
309
|
+
if (!orientation) return size;
|
|
310
|
+
return {
|
|
311
|
+
height: size.height,
|
|
312
|
+
orientation,
|
|
313
|
+
width: size.width
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
input = input.slice(i + 2);
|
|
317
|
+
}
|
|
318
|
+
throw new TypeError("Invalid JPG, no size found");
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
var BitReader = class {
|
|
322
|
+
constructor(input, endianness) {
|
|
323
|
+
this.input = input;
|
|
324
|
+
this.endianness = endianness;
|
|
325
|
+
this.byteOffset = 2;
|
|
326
|
+
this.bitOffset = 0;
|
|
327
|
+
}
|
|
328
|
+
/** Reads a specified number of bits, and move the offset */
|
|
329
|
+
getBits(length = 1) {
|
|
330
|
+
let result = 0;
|
|
331
|
+
let bitsRead = 0;
|
|
332
|
+
while (bitsRead < length) {
|
|
333
|
+
if (this.byteOffset >= this.input.length) throw new Error("Reached end of input");
|
|
334
|
+
const currentByte = this.input[this.byteOffset];
|
|
335
|
+
const bitsLeft = 8 - this.bitOffset;
|
|
336
|
+
const bitsToRead = Math.min(length - bitsRead, bitsLeft);
|
|
337
|
+
if (this.endianness === "little-endian") {
|
|
338
|
+
const mask = (1 << bitsToRead) - 1;
|
|
339
|
+
const bits = currentByte >> this.bitOffset & mask;
|
|
340
|
+
result |= bits << bitsRead;
|
|
341
|
+
} else {
|
|
342
|
+
const bits = (currentByte & (1 << bitsToRead) - 1 << 8 - this.bitOffset - bitsToRead) >> 8 - this.bitOffset - bitsToRead;
|
|
343
|
+
result = result << bitsToRead | bits;
|
|
344
|
+
}
|
|
345
|
+
bitsRead += bitsToRead;
|
|
346
|
+
this.bitOffset += bitsToRead;
|
|
347
|
+
if (this.bitOffset === 8) {
|
|
348
|
+
this.byteOffset++;
|
|
349
|
+
this.bitOffset = 0;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
return result;
|
|
353
|
+
}
|
|
354
|
+
};
|
|
355
|
+
function calculateImageDimension(reader, isSmallImage) {
|
|
356
|
+
if (isSmallImage) return 8 * (1 + reader.getBits(5));
|
|
357
|
+
const extraBits = [
|
|
358
|
+
9,
|
|
359
|
+
13,
|
|
360
|
+
18,
|
|
361
|
+
30
|
|
362
|
+
][reader.getBits(2)];
|
|
363
|
+
return 1 + reader.getBits(extraBits);
|
|
364
|
+
}
|
|
365
|
+
function calculateImageWidth(reader, isSmallImage, widthMode, height) {
|
|
366
|
+
if (isSmallImage && widthMode === 0) return 8 * (1 + reader.getBits(5));
|
|
367
|
+
if (widthMode === 0) return calculateImageDimension(reader, false);
|
|
368
|
+
return Math.floor(height * [
|
|
369
|
+
1,
|
|
370
|
+
1.2,
|
|
371
|
+
4 / 3,
|
|
372
|
+
1.5,
|
|
373
|
+
16 / 9,
|
|
374
|
+
5 / 4,
|
|
375
|
+
2
|
|
376
|
+
][widthMode - 1]);
|
|
377
|
+
}
|
|
378
|
+
var JXLStream = {
|
|
379
|
+
validate: (input) => {
|
|
380
|
+
return toHexString(input, 0, 2) === "ff0a";
|
|
381
|
+
},
|
|
382
|
+
calculate(input) {
|
|
383
|
+
const reader = new BitReader(input, "little-endian");
|
|
384
|
+
const isSmallImage = reader.getBits(1) === 1;
|
|
385
|
+
const height = calculateImageDimension(reader, isSmallImage);
|
|
386
|
+
return {
|
|
387
|
+
width: calculateImageWidth(reader, isSmallImage, reader.getBits(3), height),
|
|
388
|
+
height
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
function extractCodestream(input) {
|
|
393
|
+
const jxlcBox = findBox(input, "jxlc", 0);
|
|
394
|
+
if (jxlcBox) return input.slice(jxlcBox.offset + 8, jxlcBox.offset + jxlcBox.size);
|
|
395
|
+
const partialStreams = extractPartialStreams(input);
|
|
396
|
+
if (partialStreams.length > 0) return concatenateCodestreams(partialStreams);
|
|
397
|
+
}
|
|
398
|
+
function extractPartialStreams(input) {
|
|
399
|
+
const partialStreams = [];
|
|
400
|
+
let offset = 0;
|
|
401
|
+
while (offset < input.length) {
|
|
402
|
+
const jxlpBox = findBox(input, "jxlp", offset);
|
|
403
|
+
if (!jxlpBox) break;
|
|
404
|
+
partialStreams.push(input.slice(jxlpBox.offset + 12, jxlpBox.offset + jxlpBox.size));
|
|
405
|
+
offset = jxlpBox.offset + (jxlpBox.size > 0 ? jxlpBox.size : 8);
|
|
406
|
+
}
|
|
407
|
+
return partialStreams;
|
|
408
|
+
}
|
|
409
|
+
function concatenateCodestreams(partialCodestreams) {
|
|
410
|
+
const totalLength = partialCodestreams.reduce((acc, curr) => acc + curr.length, 0);
|
|
411
|
+
const codestream = new Uint8Array(totalLength);
|
|
412
|
+
let position = 0;
|
|
413
|
+
for (const partial of partialCodestreams) {
|
|
414
|
+
codestream.set(partial, position);
|
|
415
|
+
position += partial.length;
|
|
416
|
+
}
|
|
417
|
+
return codestream;
|
|
418
|
+
}
|
|
419
|
+
var JXL = {
|
|
420
|
+
validate: (input) => {
|
|
421
|
+
if (toUTF8String(input, 4, 8) !== "JXL ") return false;
|
|
422
|
+
const ftypBox = findBox(input, "ftyp", 0);
|
|
423
|
+
if (!ftypBox) return false;
|
|
424
|
+
return toUTF8String(input, ftypBox.offset + 8, ftypBox.offset + 12) === "jxl ";
|
|
425
|
+
},
|
|
426
|
+
calculate(input) {
|
|
427
|
+
const codestream = extractCodestream(input);
|
|
428
|
+
if (codestream) return JXLStream.calculate(codestream);
|
|
429
|
+
throw new Error("No codestream found in JXL container");
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
var KTX = {
|
|
433
|
+
validate: (input) => {
|
|
434
|
+
const signature = toUTF8String(input, 1, 7);
|
|
435
|
+
return ["KTX 11", "KTX 20"].includes(signature);
|
|
436
|
+
},
|
|
437
|
+
calculate: (input) => {
|
|
438
|
+
const type = input[5] === 49 ? "ktx" : "ktx2";
|
|
439
|
+
const offset = type === "ktx" ? 36 : 20;
|
|
440
|
+
return {
|
|
441
|
+
height: readUInt32LE(input, offset + 4),
|
|
442
|
+
width: readUInt32LE(input, offset),
|
|
443
|
+
type
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
var pngSignature = "PNG\r\n\n";
|
|
448
|
+
var pngImageHeaderChunkName = "IHDR";
|
|
449
|
+
var pngFriedChunkName = "CgBI";
|
|
450
|
+
var PNG = {
|
|
451
|
+
validate(input) {
|
|
452
|
+
if (pngSignature === toUTF8String(input, 1, 8)) {
|
|
453
|
+
let chunkName = toUTF8String(input, 12, 16);
|
|
454
|
+
if (chunkName === pngFriedChunkName) chunkName = toUTF8String(input, 28, 32);
|
|
455
|
+
if (chunkName !== pngImageHeaderChunkName) throw new TypeError("Invalid PNG");
|
|
456
|
+
return true;
|
|
457
|
+
}
|
|
458
|
+
return false;
|
|
459
|
+
},
|
|
460
|
+
calculate(input) {
|
|
461
|
+
if (toUTF8String(input, 12, 16) === pngFriedChunkName) return {
|
|
462
|
+
height: readUInt32BE(input, 36),
|
|
463
|
+
width: readUInt32BE(input, 32)
|
|
464
|
+
};
|
|
465
|
+
return {
|
|
466
|
+
height: readUInt32BE(input, 20),
|
|
467
|
+
width: readUInt32BE(input, 16)
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
var PNMTypes = {
|
|
472
|
+
P1: "pbm/ascii",
|
|
473
|
+
P2: "pgm/ascii",
|
|
474
|
+
P3: "ppm/ascii",
|
|
475
|
+
P4: "pbm",
|
|
476
|
+
P5: "pgm",
|
|
477
|
+
P6: "ppm",
|
|
478
|
+
P7: "pam",
|
|
479
|
+
PF: "pfm"
|
|
480
|
+
};
|
|
481
|
+
var handlers = {
|
|
482
|
+
default: (lines) => {
|
|
483
|
+
let dimensions = [];
|
|
484
|
+
while (lines.length > 0) {
|
|
485
|
+
const line = lines.shift();
|
|
486
|
+
if (line[0] === "#") continue;
|
|
487
|
+
dimensions = line.split(" ");
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
if (dimensions.length === 2) return {
|
|
491
|
+
height: Number.parseInt(dimensions[1], 10),
|
|
492
|
+
width: Number.parseInt(dimensions[0], 10)
|
|
493
|
+
};
|
|
494
|
+
throw new TypeError("Invalid PNM");
|
|
495
|
+
},
|
|
496
|
+
pam: (lines) => {
|
|
497
|
+
const size = {};
|
|
498
|
+
while (lines.length > 0) {
|
|
499
|
+
const line = lines.shift();
|
|
500
|
+
if (line.length > 16 || line.charCodeAt(0) > 128) continue;
|
|
501
|
+
const [key, value] = line.split(" ");
|
|
502
|
+
if (key && value) size[key.toLowerCase()] = Number.parseInt(value, 10);
|
|
503
|
+
if (size.height && size.width) break;
|
|
504
|
+
}
|
|
505
|
+
if (size.height && size.width) return {
|
|
506
|
+
height: size.height,
|
|
507
|
+
width: size.width
|
|
508
|
+
};
|
|
509
|
+
throw new TypeError("Invalid PAM");
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
var PNM = {
|
|
513
|
+
validate: (input) => toUTF8String(input, 0, 2) in PNMTypes,
|
|
514
|
+
calculate(input) {
|
|
515
|
+
const type = PNMTypes[toUTF8String(input, 0, 2)];
|
|
516
|
+
const lines = toUTF8String(input, 3).split(/[\r\n]+/);
|
|
517
|
+
return (handlers[type] || handlers.default)(lines);
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
var PSD = {
|
|
521
|
+
validate: (input) => toUTF8String(input, 0, 4) === "8BPS",
|
|
522
|
+
calculate: (input) => ({
|
|
523
|
+
height: readUInt32BE(input, 14),
|
|
524
|
+
width: readUInt32BE(input, 18)
|
|
525
|
+
})
|
|
526
|
+
};
|
|
527
|
+
var svgReg = /<svg\s([^>"']|"[^"]*"|'[^']*')*>/;
|
|
528
|
+
var extractorRegExps = {
|
|
529
|
+
height: /\sheight=(['"])([^%]+?)\1/,
|
|
530
|
+
root: svgReg,
|
|
531
|
+
viewbox: /\sviewBox=(['"])(.+?)\1/i,
|
|
532
|
+
width: /\swidth=(['"])([^%]+?)\1/
|
|
533
|
+
};
|
|
534
|
+
var INCH_CM = 2.54;
|
|
535
|
+
var units = {
|
|
536
|
+
in: 96,
|
|
537
|
+
cm: 96 / INCH_CM,
|
|
538
|
+
em: 16,
|
|
539
|
+
ex: 8,
|
|
540
|
+
m: 96 / INCH_CM * 100,
|
|
541
|
+
mm: 96 / INCH_CM / 10,
|
|
542
|
+
pc: 96 / 72 / 12,
|
|
543
|
+
pt: 96 / 72,
|
|
544
|
+
px: 1
|
|
545
|
+
};
|
|
546
|
+
var unitsReg = new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(units).join("|")})?$`);
|
|
547
|
+
function parseLength(len) {
|
|
548
|
+
const m = unitsReg.exec(len);
|
|
549
|
+
if (!m) return;
|
|
550
|
+
return Math.round(Number(m[1]) * (units[m[2]] || 1));
|
|
551
|
+
}
|
|
552
|
+
function parseViewbox(viewbox) {
|
|
553
|
+
const bounds = viewbox.split(" ");
|
|
554
|
+
return {
|
|
555
|
+
height: parseLength(bounds[3]),
|
|
556
|
+
width: parseLength(bounds[2])
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
function parseAttributes(root) {
|
|
560
|
+
const width = root.match(extractorRegExps.width);
|
|
561
|
+
const height = root.match(extractorRegExps.height);
|
|
562
|
+
const viewbox = root.match(extractorRegExps.viewbox);
|
|
563
|
+
return {
|
|
564
|
+
height: height && parseLength(height[2]),
|
|
565
|
+
viewbox: viewbox && parseViewbox(viewbox[2]),
|
|
566
|
+
width: width && parseLength(width[2])
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
function calculateByDimensions(attrs) {
|
|
570
|
+
return {
|
|
571
|
+
height: attrs.height,
|
|
572
|
+
width: attrs.width
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
function calculateByViewbox(attrs, viewbox) {
|
|
576
|
+
const ratio = viewbox.width / viewbox.height;
|
|
577
|
+
if (attrs.width) return {
|
|
578
|
+
height: Math.floor(attrs.width / ratio),
|
|
579
|
+
width: attrs.width
|
|
580
|
+
};
|
|
581
|
+
if (attrs.height) return {
|
|
582
|
+
height: attrs.height,
|
|
583
|
+
width: Math.floor(attrs.height * ratio)
|
|
584
|
+
};
|
|
585
|
+
return {
|
|
586
|
+
height: viewbox.height,
|
|
587
|
+
width: viewbox.width
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
var SVG = {
|
|
591
|
+
validate: (input) => svgReg.test(toUTF8String(input, 0, 1e3)),
|
|
592
|
+
calculate(input) {
|
|
593
|
+
const root = toUTF8String(input).match(extractorRegExps.root);
|
|
594
|
+
if (root) {
|
|
595
|
+
const attrs = parseAttributes(root[0]);
|
|
596
|
+
if (attrs.width && attrs.height) return calculateByDimensions(attrs);
|
|
597
|
+
if (attrs.viewbox) return calculateByViewbox(attrs, attrs.viewbox);
|
|
598
|
+
}
|
|
599
|
+
throw new TypeError("Invalid SVG");
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
var TGA = {
|
|
603
|
+
validate(input) {
|
|
604
|
+
return readUInt16LE(input, 0) === 0 && readUInt16LE(input, 4) === 0;
|
|
605
|
+
},
|
|
606
|
+
calculate(input) {
|
|
607
|
+
return {
|
|
608
|
+
height: readUInt16LE(input, 14),
|
|
609
|
+
width: readUInt16LE(input, 12)
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
var CONSTANTS = {
|
|
614
|
+
TAG: {
|
|
615
|
+
WIDTH: 256,
|
|
616
|
+
HEIGHT: 257,
|
|
617
|
+
COMPRESSION: 259
|
|
618
|
+
},
|
|
619
|
+
TYPE: {
|
|
620
|
+
SHORT: 3,
|
|
621
|
+
LONG: 4,
|
|
622
|
+
LONG8: 16
|
|
623
|
+
},
|
|
624
|
+
ENTRY_SIZE: {
|
|
625
|
+
STANDARD: 12,
|
|
626
|
+
BIG: 20
|
|
627
|
+
},
|
|
628
|
+
COUNT_SIZE: {
|
|
629
|
+
STANDARD: 2,
|
|
630
|
+
BIG: 8
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
function readIFD(input, { isBigEndian, isBigTiff }) {
|
|
634
|
+
const ifdOffset = isBigTiff ? Number(readUInt64(input, 8, isBigEndian)) : readUInt(input, 32, 4, isBigEndian);
|
|
635
|
+
const entryCountSize = isBigTiff ? CONSTANTS.COUNT_SIZE.BIG : CONSTANTS.COUNT_SIZE.STANDARD;
|
|
636
|
+
return input.slice(ifdOffset + entryCountSize);
|
|
637
|
+
}
|
|
638
|
+
function readTagValue(input, type, offset, isBigEndian) {
|
|
639
|
+
switch (type) {
|
|
640
|
+
case CONSTANTS.TYPE.SHORT: return readUInt(input, 16, offset, isBigEndian);
|
|
641
|
+
case CONSTANTS.TYPE.LONG: return readUInt(input, 32, offset, isBigEndian);
|
|
642
|
+
case CONSTANTS.TYPE.LONG8: {
|
|
643
|
+
const value = Number(readUInt64(input, offset, isBigEndian));
|
|
644
|
+
if (value > Number.MAX_SAFE_INTEGER) throw new TypeError("Value too large");
|
|
645
|
+
return value;
|
|
646
|
+
}
|
|
647
|
+
default: return 0;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function nextTag(input, isBigTiff) {
|
|
651
|
+
const entrySize = isBigTiff ? CONSTANTS.ENTRY_SIZE.BIG : CONSTANTS.ENTRY_SIZE.STANDARD;
|
|
652
|
+
if (input.length > entrySize) return input.slice(entrySize);
|
|
653
|
+
}
|
|
654
|
+
function extractTags(input, { isBigEndian, isBigTiff }) {
|
|
655
|
+
const tags = {};
|
|
656
|
+
let temp = input;
|
|
657
|
+
while (temp?.length) {
|
|
658
|
+
const code = readUInt(temp, 16, 0, isBigEndian);
|
|
659
|
+
const type = readUInt(temp, 16, 2, isBigEndian);
|
|
660
|
+
const length = isBigTiff ? Number(readUInt64(temp, 4, isBigEndian)) : readUInt(temp, 32, 4, isBigEndian);
|
|
661
|
+
if (code === 0) break;
|
|
662
|
+
if (length === 1 && (type === CONSTANTS.TYPE.SHORT || type === CONSTANTS.TYPE.LONG || isBigTiff && type === CONSTANTS.TYPE.LONG8)) tags[code] = readTagValue(temp, type, isBigTiff ? 12 : 8, isBigEndian);
|
|
663
|
+
temp = nextTag(temp, isBigTiff);
|
|
664
|
+
}
|
|
665
|
+
return tags;
|
|
666
|
+
}
|
|
667
|
+
function determineFormat(input) {
|
|
668
|
+
const signature = toUTF8String(input, 0, 2);
|
|
669
|
+
const version = readUInt(input, 16, 2, signature === "MM");
|
|
670
|
+
return {
|
|
671
|
+
isBigEndian: signature === "MM",
|
|
672
|
+
isBigTiff: version === 43
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
function validateBigTIFFHeader(input, isBigEndian) {
|
|
676
|
+
const byteSize = readUInt(input, 16, 4, isBigEndian);
|
|
677
|
+
const reserved = readUInt(input, 16, 6, isBigEndian);
|
|
678
|
+
if (byteSize !== 8 || reserved !== 0) throw new TypeError("Invalid BigTIFF header");
|
|
679
|
+
}
|
|
680
|
+
var signatures = /* @__PURE__ */ new Set([
|
|
681
|
+
"49492a00",
|
|
682
|
+
"4d4d002a",
|
|
683
|
+
"49492b00",
|
|
684
|
+
"4d4d002b"
|
|
685
|
+
]);
|
|
686
|
+
var TIFF = {
|
|
687
|
+
validate: (input) => {
|
|
688
|
+
const signature = toHexString(input, 0, 4);
|
|
689
|
+
return signatures.has(signature);
|
|
690
|
+
},
|
|
691
|
+
calculate(input) {
|
|
692
|
+
const format = determineFormat(input);
|
|
693
|
+
if (format.isBigTiff) validateBigTIFFHeader(input, format.isBigEndian);
|
|
694
|
+
const tags = extractTags(readIFD(input, format), format);
|
|
695
|
+
const info = {
|
|
696
|
+
height: tags[CONSTANTS.TAG.HEIGHT],
|
|
697
|
+
width: tags[CONSTANTS.TAG.WIDTH],
|
|
698
|
+
type: format.isBigTiff ? "bigtiff" : "tiff"
|
|
699
|
+
};
|
|
700
|
+
if (tags[CONSTANTS.TAG.COMPRESSION]) info.compression = tags[CONSTANTS.TAG.COMPRESSION];
|
|
701
|
+
if (!info.width || !info.height) throw new TypeError("Invalid Tiff. Missing tags");
|
|
702
|
+
return info;
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
function calculateExtended(input) {
|
|
706
|
+
return {
|
|
707
|
+
height: 1 + readUInt24LE(input, 7),
|
|
708
|
+
width: 1 + readUInt24LE(input, 4)
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
function calculateLossless(input) {
|
|
712
|
+
return {
|
|
713
|
+
height: 1 + ((input[4] & 15) << 10 | input[3] << 2 | (input[2] & 192) >> 6),
|
|
714
|
+
width: 1 + ((input[2] & 63) << 8 | input[1])
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
function calculateLossy(input) {
|
|
718
|
+
return {
|
|
719
|
+
height: readInt16LE(input, 8) & 16383,
|
|
720
|
+
width: readInt16LE(input, 6) & 16383
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
var typeHandlers = /* @__PURE__ */ new Map([
|
|
724
|
+
["bmp", BMP],
|
|
725
|
+
["cur", CUR],
|
|
726
|
+
["dds", DDS],
|
|
727
|
+
["gif", GIF],
|
|
728
|
+
["heif", HEIF],
|
|
729
|
+
["icns", ICNS],
|
|
730
|
+
["ico", ICO],
|
|
731
|
+
["j2c", J2C],
|
|
732
|
+
["jp2", JP2],
|
|
733
|
+
["jpg", JPG],
|
|
734
|
+
["jxl", JXL],
|
|
735
|
+
["jxl-stream", JXLStream],
|
|
736
|
+
["ktx", KTX],
|
|
737
|
+
["png", PNG],
|
|
738
|
+
["pnm", PNM],
|
|
739
|
+
["psd", PSD],
|
|
740
|
+
["svg", SVG],
|
|
741
|
+
["tga", TGA],
|
|
742
|
+
["tiff", TIFF],
|
|
743
|
+
["webp", {
|
|
744
|
+
validate(input) {
|
|
745
|
+
const riffHeader = "RIFF" === toUTF8String(input, 0, 4);
|
|
746
|
+
const webpHeader = "WEBP" === toUTF8String(input, 8, 12);
|
|
747
|
+
const vp8Header = "VP8" === toUTF8String(input, 12, 15);
|
|
748
|
+
return riffHeader && webpHeader && vp8Header;
|
|
749
|
+
},
|
|
750
|
+
calculate(_input) {
|
|
751
|
+
const chunkHeader = toUTF8String(_input, 12, 16);
|
|
752
|
+
const input = _input.slice(20, 30);
|
|
753
|
+
if (chunkHeader === "VP8X") {
|
|
754
|
+
const extendedHeader = input[0];
|
|
755
|
+
const validStart = (extendedHeader & 192) === 0;
|
|
756
|
+
const validEnd = (extendedHeader & 1) === 0;
|
|
757
|
+
if (validStart && validEnd) return calculateExtended(input);
|
|
758
|
+
throw new TypeError("Invalid WebP");
|
|
759
|
+
}
|
|
760
|
+
if (chunkHeader === "VP8 " && input[0] !== 47) return calculateLossy(input);
|
|
761
|
+
const signature = toHexString(input, 3, 6);
|
|
762
|
+
if (chunkHeader === "VP8L" && signature !== "9d012a") return calculateLossless(input);
|
|
763
|
+
throw new TypeError("Invalid WebP");
|
|
764
|
+
}
|
|
765
|
+
}]
|
|
766
|
+
]);
|
|
767
|
+
var types = Array.from(typeHandlers.keys());
|
|
768
|
+
var firstBytes = /* @__PURE__ */ new Map([
|
|
769
|
+
[0, "heif"],
|
|
770
|
+
[56, "psd"],
|
|
771
|
+
[66, "bmp"],
|
|
772
|
+
[68, "dds"],
|
|
773
|
+
[71, "gif"],
|
|
774
|
+
[73, "tiff"],
|
|
775
|
+
[77, "tiff"],
|
|
776
|
+
[82, "webp"],
|
|
777
|
+
[105, "icns"],
|
|
778
|
+
[137, "png"],
|
|
779
|
+
[255, "jpg"]
|
|
780
|
+
]);
|
|
781
|
+
function detector(input) {
|
|
782
|
+
const byte = input[0];
|
|
783
|
+
const type = firstBytes.get(byte);
|
|
784
|
+
if (type && typeHandlers.get(type).validate(input)) return type;
|
|
785
|
+
return types.find((type2) => typeHandlers.get(type2).validate(input));
|
|
786
|
+
}
|
|
787
|
+
var globalOptions = { disabledTypes: [] };
|
|
788
|
+
function imageSize(input) {
|
|
789
|
+
const type = detector(input);
|
|
790
|
+
if (typeof type !== "undefined") {
|
|
791
|
+
if (globalOptions.disabledTypes.indexOf(type) > -1) throw new TypeError(`disabled file type: ${type}`);
|
|
792
|
+
const size = typeHandlers.get(type).calculate(input);
|
|
793
|
+
if (size !== void 0) {
|
|
794
|
+
size.type = size.type ?? type;
|
|
795
|
+
if (size.images && size.images.length > 1) {
|
|
796
|
+
const largestImage = size.images.reduce((largest, current) => {
|
|
797
|
+
return current.width * current.height > largest.width * largest.height ? current : largest;
|
|
798
|
+
}, size.images[0]);
|
|
799
|
+
size.width = largestImage.width;
|
|
800
|
+
size.height = largestImage.height;
|
|
801
|
+
}
|
|
802
|
+
return size;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
throw new TypeError(`unsupported file type: ${type}`);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
//#endregion
|
|
809
|
+
export { imageSize as t };
|
|
810
|
+
//# sourceMappingURL=dist-D_6CKR8z.mjs.map
|