emdash 0.20.0 → 0.22.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-BzIHV3sw.d.mts → adapters-hUy8vOB-.d.mts} +1 -1
- package/dist/{adapters-BzIHV3sw.d.mts.map → adapters-hUy8vOB-.d.mts.map} +1 -1
- package/dist/after-B1IIdH3Y.mjs +29 -0
- package/dist/after-B1IIdH3Y.mjs.map +1 -0
- package/dist/{allowed-origins-B1u7Qnvg.mjs → allowed-origins-DjlhyfNN.mjs} +2 -2
- package/dist/{allowed-origins-B1u7Qnvg.mjs.map → allowed-origins-DjlhyfNN.mjs.map} +1 -1
- package/dist/api/route-utils.d.mts +3 -3
- package/dist/api/route-utils.mjs +20 -18
- package/dist/api/route-utils.mjs.map +1 -1
- package/dist/api/schemas/index.d.mts +2 -2
- package/dist/api/schemas/index.mjs +4 -3
- package/dist/{api-DStv36ik.mjs → api-BDuM4bEy.mjs} +31 -25
- package/dist/api-BDuM4bEy.mjs.map +1 -0
- package/dist/{api-tokens-DPfhPu5V.mjs → api-tokens-ViYKeIp9.mjs} +13 -3
- package/dist/api-tokens-ViYKeIp9.mjs.map +1 -0
- package/dist/{apply-Dr7snAMT.mjs → apply-wDqQoxX4.mjs} +18 -18
- package/dist/{apply-Dr7snAMT.mjs.map → apply-wDqQoxX4.mjs.map} +1 -1
- package/dist/astro/image-endpoint.d.mts +8 -0
- package/dist/astro/image-endpoint.d.mts.map +1 -0
- package/dist/astro/image-endpoint.mjs +55 -0
- package/dist/astro/image-endpoint.mjs.map +1 -0
- package/dist/astro/index.d.mts +36 -11
- package/dist/astro/index.d.mts.map +1 -1
- package/dist/astro/index.mjs +160 -35
- package/dist/astro/index.mjs.map +1 -1
- package/dist/astro/middleware/auth.d.mts +9 -9
- package/dist/astro/middleware/auth.d.mts.map +1 -1
- package/dist/astro/middleware/auth.mjs +12 -10
- package/dist/astro/middleware/auth.mjs.map +1 -1
- package/dist/astro/middleware/redirect.d.mts.map +1 -1
- package/dist/astro/middleware/redirect.mjs +14 -5
- package/dist/astro/middleware/redirect.mjs.map +1 -1
- package/dist/astro/middleware/request-context.mjs +5 -4
- package/dist/astro/middleware/request-context.mjs.map +1 -1
- package/dist/astro/middleware/setup.mjs +1 -1
- package/dist/astro/middleware.d.mts +1 -1
- package/dist/astro/middleware.d.mts.map +1 -1
- package/dist/astro/middleware.mjs +157 -80
- package/dist/astro/middleware.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +7 -6
- package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/allowed-domains/index.mjs +7 -6
- 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 +10 -9
- package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/index.mjs +10 -9
- package/dist/astro/routes/api/admin/byline-fields/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +10 -9
- package/dist/astro/routes/api/admin/byline-fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +17 -14
- package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +17 -14
- package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/admin/bylines/index.mjs +17 -14
- package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs +15 -12
- package/dist/astro/routes/api/admin/comments/_id_/status.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/_id_.mjs +8 -6
- package/dist/astro/routes/api/admin/comments/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/bulk.mjs +12 -9
- package/dist/astro/routes/api/admin/comments/bulk.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/counts.mjs +8 -6
- package/dist/astro/routes/api/admin/comments/counts.mjs.map +1 -1
- package/dist/astro/routes/api/admin/comments/index.mjs +12 -9
- package/dist/astro/routes/api/admin/comments/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +6 -6
- package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +5 -5
- 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.mjs +40 -37
- package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +40 -37
- package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/index.mjs +39 -36
- 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 +39 -36
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +40 -37
- package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs +40 -37
- package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
- package/dist/astro/routes/api/admin/plugins/updates.mjs +39 -36
- package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
- package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +39 -36
- 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 +39 -36
- package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/disable.mjs +4 -4
- package/dist/astro/routes/api/admin/users/_id_/enable.mjs +3 -3
- package/dist/astro/routes/api/admin/users/_id_/index.mjs +8 -7
- package/dist/astro/routes/api/admin/users/_id_/index.mjs.map +1 -1
- package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +5 -5
- package/dist/astro/routes/api/admin/users/index.mjs +7 -6
- package/dist/astro/routes/api/admin/users/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/dev-bypass.mjs +6 -6
- package/dist/astro/routes/api/auth/invite/accept.mjs +3 -3
- package/dist/astro/routes/api/auth/invite/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/invite/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/index.mjs +9 -8
- package/dist/astro/routes/api/auth/invite/index.mjs.map +1 -1
- package/dist/astro/routes/api/auth/invite/register-options.mjs +11 -10
- 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 +11 -10
- 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 +8 -7
- package/dist/astro/routes/api/auth/me.mjs.map +1 -1
- package/dist/astro/routes/api/auth/mode.mjs +1 -1
- package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +4 -4
- package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
- package/dist/astro/routes/api/auth/passkey/_id_.mjs +7 -6
- 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 +13 -12
- package/dist/astro/routes/api/auth/passkey/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/options.mjs +11 -10
- package/dist/astro/routes/api/auth/passkey/register/options.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs +12 -11
- package/dist/astro/routes/api/auth/passkey/register/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/passkey/verify.mjs +12 -11
- package/dist/astro/routes/api/auth/passkey/verify.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/complete.mjs +12 -11
- package/dist/astro/routes/api/auth/signup/complete.mjs.map +1 -1
- package/dist/astro/routes/api/auth/signup/request.mjs +11 -10
- 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 +16 -13
- package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs.map +1 -1
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.d.mts +9 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.d.mts.map +1 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +179 -0
- package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs.map +1 -0
- package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +13 -11
- package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +8 -7
- package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +17 -14
- 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 +4 -4
- package/dist/astro/routes/api/content/_collection_/_id_.mjs +8 -7
- 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 +8 -7
- package/dist/astro/routes/api/content/_collection_/index.mjs.map +1 -1
- package/dist/astro/routes/api/content/_collection_/trash.mjs +8 -7
- 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 +12 -11
- 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 +9 -9
- package/dist/astro/routes/api/import/wordpress/execute.mjs +16 -14
- package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/media.mjs +10 -9
- package/dist/astro/routes/api/import/wordpress/media.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/prepare.mjs +11 -10
- package/dist/astro/routes/api/import/wordpress/prepare.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +10 -9
- package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs.map +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.d.mts +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +12 -11
- 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 +1 -1
- package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +18 -15
- 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.mjs +213 -45
- package/dist/astro/routes/api/mcp.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_/confirm.mjs +8 -7
- package/dist/astro/routes/api/media/_id_/confirm.mjs.map +1 -1
- package/dist/astro/routes/api/media/_id_.mjs +8 -7
- 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 +10 -9
- package/dist/astro/routes/api/media/upload-url.mjs.map +1 -1
- package/dist/astro/routes/api/media.mjs +13 -12
- package/dist/astro/routes/api/media.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +11 -8
- package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/items.mjs +11 -8
- package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/reorder.mjs +11 -8
- package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_/translations.mjs +11 -8
- package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
- package/dist/astro/routes/api/menus/_name_.mjs +11 -8
- package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
- package/dist/astro/routes/api/menus/index.mjs +11 -8
- package/dist/astro/routes/api/menus/index.mjs.map +1 -1
- 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 +5 -4
- package/dist/astro/routes/api/openapi.json.mjs.map +1 -1
- package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +5 -5
- package/dist/astro/routes/api/redirects/404s/index.mjs +11 -10
- package/dist/astro/routes/api/redirects/404s/index.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/404s/summary.mjs +11 -10
- package/dist/astro/routes/api/redirects/404s/summary.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/_id_.mjs +12 -11
- package/dist/astro/routes/api/redirects/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/redirects/index.mjs +12 -11
- package/dist/astro/routes/api/redirects/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 +4 -4
- package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +39 -36
- 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 +39 -36
- 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 +39 -36
- package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +39 -36
- package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/collections/index.mjs +39 -36
- package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
- package/dist/astro/routes/api/schema/index.mjs +7 -7
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs +39 -36
- package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/schema/orphans/index.mjs +39 -36
- package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/enable.mjs +11 -10
- package/dist/astro/routes/api/search/enable.mjs.map +1 -1
- package/dist/astro/routes/api/search/index.mjs +10 -9
- package/dist/astro/routes/api/search/index.mjs.map +1 -1
- package/dist/astro/routes/api/search/rebuild.mjs +11 -10
- package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
- package/dist/astro/routes/api/search/stats.mjs +7 -7
- package/dist/astro/routes/api/search/suggest.mjs +10 -9
- package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
- package/dist/astro/routes/api/sections/_slug_.mjs +10 -9
- package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/sections/index.mjs +10 -9
- package/dist/astro/routes/api/sections/index.mjs.map +1 -1
- package/dist/astro/routes/api/settings/email.mjs +6 -6
- package/dist/astro/routes/api/settings.mjs +16 -13
- package/dist/astro/routes/api/settings.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin-verify.mjs +13 -12
- package/dist/astro/routes/api/setup/admin-verify.mjs.map +1 -1
- package/dist/astro/routes/api/setup/admin.mjs +12 -11
- 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 +29 -26
- package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
- package/dist/astro/routes/api/setup/dev-reset.mjs +4 -4
- package/dist/astro/routes/api/setup/index.mjs +29 -26
- 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.d.mts.map +1 -1
- package/dist/astro/routes/api/snapshot.mjs +10 -8
- package/dist/astro/routes/api/snapshot.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +16 -13
- 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 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +16 -13
- package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs.map +1 -1
- package/dist/astro/routes/api/taxonomies/index.mjs +16 -13
- package/dist/astro/routes/api/taxonomies/index.mjs.map +1 -1
- package/dist/astro/routes/api/themes/preview.mjs +8 -7
- package/dist/astro/routes/api/themes/preview.mjs.map +1 -1
- package/dist/astro/routes/api/typegen.mjs +6 -6
- package/dist/astro/routes/api/well-known/auth.mjs +2 -2
- 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 +8 -7
- package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +11 -10
- package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +11 -10
- package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
- package/dist/astro/routes/api/widget-areas/_name_.mjs +7 -7
- package/dist/astro/routes/api/widget-areas/index.mjs +11 -10
- 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 +10 -8
- package/dist/astro/routes/robots.txt.mjs.map +1 -1
- package/dist/astro/routes/sitemap-_collection_.xml.mjs +13 -11
- package/dist/astro/routes/sitemap-_collection_.xml.mjs.map +1 -1
- package/dist/astro/routes/sitemap.xml.mjs +11 -9
- package/dist/astro/routes/sitemap.xml.mjs.map +1 -1
- package/dist/astro/types.d.mts +16 -12
- 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-DsMSVSaY.mjs → authorize-C0EYoUeV.mjs} +2 -2
- package/dist/{authorize-DsMSVSaY.mjs.map → authorize-C0EYoUeV.mjs.map} +1 -1
- package/dist/{base64-CqR-7kqF.mjs → base64-CmWvODNW.mjs} +1 -1
- package/dist/{base64-CqR-7kqF.mjs.map → base64-CmWvODNW.mjs.map} +1 -1
- package/dist/{byline-DUx48sJp.mjs → byline-CC0WS4Gu.mjs} +40 -18
- package/dist/byline-CC0WS4Gu.mjs.map +1 -0
- package/dist/{byline-fields-8TMtkBnH.mjs → byline-fields-53i9Et0x.mjs} +3 -3
- package/dist/{byline-fields-8TMtkBnH.mjs.map → byline-fields-53i9Et0x.mjs.map} +1 -1
- package/dist/{byline-fields--WxSNS79.mjs → byline-fields-DNp0HNKc.mjs} +2 -2
- package/dist/{byline-fields--WxSNS79.mjs.map → byline-fields-DNp0HNKc.mjs.map} +1 -1
- package/dist/{byline-fields-DbibsvTl.d.mts → byline-fields-jy07PZJM.d.mts} +9 -4
- package/dist/byline-fields-jy07PZJM.d.mts.map +1 -0
- package/dist/{byline-registry-CWP7I71B.mjs → byline-registry-BOjqDOim.mjs} +3 -3
- package/dist/{byline-registry-CWP7I71B.mjs.map → byline-registry-BOjqDOim.mjs.map} +1 -1
- package/dist/{bylines-s8c2DXbH.mjs → bylines-CCO1CYnH.mjs} +8 -8
- package/dist/{bylines-s8c2DXbH.mjs.map → bylines-CCO1CYnH.mjs.map} +1 -1
- package/dist/{bylines-BdxWCnPL.mjs → bylines-DGekMGGm.mjs} +10 -4
- package/dist/{bylines-BdxWCnPL.mjs.map → bylines-DGekMGGm.mjs.map} +1 -1
- package/dist/{cache-B_HzASVT.mjs → cache-pXTpun6s.mjs} +3 -3
- package/dist/{cache-B_HzASVT.mjs.map → cache-pXTpun6s.mjs.map} +1 -1
- package/dist/{challenge-store-DXX3rfdI.mjs → challenge-store-C6E_kWTs.mjs} +1 -1
- package/dist/{challenge-store-DXX3rfdI.mjs.map → challenge-store-C6E_kWTs.mjs.map} +1 -1
- package/dist/{chunks-BerYVuve.mjs → chunks-SyjZaYwV.mjs} +2 -2
- package/dist/{chunks-BerYVuve.mjs.map → chunks-SyjZaYwV.mjs.map} +1 -1
- package/dist/cli/index.mjs +29 -27
- package/dist/cli/index.mjs.map +1 -1
- package/dist/client/cf-access.d.mts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/{comment-sqQxNpN3.mjs → comment-80UyJJUR.mjs} +11 -3
- package/dist/comment-80UyJJUR.mjs.map +1 -0
- package/dist/comment-reaction-B6AdcpXw.mjs +85 -0
- package/dist/comment-reaction-B6AdcpXw.mjs.map +1 -0
- package/dist/{comments-Vkivawyl.mjs → comments-CtPkT2tp.mjs} +3 -3
- package/dist/{comments-Vkivawyl.mjs.map → comments-CtPkT2tp.mjs.map} +1 -1
- package/dist/{components-CK0cuUoH.mjs → components-D6ZnrzbB.mjs} +1 -1
- package/dist/{components-CK0cuUoH.mjs.map → components-D6ZnrzbB.mjs.map} +1 -1
- package/dist/{content-BIlVx-RX.mjs → content-2PTDNnoh.mjs} +22 -7
- package/dist/content-2PTDNnoh.mjs.map +1 -0
- package/dist/{context-Y7BRkWes.mjs → context-f1__jpzF.mjs} +11 -11
- package/dist/{context-Y7BRkWes.mjs.map → context-f1__jpzF.mjs.map} +1 -1
- package/dist/{cron-BJ2ClIlj.mjs → cron-CQPxBjYs.mjs} +1 -1
- package/dist/{cron-BJ2ClIlj.mjs.map → cron-CQPxBjYs.mjs.map} +1 -1
- package/dist/{dashboard-2JgAMWxK.mjs → dashboard-BOESNcwE.mjs} +4 -4
- package/dist/{dashboard-2JgAMWxK.mjs.map → dashboard-BOESNcwE.mjs.map} +1 -1
- package/dist/database/instrumentation.d.mts +19 -0
- package/dist/database/instrumentation.d.mts.map +1 -1
- package/dist/database/instrumentation.mjs +8 -1
- package/dist/database/instrumentation.mjs.map +1 -1
- package/dist/db/index.d.mts +3 -3
- package/dist/db/index.mjs +1 -1
- package/dist/db/libsql.d.mts +1 -1
- package/dist/db/postgres.d.mts +1 -1
- package/dist/db/sqlite.d.mts +1 -1
- package/dist/{db-errors-CtzxKBxe.mjs → db-errors-CrC5w3Jz.mjs} +1 -1
- package/dist/{db-errors-CtzxKBxe.mjs.map → db-errors-CrC5w3Jz.mjs.map} +1 -1
- package/dist/{default-IlBaTFxM.mjs → default-CpBEPn6a.mjs} +1 -1
- package/dist/{default-IlBaTFxM.mjs.map → default-CpBEPn6a.mjs.map} +1 -1
- package/dist/{device-flow-R23SIbQ2.mjs → device-flow-Bn-qiDrw.mjs} +5 -5
- package/dist/{device-flow-R23SIbQ2.mjs.map → device-flow-Bn-qiDrw.mjs.map} +1 -1
- package/dist/{email-console-DHT2Fbpj.mjs → email-console-B9VS6eN4.mjs} +1 -1
- package/dist/{email-console-DHT2Fbpj.mjs.map → email-console-B9VS6eN4.mjs.map} +1 -1
- package/dist/{error-RwM4dD35.mjs → error-BQ1pxs0L.mjs} +2 -2
- package/dist/{error-RwM4dD35.mjs.map → error-BQ1pxs0L.mjs.map} +1 -1
- package/dist/{escape-Ds07EEyu.mjs → escape-BtbJWyaW.mjs} +1 -1
- package/dist/{escape-Ds07EEyu.mjs.map → escape-BtbJWyaW.mjs.map} +1 -1
- package/dist/{fts-manager-1RgHmopc.mjs → fts-manager-DtiWqwNJ.mjs} +2 -2
- package/dist/{fts-manager-1RgHmopc.mjs.map → fts-manager-DtiWqwNJ.mjs.map} +1 -1
- package/dist/{hash-9w3pd3-m.mjs → hash-BowcuPwv.mjs} +1 -1
- package/dist/{hash-9w3pd3-m.mjs.map → hash-BowcuPwv.mjs.map} +1 -1
- package/dist/{import-Dh8bWmyq.mjs → import-DqSGOlmR.mjs} +4 -4
- package/dist/{import-Dh8bWmyq.mjs.map → import-DqSGOlmR.mjs.map} +1 -1
- package/dist/{index-B1keaX5Y.d.mts → index-C2dLNT6S.d.mts} +169 -14
- package/dist/index-C2dLNT6S.d.mts.map +1 -0
- package/dist/{index-DR56od45.d.mts → index-ZDEwR7qW.d.mts} +3 -3
- package/dist/{index-DR56od45.d.mts.map → index-ZDEwR7qW.d.mts.map} +1 -1
- package/dist/index.d.mts +18 -17
- package/dist/index.mjs +63 -59
- package/dist/init-lock-6b309ZrF.mjs +56 -0
- package/dist/init-lock-6b309ZrF.mjs.map +1 -0
- package/dist/{load-BBetCvLC.mjs → load-Dtoo7KcJ.mjs} +2 -2
- package/dist/{load-BBetCvLC.mjs.map → load-Dtoo7KcJ.mjs.map} +1 -1
- package/dist/{loader-ZN1ll-d-.mjs → loader-C8Z48Uof.mjs} +4 -4
- package/dist/{loader-ZN1ll-d-.mjs.map → loader-C8Z48Uof.mjs.map} +1 -1
- package/dist/{manifest-schema-BtwbL_vj.mjs → manifest-schema-DDSbwkAL.mjs} +1 -1
- package/dist/{manifest-schema-BtwbL_vj.mjs.map → manifest-schema-DDSbwkAL.mjs.map} +1 -1
- package/dist/media/image-endpoint.d.mts +74 -0
- package/dist/media/image-endpoint.d.mts.map +1 -0
- package/dist/media/image-endpoint.mjs +162 -0
- package/dist/media/image-endpoint.mjs.map +1 -0
- package/dist/media/index.d.mts +1 -1
- package/dist/media/index.mjs +2 -2
- package/dist/media/local-runtime.d.mts +11 -11
- package/dist/media/local-runtime.mjs +9 -7
- package/dist/media/local-runtime.mjs.map +1 -1
- package/dist/{media-JOf3pNkw.mjs → media-Bw0sA6rb.mjs} +2 -2
- package/dist/{media-JOf3pNkw.mjs.map → media-Bw0sA6rb.mjs.map} +1 -1
- package/dist/{media-allowlist-Dknq-OFY.mjs → media-allowlist-DunzrKFM.mjs} +2 -2
- package/dist/{media-allowlist-Dknq-OFY.mjs.map → media-allowlist-DunzrKFM.mjs.map} +1 -1
- package/dist/{media-url-VClf8glU.mjs → media-url-S22B6aPr.mjs} +1 -1
- package/dist/{media-url-VClf8glU.mjs.map → media-url-S22B6aPr.mjs.map} +1 -1
- package/dist/{menus-DX4_E01q.mjs → menus-CYs0WZoL.mjs} +20 -6
- package/dist/menus-CYs0WZoL.mjs.map +1 -0
- package/dist/{menus-DrQLusqj.mjs → menus-DOs1MQJg.mjs} +120 -20
- package/dist/menus-DOs1MQJg.mjs.map +1 -0
- package/dist/{mime-CCEzze7W.mjs → mime-DYpsOAny.mjs} +1 -1
- package/dist/{mime-CCEzze7W.mjs.map → mime-DYpsOAny.mjs.map} +1 -1
- package/dist/{mode-CO2vQHfq.mjs → mode-CFh8Dw8G.mjs} +1 -1
- package/dist/{mode-CO2vQHfq.mjs.map → mode-CFh8Dw8G.mjs.map} +1 -1
- package/dist/{normalize-CK5o04zr.mjs → normalize-Uam4_Vkr.mjs} +1 -1
- package/dist/{normalize-CK5o04zr.mjs.map → normalize-Uam4_Vkr.mjs.map} +1 -1
- package/dist/{oauth-authorization-Bw4NdF_S.mjs → oauth-authorization-BN-t83Uy.mjs} +5 -5
- package/dist/{oauth-authorization-Bw4NdF_S.mjs.map → oauth-authorization-BN-t83Uy.mjs.map} +1 -1
- package/dist/{oauth-clients-BGGFp57s.mjs → oauth-clients-R6I_V0qz.mjs} +1 -1
- package/dist/{oauth-clients-BGGFp57s.mjs.map → oauth-clients-R6I_V0qz.mjs.map} +1 -1
- package/dist/{oauth-state-store-97x0xtN2.mjs → oauth-state-store-Csoc6kkR.mjs} +1 -1
- package/dist/{oauth-state-store-97x0xtN2.mjs.map → oauth-state-store-Csoc6kkR.mjs.map} +1 -1
- package/dist/{oauth-user-lookup-B_vnZHKO.mjs → oauth-user-lookup-d7VYjTpx.mjs} +1 -1
- package/dist/{oauth-user-lookup-B_vnZHKO.mjs.map → oauth-user-lookup-d7VYjTpx.mjs.map} +1 -1
- package/dist/object-cache/memory.d.mts +15 -0
- package/dist/object-cache/memory.d.mts.map +1 -0
- package/dist/object-cache/memory.mjs +56 -0
- package/dist/object-cache/memory.mjs.map +1 -0
- package/dist/object-cache-SEb2IM4Z.mjs +373 -0
- package/dist/object-cache-SEb2IM4Z.mjs.map +1 -0
- package/dist/{options-DyYIYpPd.d.mts → options-DFFpvNJU.d.mts} +3 -3
- package/dist/{options-DyYIYpPd.d.mts.map → options-DFFpvNJU.d.mts.map} +1 -1
- package/dist/{options-BPCVnesz.mjs → options-DTTML-Tx.mjs} +1 -1
- package/dist/{options-BPCVnesz.mjs.map → options-DTTML-Tx.mjs.map} +1 -1
- package/dist/page/index.d.mts +2 -2
- package/dist/{parse-CrGndy1A.mjs → parse-qrHlnzTy.mjs} +2 -2
- package/dist/{parse-CrGndy1A.mjs.map → parse-qrHlnzTy.mjs.map} +1 -1
- package/dist/{passkey-config-C3QgnQnU.mjs → passkey-config-BJTbcnI5.mjs} +1 -1
- package/dist/{passkey-config-C3QgnQnU.mjs.map → passkey-config-BJTbcnI5.mjs.map} +1 -1
- package/dist/{patterns-p-RBdTbM.mjs → patterns-BKmjvM7K.mjs} +1 -1
- package/dist/{patterns-p-RBdTbM.mjs.map → patterns-BKmjvM7K.mjs.map} +1 -1
- package/dist/{placeholder-BZxr8W1j.mjs → placeholder-CIDCpyEY.mjs} +1 -1
- package/dist/{placeholder-BZxr8W1j.mjs.map → placeholder-CIDCpyEY.mjs.map} +1 -1
- package/dist/{placeholder-CVBv5z8k.d.mts → placeholder-CirPauNG.d.mts} +1 -1
- package/dist/{placeholder-CVBv5z8k.d.mts.map → placeholder-CirPauNG.d.mts.map} +1 -1
- package/dist/plugin-types.d.mts +1 -1
- package/dist/plugin-utils.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.d.mts +9 -9
- package/dist/plugins/adapt-sandbox-entry.mjs +4 -2
- package/dist/plugins/adapt-sandbox-entry.mjs.map +1 -1
- package/dist/{transport-CmpLD7W3.mjs → portable-text-BIFhrU6T.mjs} +2 -135
- package/dist/portable-text-BIFhrU6T.mjs.map +1 -0
- package/dist/{preview-BfuRkVKW.mjs → preview-IDye9SPQ.mjs} +2 -2
- package/dist/{preview-BfuRkVKW.mjs.map → preview-IDye9SPQ.mjs.map} +1 -1
- package/dist/{public-url-BFVC2OTJ.mjs → public-url-8lFyQ8ZF.mjs} +1 -1
- package/dist/{public-url-BFVC2OTJ.mjs.map → public-url-8lFyQ8ZF.mjs.map} +1 -1
- package/dist/{query-CbUcI4Xk.mjs → query-B1RVFUNM.mjs} +159 -31
- package/dist/query-B1RVFUNM.mjs.map +1 -0
- package/dist/{rate-limit-C7hjdkS5.mjs → rate-limit-DfNAqIWW.mjs} +2 -2
- package/dist/{rate-limit-C7hjdkS5.mjs.map → rate-limit-DfNAqIWW.mjs.map} +1 -1
- package/dist/{redirect-B_q19j4v.mjs → redirect-B4wuX2A5.mjs} +1 -1
- package/dist/{redirect-B_q19j4v.mjs.map → redirect-B4wuX2A5.mjs.map} +1 -1
- package/dist/{redirect-CRWIt8Zj.mjs → redirect-Bifv_yHv.mjs} +3 -3
- package/dist/{redirect-CRWIt8Zj.mjs.map → redirect-Bifv_yHv.mjs.map} +1 -1
- package/dist/{redirects-DxVoR7PI.mjs → redirects-CT_vb3NV.mjs} +24 -18
- package/dist/redirects-CT_vb3NV.mjs.map +1 -0
- package/dist/{redirects-CCbCqCCd.mjs → redirects-DUvXgzCX.mjs} +14 -10
- package/dist/redirects-DUvXgzCX.mjs.map +1 -0
- package/dist/{registry-brYh-rAT.mjs → registry-CjK96fHD.mjs} +6 -6
- package/dist/{registry-brYh-rAT.mjs.map → registry-CjK96fHD.mjs.map} +1 -1
- package/dist/{request-cache-D32LpnmI.mjs → request-cache-KCNHp_RJ.mjs} +1 -1
- package/dist/{request-cache-D32LpnmI.mjs.map → request-cache-KCNHp_RJ.mjs.map} +1 -1
- package/dist/{request-meta-7ByVLxB-.mjs → request-meta-ei3ATilC.mjs} +2 -2
- package/dist/{request-meta-7ByVLxB-.mjs.map → request-meta-ei3ATilC.mjs.map} +1 -1
- package/dist/{resolve-BqYMVG0D.mjs → resolve-CpbBglV0.mjs} +1 -1
- package/dist/{resolve-BqYMVG0D.mjs.map → resolve-CpbBglV0.mjs.map} +1 -1
- package/dist/{runner--4wMWwKM.mjs → runner-DYYnW530.mjs} +201 -170
- package/dist/runner-DYYnW530.mjs.map +1 -0
- package/dist/{runner-DTdhuI9i.d.mts → runner-jdXtFEd3.d.mts} +2 -2
- package/dist/{runner-DTdhuI9i.d.mts.map → runner-jdXtFEd3.d.mts.map} +1 -1
- package/dist/runtime.d.mts +10 -10
- package/dist/runtime.mjs +3 -3
- package/dist/{schema-C1E70ug_.mjs → schema-5z2Jfnbm.mjs} +13 -8
- package/dist/schema-5z2Jfnbm.mjs.map +1 -0
- package/dist/{search-B3SGZw91.mjs → search-D9FkoM-k.mjs} +4 -4
- package/dist/{search-B3SGZw91.mjs.map → search-D9FkoM-k.mjs.map} +1 -1
- package/dist/{secrets-ChPTmy9x.mjs → secrets-BUE5UQys.mjs} +23 -13
- package/dist/secrets-BUE5UQys.mjs.map +1 -0
- package/dist/{sections-D_lVzwRZ.mjs → sections-DWYZo6HK.mjs} +3 -3
- package/dist/{sections-D_lVzwRZ.mjs.map → sections-DWYZo6HK.mjs.map} +1 -1
- package/dist/seed/index.d.mts +2 -2
- package/dist/seed/index.mjs +22 -20
- package/dist/seo/index.d.mts +1 -1
- package/dist/seo/index.mjs +1 -1
- package/dist/{seo-B5e6y9Wk.mjs → seo-Cu47j3mJ.mjs} +5 -2
- package/dist/seo-Cu47j3mJ.mjs.map +1 -0
- package/dist/{seo-D_LPkOtu.mjs → seo-DRnqnstF.mjs} +1 -1
- package/dist/{seo-D_LPkOtu.mjs.map → seo-DRnqnstF.mjs.map} +1 -1
- package/dist/{service-ChDcsTBs.mjs → service-DTmtqCnw.mjs} +3 -3
- package/dist/{service-ChDcsTBs.mjs.map → service-DTmtqCnw.mjs.map} +1 -1
- package/dist/session-user-DmtPMNa1.mjs +51 -0
- package/dist/session-user-DmtPMNa1.mjs.map +1 -0
- package/dist/{settings-Cv47v9u8.mjs → settings-DUrVDN0c.mjs} +3 -3
- package/dist/{settings-Cv47v9u8.mjs.map → settings-DUrVDN0c.mjs.map} +1 -1
- package/dist/settings-yaxu9mU-.mjs +245 -0
- package/dist/settings-yaxu9mU-.mjs.map +1 -0
- package/dist/{setup-complete-yvPE4OsP.mjs → setup-complete-BWFHzgvZ.mjs} +2 -2
- package/dist/{setup-complete-yvPE4OsP.mjs.map → setup-complete-BWFHzgvZ.mjs.map} +1 -1
- package/dist/{setup-nonce-C9aFzb94.mjs → setup-nonce-DFWG-J5c.mjs} +1 -1
- package/dist/{setup-nonce-C9aFzb94.mjs.map → setup-nonce-DFWG-J5c.mjs.map} +1 -1
- package/dist/single-flight-cache-B5p5cNOL.mjs +104 -0
- package/dist/single-flight-cache-B5p5cNOL.mjs.map +1 -0
- package/dist/{site-url-CnHlmAs9.mjs → site-url-BOTPgmeM.mjs} +2 -2
- package/dist/{site-url-CnHlmAs9.mjs.map → site-url-BOTPgmeM.mjs.map} +1 -1
- package/dist/{slugify-Cjh1ssOZ.mjs → slugify-Cce3dTdg.mjs} +1 -1
- package/dist/{slugify-Cjh1ssOZ.mjs.map → slugify-Cce3dTdg.mjs.map} +1 -1
- package/dist/{ssrf-BsVGIE0Z.mjs → ssrf-B0VeRLrp.mjs} +1 -1
- package/dist/{ssrf-BsVGIE0Z.mjs.map → ssrf-B0VeRLrp.mjs.map} +1 -1
- package/dist/status-CB2basWJ.mjs +30 -0
- package/dist/status-CB2basWJ.mjs.map +1 -0
- package/dist/storage/local.d.mts +1 -1
- package/dist/storage/local.mjs +2 -2
- package/dist/storage/s3.d.mts +1 -1
- package/dist/storage/s3.mjs +1 -1
- package/dist/{taxonomies-BdAmbOwx.mjs → taxonomies-Be9B1jEj.mjs} +156 -122
- package/dist/taxonomies-Be9B1jEj.mjs.map +1 -0
- package/dist/{taxonomies-BILwiyGk.mjs → taxonomies-CJmkEpdS.mjs} +7 -7
- package/dist/{taxonomies-BILwiyGk.mjs.map → taxonomies-CJmkEpdS.mjs.map} +1 -1
- package/dist/{taxonomy-CdllE4oq.mjs → taxonomy-B2HQuVf5.mjs} +19 -6
- package/dist/taxonomy-B2HQuVf5.mjs.map +1 -0
- package/dist/{tokens-Bx2afeT-.mjs → tokens-BvrJvIB6.mjs} +2 -2
- package/dist/{tokens-Bx2afeT-.mjs.map → tokens-BvrJvIB6.mjs.map} +1 -1
- package/dist/{transaction-x2tJQ-A1.mjs → transaction-qfqpPVpu.mjs} +1 -1
- package/dist/{transaction-x2tJQ-A1.mjs.map → transaction-qfqpPVpu.mjs.map} +1 -1
- package/dist/transport-B4rXnSTf.mjs +135 -0
- package/dist/transport-B4rXnSTf.mjs.map +1 -0
- package/dist/{transport-B7PPP2CC.d.mts → transport-k7YjfmEn.d.mts} +1 -1
- package/dist/{transport-B7PPP2CC.d.mts.map → transport-k7YjfmEn.d.mts.map} +1 -1
- package/dist/{trusted-proxy-B4AfnoAp.mjs → trusted-proxy-DY1_UqHr.mjs} +1 -1
- package/dist/{trusted-proxy-B4AfnoAp.mjs.map → trusted-proxy-DY1_UqHr.mjs.map} +1 -1
- package/dist/{types-CPAPl93j.d.mts → types-CIKX2HO5.d.mts} +2 -2
- package/dist/{types-CPAPl93j.d.mts.map → types-CIKX2HO5.d.mts.map} +1 -1
- package/dist/{types-D4kUqbHh.d.mts → types-CKNXt63n.d.mts} +1 -1
- package/dist/{types-D4kUqbHh.d.mts.map → types-CKNXt63n.d.mts.map} +1 -1
- package/dist/{types-DTniiNto.d.mts → types-CWGYDYqF.d.mts} +2 -2
- package/dist/{types-DTniiNto.d.mts.map → types-CWGYDYqF.d.mts.map} +1 -1
- package/dist/{types-BH8-30hc.d.mts → types-CgvhU-hF.d.mts} +1 -1
- package/dist/{types-BH8-30hc.d.mts.map → types-CgvhU-hF.d.mts.map} +1 -1
- package/dist/{types-BFgrqwSk.d.mts → types-CmivgZbp.d.mts} +1 -1
- package/dist/{types-BFgrqwSk.d.mts.map → types-CmivgZbp.d.mts.map} +1 -1
- package/dist/{types-BPzXTV9x.d.mts → types-Czg1S3gB.d.mts} +9 -1
- package/dist/{types-BPzXTV9x.d.mts.map → types-Czg1S3gB.d.mts.map} +1 -1
- package/dist/types-DCNNfeCv.d.mts +124 -0
- package/dist/types-DCNNfeCv.d.mts.map +1 -0
- package/dist/{types-BUUVn1zr.d.mts → types-DPCpkzvS.d.mts} +1 -1
- package/dist/{types-BUUVn1zr.d.mts.map → types-DPCpkzvS.d.mts.map} +1 -1
- package/dist/{types-S15DXXNi.d.mts → types-DXLVzV2w.d.mts} +1 -1
- package/dist/{types-S15DXXNi.d.mts.map → types-DXLVzV2w.d.mts.map} +1 -1
- package/dist/{types-BXSUSAjt.mjs → types-DXOIbece.mjs} +3 -3
- package/dist/{types-BXSUSAjt.mjs.map → types-DXOIbece.mjs.map} +1 -1
- package/dist/{types-DpFmlNyB.mjs → types-DYF2_Vf4.mjs} +1 -1
- package/dist/{types-DpFmlNyB.mjs.map → types-DYF2_Vf4.mjs.map} +1 -1
- package/dist/{types-DZk_y-MU.mjs → types-tM44hEcf.mjs} +1 -1
- package/dist/{types-DZk_y-MU.mjs.map → types-tM44hEcf.mjs.map} +1 -1
- package/dist/{user-C0um7wrg.mjs → user-Db-Rti_z.mjs} +3 -3
- package/dist/{user-C0um7wrg.mjs.map → user-Db-Rti_z.mjs.map} +1 -1
- package/dist/{utils-C4Ih4DML.mjs → utils-LbHcSRTj.mjs} +2 -2
- package/dist/{utils-C4Ih4DML.mjs.map → utils-LbHcSRTj.mjs.map} +1 -1
- package/dist/{validate-Bz4vqcX1.mjs → validate-Bwl64sxv.mjs} +3 -3
- package/dist/{validate-Bz4vqcX1.mjs.map → validate-Bwl64sxv.mjs.map} +1 -1
- package/dist/{validate-CNwkPWzz.d.mts → validate-CE2M0nvx.d.mts} +5 -5
- package/dist/{validate-CNwkPWzz.d.mts.map → validate-CE2M0nvx.d.mts.map} +1 -1
- package/dist/{validation-DgGTJm3u.mjs → validation-C_yOvFaO.mjs} +6 -6
- package/dist/{validation-DgGTJm3u.mjs.map → validation-C_yOvFaO.mjs.map} +1 -1
- package/dist/version-RnYXYjzD.mjs +7 -0
- package/dist/{version-D-5txk2m.mjs.map → version-RnYXYjzD.mjs.map} +1 -1
- package/dist/{widgets-DZfmAbE4.mjs → widgets-8GONuRHo.mjs} +4 -4
- package/dist/{widgets-DZfmAbE4.mjs.map → widgets-8GONuRHo.mjs.map} +1 -1
- package/dist/{zod-generator-Djo_VHCt.mjs → zod-generator-D481JjzD.mjs} +3 -3
- package/dist/{zod-generator-Djo_VHCt.mjs.map → zod-generator-D481JjzD.mjs.map} +1 -1
- package/package.json +18 -6
- package/src/api/handlers/api-tokens.ts +19 -0
- package/src/api/handlers/comment-reactions.ts +165 -0
- package/src/api/handlers/redirects.ts +24 -13
- package/src/api/handlers/schema.ts +8 -0
- package/src/api/schemas/comments.ts +10 -0
- package/src/api/schemas/redirects.ts +11 -4
- package/src/astro/image-endpoint.ts +84 -0
- package/src/astro/index.ts +6 -0
- package/src/astro/integration/index.ts +127 -30
- package/src/astro/integration/routes.ts +51 -9
- package/src/astro/integration/runtime.ts +65 -1
- package/src/astro/integration/virtual-modules.ts +32 -0
- package/src/astro/integration/vite-config.ts +16 -0
- package/src/astro/middleware/auth.ts +4 -3
- package/src/astro/middleware/redirect.ts +12 -0
- package/src/astro/middleware/stream-end-metrics.ts +11 -1
- package/src/astro/middleware.ts +41 -3
- package/src/astro/object-cache/adapters.ts +50 -0
- package/src/astro/prefetch.ts +77 -0
- package/src/astro/routes/api/comments/[collection]/[contentId]/reactions.ts +97 -0
- package/src/astro/routes/api/setup/dev-bypass.ts +5 -1
- package/src/astro/routes/api/snapshot.ts +3 -1
- package/src/astro/session-user.ts +57 -0
- package/src/astro/types.ts +1 -0
- package/src/bylines/field-defs-cache.ts +70 -20
- package/src/cli/commands/doctor.ts +1 -1
- package/src/comments/query.ts +78 -7
- package/src/comments/ranking.ts +58 -0
- package/src/components/Comments.astro +136 -1
- package/src/config/secrets.ts +28 -14
- package/src/database/instrumentation.ts +21 -1
- package/src/database/migrations/044_comment_reactions.ts +56 -0
- package/src/database/migrations/runner.ts +2 -0
- package/src/database/repositories/byline.ts +13 -0
- package/src/database/repositories/comment-reaction.ts +132 -0
- package/src/database/repositories/comment.ts +10 -0
- package/src/database/repositories/content.ts +25 -3
- package/src/database/repositories/menu.ts +13 -1
- package/src/database/repositories/seo.ts +3 -0
- package/src/database/repositories/taxonomy.ts +13 -1
- package/src/database/types.ts +9 -0
- package/src/emdash-runtime.ts +23 -9
- package/src/index.ts +22 -0
- package/src/mcp/server.ts +307 -20
- package/src/media/image-endpoint.ts +167 -0
- package/src/menus/index.ts +11 -4
- package/src/object-cache/codec.ts +73 -0
- package/src/object-cache/index.ts +495 -0
- package/src/object-cache/memory.ts +91 -0
- package/src/object-cache/types.ts +124 -0
- package/src/plugins/adapt-sandbox-entry.ts +11 -1
- package/src/query.ts +196 -17
- package/src/redirects/status.ts +27 -0
- package/src/schema/query.ts +11 -4
- package/src/settings/index.ts +30 -17
- package/src/taxonomies/index.ts +237 -165
- package/src/utils/{isolate-cache.ts → single-flight-cache.ts} +26 -21
- package/src/virtual-modules.d.ts +11 -0
- package/dist/api-DStv36ik.mjs.map +0 -1
- package/dist/api-tokens-DPfhPu5V.mjs.map +0 -1
- package/dist/byline-DUx48sJp.mjs.map +0 -1
- package/dist/byline-fields-DbibsvTl.d.mts.map +0 -1
- package/dist/comment-sqQxNpN3.mjs.map +0 -1
- package/dist/content-BIlVx-RX.mjs.map +0 -1
- package/dist/index-B1keaX5Y.d.mts.map +0 -1
- package/dist/menus-DX4_E01q.mjs.map +0 -1
- package/dist/menus-DrQLusqj.mjs.map +0 -1
- package/dist/query-CbUcI4Xk.mjs.map +0 -1
- package/dist/redirects-CCbCqCCd.mjs.map +0 -1
- package/dist/redirects-DxVoR7PI.mjs.map +0 -1
- package/dist/runner--4wMWwKM.mjs.map +0 -1
- package/dist/schema-C1E70ug_.mjs.map +0 -1
- package/dist/secrets-ChPTmy9x.mjs.map +0 -1
- package/dist/seo-B5e6y9Wk.mjs.map +0 -1
- package/dist/settings-DfxiWY_s.mjs +0 -411
- package/dist/settings-DfxiWY_s.mjs.map +0 -1
- package/dist/taxonomies-BdAmbOwx.mjs.map +0 -1
- package/dist/taxonomy-CdllE4oq.mjs.map +0 -1
- package/dist/transport-CmpLD7W3.mjs.map +0 -1
- package/dist/version-D-5txk2m.mjs +0 -7
- /package/dist/{api-tokens-Oq39ba-Z.mjs → api-tokens-BVH-H8Z9.mjs} +0 -0
- /package/dist/{ssrf-BvgVcfNQ.mjs → ssrf-Cz1e2QPn.mjs} +0 -0
- /package/dist/{types-CZI4E3qG.mjs → types-Bfr2Pj6z.mjs} +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object-cache serialization codec.
|
|
3
|
+
*
|
|
4
|
+
* Cached values are JSON, with one extension: `Date` instances are preserved
|
|
5
|
+
* across the round-trip. EmDash content entries carry `Date` objects for the
|
|
6
|
+
* system timestamp columns (`createdAt`, `updatedAt`, `publishedAt`,
|
|
7
|
+
* `scheduledAt`) and on `cacheHint.lastModified`; plain `JSON.stringify` would
|
|
8
|
+
* silently flatten those to ISO strings, so a value read from cache would no
|
|
9
|
+
* longer be `=== instanceof Date` and downstream `value instanceof Date`
|
|
10
|
+
* branches (cursor encoding, scheduled-visibility checks) would diverge from a
|
|
11
|
+
* fresh database read.
|
|
12
|
+
*
|
|
13
|
+
* Functions and symbol-keyed properties are NOT preserved — callers that cache
|
|
14
|
+
* values carrying either (e.g. content entries with their `.edit` proxy and
|
|
15
|
+
* the non-enumerable `CURSOR_RAW_VALUES` symbol) must reduce to a serializable
|
|
16
|
+
* snapshot before caching and rebuild the non-serializable parts on read. See
|
|
17
|
+
* `query.ts` content snapshot helpers.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/** Tag used to mark a serialized `Date`. Deliberately unlikely to collide. */
|
|
21
|
+
const DATE_TAG = "$$emdashDate";
|
|
22
|
+
|
|
23
|
+
interface TaggedDate {
|
|
24
|
+
[DATE_TAG]: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function isTaggedDate(value: unknown): value is TaggedDate {
|
|
28
|
+
if (typeof value !== "object" || value === null) return false;
|
|
29
|
+
// encode() always emits the tag as the object's *only* key, so requiring
|
|
30
|
+
// exactly one key keeps a user object that merely happens to carry a
|
|
31
|
+
// `$$emdashDate` string alongside other fields from being collapsed to a
|
|
32
|
+
// Date (which would silently drop those other fields).
|
|
33
|
+
const keys = Object.keys(value);
|
|
34
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- narrowing a JSON-parsed value to read the date tag
|
|
35
|
+
return keys.length === 1 && typeof (value as Record<string, unknown>)[DATE_TAG] === "string";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Serialize a value to a cache string, preserving `Date` instances.
|
|
40
|
+
*
|
|
41
|
+
* Uses the JSON replacer's `this` binding to inspect the *original* property
|
|
42
|
+
* value: `JSON.stringify` invokes `Date.prototype.toJSON` before the replacer
|
|
43
|
+
* sees it, so by the time `value` arrives it is already an ISO string. Reading
|
|
44
|
+
* `this[key]` recovers the live `Date` so we can tag it.
|
|
45
|
+
*/
|
|
46
|
+
export function encode(value: unknown): string {
|
|
47
|
+
return JSON.stringify(value, function (this: Record<string, unknown>, key, val) {
|
|
48
|
+
const original = this[key];
|
|
49
|
+
if (original instanceof Date) {
|
|
50
|
+
return { [DATE_TAG]: original.toISOString() } satisfies TaggedDate;
|
|
51
|
+
}
|
|
52
|
+
return val;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Parse a cache string produced by {@link encode}, rehydrating tagged `Date`s.
|
|
58
|
+
*
|
|
59
|
+
* Returns `undefined` if the input is not valid JSON (treated as a cache miss
|
|
60
|
+
* by the read-through layer rather than throwing).
|
|
61
|
+
*/
|
|
62
|
+
export function decode(raw: string): unknown {
|
|
63
|
+
try {
|
|
64
|
+
return JSON.parse(raw, (_key, value) => {
|
|
65
|
+
if (isTaggedDate(value)) {
|
|
66
|
+
return new Date(value[DATE_TAG]);
|
|
67
|
+
}
|
|
68
|
+
return value;
|
|
69
|
+
});
|
|
70
|
+
} catch {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object cache — distributed read-through query cache.
|
|
3
|
+
*
|
|
4
|
+
* Layering (per query):
|
|
5
|
+
*
|
|
6
|
+
* requestCached → in-request dedupe (per render, WeakMap on ALS context)
|
|
7
|
+
* cachedQuery → THIS layer: distributed L2 (KV / memory), epoch-keyed
|
|
8
|
+
* database → source of truth
|
|
9
|
+
*
|
|
10
|
+
* Optional and off by default: when no `objectCache` descriptor is configured,
|
|
11
|
+
* `virtual:emdash/object-cache` exports `createObjectCache = undefined`,
|
|
12
|
+
* {@link getBackend} resolves to `null`, and {@link cachedQuery} is a
|
|
13
|
+
* transparent passthrough to its `load` function. Configure with
|
|
14
|
+
* `memoryCache()` (Node) or `kvCache()` from `@emdash-cms/cloudflare`.
|
|
15
|
+
*
|
|
16
|
+
* Invalidation is epoch-based: each cache key embeds a per-namespace epoch
|
|
17
|
+
* ("last changed" marker) read from the backend. A write calls
|
|
18
|
+
* {@link invalidateObjectCache}, which stamps the namespace epoch to
|
|
19
|
+
* `Date.now()`; every previously-stored key for that namespace is instantly
|
|
20
|
+
* orphaned and reclaimed by its TTL. This is O(1) and needs no key
|
|
21
|
+
* enumeration (KV has no prefix delete).
|
|
22
|
+
*
|
|
23
|
+
* The singleton backend/config and the per-isolate epoch cache live on
|
|
24
|
+
* `globalThis` behind `Symbol.for` keys so Vite SSR chunk duplication can't
|
|
25
|
+
* fork them (same pattern as `request-context.ts`).
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
import { after } from "../after.js";
|
|
29
|
+
import { getRequestContext } from "../request-context.js";
|
|
30
|
+
import { decode, encode } from "./codec.js";
|
|
31
|
+
import type {
|
|
32
|
+
CreateObjectCacheBackendFn,
|
|
33
|
+
ObjectCacheBackend,
|
|
34
|
+
ObjectCacheRuntimeConfig,
|
|
35
|
+
} from "./types.js";
|
|
36
|
+
|
|
37
|
+
const DEFAULT_KEY_PREFIX = "em";
|
|
38
|
+
const DEFAULT_TTL_SECONDS = 3600;
|
|
39
|
+
const DEFAULT_REVALIDATE_MS = 1000;
|
|
40
|
+
const DEFAULT_TIMEOUT_MS = 2000;
|
|
41
|
+
|
|
42
|
+
interface BackendHolder {
|
|
43
|
+
/** Whether the virtual module has been loaded and the backend resolved. */
|
|
44
|
+
initialized: boolean;
|
|
45
|
+
/** Resolved backend, or `null` when no object cache is configured. */
|
|
46
|
+
backend: ObjectCacheBackend | null;
|
|
47
|
+
/** In-flight initialization promise (dedupes concurrent first calls). */
|
|
48
|
+
initPromise: Promise<ObjectCacheBackend | null> | null;
|
|
49
|
+
config: Required<Pick<ObjectCacheRuntimeConfig, "keyPrefix">> & {
|
|
50
|
+
defaultTtl: number;
|
|
51
|
+
revalidate: number;
|
|
52
|
+
timeout: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Race a backend operation against a timeout so a stalled call (e.g. a KV read
|
|
58
|
+
* that never resolves *and* never rejects — a cold cross-region read, or one
|
|
59
|
+
* queued behind the Workers simultaneous-connection limit) degrades to a
|
|
60
|
+
* rejection instead of hanging the isolate. A rejection is benign: callers
|
|
61
|
+
* already treat a failed read as a cache miss / last-known epoch.
|
|
62
|
+
*/
|
|
63
|
+
function withTimeout<T>(promise: Promise<T>, ms: number, label: string): Promise<T> {
|
|
64
|
+
if (!(ms > 0)) return promise;
|
|
65
|
+
let timer: ReturnType<typeof setTimeout>;
|
|
66
|
+
const timeout = new Promise<never>((_resolve, reject) => {
|
|
67
|
+
timer = setTimeout(() => {
|
|
68
|
+
reject(new Error(`object-cache ${label} timed out after ${ms}ms`));
|
|
69
|
+
}, ms);
|
|
70
|
+
});
|
|
71
|
+
return Promise.race([promise, timeout]).finally(() => clearTimeout(timer));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface EpochEntry {
|
|
75
|
+
value: number;
|
|
76
|
+
/** `Date.now()` at which this epoch was read from the backend. */
|
|
77
|
+
at: number;
|
|
78
|
+
/** In-flight read, so concurrent callers share one backend round-trip. */
|
|
79
|
+
promise?: Promise<number>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const BACKEND_KEY = Symbol.for("emdash:object-cache:backend");
|
|
83
|
+
const EPOCH_KEY = Symbol.for("emdash:object-cache:epochs");
|
|
84
|
+
const PENDING_KEY = Symbol.for("emdash:object-cache:pending-bumps");
|
|
85
|
+
const g = globalThis as Record<symbol, unknown>;
|
|
86
|
+
|
|
87
|
+
const holder: BackendHolder =
|
|
88
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- globalThis singleton pattern (see request-context.ts)
|
|
89
|
+
(g[BACKEND_KEY] as BackendHolder | undefined) ??
|
|
90
|
+
(() => {
|
|
91
|
+
const h: BackendHolder = {
|
|
92
|
+
initialized: false,
|
|
93
|
+
backend: null,
|
|
94
|
+
initPromise: null,
|
|
95
|
+
config: {
|
|
96
|
+
keyPrefix: DEFAULT_KEY_PREFIX,
|
|
97
|
+
defaultTtl: DEFAULT_TTL_SECONDS,
|
|
98
|
+
revalidate: DEFAULT_REVALIDATE_MS,
|
|
99
|
+
timeout: DEFAULT_TIMEOUT_MS,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
g[BACKEND_KEY] = h;
|
|
103
|
+
return h;
|
|
104
|
+
})();
|
|
105
|
+
|
|
106
|
+
const epochCache: Map<string, EpochEntry> =
|
|
107
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- globalThis singleton pattern (see request-context.ts)
|
|
108
|
+
(g[EPOCH_KEY] as Map<string, EpochEntry> | undefined) ??
|
|
109
|
+
(() => {
|
|
110
|
+
const m = new Map<string, EpochEntry>();
|
|
111
|
+
g[EPOCH_KEY] = m;
|
|
112
|
+
return m;
|
|
113
|
+
})();
|
|
114
|
+
|
|
115
|
+
/** Namespaces with a backend epoch write already scheduled this tick. */
|
|
116
|
+
const pendingBumps: Set<string> =
|
|
117
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- globalThis singleton pattern (see request-context.ts)
|
|
118
|
+
(g[PENDING_KEY] as Set<string> | undefined) ??
|
|
119
|
+
(() => {
|
|
120
|
+
const s = new Set<string>();
|
|
121
|
+
g[PENDING_KEY] = s;
|
|
122
|
+
return s;
|
|
123
|
+
})();
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Resolve (once per isolate) the configured object-cache backend.
|
|
127
|
+
*
|
|
128
|
+
* Loads `virtual:emdash/object-cache`, which exports `createObjectCache`
|
|
129
|
+
* (`undefined` when no cache is configured) and the serialized
|
|
130
|
+
* `objectCacheConfig`. Returns `null` when the cache is disabled.
|
|
131
|
+
*/
|
|
132
|
+
async function getBackend(): Promise<ObjectCacheBackend | null> {
|
|
133
|
+
if (holder.initialized) return holder.backend;
|
|
134
|
+
if (holder.initPromise) return holder.initPromise;
|
|
135
|
+
|
|
136
|
+
holder.initPromise = (async () => {
|
|
137
|
+
try {
|
|
138
|
+
const mod: {
|
|
139
|
+
createObjectCache?: CreateObjectCacheBackendFn;
|
|
140
|
+
objectCacheConfig?: ObjectCacheRuntimeConfig;
|
|
141
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
142
|
+
// @ts-ignore - virtual module
|
|
143
|
+
} = await import("virtual:emdash/object-cache");
|
|
144
|
+
|
|
145
|
+
const config = mod.objectCacheConfig ?? {};
|
|
146
|
+
holder.config = {
|
|
147
|
+
keyPrefix:
|
|
148
|
+
typeof config.keyPrefix === "string" && config.keyPrefix.length > 0
|
|
149
|
+
? config.keyPrefix
|
|
150
|
+
: DEFAULT_KEY_PREFIX,
|
|
151
|
+
defaultTtl:
|
|
152
|
+
typeof config.defaultTtl === "number" && config.defaultTtl > 0
|
|
153
|
+
? config.defaultTtl
|
|
154
|
+
: DEFAULT_TTL_SECONDS,
|
|
155
|
+
revalidate:
|
|
156
|
+
typeof config.revalidate === "number" && config.revalidate >= 0
|
|
157
|
+
? config.revalidate
|
|
158
|
+
: DEFAULT_REVALIDATE_MS,
|
|
159
|
+
timeout:
|
|
160
|
+
typeof config.timeout === "number" && config.timeout >= 0
|
|
161
|
+
? config.timeout
|
|
162
|
+
: DEFAULT_TIMEOUT_MS,
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
holder.backend =
|
|
166
|
+
typeof mod.createObjectCache === "function" ? mod.createObjectCache(config) : null;
|
|
167
|
+
} catch (error) {
|
|
168
|
+
// Importing the virtual module fails outside an Astro/Vite context
|
|
169
|
+
// (e.g. unit tests, CLI). Treat as "no cache configured".
|
|
170
|
+
if (import.meta.env.DEV) {
|
|
171
|
+
console.warn("[object-cache] backend unavailable:", error);
|
|
172
|
+
}
|
|
173
|
+
holder.backend = null;
|
|
174
|
+
}
|
|
175
|
+
holder.initialized = true;
|
|
176
|
+
holder.initPromise = null;
|
|
177
|
+
return holder.backend;
|
|
178
|
+
})();
|
|
179
|
+
|
|
180
|
+
return holder.initPromise;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Test-only override of the backend, bypassing the virtual module.
|
|
185
|
+
*
|
|
186
|
+
* Lets unit tests inject an in-memory backend (and optional config) without a
|
|
187
|
+
* full Astro/Vite build. Pass `null` to simulate "no cache configured".
|
|
188
|
+
*
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
export function __setObjectCacheBackendForTests(
|
|
192
|
+
backend: ObjectCacheBackend | null,
|
|
193
|
+
config?: Partial<BackendHolder["config"]>,
|
|
194
|
+
): void {
|
|
195
|
+
holder.initialized = true;
|
|
196
|
+
holder.initPromise = null;
|
|
197
|
+
holder.backend = backend;
|
|
198
|
+
holder.config = { ...holder.config, ...config };
|
|
199
|
+
epochCache.clear();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Build the backend key for a namespace's epoch anchor. */
|
|
203
|
+
function epochKey(namespace: string): string {
|
|
204
|
+
return `${holder.config.keyPrefix}:epoch:${namespace}`;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Build the (epoch-independent) backend key for a cached value.
|
|
209
|
+
*
|
|
210
|
+
* The key is stable across invalidations — the namespace epochs are stored
|
|
211
|
+
* *inside* the value envelope and validated on read, not baked into the key.
|
|
212
|
+
* This lets the value and the epochs be fetched in one parallel round-trip
|
|
213
|
+
* (instead of "read epoch, then read value"), and means an invalidated value
|
|
214
|
+
* is overwritten in place rather than orphaned under a dead epoch-keyed name.
|
|
215
|
+
*/
|
|
216
|
+
function valueKey(namespaces: readonly string[], key: string): string {
|
|
217
|
+
return `${holder.config.keyPrefix}:${namespaces.join(",")}:${key}`;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Stored cache envelope: the namespace epochs captured at write time alongside
|
|
222
|
+
* the cached value. A read is a HIT only when every stored epoch still matches
|
|
223
|
+
* the current epoch for its namespace.
|
|
224
|
+
*/
|
|
225
|
+
interface CacheEnvelope<T> {
|
|
226
|
+
/** Epoch per namespace, in the query's namespace order. */
|
|
227
|
+
e: number[];
|
|
228
|
+
/** The cached value. */
|
|
229
|
+
v: T;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function epochsMatch(stored: readonly number[], current: readonly number[]): boolean {
|
|
233
|
+
if (stored.length !== current.length) return false;
|
|
234
|
+
for (let i = 0; i < stored.length; i++) {
|
|
235
|
+
if (stored[i] !== current[i]) return false;
|
|
236
|
+
}
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Requests that must always read live data and never populate the cache:
|
|
242
|
+
* visual edit mode, preview tokens, and isolated databases (playground / DO
|
|
243
|
+
* preview, whose schema and content diverge from the configured site).
|
|
244
|
+
*/
|
|
245
|
+
function shouldBypass(): boolean {
|
|
246
|
+
const ctx = getRequestContext();
|
|
247
|
+
if (!ctx) return false;
|
|
248
|
+
return ctx.editMode === true || ctx.preview !== undefined || ctx.dbIsIsolated === true;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Read the current epoch for `namespace`, reusing an isolate-cached value for
|
|
253
|
+
* up to `revalidate` ms. A missing epoch (never bumped) is treated as `0`.
|
|
254
|
+
*
|
|
255
|
+
* Backend errors and stalls are non-fatal: the read is bounded by a timeout,
|
|
256
|
+
* and on failure we fall back to the last known epoch (or `0`), so a flaky or
|
|
257
|
+
* hung cache degrades to "serve whatever's keyed" rather than throwing or
|
|
258
|
+
* hanging.
|
|
259
|
+
*/
|
|
260
|
+
async function getEpoch(namespace: string, backend: ObjectCacheBackend): Promise<number> {
|
|
261
|
+
const now = Date.now();
|
|
262
|
+
const cached = epochCache.get(namespace);
|
|
263
|
+
if (cached && now - cached.at < holder.config.revalidate) {
|
|
264
|
+
return cached.value;
|
|
265
|
+
}
|
|
266
|
+
if (cached?.promise) return cached.promise;
|
|
267
|
+
|
|
268
|
+
const promise = (async () => {
|
|
269
|
+
let value: number;
|
|
270
|
+
try {
|
|
271
|
+
const raw = await withTimeout(
|
|
272
|
+
backend.get(epochKey(namespace)),
|
|
273
|
+
holder.config.timeout,
|
|
274
|
+
"epoch read",
|
|
275
|
+
);
|
|
276
|
+
const parsed = raw === null ? 0 : Number(raw);
|
|
277
|
+
value = Number.isFinite(parsed) ? parsed : 0;
|
|
278
|
+
} catch {
|
|
279
|
+
value = cached?.value ?? 0;
|
|
280
|
+
}
|
|
281
|
+
// A concurrent invalidateObjectCache may have bumped the epoch while this
|
|
282
|
+
// read was in flight. Epochs are monotonic, so never let a stale backend
|
|
283
|
+
// read lower a freshly-bumped local epoch — that would resurrect the very
|
|
284
|
+
// values the bump just invalidated.
|
|
285
|
+
const merged = Math.max(value, epochCache.get(namespace)?.value ?? 0);
|
|
286
|
+
epochCache.set(namespace, { value: merged, at: Date.now() });
|
|
287
|
+
return merged;
|
|
288
|
+
})();
|
|
289
|
+
|
|
290
|
+
// Concurrent callers share this in-flight read (dedup). The timeout above
|
|
291
|
+
// guarantees `promise` settles — its success/catch handler then replaces
|
|
292
|
+
// this entry with a fresh, promise-free one — so a stalled backend can no
|
|
293
|
+
// longer pin the namespace to a never-settling promise (the bug that
|
|
294
|
+
// poisoned an isolate until it was recycled).
|
|
295
|
+
epochCache.set(namespace, { value: cached?.value ?? 0, at: cached?.at ?? 0, promise });
|
|
296
|
+
return promise;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/** Options for {@link cachedQuery}. */
|
|
300
|
+
export interface CachedQueryOptions<T> {
|
|
301
|
+
/**
|
|
302
|
+
* Invalidation namespace(s). A single string for self-contained data
|
|
303
|
+
* (`settings`, `menus`), or several when the cached value depends on data
|
|
304
|
+
* owned by other namespaces — e.g. a content entry hydrates bylines and
|
|
305
|
+
* taxonomy terms, so it caches under
|
|
306
|
+
* `[content:posts, "bylines", "taxonomies"]` and is invalidated when *any*
|
|
307
|
+
* of them is bumped. Every namespace's epoch is folded into the key.
|
|
308
|
+
*/
|
|
309
|
+
namespace: string | readonly string[];
|
|
310
|
+
/** Stable, fully-qualifying cache key *within* the namespace. */
|
|
311
|
+
key: string;
|
|
312
|
+
/** Loader run on a miss (or when caching is disabled/bypassed). */
|
|
313
|
+
load: () => Promise<T>;
|
|
314
|
+
/** TTL override in seconds. Falls back to the configured `defaultTtl`. */
|
|
315
|
+
ttl?: number;
|
|
316
|
+
/**
|
|
317
|
+
* Predicate gating whether a freshly-loaded value is stored. Defaults to
|
|
318
|
+
* always-cache. Use it to skip caching error/empty sentinels.
|
|
319
|
+
*/
|
|
320
|
+
cacheable?: (value: T) => boolean;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Distributed read-through cache around `load`.
|
|
325
|
+
*
|
|
326
|
+
* `T` must be the value as it should be *stored* — i.e. JSON-serializable with
|
|
327
|
+
* the codec's `Date` support, carrying no functions or symbol-keyed props.
|
|
328
|
+
* Callers caching richer objects (content entries) reduce to a serializable
|
|
329
|
+
* snapshot here and rebuild on the way out; see `query.ts`.
|
|
330
|
+
*
|
|
331
|
+
* On a miss or when the cache is disabled/bypassed, this is equivalent to
|
|
332
|
+
* `await load()`. Backend errors never propagate: a failing `get` is a miss, a
|
|
333
|
+
* failing `set` is dropped.
|
|
334
|
+
*/
|
|
335
|
+
export async function cachedQuery<T>(options: CachedQueryOptions<T>): Promise<T> {
|
|
336
|
+
const backend = await getBackend();
|
|
337
|
+
if (!backend || shouldBypass()) {
|
|
338
|
+
return options.load();
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
const namespaces =
|
|
342
|
+
typeof options.namespace === "string" ? [options.namespace] : options.namespace;
|
|
343
|
+
const fullKey = valueKey(namespaces, options.key);
|
|
344
|
+
|
|
345
|
+
// Kick off the value read and every namespace epoch read concurrently — one
|
|
346
|
+
// round-trip instead of "read epochs, then read value". getEpoch never
|
|
347
|
+
// rejects, so awaiting the epochs separately from the value read guarantees
|
|
348
|
+
// we hold the pre-load epochs even when the value read errors or times out.
|
|
349
|
+
// Storing a value under an epoch read *after* load() would mask a write that
|
|
350
|
+
// landed during load(): the stale value would match and be served as a HIT.
|
|
351
|
+
const epochsPromise = Promise.all(namespaces.map((ns) => getEpoch(ns, backend)));
|
|
352
|
+
const rawPromise = withTimeout(backend.get(fullKey), holder.config.timeout, "read").catch(
|
|
353
|
+
() => null,
|
|
354
|
+
);
|
|
355
|
+
const currentEpochs = await epochsPromise;
|
|
356
|
+
const raw = await rawPromise;
|
|
357
|
+
if (raw !== null) {
|
|
358
|
+
const decoded = decode(raw);
|
|
359
|
+
if (decoded !== undefined) {
|
|
360
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- value envelope written by this function
|
|
361
|
+
const envelope = decoded as CacheEnvelope<T>;
|
|
362
|
+
if (epochsMatch(envelope.e, currentEpochs)) {
|
|
363
|
+
return envelope.v;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const value = await options.load();
|
|
369
|
+
|
|
370
|
+
const cacheable = options.cacheable ? options.cacheable(value) : true;
|
|
371
|
+
if (cacheable) {
|
|
372
|
+
const ttl = options.ttl ?? holder.config.defaultTtl;
|
|
373
|
+
// Defer the write so it never adds to TTFB. The epochs were captured
|
|
374
|
+
// before load() ran, so a write that invalidated this namespace mid-load
|
|
375
|
+
// correctly orphans the value stored here.
|
|
376
|
+
after(async () => {
|
|
377
|
+
try {
|
|
378
|
+
const encoded = encode({ e: currentEpochs, v: value } satisfies CacheEnvelope<T>);
|
|
379
|
+
await backend.set(fullKey, encoded, ttl);
|
|
380
|
+
} catch (error) {
|
|
381
|
+
if (import.meta.env.DEV) {
|
|
382
|
+
console.warn("[object-cache] set failed:", error);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
return value;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Invalidate every cached value in `namespace` by bumping its epoch.
|
|
393
|
+
*
|
|
394
|
+
* Sync and non-blocking: the local epoch is stamped immediately (so the
|
|
395
|
+
* writing isolate is instantly consistent) and the backend write is deferred
|
|
396
|
+
* via `after`. Other isolates pick up the new epoch within their `revalidate`
|
|
397
|
+
* window. No-ops when the cache is disabled.
|
|
398
|
+
*/
|
|
399
|
+
export function invalidateObjectCache(namespace: string): void {
|
|
400
|
+
// Monotonic so two writes in the same millisecond still produce distinct
|
|
401
|
+
// epochs — otherwise the second write reuses the first's stamp and its
|
|
402
|
+
// stale entries survive.
|
|
403
|
+
const prev = epochCache.get(namespace)?.value ?? 0;
|
|
404
|
+
const stamp = Math.max(prev + 1, Date.now());
|
|
405
|
+
// Optimistic local bump: keep this isolate consistent without a round-trip.
|
|
406
|
+
epochCache.set(namespace, { value: stamp, at: stamp });
|
|
407
|
+
|
|
408
|
+
// Coalesce repeated bumps of the same namespace within a tick (e.g. a bulk
|
|
409
|
+
// publish loop) into a single backend write that persists the latest epoch.
|
|
410
|
+
if (pendingBumps.has(namespace)) return;
|
|
411
|
+
pendingBumps.add(namespace);
|
|
412
|
+
after(async () => {
|
|
413
|
+
pendingBumps.delete(namespace);
|
|
414
|
+
try {
|
|
415
|
+
const backend = await getBackend();
|
|
416
|
+
if (!backend) return;
|
|
417
|
+
const latest = epochCache.get(namespace)?.value ?? stamp;
|
|
418
|
+
// Epoch anchors are persistent (no TTL) — they must outlive the
|
|
419
|
+
// value keys they invalidate.
|
|
420
|
+
await backend.set(epochKey(namespace), String(latest));
|
|
421
|
+
} catch (error) {
|
|
422
|
+
console.error("[object-cache] epoch bump failed for", namespace, error);
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Fixed namespaces for data shared across collections. Content reads fold the
|
|
429
|
+
* `BYLINES` and `TAXONOMIES` epochs into their keys (via {@link cachedQuery})
|
|
430
|
+
* because entries hydrate byline and taxonomy-term data — so renaming an
|
|
431
|
+
* author or a category correctly invalidates every cached entry that displays
|
|
432
|
+
* it, without tracking which collections reference it.
|
|
433
|
+
*/
|
|
434
|
+
export const CacheNamespace = {
|
|
435
|
+
SETTINGS: "settings",
|
|
436
|
+
MENUS: "menus",
|
|
437
|
+
TAXONOMIES: "taxonomies",
|
|
438
|
+
BYLINES: "bylines",
|
|
439
|
+
/** Collection schema/metadata (label, supports, commentsEnabled, fields). */
|
|
440
|
+
SCHEMA: "schema",
|
|
441
|
+
/** Public (approved) comments. */
|
|
442
|
+
COMMENTS: "comments",
|
|
443
|
+
} as const;
|
|
444
|
+
|
|
445
|
+
/** Namespace for a content collection's cached queries. */
|
|
446
|
+
export function contentNamespace(collection: string): string {
|
|
447
|
+
return `content:${collection}`;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Namespaces a content read depends on: the collection itself plus the shared
|
|
452
|
+
* byline/taxonomy data folded into each entry.
|
|
453
|
+
*/
|
|
454
|
+
export function contentNamespaces(collection: string): readonly string[] {
|
|
455
|
+
return [contentNamespace(collection), CacheNamespace.BYLINES, CacheNamespace.TAXONOMIES];
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Invalidate all cached reads (list + entry) for a content collection.
|
|
460
|
+
* Call from every write path that mutates rows in `ec_<collection>`.
|
|
461
|
+
*/
|
|
462
|
+
export function invalidateCollectionCache(collection: string): void {
|
|
463
|
+
invalidateObjectCache(contentNamespace(collection));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/** Invalidate cached taxonomy definitions/terms and all content that hydrates them. */
|
|
467
|
+
export function invalidateTaxonomyObjectCache(): void {
|
|
468
|
+
invalidateObjectCache(CacheNamespace.TAXONOMIES);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** Invalidate cached bylines and all content that hydrates them. */
|
|
472
|
+
export function invalidateBylineObjectCache(): void {
|
|
473
|
+
invalidateObjectCache(CacheNamespace.BYLINES);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** Invalidate cached navigation menus. */
|
|
477
|
+
export function invalidateMenuObjectCache(): void {
|
|
478
|
+
invalidateObjectCache(CacheNamespace.MENUS);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/** Invalidate cached collection schema/metadata reads (e.g. getCollectionInfo). */
|
|
482
|
+
export function invalidateSchemaObjectCache(): void {
|
|
483
|
+
invalidateObjectCache(CacheNamespace.SCHEMA);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** Invalidate cached public comment reads. */
|
|
487
|
+
export function invalidateCommentObjectCache(): void {
|
|
488
|
+
invalidateObjectCache(CacheNamespace.COMMENTS);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export type {
|
|
492
|
+
ObjectCacheBackend,
|
|
493
|
+
ObjectCacheDescriptor,
|
|
494
|
+
ObjectCacheRuntimeConfig,
|
|
495
|
+
} from "./types.js";
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-isolate memory object-cache backend — RUNTIME ENTRY
|
|
3
|
+
*
|
|
4
|
+
* The default backend for the Node runtime and a sensible local-dev option.
|
|
5
|
+
* Caches across requests within a single isolate/process; it is NOT shared
|
|
6
|
+
* across isolates, so on a multi-isolate platform (Cloudflare) you want the KV
|
|
7
|
+
* backend instead. Still useful on Node, where one long-lived process serves
|
|
8
|
+
* every request.
|
|
9
|
+
*
|
|
10
|
+
* Wire it up with `memoryCache()` from `emdash`:
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { memoryCache } from "emdash";
|
|
14
|
+
* emdash({ objectCache: memoryCache() });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* The store lives on `globalThis` behind a `Symbol.for` key so Vite SSR chunk
|
|
18
|
+
* duplication doesn't create two independent caches (same pattern as
|
|
19
|
+
* `request-context.ts`).
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import type { CreateObjectCacheBackendFn, ObjectCacheBackend } from "./types.js";
|
|
23
|
+
|
|
24
|
+
interface Entry {
|
|
25
|
+
value: string;
|
|
26
|
+
/** Absolute expiry in ms (`Date.now()` epoch), or `null` for none. */
|
|
27
|
+
expiresAt: number | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface MemoryStore {
|
|
31
|
+
map: Map<string, Entry>;
|
|
32
|
+
maxEntries: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const STORE_KEY = Symbol.for("emdash:object-cache:memory");
|
|
36
|
+
const g = globalThis as Record<symbol, unknown>;
|
|
37
|
+
|
|
38
|
+
function getStore(maxEntries: number): MemoryStore {
|
|
39
|
+
// eslint-disable-next-line typescript/no-unsafe-type-assertion -- globalThis singleton pattern (see request-context.ts)
|
|
40
|
+
const existing = g[STORE_KEY] as MemoryStore | undefined;
|
|
41
|
+
if (existing) {
|
|
42
|
+
// First descriptor wins for sizing; later calls reuse the same map.
|
|
43
|
+
return existing;
|
|
44
|
+
}
|
|
45
|
+
const store: MemoryStore = { map: new Map(), maxEntries };
|
|
46
|
+
g[STORE_KEY] = store;
|
|
47
|
+
return store;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Create the in-isolate memory backend.
|
|
52
|
+
*
|
|
53
|
+
* Config keys (all optional):
|
|
54
|
+
* - `maxEntries` — soft cap on stored keys; oldest insertions are evicted
|
|
55
|
+
* first when exceeded (FIFO, cheap and good enough for a backstop). Default
|
|
56
|
+
* 1000.
|
|
57
|
+
*/
|
|
58
|
+
export const createObjectCache: CreateObjectCacheBackendFn = (config): ObjectCacheBackend => {
|
|
59
|
+
const maxEntries = typeof config.maxEntries === "number" ? config.maxEntries : 1000;
|
|
60
|
+
const store = getStore(maxEntries);
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
get(key: string): Promise<string | null> {
|
|
64
|
+
const entry = store.map.get(key);
|
|
65
|
+
if (!entry) return Promise.resolve(null);
|
|
66
|
+
if (entry.expiresAt !== null && entry.expiresAt <= Date.now()) {
|
|
67
|
+
store.map.delete(key);
|
|
68
|
+
return Promise.resolve(null);
|
|
69
|
+
}
|
|
70
|
+
return Promise.resolve(entry.value);
|
|
71
|
+
},
|
|
72
|
+
set(key: string, value: string, ttlSeconds?: number): Promise<void> {
|
|
73
|
+
// Refresh insertion order so recently-written keys survive eviction.
|
|
74
|
+
store.map.delete(key);
|
|
75
|
+
store.map.set(key, {
|
|
76
|
+
value,
|
|
77
|
+
expiresAt: ttlSeconds && ttlSeconds > 0 ? Date.now() + ttlSeconds * 1000 : null,
|
|
78
|
+
});
|
|
79
|
+
while (store.map.size > store.maxEntries) {
|
|
80
|
+
const oldest = store.map.keys().next().value;
|
|
81
|
+
if (oldest === undefined) break;
|
|
82
|
+
store.map.delete(oldest);
|
|
83
|
+
}
|
|
84
|
+
return Promise.resolve();
|
|
85
|
+
},
|
|
86
|
+
delete(key: string): Promise<void> {
|
|
87
|
+
store.map.delete(key);
|
|
88
|
+
return Promise.resolve();
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
};
|