ghost 5.74.2 → 5.74.4

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 (162) hide show
  1. package/components/{tryghost-adapter-cache-memory-ttl-5.74.2.tgz → tryghost-adapter-cache-memory-ttl-5.74.4.tgz} +0 -0
  2. package/components/{tryghost-adapter-cache-redis-5.74.2.tgz → tryghost-adapter-cache-redis-5.74.4.tgz} +0 -0
  3. package/components/{tryghost-adapter-manager-5.74.2.tgz → tryghost-adapter-manager-5.74.4.tgz} +0 -0
  4. package/components/{tryghost-announcement-bar-settings-5.74.2.tgz → tryghost-announcement-bar-settings-5.74.4.tgz} +0 -0
  5. package/components/{tryghost-api-framework-5.74.2.tgz → tryghost-api-framework-5.74.4.tgz} +0 -0
  6. package/components/tryghost-api-version-compatibility-service-5.74.4.tgz +0 -0
  7. package/components/{tryghost-audience-feedback-5.74.2.tgz → tryghost-audience-feedback-5.74.4.tgz} +0 -0
  8. package/components/tryghost-bookshelf-repository-5.74.4.tgz +0 -0
  9. package/components/tryghost-bootstrap-socket-5.74.4.tgz +0 -0
  10. package/components/tryghost-collections-5.74.4.tgz +0 -0
  11. package/components/{tryghost-constants-5.74.2.tgz → tryghost-constants-5.74.4.tgz} +0 -0
  12. package/components/tryghost-custom-theme-settings-service-5.74.4.tgz +0 -0
  13. package/components/{tryghost-data-generator-5.74.2.tgz → tryghost-data-generator-5.74.4.tgz} +0 -0
  14. package/components/tryghost-domain-events-5.74.4.tgz +0 -0
  15. package/components/tryghost-donations-5.74.4.tgz +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.74.4.tgz +0 -0
  17. package/components/tryghost-email-addresses-5.74.4.tgz +0 -0
  18. package/components/{tryghost-email-analytics-provider-mailgun-5.74.2.tgz → tryghost-email-analytics-provider-mailgun-5.74.4.tgz} +0 -0
  19. package/components/tryghost-email-analytics-service-5.74.4.tgz +0 -0
  20. package/components/{tryghost-email-content-generator-5.74.2.tgz → tryghost-email-content-generator-5.74.4.tgz} +0 -0
  21. package/components/{tryghost-email-events-5.74.2.tgz → tryghost-email-events-5.74.4.tgz} +0 -0
  22. package/components/tryghost-email-service-5.74.4.tgz +0 -0
  23. package/components/tryghost-email-suppression-list-5.74.4.tgz +0 -0
  24. package/components/{tryghost-event-aware-cache-wrapper-5.74.2.tgz → tryghost-event-aware-cache-wrapper-5.74.4.tgz} +0 -0
  25. package/components/{tryghost-express-dynamic-redirects-5.74.2.tgz → tryghost-express-dynamic-redirects-5.74.4.tgz} +0 -0
  26. package/components/{tryghost-external-media-inliner-5.74.2.tgz → tryghost-external-media-inliner-5.74.4.tgz} +0 -0
  27. package/components/tryghost-extract-api-key-5.74.4.tgz +0 -0
  28. package/components/{tryghost-html-to-plaintext-5.74.2.tgz → tryghost-html-to-plaintext-5.74.4.tgz} +0 -0
  29. package/components/tryghost-i18n-5.74.4.tgz +0 -0
  30. package/components/tryghost-importer-handler-content-files-5.74.4.tgz +0 -0
  31. package/components/{tryghost-importer-revue-5.74.2.tgz → tryghost-importer-revue-5.74.4.tgz} +0 -0
  32. package/components/tryghost-in-memory-repository-5.74.4.tgz +0 -0
  33. package/components/{tryghost-job-manager-5.74.2.tgz → tryghost-job-manager-5.74.4.tgz} +0 -0
  34. package/components/{tryghost-link-redirects-5.74.2.tgz → tryghost-link-redirects-5.74.4.tgz} +0 -0
  35. package/components/tryghost-link-replacer-5.74.4.tgz +0 -0
  36. package/components/{tryghost-link-tracking-5.74.2.tgz → tryghost-link-tracking-5.74.4.tgz} +0 -0
  37. package/components/{tryghost-magic-link-5.74.2.tgz → tryghost-magic-link-5.74.4.tgz} +0 -0
  38. package/components/tryghost-mail-events-5.74.4.tgz +0 -0
  39. package/components/{tryghost-mailgun-client-5.74.2.tgz → tryghost-mailgun-client-5.74.4.tgz} +0 -0
  40. package/components/tryghost-member-attribution-5.74.4.tgz +0 -0
  41. package/components/{tryghost-member-events-5.74.2.tgz → tryghost-member-events-5.74.4.tgz} +0 -0
  42. package/components/{tryghost-members-api-5.74.2.tgz → tryghost-members-api-5.74.4.tgz} +0 -0
  43. package/components/tryghost-members-csv-5.74.4.tgz +0 -0
  44. package/components/tryghost-members-events-service-5.74.4.tgz +0 -0
  45. package/components/{tryghost-members-importer-5.74.2.tgz → tryghost-members-importer-5.74.4.tgz} +0 -0
  46. package/components/tryghost-members-offers-5.74.4.tgz +0 -0
  47. package/components/tryghost-members-payments-5.74.4.tgz +0 -0
  48. package/components/{tryghost-members-ssr-5.74.2.tgz → tryghost-members-ssr-5.74.4.tgz} +0 -0
  49. package/components/{tryghost-members-stripe-service-5.74.2.tgz → tryghost-members-stripe-service-5.74.4.tgz} +0 -0
  50. package/components/{tryghost-mentions-email-report-5.74.2.tgz → tryghost-mentions-email-report-5.74.4.tgz} +0 -0
  51. package/components/{tryghost-milestones-5.74.2.tgz → tryghost-milestones-5.74.4.tgz} +0 -0
  52. package/components/tryghost-minifier-5.74.4.tgz +0 -0
  53. package/components/tryghost-model-to-domain-event-interceptor-5.74.4.tgz +0 -0
  54. package/components/tryghost-mw-api-version-mismatch-5.74.4.tgz +0 -0
  55. package/components/tryghost-mw-cache-control-5.74.4.tgz +0 -0
  56. package/components/{tryghost-mw-error-handler-5.74.2.tgz → tryghost-mw-error-handler-5.74.4.tgz} +0 -0
  57. package/components/tryghost-mw-session-from-token-5.74.4.tgz +0 -0
  58. package/components/tryghost-mw-update-user-last-seen-5.74.4.tgz +0 -0
  59. package/components/tryghost-mw-version-match-5.74.4.tgz +0 -0
  60. package/components/tryghost-mw-vhost-5.74.4.tgz +0 -0
  61. package/components/tryghost-nql-filter-expansions-5.74.4.tgz +0 -0
  62. package/components/tryghost-oembed-service-5.74.4.tgz +0 -0
  63. package/components/{tryghost-package-json-5.74.2.tgz → tryghost-package-json-5.74.4.tgz} +0 -0
  64. package/components/{tryghost-post-events-5.74.2.tgz → tryghost-post-events-5.74.4.tgz} +0 -0
  65. package/components/tryghost-post-revisions-5.74.4.tgz +0 -0
  66. package/components/{tryghost-posts-service-5.74.2.tgz → tryghost-posts-service-5.74.4.tgz} +0 -0
  67. package/components/tryghost-recommendations-5.74.4.tgz +0 -0
  68. package/components/{tryghost-referrers-5.74.2.tgz → tryghost-referrers-5.74.4.tgz} +0 -0
  69. package/components/{tryghost-security-5.74.2.tgz → tryghost-security-5.74.4.tgz} +0 -0
  70. package/components/tryghost-session-service-5.74.4.tgz +0 -0
  71. package/components/{tryghost-settings-path-manager-5.74.2.tgz → tryghost-settings-path-manager-5.74.4.tgz} +0 -0
  72. package/components/{tryghost-slack-notifications-5.74.2.tgz → tryghost-slack-notifications-5.74.4.tgz} +0 -0
  73. package/components/tryghost-staff-service-5.74.4.tgz +0 -0
  74. package/components/tryghost-stats-service-5.74.4.tgz +0 -0
  75. package/components/{tryghost-tiers-5.74.2.tgz → tryghost-tiers-5.74.4.tgz} +0 -0
  76. package/components/{tryghost-update-check-service-5.74.2.tgz → tryghost-update-check-service-5.74.4.tgz} +0 -0
  77. package/components/tryghost-verification-trigger-5.74.4.tgz +0 -0
  78. package/components/tryghost-version-notifications-data-service-5.74.4.tgz +0 -0
  79. package/components/{tryghost-webmentions-5.74.2.tgz → tryghost-webmentions-5.74.4.tgz} +0 -0
  80. package/core/boot.js +4 -0
  81. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +6 -0
  82. package/core/built/admin/assets/admin-x-demo/index-2fa5a3c2.mjs +8291 -0
  83. package/core/built/admin/assets/admin-x-demo/modals-10ef986a.mjs +381 -0
  84. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-f1193dcf.mjs → CodeEditorView-b41ea5f8.mjs} +76 -76
  85. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  86. package/core/built/admin/assets/admin-x-settings/{index-114d5aab.mjs → index-bc03188e.mjs} +2 -2
  87. package/core/built/admin/assets/admin-x-settings/{index-89bf7b3f.mjs → index-e5bc288c.mjs} +8140 -7624
  88. package/core/built/admin/assets/admin-x-settings/{modals-045fb940.mjs → modals-98e015fa.mjs} +8005 -8080
  89. package/core/built/admin/assets/{chunk.761.5cfbe0d0f8ec7aefe7bc.js → chunk.137.0297fba124bc9ba1bbc1.js} +691 -686
  90. package/core/built/admin/assets/{chunk.143.a97e9374518a7e548084.js → chunk.143.0c31227118654150d49c.js} +5 -5
  91. package/core/built/admin/assets/{chunk.178.cce4259fa74902c8483a.js → chunk.178.b2467b9ba07dbbc9016a.js} +4 -4
  92. package/core/built/admin/assets/ghost-0456ea5c74bd1b27239c11706d1acae9.css +1 -0
  93. package/core/built/admin/assets/{ghost-ad9952b86c1d886c49a92339adf702e3.js → ghost-7d0f91cd17901ac15ce0ae64a3091e2a.js} +225 -194
  94. package/core/built/admin/assets/ghost-dark-29863e517e1917a3b0df74979a6cf03f.css +1 -0
  95. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  96. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +7878 -7857
  97. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +119 -119
  98. package/core/built/admin/index.html +5 -5
  99. package/core/frontend/helpers/img_url.js +7 -97
  100. package/core/frontend/meta/image-dimensions.js +34 -6
  101. package/core/frontend/utils/images.js +100 -0
  102. package/core/server/api/endpoints/users.js +34 -5
  103. package/core/server/data/schema/schema.js +1 -1
  104. package/core/server/models/base/plugins/events.js +20 -1
  105. package/core/server/services/email-address/EmailAddressServiceWrapper.js +39 -0
  106. package/core/server/services/email-address/index.js +3 -0
  107. package/core/server/services/email-service/EmailServiceWrapper.js +2 -0
  108. package/core/server/services/mail/GhostMailer.js +46 -9
  109. package/core/server/services/members/service.js +8 -1
  110. package/core/server/services/newsletters/NewslettersService.js +52 -19
  111. package/core/server/services/newsletters/index.js +3 -1
  112. package/core/server/services/offers/OfferBookshelfRepository.js +8 -1
  113. package/core/server/services/settings/settings-service.js +4 -0
  114. package/core/server/services/settings-helpers/SettingsHelpers.js +71 -2
  115. package/core/server/services/settings-helpers/index.js +2 -1
  116. package/core/shared/config/overrides.json +2 -1
  117. package/core/shared/labs.js +5 -1
  118. package/core/shared/sentry.js +56 -33
  119. package/package.json +150 -149
  120. package/yarn.lock +700 -790
  121. package/components/tryghost-api-version-compatibility-service-5.74.2.tgz +0 -0
  122. package/components/tryghost-bookshelf-repository-5.74.2.tgz +0 -0
  123. package/components/tryghost-bootstrap-socket-5.74.2.tgz +0 -0
  124. package/components/tryghost-collections-5.74.2.tgz +0 -0
  125. package/components/tryghost-custom-theme-settings-service-5.74.2.tgz +0 -0
  126. package/components/tryghost-domain-events-5.74.2.tgz +0 -0
  127. package/components/tryghost-donations-5.74.2.tgz +0 -0
  128. package/components/tryghost-dynamic-routing-events-5.74.2.tgz +0 -0
  129. package/components/tryghost-email-analytics-service-5.74.2.tgz +0 -0
  130. package/components/tryghost-email-service-5.74.2.tgz +0 -0
  131. package/components/tryghost-email-suppression-list-5.74.2.tgz +0 -0
  132. package/components/tryghost-extract-api-key-5.74.2.tgz +0 -0
  133. package/components/tryghost-i18n-5.74.2.tgz +0 -0
  134. package/components/tryghost-importer-handler-content-files-5.74.2.tgz +0 -0
  135. package/components/tryghost-in-memory-repository-5.74.2.tgz +0 -0
  136. package/components/tryghost-link-replacer-5.74.2.tgz +0 -0
  137. package/components/tryghost-mail-events-5.74.2.tgz +0 -0
  138. package/components/tryghost-member-attribution-5.74.2.tgz +0 -0
  139. package/components/tryghost-members-csv-5.74.2.tgz +0 -0
  140. package/components/tryghost-members-events-service-5.74.2.tgz +0 -0
  141. package/components/tryghost-members-offers-5.74.2.tgz +0 -0
  142. package/components/tryghost-members-payments-5.74.2.tgz +0 -0
  143. package/components/tryghost-minifier-5.74.2.tgz +0 -0
  144. package/components/tryghost-model-to-domain-event-interceptor-5.74.2.tgz +0 -0
  145. package/components/tryghost-mw-api-version-mismatch-5.74.2.tgz +0 -0
  146. package/components/tryghost-mw-cache-control-5.74.2.tgz +0 -0
  147. package/components/tryghost-mw-session-from-token-5.74.2.tgz +0 -0
  148. package/components/tryghost-mw-update-user-last-seen-5.74.2.tgz +0 -0
  149. package/components/tryghost-mw-version-match-5.74.2.tgz +0 -0
  150. package/components/tryghost-mw-vhost-5.74.2.tgz +0 -0
  151. package/components/tryghost-nql-filter-expansions-5.74.2.tgz +0 -0
  152. package/components/tryghost-oembed-service-5.74.2.tgz +0 -0
  153. package/components/tryghost-post-revisions-5.74.2.tgz +0 -0
  154. package/components/tryghost-recommendations-5.74.2.tgz +0 -0
  155. package/components/tryghost-session-service-5.74.2.tgz +0 -0
  156. package/components/tryghost-staff-service-5.74.2.tgz +0 -0
  157. package/components/tryghost-stats-service-5.74.2.tgz +0 -0
  158. package/components/tryghost-verification-trigger-5.74.2.tgz +0 -0
  159. package/components/tryghost-version-notifications-data-service-5.74.2.tgz +0 -0
  160. package/core/built/admin/assets/ghost-ad224505f7a80c242cc1272d1755995d.css +0 -1
  161. package/core/built/admin/assets/ghost-dark-81e3ee175ed67abaafca3fa228c620a3.css +0 -1
  162. /package/core/built/admin/assets/{chunk.761.5cfbe0d0f8ec7aefe7bc.js.LICENSE.txt → chunk.137.0297fba124bc9ba1bbc1.js.LICENSE.txt} +0 -0
