ghost 5.81.0 → 5.82.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 (149) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.82.0.tgz +0 -0
  2. package/components/{tryghost-adapter-cache-redis-5.81.0.tgz → tryghost-adapter-cache-redis-5.82.0.tgz} +0 -0
  3. package/components/{tryghost-adapter-manager-5.81.0.tgz → tryghost-adapter-manager-5.82.0.tgz} +0 -0
  4. package/components/tryghost-announcement-bar-settings-5.82.0.tgz +0 -0
  5. package/components/{tryghost-api-framework-5.81.0.tgz → tryghost-api-framework-5.82.0.tgz} +0 -0
  6. package/components/{tryghost-api-version-compatibility-service-5.81.0.tgz → tryghost-api-version-compatibility-service-5.82.0.tgz} +0 -0
  7. package/components/{tryghost-audience-feedback-5.81.0.tgz → tryghost-audience-feedback-5.82.0.tgz} +0 -0
  8. package/components/tryghost-bookshelf-repository-5.82.0.tgz +0 -0
  9. package/components/{tryghost-bootstrap-socket-5.81.0.tgz → tryghost-bootstrap-socket-5.82.0.tgz} +0 -0
  10. package/components/tryghost-collections-5.82.0.tgz +0 -0
  11. package/components/{tryghost-constants-5.81.0.tgz → tryghost-constants-5.82.0.tgz} +0 -0
  12. package/components/{tryghost-custom-theme-settings-service-5.81.0.tgz → tryghost-custom-theme-settings-service-5.82.0.tgz} +0 -0
  13. package/components/tryghost-data-generator-5.82.0.tgz +0 -0
  14. package/components/{tryghost-domain-events-5.81.0.tgz → tryghost-domain-events-5.82.0.tgz} +0 -0
  15. package/components/{tryghost-donations-5.81.0.tgz → tryghost-donations-5.82.0.tgz} +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.82.0.tgz +0 -0
  17. package/components/{tryghost-email-addresses-5.81.0.tgz → tryghost-email-addresses-5.82.0.tgz} +0 -0
  18. package/components/{tryghost-email-analytics-provider-mailgun-5.81.0.tgz → tryghost-email-analytics-provider-mailgun-5.82.0.tgz} +0 -0
  19. package/components/{tryghost-email-analytics-service-5.81.0.tgz → tryghost-email-analytics-service-5.82.0.tgz} +0 -0
  20. package/components/{tryghost-email-content-generator-5.81.0.tgz → tryghost-email-content-generator-5.82.0.tgz} +0 -0
  21. package/components/{tryghost-email-events-5.81.0.tgz → tryghost-email-events-5.82.0.tgz} +0 -0
  22. package/components/tryghost-email-service-5.82.0.tgz +0 -0
  23. package/components/tryghost-email-suppression-list-5.82.0.tgz +0 -0
  24. package/components/tryghost-express-dynamic-redirects-5.82.0.tgz +0 -0
  25. package/components/tryghost-external-media-inliner-5.82.0.tgz +0 -0
  26. package/components/tryghost-extract-api-key-5.82.0.tgz +0 -0
  27. package/components/tryghost-ghost-5.82.0.tgz +0 -0
  28. package/components/{tryghost-html-to-plaintext-5.81.0.tgz → tryghost-html-to-plaintext-5.82.0.tgz} +0 -0
  29. package/components/tryghost-i18n-5.82.0.tgz +0 -0
  30. package/components/{tryghost-importer-handler-content-files-5.81.0.tgz → tryghost-importer-handler-content-files-5.82.0.tgz} +0 -0
  31. package/components/{tryghost-importer-revue-5.81.0.tgz → tryghost-importer-revue-5.82.0.tgz} +0 -0
  32. package/components/tryghost-in-memory-repository-5.82.0.tgz +0 -0
  33. package/components/{tryghost-job-manager-5.81.0.tgz → tryghost-job-manager-5.82.0.tgz} +0 -0
  34. package/components/{tryghost-link-redirects-5.81.0.tgz → tryghost-link-redirects-5.82.0.tgz} +0 -0
  35. package/components/tryghost-link-replacer-5.82.0.tgz +0 -0
  36. package/components/{tryghost-link-tracking-5.81.0.tgz → tryghost-link-tracking-5.82.0.tgz} +0 -0
  37. package/components/{tryghost-magic-link-5.81.0.tgz → tryghost-magic-link-5.82.0.tgz} +0 -0
  38. package/components/{tryghost-mail-events-5.81.0.tgz → tryghost-mail-events-5.82.0.tgz} +0 -0
  39. package/components/tryghost-mailgun-client-5.82.0.tgz +0 -0
  40. package/components/{tryghost-member-attribution-5.81.0.tgz → tryghost-member-attribution-5.82.0.tgz} +0 -0
  41. package/components/{tryghost-member-events-5.81.0.tgz → tryghost-member-events-5.82.0.tgz} +0 -0
  42. package/components/tryghost-members-api-5.82.0.tgz +0 -0
  43. package/components/tryghost-members-csv-5.82.0.tgz +0 -0
  44. package/components/tryghost-members-events-service-5.82.0.tgz +0 -0
  45. package/components/{tryghost-members-importer-5.81.0.tgz → tryghost-members-importer-5.82.0.tgz} +0 -0
  46. package/components/{tryghost-members-offers-5.81.0.tgz → tryghost-members-offers-5.82.0.tgz} +0 -0
  47. package/components/{tryghost-members-payments-5.81.0.tgz → tryghost-members-payments-5.82.0.tgz} +0 -0
  48. package/components/{tryghost-members-ssr-5.81.0.tgz → tryghost-members-ssr-5.82.0.tgz} +0 -0
  49. package/components/tryghost-members-stripe-service-5.82.0.tgz +0 -0
  50. package/components/{tryghost-mentions-email-report-5.81.0.tgz → tryghost-mentions-email-report-5.82.0.tgz} +0 -0
  51. package/components/tryghost-milestones-5.82.0.tgz +0 -0
  52. package/components/tryghost-minifier-5.82.0.tgz +0 -0
  53. package/components/{tryghost-model-to-domain-event-interceptor-5.81.0.tgz → tryghost-model-to-domain-event-interceptor-5.82.0.tgz} +0 -0
  54. package/components/{tryghost-mw-api-version-mismatch-5.81.0.tgz → tryghost-mw-api-version-mismatch-5.82.0.tgz} +0 -0
  55. package/components/tryghost-mw-cache-control-5.82.0.tgz +0 -0
  56. package/components/{tryghost-mw-error-handler-5.81.0.tgz → tryghost-mw-error-handler-5.82.0.tgz} +0 -0
  57. package/components/{tryghost-mw-session-from-token-5.81.0.tgz → tryghost-mw-session-from-token-5.82.0.tgz} +0 -0
  58. package/components/tryghost-mw-update-user-last-seen-5.82.0.tgz +0 -0
  59. package/components/{tryghost-mw-version-match-5.81.0.tgz → tryghost-mw-version-match-5.82.0.tgz} +0 -0
  60. package/components/tryghost-mw-vhost-5.82.0.tgz +0 -0
  61. package/components/{tryghost-nql-filter-expansions-5.81.0.tgz → tryghost-nql-filter-expansions-5.82.0.tgz} +0 -0
  62. package/components/{tryghost-oembed-service-5.81.0.tgz → tryghost-oembed-service-5.82.0.tgz} +0 -0
  63. package/components/{tryghost-package-json-5.81.0.tgz → tryghost-package-json-5.82.0.tgz} +0 -0
  64. package/components/{tryghost-post-events-5.81.0.tgz → tryghost-post-events-5.82.0.tgz} +0 -0
  65. package/components/tryghost-post-revisions-5.82.0.tgz +0 -0
  66. package/components/{tryghost-posts-service-5.81.0.tgz → tryghost-posts-service-5.82.0.tgz} +0 -0
  67. package/components/tryghost-recommendations-5.82.0.tgz +0 -0
  68. package/components/{tryghost-referrers-5.81.0.tgz → tryghost-referrers-5.82.0.tgz} +0 -0
  69. package/components/{tryghost-security-5.81.0.tgz → tryghost-security-5.82.0.tgz} +0 -0
  70. package/components/{tryghost-session-service-5.81.0.tgz → tryghost-session-service-5.82.0.tgz} +0 -0
  71. package/components/{tryghost-settings-path-manager-5.81.0.tgz → tryghost-settings-path-manager-5.82.0.tgz} +0 -0
  72. package/components/tryghost-slack-notifications-5.82.0.tgz +0 -0
  73. package/components/{tryghost-staff-service-5.81.0.tgz → tryghost-staff-service-5.82.0.tgz} +0 -0
  74. package/components/{tryghost-stats-service-5.81.0.tgz → tryghost-stats-service-5.82.0.tgz} +0 -0
  75. package/components/{tryghost-tiers-5.81.0.tgz → tryghost-tiers-5.82.0.tgz} +0 -0
  76. package/components/tryghost-update-check-service-5.82.0.tgz +0 -0
  77. package/components/tryghost-verification-trigger-5.82.0.tgz +0 -0
  78. package/components/{tryghost-version-notifications-data-service-5.81.0.tgz → tryghost-version-notifications-data-service-5.82.0.tgz} +0 -0
  79. package/components/tryghost-webmentions-5.82.0.tgz +0 -0
  80. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
  81. package/core/built/admin/assets/admin-x-demo/{index-771f4964.mjs → index-d851aa59.mjs} +3878 -3638
  82. package/core/built/admin/assets/admin-x-demo/{modals-4c390700.mjs → modals-e82d1de3.mjs} +2 -2
  83. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-958ecc54.mjs → CodeEditorView-b89b1048.mjs} +38 -38
  84. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  85. package/core/built/admin/assets/admin-x-settings/{index-b0d2e448.mjs → index-360b952f.mjs} +4727 -4463
  86. package/core/built/admin/assets/admin-x-settings/{index-2958080a.mjs → index-41c2cf5d.mjs} +2 -2
  87. package/core/built/admin/assets/admin-x-settings/{modals-9adffe5a.mjs → modals-b74a6db0.mjs} +1892 -1861
  88. package/core/built/admin/assets/chunk.524.03e149487a80b8411f34.js +35 -0
  89. package/core/built/admin/assets/{chunk.582.60c2a81399f789e89bc3.js → chunk.582.3e5a6896ec3a261dad7f.js} +4 -4
  90. package/core/built/admin/assets/{chunk.763.7849440ec6494d2449e9.js → chunk.682.d7ae35ab7054f9997ce6.js} +2569 -2099
  91. package/core/built/admin/assets/{ghost-98e64d79ba9e8c020922f0fbfef7f391.js → ghost-030fc6823b98b9b104dd4b2d36f35995.js} +301 -267
  92. package/core/built/admin/assets/{ghost-b364552145dff28b486374caa7c0d556.css → ghost-164646fac0d490158c4d2f185ec72762.css} +1 -1
  93. package/core/built/admin/assets/{ghost-dark-10d1a9f1cd25ba3b2c432d3a58ca2061.css → ghost-dark-4010b9adf1b2506b090f6a51796f26ac.css} +1 -1
  94. package/core/built/admin/assets/img/gradient-bg-e65f49b28dc4e02f7b2f78513b4d8bb6.png +0 -0
  95. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  96. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +26725 -24064
  97. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +175 -159
  98. package/core/built/admin/assets/{vendor-4ac67bfbaac4a201b7fc2dc7d0a028cc.js → vendor-f9bad0b8c0149699f84c0bd9d325068e.js} +235 -235
  99. package/core/built/admin/assets/videos/logo-loader-dark-d15e56e2b5cbcb6a6ac158488c4c6048.mp4 +0 -0
  100. package/core/built/admin/index.html +6 -6
  101. package/core/frontend/services/routing/RouterManager.js +5 -0
  102. package/core/frontend/services/routing/SubscribeRouter.js +27 -0
  103. package/core/frontend/services/routing/controllers/index.js +4 -0
  104. package/core/frontend/services/routing/controllers/subscribe.js +35 -0
  105. package/core/frontend/views/subscribe.hbs +36 -0
  106. package/core/server/data/migrations/versions/5.82/2024-03-25-16-46-10-add-email-recipients-email-id-indexes.js +17 -0
  107. package/core/server/data/migrations/versions/5.82/2024-03-25-16-51-29-drop-email-recipients-non-email-id-indexes.js +17 -0
  108. package/core/server/data/schema/schema.js +7 -4
  109. package/core/server/models/invite.js +1 -2
  110. package/core/server/services/email-analytics/lib/queries.js +15 -8
  111. package/core/server/services/members/MembersConfigProvider.js +3 -1
  112. package/core/server/services/stripe/service.js +2 -0
  113. package/core/server/web/members/app.js +3 -0
  114. package/core/shared/labs.js +3 -1
  115. package/package.json +151 -151
  116. package/yarn.lock +161 -244
  117. package/components/tryghost-adapter-cache-memory-ttl-5.81.0.tgz +0 -0
  118. package/components/tryghost-announcement-bar-settings-5.81.0.tgz +0 -0
  119. package/components/tryghost-bookshelf-repository-5.81.0.tgz +0 -0
  120. package/components/tryghost-collections-5.81.0.tgz +0 -0
  121. package/components/tryghost-data-generator-5.81.0.tgz +0 -0
  122. package/components/tryghost-dynamic-routing-events-5.81.0.tgz +0 -0
  123. package/components/tryghost-email-service-5.81.0.tgz +0 -0
  124. package/components/tryghost-email-suppression-list-5.81.0.tgz +0 -0
  125. package/components/tryghost-express-dynamic-redirects-5.81.0.tgz +0 -0
  126. package/components/tryghost-external-media-inliner-5.81.0.tgz +0 -0
  127. package/components/tryghost-extract-api-key-5.81.0.tgz +0 -0
  128. package/components/tryghost-ghost-5.81.0.tgz +0 -0
  129. package/components/tryghost-i18n-5.81.0.tgz +0 -0
  130. package/components/tryghost-in-memory-repository-5.81.0.tgz +0 -0
  131. package/components/tryghost-link-replacer-5.81.0.tgz +0 -0
  132. package/components/tryghost-mailgun-client-5.81.0.tgz +0 -0
  133. package/components/tryghost-members-api-5.81.0.tgz +0 -0
  134. package/components/tryghost-members-csv-5.81.0.tgz +0 -0
  135. package/components/tryghost-members-events-service-5.81.0.tgz +0 -0
  136. package/components/tryghost-members-stripe-service-5.81.0.tgz +0 -0
  137. package/components/tryghost-milestones-5.81.0.tgz +0 -0
  138. package/components/tryghost-minifier-5.81.0.tgz +0 -0
  139. package/components/tryghost-mw-cache-control-5.81.0.tgz +0 -0
  140. package/components/tryghost-mw-update-user-last-seen-5.81.0.tgz +0 -0
  141. package/components/tryghost-mw-vhost-5.81.0.tgz +0 -0
  142. package/components/tryghost-post-revisions-5.81.0.tgz +0 -0
  143. package/components/tryghost-recommendations-5.81.0.tgz +0 -0
  144. package/components/tryghost-slack-notifications-5.81.0.tgz +0 -0
  145. package/components/tryghost-update-check-service-5.81.0.tgz +0 -0
  146. package/components/tryghost-verification-trigger-5.81.0.tgz +0 -0
  147. package/components/tryghost-webmentions-5.81.0.tgz +0 -0
  148. package/core/built/admin/assets/chunk.524.846ee06f4d08248f97f4.js +0 -35
  149. /package/core/built/admin/assets/{chunk.763.7849440ec6494d2449e9.js.LICENSE.txt → chunk.682.d7ae35ab7054f9997ce6.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- import { c as e, j as s, u as O, a as te, b as P, d as $, B as K, e as ae, H as T, N as D, f as le } from "./index-771f4964.mjs";
1
+ import { c as e, j as s, u as O, a as te, b as P, d as $, B as K, e as ae, H as T, N as D, f as le } from "./index-d851aa59.mjs";
2
2
  const oe = ({
3
3
  shiftY: l,
4
4
  footerBgColorClass: n = "bg-white dark:bg-black",
@@ -378,4 +378,4 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
378
378
  export {
379
379
  me as default
380
380
  };
381
- //# sourceMappingURL=modals-4c390700.mjs.map
381
+ //# sourceMappingURL=modals-e82d1de3.mjs.map
@@ -1,5 +1,5 @@
1
- import { a as ce, b as q, bW as Rt, bX as qn, e as wt, bY as _n, j as N, bZ as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-b0d2e448.mjs";
2
- import { E as p, F as de, v as Ee, S as Re, o as d, w as qe, C as Jn, x as jn, y as Tt, z as Ot, A as Se, B as It, G as Pt, H as Wt, J as Ue, K as Xe, M as w, O as Z, g as et, b as $e, Q as Qn, R as ee, V as Ft, U as x, W as Yn, X as Zn, Y as ue, Z as L, _ as Xn, $ as er, a0 as tt, a1 as he, a2 as tr, a3 as nr, a4 as rr, a5 as or, a6 as ir, a7 as sr, a8 as lr, a9 as ar, aa as cr, ab as ur, ac as hr, ad as fr, ae as dr, af as mr, ag as Nt, ah as gr, ai as pr, aj as yr, ak as xr, al as kr, am as br, an as qt, ao as Sr, ap as Cr, t as f, aq as vr } from "./index-9cc1df42.mjs";
1
+ import { a as ce, b as _, bX as Rt, bY as _n, e as wt, bZ as qn, j as N, b_ as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-360b952f.mjs";
2
+ import { E as p, F as de, v as Ee, S as Re, o as d, w as _e, C as Jn, x as jn, y as Tt, z as Ot, A as Se, B as It, G as Pt, H as Wt, J as Ue, K as Xe, M as w, O as Z, g as et, b as $e, Q as Qn, R as ee, V as Ft, U as x, W as Yn, X as Zn, Y as ue, Z as L, _ as Xn, $ as er, a0 as tt, a1 as he, a2 as tr, a3 as nr, a4 as rr, a5 as or, a6 as ir, a7 as sr, a8 as lr, a9 as ar, aa as cr, ab as ur, ac as hr, ad as fr, ae as dr, af as mr, ag as Nt, ah as gr, ai as pr, aj as yr, ak as xr, al as kr, am as br, an as _t, ao as Sr, ap as Cr, t as f, aq as vr } from "./index-9cc1df42.mjs";
3
3
  const Ar = (t) => {
4
4
  let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = rt(t.state, r.from);
5
5
  return n.line ? Mr(t) : n.block ? Br(t) : !1;
@@ -17,11 +17,11 @@ const Mr = /* @__PURE__ */ nt(
17
17
  0
18
18
  /* CommentOption.Toggle */
19
19
  ), Lr = /* @__PURE__ */ nt(
20
- _t,
20
+ qt,
21
21
  0
22
22
  /* CommentOption.Toggle */
23
23
  ), Br = /* @__PURE__ */ nt(
24
- (t, e) => _t(t, e, Er(e)),
24
+ (t, e) => qt(t, e, Er(e)),
25
25
  0
26
26
  /* CommentOption.Toggle */
27
27
  );
@@ -59,7 +59,7 @@ function Er(t) {
59
59
  }
60
60
  return e;
61
61
  }
62
- function _t(t, e, r = e.selection.ranges) {
62
+ function qt(t, e, r = e.selection.ranges) {
63
63
  let n = r.map((i) => rt(e, i.from).block);
64
64
  if (!n.every((i) => i))
65
65
  return null;
@@ -142,9 +142,9 @@ const Vt = /* @__PURE__ */ Re.define({
142
142
  return c ? h = Ce(h, h.length, r.minDepth, c) : h = $t(h, e.startState.selection), new O(u == 0 ? n.rest : h, u == 0 ? h : n.rest);
143
143
  }
144
144
  let o = e.annotation(wr);
145
- if ((o == "full" || o == "before") && (t = t.isolate()), e.annotation(qe.addToHistory) === !1)
145
+ if ((o == "full" || o == "before") && (t = t.isolate()), e.annotation(_e.addToHistory) === !1)
146
146
  return e.changes.empty ? t : t.addMapping(e.changes.desc);
147
- let i = v.fromTransaction(e), s = e.annotation(qe.time), l = e.annotation(qe.userEvent);
147
+ let i = v.fromTransaction(e), s = e.annotation(_e.time), l = e.annotation(_e.userEvent);
148
148
  return i ? t = t.addChanges(i, s, l, r, e) : e.selection && (t = t.addSelection(e.startState.selection, s, l, r.newGroupDelay)), (o == "full" || o == "after") && (t = t.isolate()), t;
149
149
  },
150
150
  toJSON(t) {
@@ -231,19 +231,19 @@ function Nr(t, e) {
231
231
  function Ut(t, e) {
232
232
  return t.length ? e.length ? t.concat(e) : t : e;
233
233
  }
234
- const B = [], qr = 200;
234
+ const B = [], _r = 200;
235
235
  function $t(t, e) {
236
236
  if (t.length) {
237
- let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - qr));
237
+ let r = t[t.length - 1], n = r.selectionsAfter.slice(Math.max(0, r.selectionsAfter.length - _r));
238
238
  return n.length && n[n.length - 1].eq(e) ? t : (n.push(e), Ce(t, t.length - 1, 1e9, r.setSelAfter(n)));
239
239
  } else
240
240
  return [v.selection([e])];
241
241
  }
242
- function _r(t) {
242
+ function qr(t) {
243
243
  let e = t[t.length - 1], r = t.slice();
244
244
  return r[t.length - 1] = e.setSelAfter(e.selectionsAfter.slice(0, e.selectionsAfter.length - 1)), r;
245
245
  }
246
- function _e(t, e) {
246
+ function qe(t, e) {
247
247
  if (!t.length)
248
248
  return t;
249
249
  let r = t.length, n = B;
@@ -282,7 +282,7 @@ class O {
282
282
  return i.length > 0 && r - this.prevTime < o && n == this.prevUserEvent && n && /^select($|\.)/.test(n) && Nr(i[i.length - 1], e) ? this : new O($t(this.done, e), this.undone, r, n);
283
283
  }
284
284
  addMapping(e) {
285
- return new O(_e(this.done, e), _e(this.undone, e), this.prevTime, this.prevUserEvent);
285
+ return new O(qe(this.done, e), qe(this.undone, e), this.prevTime, this.prevUserEvent);
286
286
  }
287
287
  pop(e, r, n) {
288
288
  let o = e == 0 ? this.done : this.undone;
@@ -292,13 +292,13 @@ class O {
292
292
  if (n && i.selectionsAfter.length)
293
293
  return r.update({
294
294
  selection: i.selectionsAfter[i.selectionsAfter.length - 1],
295
- annotations: Ge.of({ side: e, rest: _r(o) }),
295
+ annotations: Ge.of({ side: e, rest: qr(o) }),
296
296
  userEvent: e == 0 ? "select.undo" : "select.redo",
297
297
  scrollIntoView: !0
298
298
  });
299
299
  if (i.changes) {
300
300
  let s = o.length == 1 ? B : o.slice(0, o.length - 1);
301
- return i.mapped && (s = _e(s, i.mapped)), r.update({
301
+ return i.mapped && (s = qe(s, i.mapped)), r.update({
302
302
  changes: i.changes,
303
303
  selection: i.startSelection,
304
304
  effects: i.effects,
@@ -983,11 +983,11 @@ const Ae = /* @__PURE__ */ w.define(), xt = /* @__PURE__ */ Re.define({
983
983
  });
984
984
  }
985
985
  });
986
- function qo(t) {
986
+ function _o(t) {
987
987
  let e = [Uo, zo];
988
988
  return t && e.push(An.of(t)), e;
989
989
  }
990
- const _o = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch" }), Ho = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
990
+ const qo = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch" }), Ho = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
991
991
  function kt(t, e, r, n) {
992
992
  return (r == 0 || t(e.sliceDoc(r - 1, r)) != L.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != L.Word);
993
993
  }
@@ -1028,7 +1028,7 @@ const zo = /* @__PURE__ */ Ft.fromClass(class {
1028
1028
  let c = new te(r.doc, i, a.from, a.to);
1029
1029
  for (; !c.next().done; ) {
1030
1030
  let { from: u, to: h } = c.value;
1031
- if ((!s || kt(s, r, u, h)) && (o.empty && u <= o.from && h >= o.to ? l.push(Ho.range(u, h)) : (u >= o.to || h <= o.from) && l.push(_o.range(u, h)), l.length > e.maxMatches))
1031
+ if ((!s || kt(s, r, u, h)) && (o.empty && u <= o.from && h >= o.to ? l.push(Ho.range(u, h)) : (u >= o.to || h <= o.from) && l.push(qo.range(u, h)), l.length > e.maxMatches))
1032
1032
  return x.none;
1033
1033
  }
1034
1034
  }
@@ -1235,7 +1235,7 @@ class Yo extends Ln {
1235
1235
  o(i.value.from, i.value.to);
1236
1236
  }
1237
1237
  }
1238
- const fe = /* @__PURE__ */ w.define(), st = /* @__PURE__ */ w.define(), _ = /* @__PURE__ */ Re.define({
1238
+ const fe = /* @__PURE__ */ w.define(), st = /* @__PURE__ */ w.define(), q = /* @__PURE__ */ Re.define({
1239
1239
  create(t) {
1240
1240
  return new Ve(Ye(t).create(), null);
1241
1241
  },
@@ -1253,11 +1253,11 @@ class Ve {
1253
1253
  }
1254
1254
  const Zo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch" }), Xo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), ei = /* @__PURE__ */ Ft.fromClass(class {
1255
1255
  constructor(t) {
1256
- this.view = t, this.decorations = this.highlight(t.state.field(_));
1256
+ this.view = t, this.decorations = this.highlight(t.state.field(q));
1257
1257
  }
1258
1258
  update(t) {
1259
- let e = t.state.field(_);
1260
- (e != t.startState.field(_) || t.docChanged || t.selectionSet || t.viewportChanged) && (this.decorations = this.highlight(e));
1259
+ let e = t.state.field(q);
1260
+ (e != t.startState.field(q) || t.docChanged || t.selectionSet || t.viewportChanged) && (this.decorations = this.highlight(e));
1261
1261
  }
1262
1262
  highlight({ query: t, panel: e }) {
1263
1263
  if (!e || !t.spec.valid)
@@ -1279,7 +1279,7 @@ const Zo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch" }), Xo = /* @__PURE_
1279
1279
  });
1280
1280
  function me(t) {
1281
1281
  return (e) => {
1282
- let r = e.state.field(_, !1);
1282
+ let r = e.state.field(q, !1);
1283
1283
  return r && r.query.spec.valid ? t(e, r) : En(e);
1284
1284
  };
1285
1285
  }
@@ -1383,7 +1383,7 @@ function Dn(t) {
1383
1383
  e && e == t.root.activeElement && e.select();
1384
1384
  }
1385
1385
  const En = (t) => {
1386
- let e = t.state.field(_, !1);
1386
+ let e = t.state.field(q, !1);
1387
1387
  if (e && e.panel) {
1388
1388
  let r = Bn(t);
1389
1389
  if (r && r != t.root.activeElement) {
@@ -1397,7 +1397,7 @@ const En = (t) => {
1397
1397
  ] });
1398
1398
  return !0;
1399
1399
  }, Rn = (t) => {
1400
- let e = t.state.field(_, !1);
1400
+ let e = t.state.field(q, !1);
1401
1401
  if (!e || !e.panel)
1402
1402
  return !1;
1403
1403
  let r = ue(t, lt);
@@ -1414,7 +1414,7 @@ const En = (t) => {
1414
1414
  class ii {
1415
1415
  constructor(e) {
1416
1416
  this.view = e;
1417
- let r = this.query = e.state.field(_).query.spec;
1417
+ let r = this.query = e.state.field(q).query.spec;
1418
1418
  this.commit = this.commit.bind(this), this.searchField = g("input", {
1419
1419
  value: r.search,
1420
1420
  placeholder: A(e, "Find"),
@@ -1561,7 +1561,7 @@ const si = /* @__PURE__ */ p.baseTheme({
1561
1561
  "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
1562
1562
  "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
1563
1563
  }), li = [
1564
- _,
1564
+ q,
1565
1565
  /* @__PURE__ */ Xn.lowest(ei),
1566
1566
  si
1567
1567
  ];
@@ -1949,7 +1949,7 @@ var vt = function(e) {
1949
1949
  var o = [];
1950
1950
  return e.lineNumbers !== !1 && o.push(ar()), e.highlightActiveLineGutter !== !1 && o.push(cr()), e.highlightSpecialChars !== !1 && o.push(ur()), e.history !== !1 && o.push(Ir()), e.foldGutter !== !1 && o.push(hr()), e.drawSelection !== !1 && o.push(fr()), e.dropCursor !== !1 && o.push(dr()), e.allowMultipleSelections !== !1 && o.push(he.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && o.push(mr()), e.syntaxHighlighting !== !1 && o.push(Nt(Sr, {
1951
1951
  fallback: !0
1952
- })), e.bracketMatching !== !1 && o.push(gr()), e.closeBrackets !== !1 && o.push(pr()), e.autocompletion !== !1 && o.push(yr()), e.rectangularSelection !== !1 && o.push(xr()), r !== !1 && o.push(kr()), e.highlightActiveLine !== !1 && o.push(br()), e.highlightSelectionMatches !== !1 && o.push(qo()), e.tabSize && typeof e.tabSize == "number" && o.push(Pt.of(" ".repeat(e.tabSize))), o.concat([qt.of(n.flat())]).filter(Boolean);
1952
+ })), e.bracketMatching !== !1 && o.push(gr()), e.closeBrackets !== !1 && o.push(pr()), e.autocompletion !== !1 && o.push(yr()), e.rectangularSelection !== !1 && o.push(xr()), r !== !1 && o.push(kr()), e.highlightActiveLine !== !1 && o.push(br()), e.highlightSelectionMatches !== !1 && o.push(_o()), e.tabSize && typeof e.tabSize == "number" && o.push(Pt.of(" ".repeat(e.tabSize))), o.concat([_t.of(n.flat())]).filter(Boolean);
1953
1953
  };
1954
1954
  const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb2bf", Ze = "#7d8799", Ai = "#61afef", Mi = "#98c379", Mt = "#d19a66", Li = "#c678dd", Bi = "#21252b", Lt = "#2c313a", Bt = "#282c34", ze = "#353a42", Di = "#3E4451", Dt = "#528bff", Ei = /* @__PURE__ */ p.theme({
1955
1955
  "&": {
@@ -2091,7 +2091,7 @@ var Ti = p.theme({
2091
2091
  placeholder: s = "",
2092
2092
  basicSetup: l = !0
2093
2093
  } = e, a = [];
2094
- switch (r && a.unshift(qt.of([Io])), l && (typeof l == "boolean" ? a.unshift(vt()) : a.unshift(vt(l))), s && a.unshift(vr(s)), i) {
2094
+ switch (r && a.unshift(_t.of([Io])), l && (typeof l == "boolean" ? a.unshift(vt()) : a.unshift(vt(l))), s && a.unshift(vr(s)), i) {
2095
2095
  case "light":
2096
2096
  a.push(Ti);
2097
2097
  break;
@@ -2171,7 +2171,7 @@ function Wi(t) {
2171
2171
  indentWithTab: G,
2172
2172
  basicSetup: K
2173
2173
  }), se = [Ne, Fe, ...Fn];
2174
- return s && typeof s == "function" && se.push(p.updateListener.of(s)), se = se.concat(l), q(() => {
2174
+ return s && typeof s == "function" && se.push(p.updateListener.of(s)), se = se.concat(l), _(() => {
2175
2175
  if (W && !F) {
2176
2176
  var R = {
2177
2177
  doc: e,
@@ -2190,15 +2190,15 @@ function Wi(t) {
2190
2190
  return () => {
2191
2191
  y && (j(void 0), b(void 0));
2192
2192
  };
2193
- }, [W, F]), q(() => J(t.container), [t.container]), q(() => () => {
2193
+ }, [W, F]), _(() => J(t.container), [t.container]), _(() => () => {
2194
2194
  y && (y.destroy(), b(void 0));
2195
- }, [y]), q(() => {
2195
+ }, [y]), _(() => {
2196
2196
  a && y && y.focus();
2197
- }, [a, y]), q(() => {
2197
+ }, [a, y]), _(() => {
2198
2198
  y && y.dispatch({
2199
2199
  effects: w.reconfigure.of(se)
2200
2200
  });
2201
- }, [c, l, u, h, m, k, C, E, U, $, V, G, K, n, s]), q(() => {
2201
+ }, [c, l, u, h, m, k, C, E, U, $, V, G, K, n, s]), _(() => {
2202
2202
  if (e !== void 0) {
2203
2203
  var R = y ? y.state.doc.toString() : "";
2204
2204
  y && e !== R && y.dispatch({
@@ -2244,7 +2244,7 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2244
2244
  readOnly: P,
2245
2245
  root: W,
2246
2246
  initialState: J
2247
- } = t, y = qn(t, Fi), b = wt(null), {
2247
+ } = t, y = _n(t, Fi), b = wt(null), {
2248
2248
  state: F,
2249
2249
  view: j,
2250
2250
  container: Fe
@@ -2273,7 +2273,7 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2273
2273
  extensions: i,
2274
2274
  initialState: J
2275
2275
  });
2276
- if (_n(e, () => ({
2276
+ if (qn(e, () => ({
2277
2277
  editor: b.current,
2278
2278
  state: F,
2279
2279
  view: j
@@ -2319,9 +2319,9 @@ const Ni = [
2319
2319
  }, J = (b) => {
2320
2320
  u == null || u(b), P(!1);
2321
2321
  };
2322
- q(() => {
2322
+ _(() => {
2323
2323
  Promise.all(l).then(G), ie((b) => ({ setup: b, searchKeymap: !1 }));
2324
- }, [l]), q(() => {
2324
+ }, [l]), _(() => {
2325
2325
  const b = new ResizeObserver(([F]) => {
2326
2326
  $(F.contentRect.width);
2327
2327
  });
@@ -2362,4 +2362,4 @@ const Ni = [
2362
2362
  export {
2363
2363
  Hi as default
2364
2364
  };
2365
- //# sourceMappingURL=CodeEditorView-958ecc54.mjs.map
2365
+ //# sourceMappingURL=CodeEditorView-b89b1048.mjs.map