emdash 1.3.1 → 1.4.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.
Files changed (1338) hide show
  1. package/dist/action-token-SK8zyN7w.mjs +26 -0
  2. package/dist/action-token-SK8zyN7w.mjs.map +1 -0
  3. package/dist/activation-CGlyigmg.mjs +387 -0
  4. package/dist/activation-CGlyigmg.mjs.map +1 -0
  5. package/dist/adapters-D9a1PfqH.d.mts +173 -0
  6. package/dist/adapters-D9a1PfqH.d.mts.map +1 -0
  7. package/dist/after-32yNRvd2.mjs +99 -0
  8. package/dist/after-32yNRvd2.mjs.map +1 -0
  9. package/dist/allowed-origins-CEug-p0t.mjs +116 -0
  10. package/dist/allowed-origins-CEug-p0t.mjs.map +1 -0
  11. package/dist/api/route-utils.d.mts +4 -4
  12. package/dist/api/route-utils.mjs +52 -53
  13. package/dist/api/route-utils.mjs.map +1 -1
  14. package/dist/api/schemas/index.d.mts +1 -1
  15. package/dist/api/schemas/index.mjs +9 -9
  16. package/dist/api--PYoyeTo.mjs +5098 -0
  17. package/dist/api--PYoyeTo.mjs.map +1 -0
  18. package/dist/api-tokens-DqSlkDVI.mjs +9 -0
  19. package/dist/api-tokens-DqSlkDVI.mjs.map +1 -0
  20. package/dist/api-tokens-GNCsIegW.mjs +173 -0
  21. package/dist/api-tokens-GNCsIegW.mjs.map +1 -0
  22. package/dist/apply-DVnupNeS.mjs +1760 -0
  23. package/dist/apply-DVnupNeS.mjs.map +1 -0
  24. package/dist/approvals-DTtYSB27.mjs +460 -0
  25. package/dist/approvals-DTtYSB27.mjs.map +1 -0
  26. package/dist/artifact-fetch-DIh7iyOV.mjs +659 -0
  27. package/dist/artifact-fetch-DIh7iyOV.mjs.map +1 -0
  28. package/dist/artifacts-Dvdp2KK-.mjs +323 -0
  29. package/dist/artifacts-Dvdp2KK-.mjs.map +1 -0
  30. package/dist/astro/index.d.mts +14 -13
  31. package/dist/astro/index.d.mts.map +1 -1
  32. package/dist/astro/index.mjs +52 -12
  33. package/dist/astro/index.mjs.map +1 -1
  34. package/dist/astro/middleware/auth.d.mts +12 -11
  35. package/dist/astro/middleware/auth.d.mts.map +1 -1
  36. package/dist/astro/middleware/auth.mjs +13 -11
  37. package/dist/astro/middleware/auth.mjs.map +1 -1
  38. package/dist/astro/middleware/media-usage-write-fence.mjs +5 -5
  39. package/dist/astro/middleware/redirect.mjs +17 -17
  40. package/dist/astro/middleware/request-context.mjs +12 -7
  41. package/dist/astro/middleware/request-context.mjs.map +1 -1
  42. package/dist/astro/middleware/setup.mjs +1 -1
  43. package/dist/astro/middleware.d.mts +12 -11
  44. package/dist/astro/middleware.d.mts.map +1 -1
  45. package/dist/astro/middleware.mjs +116 -116
  46. package/dist/astro/routes/api/admin/allowed-domains/_domain_.mjs +13 -13
  47. package/dist/astro/routes/api/admin/allowed-domains/index.mjs +13 -13
  48. package/dist/astro/routes/api/admin/api-tokens/_id_.mjs +6 -6
  49. package/dist/astro/routes/api/admin/api-tokens/index.mjs +7 -7
  50. package/dist/astro/routes/api/admin/byline-fields/_slug_/usage.mjs +5 -5
  51. package/dist/astro/routes/api/admin/byline-fields/_slug_.mjs +15 -15
  52. package/dist/astro/routes/api/admin/byline-fields/index.mjs +15 -15
  53. package/dist/astro/routes/api/admin/byline-fields/reorder.mjs +15 -15
  54. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs +23 -24
  55. package/dist/astro/routes/api/admin/bylines/_id_/index.mjs.map +1 -1
  56. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs +23 -24
  57. package/dist/astro/routes/api/admin/bylines/_id_/translations.mjs.map +1 -1
  58. package/dist/astro/routes/api/admin/bylines/index.mjs +23 -24
  59. package/dist/astro/routes/api/admin/bylines/index.mjs.map +1 -1
  60. package/dist/astro/routes/api/admin/comments/_id_/status.mjs +19 -19
  61. package/dist/astro/routes/api/admin/comments/_id_.mjs +8 -8
  62. package/dist/astro/routes/api/admin/comments/bulk.mjs +18 -18
  63. package/dist/astro/routes/api/admin/comments/counts.mjs +8 -8
  64. package/dist/astro/routes/api/admin/comments/index.mjs +18 -18
  65. package/dist/astro/routes/api/admin/core-update.mjs +7 -7
  66. package/dist/astro/routes/api/admin/hooks/exclusive/_hookName_.mjs +5 -5
  67. package/dist/astro/routes/api/admin/hooks/exclusive/index.mjs +4 -4
  68. package/dist/astro/routes/api/admin/media-usage/activation.mjs +20 -20
  69. package/dist/astro/routes/api/admin/media-usage/collection-deletions/index.mjs +21 -21
  70. package/dist/astro/routes/api/admin/media-usage/collection-deletions/retry.mjs +21 -21
  71. package/dist/astro/routes/api/admin/media-usage/progress.mjs +24 -24
  72. package/dist/astro/routes/api/admin/media-usage/repair.mjs +30 -30
  73. package/dist/astro/routes/api/admin/media-usage/work/index.mjs +21 -21
  74. package/dist/astro/routes/api/admin/media-usage/work/retry.mjs +21 -21
  75. package/dist/astro/routes/api/admin/oauth-clients/_id_.mjs +5 -5
  76. package/dist/astro/routes/api/admin/oauth-clients/index.mjs +5 -5
  77. package/dist/astro/routes/api/admin/plugins/_id_/disable.mjs +8 -8
  78. package/dist/astro/routes/api/admin/plugins/_id_/enable.mjs +8 -8
  79. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs +74 -75
  80. package/dist/astro/routes/api/admin/plugins/_id_/index.mjs.map +1 -1
  81. package/dist/astro/routes/api/admin/plugins/_id_/mcp.mjs +6 -6
  82. package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs +73 -74
  83. package/dist/astro/routes/api/admin/plugins/_id_/settings.mjs.map +1 -1
  84. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs +73 -74
  85. package/dist/astro/routes/api/admin/plugins/_id_/uninstall.mjs.map +1 -1
  86. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs +84 -85
  87. package/dist/astro/routes/api/admin/plugins/_id_/update.mjs.map +1 -1
  88. package/dist/astro/routes/api/admin/plugins/index.mjs +74 -75
  89. package/dist/astro/routes/api/admin/plugins/index.mjs.map +1 -1
  90. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/icon.mjs +6 -6
  91. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs +73 -74
  92. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/index.mjs.map +1 -1
  93. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs +83 -84
  94. package/dist/astro/routes/api/admin/plugins/marketplace/_id_/install.mjs.map +1 -1
  95. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs +73 -74
  96. package/dist/astro/routes/api/admin/plugins/marketplace/index.mjs.map +1 -1
  97. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs +73 -74
  98. package/dist/astro/routes/api/admin/plugins/registry/_id_/uninstall.mjs.map +1 -1
  99. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs +85 -86
  100. package/dist/astro/routes/api/admin/plugins/registry/_id_/update.mjs.map +1 -1
  101. package/dist/astro/routes/api/admin/plugins/registry/artifact.mjs +8 -8
  102. package/dist/astro/routes/api/admin/plugins/registry/install.mjs +75 -76
  103. package/dist/astro/routes/api/admin/plugins/registry/install.mjs.map +1 -1
  104. package/dist/astro/routes/api/admin/plugins/registry/publisher-handle.mjs +6 -6
  105. package/dist/astro/routes/api/admin/plugins/registry/verify.mjs +74 -75
  106. package/dist/astro/routes/api/admin/plugins/registry/verify.mjs.map +1 -1
  107. package/dist/astro/routes/api/admin/plugins/updates.mjs +73 -74
  108. package/dist/astro/routes/api/admin/plugins/updates.mjs.map +1 -1
  109. package/dist/astro/routes/api/admin/scheduled-policy-rejections/_collection_/_id_.mjs +5 -5
  110. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs +73 -74
  111. package/dist/astro/routes/api/admin/themes/marketplace/_id_/index.mjs.map +1 -1
  112. package/dist/astro/routes/api/admin/themes/marketplace/_id_/thumbnail.mjs +6 -6
  113. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs +73 -74
  114. package/dist/astro/routes/api/admin/themes/marketplace/index.mjs.map +1 -1
  115. package/dist/astro/routes/api/admin/transfer/_...path_.mjs +3 -3
  116. package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs +40 -41
  117. package/dist/astro/routes/api/admin/transfer/approvals/_id_/approve.mjs.map +1 -1
  118. package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs +40 -41
  119. package/dist/astro/routes/api/admin/transfer/approvals/_id_/deny.mjs.map +1 -1
  120. package/dist/astro/routes/api/admin/transfer/approvals/index.mjs +42 -43
  121. package/dist/astro/routes/api/admin/transfer/approvals/index.mjs.map +1 -1
  122. package/dist/astro/routes/api/admin/transfer/capabilities.mjs +42 -43
  123. package/dist/astro/routes/api/admin/transfer/capabilities.mjs.map +1 -1
  124. package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs +42 -43
  125. package/dist/astro/routes/api/admin/transfer/exports/_id_/advance.mjs.map +1 -1
  126. package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs +43 -44
  127. package/dist/astro/routes/api/admin/transfer/exports/_id_/archive.mjs.map +1 -1
  128. package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs +43 -44
  129. package/dist/astro/routes/api/admin/transfer/exports/_id_/files/_...path_.mjs.map +1 -1
  130. package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs +42 -43
  131. package/dist/astro/routes/api/admin/transfer/exports/_id_/index.mjs.map +1 -1
  132. package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs +43 -44
  133. package/dist/astro/routes/api/admin/transfer/exports/_id_/manifest.mjs.map +1 -1
  134. package/dist/astro/routes/api/admin/transfer/exports/index.mjs +44 -45
  135. package/dist/astro/routes/api/admin/transfer/exports/index.mjs.map +1 -1
  136. package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs +42 -43
  137. package/dist/astro/routes/api/admin/transfer/imports/_id_/abandon.mjs.map +1 -1
  138. package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs +42 -43
  139. package/dist/astro/routes/api/admin/transfer/imports/_id_/advance.mjs.map +1 -1
  140. package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs +44 -45
  141. package/dist/astro/routes/api/admin/transfer/imports/_id_/analyze.mjs.map +1 -1
  142. package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs +42 -43
  143. package/dist/astro/routes/api/admin/transfer/imports/_id_/cancel.mjs.map +1 -1
  144. package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs +44 -45
  145. package/dist/astro/routes/api/admin/transfer/imports/_id_/execute.mjs.map +1 -1
  146. package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs +42 -43
  147. package/dist/astro/routes/api/admin/transfer/imports/_id_/files/_...path_.mjs.map +1 -1
  148. package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs +42 -43
  149. package/dist/astro/routes/api/admin/transfer/imports/_id_/index.mjs.map +1 -1
  150. package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs +44 -45
  151. package/dist/astro/routes/api/admin/transfer/imports/_id_/missing.mjs.map +1 -1
  152. package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs +42 -43
  153. package/dist/astro/routes/api/admin/transfer/imports/_id_/plan.mjs.map +1 -1
  154. package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs +42 -43
  155. package/dist/astro/routes/api/admin/transfer/imports/_id_/receipt.mjs.map +1 -1
  156. package/dist/astro/routes/api/admin/transfer/imports/index.mjs +44 -45
  157. package/dist/astro/routes/api/admin/transfer/imports/index.mjs.map +1 -1
  158. package/dist/astro/routes/api/admin/users/_id_/disable.mjs +3 -3
  159. package/dist/astro/routes/api/admin/users/_id_/enable.mjs +3 -3
  160. package/dist/astro/routes/api/admin/users/_id_/index.mjs +13 -13
  161. package/dist/astro/routes/api/admin/users/_id_/send-recovery.mjs +5 -5
  162. package/dist/astro/routes/api/admin/users/index.mjs +13 -13
  163. package/dist/astro/routes/api/auth/dev-bypass.mjs +5 -5
  164. package/dist/astro/routes/api/auth/handover.mjs +6 -6
  165. package/dist/astro/routes/api/auth/invite/accept.mjs +3 -3
  166. package/dist/astro/routes/api/auth/invite/complete.mjs +19 -19
  167. package/dist/astro/routes/api/auth/invite/index.mjs +15 -15
  168. package/dist/astro/routes/api/auth/invite/register-options.mjs +16 -16
  169. package/dist/astro/routes/api/auth/logout.mjs +4 -4
  170. package/dist/astro/routes/api/auth/magic-link/send.mjs +18 -18
  171. package/dist/astro/routes/api/auth/magic-link/verify.mjs +15 -15
  172. package/dist/astro/routes/api/auth/me.mjs +14 -14
  173. package/dist/astro/routes/api/auth/mode.mjs +4 -4
  174. package/dist/astro/routes/api/auth/oauth/_provider_/callback.mjs +9 -9
  175. package/dist/astro/routes/api/auth/oauth/_provider_.mjs +2 -2
  176. package/dist/astro/routes/api/auth/passkey/_id_.mjs +13 -13
  177. package/dist/astro/routes/api/auth/passkey/index.mjs +3 -3
  178. package/dist/astro/routes/api/auth/passkey/options.mjs +19 -19
  179. package/dist/astro/routes/api/auth/passkey/register/options.mjs +16 -16
  180. package/dist/astro/routes/api/auth/passkey/register/verify.mjs +17 -17
  181. package/dist/astro/routes/api/auth/passkey/verify.mjs +19 -19
  182. package/dist/astro/routes/api/auth/signup/complete.mjs +19 -19
  183. package/dist/astro/routes/api/auth/signup/request.mjs +17 -17
  184. package/dist/astro/routes/api/auth/signup/verify.mjs +3 -3
  185. package/dist/astro/routes/api/calendar.mjs +14 -14
  186. package/dist/astro/routes/api/comments/_collection_/_contentId_/index.mjs +14 -14
  187. package/dist/astro/routes/api/comments/_collection_/_contentId_/reactions.mjs +20 -20
  188. package/dist/astro/routes/api/content/_collection_/_id_/compare.mjs +4 -4
  189. package/dist/astro/routes/api/content/_collection_/_id_/discard-draft.mjs +18 -18
  190. package/dist/astro/routes/api/content/_collection_/_id_/duplicate.mjs +4 -4
  191. package/dist/astro/routes/api/content/_collection_/_id_/lock.mjs +17 -17
  192. package/dist/astro/routes/api/content/_collection_/_id_/permanent.mjs +5 -5
  193. package/dist/astro/routes/api/content/_collection_/_id_/plugin-extensions/_pluginId_/_kind_/_extensionId_.mjs +10 -10
  194. package/dist/astro/routes/api/content/_collection_/_id_/preview-url.mjs +33 -33
  195. package/dist/astro/routes/api/content/_collection_/_id_/publish.mjs +18 -18
  196. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/children.mjs +35 -35
  197. package/dist/astro/routes/api/content/_collection_/_id_/references/_relation_/parents.mjs +35 -35
  198. package/dist/astro/routes/api/content/_collection_/_id_/restore.mjs +5 -5
  199. package/dist/astro/routes/api/content/_collection_/_id_/revisions.mjs +4 -4
  200. package/dist/astro/routes/api/content/_collection_/_id_/schedule.mjs +18 -18
  201. package/dist/astro/routes/api/content/_collection_/_id_/terms/_taxonomy_.mjs +26 -26
  202. package/dist/astro/routes/api/content/_collection_/_id_/translations.mjs +4 -4
  203. package/dist/astro/routes/api/content/_collection_/_id_/unpublish.mjs +18 -18
  204. package/dist/astro/routes/api/content/_collection_/_id_.mjs +18 -18
  205. package/dist/astro/routes/api/content/_collection_/authors.mjs +4 -4
  206. package/dist/astro/routes/api/content/_collection_/index.mjs +14 -14
  207. package/dist/astro/routes/api/content/_collection_/trash.mjs +14 -14
  208. package/dist/astro/routes/api/dashboard.mjs +11 -11
  209. package/dist/astro/routes/api/dev/emails.mjs +4 -4
  210. package/dist/astro/routes/api/dev/scheduled-tasks.mjs +112 -112
  211. package/dist/astro/routes/api/health.mjs +5 -5
  212. package/dist/astro/routes/api/import/probe.d.mts +3 -2
  213. package/dist/astro/routes/api/import/probe.d.mts.map +1 -1
  214. package/dist/astro/routes/api/import/probe.mjs +28 -28
  215. package/dist/astro/routes/api/import/wordpress/analyze.d.mts +4 -3
  216. package/dist/astro/routes/api/import/wordpress/analyze.d.mts.map +1 -1
  217. package/dist/astro/routes/api/import/wordpress/analyze.mjs +6 -28
  218. package/dist/astro/routes/api/import/wordpress/analyze.mjs.map +1 -1
  219. package/dist/astro/routes/api/import/wordpress/execute.d.mts +12 -11
  220. package/dist/astro/routes/api/import/wordpress/execute.d.mts.map +1 -1
  221. package/dist/astro/routes/api/import/wordpress/execute.mjs +26 -27
  222. package/dist/astro/routes/api/import/wordpress/execute.mjs.map +1 -1
  223. package/dist/astro/routes/api/import/wordpress/media.d.mts +12 -11
  224. package/dist/astro/routes/api/import/wordpress/media.d.mts.map +1 -1
  225. package/dist/astro/routes/api/import/wordpress/media.mjs +18 -18
  226. package/dist/astro/routes/api/import/wordpress/prepare.mjs +19 -19
  227. package/dist/astro/routes/api/import/wordpress/prepare.mjs.map +1 -1
  228. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts +13 -12
  229. package/dist/astro/routes/api/import/wordpress/rewrite-urls.d.mts.map +1 -1
  230. package/dist/astro/routes/api/import/wordpress/rewrite-urls.mjs +29 -29
  231. package/dist/astro/routes/api/import/wordpress-plugin/analyze.mjs +28 -28
  232. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts +12 -11
  233. package/dist/astro/routes/api/import/wordpress-plugin/execute.d.mts.map +1 -1
  234. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs +38 -39
  235. package/dist/astro/routes/api/import/wordpress-plugin/execute.mjs.map +1 -1
  236. package/dist/astro/routes/api/manifest.mjs +5 -5
  237. package/dist/astro/routes/api/mcp.mjs +96 -97
  238. package/dist/astro/routes/api/mcp.mjs.map +1 -1
  239. package/dist/astro/routes/api/media/_id_/confirm.mjs +19 -19
  240. package/dist/astro/routes/api/media/_id_/replace.mjs +15 -15
  241. package/dist/astro/routes/api/media/_id_/upload.mjs +8 -8
  242. package/dist/astro/routes/api/media/_id_/usage.mjs +32 -32
  243. package/dist/astro/routes/api/media/_id_.mjs +30 -30
  244. package/dist/astro/routes/api/media/asset/_id_/_filename_.mjs +5 -5
  245. package/dist/astro/routes/api/media/file/_...key_.d.mts.map +1 -1
  246. package/dist/astro/routes/api/media/file/_...key_.mjs +57 -11
  247. package/dist/astro/routes/api/media/file/_...key_.mjs.map +1 -1
  248. package/dist/astro/routes/api/media/folders/_id_.mjs +15 -15
  249. package/dist/astro/routes/api/media/folders/index.mjs +15 -15
  250. package/dist/astro/routes/api/media/providers/_providerId_/_itemId_.mjs +4 -4
  251. package/dist/astro/routes/api/media/providers/_providerId_/index.mjs +4 -4
  252. package/dist/astro/routes/api/media/providers/index.mjs +4 -4
  253. package/dist/astro/routes/api/media/upload-url.mjs +17 -17
  254. package/dist/astro/routes/api/media.mjs +34 -34
  255. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs +20 -19
  256. package/dist/astro/routes/api/menus/_name_/items/_id_.mjs.map +1 -1
  257. package/dist/astro/routes/api/menus/_name_/items.mjs +20 -19
  258. package/dist/astro/routes/api/menus/_name_/items.mjs.map +1 -1
  259. package/dist/astro/routes/api/menus/_name_/reorder.mjs +20 -19
  260. package/dist/astro/routes/api/menus/_name_/reorder.mjs.map +1 -1
  261. package/dist/astro/routes/api/menus/_name_/translations.mjs +20 -19
  262. package/dist/astro/routes/api/menus/_name_/translations.mjs.map +1 -1
  263. package/dist/astro/routes/api/menus/_name_.mjs +20 -19
  264. package/dist/astro/routes/api/menus/_name_.mjs.map +1 -1
  265. package/dist/astro/routes/api/menus/index.mjs +20 -19
  266. package/dist/astro/routes/api/menus/index.mjs.map +1 -1
  267. package/dist/astro/routes/api/oauth/authorize.mjs +6 -6
  268. package/dist/astro/routes/api/oauth/device/authorize.mjs +7 -7
  269. package/dist/astro/routes/api/oauth/device/code.mjs +11 -11
  270. package/dist/astro/routes/api/oauth/device/token.mjs +10 -10
  271. package/dist/astro/routes/api/oauth/register.mjs +7 -7
  272. package/dist/astro/routes/api/oauth/token/refresh.mjs +7 -7
  273. package/dist/astro/routes/api/oauth/token/revoke.mjs +7 -7
  274. package/dist/astro/routes/api/oauth/token.d.mts.map +1 -1
  275. package/dist/astro/routes/api/oauth/token.mjs +8 -8
  276. package/dist/astro/routes/api/oauth/token.mjs.map +1 -1
  277. package/dist/astro/routes/api/openapi.json.mjs +20 -20
  278. package/dist/astro/routes/api/plugins/_pluginId_/_...path_.mjs +10 -10
  279. package/dist/astro/routes/api/redirects/404s/index.mjs +21 -21
  280. package/dist/astro/routes/api/redirects/404s/summary.mjs +21 -21
  281. package/dist/astro/routes/api/redirects/_id_.mjs +22 -22
  282. package/dist/astro/routes/api/redirects/index.mjs +22 -22
  283. package/dist/astro/routes/api/relations/_id_/index.mjs +35 -35
  284. package/dist/astro/routes/api/relations/index.mjs +35 -35
  285. package/dist/astro/routes/api/revisions/_revisionId_/index.mjs +4 -4
  286. package/dist/astro/routes/api/revisions/_revisionId_/restore.mjs +17 -17
  287. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs +73 -74
  288. package/dist/astro/routes/api/schema/block-types/_slug_/index.mjs.map +1 -1
  289. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs +73 -74
  290. package/dist/astro/routes/api/schema/block-types/_slug_/versions/_version_/activate.mjs.map +1 -1
  291. package/dist/astro/routes/api/schema/block-types/index.mjs +73 -74
  292. package/dist/astro/routes/api/schema/block-types/index.mjs.map +1 -1
  293. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs +73 -74
  294. package/dist/astro/routes/api/schema/collections/_slug_/fields/_fieldSlug_.mjs.map +1 -1
  295. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs +73 -74
  296. package/dist/astro/routes/api/schema/collections/_slug_/fields/index.mjs.map +1 -1
  297. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs +73 -74
  298. package/dist/astro/routes/api/schema/collections/_slug_/fields/reorder.mjs.map +1 -1
  299. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs +73 -74
  300. package/dist/astro/routes/api/schema/collections/_slug_/index.mjs.map +1 -1
  301. package/dist/astro/routes/api/schema/collections/index.mjs +73 -74
  302. package/dist/astro/routes/api/schema/collections/index.mjs.map +1 -1
  303. package/dist/astro/routes/api/schema/collections/reorder.mjs +73 -74
  304. package/dist/astro/routes/api/schema/collections/reorder.mjs.map +1 -1
  305. package/dist/astro/routes/api/schema/index.mjs +17 -17
  306. package/dist/astro/routes/api/schema/orphans/_slug_.mjs +73 -74
  307. package/dist/astro/routes/api/schema/orphans/_slug_.mjs.map +1 -1
  308. package/dist/astro/routes/api/schema/orphans/index.mjs +73 -74
  309. package/dist/astro/routes/api/schema/orphans/index.mjs.map +1 -1
  310. package/dist/astro/routes/api/search/enable.mjs +20 -19
  311. package/dist/astro/routes/api/search/enable.mjs.map +1 -1
  312. package/dist/astro/routes/api/search/index.mjs +19 -18
  313. package/dist/astro/routes/api/search/index.mjs.map +1 -1
  314. package/dist/astro/routes/api/search/rebuild.mjs +20 -19
  315. package/dist/astro/routes/api/search/rebuild.mjs.map +1 -1
  316. package/dist/astro/routes/api/search/stats.mjs +10 -9
  317. package/dist/astro/routes/api/search/stats.mjs.map +1 -1
  318. package/dist/astro/routes/api/search/suggest.mjs +19 -18
  319. package/dist/astro/routes/api/search/suggest.mjs.map +1 -1
  320. package/dist/astro/routes/api/sections/_slug_.mjs +19 -18
  321. package/dist/astro/routes/api/sections/_slug_.mjs.map +1 -1
  322. package/dist/astro/routes/api/sections/index.mjs +19 -18
  323. package/dist/astro/routes/api/sections/index.mjs.map +1 -1
  324. package/dist/astro/routes/api/settings/backups/archives/_name_.mjs +7 -7
  325. package/dist/astro/routes/api/settings/backups/archives/index.mjs +7 -7
  326. package/dist/astro/routes/api/settings/backups/export.mjs +7 -7
  327. package/dist/astro/routes/api/settings/backups/index.mjs +8 -8
  328. package/dist/astro/routes/api/settings/domain-notify.mjs +9 -9
  329. package/dist/astro/routes/api/settings/domain.mjs +21 -21
  330. package/dist/astro/routes/api/settings/email.mjs +5 -5
  331. package/dist/astro/routes/api/settings.mjs +27 -27
  332. package/dist/astro/routes/api/setup/admin-verify.mjs +22 -22
  333. package/dist/astro/routes/api/setup/admin.mjs +17 -17
  334. package/dist/astro/routes/api/setup/dev-bypass.mjs +45 -46
  335. package/dist/astro/routes/api/setup/dev-bypass.mjs.map +1 -1
  336. package/dist/astro/routes/api/setup/dev-reset.mjs +3 -3
  337. package/dist/astro/routes/api/setup/index.mjs +51 -52
  338. package/dist/astro/routes/api/setup/index.mjs.map +1 -1
  339. package/dist/astro/routes/api/setup/status.mjs +5 -5
  340. package/dist/astro/routes/api/site/domain-proof.mjs +15 -15
  341. package/dist/astro/routes/api/snapshot.mjs +10 -10
  342. package/dist/astro/routes/api/taxonomies/_name_/reorder.mjs +25 -25
  343. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_/translations.mjs +25 -25
  344. package/dist/astro/routes/api/taxonomies/_name_/terms/_slug_.mjs +25 -25
  345. package/dist/astro/routes/api/taxonomies/_name_/terms/index.mjs +25 -25
  346. package/dist/astro/routes/api/taxonomies/_name_/translations.mjs +23 -23
  347. package/dist/astro/routes/api/taxonomies/_name_.mjs +25 -25
  348. package/dist/astro/routes/api/taxonomies/bulk-tag.mjs +36 -36
  349. package/dist/astro/routes/api/taxonomies/index.mjs +25 -25
  350. package/dist/astro/routes/api/themes/preview.mjs +7 -7
  351. package/dist/astro/routes/api/typegen.mjs +5 -5
  352. package/dist/astro/routes/api/visual-editing/action-token.mjs +7 -7
  353. package/dist/astro/routes/api/visual-editing/content/_collection_/_id_/publish.mjs +21 -21
  354. package/dist/astro/routes/api/visual-editing/toolbar-labels.mjs +3 -3
  355. package/dist/astro/routes/api/well-known/auth.mjs +1 -1
  356. package/dist/astro/routes/api/well-known/oauth-authorization-server.mjs +2 -2
  357. package/dist/astro/routes/api/well-known/oauth-protected-resource.mjs +2 -2
  358. package/dist/astro/routes/api/widget-areas/_name_/reorder.d.mts.map +1 -1
  359. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs +28 -17
  360. package/dist/astro/routes/api/widget-areas/_name_/reorder.mjs.map +1 -1
  361. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.d.mts.map +1 -1
  362. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs +24 -20
  363. package/dist/astro/routes/api/widget-areas/_name_/widgets/_id_.mjs.map +1 -1
  364. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs +23 -20
  365. package/dist/astro/routes/api/widget-areas/_name_/widgets.mjs.map +1 -1
  366. package/dist/astro/routes/api/widget-areas/_name_.mjs +13 -10
  367. package/dist/astro/routes/api/widget-areas/_name_.mjs.map +1 -1
  368. package/dist/astro/routes/api/widget-areas/index.mjs +23 -20
  369. package/dist/astro/routes/api/widget-areas/index.mjs.map +1 -1
  370. package/dist/astro/routes/api/widget-components.mjs +4 -4
  371. package/dist/astro/routes/robots.txt.mjs +14 -14
  372. package/dist/astro/routes/sitemap-_collection_.xml.mjs +17 -17
  373. package/dist/astro/routes/sitemap.xml.mjs +15 -15
  374. package/dist/astro/types.d.mts +21 -19
  375. package/dist/astro/types.d.mts.map +1 -1
  376. package/dist/auth/providers/github.d.mts +1 -1
  377. package/dist/auth/providers/google.d.mts +1 -1
  378. package/dist/auth/providers/microsoft.d.mts +1 -1
  379. package/dist/authoritative-records-CQlB3JzE.mjs +5183 -0
  380. package/dist/authoritative-records-CQlB3JzE.mjs.map +1 -0
  381. package/dist/authorize-NJgp8kLI.mjs +74 -0
  382. package/dist/authorize-NJgp8kLI.mjs.map +1 -0
  383. package/dist/backup-8rPSJ28a.mjs +246 -0
  384. package/dist/backup-8rPSJ28a.mjs.map +1 -0
  385. package/dist/block-types-BbOrfnWs.mjs +132 -0
  386. package/dist/block-types-BbOrfnWs.mjs.map +1 -0
  387. package/dist/block-values-Dg0-8PPS.mjs +215 -0
  388. package/dist/block-values-Dg0-8PPS.mjs.map +1 -0
  389. package/dist/byline-DHJS-GGb.mjs +994 -0
  390. package/dist/byline-DHJS-GGb.mjs.map +1 -0
  391. package/dist/byline-fields-CiR8FvvF.mjs +280 -0
  392. package/dist/byline-fields-CiR8FvvF.mjs.map +1 -0
  393. package/dist/byline-fields-D6KYsEa7.mjs +123 -0
  394. package/dist/byline-fields-D6KYsEa7.mjs.map +1 -0
  395. package/dist/bylines-Bsg5cH4S.mjs +234 -0
  396. package/dist/bylines-Bsg5cH4S.mjs.map +1 -0
  397. package/dist/bylines-f_ZEc6Sn.mjs +150 -0
  398. package/dist/bylines-f_ZEc6Sn.mjs.map +1 -0
  399. package/dist/cache-5DHbpEWu.mjs +151 -0
  400. package/dist/cache-5DHbpEWu.mjs.map +1 -0
  401. package/dist/canonical-BudtH-Fx.mjs +174 -0
  402. package/dist/canonical-BudtH-Fx.mjs.map +1 -0
  403. package/dist/capture-triggers-BezAvWcB.mjs +362 -0
  404. package/dist/capture-triggers-BezAvWcB.mjs.map +1 -0
  405. package/dist/challenge-store-B1C0V4b3.mjs +51 -0
  406. package/dist/challenge-store-B1C0V4b3.mjs.map +1 -0
  407. package/dist/checksum-CEqvfxGX.mjs +162 -0
  408. package/dist/checksum-CEqvfxGX.mjs.map +1 -0
  409. package/dist/chrome-tags-BIKBMZYO.mjs +24 -0
  410. package/dist/chrome-tags-BIKBMZYO.mjs.map +1 -0
  411. package/dist/chunks-DiW8VMwz.mjs +25 -0
  412. package/dist/chunks-DiW8VMwz.mjs.map +1 -0
  413. package/dist/cli/index.mjs +52 -53
  414. package/dist/cli/index.mjs.map +1 -1
  415. package/dist/client/index.d.mts +46 -46
  416. package/dist/client/index.mjs +2 -2
  417. package/dist/collection-slugs-cache-DIrLjqH-.mjs +91 -0
  418. package/dist/collection-slugs-cache-DIrLjqH-.mjs.map +1 -0
  419. package/dist/comment-DB74Zpa4.mjs +335 -0
  420. package/dist/comment-DB74Zpa4.mjs.map +1 -0
  421. package/dist/comment-reaction-BScxIWUn.mjs +85 -0
  422. package/dist/comment-reaction-BScxIWUn.mjs.map +1 -0
  423. package/dist/comments-Cor_zKml.mjs +195 -0
  424. package/dist/comments-Cor_zKml.mjs.map +1 -0
  425. package/dist/comments-yiRFx3w5.mjs +99 -0
  426. package/dist/comments-yiRFx3w5.mjs.map +1 -0
  427. package/dist/components-Brp__9xo.mjs +112 -0
  428. package/dist/components-Brp__9xo.mjs.map +1 -0
  429. package/dist/config-D44_8G9J.d.mts +41 -0
  430. package/dist/config-D44_8G9J.d.mts.map +1 -0
  431. package/dist/config-DBU6iUQB.mjs +228 -0
  432. package/dist/config-DBU6iUQB.mjs.map +1 -0
  433. package/dist/config-sDhZvkLR.d.mts +6835 -0
  434. package/dist/config-sDhZvkLR.d.mts.map +1 -0
  435. package/dist/connection-BtEN_lP9.mjs +36 -0
  436. package/dist/connection-BtEN_lP9.mjs.map +1 -0
  437. package/dist/content-BKHUVsE5.mjs +2112 -0
  438. package/dist/content-BKHUVsE5.mjs.map +1 -0
  439. package/dist/content-list-query-ByP4jRpZ.d.mts +26 -0
  440. package/dist/content-list-query-ByP4jRpZ.d.mts.map +1 -0
  441. package/dist/content-policy-BmE0MPZY.mjs +46 -0
  442. package/dist/content-policy-BmE0MPZY.mjs.map +1 -0
  443. package/dist/content-repair-Ukdxoq-R.mjs +442 -0
  444. package/dist/content-repair-Ukdxoq-R.mjs.map +1 -0
  445. package/dist/context-CzjejcsE.mjs +2089 -0
  446. package/dist/context-CzjejcsE.mjs.map +1 -0
  447. package/dist/credits-BKREepht.mjs +110 -0
  448. package/dist/credits-BKREepht.mjs.map +1 -0
  449. package/dist/cron-D7obTIfk.mjs +306 -0
  450. package/dist/cron-D7obTIfk.mjs.map +1 -0
  451. package/dist/dashboard-ynr1qJWM.mjs +168 -0
  452. package/dist/dashboard-ynr1qJWM.mjs.map +1 -0
  453. package/dist/db/index.d.mts +3 -3
  454. package/dist/db/index.mjs +2 -2
  455. package/dist/db/libsql-migrations.d.mts +1 -1
  456. package/dist/db/libsql-migrations.mjs +5 -5
  457. package/dist/db/libsql.d.mts +1 -1
  458. package/dist/db/postgres-migrations.d.mts +1 -1
  459. package/dist/db/postgres-migrations.mjs +5 -5
  460. package/dist/db/postgres.d.mts +1 -1
  461. package/dist/db/sqlite-migrations.d.mts +1 -1
  462. package/dist/db/sqlite-migrations.mjs +5 -5
  463. package/dist/db/sqlite.d.mts +1 -1
  464. package/dist/db/sqlite.mjs +1 -1
  465. package/dist/default-C0W-PhAp.mjs +81 -0
  466. package/dist/default-C0W-PhAp.mjs.map +1 -0
  467. package/dist/deferred-tasks-wlMFJL95.d.mts +10 -0
  468. package/dist/deferred-tasks-wlMFJL95.d.mts.map +1 -0
  469. package/dist/dev-typegen-EBni_pOQ.mjs +29 -0
  470. package/dist/dev-typegen-EBni_pOQ.mjs.map +1 -0
  471. package/dist/device-flow-D1U392GC.mjs +519 -0
  472. package/dist/device-flow-D1U392GC.mjs.map +1 -0
  473. package/dist/dialect-helpers-B1XN2HGB.mjs +314 -0
  474. package/dist/dialect-helpers-B1XN2HGB.mjs.map +1 -0
  475. package/dist/digest-DJ1tHCgy.mjs +194 -0
  476. package/dist/digest-DJ1tHCgy.mjs.map +1 -0
  477. package/dist/direct-executor-Bs2g0ake.mjs +117 -0
  478. package/dist/direct-executor-Bs2g0ake.mjs.map +1 -0
  479. package/dist/dist-BUmWMTbN.mjs +810 -0
  480. package/dist/dist-BUmWMTbN.mjs.map +1 -0
  481. package/dist/email-console-FFVJWb9N.mjs +50 -0
  482. package/dist/email-console-FFVJWb9N.mjs.map +1 -0
  483. package/dist/email-locale-Bs3HFdnq.mjs +25 -0
  484. package/dist/email-locale-Bs3HFdnq.mjs.map +1 -0
  485. package/dist/emdash-runtime-C8T-pZpS.mjs +4425 -0
  486. package/dist/emdash-runtime-C8T-pZpS.mjs.map +1 -0
  487. package/dist/enrich-DFlfnd3u.mjs +194 -0
  488. package/dist/enrich-DFlfnd3u.mjs.map +1 -0
  489. package/dist/entry-lock-BulbgPBX.d.mts +4568 -0
  490. package/dist/entry-lock-BulbgPBX.d.mts.map +1 -0
  491. package/dist/entry-lock-CRVmruM0.mjs +1211 -0
  492. package/dist/entry-lock-CRVmruM0.mjs.map +1 -0
  493. package/dist/entry-lock-D-zJQ4q6.mjs +163 -0
  494. package/dist/entry-lock-D-zJQ4q6.mjs.map +1 -0
  495. package/dist/entry-locks-CJ9uhqg1.mjs +167 -0
  496. package/dist/entry-locks-CJ9uhqg1.mjs.map +1 -0
  497. package/dist/env-types-BE3bCvfP.mjs +38 -0
  498. package/dist/env-types-BE3bCvfP.mjs.map +1 -0
  499. package/dist/error-BCMgPxdn.mjs +90 -0
  500. package/dist/error-BCMgPxdn.mjs.map +1 -0
  501. package/dist/errors-8gJqv-XV.mjs +492 -0
  502. package/dist/errors-8gJqv-XV.mjs.map +1 -0
  503. package/dist/errors-B4f4It-2.mjs +120 -0
  504. package/dist/errors-B4f4It-2.mjs.map +1 -0
  505. package/dist/escape-lsNq38PP.mjs +9 -0
  506. package/dist/escape-lsNq38PP.mjs.map +1 -0
  507. package/dist/fence-Dagicj14.mjs +162 -0
  508. package/dist/fence-Dagicj14.mjs.map +1 -0
  509. package/dist/field-map-BSXdNGt5.mjs +84 -0
  510. package/dist/field-map-BSXdNGt5.mjs.map +1 -0
  511. package/dist/fts-manager-6861qcwk.mjs +489 -0
  512. package/dist/fts-manager-6861qcwk.mjs.map +1 -0
  513. package/dist/gc-CNkXB3mE.mjs +75 -0
  514. package/dist/gc-CNkXB3mE.mjs.map +1 -0
  515. package/dist/hash-BJaeek87.mjs +37 -0
  516. package/dist/hash-BJaeek87.mjs.map +1 -0
  517. package/dist/hreflang-8dUOJAPJ.d.mts +50 -0
  518. package/dist/hreflang-8dUOJAPJ.d.mts.map +1 -0
  519. package/dist/hreflang-BW5A4FLK.mjs +105 -0
  520. package/dist/hreflang-BW5A4FLK.mjs.map +1 -0
  521. package/dist/http-route-dispatch-rXKvTNm9.mjs +342 -0
  522. package/dist/http-route-dispatch-rXKvTNm9.mjs.map +1 -0
  523. package/dist/identity-CPRRSovU.mjs +35 -0
  524. package/dist/identity-CPRRSovU.mjs.map +1 -0
  525. package/dist/import-yVbfPyfd.mjs +2126 -0
  526. package/dist/import-yVbfPyfd.mjs.map +1 -0
  527. package/dist/index-VM7Fzxwe.d.mts +260 -0
  528. package/dist/index-VM7Fzxwe.d.mts.map +1 -0
  529. package/dist/index.d.mts +23 -22
  530. package/dist/index.mjs +104 -105
  531. package/dist/install-finalization-RU6VrHOX.mjs +58 -0
  532. package/dist/install-finalization-RU6VrHOX.mjs.map +1 -0
  533. package/dist/json-recordset-D0WhN2UA.mjs +12 -0
  534. package/dist/json-recordset-D0WhN2UA.mjs.map +1 -0
  535. package/dist/json-schema-v_D_pPNG.mjs +15 -0
  536. package/dist/json-schema-v_D_pPNG.mjs.map +1 -0
  537. package/dist/keys-CifIkT0N.mjs +61 -0
  538. package/dist/keys-CifIkT0N.mjs.map +1 -0
  539. package/dist/kinds-B_Qcl5pz.mjs +974 -0
  540. package/dist/kinds-B_Qcl5pz.mjs.map +1 -0
  541. package/dist/lifecycle-B8d7Rdqx.mjs +25 -0
  542. package/dist/lifecycle-B8d7Rdqx.mjs.map +1 -0
  543. package/dist/load-D4xtzm6h.mjs +28 -0
  544. package/dist/load-D4xtzm6h.mjs.map +1 -0
  545. package/dist/loader-DhnedqY4.mjs +1478 -0
  546. package/dist/loader-DhnedqY4.mjs.map +1 -0
  547. package/dist/loops-B2YS-Zzr.mjs +205 -0
  548. package/dist/loops-B2YS-Zzr.mjs.map +1 -0
  549. package/dist/manifest-builder-g1FLviel.mjs +196 -0
  550. package/dist/manifest-builder-g1FLviel.mjs.map +1 -0
  551. package/dist/manifest-schema-DNb4XmTS.mjs +497 -0
  552. package/dist/manifest-schema-DNb4XmTS.mjs.map +1 -0
  553. package/dist/marketplace-CqbgeIa7.mjs +257 -0
  554. package/dist/marketplace-CqbgeIa7.mjs.map +1 -0
  555. package/dist/media/image-endpoint.mjs +1 -1
  556. package/dist/media/index.d.mts +1 -1
  557. package/dist/media/index.mjs +3 -3
  558. package/dist/media/local-runtime.d.mts +14 -13
  559. package/dist/media/local-runtime.d.mts.map +1 -1
  560. package/dist/media/local-runtime.mjs +14 -14
  561. package/dist/media-BR4_t-Wd.mjs +416 -0
  562. package/dist/media-BR4_t-Wd.mjs.map +1 -0
  563. package/dist/media-CikS-q6E.mjs +294 -0
  564. package/dist/media-CikS-q6E.mjs.map +1 -0
  565. package/dist/media-DepNLhPq.mjs +383 -0
  566. package/dist/media-DepNLhPq.mjs.map +1 -0
  567. package/dist/media-allowlist-BMBLqyWh.mjs +45 -0
  568. package/dist/media-allowlist-BMBLqyWh.mjs.map +1 -0
  569. package/dist/media-folders-CI0Wydfo.mjs +210 -0
  570. package/dist/media-folders-CI0Wydfo.mjs.map +1 -0
  571. package/dist/media-url-BQgKvpQ5.mjs +43 -0
  572. package/dist/media-url-BQgKvpQ5.mjs.map +1 -0
  573. package/dist/media-usage-X1_20MY-.mjs +282 -0
  574. package/dist/media-usage-X1_20MY-.mjs.map +1 -0
  575. package/dist/media-usage-activation-bWusy3M2.mjs +78 -0
  576. package/dist/media-usage-activation-bWusy3M2.mjs.map +1 -0
  577. package/dist/media-usage-work-B2RaoJIa.mjs +151 -0
  578. package/dist/media-usage-work-B2RaoJIa.mjs.map +1 -0
  579. package/dist/media-usage-work-BCK2J-v_.mjs +1036 -0
  580. package/dist/media-usage-work-BCK2J-v_.mjs.map +1 -0
  581. package/dist/menus-B0Qqv_cS.mjs +837 -0
  582. package/dist/menus-B0Qqv_cS.mjs.map +1 -0
  583. package/dist/menus-oypxT1pI.mjs +3802 -0
  584. package/dist/menus-oypxT1pI.mjs.map +1 -0
  585. package/dist/menus-uEAxWAm1.mjs +92 -0
  586. package/dist/menus-uEAxWAm1.mjs.map +1 -0
  587. package/dist/migrations/index.d.mts +1 -1
  588. package/dist/migrations/index.mjs +4 -4
  589. package/dist/mime-D1We9jUx.mjs +81 -0
  590. package/dist/mime-D1We9jUx.mjs.map +1 -0
  591. package/dist/mode-C-D3qICy.mjs +23 -0
  592. package/dist/mode-C-D3qICy.mjs.map +1 -0
  593. package/dist/node-sqlite-compat-CrKzRr0J.mjs +63 -0
  594. package/dist/node-sqlite-compat-CrKzRr0J.mjs.map +1 -0
  595. package/dist/normalize-Cx-bNwhP.mjs +220 -0
  596. package/dist/normalize-Cx-bNwhP.mjs.map +1 -0
  597. package/dist/oauth-authorization-CPLgBrdo.mjs +287 -0
  598. package/dist/oauth-authorization-CPLgBrdo.mjs.map +1 -0
  599. package/dist/oauth-clients-BT0Pg-MO.mjs +266 -0
  600. package/dist/oauth-clients-BT0Pg-MO.mjs.map +1 -0
  601. package/dist/oauth-state-store-BndCfRum.mjs +50 -0
  602. package/dist/oauth-state-store-BndCfRum.mjs.map +1 -0
  603. package/dist/oauth-user-lookup-BDgF6IVG.mjs +26 -0
  604. package/dist/oauth-user-lookup-BDgF6IVG.mjs.map +1 -0
  605. package/dist/object-cache/memory.d.mts +1 -1
  606. package/dist/object-cache-DmKr09La.mjs +603 -0
  607. package/dist/object-cache-DmKr09La.mjs.map +1 -0
  608. package/dist/options-BUUgroHg.d.mts +81 -0
  609. package/dist/options-BUUgroHg.d.mts.map +1 -0
  610. package/dist/ownership-MiyA7qKO.mjs +12 -0
  611. package/dist/ownership-MiyA7qKO.mjs.map +1 -0
  612. package/dist/page/index.d.mts +2 -2
  613. package/dist/page/index.mjs +13 -13
  614. package/dist/parse-B_b6gZxG.mjs +81 -0
  615. package/dist/parse-B_b6gZxG.mjs.map +1 -0
  616. package/dist/parse-Dndx1QmN.d.mts +176 -0
  617. package/dist/parse-Dndx1QmN.d.mts.map +1 -0
  618. package/dist/passkey-config-D2Lua5__.mjs +46 -0
  619. package/dist/passkey-config-D2Lua5__.mjs.map +1 -0
  620. package/dist/paths-biDzFTY2.mjs +77 -0
  621. package/dist/paths-biDzFTY2.mjs.map +1 -0
  622. package/dist/placeholder-CSKu5OkD.d.mts +314 -0
  623. package/dist/placeholder-CSKu5OkD.d.mts.map +1 -0
  624. package/dist/plan-CCoqxNoU.mjs +135 -0
  625. package/dist/plan-CCoqxNoU.mjs.map +1 -0
  626. package/dist/plugin-test-runtime.d.mts +16 -14
  627. package/dist/plugin-test-runtime.d.mts.map +1 -1
  628. package/dist/plugin-test-runtime.mjs +114 -115
  629. package/dist/plugin-tool-name-DDUgN_0p.mjs +27 -0
  630. package/dist/plugin-tool-name-DDUgN_0p.mjs.map +1 -0
  631. package/dist/plugin-types.d.mts +1 -1
  632. package/dist/plugin-utils.d.mts +12 -11
  633. package/dist/plugin-utils.d.mts.map +1 -1
  634. package/dist/plugins/adapt-sandbox-entry.d.mts +12 -11
  635. package/dist/plugins/adapt-sandbox-entry.d.mts.map +1 -1
  636. package/dist/plugins/adapt-sandbox-entry.mjs +4 -4
  637. package/dist/plugins/host.d.mts +5 -5
  638. package/dist/plugins/host.mjs +50 -51
  639. package/dist/plugins-COJ2L49n.mjs +261 -0
  640. package/dist/plugins-COJ2L49n.mjs.map +1 -0
  641. package/dist/policy-BPugqmeV.mjs +53 -0
  642. package/dist/policy-BPugqmeV.mjs.map +1 -0
  643. package/dist/portable-text-BH4zgkSm.mjs +311 -0
  644. package/dist/portable-text-BH4zgkSm.mjs.map +1 -0
  645. package/dist/preview-DLexxwp3.mjs +107 -0
  646. package/dist/preview-DLexxwp3.mjs.map +1 -0
  647. package/dist/protocol-PoAfD_9W.d.mts +65 -0
  648. package/dist/protocol-PoAfD_9W.d.mts.map +1 -0
  649. package/dist/public-plugin-api-routes-CMljrTby.mjs +316 -0
  650. package/dist/public-plugin-api-routes-CMljrTby.mjs.map +1 -0
  651. package/dist/public-submission-ayqoyee4.mjs +251 -0
  652. package/dist/public-submission-ayqoyee4.mjs.map +1 -0
  653. package/dist/public-url-Bt98vysr.mjs +101 -0
  654. package/dist/public-url-Bt98vysr.mjs.map +1 -0
  655. package/dist/query-D62NntCZ.mjs +1146 -0
  656. package/dist/query-D62NntCZ.mjs.map +1 -0
  657. package/dist/query-LmPY2y0C.mjs +41 -0
  658. package/dist/query-LmPY2y0C.mjs.map +1 -0
  659. package/dist/range-CYfeXgGK.mjs +51 -0
  660. package/dist/range-CYfeXgGK.mjs.map +1 -0
  661. package/dist/rate-limit-C04Llsoc.mjs +127 -0
  662. package/dist/rate-limit-C04Llsoc.mjs.map +1 -0
  663. package/dist/receipt-BUsQCOeM.mjs +43 -0
  664. package/dist/receipt-BUsQCOeM.mjs.map +1 -0
  665. package/dist/redirect-CQAV7mCo.mjs +19 -0
  666. package/dist/redirect-CQAV7mCo.mjs.map +1 -0
  667. package/dist/redirect-DjLdw427.mjs +423 -0
  668. package/dist/redirect-DjLdw427.mjs.map +1 -0
  669. package/dist/redirect-paths-DOaVBp6E.mjs +36 -0
  670. package/dist/redirect-paths-DOaVBp6E.mjs.map +1 -0
  671. package/dist/redirects-Cpq1catN.mjs +446 -0
  672. package/dist/redirects-Cpq1catN.mjs.map +1 -0
  673. package/dist/redirects-CyvvZrCJ.mjs +148 -0
  674. package/dist/redirects-CyvvZrCJ.mjs.map +1 -0
  675. package/dist/registry/testing.mjs +3 -3
  676. package/dist/registry-B0-O575m.mjs +8374 -0
  677. package/dist/registry-B0-O575m.mjs.map +1 -0
  678. package/dist/relations-WIOojTL4.mjs +789 -0
  679. package/dist/relations-WIOojTL4.mjs.map +1 -0
  680. package/dist/request-context.d.mts +2 -2
  681. package/dist/request-meta-bwZ_NsvU.mjs +141 -0
  682. package/dist/request-meta-bwZ_NsvU.mjs.map +1 -0
  683. package/dist/resolve-BNnm8EkB.mjs +102 -0
  684. package/dist/resolve-BNnm8EkB.mjs.map +1 -0
  685. package/dist/route-cache-QSOyDEw0.mjs +20 -0
  686. package/dist/route-cache-QSOyDEw0.mjs.map +1 -0
  687. package/dist/route-wire-Ca_HWCZ5.mjs +197 -0
  688. package/dist/route-wire-Ca_HWCZ5.mjs.map +1 -0
  689. package/dist/routes-avqgc-8r.mjs +272 -0
  690. package/dist/routes-avqgc-8r.mjs.map +1 -0
  691. package/dist/runner-Bkkfk4O8.mjs +6669 -0
  692. package/dist/runner-Bkkfk4O8.mjs.map +1 -0
  693. package/dist/runner-Dfgp6-S_.d.mts +73 -0
  694. package/dist/runner-Dfgp6-S_.d.mts.map +1 -0
  695. package/dist/runtime.d.mts +13 -12
  696. package/dist/runtime.d.mts.map +1 -1
  697. package/dist/runtime.mjs +4 -3
  698. package/dist/runtime.mjs.map +1 -1
  699. package/dist/schema/project-env-types.mjs +42 -43
  700. package/dist/schema/project-env-types.mjs.map +1 -1
  701. package/dist/schema-B-3rntlX.mjs +815 -0
  702. package/dist/schema-B-3rntlX.mjs.map +1 -0
  703. package/dist/schema-BqBlUZtb.mjs +13 -0
  704. package/dist/schema-BqBlUZtb.mjs.map +1 -0
  705. package/dist/scopes-DNaY7Ey0.mjs +34 -0
  706. package/dist/scopes-DNaY7Ey0.mjs.map +1 -0
  707. package/dist/search-BPWTnpnD.mjs +450 -0
  708. package/dist/search-BPWTnpnD.mjs.map +1 -0
  709. package/dist/secrets-Dswzrz3k.mjs +369 -0
  710. package/dist/secrets-Dswzrz3k.mjs.map +1 -0
  711. package/dist/sections-rSao6rBG.mjs +346 -0
  712. package/dist/sections-rSao6rBG.mjs.map +1 -0
  713. package/dist/seed/index.d.mts +2 -2
  714. package/dist/seed/index.mjs +40 -41
  715. package/dist/seo/index.d.mts +3 -3
  716. package/dist/seo/index.mjs +27 -27
  717. package/dist/seo-B_H_pqOd.mjs +133 -0
  718. package/dist/seo-B_H_pqOd.mjs.map +1 -0
  719. package/dist/seo-ClB-dw9w.mjs +188 -0
  720. package/dist/seo-ClB-dw9w.mjs.map +1 -0
  721. package/dist/service-DpiUQVpp.mjs +150 -0
  722. package/dist/service-DpiUQVpp.mjs.map +1 -0
  723. package/dist/session-user-DiE4JKPP.mjs +61 -0
  724. package/dist/session-user-DiE4JKPP.mjs.map +1 -0
  725. package/dist/settings--XlUdUaI.mjs +66 -0
  726. package/dist/settings--XlUdUaI.mjs.map +1 -0
  727. package/dist/settings-D932YP2-.mjs +519 -0
  728. package/dist/settings-D932YP2-.mjs.map +1 -0
  729. package/dist/settings-Dd1uivmQ.mjs +73 -0
  730. package/dist/settings-Dd1uivmQ.mjs.map +1 -0
  731. package/dist/setup-complete-qsJYWutC.mjs +65 -0
  732. package/dist/setup-complete-qsJYWutC.mjs.map +1 -0
  733. package/dist/setup-nonce-CBFgUFXw.mjs +25 -0
  734. package/dist/setup-nonce-CBFgUFXw.mjs.map +1 -0
  735. package/dist/site-domain-oRGS_JfA.mjs +131 -0
  736. package/dist/site-domain-oRGS_JfA.mjs.map +1 -0
  737. package/dist/site-settings-DRHfX7bq.mjs +50 -0
  738. package/dist/site-settings-DRHfX7bq.mjs.map +1 -0
  739. package/dist/site-url-MB685I5X.mjs +45 -0
  740. package/dist/site-url-MB685I5X.mjs.map +1 -0
  741. package/dist/sitemap-name-B8QP8wud.mjs +26 -0
  742. package/dist/sitemap-name-B8QP8wud.mjs.map +1 -0
  743. package/dist/slug-aVnUV4SL.mjs +16 -0
  744. package/dist/slug-aVnUV4SL.mjs.map +1 -0
  745. package/dist/snapshot-BjaXDZQ5.mjs +414 -0
  746. package/dist/snapshot-BjaXDZQ5.mjs.map +1 -0
  747. package/dist/ssrf-BcYjyM4M.mjs +406 -0
  748. package/dist/ssrf-BcYjyM4M.mjs.map +1 -0
  749. package/dist/stage-CZQnXM_G.mjs +662 -0
  750. package/dist/stage-CZQnXM_G.mjs.map +1 -0
  751. package/dist/staged-ByBmPFtX.mjs +686 -0
  752. package/dist/staged-ByBmPFtX.mjs.map +1 -0
  753. package/dist/state-CFbGZziM.mjs +178 -0
  754. package/dist/state-CFbGZziM.mjs.map +1 -0
  755. package/dist/status-BFNdxzKc.mjs +30 -0
  756. package/dist/status-BFNdxzKc.mjs.map +1 -0
  757. package/dist/storage/local.d.mts +1 -1
  758. package/dist/storage/local.mjs +2 -2
  759. package/dist/storage/s3.d.mts +1 -1
  760. package/dist/storage/s3.mjs +1 -1
  761. package/dist/storage-query-BFp06Y0s.d.mts +1627 -0
  762. package/dist/storage-query-BFp06Y0s.d.mts.map +1 -0
  763. package/dist/tar-DFjExb9X.mjs +449 -0
  764. package/dist/tar-DFjExb9X.mjs.map +1 -0
  765. package/dist/target-CWZs2-o6.mjs +27 -0
  766. package/dist/target-CWZs2-o6.mjs.map +1 -0
  767. package/dist/taxonomies-5SR76j11.mjs +937 -0
  768. package/dist/taxonomies-5SR76j11.mjs.map +1 -0
  769. package/dist/taxonomies-B__VmCKQ.mjs +703 -0
  770. package/dist/taxonomies-B__VmCKQ.mjs.map +1 -0
  771. package/dist/taxonomy-CMI5fczd.mjs +563 -0
  772. package/dist/taxonomy-CMI5fczd.mjs.map +1 -0
  773. package/dist/tokens-BnhSnGwJ.mjs +171 -0
  774. package/dist/tokens-BnhSnGwJ.mjs.map +1 -0
  775. package/dist/transfer-BbKfufJ4.mjs +166 -0
  776. package/dist/transfer-BbKfufJ4.mjs.map +1 -0
  777. package/dist/transfer-DTGblAj2.mjs +8910 -0
  778. package/dist/transfer-DTGblAj2.mjs.map +1 -0
  779. package/dist/transfer-download-D9LQEDX0.mjs +33 -0
  780. package/dist/transfer-download-D9LQEDX0.mjs.map +1 -0
  781. package/dist/transformations-Bx4lYY0Y.mjs +196 -0
  782. package/dist/transformations-Bx4lYY0Y.mjs.map +1 -0
  783. package/dist/transport-Dzpn5b3i.mjs +137 -0
  784. package/dist/transport-Dzpn5b3i.mjs.map +1 -0
  785. package/dist/trusted-proxy-BU3Nx9g1.mjs +51 -0
  786. package/dist/trusted-proxy-BU3Nx9g1.mjs.map +1 -0
  787. package/dist/turnstile-Cs2wfkJG.mjs +58 -0
  788. package/dist/turnstile-Cs2wfkJG.mjs.map +1 -0
  789. package/dist/types-BAsCk5KU.d.mts +87 -0
  790. package/dist/types-BAsCk5KU.d.mts.map +1 -0
  791. package/dist/types-BuvSwT9Y.d.mts +375 -0
  792. package/dist/types-BuvSwT9Y.d.mts.map +1 -0
  793. package/dist/types-C4KT3Md2.d.mts +293 -0
  794. package/dist/types-C4KT3Md2.d.mts.map +1 -0
  795. package/dist/types-CVXHwIBB.d.mts +125 -0
  796. package/dist/types-CVXHwIBB.d.mts.map +1 -0
  797. package/dist/types-C_asjp1J.mjs.map +1 -1
  798. package/dist/types-CgfFGfO5.mjs +16 -0
  799. package/dist/types-CgfFGfO5.mjs.map +1 -0
  800. package/dist/types-Cj0_yZkn.mjs +18 -0
  801. package/dist/types-Cj0_yZkn.mjs.map +1 -0
  802. package/dist/types-CjftrmZR.d.mts +1741 -0
  803. package/dist/types-CjftrmZR.d.mts.map +1 -0
  804. package/dist/types-DKwRUA-x.d.mts +916 -0
  805. package/dist/types-DKwRUA-x.d.mts.map +1 -0
  806. package/dist/types-DwhEvIVb.mjs.map +1 -1
  807. package/dist/types-GwAyS5SH.d.mts +227 -0
  808. package/dist/types-GwAyS5SH.d.mts.map +1 -0
  809. package/dist/types-qHVygneX.mjs +77 -0
  810. package/dist/types-qHVygneX.mjs.map +1 -0
  811. package/dist/types-sUHaH7lC.mjs +37 -0
  812. package/dist/types-sUHaH7lC.mjs.map +1 -0
  813. package/dist/types-uU2YNYSt.d.mts +209 -0
  814. package/dist/types-uU2YNYSt.d.mts.map +1 -0
  815. package/dist/update-check-ABBJgg6M.mjs +161 -0
  816. package/dist/update-check-ABBJgg6M.mjs.map +1 -0
  817. package/dist/upload-attempts-DPFC4COv.mjs +32 -0
  818. package/dist/upload-attempts-DPFC4COv.mjs.map +1 -0
  819. package/dist/url-pattern-QATUE_rv.mjs +41 -0
  820. package/dist/url-pattern-QATUE_rv.mjs.map +1 -0
  821. package/dist/user-By8SzQxS.mjs +171 -0
  822. package/dist/user-By8SzQxS.mjs.map +1 -0
  823. package/dist/utils-D5uOi6WS.mjs +450 -0
  824. package/dist/utils-D5uOi6WS.mjs.map +1 -0
  825. package/dist/utils-Szp4iBQB.d.mts +376 -0
  826. package/dist/utils-Szp4iBQB.d.mts.map +1 -0
  827. package/dist/validate-DDvxy6qG.d.mts +468 -0
  828. package/dist/validate-DDvxy6qG.d.mts.map +1 -0
  829. package/dist/validate-Dz-TIOFB.mjs +524 -0
  830. package/dist/validate-Dz-TIOFB.mjs.map +1 -0
  831. package/dist/validation-Fc9ZSUS_.mjs +221 -0
  832. package/dist/validation-Fc9ZSUS_.mjs.map +1 -0
  833. package/dist/version-BZj18Q7G.mjs +9 -0
  834. package/dist/version-BZj18Q7G.mjs.map +1 -0
  835. package/dist/version-Bu6Nlbb5.mjs +7 -0
  836. package/dist/version-Bu6Nlbb5.mjs.map +1 -0
  837. package/dist/version-DqB7LIO7.mjs +49 -0
  838. package/dist/version-DqB7LIO7.mjs.map +1 -0
  839. package/dist/video-DytCnw3L.mjs +54 -0
  840. package/dist/video-DytCnw3L.mjs.map +1 -0
  841. package/dist/virtual-modules-DO954n7P.mjs +515 -0
  842. package/dist/virtual-modules-DO954n7P.mjs.map +1 -0
  843. package/dist/widgets-BUx_Mf2q.mjs +134 -0
  844. package/dist/widgets-BUx_Mf2q.mjs.map +1 -0
  845. package/dist/wxr-taxonomies-DbJtWrWM.mjs +454 -0
  846. package/dist/wxr-taxonomies-DbJtWrWM.mjs.map +1 -0
  847. package/dist/zod-generator--nlM0930.mjs +425 -0
  848. package/dist/zod-generator--nlM0930.mjs.map +1 -0
  849. package/package.json +5 -5
  850. package/src/api/handlers/content.ts +49 -18
  851. package/src/api/handlers/device-flow.ts +1 -3
  852. package/src/api/handlers/menus.ts +3 -3
  853. package/src/api/handlers/oauth-authorization.ts +1 -3
  854. package/src/astro/integration/admin-nav.ts +52 -0
  855. package/src/astro/integration/index.ts +7 -0
  856. package/src/astro/integration/runtime.ts +14 -0
  857. package/src/astro/integration/shims/use-sync-external-store-with-selector.js +2 -0
  858. package/src/astro/integration/shims/use-sync-external-store.js +4 -1
  859. package/src/astro/middleware/auth.ts +9 -2
  860. package/src/astro/routes/api/import/wordpress/analyze.ts +5 -29
  861. package/src/astro/routes/api/import/wordpress-plugin/execute.ts +3 -3
  862. package/src/astro/routes/api/media/file/[...key].ts +18 -4
  863. package/src/astro/routes/api/oauth/token.ts +5 -1
  864. package/src/astro/routes/api/widget-areas/[name]/reorder.ts +7 -1
  865. package/src/astro/routes/api/widget-areas/[name]/widgets/[id].ts +3 -1
  866. package/src/astro/routes/api/widget-areas/[name]/widgets.ts +2 -1
  867. package/src/astro/routes/api/widget-areas/[name].ts +2 -1
  868. package/src/astro/routes/api/widget-areas/index.ts +2 -1
  869. package/src/astro/types.ts +4 -3
  870. package/src/auth/api-tokens.ts +3 -0
  871. package/src/cleanup.ts +44 -0
  872. package/src/components/inline-bubble-menu.tsx +109 -95
  873. package/src/components/inline-image.tsx +54 -48
  874. package/src/database/dialect-helpers.ts +10 -3
  875. package/src/database/repositories/byline.ts +22 -14
  876. package/src/database/repositories/content.ts +17 -4
  877. package/src/database/repositories/media.ts +17 -0
  878. package/src/database/repositories/menu.ts +163 -132
  879. package/src/database/repositories/types.ts +3 -3
  880. package/src/database/types.ts +1 -1
  881. package/src/emdash-runtime.ts +23 -7
  882. package/src/import/utils.ts +15 -2
  883. package/src/index.ts +1 -0
  884. package/src/loader.ts +106 -95
  885. package/src/media/content-disposition.ts +56 -0
  886. package/src/media/normalize.ts +2 -0
  887. package/src/media/usage/content-fields.ts +2 -1
  888. package/src/menus/index.ts +137 -25
  889. package/src/object-cache/index.ts +22 -0
  890. package/src/plugin-test-runtime.ts +1 -0
  891. package/src/query.ts +44 -40
  892. package/src/schema/types.ts +7 -6
  893. package/src/search/fts-manager.ts +5 -3
  894. package/src/seed/apply.ts +52 -44
  895. package/src/seed/types.ts +3 -3
  896. package/src/taxonomies/index.ts +22 -51
  897. package/src/transfer/import/advance.ts +12 -1
  898. package/src/transfer/import/scaffold.ts +7 -1
  899. package/src/transfer/import/stages.ts +53 -2
  900. package/src/utils/revalidating-cache.ts +85 -0
  901. package/src/visual-editing/toolbar.ts +7 -2
  902. package/src/widgets/index.ts +27 -13
  903. package/dist/action-token-B1ds4laA.mjs +0 -26
  904. package/dist/action-token-B1ds4laA.mjs.map +0 -1
  905. package/dist/activation-sGF9br3X.mjs +0 -387
  906. package/dist/activation-sGF9br3X.mjs.map +0 -1
  907. package/dist/adapters-BOMSX9PU.d.mts +0 -173
  908. package/dist/adapters-BOMSX9PU.d.mts.map +0 -1
  909. package/dist/after-PcEvMY_6.mjs +0 -96
  910. package/dist/after-PcEvMY_6.mjs.map +0 -1
  911. package/dist/allowed-origins-CovsTkm3.mjs +0 -116
  912. package/dist/allowed-origins-CovsTkm3.mjs.map +0 -1
  913. package/dist/api-C_LxFnOm.mjs +0 -5077
  914. package/dist/api-C_LxFnOm.mjs.map +0 -1
  915. package/dist/api-tokens-C7l0GUAF.mjs +0 -3
  916. package/dist/api-tokens-DQ9Ee-vP.mjs +0 -173
  917. package/dist/api-tokens-DQ9Ee-vP.mjs.map +0 -1
  918. package/dist/apply-CLjfxvyH.mjs +0 -1758
  919. package/dist/apply-CLjfxvyH.mjs.map +0 -1
  920. package/dist/approvals-ocK89i4H.mjs +0 -460
  921. package/dist/approvals-ocK89i4H.mjs.map +0 -1
  922. package/dist/artifact-fetch-CgvvpoWQ.mjs +0 -659
  923. package/dist/artifact-fetch-CgvvpoWQ.mjs.map +0 -1
  924. package/dist/artifacts-DwOYYBQm.mjs +0 -323
  925. package/dist/artifacts-DwOYYBQm.mjs.map +0 -1
  926. package/dist/authoritative-records-LPtrIGOY.mjs +0 -5183
  927. package/dist/authoritative-records-LPtrIGOY.mjs.map +0 -1
  928. package/dist/authorize-CoDsRRp5.mjs +0 -74
  929. package/dist/authorize-CoDsRRp5.mjs.map +0 -1
  930. package/dist/backup-2Wj-hTCN.mjs +0 -246
  931. package/dist/backup-2Wj-hTCN.mjs.map +0 -1
  932. package/dist/block-types-C3gJEe7l.mjs +0 -132
  933. package/dist/block-types-C3gJEe7l.mjs.map +0 -1
  934. package/dist/block-values-CgbMtSGU.mjs +0 -215
  935. package/dist/block-values-CgbMtSGU.mjs.map +0 -1
  936. package/dist/byline-CzGZC2Zs.mjs +0 -922
  937. package/dist/byline-CzGZC2Zs.mjs.map +0 -1
  938. package/dist/byline-fields-B1qHvRps.mjs +0 -280
  939. package/dist/byline-fields-B1qHvRps.mjs.map +0 -1
  940. package/dist/byline-fields-vYd_4Q1e.mjs +0 -123
  941. package/dist/byline-fields-vYd_4Q1e.mjs.map +0 -1
  942. package/dist/bylines-BF555iIz.mjs +0 -150
  943. package/dist/bylines-BF555iIz.mjs.map +0 -1
  944. package/dist/bylines-DJx6IWWi.mjs +0 -234
  945. package/dist/bylines-DJx6IWWi.mjs.map +0 -1
  946. package/dist/cache-BWzswWB-.mjs +0 -151
  947. package/dist/cache-BWzswWB-.mjs.map +0 -1
  948. package/dist/canonical-DjF_z6GI.mjs +0 -174
  949. package/dist/canonical-DjF_z6GI.mjs.map +0 -1
  950. package/dist/capture-triggers-D7g3fOZj.mjs +0 -362
  951. package/dist/capture-triggers-D7g3fOZj.mjs.map +0 -1
  952. package/dist/challenge-store-Cfjdvw86.mjs +0 -51
  953. package/dist/challenge-store-Cfjdvw86.mjs.map +0 -1
  954. package/dist/checksum-BF4acJwn.mjs +0 -162
  955. package/dist/checksum-BF4acJwn.mjs.map +0 -1
  956. package/dist/chrome-tags-BDs29G3g.mjs +0 -24
  957. package/dist/chrome-tags-BDs29G3g.mjs.map +0 -1
  958. package/dist/chunks-CYBOL-zn.mjs +0 -25
  959. package/dist/chunks-CYBOL-zn.mjs.map +0 -1
  960. package/dist/collection-slugs-cache-B2J5aESO.mjs +0 -91
  961. package/dist/collection-slugs-cache-B2J5aESO.mjs.map +0 -1
  962. package/dist/comment-DV7dybcs.mjs +0 -335
  963. package/dist/comment-DV7dybcs.mjs.map +0 -1
  964. package/dist/comment-reaction-CWwqiT6x.mjs +0 -85
  965. package/dist/comment-reaction-CWwqiT6x.mjs.map +0 -1
  966. package/dist/comments-DVjWJm8X.mjs +0 -99
  967. package/dist/comments-DVjWJm8X.mjs.map +0 -1
  968. package/dist/comments-Q-ILHCEI.mjs +0 -195
  969. package/dist/comments-Q-ILHCEI.mjs.map +0 -1
  970. package/dist/components-DnOmvvgg.mjs +0 -112
  971. package/dist/components-DnOmvvgg.mjs.map +0 -1
  972. package/dist/config-9IzA83_U.d.mts +0 -6811
  973. package/dist/config-9IzA83_U.d.mts.map +0 -1
  974. package/dist/config-BdQzFtmR.mjs +0 -228
  975. package/dist/config-BdQzFtmR.mjs.map +0 -1
  976. package/dist/config-Cs2RBkJ6.d.mts +0 -41
  977. package/dist/config-Cs2RBkJ6.d.mts.map +0 -1
  978. package/dist/connection-CiXgZyCY.mjs +0 -36
  979. package/dist/connection-CiXgZyCY.mjs.map +0 -1
  980. package/dist/content-Dt0Os_WQ.mjs +0 -2109
  981. package/dist/content-Dt0Os_WQ.mjs.map +0 -1
  982. package/dist/content-list-query-BK26u9Ly.d.mts +0 -26
  983. package/dist/content-list-query-BK26u9Ly.d.mts.map +0 -1
  984. package/dist/content-policy-BLDbNJOb.mjs +0 -46
  985. package/dist/content-policy-BLDbNJOb.mjs.map +0 -1
  986. package/dist/content-repair-CjwbLy4m.mjs +0 -442
  987. package/dist/content-repair-CjwbLy4m.mjs.map +0 -1
  988. package/dist/context-ErV7UdQY.mjs +0 -2089
  989. package/dist/context-ErV7UdQY.mjs.map +0 -1
  990. package/dist/credits-BRyjafiF.mjs +0 -110
  991. package/dist/credits-BRyjafiF.mjs.map +0 -1
  992. package/dist/cron-Bm5xa7tv.mjs +0 -306
  993. package/dist/cron-Bm5xa7tv.mjs.map +0 -1
  994. package/dist/dashboard-DVxQ5XiI.mjs +0 -168
  995. package/dist/dashboard-DVxQ5XiI.mjs.map +0 -1
  996. package/dist/default-B9Tf2n94.mjs +0 -81
  997. package/dist/default-B9Tf2n94.mjs.map +0 -1
  998. package/dist/deferred-tasks-CpPEqsga.d.mts +0 -9
  999. package/dist/deferred-tasks-CpPEqsga.d.mts.map +0 -1
  1000. package/dist/dev-typegen-ZeWYV8Jp.mjs +0 -29
  1001. package/dist/dev-typegen-ZeWYV8Jp.mjs.map +0 -1
  1002. package/dist/device-flow-BbYNZ9Xi.mjs +0 -521
  1003. package/dist/device-flow-BbYNZ9Xi.mjs.map +0 -1
  1004. package/dist/dialect-helpers-7_IqPdh9.mjs +0 -307
  1005. package/dist/dialect-helpers-7_IqPdh9.mjs.map +0 -1
  1006. package/dist/digest-DlBa7kJl.mjs +0 -194
  1007. package/dist/digest-DlBa7kJl.mjs.map +0 -1
  1008. package/dist/direct-executor-5T8gkhvA.mjs +0 -117
  1009. package/dist/direct-executor-5T8gkhvA.mjs.map +0 -1
  1010. package/dist/dist-DY0aOmAP.mjs +0 -810
  1011. package/dist/dist-DY0aOmAP.mjs.map +0 -1
  1012. package/dist/email-console-v3OM8It-.mjs +0 -50
  1013. package/dist/email-console-v3OM8It-.mjs.map +0 -1
  1014. package/dist/email-locale-CoZo-oZx.mjs +0 -25
  1015. package/dist/email-locale-CoZo-oZx.mjs.map +0 -1
  1016. package/dist/emdash-runtime-DwezbIqQ.mjs +0 -4392
  1017. package/dist/emdash-runtime-DwezbIqQ.mjs.map +0 -1
  1018. package/dist/enrich-C3XIJi0O.mjs +0 -194
  1019. package/dist/enrich-C3XIJi0O.mjs.map +0 -1
  1020. package/dist/entry-lock-CY7XpdSw.d.mts +0 -4568
  1021. package/dist/entry-lock-CY7XpdSw.d.mts.map +0 -1
  1022. package/dist/entry-lock-DDuWaAiP.mjs +0 -1211
  1023. package/dist/entry-lock-DDuWaAiP.mjs.map +0 -1
  1024. package/dist/entry-lock-D_Og9Gy3.mjs +0 -163
  1025. package/dist/entry-lock-D_Og9Gy3.mjs.map +0 -1
  1026. package/dist/entry-locks-Cp8_BcQQ.mjs +0 -167
  1027. package/dist/entry-locks-Cp8_BcQQ.mjs.map +0 -1
  1028. package/dist/env-types-Br8uywYA.mjs +0 -38
  1029. package/dist/env-types-Br8uywYA.mjs.map +0 -1
  1030. package/dist/error-CT2SsX5S.mjs +0 -90
  1031. package/dist/error-CT2SsX5S.mjs.map +0 -1
  1032. package/dist/errors-BMaCpLeS.mjs +0 -479
  1033. package/dist/errors-BMaCpLeS.mjs.map +0 -1
  1034. package/dist/errors-DlJwot7q.mjs +0 -120
  1035. package/dist/errors-DlJwot7q.mjs.map +0 -1
  1036. package/dist/escape-BfbDyuQ-.mjs +0 -9
  1037. package/dist/escape-BfbDyuQ-.mjs.map +0 -1
  1038. package/dist/fence-BOD3SxZG.mjs +0 -162
  1039. package/dist/fence-BOD3SxZG.mjs.map +0 -1
  1040. package/dist/field-defs-cache-C7sR7ZeU.mjs +0 -77
  1041. package/dist/field-defs-cache-C7sR7ZeU.mjs.map +0 -1
  1042. package/dist/field-map-C_rDXfdJ.mjs +0 -84
  1043. package/dist/field-map-C_rDXfdJ.mjs.map +0 -1
  1044. package/dist/fts-manager-BzFo0xx6.mjs +0 -483
  1045. package/dist/fts-manager-BzFo0xx6.mjs.map +0 -1
  1046. package/dist/gc-B_c3DPpi.mjs +0 -75
  1047. package/dist/gc-B_c3DPpi.mjs.map +0 -1
  1048. package/dist/hash-A-o2ZX8O.mjs +0 -37
  1049. package/dist/hash-A-o2ZX8O.mjs.map +0 -1
  1050. package/dist/hreflang-BpUK9Lcu.mjs +0 -105
  1051. package/dist/hreflang-BpUK9Lcu.mjs.map +0 -1
  1052. package/dist/hreflang-D07R-RbI.d.mts +0 -50
  1053. package/dist/hreflang-D07R-RbI.d.mts.map +0 -1
  1054. package/dist/http-route-dispatch-C2Ep2Uf6.mjs +0 -342
  1055. package/dist/http-route-dispatch-C2Ep2Uf6.mjs.map +0 -1
  1056. package/dist/identity-BivQ8wkV.mjs +0 -35
  1057. package/dist/identity-BivQ8wkV.mjs.map +0 -1
  1058. package/dist/import-B4UvHNJz.mjs +0 -2126
  1059. package/dist/import-B4UvHNJz.mjs.map +0 -1
  1060. package/dist/index-C37Ty40w.d.mts +0 -623
  1061. package/dist/index-C37Ty40w.d.mts.map +0 -1
  1062. package/dist/install-finalization-BbYaB4wj.mjs +0 -58
  1063. package/dist/install-finalization-BbYaB4wj.mjs.map +0 -1
  1064. package/dist/json-recordset-BjYIWFkV.mjs +0 -12
  1065. package/dist/json-recordset-BjYIWFkV.mjs.map +0 -1
  1066. package/dist/json-schema-Cde7le0s.mjs +0 -15
  1067. package/dist/json-schema-Cde7le0s.mjs.map +0 -1
  1068. package/dist/keys-CusTXpw-.mjs +0 -61
  1069. package/dist/keys-CusTXpw-.mjs.map +0 -1
  1070. package/dist/kinds-DogmNB6n.mjs +0 -974
  1071. package/dist/kinds-DogmNB6n.mjs.map +0 -1
  1072. package/dist/lifecycle-BLCoCz4T.mjs +0 -25
  1073. package/dist/lifecycle-BLCoCz4T.mjs.map +0 -1
  1074. package/dist/load-Dds3KhXr.mjs +0 -28
  1075. package/dist/load-Dds3KhXr.mjs.map +0 -1
  1076. package/dist/loader-D4w4XE7q.mjs +0 -1420
  1077. package/dist/loader-D4w4XE7q.mjs.map +0 -1
  1078. package/dist/loops-IYgzQdQu.mjs +0 -205
  1079. package/dist/loops-IYgzQdQu.mjs.map +0 -1
  1080. package/dist/manifest-builder-CGF5kujD.mjs +0 -196
  1081. package/dist/manifest-builder-CGF5kujD.mjs.map +0 -1
  1082. package/dist/manifest-schema-B0BxPSjB.mjs +0 -497
  1083. package/dist/manifest-schema-B0BxPSjB.mjs.map +0 -1
  1084. package/dist/marketplace-DNvEGLqU.mjs +0 -257
  1085. package/dist/marketplace-DNvEGLqU.mjs.map +0 -1
  1086. package/dist/media-BL9MRrSG.mjs +0 -294
  1087. package/dist/media-BL9MRrSG.mjs.map +0 -1
  1088. package/dist/media-B_x5B9EA.mjs +0 -373
  1089. package/dist/media-B_x5B9EA.mjs.map +0 -1
  1090. package/dist/media-allowlist-CpmqBbIQ.mjs +0 -45
  1091. package/dist/media-allowlist-CpmqBbIQ.mjs.map +0 -1
  1092. package/dist/media-folders-CNs_A_B-.mjs +0 -210
  1093. package/dist/media-folders-CNs_A_B-.mjs.map +0 -1
  1094. package/dist/media-qTTHVkls.mjs +0 -416
  1095. package/dist/media-qTTHVkls.mjs.map +0 -1
  1096. package/dist/media-url-GJboA1fl.mjs +0 -43
  1097. package/dist/media-url-GJboA1fl.mjs.map +0 -1
  1098. package/dist/media-usage-ClWgrX0d.mjs +0 -282
  1099. package/dist/media-usage-ClWgrX0d.mjs.map +0 -1
  1100. package/dist/media-usage-activation-B8Fjtq0h.mjs +0 -78
  1101. package/dist/media-usage-activation-B8Fjtq0h.mjs.map +0 -1
  1102. package/dist/media-usage-work-L8-Au4j-.mjs +0 -1036
  1103. package/dist/media-usage-work-L8-Au4j-.mjs.map +0 -1
  1104. package/dist/media-usage-work-LXgze5j9.mjs +0 -151
  1105. package/dist/media-usage-work-LXgze5j9.mjs.map +0 -1
  1106. package/dist/menus-BAxcbsbv.mjs +0 -818
  1107. package/dist/menus-BAxcbsbv.mjs.map +0 -1
  1108. package/dist/menus-BI6oBXco.mjs +0 -92
  1109. package/dist/menus-BI6oBXco.mjs.map +0 -1
  1110. package/dist/menus-fvGFd4m6.mjs +0 -3725
  1111. package/dist/menus-fvGFd4m6.mjs.map +0 -1
  1112. package/dist/mime-DwhtRyUt.mjs +0 -81
  1113. package/dist/mime-DwhtRyUt.mjs.map +0 -1
  1114. package/dist/mode-DIDSUwuN.mjs +0 -23
  1115. package/dist/mode-DIDSUwuN.mjs.map +0 -1
  1116. package/dist/node-sqlite-compat-Ddr_mlR9.mjs +0 -63
  1117. package/dist/node-sqlite-compat-Ddr_mlR9.mjs.map +0 -1
  1118. package/dist/normalize-Ip_hFAm8.mjs +0 -216
  1119. package/dist/normalize-Ip_hFAm8.mjs.map +0 -1
  1120. package/dist/oauth-authorization-CcMgeT8R.mjs +0 -274
  1121. package/dist/oauth-authorization-CcMgeT8R.mjs.map +0 -1
  1122. package/dist/oauth-clients-C_osi0PU.mjs +0 -266
  1123. package/dist/oauth-clients-C_osi0PU.mjs.map +0 -1
  1124. package/dist/oauth-state-store-DGLP-6CK.mjs +0 -50
  1125. package/dist/oauth-state-store-DGLP-6CK.mjs.map +0 -1
  1126. package/dist/oauth-user-lookup-z77Ee0Hm.mjs +0 -26
  1127. package/dist/oauth-user-lookup-z77Ee0Hm.mjs.map +0 -1
  1128. package/dist/object-cache-EjasjtoQ.mjs +0 -586
  1129. package/dist/object-cache-EjasjtoQ.mjs.map +0 -1
  1130. package/dist/options-CmUpkyKW.d.mts +0 -81
  1131. package/dist/options-CmUpkyKW.d.mts.map +0 -1
  1132. package/dist/ownership-DCk5NutQ.mjs +0 -12
  1133. package/dist/ownership-DCk5NutQ.mjs.map +0 -1
  1134. package/dist/parse-2W-E2f7w.mjs +0 -81
  1135. package/dist/parse-2W-E2f7w.mjs.map +0 -1
  1136. package/dist/parse-6pN8Xqg5.d.mts +0 -176
  1137. package/dist/parse-6pN8Xqg5.d.mts.map +0 -1
  1138. package/dist/passkey-config-DTTZB6EI.mjs +0 -46
  1139. package/dist/passkey-config-DTTZB6EI.mjs.map +0 -1
  1140. package/dist/paths-CQA62503.mjs +0 -77
  1141. package/dist/paths-CQA62503.mjs.map +0 -1
  1142. package/dist/placeholder-BlfXkucE.d.mts +0 -313
  1143. package/dist/placeholder-BlfXkucE.d.mts.map +0 -1
  1144. package/dist/plan-B95eiwnF.mjs +0 -135
  1145. package/dist/plan-B95eiwnF.mjs.map +0 -1
  1146. package/dist/plugin-tool-name-BDA7m4Xa.mjs +0 -27
  1147. package/dist/plugin-tool-name-BDA7m4Xa.mjs.map +0 -1
  1148. package/dist/plugins-BhxLJ008.mjs +0 -261
  1149. package/dist/plugins-BhxLJ008.mjs.map +0 -1
  1150. package/dist/policy-DOJ2sPqB.mjs +0 -53
  1151. package/dist/policy-DOJ2sPqB.mjs.map +0 -1
  1152. package/dist/portable-text-RCMpCj47.mjs +0 -311
  1153. package/dist/portable-text-RCMpCj47.mjs.map +0 -1
  1154. package/dist/preview-DFwL5APO.mjs +0 -107
  1155. package/dist/preview-DFwL5APO.mjs.map +0 -1
  1156. package/dist/protocol-B-ztxp_y.d.mts +0 -65
  1157. package/dist/protocol-B-ztxp_y.d.mts.map +0 -1
  1158. package/dist/public-plugin-api-routes-ik4fPZMv.mjs +0 -316
  1159. package/dist/public-plugin-api-routes-ik4fPZMv.mjs.map +0 -1
  1160. package/dist/public-submission-C5JZIykp.mjs +0 -251
  1161. package/dist/public-submission-C5JZIykp.mjs.map +0 -1
  1162. package/dist/public-url-CQwzRljH.mjs +0 -101
  1163. package/dist/public-url-CQwzRljH.mjs.map +0 -1
  1164. package/dist/query-DuwyFr5Z.mjs +0 -41
  1165. package/dist/query-DuwyFr5Z.mjs.map +0 -1
  1166. package/dist/query-eR_Nz70M.mjs +0 -1157
  1167. package/dist/query-eR_Nz70M.mjs.map +0 -1
  1168. package/dist/range-BQWPjWgQ.mjs +0 -51
  1169. package/dist/range-BQWPjWgQ.mjs.map +0 -1
  1170. package/dist/rate-limit-mPKeQ3sm.mjs +0 -127
  1171. package/dist/rate-limit-mPKeQ3sm.mjs.map +0 -1
  1172. package/dist/receipt-CmUpyuW5.mjs +0 -43
  1173. package/dist/receipt-CmUpyuW5.mjs.map +0 -1
  1174. package/dist/redirect-BtiMkehU.mjs +0 -19
  1175. package/dist/redirect-BtiMkehU.mjs.map +0 -1
  1176. package/dist/redirect-DcmNMvOs.mjs +0 -423
  1177. package/dist/redirect-DcmNMvOs.mjs.map +0 -1
  1178. package/dist/redirect-paths-K5i3xYfR.mjs +0 -36
  1179. package/dist/redirect-paths-K5i3xYfR.mjs.map +0 -1
  1180. package/dist/redirects-BA_TvtuH.mjs +0 -148
  1181. package/dist/redirects-BA_TvtuH.mjs.map +0 -1
  1182. package/dist/redirects-BIrRvgn4.mjs +0 -446
  1183. package/dist/redirects-BIrRvgn4.mjs.map +0 -1
  1184. package/dist/registry-DymfZkAN.mjs +0 -8374
  1185. package/dist/registry-DymfZkAN.mjs.map +0 -1
  1186. package/dist/relations-DrEs3Sc1.mjs +0 -789
  1187. package/dist/relations-DrEs3Sc1.mjs.map +0 -1
  1188. package/dist/request-meta-o8RIf9pa.mjs +0 -141
  1189. package/dist/request-meta-o8RIf9pa.mjs.map +0 -1
  1190. package/dist/resolve-CVy9xgy_.mjs +0 -102
  1191. package/dist/resolve-CVy9xgy_.mjs.map +0 -1
  1192. package/dist/route-cache-DAG5dPhh.mjs +0 -20
  1193. package/dist/route-cache-DAG5dPhh.mjs.map +0 -1
  1194. package/dist/route-wire-Xbsu8Vih.mjs +0 -197
  1195. package/dist/route-wire-Xbsu8Vih.mjs.map +0 -1
  1196. package/dist/routes-YQkSOsws.mjs +0 -272
  1197. package/dist/routes-YQkSOsws.mjs.map +0 -1
  1198. package/dist/runner-CLorw5vo.mjs +0 -6669
  1199. package/dist/runner-CLorw5vo.mjs.map +0 -1
  1200. package/dist/runner-g1A9P-wD.d.mts +0 -73
  1201. package/dist/runner-g1A9P-wD.d.mts.map +0 -1
  1202. package/dist/schema-Bss8qImF.mjs +0 -13
  1203. package/dist/schema-Bss8qImF.mjs.map +0 -1
  1204. package/dist/schema-C036pqEw.mjs +0 -815
  1205. package/dist/schema-C036pqEw.mjs.map +0 -1
  1206. package/dist/scopes-C_SoYl9x.mjs +0 -34
  1207. package/dist/scopes-C_SoYl9x.mjs.map +0 -1
  1208. package/dist/search-uNqCgePJ.mjs +0 -450
  1209. package/dist/search-uNqCgePJ.mjs.map +0 -1
  1210. package/dist/secrets-Cc_O3Kp-.mjs +0 -369
  1211. package/dist/secrets-Cc_O3Kp-.mjs.map +0 -1
  1212. package/dist/sections-BLusMa96.mjs +0 -346
  1213. package/dist/sections-BLusMa96.mjs.map +0 -1
  1214. package/dist/seo-BodxIpws.mjs +0 -188
  1215. package/dist/seo-BodxIpws.mjs.map +0 -1
  1216. package/dist/seo-DaMYIQY8.mjs +0 -133
  1217. package/dist/seo-DaMYIQY8.mjs.map +0 -1
  1218. package/dist/service-BuM1BRsA.mjs +0 -150
  1219. package/dist/service-BuM1BRsA.mjs.map +0 -1
  1220. package/dist/session-user-2DpQDMKw.mjs +0 -61
  1221. package/dist/session-user-2DpQDMKw.mjs.map +0 -1
  1222. package/dist/settings-B3ZmPF_8.mjs +0 -73
  1223. package/dist/settings-B3ZmPF_8.mjs.map +0 -1
  1224. package/dist/settings-P5hwPX6_.mjs +0 -66
  1225. package/dist/settings-P5hwPX6_.mjs.map +0 -1
  1226. package/dist/settings-yIqoN-Ok.mjs +0 -519
  1227. package/dist/settings-yIqoN-Ok.mjs.map +0 -1
  1228. package/dist/setup-complete-eu6MUQnt.mjs +0 -65
  1229. package/dist/setup-complete-eu6MUQnt.mjs.map +0 -1
  1230. package/dist/setup-nonce-CyPOapqY.mjs +0 -25
  1231. package/dist/setup-nonce-CyPOapqY.mjs.map +0 -1
  1232. package/dist/site-domain-8lEJl_0U.mjs +0 -131
  1233. package/dist/site-domain-8lEJl_0U.mjs.map +0 -1
  1234. package/dist/site-settings-uPkW0e6o.mjs +0 -50
  1235. package/dist/site-settings-uPkW0e6o.mjs.map +0 -1
  1236. package/dist/site-url-25SGVXwL.mjs +0 -45
  1237. package/dist/site-url-25SGVXwL.mjs.map +0 -1
  1238. package/dist/sitemap-name-DTK7CYnY.mjs +0 -26
  1239. package/dist/sitemap-name-DTK7CYnY.mjs.map +0 -1
  1240. package/dist/slug-BEDl2IJY.mjs +0 -16
  1241. package/dist/slug-BEDl2IJY.mjs.map +0 -1
  1242. package/dist/snapshot-CvkIBRLY.mjs +0 -414
  1243. package/dist/snapshot-CvkIBRLY.mjs.map +0 -1
  1244. package/dist/ssrf-mcCKMH6B.mjs +0 -406
  1245. package/dist/ssrf-mcCKMH6B.mjs.map +0 -1
  1246. package/dist/stage-BQfGzGOy.mjs +0 -662
  1247. package/dist/stage-BQfGzGOy.mjs.map +0 -1
  1248. package/dist/staged-B5vQGeSf.mjs +0 -686
  1249. package/dist/staged-B5vQGeSf.mjs.map +0 -1
  1250. package/dist/state-dO6t6OxV.mjs +0 -178
  1251. package/dist/state-dO6t6OxV.mjs.map +0 -1
  1252. package/dist/status-DSURZwKS.mjs +0 -30
  1253. package/dist/status-DSURZwKS.mjs.map +0 -1
  1254. package/dist/storage-query-Cy0SZ8iG.d.mts +0 -1619
  1255. package/dist/storage-query-Cy0SZ8iG.d.mts.map +0 -1
  1256. package/dist/tar-DWzcUZ_Q.mjs +0 -449
  1257. package/dist/tar-DWzcUZ_Q.mjs.map +0 -1
  1258. package/dist/target-C9htUbrT.mjs +0 -27
  1259. package/dist/target-C9htUbrT.mjs.map +0 -1
  1260. package/dist/taxonomies-By2aGvq2.mjs +0 -729
  1261. package/dist/taxonomies-By2aGvq2.mjs.map +0 -1
  1262. package/dist/taxonomies-CVRd_jz0.mjs +0 -937
  1263. package/dist/taxonomies-CVRd_jz0.mjs.map +0 -1
  1264. package/dist/taxonomy-BG_xu2Qf.mjs +0 -563
  1265. package/dist/taxonomy-BG_xu2Qf.mjs.map +0 -1
  1266. package/dist/tokens-U5vzgSrM.mjs +0 -171
  1267. package/dist/tokens-U5vzgSrM.mjs.map +0 -1
  1268. package/dist/transfer-DA0OSfaT.mjs +0 -8873
  1269. package/dist/transfer-DA0OSfaT.mjs.map +0 -1
  1270. package/dist/transfer-Pyf3d7ka.mjs +0 -166
  1271. package/dist/transfer-Pyf3d7ka.mjs.map +0 -1
  1272. package/dist/transfer-download-cX7SuWEy.mjs +0 -33
  1273. package/dist/transfer-download-cX7SuWEy.mjs.map +0 -1
  1274. package/dist/transformations-DczubD4j.mjs +0 -196
  1275. package/dist/transformations-DczubD4j.mjs.map +0 -1
  1276. package/dist/transport-DtIrjEFO.mjs +0 -137
  1277. package/dist/transport-DtIrjEFO.mjs.map +0 -1
  1278. package/dist/trusted-proxy-CDRd5Kmw.mjs +0 -51
  1279. package/dist/trusted-proxy-CDRd5Kmw.mjs.map +0 -1
  1280. package/dist/turnstile-Ct5YuFNY.mjs +0 -58
  1281. package/dist/turnstile-Ct5YuFNY.mjs.map +0 -1
  1282. package/dist/types-Bgujop4S.d.mts +0 -374
  1283. package/dist/types-Bgujop4S.d.mts.map +0 -1
  1284. package/dist/types-BirHUEXt.mjs +0 -18
  1285. package/dist/types-BirHUEXt.mjs.map +0 -1
  1286. package/dist/types-BqJgTL_y.d.mts +0 -293
  1287. package/dist/types-BqJgTL_y.d.mts.map +0 -1
  1288. package/dist/types-C-lrOt9T.d.mts +0 -87
  1289. package/dist/types-C-lrOt9T.d.mts.map +0 -1
  1290. package/dist/types-CCEHAhOv.d.mts +0 -916
  1291. package/dist/types-CCEHAhOv.d.mts.map +0 -1
  1292. package/dist/types-CLVwYRBr.d.mts +0 -227
  1293. package/dist/types-CLVwYRBr.d.mts.map +0 -1
  1294. package/dist/types-DVbTb4Hk.mjs +0 -77
  1295. package/dist/types-DVbTb4Hk.mjs.map +0 -1
  1296. package/dist/types-Ddku19Zw.d.mts +0 -209
  1297. package/dist/types-Ddku19Zw.d.mts.map +0 -1
  1298. package/dist/types-FIiGQ3PE.mjs +0 -16
  1299. package/dist/types-FIiGQ3PE.mjs.map +0 -1
  1300. package/dist/types-OauzCOY0.mjs +0 -37
  1301. package/dist/types-OauzCOY0.mjs.map +0 -1
  1302. package/dist/types-mQGTpP-4.d.mts +0 -1741
  1303. package/dist/types-mQGTpP-4.d.mts.map +0 -1
  1304. package/dist/types-nbjz3Mgm.d.mts +0 -125
  1305. package/dist/types-nbjz3Mgm.d.mts.map +0 -1
  1306. package/dist/update-check-hW32-0pf.mjs +0 -161
  1307. package/dist/update-check-hW32-0pf.mjs.map +0 -1
  1308. package/dist/upload-attempts-Bpik1TLF.mjs +0 -32
  1309. package/dist/upload-attempts-Bpik1TLF.mjs.map +0 -1
  1310. package/dist/url-pattern-CJeCyNij.mjs +0 -41
  1311. package/dist/url-pattern-CJeCyNij.mjs.map +0 -1
  1312. package/dist/user-nQInBZbE.mjs +0 -171
  1313. package/dist/user-nQInBZbE.mjs.map +0 -1
  1314. package/dist/utils-govudc_U.mjs +0 -442
  1315. package/dist/utils-govudc_U.mjs.map +0 -1
  1316. package/dist/validate-BxLvcDYh.mjs +0 -524
  1317. package/dist/validate-BxLvcDYh.mjs.map +0 -1
  1318. package/dist/validate-mnoVfASU.d.mts +0 -468
  1319. package/dist/validate-mnoVfASU.d.mts.map +0 -1
  1320. package/dist/validation-DQDEvh87.mjs +0 -221
  1321. package/dist/validation-DQDEvh87.mjs.map +0 -1
  1322. package/dist/version-BOFfLiVT.mjs +0 -49
  1323. package/dist/version-BOFfLiVT.mjs.map +0 -1
  1324. package/dist/version-Dcvx_C9g.mjs +0 -7
  1325. package/dist/version-Dcvx_C9g.mjs.map +0 -1
  1326. package/dist/version-DzTJ3gD7.mjs +0 -9
  1327. package/dist/version-DzTJ3gD7.mjs.map +0 -1
  1328. package/dist/video-BX7AI5nJ.mjs +0 -54
  1329. package/dist/video-BX7AI5nJ.mjs.map +0 -1
  1330. package/dist/virtual-modules-CU29aip9.mjs +0 -515
  1331. package/dist/virtual-modules-CU29aip9.mjs.map +0 -1
  1332. package/dist/widgets-HIeFmZxt.mjs +0 -121
  1333. package/dist/widgets-HIeFmZxt.mjs.map +0 -1
  1334. package/dist/wxr-taxonomies-DyOGhl8W.mjs +0 -454
  1335. package/dist/wxr-taxonomies-DyOGhl8W.mjs.map +0 -1
  1336. package/dist/zod-generator-VxCPVDpo.mjs +0 -425
  1337. package/dist/zod-generator-VxCPVDpo.mjs.map +0 -1
  1338. /package/dist/{ssrf-BBXcxG-f.mjs → ssrf-DM0E-D_8.mjs} +0 -0