@@ -1,5 +1,5 @@
1
- import { a as ke, b as N, bP as Rt, bQ as qn, e as wt, bR as _n, j as F, bS as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-89bf7b3f.mjs";
2
- import { E as p, F as fe, 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 ce, Z as M, _ as Xn, $ as er, a0 as tt, a1 as ue, 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 ke, b as N, bV as Rt, bW as qn, e as wt, bX as Vn, j as F, bY as _n, u as Hn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-e5bc288c.mjs";
2
+ import { E as p, F as fe, 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 Ze, M as w, O as X, g as et, b as $e, Q as Qn, R as ee, V as Ft, U as x, W as Yn, X as Xn, Y as ce, Z as M, _ as Zn, $ as er, a0 as tt, a1 as ue, 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";
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
+ Vt,
21
21
  0
22
22
  /* CommentOption.Toggle */
23
23
  ), Br = /* @__PURE__ */ nt(
24
- (t, e) => _t(t, e, Er(e)),
24
+ (t, e) => Vt(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 Vt(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;
@@ -114,7 +114,7 @@ function Rr(t, e, r = e.selection.ranges) {
114
114
  }
115
115
  return null;
116
116
  }
117
- const Ge = /* @__PURE__ */ Xe.define(), wr = /* @__PURE__ */ Xe.define(), Tr = /* @__PURE__ */ fe.define(), Ht = /* @__PURE__ */ fe.define({
117
+ const Ge = /* @__PURE__ */ Ze.define(), wr = /* @__PURE__ */ Ze.define(), Tr = /* @__PURE__ */ fe.define(), _t = /* @__PURE__ */ fe.define({
118
118
  combine(t) {
119
119
  return Ee(t, {
120
120
  minDepth: 100,
@@ -131,12 +131,12 @@ function Or(t) {
131
131
  let e = 0;
132
132
  return t.iterChangedRanges((r, n) => e = n), e;
133
133
  }
134
- const Vt = /* @__PURE__ */ Re.define({
134
+ const Ht = /* @__PURE__ */ Re.define({
135
135
  create() {
136
136
  return O.empty;
137
137
  },
138
138
  update(t, e) {
139
- let r = e.state.facet(Ht), n = e.annotation(Ge);
139
+ let r = e.state.facet(_t), n = e.annotation(Ge);
140
140
  if (n) {
141
141
  let a = e.docChanged ? d.single(Or(e.changes)) : void 0, c = C.fromTransaction(e, a), u = n.side, h = u == 0 ? t.undone : t.done;
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);
@@ -156,8 +156,8 @@ const Vt = /* @__PURE__ */ Re.define({
156
156
  });
157
157
  function Ir(t = {}) {
158
158
  return [
159
- Vt,
160
- Ht.of(t),
159
+ Ht,
160
+ _t.of(t),
161
161
  p.domEventHandlers({
162
162
  beforeinput(e, r) {
163
163
  let n = e.inputType == "historyUndo" ? zt : e.inputType == "historyRedo" ? Ke : null;
@@ -170,7 +170,7 @@ function we(t, e) {
170
170
  return function({ state: r, dispatch: n }) {
171
171
  if (!e && r.readOnly)
172
172
  return !1;
173
- let o = r.field(Vt, !1);
173
+ let o = r.field(Ht, !1);
174
174
  if (!o)
175
175
  return !1;
176
176
  let i = o.pop(t, r, e);
@@ -239,16 +239,16 @@ function $t(t, e) {
239
239
  } else
240
240
  return [C.selection([e])];
241
241
  }
242
- function _r(t) {
242
+ function Vr(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 Ve(t, e) {
247
247
  if (!t.length)
248
248
  return t;
249
249
  let r = t.length, n = L;
250
250
  for (; r; ) {
251
- let o = Hr(t[r - 1], e, n);
251
+ let o = _r(t[r - 1], e, n);
252
252
  if (o.changes && !o.changes.empty || o.effects.length) {
253
253
  let i = t.slice(0, r);
254
254
  return i[r - 1] = o, i;
@@ -257,14 +257,14 @@ function _e(t, e) {
257
257
  }
258
258
  return n.length ? [C.selection(n)] : L;
259
259
  }
260
- function Hr(t, e, r) {
260
+ function _r(t, e, r) {
261
261
  let n = Ut(t.selectionsAfter.length ? t.selectionsAfter.map((l) => l.map(e)) : L, r);
262
262
  if (!t.changes)
263
263
  return C.selection(n);
264
264
  let o = t.changes.map(e), i = e.mapDesc(t.changes, !0), s = t.mapped ? t.mapped.composeDesc(i) : i;
265
265
  return new C(o, w.mapEffects(t.effects, e), s, t.startSelection.map(i), n);
266
266
  }
267
- const Vr = /^(input\.type|delete)($|\.)/;
267
+ const Hr = /^(input\.type|delete)($|\.)/;
268
268
  class O {
269
269
  constructor(e, r, n = 0, o = void 0) {
270
270
  this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = o;
@@ -274,7 +274,7 @@ class O {
274
274
  }
275
275
  addChanges(e, r, n, o, i) {
276
276
  let s = this.done, l = s[s.length - 1];
277
- return l && l.changes && !l.changes.empty && e.changes && (!n || Vr.test(n)) && (!l.selectionsAfter.length && r - this.prevTime < o.newGroupDelay && o.joinToEvent(i, Fr(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
277
+ return l && l.changes && !l.changes.empty && e.changes && (!n || Hr.test(n)) && (!l.selectionsAfter.length && r - this.prevTime < o.newGroupDelay && o.joinToEvent(i, Fr(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
278
278
  n == "input.type.compose") ? s = Ce(s, s.length - 1, o.minDepth, new C(e.changes.compose(l.changes), Ut(e.effects, l.effects), l.mapped, l.startSelection, L)) : s = Ce(s, s.length, o.minDepth, e), new O(s, L, r, n);
279
279
  }
280
280
  addSelection(e, r, n, o) {
@@ -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(Ve(this.done, e), Ve(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: Vr(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 ? L : o.slice(0, o.length - 1);
301
- return i.mapped && (s = _e(s, i.mapped)), r.update({
301
+ return i.mapped && (s = Ve(s, i.mapped)), r.update({
302
302
  changes: i.changes,
303
303
  selection: i.startSelection,
304
304
  effects: i.effects,
@@ -358,7 +358,7 @@ function Oe(t, e, r) {
358
358
  Gr(t, c, o) ? n = c : a = r ? c.to : c.from;
359
359
  }
360
360
  let i = n.type.prop(o), s, l;
361
- return i && (s = r ? Z(t, n.from, 1) : Z(t, n.to, -1)) && s.matched ? l = r ? s.end.to : s.end.from : l = r ? n.to : n.from, d.cursor(l, r ? -1 : 1);
361
+ return i && (s = r ? X(t, n.from, 1) : X(t, n.to, -1)) && s.matched ? l = r ? s.end.to : s.end.from : l = r ? n.to : n.from, d.cursor(l, r ? -1 : 1);
362
362
  }
363
363
  const Kr = (t) => T(t, (e) => Oe(t.state, e, !b(t))), Jr = (t) => T(t, (e) => Oe(t.state, e, b(t)));
364
364
  function Qt(t, e) {
@@ -369,8 +369,8 @@ function Qt(t, e) {
369
369
  return n.head != r.head ? n : t.moveToLineBoundary(r, e);
370
370
  });
371
371
  }
372
- const Yt = (t) => Qt(t, !1), Zt = (t) => Qt(t, !0);
373
- function Xt(t) {
372
+ const Yt = (t) => Qt(t, !1), Xt = (t) => Qt(t, !0);
373
+ function Zt(t) {
374
374
  let e = t.scrollDOM.clientHeight < t.scrollDOM.scrollHeight - 2, r = 0, n = 0, o;
375
375
  if (e) {
376
376
  for (let i of t.state.facet(p.scrollMargins)) {
@@ -388,7 +388,7 @@ function Xt(t) {
388
388
  };
389
389
  }
390
390
  function en(t, e) {
391
- let r = Xt(t), { state: n } = t, o = re(n.selection, (s) => s.empty ? t.moveVertically(s, e, r.height) : Te(s, e));
391
+ let r = Zt(t), { state: n } = t, o = re(n.selection, (s) => s.empty ? t.moveVertically(s, e, r.height) : Te(s, e));
392
392
  if (o.eq(n.selection))
393
393
  return !1;
394
394
  let i;
@@ -399,7 +399,7 @@ function en(t, e) {
399
399
  return t.dispatch(I(n, o), { effects: i }), !0;
400
400
  }
401
401
  const ut = (t) => en(t, !1), Je = (t) => en(t, !0);
402
- function _(t, e, r) {
402
+ function V(t, e, r) {
403
403
  let n = t.lineBlockAt(e.head), o = t.moveToLineBoundary(e, r);
404
404
  if (o.head == e.head && o.head != (r ? n.to : n.from) && (o = t.moveToLineBoundary(e, r, !1)), !r && o.head == n.from && n.length) {
405
405
  let i = /^\s*/.exec(t.state.sliceDoc(n.from, Math.min(n.from + 100, n.to)))[0].length;
@@ -407,10 +407,10 @@ function _(t, e, r) {
407
407
  }
408
408
  return o;
409
409
  }
410
- const jr = (t) => T(t, (e) => _(t, e, !0)), Qr = (t) => T(t, (e) => _(t, e, !1)), Yr = (t) => T(t, (e) => _(t, e, !b(t))), Zr = (t) => T(t, (e) => _(t, e, b(t))), Xr = (t) => T(t, (e) => d.cursor(t.lineBlockAt(e.head).from, 1)), eo = (t) => T(t, (e) => d.cursor(t.lineBlockAt(e.head).to, -1));
410
+ const jr = (t) => T(t, (e) => V(t, e, !0)), Qr = (t) => T(t, (e) => V(t, e, !1)), Yr = (t) => T(t, (e) => V(t, e, !b(t))), Xr = (t) => T(t, (e) => V(t, e, b(t))), Zr = (t) => T(t, (e) => d.cursor(t.lineBlockAt(e.head).from, 1)), eo = (t) => T(t, (e) => d.cursor(t.lineBlockAt(e.head).to, -1));
411
411
  function to(t, e, r) {
412
412
  let n = !1, o = re(t.selection, (i) => {
413
- let s = Z(t, i.head, -1) || Z(t, i.head, 1) || i.head > 0 && Z(t, i.head - 1, 1) || i.head < t.doc.length && Z(t, i.head + 1, -1);
413
+ let s = X(t, i.head, -1) || X(t, i.head, 1) || i.head > 0 && X(t, i.head - 1, 1) || i.head < t.doc.length && X(t, i.head + 1, -1);
414
414
  if (!s || !s.end)
415
415
  return i;
416
416
  n = !0;
@@ -440,9 +440,9 @@ function sn(t, e) {
440
440
  }
441
441
  const ln = (t) => sn(t, !1), an = (t) => sn(t, !0);
442
442
  function cn(t, e) {
443
- return B(t, (r) => t.moveVertically(r, e, Xt(t).height));
443
+ return B(t, (r) => t.moveVertically(r, e, Zt(t).height));
444
444
  }
445
- const ht = (t) => cn(t, !1), ft = (t) => cn(t, !0), lo = (t) => B(t, (e) => _(t, e, !0)), ao = (t) => B(t, (e) => _(t, e, !1)), co = (t) => B(t, (e) => _(t, e, !b(t))), uo = (t) => B(t, (e) => _(t, e, b(t))), ho = (t) => B(t, (e) => d.cursor(t.lineBlockAt(e.head).from)), fo = (t) => B(t, (e) => d.cursor(t.lineBlockAt(e.head).to)), dt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: 0 })), !0), mt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.doc.length })), !0), gt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.selection.main.anchor, head: 0 })), !0), pt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), mo = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), go = ({ state: t, dispatch: e }) => {
445
+ const ht = (t) => cn(t, !1), ft = (t) => cn(t, !0), lo = (t) => B(t, (e) => V(t, e, !0)), ao = (t) => B(t, (e) => V(t, e, !1)), co = (t) => B(t, (e) => V(t, e, !b(t))), uo = (t) => B(t, (e) => V(t, e, b(t))), ho = (t) => B(t, (e) => d.cursor(t.lineBlockAt(e.head).from)), fo = (t) => B(t, (e) => d.cursor(t.lineBlockAt(e.head).to)), dt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: 0 })), !0), mt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.doc.length })), !0), gt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.selection.main.anchor, head: 0 })), !0), pt = ({ state: t, dispatch: e }) => (e(I(t, { anchor: t.selection.main.anchor, head: t.doc.length })), !0), mo = ({ state: t, dispatch: e }) => (e(t.update({ selection: { anchor: 0, head: t.doc.length }, userEvent: "select" })), !0), go = ({ state: t, dispatch: e }) => {
446
446
  let r = Pe(t).map(({ from: n, to: o }) => d.range(n, Math.min(o + 1, t.doc.length)));
447
447
  return e(t.update({ selection: d.create(r), userEvent: "select" })), !0;
448
448
  }, po = ({ state: t, dispatch: e }) => {
@@ -661,8 +661,8 @@ const Ro = ({ state: t, dispatch: e }) => {
661
661
  { key: "Ctrl-b", run: Kt, shift: nn, preventDefault: !0 },
662
662
  { key: "Ctrl-f", run: Jt, shift: rn },
663
663
  { key: "Ctrl-p", run: Yt, shift: ln },
664
- { key: "Ctrl-n", run: Zt, shift: an },
665
- { key: "Ctrl-a", run: Xr, shift: ho },
664
+ { key: "Ctrl-n", run: Xt, shift: an },
665
+ { key: "Ctrl-a", run: Zr, shift: ho },
666
666
  { key: "Ctrl-e", run: eo, shift: fo },
667
667
  { key: "Ctrl-d", run: hn },
668
668
  { key: "Ctrl-h", run: je },
@@ -677,11 +677,11 @@ const Ro = ({ state: t, dispatch: e }) => {
677
677
  { mac: "Cmd-ArrowLeft", run: Yr, shift: co, preventDefault: !0 },
678
678
  { key: "ArrowRight", run: Jt, shift: rn, preventDefault: !0 },
679
679
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: $r, shift: oo, preventDefault: !0 },
680
- { mac: "Cmd-ArrowRight", run: Zr, shift: uo, preventDefault: !0 },
680
+ { mac: "Cmd-ArrowRight", run: Xr, shift: uo, preventDefault: !0 },
681
681
  { key: "ArrowUp", run: Yt, shift: ln, preventDefault: !0 },
682
682
  { mac: "Cmd-ArrowUp", run: dt, shift: gt },
683
683
  { mac: "Ctrl-ArrowUp", run: ut, shift: ht },
684
- { key: "ArrowDown", run: Zt, shift: an, preventDefault: !0 },
684
+ { key: "ArrowDown", run: Xt, shift: an, preventDefault: !0 },
685
685
  { mac: "Cmd-ArrowDown", run: mt, shift: pt },
686
686
  { mac: "Ctrl-ArrowDown", run: Je, shift: ft },
687
687
  { key: "PageUp", run: ut, shift: ht },
@@ -793,7 +793,7 @@ class te {
793
793
  if (e < 0)
794
794
  return this.done = !0, this;
795
795
  let r = er(e), n = this.bufferStart + this.bufferPos;
796
- this.bufferPos += Zn(e);
796
+ this.bufferPos += Xn(e);
797
797
  let o = this.normalize(r);
798
798
  for (let i = 0, s = n; ; i++) {
799
799
  let l = o.charCodeAt(i), a = this.match(l, s);
@@ -857,8 +857,8 @@ class Cn {
857
857
  }
858
858
  }
859
859
  }
860
- const He = /* @__PURE__ */ new WeakMap();
861
- class X {
860
+ const _e = /* @__PURE__ */ new WeakMap();
861
+ class Z {
862
862
  constructor(e, r) {
863
863
  this.from = e, this.text = r;
864
864
  }
@@ -866,20 +866,20 @@ class X {
866
866
  return this.from + this.text.length;
867
867
  }
868
868
  static get(e, r, n) {
869
- let o = He.get(e);
869
+ let o = _e.get(e);
870
870
  if (!o || o.from >= n || o.to <= r) {
871
- let l = new X(r, e.sliceString(r, n));
872
- return He.set(e, l), l;
871
+ let l = new Z(r, e.sliceString(r, n));
872
+ return _e.set(e, l), l;
873
873
  }
874
874
  if (o.from == r && o.to == n)
875
875
  return o;
876
876
  let { text: i, from: s } = o;
877
- return s > r && (i = e.sliceString(r, s) + i, s = r), o.to < n && (i += e.sliceString(o.to, n)), He.set(e, new X(s, i)), new X(r, i.slice(r - s, n - s));
877
+ return s > r && (i = e.sliceString(r, s) + i, s = r), o.to < n && (i += e.sliceString(o.to, n)), _e.set(e, new Z(s, i)), new Z(r, i.slice(r - s, n - s));
878
878
  }
879
879
  }
880
880
  class vn {
881
881
  constructor(e, r, n, o, i) {
882
- this.text = e, this.to = i, this.done = !1, this.value = Sn, this.matchPos = ve(e, o), this.re = new RegExp(r, it + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = X.get(e, o, this.chunkEnd(
882
+ this.text = e, this.to = i, this.done = !1, this.value = Sn, this.matchPos = ve(e, o), this.re = new RegExp(r, it + (n != null && n.ignoreCase ? "i" : "")), this.test = n == null ? void 0 : n.test, this.flat = Z.get(e, o, this.chunkEnd(
883
883
  o + 5e3
884
884
  /* Base */
885
885
  ));
@@ -897,7 +897,7 @@ class vn {
897
897
  }
898
898
  if (this.flat.to == this.to)
899
899
  return this.done = !0, this;
900
- this.flat = X.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
900
+ this.flat = Z.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
901
901
  }
902
902
  }
903
903
  }
@@ -987,11 +987,11 @@ function qo(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 Vo = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch" }), _o = /* @__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)) != M.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != M.Word);
993
993
  }
994
- function Vo(t, e, r, n) {
994
+ function Ho(t, e, r, n) {
995
995
  return t(e.sliceDoc(r, r + 1)) == M.Word && t(e.sliceDoc(n - 1, n)) == M.Word;
996
996
  }
997
997
  const zo = /* @__PURE__ */ Ft.fromClass(class {
@@ -1018,7 +1018,7 @@ const zo = /* @__PURE__ */ Ft.fromClass(class {
1018
1018
  if (a < e.minSelectionLength || a > 200)
1019
1019
  return x.none;
1020
1020
  if (e.wholeWords) {
1021
- if (i = r.sliceDoc(o.from, o.to), s = r.charCategorizer(o.head), !(kt(s, r, o.from, o.to) && Vo(s, r, o.from, o.to)))
1021
+ if (i = r.sliceDoc(o.from, o.to), s = r.charCategorizer(o.head), !(kt(s, r, o.from, o.to) && Ho(s, r, o.from, o.to)))
1022
1022
  return x.none;
1023
1023
  } else if (i = r.sliceDoc(o.from, o.to).trim(), !i)
1024
1024
  return x.none;
@@ -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(_o.range(u, h)) : (u >= o.to || h <= o.from) && l.push(Vo.range(u, h)), l.length > e.maxMatches))
1032
1032
  return x.none;
1033
1033
  }
1034
1034
  }
@@ -1237,21 +1237,21 @@ class Yo extends Ln {
1237
1237
  }
1238
1238
  const he = /* @__PURE__ */ w.define(), st = /* @__PURE__ */ w.define(), q = /* @__PURE__ */ Re.define({
1239
1239
  create(t) {
1240
- return new Ve(Ye(t).create(), null);
1240
+ return new He(Ye(t).create(), null);
1241
1241
  },
1242
1242
  update(t, e) {
1243
1243
  for (let r of e.effects)
1244
- r.is(he) ? t = new Ve(r.value.create(), t.panel) : r.is(st) && (t = new Ve(t.query, r.value ? lt : null));
1244
+ r.is(he) ? t = new He(r.value.create(), t.panel) : r.is(st) && (t = new He(t.query, r.value ? lt : null));
1245
1245
  return t;
1246
1246
  },
1247
1247
  provide: (t) => tt.from(t, (e) => e.panel)
1248
1248
  });
1249
- class Ve {
1249
+ class He {
1250
1250
  constructor(e, r) {
1251
1251
  this.query = e, this.panel = r;
1252
1252
  }
1253
1253
  }
1254
- const Zo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch" }), Xo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), ei = /* @__PURE__ */ Ft.fromClass(class {
1254
+ const Xo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch" }), Zo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), ei = /* @__PURE__ */ Ft.fromClass(class {
1255
1255
  constructor(t) {
1256
1256
  this.view = t, this.decorations = this.highlight(t.state.field(q));
1257
1257
  }
@@ -1269,7 +1269,7 @@ const Zo = /* @__PURE__ */ x.mark({ class: "cm-searchMatch" }), Xo = /* @__PURE_
1269
1269
  a = i[++o].to;
1270
1270
  t.highlight(r.state, l, a, (c, u) => {
1271
1271
  let h = r.state.selection.ranges.some((m) => m.from == c && m.to == u);
1272
- n.add(c, u, h ? Xo : Zo);
1272
+ n.add(c, u, h ? Zo : Xo);
1273
1273
  });
1274
1274
  }
1275
1275
  return n.finish();
@@ -1562,7 +1562,7 @@ const si = /* @__PURE__ */ p.baseTheme({
1562
1562
  "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
1563
1563
  }), li = [
1564
1564
  q,
1565
- /* @__PURE__ */ Xn.lowest(ei),
1565
+ /* @__PURE__ */ Zn.lowest(ei),
1566
1566
  si
1567
1567
  ];
1568
1568
  class ai {
@@ -1951,7 +1951,7 @@ var vt = function(e) {
1951
1951
  fallback: !0
1952
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);
1953
1953
  };
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({
1954
+ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb2bf", Xe = "#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
  "&": {
1956
1956
  color: be,
1957
1957
  backgroundColor: Bt
@@ -1978,7 +1978,7 @@ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb
1978
1978
  },
1979
1979
  ".cm-gutters": {
1980
1980
  backgroundColor: Bt,
1981
- color: Ze,
1981
+ color: Xe,
1982
1982
  border: "none"
1983
1983
  },
1984
1984
  ".cm-activeLineGutter": {
@@ -2038,7 +2038,7 @@ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb
2038
2038
  },
2039
2039
  {
2040
2040
  tag: [f.meta, f.comment],
2041
- color: Ze
2041
+ color: Xe
2042
2042
  },
2043
2043
  {
2044
2044
  tag: f.strong,
@@ -2054,7 +2054,7 @@ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb
2054
2054
  },
2055
2055
  {
2056
2056
  tag: f.link,
2057
- color: Ze,
2057
+ color: Xe,
2058
2058
  textDecoration: "underline"
2059
2059
  },
2060
2060
  {
@@ -2118,7 +2118,7 @@ var Ti = p.theme({
2118
2118
  selectionCode: t.state.sliceDoc(t.state.selection.main.from, t.state.selection.main.to),
2119
2119
  selections: t.state.selection.ranges.map((e) => t.state.sliceDoc(e.from, e.to)),
2120
2120
  selectedText: t.state.selection.ranges.some((e) => !e.empty)
2121
- }), Et = Xe.define(), Pi = [];
2121
+ }), Et = Ze.define(), Pi = [];
2122
2122
  function Wi(t) {
2123
2123
  var {
2124
2124
  value: e,
@@ -2138,9 +2138,9 @@ function Wi(t) {
2138
2138
  maxWidth: D = null,
2139
2139
  placeholder: $ = "",
2140
2140
  editable: G = !0,
2141
- readOnly: H = !1,
2141
+ readOnly: _ = !1,
2142
2142
  indentWithTab: K = !0,
2143
- basicSetup: V = !0,
2143
+ basicSetup: H = !0,
2144
2144
  root: ie,
2145
2145
  initialState: z
2146
2146
  } = t, [W, E] = ke(), [y, P] = ke(), [J, j] = ke(), Fe = p.theme({
@@ -2166,10 +2166,10 @@ function Wi(t) {
2166
2166
  }), Fn = Oi({
2167
2167
  theme: c,
2168
2168
  editable: G,
2169
- readOnly: H,
2169
+ readOnly: _,
2170
2170
  placeholder: $,
2171
2171
  indentWithTab: K,
2172
- basicSetup: V
2172
+ basicSetup: H
2173
2173
  }), se = [Ne, Fe, ...Fn];
2174
2174
  return s && typeof s == "function" && se.push(p.updateListener.of(s)), se = se.concat(l), N(() => {
2175
2175
  if (W && !J) {
@@ -2198,7 +2198,7 @@ function Wi(t) {
2198
2198
  y && y.dispatch({
2199
2199
  effects: w.reconfigure.of(se)
2200
2200
  });
2201
- }, [c, l, u, h, m, k, S, D, $, G, H, K, V, n, s]), N(() => {
2201
+ }, [c, l, u, h, m, k, S, D, $, G, _, K, H, n, s]), N(() => {
2202
2202
  if (e !== void 0) {
2203
2203
  var R = y ? y.state.doc.toString() : "";
2204
2204
  y && e !== R && y.dispatch({
@@ -2237,9 +2237,9 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2237
2237
  width: D,
2238
2238
  minWidth: $,
2239
2239
  maxWidth: G,
2240
- basicSetup: H,
2240
+ basicSetup: _,
2241
2241
  placeholder: K,
2242
- indentWithTab: V,
2242
+ indentWithTab: H,
2243
2243
  editable: ie,
2244
2244
  readOnly: z,
2245
2245
  root: W,
@@ -2260,9 +2260,9 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2260
2260
  width: D,
2261
2261
  minWidth: $,
2262
2262
  maxWidth: G,
2263
- basicSetup: H,
2263
+ basicSetup: _,
2264
2264
  placeholder: K,
2265
- indentWithTab: V,
2265
+ indentWithTab: H,
2266
2266
  editable: ie,
2267
2267
  readOnly: z,
2268
2268
  selection: o,
@@ -2273,14 +2273,14 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2273
2273
  extensions: i,
2274
2274
  initialState: E
2275
2275
  });
2276
- if (_n(e, () => ({
2276
+ if (Vn(e, () => ({
2277
2277
  editor: P.current,
2278
2278
  state: J,
2279
2279
  view: j
2280
2280
  }), [P, Fe, J, j]), typeof n != "string")
2281
2281
  throw new Error("value must be typeof string but got " + typeof n);
2282
2282
  var Ne = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
2283
- return /* @__PURE__ */ F.jsx("div", Hn({
2283
+ return /* @__PURE__ */ F.jsx("div", _n({
2284
2284
  ref: P,
2285
2285
  className: "" + Ne + (r ? " " + r : "")
2286
2286
  }, y));
@@ -2297,7 +2297,7 @@ const Ni = [
2297
2297
  "[&_.cm-gutters]:text-grey-600 dark:[&_.cm-gutters]:text-grey-500",
2298
2298
  "[&_.cm-gutters]:border-grey-500 dark:[&_.cm-gutters]:border-grey-800",
2299
2299
  "[&_.cm-cursor]:border-grey-900 dark:[&_.cm-cursor]:border-grey-75"
2300
- ].join(" "), Hi = Rt(function({
2300
+ ].join(" "), _i = Rt(function({
2301
2301
  title: e,
2302
2302
  value: r,
2303
2303
  height: n = "200px",
@@ -2311,10 +2311,10 @@ const Ni = [
2311
2311
  className: h,
2312
2312
  ...m
2313
2313
  }, k) {
2314
- const S = Vn(), D = wt(null), [$, G] = ke(100), [H, K] = zn.useState(null), { setFocusState: V } = Un(), ie = (E) => {
2315
- c == null || c(E), V(!0);
2314
+ const S = Hn(), D = wt(null), [$, G] = ke(100), [_, K] = zn.useState(null), { setFocusState: H } = Un(), ie = (E) => {
2315
+ c == null || c(E), H(!0);
2316
2316
  }, z = (E) => {
2317
- u == null || u(E), V(!1);
2317
+ u == null || u(E), H(!1);
2318
2318
  };
2319
2319
  N(() => {
2320
2320
  Promise.all(l).then(K);
@@ -2335,13 +2335,13 @@ const Ni = [
2335
2335
  );
2336
2336
  return /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
2337
2337
  /* @__PURE__ */ F.jsx("div", { ref: D }),
2338
- H && /* @__PURE__ */ F.jsxs("div", { className: n === "full" ? "h-full" : "", style: { width: $ }, children: [
2338
+ _ && /* @__PURE__ */ F.jsxs("div", { className: n === "full" ? "h-full" : "", style: { width: $ }, children: [
2339
2339
  /* @__PURE__ */ F.jsx(
2340
2340
  Wn,
2341
2341
  {
2342
2342
  ref: k,
2343
2343
  className: W,
2344
- extensions: H,
2344
+ extensions: _,
2345
2345
  height: n === "full" ? "100%" : n,
2346
2346
  value: r,
2347
2347
  onBlur: z,
@@ -2356,6 +2356,6 @@ const Ni = [
2356
2356
  ] });
2357
2357
  });
2358
2358
  export {
2359
- Hi as default
2359
+ _i as default
2360
2360
  };
2361
- //# sourceMappingURL=CodeEditorView-f1193dcf.mjs.map
2361
+ //# sourceMappingURL=CodeEditorView-b41ea5f8.mjs.map