@@ -1,1157 +0,0 @@
1
- import { f as __exportAll } from "./runner-CLorw5vo.mjs";
2
- import { r as isMissingTableError } from "./db-errors-unnO6yiZ.mjs";
3
- import { i as getLocaleCandidates, l as resolveConfiguredLocale, n as getFallbackChain, r as getI18nConfig, s as isI18nEnabled } from "./config-Cs_AwWXI.mjs";
4
- import { getRequestContext } from "./request-context.mjs";
5
- import { i as contentCacheNamespaces, n as cachedQuery, o as contentNamespaces, p as invalidateSchemaObjectCache } from "./object-cache-EjasjtoQ.mjs";
6
- import { r as requestCached } from "./request-cache-5z2WzWmh.mjs";
7
- import { r as resolveLocale } from "./resolve-DdNXBJSr.mjs";
8
- import { a as creditsFromFoldedBylines, f as primeSeoPanel, i as FOLDED_TERMS, n as FOLDED_BYLINES, r as FOLDED_BYLINES_EXIST, s as encodeSortCursor, t as CURSOR_RAW_VALUES } from "./loader-D4w4XE7q.mjs";
9
- import { i as resetRegisteredCollectionsCache } from "./collection-slugs-cache-B2J5aESO.mjs";
10
- import { t as compileUrlPattern } from "./url-pattern-CJeCyNij.mjs";
11
-
12
- //#region src/visual-editing/editable.ts
13
- /**
14
- * Create an editable proxy for an entry.
15
- *
16
- * Usage:
17
- * - `{...entry.edit}` - entry-level annotation (includes status/hasDraft)
18
- * - `{...entry.edit.title}` - field-level annotation
19
- * - `{...entry.edit['nested.field']}` - nested field (bracket notation)
20
- */
21
- function createEditable(collection, id, options) {
22
- const base = {
23
- collection,
24
- id,
25
- ...options?.status && { status: options.status },
26
- ...options?.hasDraft && { hasDraft: true }
27
- };
28
- return new Proxy({}, {
29
- get(_, prop) {
30
- if (prop === "toJSON") return () => ({ "data-emdash-ref": JSON.stringify(base) });
31
- if (typeof prop === "symbol") return void 0;
32
- if (prop === "data-emdash-ref") return JSON.stringify(base);
33
- return { "data-emdash-ref": JSON.stringify({
34
- ...base,
35
- field: String(prop)
36
- }) };
37
- },
38
- ownKeys() {
39
- return ["data-emdash-ref"];
40
- },
41
- getOwnPropertyDescriptor(_, prop) {
42
- if (prop === "data-emdash-ref") return {
43
- configurable: true,
44
- enumerable: true,
45
- value: JSON.stringify(base)
46
- };
47
- }
48
- });
49
- }
50
- /**
51
- * Create a noop proxy for production mode.
52
- * Spreading this produces no attributes.
53
- */
54
- function createNoop() {
55
- return new Proxy({}, {
56
- get(_, prop) {
57
- if (typeof prop === "symbol") return void 0;
58
- },
59
- ownKeys() {
60
- return [];
61
- },
62
- getOwnPropertyDescriptor() {}
63
- });
64
- }
65
-
66
- //#endregion
67
- //#region src/query.ts
68
- var query_exports = /* @__PURE__ */ __exportAll({
69
- bucketFilter: () => bucketFilter,
70
- getEditMeta: () => getEditMeta,
71
- getEmDashCollection: () => getEmDashCollection,
72
- getEmDashEntry: () => getEmDashEntry,
73
- getEmDashReferences: () => getEmDashReferences,
74
- getTranslations: () => getTranslations,
75
- invalidateUrlPatternCache: () => invalidateUrlPatternCache,
76
- resolveEmDashPath: () => resolveEmDashPath,
77
- sliceCollectionResult: () => sliceCollectionResult
78
- });
79
- const COLLECTION_NAME = "_emdash";
80
- /** Symbol key for edit metadata on PT arrays — avoids collision with user data */
81
- const EMDASH_EDIT = Symbol.for("__emdash");
82
- /** Type guard for EditFieldMeta */
83
- function isEditFieldMeta(value) {
84
- if (typeof value !== "object" || value === null) return false;
85
- if (!("collection" in value) || !("id" in value) || !("field" in value)) return false;
86
- const { collection, id, field } = value;
87
- return typeof collection === "string" && typeof id === "string" && typeof field === "string";
88
- }
89
- /**
90
- * Read edit metadata from a value (returns undefined if not tagged).
91
- * Uses Object.getOwnPropertyDescriptor to access Symbol-keyed property
92
- * without an unsafe type assertion.
93
- */
94
- function getEditMeta(value) {
95
- if (value && typeof value === "object") {
96
- const meta = Object.getOwnPropertyDescriptor(value, EMDASH_EDIT)?.value;
97
- if (isEditFieldMeta(meta)) return meta;
98
- }
99
- }
100
- /** Slugs of a collection's Portable Text fields; empty when they can't be read. */
101
- function getPortableTextFieldSlugs(collection) {
102
- return requestCached(`portable-text-fields:${collection}`, async () => {
103
- try {
104
- const { getDb } = await import("./loader-D4w4XE7q.mjs").then((n) => n.u);
105
- const rows = await (await getDb()).selectFrom("_emdash_fields as f").innerJoin("_emdash_collections as c", "c.id", "f.collection_id").select("f.slug").where("c.slug", "=", collection).where("f.type", "=", "portableText").execute();
106
- return new Set(rows.map((row) => row.slug));
107
- } catch (error) {
108
- if (!isMissingTableError(error)) {
109
- const msg = error instanceof Error ? error.message : String(error);
110
- console.warn("[emdash] Failed to load Portable Text fields:", msg);
111
- }
112
- return /* @__PURE__ */ new Set();
113
- }
114
- });
115
- }
116
- /**
117
- * Tag PT-like arrays in entry data with edit metadata (non-enumerable).
118
- * A PT array is identified by: is an array, first element has _type property.
119
- * An empty one is identified by its field being in `portableTextFields`, and
120
- * a missing or blank one becomes an empty array, so the page can still render
121
- * an editor for it.
122
- */
123
- function tagEditableFields(data, collection, id, portableTextFields = /* @__PURE__ */ new Set()) {
124
- for (const field of portableTextFields) {
125
- const value = data[field];
126
- if (value == null || typeof value === "string" && !value.trim()) data[field] = [];
127
- }
128
- for (const [field, value] of Object.entries(data)) {
129
- if (!Array.isArray(value)) continue;
130
- const first = value[0];
131
- if (value.length === 0 ? portableTextFields.has(field) : typeof first === "object" && first !== null && "_type" in first) Object.defineProperty(value, EMDASH_EDIT, {
132
- value: {
133
- collection,
134
- id,
135
- field
136
- },
137
- enumerable: false,
138
- configurable: true
139
- });
140
- }
141
- }
142
- /** Safely read a string field from a Record, with optional fallback */
143
- function dataStr(data, key, fallback = "") {
144
- const val = data[key];
145
- return typeof val === "string" ? val : fallback;
146
- }
147
- /** Type guard for Record<string, unknown> */
148
- function isRecord(value) {
149
- return typeof value === "object" && value !== null && !Array.isArray(value);
150
- }
151
- /** Extract data as Record from an Astro entry (which is any-typed) */
152
- function entryData(entry) {
153
- return isRecord(entry.data) ? entry.data : {};
154
- }
155
- /** Extract the database ID from entry data (data.id is the ULID, entry.id is the slug) */
156
- function entryDatabaseId(entry) {
157
- return dataStr(entryData(entry), "id") || entry.id;
158
- }
159
- /** Extract edit options from entry data for the proxy */
160
- function entryEditOptions(entry) {
161
- const data = entryData(entry);
162
- const status = dataStr(data, "status", "draft");
163
- const draftRevisionId = dataStr(data, "draftRevisionId") || void 0;
164
- const liveRevisionId = dataStr(data, "liveRevisionId") || void 0;
165
- return {
166
- status,
167
- hasDraft: !!draftRevisionId && draftRevisionId !== liveRevisionId
168
- };
169
- }
170
- function stripRevisionMetadata(entry) {
171
- const data = entryData(entry);
172
- delete data.draftRevisionId;
173
- delete data.liveRevisionId;
174
- }
175
- function canExposeRevisionMetadata(entry, collection) {
176
- const ctx = getRequestContext();
177
- if (ctx?.editMode) return true;
178
- if (ctx?.preview?.collection !== collection) return false;
179
- const dbId = entryDatabaseId(entry);
180
- return ctx.preview.id === dbId || ctx.preview.id === entry.id;
181
- }
182
- /**
183
- * Get all entries of a content type
184
- *
185
- * Returns { entries, error } for graceful error handling.
186
- *
187
- * When emdash-env.d.ts is generated, the collection name will be
188
- * type-checked and the return type will be inferred automatically.
189
- *
190
- * @example
191
- * ```ts
192
- * import { getEmDashCollection } from "emdash";
193
- *
194
- * const { entries: posts, error } = await getEmDashCollection("posts");
195
- * if (error) {
196
- * console.error("Failed to load posts:", error);
197
- * return;
198
- * }
199
- * // posts[0].data.title is typed (if emdash-env.d.ts exists)
200
- *
201
- * // With filters
202
- * const { entries: drafts } = await getEmDashCollection("posts", { status: "draft" });
203
- * ```
204
- */
205
- async function getEmDashCollection(type, filter) {
206
- const bucketed = bucketFilter(filter);
207
- const ctx = getRequestContext();
208
- const serveDrafts = ctx?.editMode === true || ctx?.preview !== void 0;
209
- const cached = await requestCached(collectionCacheKey(type, bucketed.fetchFilter), () => serveDrafts ? getEmDashCollectionUncached(type, bucketed.fetchFilter) : loadCollectionCached(type, bucketed.fetchFilter));
210
- return bucketed.requestedLimit === void 0 ? cached : sliceCollectionResult(cached, bucketed.requestedLimit, filter?.orderBy);
211
- }
212
- /**
213
- * Distributed (L2) read-through around {@link getEmDashCollectionUncached}.
214
- *
215
- * Caches a JSON-safe snapshot keyed by collection + filter + effective locale,
216
- * folding the shared `bylines`/`taxonomies` epochs into the key so renaming an
217
- * author or term invalidates affected lists. Errors are never cached.
218
- */
219
- async function loadCollectionCached(type, filter) {
220
- const snapshot = await cachedQuery({
221
- namespace: contentNamespaces(type),
222
- key: `collection:${collectionCacheKey(type, filter)}|loc=${effectiveLocaleKey(filter)}`,
223
- load: async () => {
224
- const result = await getEmDashCollectionUncached(type, filter);
225
- if (result.error) return {
226
- ok: false,
227
- error: result.error,
228
- cacheHint: result.cacheHint
229
- };
230
- return {
231
- ok: true,
232
- value: {
233
- entries: result.entries.map(entrySnapshot),
234
- nextCursor: result.nextCursor,
235
- hasMore: result.hasMore,
236
- cacheHint: result.cacheHint
237
- }
238
- };
239
- },
240
- cacheable: (snap) => snap.ok
241
- });
242
- if (!snapshot.ok) return {
243
- entries: [],
244
- error: snapshot.error,
245
- cacheHint: snapshot.cacheHint
246
- };
247
- return {
248
- entries: snapshot.value.entries.map((entry) => {
249
- const revived = reviveEntry(entry);
250
- if (!canExposeRevisionMetadata(revived, type)) stripRevisionMetadata(revived);
251
- return revived;
252
- }),
253
- nextCursor: snapshot.value.nextCursor,
254
- hasMore: snapshot.value.hasMore,
255
- cacheHint: snapshot.value.cacheHint
256
- };
257
- }
258
- /**
259
- * Threshold for limit bucketing. Page templates routinely render small
260
- * "recent posts" widgets at limits 3-8; rounding those up to a single
261
- * shared bucket lets one fetch satisfy several widgets within a request.
262
- * Above this, the requested limit is honoured exactly — bucketing limit:50
263
- * to limit:64 would waste hydration work for callers fetching real pages.
264
- */
265
- const BUCKET_LIMIT_THRESHOLD = 10;
266
- /** @internal exported for unit tests; not part of the public API. */
267
- function bucketFilter(filter) {
268
- const limit = filter?.limit;
269
- if (limit === void 0 || limit >= BUCKET_LIMIT_THRESHOLD || limit <= 0 || filter?.cursor !== void 0 || filter?.offset !== void 0) return {
270
- fetchFilter: filter,
271
- requestedLimit: void 0
272
- };
273
- return {
274
- fetchFilter: {
275
- ...filter,
276
- limit: BUCKET_LIMIT_THRESHOLD
277
- },
278
- requestedLimit: limit
279
- };
280
- }
281
- /**
282
- * Slice a cached bucketed result down to the originally-requested limit
283
- * and recompute `nextCursor` from the row that would have been the
284
- * over-fetch detector for that limit. When truncation is needed, returns
285
- * a shallow-copied result with a new `entries` array; otherwise returns
286
- * the cached result unchanged (including error results and results
287
- * already within the requested limit).
288
- */
289
- /** @internal exported for unit tests; not part of the public API. */
290
- function sliceCollectionResult(cached, limit, orderBy) {
291
- if (cached.error) return cached;
292
- if (cached.entries.length <= limit) return cached;
293
- const sliced = cached.entries.slice(0, limit);
294
- const lastEntry = sliced.at(-1);
295
- const nextCursor = lastEntry ? encodeEntryCursor(lastEntry, orderBy) : void 0;
296
- return {
297
- ...cached,
298
- entries: sliced,
299
- nextCursor,
300
- hasMore: true
301
- };
302
- }
303
- /** Map of database column names to camelCase keys present on entry.data. */
304
- const ENTRY_DATA_KEY_MAP = {
305
- created_at: "createdAt",
306
- updated_at: "updatedAt",
307
- published_at: "publishedAt",
308
- scheduled_at: "scheduledAt",
309
- author_id: "authorId",
310
- primary_byline_id: "primaryBylineId"
311
- };
312
- const FIELD_NAME_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
313
- /**
314
- * Encode a `nextCursor` from a content entry, as the loader encodes one from
315
- * the entry's row. Reads the sort column's raw DB value the loader stashed via
316
- * CURSOR_RAW_VALUES, since `entry.data` can't reproduce it for every column.
317
- */
318
- function encodeEntryCursor(entry, orderBy) {
319
- const data = entryData(entry);
320
- const id = dataStr(data, "id");
321
- if (!id) return void 0;
322
- let dbField = "created_at";
323
- if (orderBy) {
324
- for (const field of Object.keys(orderBy)) if (FIELD_NAME_PATTERN.test(field)) {
325
- dbField = field;
326
- break;
327
- }
328
- }
329
- const rawValues = Reflect.get(data, CURSOR_RAW_VALUES);
330
- if (rawValues !== null && typeof rawValues === "object" && Object.hasOwn(rawValues, dbField)) return encodeSortCursor(dbField, Reflect.get(rawValues, dbField), id);
331
- return encodeSortCursor(dbField, data[ENTRY_DATA_KEY_MAP[dbField] ?? dbField], id);
332
- }
333
- /**
334
- * Build a canonical cache key for `getEmDashCollection`.
335
- *
336
- * `JSON.stringify` is insertion-order-sensitive, so two callers passing
337
- * semantically identical filters with different key orders would miss
338
- * the cache. We fix the top-level field order and sort `where` keys
339
- * (order there is irrelevant), while preserving `orderBy` key order
340
- * because that's the sort priority.
341
- */
342
- function collectionCacheKey(type, filter) {
343
- if (!filter) return `collection:${type}:`;
344
- return `collection:${type}:${[
345
- filter.status ?? "",
346
- filter.limit ?? "",
347
- filter.cursor ?? "",
348
- filter.offset ?? "",
349
- filter.where ? stableStringify(filter.where) : "",
350
- filter.orderBy ? JSON.stringify(filter.orderBy) : "",
351
- filter.locale === void 0 ? "" : resolveConfiguredLocale(filter.locale)
352
- ].join("|")}`;
353
- }
354
- function stableStringify(value) {
355
- return JSON.stringify(stableOrder(value));
356
- }
357
- function stableOrder(value) {
358
- const keys = Object.keys(value).toSorted();
359
- const ordered = {};
360
- for (const k of keys) {
361
- const v = value[k];
362
- if (isRecord(v)) ordered[k] = stableOrder(v);
363
- else ordered[k] = v;
364
- }
365
- return ordered;
366
- }
367
- /** Enumerable field carrying the {@link CURSOR_RAW_VALUES} payload in snapshots. */
368
- const CURSOR_RAW_FIELD = "__emdashCursorRaw";
369
- function dataSnapshot(data) {
370
- const rawCursor = Reflect.get(data, CURSOR_RAW_VALUES);
371
- return {
372
- ...data,
373
- [CURSOR_RAW_FIELD]: rawCursor ?? {}
374
- };
375
- }
376
- function reviveData(raw) {
377
- const data = { ...raw };
378
- const rawCursor = data[CURSOR_RAW_FIELD] ?? {};
379
- delete data[CURSOR_RAW_FIELD];
380
- Object.defineProperty(data, CURSOR_RAW_VALUES, {
381
- value: rawCursor,
382
- enumerable: false,
383
- configurable: false,
384
- writable: false
385
- });
386
- return data;
387
- }
388
- function entrySnapshot(entry) {
389
- const { edit: _edit, references, ...rest } = entry;
390
- return {
391
- ...rest,
392
- data: dataSnapshot(entryData(entry)),
393
- ...references ? { references: referencesSnapshot(references) } : {}
394
- };
395
- }
396
- function referencesSnapshot(references) {
397
- const snapshot = {};
398
- for (const [field, page] of Object.entries(references)) snapshot[field] = {
399
- entries: page.entries.map((child) => ({
400
- id: child.id,
401
- data: dataSnapshot(entryData(child))
402
- })),
403
- ...page.nextCursor === void 0 ? {} : { nextCursor: page.nextCursor }
404
- };
405
- return snapshot;
406
- }
407
- /**
408
- * Rebuild the reference pages a snapshot carried.
409
- *
410
- * Every child comes back with a no-op `edit` proxy and no revision metadata,
411
- * which is lossless: the object cache is bypassed for edit-mode and preview
412
- * requests, so a snapshot is only ever written — and read back — by a render
413
- * that had neither to begin with.
414
- */
415
- function reviveReferences(raw) {
416
- if (!isRecord(raw)) return void 0;
417
- const references = {};
418
- for (const [field, page] of Object.entries(raw)) {
419
- const snapshot = page;
420
- references[field] = {
421
- entries: snapshot.entries.map((child) => ({
422
- id: child.id,
423
- data: reviveData(child.data),
424
- edit: createNoop()
425
- })),
426
- ...snapshot.nextCursor === void 0 ? {} : { nextCursor: snapshot.nextCursor }
427
- };
428
- }
429
- return references;
430
- }
431
- function reviveEntry(raw) {
432
- const entry = raw;
433
- const data = reviveData(entry.data);
434
- const references = reviveReferences(entry.references);
435
- return {
436
- ...entry,
437
- data,
438
- ...references ? { references } : {},
439
- edit: createNoop()
440
- };
441
- }
442
- /** Resolve the effective locale used by content reads, for the L2 cache key. */
443
- function effectiveLocaleKey(filter) {
444
- return resolveLocale(filter?.locale) ?? "";
445
- }
446
- async function getEmDashCollectionUncached(type, filter) {
447
- const { getLiveCollection } = await import("astro:content");
448
- const ctx = getRequestContext();
449
- const resolvedLocale = resolveLocale(filter?.locale);
450
- const requestedLimit = filter?.limit;
451
- const pageParam = filter?.cursor !== void 0 ? { cursor: filter.cursor } : filter?.offset !== void 0 ? { offset: filter.offset } : {};
452
- const draftRevisions = ctx?.editMode ? "all" : ctx?.preview?.collection === type ? { id: ctx.preview.id } : void 0;
453
- const { entries, error, cacheHint } = await getLiveCollection(COLLECTION_NAME, {
454
- type,
455
- status: filter?.status,
456
- limit: requestedLimit && requestedLimit > 0 ? requestedLimit + 1 : filter?.limit,
457
- ...pageParam,
458
- where: filter?.where,
459
- orderBy: filter?.orderBy,
460
- locale: resolvedLocale,
461
- draftRevisions
462
- });
463
- if (error) return {
464
- entries: [],
465
- error,
466
- cacheHint: {}
467
- };
468
- const hasMore = requestedLimit != null && requestedLimit > 0 && entries.length > requestedLimit;
469
- const pageEntries = hasMore ? entries.slice(0, requestedLimit) : entries;
470
- const nextCursor = hasMore ? encodeEntryCursor(pageEntries.at(-1), filter?.orderBy) : void 0;
471
- const hasMoreResult = requestedLimit != null && requestedLimit > 0 ? hasMore : void 0;
472
- const isEditMode = ctx?.editMode ?? false;
473
- const portableTextFields = isEditMode && pageEntries.length > 0 ? await getPortableTextFieldSlugs(type) : void 0;
474
- const entriesWithEdit = pageEntries.map((entry) => {
475
- const dbId = entryDatabaseId(entry);
476
- if (isEditMode) tagEditableFields(entryData(entry), type, dbId, portableTextFields);
477
- if (!canExposeRevisionMetadata(entry, type)) stripRevisionMetadata(entry);
478
- return {
479
- ...entry,
480
- edit: isEditMode ? createEditable(type, dbId, entryEditOptions(entry)) : createNoop()
481
- };
482
- });
483
- await Promise.all([hydrateEntryBylines(type, entriesWithEdit), hydrateEntryTerms(type, entriesWithEdit, resolvedLocale)]);
484
- return {
485
- entries: entriesWithEdit,
486
- nextCursor,
487
- hasMore: hasMoreResult,
488
- cacheHint: cacheHint ?? {}
489
- };
490
- }
491
- /**
492
- * Get a single entry by type and ID/slug
493
- *
494
- * Returns { entry, error, isPreview } for graceful error handling.
495
- * - entry is null if not found (not an error)
496
- * - error is set only for actual errors (db issues, etc.)
497
- *
498
- * Preview mode is detected automatically from request context (ALS).
499
- * When the URL has a valid `_preview` token, the middleware sets preview
500
- * context and this function serves draft revision data if available.
501
- *
502
- * @example
503
- * ```ts
504
- * import { getEmDashEntry } from "emdash";
505
- *
506
- * // Simple usage — preview just works via middleware
507
- * const { entry: post, isPreview, error } = await getEmDashEntry("posts", "my-slug");
508
- * if (!post) return Astro.rewrite("/404");
509
- * ```
510
- *
511
- * @example
512
- * ```ts
513
- * // Opt into reference fields, by field slug
514
- * const { entry: post } = await getEmDashEntry("posts", slug, {
515
- * references: { author: true, related_posts: { limit: 6 } },
516
- * });
517
- * const author = post?.references?.author.entries[0];
518
- * ```
519
- */
520
- async function getEmDashEntry(type, id, options) {
521
- return resolveEmDashEntry(type, id, options);
522
- }
523
- /**
524
- * Attach one page of each selected reference field to a resolved entry, and
525
- * report the cache hint its children contribute.
526
- *
527
- * An entry with no translation group predates i18n and has no links; there is
528
- * nothing to resolve, and `references` stays absent rather than becoming an
529
- * empty object that reads as "this entry references nothing".
530
- */
531
- async function attachReferences(type, entry, options) {
532
- const data = entryData(entry);
533
- const entryGroup = dataStr(data, "translationGroup");
534
- if (!entryGroup) return {};
535
- const { resolveReferencePages } = await import("./resolve-CVy9xgy_.mjs");
536
- const pages = await resolveReferencePages({
537
- collection: type,
538
- entryGroup,
539
- locale: dataStr(data, "locale") || null,
540
- draftRevisionId: options.draftRevisionId,
541
- serveDrafts: options.serveDrafts,
542
- selection: options.selection
543
- });
544
- const references = {};
545
- const tags = [];
546
- let lastModified;
547
- for (const [field, page] of Object.entries(pages)) {
548
- for (const child of page.entries) {
549
- tags.push(...child.cacheHint.tags);
550
- const modified = child.cacheHint.lastModified;
551
- if (modified && (!lastModified || modified > lastModified)) lastModified = modified;
552
- }
553
- references[field] = {
554
- entries: page.entries.map((child) => wrapReferencedEntry(page.collection, child)),
555
- ...page.nextCursor === void 0 ? {} : { nextCursor: page.nextCursor }
556
- };
557
- }
558
- entry.references = references;
559
- return {
560
- tags,
561
- ...lastModified ? { lastModified } : {}
562
- };
563
- }
564
- /**
565
- * Fold the children's cache hint into the entry's own.
566
- *
567
- * A render that shows a referenced entry has read that row, so the route's tags
568
- * have to name it and its `Last-Modified` has to move when it changes. Without
569
- * this the route cache's `invalidate({ tags: [collection, id] })` on a child
570
- * write would never reach the pages that render the child.
571
- */
572
- function mergeCacheHints(base, extra) {
573
- if (!extra.tags?.length && !extra.lastModified) return base;
574
- const tags = [...new Set([...base.tags ?? [], ...extra.tags ?? []])];
575
- const newest = base.lastModified && extra.lastModified ? base.lastModified > extra.lastModified ? base.lastModified : extra.lastModified : base.lastModified ?? extra.lastModified;
576
- return {
577
- ...tags.length > 0 ? { tags } : {},
578
- ...newest ? { lastModified: newest } : {}
579
- };
580
- }
581
- /**
582
- * The object-cache namespaces a selection's targets live in.
583
- *
584
- * Without them a cached parent snapshot would outlive a write to the entries it
585
- * points at. Byline and taxonomy namespaces are deliberately absent: referenced
586
- * entries are loaded without either hydration. The targets are sorted so two
587
- * callers that name the same fields in a different order share one snapshot.
588
- */
589
- async function referenceTargetNamespaces(collection, selection) {
590
- const { getReferenceFieldMap } = await import("./field-map-C_rDXfdJ.mjs").then((n) => n.t);
591
- const fieldMap = await getReferenceFieldMap(collection);
592
- const targets = /* @__PURE__ */ new Set();
593
- for (const [slug, query] of Object.entries(selection)) {
594
- if (query === void 0) continue;
595
- const binding = fieldMap.get(slug);
596
- if (binding) targets.add(binding.targetCollection);
597
- }
598
- return [...targets].toSorted().flatMap((target) => [...contentCacheNamespaces(target)]);
599
- }
600
- /**
601
- * Wrap a referenced entry the way the collection paths wrap their own: an edit
602
- * proxy in edit mode, revision metadata stripped for anyone who may not see it.
603
- *
604
- * The proxy is scoped to the *referenced* entry's collection and row, so
605
- * clicking through from a card opens the entry the card is about.
606
- */
607
- function wrapReferencedEntry(collection, child) {
608
- const isEditMode = getRequestContext()?.editMode ?? false;
609
- const dbId = entryDatabaseId(child);
610
- if (isEditMode) tagEditableFields(child.data, collection, dbId);
611
- if (!canExposeRevisionMetadata(child, collection)) stripRevisionMetadata(child);
612
- return {
613
- id: child.id,
614
- data: child.data,
615
- edit: isEditMode ? createEditable(collection, dbId, entryEditOptions(child)) : createNoop()
616
- };
617
- }
618
- async function resolveEmDashEntry(type, id, options) {
619
- const { getLiveEntry } = await import("astro:content");
620
- const ctx = getRequestContext();
621
- const preview = ctx?.preview;
622
- const isEditMode = ctx?.editMode ?? false;
623
- const isPreviewMode = !!preview && preview.collection === type;
624
- const serveDrafts = isPreviewMode || isEditMode;
625
- const rawLocale = options?.locale ?? ctx?.locale;
626
- const requestedLocale = rawLocale === void 0 ? void 0 : resolveConfiguredLocale(rawLocale);
627
- const references = options?.references;
628
- const portableTextFields = isEditMode ? await getPortableTextFieldSlugs(type) : void 0;
629
- /** Wrap a raw Astro entry with edit proxy, tagging editable fields if needed */
630
- function wrapEntry(raw) {
631
- const dbId = entryDatabaseId(raw);
632
- if (isEditMode) tagEditableFields(entryData(raw), type, dbId, portableTextFields);
633
- return {
634
- ...raw,
635
- edit: isEditMode ? createEditable(type, dbId, entryEditOptions(raw)) : createNoop()
636
- };
637
- }
638
- /** Check if an entry has completed publication. */
639
- function isVisible(entry) {
640
- return dataStr(entryData(entry), "status") === "published";
641
- }
642
- const localeChain = requestedLocale && isI18nEnabled() ? getFallbackChain(requestedLocale) : [requestedLocale];
643
- /** Return a successful EntryResult with bylines, taxonomy terms and references hydrated */
644
- async function successResult(wrapped, opts) {
645
- const draftRevisionId = dataStr(entryData(wrapped), "draftRevisionId") || void 0;
646
- if (!opts.isPreview) stripRevisionMetadata(wrapped);
647
- const termLocale = isI18nEnabled() ? dataStr(entryData(wrapped), "locale") || void 0 : void 0;
648
- const [, , referenceHint] = await Promise.all([
649
- hydrateEntryBylines(type, [wrapped]),
650
- hydrateEntryTerms(type, [wrapped], termLocale),
651
- references ? attachReferences(type, wrapped, {
652
- selection: references,
653
- serveDrafts: opts.isPreview,
654
- draftRevisionId
655
- }) : Promise.resolve({})
656
- ]);
657
- return {
658
- entry: wrapped,
659
- isPreview: opts.isPreview,
660
- fallbackLocale: opts.fallbackLocale,
661
- cacheHint: mergeCacheHints(opts.cacheHint, referenceHint)
662
- };
663
- }
664
- if (serveDrafts) {
665
- for (let i = 0; i < localeChain.length; i++) {
666
- const locale = localeChain[i];
667
- const fallbackLocale = i > 0 ? locale : void 0;
668
- const { entry: baseEntry, error: baseError, cacheHint } = await getLiveEntry(COLLECTION_NAME, {
669
- type,
670
- id,
671
- locale
672
- });
673
- if (baseError) {
674
- if (baseError.name === "LiveEntryNotFoundError") continue;
675
- return {
676
- entry: null,
677
- error: baseError,
678
- isPreview: serveDrafts,
679
- cacheHint: {}
680
- };
681
- }
682
- if (!baseEntry) continue;
683
- if (isPreviewMode && !isEditMode) {
684
- const dbId = entryDatabaseId(baseEntry);
685
- if (preview.id !== dbId && preview.id !== id) {
686
- if (isVisible(baseEntry)) return successResult(wrapEntry(baseEntry), {
687
- isPreview: false,
688
- fallbackLocale,
689
- cacheHint: cacheHint ?? {}
690
- });
691
- continue;
692
- }
693
- }
694
- const draftRevisionId = dataStr(entryData(baseEntry), "draftRevisionId") || void 0;
695
- if (draftRevisionId) {
696
- const { entry: draftEntry, error: draftError } = await getLiveEntry(COLLECTION_NAME, {
697
- type,
698
- id,
699
- revisionId: draftRevisionId,
700
- locale
701
- });
702
- if (!draftError && draftEntry) return successResult(wrapEntry(draftEntry), {
703
- isPreview: serveDrafts,
704
- fallbackLocale,
705
- cacheHint: cacheHint ?? {}
706
- });
707
- }
708
- return successResult(wrapEntry(baseEntry), {
709
- isPreview: serveDrafts,
710
- fallbackLocale,
711
- cacheHint: cacheHint ?? {}
712
- });
713
- }
714
- return {
715
- entry: null,
716
- isPreview: serveDrafts,
717
- cacheHint: {}
718
- };
719
- }
720
- const resolveNormal = async () => {
721
- for (let i = 0; i < localeChain.length; i++) {
722
- const locale = localeChain[i];
723
- const fallbackLocale = i > 0 ? locale : void 0;
724
- const { entry, error, cacheHint } = await getLiveEntry(COLLECTION_NAME, {
725
- type,
726
- id,
727
- locale,
728
- ...locale !== void 0 && getLocaleCandidates(locale).length > 1 ? { publishedOnly: true } : {}
729
- });
730
- if (error) {
731
- if (error.name === "LiveEntryNotFoundError") continue;
732
- return {
733
- entry: null,
734
- error,
735
- isPreview: false,
736
- cacheHint: {}
737
- };
738
- }
739
- if (entry && isVisible(entry)) return successResult(wrapEntry(entry), {
740
- isPreview: false,
741
- fallbackLocale,
742
- cacheHint: cacheHint ?? {}
743
- });
744
- }
745
- return {
746
- entry: null,
747
- isPreview: false,
748
- cacheHint: {}
749
- };
750
- };
751
- const namespaces = references ? [...contentNamespaces(type), ...await referenceTargetNamespaces(type, references)] : contentNamespaces(type);
752
- const referenceKey = references ? `|refs=${stableStringify(references)}` : "";
753
- const snapshot = await cachedQuery({
754
- namespace: namespaces,
755
- key: `entry:${id}|loc=${requestedLocale ?? ""}${referenceKey}`,
756
- load: async () => {
757
- const result = await resolveNormal();
758
- if (result.error) return {
759
- ok: false,
760
- error: result.error,
761
- cacheHint: result.cacheHint
762
- };
763
- return {
764
- ok: true,
765
- value: {
766
- entry: result.entry ? entrySnapshot(result.entry) : null,
767
- isPreview: result.isPreview,
768
- fallbackLocale: result.fallbackLocale,
769
- cacheHint: result.cacheHint
770
- }
771
- };
772
- },
773
- cacheable: (snap) => snap.ok
774
- });
775
- if (!snapshot.ok) return {
776
- entry: null,
777
- error: snapshot.error,
778
- isPreview: false,
779
- cacheHint: snapshot.cacheHint
780
- };
781
- const revived = snapshot.value.entry ? reviveEntry(snapshot.value.entry) : null;
782
- if (revived && !canExposeRevisionMetadata(revived, type)) stripRevisionMetadata(revived);
783
- if (revived) {
784
- const { id: rowId, seo } = revived.data;
785
- if (seo && typeof rowId === "string") primeSeoPanel(type, rowId, seo);
786
- }
787
- return {
788
- entry: revived,
789
- isPreview: snapshot.value.isPreview,
790
- fallbackLocale: snapshot.value.fallbackLocale,
791
- cacheHint: snapshot.value.cacheHint
792
- };
793
- }
794
- /**
795
- * Get one page of a single reference field, without re-reading the entry it
796
- * hangs off.
797
- *
798
- * `getEmDashEntry({ references })` returns the first page of each field it is
799
- * asked for; this is how a "load more" walks past it, using the `nextCursor`
800
- * that page carried. Draft visibility follows the same request context — a
801
- * preview token for this entry, or edit mode — so a walk started in preview
802
- * keeps seeing the pending selection.
803
- *
804
- * @example
805
- * ```ts
806
- * import { getEmDashReferences } from "emdash";
807
- *
808
- * const more = await getEmDashReferences("posts", post.id, "related_posts", {
809
- * cursor,
810
- * limit: 20,
811
- * });
812
- * ```
813
- */
814
- async function getEmDashReferences(type, id, field, options) {
815
- const ctx = getRequestContext();
816
- const preview = ctx?.preview;
817
- const isEditMode = ctx?.editMode ?? false;
818
- const rawLocale = options?.locale ?? ctx?.locale;
819
- const locale = rawLocale === void 0 ? void 0 : resolveConfiguredLocale(rawLocale);
820
- try {
821
- const { getDb } = await import("./loader-D4w4XE7q.mjs").then((n) => n.u);
822
- const { ContentRepository } = await import("./content-Dt0Os_WQ.mjs").then((n) => n.n);
823
- const { resolveReferencePages } = await import("./resolve-CVy9xgy_.mjs");
824
- const db = await getDb();
825
- const addressed = splitLocalePrefixedId(id, locale);
826
- const entry = await new ContentRepository(db).findByIdOrSlug(type, addressed.id, addressed.locale);
827
- if (!entry?.translationGroup) return { entries: [] };
828
- const previewMatches = !!preview && preview.collection === type && (preview.id === entry.id || preview.id === id);
829
- const serveDrafts = isEditMode || previewMatches;
830
- if (!serveDrafts && entry.status !== "published") return { entries: [] };
831
- const query = options?.limit === void 0 && options?.cursor === void 0 ? true : {
832
- limit: options.limit,
833
- cursor: options.cursor
834
- };
835
- const page = (await resolveReferencePages({
836
- collection: type,
837
- entryGroup: entry.translationGroup,
838
- locale: entry.locale,
839
- draftRevisionId: entry.draftRevisionId ?? void 0,
840
- serveDrafts,
841
- selection: { [field]: query }
842
- }))[field];
843
- if (!page) return { entries: [] };
844
- const tags = [];
845
- let lastModified;
846
- for (const child of page.entries) {
847
- tags.push(...child.cacheHint.tags);
848
- const modified = child.cacheHint.lastModified;
849
- if (modified && (!lastModified || modified > lastModified)) lastModified = modified;
850
- }
851
- return {
852
- entries: page.entries.map((child) => wrapReferencedEntry(page.collection, child)),
853
- ...page.nextCursor === void 0 ? {} : { nextCursor: page.nextCursor },
854
- cacheHint: {
855
- tags,
856
- ...lastModified ? { lastModified } : {}
857
- }
858
- };
859
- } catch (error) {
860
- return {
861
- entries: [],
862
- error: error instanceof Error ? error : new Error(String(error))
863
- };
864
- }
865
- }
866
- /**
867
- * Take a locale prefix off an entry id, and read it as the locale to look in.
868
- *
869
- * Wherever i18n prefixes a locale's URLs, an entry is addressed as `fr/about`
870
- * rather than `about` — that is the id the loader builds and the id a render
871
- * holds, including for a referenced entry. Rows are stored under the bare slug,
872
- * so the prefix has to become the locale instead. A first segment that is not a
873
- * configured locale is part of the identifier and stays put.
874
- */
875
- function splitLocalePrefixedId(id, locale) {
876
- const slash = id.indexOf("/");
877
- if (slash === -1) return {
878
- id,
879
- locale
880
- };
881
- const prefix = id.slice(0, slash);
882
- if (!getI18nConfig()?.locales.includes(prefix)) return {
883
- id,
884
- locale
885
- };
886
- return {
887
- id: id.slice(slash + 1),
888
- locale: prefix
889
- };
890
- }
891
- /**
892
- * Eagerly hydrate byline data onto entry.data for one or more entries.
893
- *
894
- * Attaches `bylines` (array of ContentBylineCredit) and `byline`
895
- * (primary BylineSummary or null) to each entry's data object.
896
- * Uses batch queries to avoid N+1.
897
- *
898
- * Fails silently if the byline tables don't exist yet (pre-migration).
899
- */
900
- async function hydrateEntryBylines(type, entries) {
901
- if (entries.length === 0) return;
902
- if (entries.every((e) => FOLDED_BYLINES in entryData(e))) {
903
- const parsed = entries.map((entry) => {
904
- const data = entryData(entry);
905
- const folded = Reflect.get(data, FOLDED_BYLINES);
906
- return {
907
- data,
908
- credits: creditsFromFoldedBylines(Array.isArray(folded) ? folded : [])
909
- };
910
- });
911
- const knownEmpty = entries.every((e) => Reflect.get(entryData(e), FOLDED_BYLINES_EXIST) === false);
912
- let needsQueryPath = !knownEmpty && parsed.some((p) => p.credits.length === 0 && (dataStr(p.data, "authorId") !== "" || dataStr(p.data, "primaryBylineId") !== ""));
913
- let hasCustomFields = false;
914
- if (!needsQueryPath && !knownEmpty) try {
915
- const { getDb } = await import("./loader-D4w4XE7q.mjs").then((n) => n.u);
916
- const db = await getDb();
917
- const { getBylineFieldDefs } = await import("./field-defs-cache-C7sR7ZeU.mjs").then((n) => n.t);
918
- hasCustomFields = (await getBylineFieldDefs(db)).length > 0;
919
- } catch (error) {
920
- if (!isMissingTableError(error)) needsQueryPath = true;
921
- }
922
- if (!needsQueryPath && !hasCustomFields) {
923
- for (const p of parsed) {
924
- p.data.bylines = p.credits;
925
- p.data.byline = p.credits[0]?.byline ?? null;
926
- }
927
- return;
928
- }
929
- }
930
- try {
931
- const { getBylinesForEntries } = await import("./bylines-BF555iIz.mjs").then((n) => n.t);
932
- const refs = entries.map((e) => {
933
- const data = entryData(e);
934
- const id = dataStr(data, "id");
935
- if (!id) return null;
936
- return {
937
- id,
938
- authorId: dataStr(data, "authorId") || null,
939
- primaryBylineId: dataStr(data, "primaryBylineId") || null,
940
- locale: dataStr(data, "locale") || null
941
- };
942
- }).filter((r) => r !== null);
943
- if (refs.length === 0) return;
944
- const bylinesMap = await getBylinesForEntries(type, refs);
945
- for (const entry of entries) {
946
- const data = entryData(entry);
947
- const dbId = dataStr(data, "id");
948
- if (!dbId) continue;
949
- const credits = bylinesMap.get(dbId) ?? [];
950
- data.bylines = credits;
951
- data.byline = credits[0]?.byline ?? null;
952
- }
953
- } catch (err) {
954
- if (!isMissingTableError(err)) {
955
- const msg = err instanceof Error ? err.message : String(err);
956
- console.warn("[emdash] Failed to hydrate bylines:", msg);
957
- }
958
- }
959
- }
960
- /**
961
- * Eagerly hydrate taxonomy term data onto entry.data for one or more entries.
962
- *
963
- * Attaches `terms` (Record keyed by taxonomy name with an array of TaxonomyTerm
964
- * values) to each entry's data object. Uses a single batched JOIN query across
965
- * all taxonomies so the cost is O(1) regardless of the number of entries or
966
- * taxonomies on the site.
967
- *
968
- * This eliminates the common N+1 pattern where templates loop over list
969
- * results and call getEntryTerms() per entry. With hydration, the list page
970
- * stays at a single round-trip for term data.
971
- *
972
- * `locale` is the preferred locale the entries were resolved to. Each assigned
973
- * group resolves that variant first, then the configured default. When it is
974
- * omitted, the stored locale of each content row is preferred.
975
- *
976
- * Fails silently if the taxonomy tables don't exist yet (pre-migration).
977
- */
978
- async function hydrateEntryTerms(type, entries, locale) {
979
- if (entries.length === 0) return;
980
- if (entries.every((e) => FOLDED_TERMS in entryData(e))) {
981
- const perEntry = [];
982
- for (const entry of entries) {
983
- const data = entryData(entry);
984
- const folded = Reflect.get(data, FOLDED_TERMS);
985
- const rows = Array.isArray(folded) ? folded : [];
986
- const grouped = {};
987
- for (const r of rows) {
988
- const name = String(r?.name);
989
- (grouped[name] ??= []).push({
990
- id: r?.id,
991
- name,
992
- slug: r?.slug,
993
- label: r?.label,
994
- parentId: r?.parent_id ?? void 0,
995
- children: [],
996
- locale: r?.locale,
997
- translationGroup: r?.translation_group
998
- });
999
- }
1000
- for (const [name, arr] of Object.entries(grouped)) grouped[name] = arr.toSorted((a, b) => String(a.label).localeCompare(String(b.label)));
1001
- data.terms = grouped;
1002
- const entryId = dataStr(data, "id");
1003
- if (entryId) perEntry.push({
1004
- entryId,
1005
- byTaxonomy: grouped
1006
- });
1007
- }
1008
- const { primeFoldedEntryTerms } = await import("./taxonomies-By2aGvq2.mjs").then((n) => n.f);
1009
- primeFoldedEntryTerms(type, perEntry, { locale });
1010
- return;
1011
- }
1012
- try {
1013
- const { getAllTermsForEntries } = await import("./taxonomies-By2aGvq2.mjs").then((n) => n.f);
1014
- const ids = entries.map((e) => dataStr(entryData(e), "id")).filter(Boolean);
1015
- if (ids.length === 0) return;
1016
- const termsMap = await getAllTermsForEntries(type, ids, { locale });
1017
- for (const entry of entries) {
1018
- const data = entryData(entry);
1019
- const dbId = dataStr(data, "id");
1020
- if (!dbId) continue;
1021
- data.terms = termsMap.get(dbId) ?? {};
1022
- }
1023
- } catch (err) {
1024
- if (!isMissingTableError(err)) {
1025
- const msg = err instanceof Error ? err.message : String(err);
1026
- console.warn("[emdash] Failed to hydrate terms:", msg);
1027
- }
1028
- }
1029
- }
1030
- /**
1031
- * Get all translations of a content item.
1032
- *
1033
- * Given a content entry, returns all locale variants that share the same
1034
- * translation group. This is useful for building language switcher UI.
1035
- *
1036
- * @example
1037
- * ```ts
1038
- * import { getEmDashEntry, getTranslations } from "emdash";
1039
- *
1040
- * const { entry: post } = await getEmDashEntry("posts", "hello-world", { locale: "en" });
1041
- * const { translations } = await getTranslations("posts", post.data.id);
1042
- * // translations = [{ id: "...", locale: "en", slug: "hello-world", status: "published" }, ...]
1043
- * ```
1044
- */
1045
- async function getTranslations(type, id) {
1046
- try {
1047
- const db = (await import("./loader-D4w4XE7q.mjs").then((n) => n.u)).getDb;
1048
- const dbInstance = await db();
1049
- const { ContentRepository } = await import("./content-Dt0Os_WQ.mjs").then((n) => n.n);
1050
- const repo = new ContentRepository(dbInstance);
1051
- const item = await repo.findByIdOrSlug(type, id);
1052
- if (!item) return {
1053
- translationGroup: "",
1054
- translations: [],
1055
- error: /* @__PURE__ */ new Error(`Content item not found: ${id}`)
1056
- };
1057
- const group = item.translationGroup || item.id;
1058
- return {
1059
- translationGroup: group,
1060
- translations: (await repo.findTranslations(type, group)).map((t) => ({
1061
- id: t.id,
1062
- locale: t.locale || "en",
1063
- slug: t.slug,
1064
- status: t.status
1065
- }))
1066
- };
1067
- } catch (error) {
1068
- return {
1069
- translationGroup: "",
1070
- translations: [],
1071
- error: error instanceof Error ? error : new Error(String(error))
1072
- };
1073
- }
1074
- }
1075
- const URL_PATTERN_CACHE_KEY = Symbol.for("emdash:url-pattern-cache");
1076
- const queryGlobal = globalThis;
1077
- const urlPatternCache = queryGlobal[URL_PATTERN_CACHE_KEY] ?? (() => {
1078
- const cache = { patterns: null };
1079
- queryGlobal[URL_PATTERN_CACHE_KEY] = cache;
1080
- return cache;
1081
- })();
1082
- /**
1083
- * Invalidate the cached URL patterns used by resolveEmDashPath.
1084
- * Call when collection URL patterns change (schema updates).
1085
- *
1086
- * Also busts the distributed schema cache (collection metadata such as
1087
- * `commentsEnabled`, `supports`, fields read by `getCollectionInfo`) and the
1088
- * per-isolate registered-collection-slugs cache used by term counting, since
1089
- * every schema-mutation path already routes through here.
1090
- */
1091
- function invalidateUrlPatternCache() {
1092
- urlPatternCache.patterns = null;
1093
- resetRegisteredCollectionsCache();
1094
- invalidateSchemaObjectCache();
1095
- }
1096
- /**
1097
- * Resolve a URL path to a content entry by matching against collection URL patterns.
1098
- *
1099
- * Loads all collections with a `urlPattern` set, converts each pattern to a regex,
1100
- * and tests the given path. On match, extracts the slug and fetches the entry.
1101
- *
1102
- * @example
1103
- * ```ts
1104
- * import { resolveEmDashPath } from "emdash";
1105
- *
1106
- * // Given pages with urlPattern "/{slug}" and posts with "/blog/{slug}":
1107
- * const result = await resolveEmDashPath("/blog/hello-world");
1108
- * if (result) {
1109
- * console.log(result.collection); // "posts"
1110
- * console.log(result.params.slug); // "hello-world"
1111
- * console.log(result.entry.data); // post data
1112
- * }
1113
- * ```
1114
- */
1115
- async function resolveEmDashPath(path) {
1116
- let cachedUrlPatterns = urlPatternCache.patterns;
1117
- if (!cachedUrlPatterns) {
1118
- const { getDb } = await import("./loader-D4w4XE7q.mjs").then((n) => n.u);
1119
- const { SchemaRegistry } = await import("./registry-DymfZkAN.mjs").then((n) => n.r);
1120
- const collections = await new SchemaRegistry(await getDb()).listCollections();
1121
- cachedUrlPatterns = [];
1122
- for (const collection of collections) {
1123
- if (!collection.urlPattern) continue;
1124
- try {
1125
- const { regex, paramNames } = compileUrlPattern(collection.urlPattern);
1126
- cachedUrlPatterns.push({
1127
- slug: collection.slug,
1128
- regex,
1129
- paramNames
1130
- });
1131
- } catch (error) {
1132
- const reason = error instanceof Error ? error.message : String(error);
1133
- console.warn(`[emdash] Skipping URL pattern "${collection.urlPattern}" for collection "${collection.slug}": ${reason}. Update the collection's URL pattern to route its entries.`);
1134
- }
1135
- }
1136
- urlPatternCache.patterns = cachedUrlPatterns;
1137
- }
1138
- for (const pattern of cachedUrlPatterns) {
1139
- const match = path.match(pattern.regex);
1140
- if (!match) continue;
1141
- const params = {};
1142
- for (let i = 0; i < pattern.paramNames.length; i++) params[pattern.paramNames[i]] = match[i + 1];
1143
- const slug = params.slug;
1144
- if (!slug) continue;
1145
- const { entry } = await getEmDashEntry(pattern.slug, slug);
1146
- if (entry) return {
1147
- entry,
1148
- collection: pattern.slug,
1149
- params
1150
- };
1151
- }
1152
- return null;
1153
- }
1154
-
1155
- //#endregion
1156
- export { getTranslations as a, resolveEmDashPath as c, getEmDashReferences as i, createEditable as l, getEmDashCollection as n, invalidateUrlPatternCache as o, getEmDashEntry as r, query_exports as s, getEditMeta as t, createNoop as u };
1157
- //# sourceMappingURL=query-eR_Nz70M.mjs.map