@marimo-team/islands 0.25.2-dev33 → 0.25.2-dev35

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 (138) hide show
  1. package/dist/{ErrorBoundary-2xvh1Fxx.js → ErrorBoundary-ChAoG2uk.js} +1 -1
  2. package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-DJ2MRREE.js} +2 -2
  3. package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
  4. package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
  5. package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
  6. package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
  7. package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
  8. package/dist/{cells-BUbzm9iX.js → cells-DxsypDZK.js} +265 -265
  9. package/dist/{chat-ui-DJpsSmlB.js → chat-ui-Co3Bmh7f.js} +32 -32
  10. package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
  11. package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
  12. package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
  13. package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
  14. package/dist/{code-visibility-D3qJ9egx.js → code-visibility-C7R_-ZiT.js} +2 -2
  15. package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
  16. package/dist/{common-Bu7LgWTG.js → common-CiW9HRfO.js} +5 -5
  17. package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
  18. package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
  19. package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
  20. package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
  21. package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-DNJ47Cbc.js → data-grid-overlay-editor-BSk6h0Se.js} +1 -1
  23. package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
  24. package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
  25. package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
  26. package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
  27. package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
  28. package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
  29. package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
  30. package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
  31. package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
  32. package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
  33. package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
  34. package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
  35. package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
  36. package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
  37. package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
  38. package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
  39. package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
  40. package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
  41. package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
  42. package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
  43. package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
  44. package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
  45. package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
  46. package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
  47. package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
  48. package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
  49. package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
  50. package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
  51. package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
  52. package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
  53. package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
  54. package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
  55. package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
  56. package/dist/{error-entries-B9WBDeky.js → error-entries-xDl6bkdA.js} +1 -1
  57. package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
  58. package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
  59. package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
  60. package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
  61. package/dist/{feedback-button-CB0n7_Z_.js → feedback-button-FrFcb6OR.js} +4 -4
  62. package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
  63. package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
  64. package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
  65. package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
  66. package/dist/{glide-data-editor-CpB2Gr6x.js → glide-data-editor-CuoQJ61m.js} +3 -3
  67. package/dist/{globals-BlE_HgkQ.js → globals-k8-_3_Ks.js} +1 -1
  68. package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
  69. package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
  70. package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
  71. package/dist/{html-to-image-Btymxku9.js → html-to-image-Da6rA8p1.js} +3 -3
  72. package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
  73. package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
  74. package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
  75. package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
  76. package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
  77. package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
  78. package/dist/main.js +17 -17
  79. package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
  80. package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
  81. package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
  82. package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
  83. package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
  84. package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
  85. package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
  86. package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
  87. package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
  88. package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
  89. package/dist/{number-overlay-editor-BU7cNcgZ.js → number-overlay-editor-E35zNlPn.js} +1 -1
  90. package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
  91. package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
  92. package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
  93. package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
  94. package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
  95. package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
  96. package/dist/{process-output-CTQmCUD0.js → process-output-_4TxDper.js} +2 -2
  97. package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
  98. package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
  99. package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
  100. package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
  101. package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
  102. package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
  103. package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
  104. package/dist/{reveal-component-BA2iHr4c.js → reveal-component-CgKwVd08.js} +3 -3
  105. package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
  106. package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
  107. package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
  108. package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
  109. package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
  110. package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
  111. package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
  112. package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
  113. package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
  114. package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
  115. package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
  116. package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
  117. package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
  118. package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
  119. package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
  120. package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
  121. package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
  122. package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
  123. package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
  124. package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
  125. package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
  126. package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
  127. package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
  128. package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
  129. package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
  130. package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
  131. package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
  132. package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
  133. package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
  134. package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
  135. package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
  136. package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
  137. package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
  138. package/package.json +6 -6
@@ -1,25 +1,25 @@
1
1
  import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
2
2
  import { t } from "./react-ofJbxM4x.js";
3
3
  import { t as n } from "./jsx-runtime-DgDPJV9S.js";
4
- import { $ as r, At as i, C as a, Ct as o, Dt as s, F as c, Ft as l, Gt as u, H as d, Ht as f, Kt as p, Lt as m, Nt as h, Rt as g, Ut as _, Vt as v, Z as y, _t as ee, a as te, at as b, bt as x, dt as S, ft as C, g as w, ht as T, it as E, j as D, jt as O, k, kt as A, mt as j, ot as M, p as ne, st as N, tt as re, ut as P, vt as ie, wt as F, x as ae, xt as oe, yt as I } from "./dist-Kxgjxakw.js";
5
- import { a as L, c as R, l as z, n as B, o as V } from "./dist-CO1AwwG_.js";
6
- import { a as H, c as se, i as ce, r as le } from "./dist-B1vYLK28.js";
7
- import { n as U, t as ue } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
8
- //#region ../node_modules/.pnpm/@codemirror+search@6.7.1/node_modules/@codemirror/search/dist/index.js
9
- var W = /* @__PURE__ */ e(t()), de = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFKD") : (e) => e, G = class {
4
+ import { $ as r, At as i, C as a, F as o, H as s, Ht as c, It as l, Kt as u, Mt as d, Ot as f, Pt as p, Rt as m, St as h, Tt as g, Ut as _, Wt as v, Z as y, a as b, at as x, bt as S, ct as C, dt as ee, ft as te, g as w, gt as T, ht as E, it as D, j as O, jt as k, k as A, ot as j, p as M, pt as N, qt as ne, st as re, tt as P, vt as ie, wt as F, x as ae, xt as oe, yt as I, zt as L } from "./dist-DoE4XJBC.js";
5
+ import { a as se, c as R, l as ce, n as z, o as B } from "./dist-CN8zI-XC.js";
6
+ import { a as le, c as ue, i as de, r as V } from "./dist-CkTTIdBe.js";
7
+ import { n as fe, t as pe } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
8
+ //#region ../node_modules/.pnpm/@codemirror+search@6.7.2/node_modules/@codemirror/search/dist/index.js
9
+ var H = /* @__PURE__ */ e(t()), me = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFKD") : (e) => e, U = class {
10
10
  constructor(e, t, n = 0, r = e.length, i, a) {
11
11
  this.test = a, this.value = {
12
12
  from: 0,
13
13
  to: 0,
14
14
  precise: !1
15
- }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(de(e)) : de, this.query = this.normalize(t);
15
+ }, this.done = !1, this.matches = [], this.buffer = "", this.bufferPos = 0, this.iter = e.iterRange(n, r), this.bufferStart = n, this.normalize = i ? (e) => i(me(e)) : me, this.query = this.normalize(t);
16
16
  }
17
17
  peek() {
18
18
  if (this.bufferPos == this.buffer.length) {
19
19
  if (this.bufferStart += this.buffer.length, this.iter.next(), this.iter.done) return -1;
20
20
  this.bufferPos = 0, this.buffer = this.iter.value;
21
21
  }
22
- return v(this.buffer, this.bufferPos);
22
+ return c(this.buffer, this.bufferPos);
23
23
  }
24
24
  next() {
25
25
  for (; this.matches.length;) this.matches.pop();
@@ -29,8 +29,8 @@ var W = /* @__PURE__ */ e(t()), de = typeof String.prototype.normalize == "funct
29
29
  for (;;) {
30
30
  let e = this.peek();
31
31
  if (e < 0) return this.done = !0, this;
32
- let t = p(e), n = this.bufferStart + this.bufferPos;
33
- this.bufferPos += f(e);
32
+ let t = ne(e), n = this.bufferStart + this.bufferPos;
33
+ this.bufferPos += _(e);
34
34
  let r = this.normalize(t);
35
35
  if (r.length) for (let e = 0, i = n, a = !0;; e++) {
36
36
  let n = r.charCodeAt(e), o = this.match(n, i, a, this.bufferPos + this.bufferStart, e == r.length - 1);
@@ -61,20 +61,20 @@ var W = /* @__PURE__ */ e(t()), de = typeof String.prototype.normalize == "funct
61
61
  })), a && this.test && !this.test(a.from, a.to, this.buffer, this.bufferStart) && (a = null), a;
62
62
  }
63
63
  };
64
- typeof Symbol < "u" && (G.prototype[Symbol.iterator] = function() {
64
+ typeof Symbol < "u" && (U.prototype[Symbol.iterator] = function() {
65
65
  return this;
66
66
  });
67
- var fe = {
67
+ var he = {
68
68
  from: -1,
69
69
  to: -1,
70
70
  match: /*@__PURE__*/ /.*/.exec(""),
71
71
  precise: !0
72
- }, pe = "gm" + (/x/.unicode == null ? "" : "u"), me = class {
72
+ }, ge = "gm" + (/x/.unicode == null ? "" : "u"), _e = class {
73
73
  constructor(e, t, n, r = 0, i = e.length) {
74
- if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value = fe, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new _e(e, t, n, r, i);
75
- this.re = new RegExp(t, pe + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.iter = e.iter();
74
+ if (this.text = e, this.to = i, this.curLine = "", this.done = !1, this.value = he, /\\[sWDnr]|\n|\r|\[\^/.test(t)) return new be(e, t, n, r, i);
75
+ this.re = new RegExp(t, ge + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.iter = e.iter();
76
76
  let a = e.lineAt(r);
77
- this.curLineStart = a.from, this.matchPos = K(e, r), this.getLine(this.curLineStart);
77
+ this.curLineStart = a.from, this.matchPos = W(e, r), this.getLine(this.curLineStart);
78
78
  }
79
79
  getLine(e) {
80
80
  this.iter.next(e), this.iter.lineBreak ? this.curLine = "" : (this.curLine = this.iter.value, this.curLineStart + this.curLine.length > this.to && (this.curLine = this.curLine.slice(0, this.to - this.curLineStart)), this.iter.next());
@@ -88,7 +88,7 @@ var fe = {
88
88
  let t = this.matchPos <= this.to && this.re.exec(this.curLine);
89
89
  if (t) {
90
90
  let n = this.curLineStart + t.index, r = n + t[0].length;
91
- if (this.matchPos = K(this.text, r + +(n == r)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t))) return this.value = {
91
+ if (this.matchPos = W(this.text, r + +(n == r)), n == this.curLineStart + this.curLine.length && this.nextLine(), (n < r || n > this.value.to) && (!this.test || this.test(n, r, t))) return this.value = {
92
92
  from: n,
93
93
  to: r,
94
94
  precise: !0,
@@ -99,7 +99,7 @@ var fe = {
99
99
  else return this.done = !0, this;
100
100
  }
101
101
  }
102
- }, he = /*@__PURE__*/ new WeakMap(), ge = class e {
102
+ }, ve = /*@__PURE__*/ new WeakMap(), ye = class e {
103
103
  constructor(e, t) {
104
104
  this.from = e, this.text = t;
105
105
  }
@@ -107,18 +107,18 @@ var fe = {
107
107
  return this.from + this.text.length;
108
108
  }
109
109
  static get(t, n, r) {
110
- let i = he.get(t);
110
+ let i = ve.get(t);
111
111
  if (!i || i.from >= r || i.to <= n) {
112
112
  let i = new e(n, t.sliceString(n, r));
113
- return he.set(t, i), i;
113
+ return ve.set(t, i), i;
114
114
  }
115
115
  if (i.from == n && i.to == r) return i;
116
116
  let { text: a, from: o } = i;
117
- return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)), he.set(t, new e(o, a)), new e(n, a.slice(n - o, r - o));
117
+ return o > n && (a = t.sliceString(n, o) + a, o = n), i.to < r && (a += t.sliceString(i.to, r)), ve.set(t, new e(o, a)), new e(n, a.slice(n - o, r - o));
118
118
  }
119
- }, _e = class {
119
+ }, be = class {
120
120
  constructor(e, t, n, r, i) {
121
- this.text = e, this.to = i, this.done = !1, this.value = fe, this.matchPos = K(e, r), this.re = new RegExp(t, pe + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.flat = ge.get(e, r, this.chunkEnd(r + 5e3));
121
+ this.text = e, this.to = i, this.done = !1, this.value = he, this.matchPos = W(e, r), this.re = new RegExp(t, ge + (n?.ignoreCase ? "i" : "")), this.test = n?.test, this.flat = ye.get(e, r, this.chunkEnd(r + 5e3));
122
122
  }
123
123
  chunkEnd(e) {
124
124
  return e >= this.to ? this.to : this.text.lineAt(e).to;
@@ -133,81 +133,87 @@ var fe = {
133
133
  to: n,
134
134
  precise: !0,
135
135
  match: t
136
- }, this.matchPos = K(this.text, n + +(e == n)), this;
136
+ }, this.matchPos = W(this.text, n + +(e == n)), this;
137
137
  }
138
138
  if (this.flat.to == this.to) return this.done = !0, this;
139
- this.flat = ge.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
139
+ this.flat = ye.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
140
140
  }
141
141
  }
142
142
  };
143
- typeof Symbol < "u" && (me.prototype[Symbol.iterator] = _e.prototype[Symbol.iterator] = function() {
143
+ typeof Symbol < "u" && (_e.prototype[Symbol.iterator] = be.prototype[Symbol.iterator] = function() {
144
144
  return this;
145
145
  });
146
- function ve(e) {
146
+ function xe(e) {
147
147
  try {
148
- return new RegExp(e, pe), !0;
148
+ return new RegExp(e, ge), !0;
149
149
  } catch {
150
150
  return !1;
151
151
  }
152
152
  }
153
- function K(e, t) {
153
+ function W(e, t) {
154
154
  if (t >= e.length) return t;
155
155
  let n = e.lineAt(t), r;
156
156
  for (; t < n.to && (r = n.text.charCodeAt(t - n.from)) >= 56320 && r < 57344;) t++;
157
157
  return t;
158
158
  }
159
- var ye = (e) => {
160
- let { state: t } = e, n = String(t.doc.lineAt(e.state.selection.main.head).number), { close: i, result: a } = x(e, {
161
- label: t.phrase("Go to line"),
159
+ var Se = (e) => {
160
+ let t = re(e, "cm-goto-line");
161
+ if (t) {
162
+ let e = t.dom.querySelector("input[type=text]");
163
+ return e && e.select(), !0;
164
+ }
165
+ let { state: n } = e, a = String(n.doc.lineAt(e.state.selection.main.head).number), { close: o, result: s } = oe(e, {
166
+ class: "cm-goto-line",
167
+ label: n.phrase("Go to line"),
162
168
  input: {
163
169
  type: "text",
164
170
  name: "line",
165
- value: n
171
+ value: a
166
172
  },
167
173
  focus: !0,
168
- submitLabel: t.phrase("go")
174
+ submitLabel: n.phrase("go")
169
175
  });
170
- return a.then((n) => {
171
- let a = n && /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);
176
+ return s.then((t) => {
177
+ let a = t && /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.elements.line.value);
172
178
  if (!a) {
173
- e.dispatch({ effects: i });
179
+ e.dispatch({ effects: o });
174
180
  return;
175
181
  }
176
- let o = t.doc.lineAt(t.selection.main.head), [, s, c, l, u] = a, d = l ? +l.slice(1) : 0, f = c ? +c : o.number;
177
- if (c && u) {
178
- let e = f / 100;
179
- s && (e = e * (s == "-" ? -1 : 1) + o.number / t.doc.lines), f = Math.round(t.doc.lines * e);
180
- } else c && s && (f = f * (s == "-" ? -1 : 1) + o.number);
181
- let p = t.doc.line(Math.max(1, Math.min(t.doc.lines, f))), m = A.cursor(p.from + Math.max(0, Math.min(d, p.length)));
182
+ let s = n.doc.lineAt(n.selection.main.head), [, c, l, u, d] = a, f = u ? +u.slice(1) : 0, p = l ? +l : s.number;
183
+ if (l && d) {
184
+ let e = p / 100;
185
+ c && (e = e * (c == "-" ? -1 : 1) + s.number / n.doc.lines), p = Math.round(n.doc.lines * e);
186
+ } else l && c && (p = p * (c == "-" ? -1 : 1) + s.number);
187
+ let m = n.doc.line(Math.max(1, Math.min(n.doc.lines, p))), h = i.cursor(m.from + Math.max(0, Math.min(f, m.length)));
182
188
  e.dispatch({
183
- effects: [i, r.scrollIntoView(m.from, { y: "center" })],
184
- selection: m
189
+ effects: [o, r.scrollIntoView(h.from, { y: "center" })],
190
+ selection: h
185
191
  });
186
192
  }), !0;
187
- }, be = {
193
+ }, Ce = {
188
194
  highlightWordAroundCursor: !1,
189
195
  minSelectionLength: 1,
190
196
  maxMatches: 100,
191
197
  wholeWords: !1
192
- }, xe = /*@__PURE__*/ O.define({ combine(e) {
193
- return _(e, be, {
198
+ }, we = /*@__PURE__*/ d.define({ combine(e) {
199
+ return v(e, Ce, {
194
200
  highlightWordAroundCursor: (e, t) => e || t,
195
201
  minSelectionLength: Math.min,
196
202
  maxMatches: Math.min
197
203
  });
198
204
  } });
199
- function Se(e) {
200
- let t = [Oe, De];
201
- return e && t.push(xe.of(e)), t;
205
+ function Te(e) {
206
+ let t = [je, Ae];
207
+ return e && t.push(we.of(e)), t;
202
208
  }
203
- var Ce = /*@__PURE__*/ y.mark({ class: "cm-selectionMatch" }), we = /*@__PURE__*/ y.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
204
- function Te(e, t, n, r) {
205
- return (n == 0 || e(t.sliceDoc(n - 1, n)) != s.Word) && (r == t.doc.length || e(t.sliceDoc(r, r + 1)) != s.Word);
209
+ var Ee = /*@__PURE__*/ y.mark({ class: "cm-selectionMatch" }), De = /*@__PURE__*/ y.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
210
+ function Oe(e, t, n, r) {
211
+ return (n == 0 || e(t.sliceDoc(n - 1, n)) != f.Word) && (r == t.doc.length || e(t.sliceDoc(r, r + 1)) != f.Word);
206
212
  }
207
- function Ee(e, t, n, r) {
208
- return e(t.sliceDoc(n, n + 1)) == s.Word && e(t.sliceDoc(r - 1, r)) == s.Word;
213
+ function ke(e, t, n, r) {
214
+ return e(t.sliceDoc(n, n + 1)) == f.Word && e(t.sliceDoc(r - 1, r)) == f.Word;
209
215
  }
210
- var De = /*@__PURE__*/ re.fromClass(class {
216
+ var Ae = /*@__PURE__*/ P.fromClass(class {
211
217
  constructor(e) {
212
218
  this.decorations = this.getDeco(e);
213
219
  }
@@ -215,7 +221,7 @@ var De = /*@__PURE__*/ re.fromClass(class {
215
221
  (e.selectionSet || e.docChanged || e.viewportChanged) && (this.decorations = this.getDeco(e.view));
216
222
  }
217
223
  getDeco(e) {
218
- let t = e.state.facet(xe), { state: n } = e, r = n.selection;
224
+ let t = e.state.facet(we), { state: n } = e, r = n.selection;
219
225
  if (r.ranges.length > 1) return y.none;
220
226
  let i = r.main, a, o = null;
221
227
  if (i.empty) {
@@ -227,31 +233,31 @@ var De = /*@__PURE__*/ re.fromClass(class {
227
233
  let e = i.to - i.from;
228
234
  if (e < t.minSelectionLength || e > 200) return y.none;
229
235
  if (t.wholeWords) {
230
- if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(Te(o, n, i.from, i.to) && Ee(o, n, i.from, i.to))) return y.none;
236
+ if (a = n.sliceDoc(i.from, i.to), o = n.charCategorizer(i.head), !(Oe(o, n, i.from, i.to) && ke(o, n, i.from, i.to))) return y.none;
231
237
  } else if (a = n.sliceDoc(i.from, i.to), !a) return y.none;
232
238
  }
233
239
  let s = [];
234
240
  for (let r of e.visibleRanges) {
235
- let e = new G(n.doc, a, r.from, r.to);
241
+ let e = new U(n.doc, a, r.from, r.to);
236
242
  for (; !e.next().done;) {
237
243
  let { from: r, to: a } = e.value;
238
- if ((!o || Te(o, n, r, a)) && (i.empty && r <= i.from && a >= i.to ? s.push(we.range(r, a)) : (r >= i.to || a <= i.from) && s.push(Ce.range(r, a)), s.length > t.maxMatches)) return y.none;
244
+ if ((!o || Oe(o, n, r, a)) && (i.empty && r <= i.from && a >= i.to ? s.push(De.range(r, a)) : (r >= i.to || a <= i.from) && s.push(Ee.range(r, a)), s.length > t.maxMatches)) return y.none;
239
245
  }
240
246
  }
241
247
  return y.set(s);
242
248
  }
243
- }, { decorations: (e) => e.decorations }), Oe = /*@__PURE__*/ r.baseTheme({
249
+ }, { decorations: (e) => e.decorations }), je = /*@__PURE__*/ r.baseTheme({
244
250
  ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
245
251
  ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
246
- }), ke = ({ state: e, dispatch: t }) => {
247
- let { selection: n } = e, r = A.create(n.ranges.map((t) => e.wordAt(t.head) || A.cursor(t.head)), n.mainIndex);
252
+ }), Me = ({ state: e, dispatch: t }) => {
253
+ let { selection: n } = e, r = i.create(n.ranges.map((t) => e.wordAt(t.head) || i.cursor(t.head)), n.mainIndex);
248
254
  return !r.eq(n) && (t(e.update({ selection: r })), !0);
249
255
  };
250
- function Ae(e, t) {
256
+ function Ne(e, t) {
251
257
  let { main: n, ranges: r } = e.selection, i = e.wordAt(n.head), a = i && i.from == n.from && i.to == n.to;
252
- for (let n = !1, i = new G(e.doc, t, r[r.length - 1].to);;) if (i.next(), i.done) {
258
+ for (let n = !1, i = new U(e.doc, t, r[r.length - 1].to);;) if (i.next(), i.done) {
253
259
  if (n) return null;
254
- i = new G(e.doc, t, 0, Math.max(0, r[r.length - 1].from - 1)), n = !0;
260
+ i = new U(e.doc, t, 0, Math.max(0, r[r.length - 1].from - 1)), n = !0;
255
261
  } else {
256
262
  if (n && r.some((e) => e.from == i.value.from)) continue;
257
263
  if (a) {
@@ -261,32 +267,32 @@ function Ae(e, t) {
261
267
  return i.value;
262
268
  }
263
269
  }
264
- var je = ({ state: e, dispatch: t }) => {
270
+ var Pe = ({ state: e, dispatch: t }) => {
265
271
  let { ranges: n } = e.selection;
266
- if (n.some((e) => e.from === e.to)) return ke({
272
+ if (n.some((e) => e.from === e.to)) return Me({
267
273
  state: e,
268
274
  dispatch: t
269
275
  });
270
- let i = e.sliceDoc(n[0].from, n[0].to);
271
- if (e.selection.ranges.some((t) => e.sliceDoc(t.from, t.to) != i)) return !1;
272
- let a = Ae(e, i);
273
- return a ? (t(e.update({
274
- selection: e.selection.addRange(A.range(a.from, a.to), !1),
275
- effects: r.scrollIntoView(a.to)
276
+ let a = e.sliceDoc(n[0].from, n[0].to);
277
+ if (e.selection.ranges.some((t) => e.sliceDoc(t.from, t.to) != a)) return !1;
278
+ let o = Ne(e, a);
279
+ return o ? (t(e.update({
280
+ selection: e.selection.addRange(i.range(o.from, o.to), !1),
281
+ effects: r.scrollIntoView(o.to)
276
282
  })), !0) : !1;
277
- }, q = /*@__PURE__*/ O.define({ combine(e) {
278
- return _(e, {
283
+ }, G = /*@__PURE__*/ d.define({ combine(e) {
284
+ return v(e, {
279
285
  top: !1,
280
286
  caseSensitive: !1,
281
287
  literal: !1,
282
288
  regexp: !1,
283
289
  wholeWord: !1,
284
- createPanel: (e) => new ot(e),
290
+ createPanel: (e) => new st(e),
285
291
  scrollToMatch: (e) => r.scrollIntoView(e)
286
292
  });
287
- } }), Me = class {
293
+ } }), Fe = class {
288
294
  constructor(e) {
289
- this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || ve(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
295
+ this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && (!this.regexp || xe(this.search)), this.unquoted = this.unquote(this.search), this.wholeWord = !!e.wholeWord, this.test = e.test;
290
296
  }
291
297
  unquote(e) {
292
298
  return this.literal ? e : e.replace(/\\([nrt\\])/g, (e, t) => t == "n" ? "\n" : t == "r" ? "\r" : t == "t" ? " " : "\\");
@@ -295,42 +301,42 @@ var je = ({ state: e, dispatch: t }) => {
295
301
  return this.search == e.search && this.replace == e.replace && this.caseSensitive == e.caseSensitive && this.regexp == e.regexp && this.wholeWord == e.wholeWord && this.test == e.test;
296
302
  }
297
303
  create() {
298
- return this.regexp ? new Ve(this) : new Ie(this);
304
+ return this.regexp ? new He(this) : new ze(this);
299
305
  }
300
306
  getCursor(e, t = 0, n) {
301
- let r = e.doc ? e : i.create({ doc: e });
302
- return n ??= r.doc.length, this.regexp ? Y(this, r, t, n) : J(this, r, t, n);
307
+ let r = e.doc ? e : k.create({ doc: e });
308
+ return n ??= r.doc.length, this.regexp ? q(this, r, t, n) : K(this, r, t, n);
303
309
  }
304
- }, Ne = class {
310
+ }, Ie = class {
305
311
  constructor(e) {
306
312
  this.spec = e;
307
313
  }
308
314
  };
309
- function Pe(e, t, n) {
315
+ function Le(e, t, n) {
310
316
  return (r, i, a, o) => n && !n(r, i, a, o) ? !1 : e(r >= o && i <= o + a.length ? a.slice(r - o, i - o) : t.doc.sliceString(r, i), t, r, i);
311
317
  }
312
- function J(e, t, n, r) {
318
+ function K(e, t, n, r) {
313
319
  let i;
314
- return e.wholeWord && (i = Fe(t.doc, t.charCategorizer(t.selection.main.head))), e.test && (i = Pe(e.test, t, i)), new G(t.doc, e.unquoted, n, r, e.caseSensitive ? void 0 : (e) => e.toLowerCase(), i);
320
+ return e.wholeWord && (i = Re(t.doc, t.charCategorizer(t.selection.main.head))), e.test && (i = Le(e.test, t, i)), new U(t.doc, e.unquoted, n, r, e.caseSensitive ? void 0 : (e) => e.toLowerCase(), i);
315
321
  }
316
- function Fe(e, t) {
317
- return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(Re(i, n - a)) != s.Word || t(ze(i, n - a)) != s.Word) && (t(ze(i, r - a)) != s.Word || t(Re(i, r - a)) != s.Word));
322
+ function Re(e, t) {
323
+ return (n, r, i, a) => ((a > n || a + i.length < r) && (a = Math.max(0, n - 2), i = e.sliceString(a, Math.min(e.length, r + 2))), (t(J(i, n - a)) != f.Word || t(Y(i, n - a)) != f.Word) && (t(Y(i, r - a)) != f.Word || t(J(i, r - a)) != f.Word));
318
324
  }
319
- var Ie = class extends Ne {
325
+ var ze = class extends Ie {
320
326
  constructor(e) {
321
327
  super(e);
322
328
  }
323
329
  nextMatch(e, t, n) {
324
- let r = J(this.spec, e, n, e.doc.length).nextOverlapping();
330
+ let r = K(this.spec, e, n, e.doc.length).nextOverlapping();
325
331
  if (r.done) {
326
332
  let n = Math.min(e.doc.length, t + this.spec.unquoted.length);
327
- r = J(this.spec, e, 0, n).nextOverlapping();
333
+ r = K(this.spec, e, 0, n).nextOverlapping();
328
334
  }
329
335
  return r.done || r.value.from == t && r.value.to == n ? null : r.value;
330
336
  }
331
337
  prevMatchInRange(e, t, n) {
332
338
  for (let r = n;;) {
333
- let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i = J(this.spec, e, n, r), a = null;
339
+ let n = Math.max(t, r - 1e4 - this.spec.unquoted.length), i = K(this.spec, e, n, r), a = null;
334
340
  for (; !i.nextOverlapping().done;) a = i.value;
335
341
  if (a) return a;
336
342
  if (n == t) return null;
@@ -345,7 +351,7 @@ var Ie = class extends Ne {
345
351
  return this.spec.unquote(this.spec.replace);
346
352
  }
347
353
  matchAll(e, t) {
348
- let n = J(this.spec, e, 0, e.doc.length), r = [];
354
+ let n = K(this.spec, e, 0, e.doc.length), r = [];
349
355
  for (; !n.next().done;) {
350
356
  if (r.length >= t) return null;
351
357
  r.push(n.value);
@@ -353,37 +359,37 @@ var Ie = class extends Ne {
353
359
  return r;
354
360
  }
355
361
  highlight(e, t, n, r) {
356
- let i = J(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length));
362
+ let i = K(this.spec, e, Math.max(0, t - this.spec.unquoted.length), Math.min(n + this.spec.unquoted.length, e.doc.length));
357
363
  for (; !i.next().done;) r(i.value.from, i.value.to);
358
364
  }
359
365
  };
360
- function Le(e, t, n) {
366
+ function Be(e, t, n) {
361
367
  return (r, i, a) => (!n || n(r, i, a)) && e(a[0], t, r, i);
362
368
  }
363
- function Y(e, t, n, r) {
369
+ function q(e, t, n, r) {
364
370
  let i;
365
- return e.wholeWord && (i = Be(t.charCategorizer(t.selection.main.head))), e.test && (i = Le(e.test, t, i)), new me(t.doc, e.search, {
371
+ return e.wholeWord && (i = Ve(t.charCategorizer(t.selection.main.head))), e.test && (i = Be(e.test, t, i)), new _e(t.doc, e.search, {
366
372
  ignoreCase: !e.caseSensitive,
367
373
  test: i
368
374
  }, n, r);
369
375
  }
370
- function Re(e, t) {
376
+ function J(e, t) {
371
377
  return e.slice(u(e, t, !1), t);
372
378
  }
373
- function ze(e, t) {
379
+ function Y(e, t) {
374
380
  return e.slice(t, u(e, t));
375
381
  }
376
- function Be(e) {
377
- return (t, n, r) => !r[0].length || (e(Re(r.input, r.index)) != s.Word || e(ze(r.input, r.index)) != s.Word) && (e(ze(r.input, r.index + r[0].length)) != s.Word || e(Re(r.input, r.index + r[0].length)) != s.Word);
382
+ function Ve(e) {
383
+ return (t, n, r) => !r[0].length || (e(J(r.input, r.index)) != f.Word || e(Y(r.input, r.index)) != f.Word) && (e(Y(r.input, r.index + r[0].length)) != f.Word || e(J(r.input, r.index + r[0].length)) != f.Word);
378
384
  }
379
- var Ve = class extends Ne {
385
+ var He = class extends Ie {
380
386
  nextMatch(e, t, n) {
381
- let r = Y(this.spec, e, n, e.doc.length).next();
382
- return r.done && (r = Y(this.spec, e, 0, t).next()), r.done ? null : r.value;
387
+ let r = q(this.spec, e, n, e.doc.length).next();
388
+ return r.done && (r = q(this.spec, e, 0, t).next()), r.done ? null : r.value;
383
389
  }
384
390
  prevMatchInRange(e, t, n) {
385
391
  for (let r = 1;; r++) {
386
- let i = Math.max(t, n - r * 1e4), a = Y(this.spec, e, i, n), o = null;
392
+ let i = Math.max(t, n - r * 1e4), a = q(this.spec, e, i, n), o = null;
387
393
  for (; !a.next().done;) o = a.value;
388
394
  if (o && (i == t || o.from > i + 10)) return o;
389
395
  if (i == t) return null;
@@ -404,7 +410,7 @@ var Ve = class extends Ne {
404
410
  });
405
411
  }
406
412
  matchAll(e, t) {
407
- let n = Y(this.spec, e, 0, e.doc.length), r = [];
413
+ let n = q(this.spec, e, 0, e.doc.length), r = [];
408
414
  for (; !n.next().done;) {
409
415
  if (r.length >= t) return null;
410
416
  r.push(n.value);
@@ -412,23 +418,23 @@ var Ve = class extends Ne {
412
418
  return r;
413
419
  }
414
420
  highlight(e, t, n, r) {
415
- let i = Y(this.spec, e, Math.max(0, t - 250), Math.min(n + 250, e.doc.length));
421
+ let i = q(this.spec, e, Math.max(0, t - 250), Math.min(n + 250, e.doc.length));
416
422
  for (; !i.next().done;) r(i.value.from, i.value.to);
417
423
  }
418
- }, X = /*@__PURE__*/ m.define(), He = /*@__PURE__*/ m.define(), Z = /*@__PURE__*/ g.define({
424
+ }, X = /*@__PURE__*/ m.define(), Ue = /*@__PURE__*/ m.define(), Z = /*@__PURE__*/ L.define({
419
425
  create(e) {
420
- return new Ue(et(e).create(), null);
426
+ return new We(tt(e).create(), null);
421
427
  },
422
428
  update(e, t) {
423
- for (let n of t.effects) n.is(X) ? e = new Ue(n.value.create(), e.panel) : n.is(He) && (e = new Ue(e.query, n.value ? $e : null));
429
+ for (let n of t.effects) n.is(X) ? e = new We(n.value.create(), e.panel) : n.is(Ue) && (e = new We(e.query, n.value ? et : null));
424
430
  return e;
425
431
  },
426
- provide: (e) => oe.from(e, (e) => e.panel)
427
- }), Ue = class {
432
+ provide: (e) => h.from(e, (e) => e.panel)
433
+ }), We = class {
428
434
  constructor(e, t) {
429
435
  this.query = e, this.panel = t;
430
436
  }
431
- }, We = /*@__PURE__*/ y.mark({ class: "cm-searchMatch" }), Ge = /*@__PURE__*/ y.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Ke = /*@__PURE__*/ re.fromClass(class {
437
+ }, Ge = /*@__PURE__*/ y.mark({ class: "cm-searchMatch" }), Ke = /*@__PURE__*/ y.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), qe = /*@__PURE__*/ P.fromClass(class {
432
438
  constructor(e) {
433
439
  this.view = e, this.decorations = this.highlight(e.state.field(Z));
434
440
  }
@@ -444,7 +450,7 @@ var Ve = class extends Ne {
444
450
  for (; t < a - 1 && s > i[t + 1].from - 500;) s = i[++t].to;
445
451
  e.highlight(n.state, o, s, (e, t) => {
446
452
  let i = n.state.selection.ranges.some((n) => n.from == e && n.to == t);
447
- r.add(e, t, i ? Ge : We);
453
+ r.add(e, t, i ? Ke : Ge);
448
454
  });
449
455
  }
450
456
  return r.finish();
@@ -453,64 +459,64 @@ var Ve = class extends Ne {
453
459
  function Q(e) {
454
460
  return (t) => {
455
461
  let n = t.state.field(Z, !1);
456
- return n && n.query.spec.valid ? e(t, n) : rt(t);
462
+ return n && n.query.spec.valid ? e(t, n) : it(t);
457
463
  };
458
464
  }
459
- var qe = /*@__PURE__*/ Q((e, { query: t }) => {
465
+ var Je = /*@__PURE__*/ Q((e, { query: t }) => {
460
466
  let { to: n } = e.state.selection.main, r = t.nextMatch(e.state, n, n);
461
467
  if (!r) return !1;
462
- let i = A.single(r.from, r.to), a = e.state.facet(q);
463
- return e.dispatch({
464
- selection: i,
465
- effects: [lt(e, r), a.scrollToMatch(i.main, e)],
466
- userEvent: "select.search"
467
- }), nt(e), !0;
468
- }), Je = /*@__PURE__*/ Q((e, { query: t }) => {
469
- let { state: n } = e, { from: r } = n.selection.main, i = t.prevMatch(n, r, r);
470
- if (!i) return !1;
471
- let a = A.single(i.from, i.to), o = e.state.facet(q);
468
+ let a = i.single(r.from, r.to), o = e.state.facet(G);
472
469
  return e.dispatch({
473
470
  selection: a,
474
- effects: [lt(e, i), o.scrollToMatch(a.main, e)],
471
+ effects: [ut(e, r), o.scrollToMatch(a.main, e)],
475
472
  userEvent: "select.search"
476
- }), nt(e), !0;
473
+ }), rt(e), !0;
477
474
  }), Ye = /*@__PURE__*/ Q((e, { query: t }) => {
475
+ let { state: n } = e, { from: r } = n.selection.main, a = t.prevMatch(n, r, r);
476
+ if (!a) return !1;
477
+ let o = i.single(a.from, a.to), s = e.state.facet(G);
478
+ return e.dispatch({
479
+ selection: o,
480
+ effects: [ut(e, a), s.scrollToMatch(o.main, e)],
481
+ userEvent: "select.search"
482
+ }), rt(e), !0;
483
+ }), Xe = /*@__PURE__*/ Q((e, { query: t }) => {
478
484
  let n = t.matchAll(e.state, 1e3);
479
485
  return !n || !n.length ? !1 : (e.dispatch({
480
- selection: A.create(n.map((e) => A.range(e.from, e.to))),
486
+ selection: i.create(n.map((e) => i.range(e.from, e.to))),
481
487
  userEvent: "select.search.matches"
482
488
  }), !0);
483
- }), Xe = ({ state: e, dispatch: t }) => {
489
+ }), Ze = ({ state: e, dispatch: t }) => {
484
490
  let n = e.selection;
485
491
  if (n.ranges.length > 1 || n.main.empty) return !1;
486
- let { from: r, to: i } = n.main, a = [], o = 0;
487
- for (let t = new G(e.doc, e.sliceDoc(r, i)); !t.next().done;) {
488
- if (a.length > 1e3) return !1;
489
- t.value.from == r && (o = a.length), a.push(A.range(t.value.from, t.value.to));
492
+ let { from: r, to: a } = n.main, o = [], s = 0;
493
+ for (let t = new U(e.doc, e.sliceDoc(r, a)); !t.next().done;) {
494
+ if (o.length > 1e3) return !1;
495
+ t.value.from == r && (s = o.length), o.push(i.range(t.value.from, t.value.to));
490
496
  }
491
497
  return t(e.update({
492
- selection: A.create(a, o),
498
+ selection: i.create(o, s),
493
499
  userEvent: "select.search.matches"
494
500
  })), !0;
495
- }, Ze = /*@__PURE__*/ Q((e, { query: t }) => {
496
- let { state: n } = e, { from: i, to: a } = n.selection.main;
501
+ }, Qe = /*@__PURE__*/ Q((e, { query: t }) => {
502
+ let { state: n } = e, { from: a, to: o } = n.selection.main;
497
503
  if (n.readOnly) return !1;
498
- let o = t.nextMatch(n, i, i);
499
- if (!o) return !1;
500
- let s = o, c = [], l, u, d = [];
501
- s.precise ? s.from == i && s.to == a && (u = n.toText(t.getReplacement(s)), c.push({
502
- from: s.from,
503
- to: s.to,
504
- insert: u
505
- }), s = t.nextMatch(n, s.from, s.to), d.push(r.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(i).number) + "."))) : s = t.nextMatch(n, s.from, s.to);
506
- let f = e.state.changes(c);
507
- return s && (l = A.single(s.from, s.to).map(f), d.push(lt(e, s)), d.push(n.facet(q).scrollToMatch(l.main, e))), e.dispatch({
508
- changes: f,
509
- selection: l,
510
- effects: d,
504
+ let s = t.nextMatch(n, a, a);
505
+ if (!s) return !1;
506
+ let c = s, l = [], u, d, f = [];
507
+ c.precise ? c.from == a && c.to == o && (d = n.toText(t.getReplacement(c)), l.push({
508
+ from: c.from,
509
+ to: c.to,
510
+ insert: d
511
+ }), c = t.nextMatch(n, c.from, c.to), f.push(r.announce.of(n.phrase("replaced match on line $", n.doc.lineAt(a).number) + "."))) : c = t.nextMatch(n, c.from, c.to);
512
+ let p = e.state.changes(l);
513
+ return c && (u = i.single(c.from, c.to).map(p), f.push(ut(e, c)), f.push(n.facet(G).scrollToMatch(u.main, e))), e.dispatch({
514
+ changes: p,
515
+ selection: u,
516
+ effects: f,
511
517
  userEvent: "input.replace"
512
518
  }), !0;
513
- }), Qe = /*@__PURE__*/ Q((e, { query: t }) => {
519
+ }), $e = /*@__PURE__*/ Q((e, { query: t }) => {
514
520
  if (e.state.readOnly) return !1;
515
521
  let n = [];
516
522
  for (let r of t.matchAll(e.state, 1e9)) {
@@ -529,14 +535,14 @@ var qe = /*@__PURE__*/ Q((e, { query: t }) => {
529
535
  userEvent: "input.replace.all"
530
536
  }), !0;
531
537
  });
532
- function $e(e) {
533
- return e.state.facet(q).createPanel(e);
538
+ function et(e) {
539
+ return e.state.facet(G).createPanel(e);
534
540
  }
535
- function et(e, t) {
541
+ function tt(e, t) {
536
542
  let n = e.selection.main, r = n.empty || n.to > n.from + 100 ? "" : e.sliceDoc(n.from, n.to);
537
543
  if (t && !r) return t;
538
- let i = e.facet(q);
539
- return new Me({
544
+ let i = e.facet(G);
545
+ return new Fe({
540
546
  search: t?.literal ?? i.literal ? r : r.replace(/\n/g, "\\n"),
541
547
  caseSensitive: t?.caseSensitive ?? i.caseSensitive,
542
548
  literal: t?.literal ?? i.literal,
@@ -544,72 +550,72 @@ function et(e, t) {
544
550
  wholeWord: t?.wholeWord ?? i.wholeWord
545
551
  });
546
552
  }
547
- function tt(e) {
548
- let t = N(e, $e);
553
+ function nt(e) {
554
+ let t = C(e, et);
549
555
  return t && t.dom.querySelector("[main-field]");
550
556
  }
551
- function nt(e) {
552
- let t = tt(e);
557
+ function rt(e) {
558
+ let t = nt(e);
553
559
  t && t == e.root.activeElement && t.select();
554
560
  }
555
- var rt = (e) => {
561
+ var it = (e) => {
556
562
  let t = e.state.field(Z, !1);
557
563
  if (t && t.panel) {
558
- let n = tt(e);
564
+ let n = nt(e);
559
565
  if (n && n != e.root.activeElement) {
560
- let r = et(e.state, t.query.spec);
566
+ let r = tt(e.state, t.query.spec);
561
567
  r.valid && e.dispatch({ effects: X.of(r) }), n.focus(), n.select();
562
568
  }
563
- } else e.dispatch({ effects: [He.of(!0), t ? X.of(et(e.state, t.query.spec)) : m.appendConfig.of(dt)] });
569
+ } else e.dispatch({ effects: [Ue.of(!0), t ? X.of(tt(e.state, t.query.spec)) : m.appendConfig.of(ft)] });
564
570
  return !0;
565
- }, it = (e) => {
571
+ }, at = (e) => {
566
572
  let t = e.state.field(Z, !1);
567
573
  if (!t || !t.panel) return !1;
568
- let n = N(e, $e);
569
- return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: He.of(!1) }), !0;
570
- }, at = [
574
+ let n = C(e, et);
575
+ return n && n.dom.contains(e.root.activeElement) && e.focus(), e.dispatch({ effects: Ue.of(!1) }), !0;
576
+ }, ot = [
571
577
  {
572
578
  key: "Mod-f",
573
- run: rt,
579
+ run: it,
574
580
  scope: "editor search-panel"
575
581
  },
576
582
  {
577
583
  key: "F3",
578
- run: qe,
579
- shift: Je,
584
+ run: Je,
585
+ shift: Ye,
580
586
  scope: "editor search-panel",
581
587
  preventDefault: !0
582
588
  },
583
589
  {
584
590
  key: "Mod-g",
585
- run: qe,
586
- shift: Je,
591
+ run: Je,
592
+ shift: Ye,
587
593
  scope: "editor search-panel",
588
594
  preventDefault: !0
589
595
  },
590
596
  {
591
597
  key: "Escape",
592
- run: it,
598
+ run: at,
593
599
  scope: "editor search-panel"
594
600
  },
595
601
  {
596
602
  key: "Mod-Shift-l",
597
- run: Xe
603
+ run: Ze
598
604
  },
599
605
  {
600
606
  key: "Mod-Alt-g",
601
- run: ye
607
+ run: Se
602
608
  },
603
609
  {
604
610
  key: "Mod-d",
605
- run: je,
611
+ run: Pe,
606
612
  preventDefault: !0
607
613
  }
608
- ], ot = class {
614
+ ], st = class {
609
615
  constructor(e) {
610
616
  this.view = e;
611
617
  let t = this.query = e.state.field(Z).query.spec;
612
- this.commit = this.commit.bind(this), this.searchField = o("input", {
618
+ this.commit = this.commit.bind(this), this.searchField = F("input", {
613
619
  value: t.search,
614
620
  placeholder: $(e, "Find"),
615
621
  "aria-label": $(e, "Find"),
@@ -619,7 +625,7 @@ var rt = (e) => {
619
625
  "main-field": "true",
620
626
  onchange: this.commit,
621
627
  onkeyup: this.commit
622
- }), this.replaceField = o("input", {
628
+ }), this.replaceField = F("input", {
623
629
  value: t.replace,
624
630
  placeholder: $(e, "Replace"),
625
631
  "aria-label": $(e, "Replace"),
@@ -628,19 +634,19 @@ var rt = (e) => {
628
634
  form: "",
629
635
  onchange: this.commit,
630
636
  onkeyup: this.commit
631
- }), this.caseField = o("input", {
637
+ }), this.caseField = F("input", {
632
638
  type: "checkbox",
633
639
  name: "case",
634
640
  form: "",
635
641
  checked: t.caseSensitive,
636
642
  onchange: this.commit
637
- }), this.reField = o("input", {
643
+ }), this.reField = F("input", {
638
644
  type: "checkbox",
639
645
  name: "re",
640
646
  form: "",
641
647
  checked: t.regexp,
642
648
  onchange: this.commit
643
- }), this.wordField = o("input", {
649
+ }), this.wordField = F("input", {
644
650
  type: "checkbox",
645
651
  name: "word",
646
652
  form: "",
@@ -648,40 +654,40 @@ var rt = (e) => {
648
654
  onchange: this.commit
649
655
  });
650
656
  function n(e, t, n) {
651
- return o("button", {
657
+ return F("button", {
652
658
  class: "cm-button",
653
659
  name: e,
654
660
  onclick: t,
655
661
  type: "button"
656
662
  }, n);
657
663
  }
658
- this.dom = o("div", {
664
+ this.dom = F("div", {
659
665
  onkeydown: (e) => this.keydown(e),
660
666
  class: "cm-search"
661
667
  }, [
662
668
  this.searchField,
663
- n("next", () => qe(e), [$(e, "next")]),
664
- n("prev", () => Je(e), [$(e, "previous")]),
665
- n("select", () => Ye(e), [$(e, "all")]),
666
- o("label", null, [this.caseField, $(e, "match case")]),
667
- o("label", null, [this.reField, $(e, "regexp")]),
668
- o("label", null, [this.wordField, $(e, "by word")]),
669
+ n("next", () => Je(e), [$(e, "next")]),
670
+ n("prev", () => Ye(e), [$(e, "previous")]),
671
+ n("select", () => Xe(e), [$(e, "all")]),
672
+ F("label", null, [this.caseField, $(e, "match case")]),
673
+ F("label", null, [this.reField, $(e, "regexp")]),
674
+ F("label", null, [this.wordField, $(e, "by word")]),
669
675
  ...e.state.readOnly ? [] : [
670
- o("br"),
676
+ F("br"),
671
677
  this.replaceField,
672
- n("replace", () => Ze(e), [$(e, "replace")]),
673
- n("replaceAll", () => Qe(e), [$(e, "replace all")])
678
+ n("replace", () => Qe(e), [$(e, "replace")]),
679
+ n("replaceAll", () => $e(e), [$(e, "replace all")])
674
680
  ],
675
- o("button", {
681
+ F("button", {
676
682
  name: "close",
677
- onclick: () => it(e),
683
+ onclick: () => at(e),
678
684
  "aria-label": $(e, "close"),
679
685
  type: "button"
680
686
  }, ["×"])
681
687
  ]);
682
688
  }
683
689
  commit() {
684
- let e = new Me({
690
+ let e = new Fe({
685
691
  search: this.searchField.value,
686
692
  caseSensitive: this.caseField.checked,
687
693
  regexp: this.reField.checked,
@@ -691,7 +697,7 @@ var rt = (e) => {
691
697
  e.eq(this.query) || (this.query = e, this.view.dispatch({ effects: X.of(e) }));
692
698
  }
693
699
  keydown(e) {
694
- I(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Je : qe)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Ze(this.view));
700
+ S(this.view, e, "search-panel") ? e.preventDefault() : e.keyCode == 13 && e.target == this.searchField ? (e.preventDefault(), (e.shiftKey ? Ye : Je)(this.view)) : e.keyCode == 13 && e.target == this.replaceField && (e.preventDefault(), Qe(this.view));
695
701
  }
696
702
  update(e) {
697
703
  for (let t of e.transactions) for (let e of t.effects) e.is(X) && !e.value.eq(this.query) && this.setQuery(e.value);
@@ -706,30 +712,30 @@ var rt = (e) => {
706
712
  return 80;
707
713
  }
708
714
  get top() {
709
- return this.view.state.facet(q).top;
715
+ return this.view.state.facet(G).top;
710
716
  }
711
717
  };
712
718
  function $(e, t) {
713
719
  return e.state.phrase(t);
714
720
  }
715
- var st = 30, ct = /[\s\.,:;?!]/;
716
- function lt(e, { from: t, to: n }) {
717
- let i = e.state.doc.lineAt(t), a = e.state.doc.lineAt(n).to, o = Math.max(i.from, t - st), s = Math.min(a, n + st), c = e.state.sliceDoc(o, s);
721
+ var ct = 30, lt = /[\s\.,:;?!]/;
722
+ function ut(e, { from: t, to: n }) {
723
+ let i = e.state.doc.lineAt(t), a = e.state.doc.lineAt(n).to, o = Math.max(i.from, t - ct), s = Math.min(a, n + ct), c = e.state.sliceDoc(o, s);
718
724
  if (o != i.from) {
719
- for (let e = 0; e < st; e++) if (!ct.test(c[e + 1]) && ct.test(c[e])) {
725
+ for (let e = 0; e < ct; e++) if (!lt.test(c[e + 1]) && lt.test(c[e])) {
720
726
  c = c.slice(e);
721
727
  break;
722
728
  }
723
729
  }
724
730
  if (s != a) {
725
- for (let e = c.length - 1; e > c.length - st; e--) if (!ct.test(c[e - 1]) && ct.test(c[e])) {
731
+ for (let e = c.length - 1; e > c.length - ct; e--) if (!lt.test(c[e - 1]) && lt.test(c[e])) {
726
732
  c = c.slice(0, e);
727
733
  break;
728
734
  }
729
735
  }
730
736
  return r.announce.of(`${e.state.phrase("current match")}. ${c} ${e.state.phrase("on line")} ${i.number}.`);
731
737
  }
732
- var ut = /*@__PURE__*/ r.baseTheme({
738
+ var dt = /*@__PURE__*/ r.baseTheme({
733
739
  ".cm-panel.cm-search": {
734
740
  padding: "2px 6px 4px",
735
741
  position: "relative",
@@ -754,33 +760,33 @@ var ut = /*@__PURE__*/ r.baseTheme({
754
760
  "&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
755
761
  "&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
756
762
  "&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
757
- }), dt = [
763
+ }), ft = [
758
764
  Z,
759
- /*@__PURE__*/ h.low(Ke),
760
- ut
761
- ], ft = function(e) {
765
+ /*@__PURE__*/ p.low(qe),
766
+ dt
767
+ ], pt = function(e) {
762
768
  e === void 0 && (e = {});
763
769
  var t = e.crosshairCursor, n = t !== void 0 && t, r = [];
764
- e.closeBracketsKeymap !== !1 && (r = r.concat(H)), e.defaultKeymap !== !1 && (r = r.concat(L)), e.searchKeymap !== !1 && (r = r.concat(at)), e.historyKeymap !== !1 && (r = r.concat(R)), e.foldKeymap !== !1 && (r = r.concat(a)), e.completionKeymap !== !1 && (r = r.concat(se)), e.lintKeymap !== !1 && (r = r.concat(B));
765
- var o = [];
766
- return e.lineNumbers !== !1 && o.push(T()), e.highlightActiveLineGutter !== !1 && o.push(S()), e.highlightSpecialChars !== !1 && o.push(C()), e.history !== !1 && o.push(V()), e.foldGutter !== !1 && o.push(ae()), e.drawSelection !== !1 && o.push(b()), e.dropCursor !== !1 && o.push(M()), e.allowMultipleSelections !== !1 && o.push(i.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && o.push(k()), e.syntaxHighlighting !== !1 && o.push(c(w, { fallback: !0 })), e.bracketMatching !== !1 && o.push(ne()), e.closeBrackets !== !1 && o.push(ce()), e.autocompletion !== !1 && o.push(le()), e.rectangularSelection !== !1 && o.push(ie()), n !== !1 && o.push(E()), e.highlightActiveLine !== !1 && o.push(P()), e.highlightSelectionMatches !== !1 && o.push(Se()), e.tabSize && typeof e.tabSize == "number" && o.push(D.of(" ".repeat(e.tabSize))), o.concat([j.of(r.flat())]).filter(Boolean);
767
- }, pt = function(e) {
770
+ e.closeBracketsKeymap !== !1 && (r = r.concat(le)), e.defaultKeymap !== !1 && (r = r.concat(se)), e.searchKeymap !== !1 && (r = r.concat(ot)), e.historyKeymap !== !1 && (r = r.concat(R)), e.foldKeymap !== !1 && (r = r.concat(a)), e.completionKeymap !== !1 && (r = r.concat(ue)), e.lintKeymap !== !1 && (r = r.concat(z));
771
+ var i = [];
772
+ return e.lineNumbers !== !1 && i.push(T()), e.highlightActiveLineGutter !== !1 && i.push(te()), e.highlightSpecialChars !== !1 && i.push(N()), e.history !== !1 && i.push(B()), e.foldGutter !== !1 && i.push(ae()), e.drawSelection !== !1 && i.push(x()), e.dropCursor !== !1 && i.push(j()), e.allowMultipleSelections !== !1 && i.push(k.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && i.push(A()), e.syntaxHighlighting !== !1 && i.push(o(w, { fallback: !0 })), e.bracketMatching !== !1 && i.push(M()), e.closeBrackets !== !1 && i.push(de()), e.autocompletion !== !1 && i.push(V()), e.rectangularSelection !== !1 && i.push(I()), n !== !1 && i.push(D()), e.highlightActiveLine !== !1 && i.push(ee()), e.highlightSelectionMatches !== !1 && i.push(Te()), e.tabSize && typeof e.tabSize == "number" && i.push(O.of(" ".repeat(e.tabSize))), i.concat([E.of(r.flat())]).filter(Boolean);
773
+ }, mt = function(e) {
768
774
  e === void 0 && (e = {});
769
775
  var t = [];
770
- e.defaultKeymap !== !1 && (t = t.concat(L)), e.historyKeymap !== !1 && (t = t.concat(R));
776
+ e.defaultKeymap !== !1 && (t = t.concat(se)), e.historyKeymap !== !1 && (t = t.concat(R));
771
777
  var n = [];
772
- return e.highlightSpecialChars !== !1 && n.push(C()), e.history !== !1 && n.push(V()), e.drawSelection !== !1 && n.push(b()), e.syntaxHighlighting !== !1 && n.push(c(w, { fallback: !0 })), n.concat([j.of(t.flat())]).filter(Boolean);
773
- }, mt = "#e5c07b", ht = "#e06c75", gt = "#56b6c2", _t = "#ffffff", vt = "#abb2bf", yt = "#7d8799", bt = "#61afef", xt = "#98c379", St = "#d19a66", Ct = "#c678dd", wt = "#21252b", Tt = "#2c313a", Et = "#282c34", Dt = "#353a42", Ot = "#3E4451", kt = "#528bff", At = /*@__PURE__*/ r.theme({
778
+ return e.highlightSpecialChars !== !1 && n.push(N()), e.history !== !1 && n.push(B()), e.drawSelection !== !1 && n.push(x()), e.syntaxHighlighting !== !1 && n.push(o(w, { fallback: !0 })), n.concat([E.of(t.flat())]).filter(Boolean);
779
+ }, ht = "#e5c07b", gt = "#e06c75", _t = "#56b6c2", vt = "#ffffff", yt = "#abb2bf", bt = "#7d8799", xt = "#61afef", St = "#98c379", Ct = "#d19a66", wt = "#c678dd", Tt = "#21252b", Et = "#2c313a", Dt = "#282c34", Ot = "#353a42", kt = "#3E4451", At = "#528bff", jt = /*@__PURE__*/ r.theme({
774
780
  "&": {
775
- color: vt,
776
- backgroundColor: Et
781
+ color: yt,
782
+ backgroundColor: Dt
777
783
  },
778
- ".cm-content": { caretColor: kt },
779
- ".cm-cursor, .cm-dropCursor": { borderLeftColor: kt },
780
- "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ot },
784
+ ".cm-content": { caretColor: At },
785
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: At },
786
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: kt },
781
787
  ".cm-panels": {
782
- backgroundColor: wt,
783
- color: vt
788
+ backgroundColor: Tt,
789
+ color: yt
784
790
  },
785
791
  ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
786
792
  ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
@@ -793,11 +799,11 @@ var ut = /*@__PURE__*/ r.baseTheme({
793
799
  ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
794
800
  "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" },
795
801
  ".cm-gutters": {
796
- backgroundColor: Et,
797
- color: yt,
802
+ backgroundColor: Dt,
803
+ color: bt,
798
804
  border: "none"
799
805
  },
800
- ".cm-activeLineGutter": { backgroundColor: Tt },
806
+ ".cm-activeLineGutter": { backgroundColor: Et },
801
807
  ".cm-foldPlaceholder": {
802
808
  backgroundColor: "transparent",
803
809
  border: "none",
@@ -805,137 +811,137 @@ var ut = /*@__PURE__*/ r.baseTheme({
805
811
  },
806
812
  ".cm-tooltip": {
807
813
  border: "none",
808
- backgroundColor: Dt
814
+ backgroundColor: Ot
809
815
  },
810
816
  ".cm-tooltip .cm-tooltip-arrow:before": {
811
817
  borderTopColor: "transparent",
812
818
  borderBottomColor: "transparent"
813
819
  },
814
820
  ".cm-tooltip .cm-tooltip-arrow:after": {
815
- borderTopColor: Dt,
816
- borderBottomColor: Dt
821
+ borderTopColor: Ot,
822
+ borderBottomColor: Ot
817
823
  },
818
824
  ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": {
819
- backgroundColor: Tt,
820
- color: vt
825
+ backgroundColor: Et,
826
+ color: yt
821
827
  } }
822
- }, { dark: !0 }), jt = /*@__PURE__*/ te.define([
828
+ }, { dark: !0 }), Mt = /*@__PURE__*/ b.define([
823
829
  {
824
- tag: d.keyword,
825
- color: Ct
830
+ tag: s.keyword,
831
+ color: wt
826
832
  },
827
833
  {
828
834
  tag: [
829
- d.name,
830
- d.deleted,
831
- d.character,
832
- d.propertyName,
833
- d.macroName
835
+ s.name,
836
+ s.deleted,
837
+ s.character,
838
+ s.propertyName,
839
+ s.macroName
834
840
  ],
835
- color: ht
841
+ color: gt
836
842
  },
837
843
  {
838
- tag: [/*@__PURE__*/ d.function(d.variableName), d.labelName],
839
- color: bt
844
+ tag: [/*@__PURE__*/ s.function(s.variableName), s.labelName],
845
+ color: xt
840
846
  },
841
847
  {
842
848
  tag: [
843
- d.color,
844
- /*@__PURE__*/ d.constant(d.name),
845
- /*@__PURE__*/ d.standard(d.name)
849
+ s.color,
850
+ /*@__PURE__*/ s.constant(s.name),
851
+ /*@__PURE__*/ s.standard(s.name)
846
852
  ],
847
- color: St
853
+ color: Ct
848
854
  },
849
855
  {
850
- tag: [/*@__PURE__*/ d.definition(d.name), d.separator],
851
- color: vt
856
+ tag: [/*@__PURE__*/ s.definition(s.name), s.separator],
857
+ color: yt
852
858
  },
853
859
  {
854
860
  tag: [
855
- d.typeName,
856
- d.className,
857
- d.number,
858
- d.changed,
859
- d.annotation,
860
- d.modifier,
861
- d.self,
862
- d.namespace
861
+ s.typeName,
862
+ s.className,
863
+ s.number,
864
+ s.changed,
865
+ s.annotation,
866
+ s.modifier,
867
+ s.self,
868
+ s.namespace
863
869
  ],
864
- color: mt
870
+ color: ht
865
871
  },
866
872
  {
867
873
  tag: [
868
- d.operator,
869
- d.operatorKeyword,
870
- d.url,
871
- d.escape,
872
- d.regexp,
873
- d.link,
874
- /*@__PURE__*/ d.special(d.string)
874
+ s.operator,
875
+ s.operatorKeyword,
876
+ s.url,
877
+ s.escape,
878
+ s.regexp,
879
+ s.link,
880
+ /*@__PURE__*/ s.special(s.string)
875
881
  ],
876
- color: gt
882
+ color: _t
877
883
  },
878
884
  {
879
- tag: [d.meta, d.comment],
880
- color: yt
885
+ tag: [s.meta, s.comment],
886
+ color: bt
881
887
  },
882
888
  {
883
- tag: d.strong,
889
+ tag: s.strong,
884
890
  fontWeight: "bold"
885
891
  },
886
892
  {
887
- tag: d.emphasis,
893
+ tag: s.emphasis,
888
894
  fontStyle: "italic"
889
895
  },
890
896
  {
891
- tag: d.strikethrough,
897
+ tag: s.strikethrough,
892
898
  textDecoration: "line-through"
893
899
  },
894
900
  {
895
- tag: d.link,
896
- color: yt,
901
+ tag: s.link,
902
+ color: bt,
897
903
  textDecoration: "underline"
898
904
  },
899
905
  {
900
- tag: d.heading,
906
+ tag: s.heading,
901
907
  fontWeight: "bold",
902
- color: ht
908
+ color: gt
903
909
  },
904
910
  {
905
911
  tag: [
906
- d.atom,
907
- d.bool,
908
- /*@__PURE__*/ d.special(d.variableName)
912
+ s.atom,
913
+ s.bool,
914
+ /*@__PURE__*/ s.special(s.variableName)
909
915
  ],
910
- color: St
916
+ color: Ct
911
917
  },
912
918
  {
913
919
  tag: [
914
- d.processingInstruction,
915
- d.string,
916
- d.inserted
920
+ s.processingInstruction,
921
+ s.string,
922
+ s.inserted
917
923
  ],
918
- color: xt
924
+ color: St
919
925
  },
920
926
  {
921
- tag: d.invalid,
922
- color: _t
927
+ tag: s.invalid,
928
+ color: vt
923
929
  }
924
- ]), Mt = [At, /*@__PURE__*/ c(jt)], Nt = r.theme({ "&": { backgroundColor: "#fff" } }, { dark: !1 }), Pt = function(e) {
930
+ ]), Nt = [jt, /*@__PURE__*/ o(Mt)], Pt = r.theme({ "&": { backgroundColor: "#fff" } }, { dark: !1 }), Ft = function(e) {
925
931
  e === void 0 && (e = {});
926
- var t = e, n = t.indentWithTab, a = n === void 0 || n, o = t.editable, s = o === void 0 || o, c = t.readOnly, l = c !== void 0 && c, u = t.theme, d = u === void 0 ? "light" : u, f = t.placeholder, p = f === void 0 ? "" : f, m = t.basicSetup, h = m === void 0 || m, g = [];
927
- switch (a && g.unshift(j.of([z])), h && (typeof h == "boolean" ? g.unshift(ft()) : g.unshift(ft(h))), p && g.unshift(ee(p)), d) {
932
+ var t = e, n = t.indentWithTab, i = n === void 0 || n, a = t.editable, o = a === void 0 || a, s = t.readOnly, c = s !== void 0 && s, l = t.theme, u = l === void 0 ? "light" : l, d = t.placeholder, f = d === void 0 ? "" : d, p = t.basicSetup, m = p === void 0 || p, h = [];
933
+ switch (i && h.unshift(E.of([ce])), m && (typeof m == "boolean" ? h.unshift(pt()) : h.unshift(pt(m))), f && h.unshift(ie(f)), u) {
928
934
  case "light":
929
- g.push(Nt);
935
+ h.push(Pt);
930
936
  break;
931
937
  case "dark":
932
- g.push(Mt);
938
+ h.push(Nt);
933
939
  break;
934
940
  case "none": break;
935
- default: g.push(d);
941
+ default: h.push(u);
936
942
  }
937
- return s === !1 && g.push(r.editable.of(!1)), l && g.push(i.readOnly.of(!0)), [...g];
938
- }, Ft = (e) => ({
943
+ return o === !1 && h.push(r.editable.of(!1)), c && h.push(k.readOnly.of(!0)), [...h];
944
+ }, It = (e) => ({
939
945
  line: e.state.doc.lineAt(e.state.selection.main.from),
940
946
  lineCount: e.state.doc.lines,
941
947
  lineBreak: e.state.lineBreak,
@@ -948,7 +954,7 @@ var ut = /*@__PURE__*/ r.baseTheme({
948
954
  selectionCode: e.state.sliceDoc(e.state.selection.main.from, e.state.selection.main.to),
949
955
  selections: e.state.selection.ranges.map((t) => e.state.sliceDoc(t.from, t.to)),
950
956
  selectedText: e.state.selection.ranges.some((e) => !e.empty)
951
- }), It = class {
957
+ }), Lt = class {
952
958
  constructor(e, t) {
953
959
  this.timeLeftMS = void 0, this.timeoutMS = void 0, this.isCancelled = !1, this.isTimeExhausted = !1, this.callbacks = [], this.timeLeftMS = t, this.timeoutMS = t, this.callbacks.push(e);
954
960
  }
@@ -974,7 +980,7 @@ var ut = /*@__PURE__*/ r.baseTheme({
974
980
  get isDone() {
975
981
  return this.isCancelled || this.isTimeExhausted;
976
982
  }
977
- }, Lt = class {
983
+ }, Rt = class {
978
984
  constructor() {
979
985
  this.interval = null, this.latches = /* @__PURE__ */ new Set();
980
986
  }
@@ -994,8 +1000,8 @@ var ut = /*@__PURE__*/ r.baseTheme({
994
1000
  stop() {
995
1001
  this.interval !== null && (clearInterval(this.interval), this.interval = null);
996
1002
  }
997
- }, Rt = null, zt = () => typeof window > "u" ? new Lt() : (Rt ||= new Lt(), Rt), Bt = r.theme({ "& .cm-scroller": { height: "100% !important" } }), Vt = null, Ht = null;
998
- function Ut(e, t, n, i, a, o) {
1003
+ }, zt = null, Bt = () => typeof window > "u" ? new Rt() : (zt ||= new Rt(), zt), Vt = r.theme({ "& .cm-scroller": { height: "100% !important" } }), Ht = null, Ut = null;
1004
+ function Wt(e, t, n, i, a, o) {
999
1005
  if (!e && !t && !n && !i && !a && !o) return null;
1000
1006
  var s = JSON.stringify({
1001
1007
  height: e,
@@ -1005,103 +1011,103 @@ function Ut(e, t, n, i, a, o) {
1005
1011
  minWidth: a,
1006
1012
  maxWidth: o
1007
1013
  });
1008
- return s === Vt ? Ht : (Vt = s, Ht = r.theme({ "&": {
1014
+ return s === Ht ? Ut : (Ht = s, Ut = r.theme({ "&": {
1009
1015
  height: e,
1010
1016
  minHeight: t,
1011
1017
  maxHeight: n,
1012
1018
  width: i,
1013
1019
  minWidth: a,
1014
1020
  maxWidth: o
1015
- } }), Ht);
1021
+ } }), Ut);
1016
1022
  }
1017
1023
  //#endregion
1018
- //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js
1019
- var Wt = F.define(), Gt = 200, Kt = [];
1020
- function qt(e) {
1021
- var t = e.value, n = e.selection, a = e.onChange, o = e.onStatistics, s = e.onCreateEditor, c = e.onUpdate, l = e.extensions, u = l === void 0 ? Kt : l, d = e.autoFocus, f = e.theme, p = f === void 0 ? "light" : f, h = e.height, g = h === void 0 ? null : h, _ = e.minHeight, v = _ === void 0 ? null : _, y = e.maxHeight, ee = y === void 0 ? null : y, te = e.width, b = te === void 0 ? null : te, x = e.minWidth, S = x === void 0 ? null : x, C = e.maxWidth, w = C === void 0 ? null : C, T = e.placeholder, E = T === void 0 ? "" : T, D = e.editable, O = D === void 0 || D, k = e.readOnly, A = k !== void 0 && k, j = e.indentWithTab, M = j === void 0 || j, ne = e.basicSetup, N = ne === void 0 || ne, re = e.root, P = e.initialState, ie = (0, W.useState)(), F = ie[0], ae = ie[1], oe = (0, W.useState)(), I = oe[0], L = oe[1], R = (0, W.useState)(), z = R[0], B = R[1], V = (0, W.useState)(() => ({ current: null }))[0], H = (0, W.useState)(() => ({ current: null }))[0], se = Ut(g, v, ee, b, S, w), ce = r.updateListener.of((e) => {
1022
- e.docChanged && typeof a == "function" && !e.transactions.some((e) => e.annotation(Wt)) && (V.current ? V.current.reset() : (V.current = new It(() => {
1023
- if (H.current) {
1024
- var e = H.current;
1025
- H.current = null, e();
1024
+ //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_fa5994cfaae4e313c24d08207e89d48f/node_modules/@uiw/react-codemirror/esm/useCodeMirror.js
1025
+ var Gt = g.define(), Kt = 200, qt = [];
1026
+ function Jt(e) {
1027
+ var t = e.value, n = e.selection, i = e.onChange, a = e.onStatistics, o = e.onCreateEditor, s = e.onUpdate, c = e.extensions, l = c === void 0 ? qt : c, u = e.autoFocus, d = e.theme, f = d === void 0 ? "light" : d, p = e.height, h = p === void 0 ? null : p, g = e.minHeight, _ = g === void 0 ? null : g, v = e.maxHeight, y = v === void 0 ? null : v, b = e.width, x = b === void 0 ? null : b, S = e.minWidth, C = S === void 0 ? null : S, ee = e.maxWidth, te = ee === void 0 ? null : ee, w = e.placeholder, T = w === void 0 ? "" : w, E = e.editable, D = E === void 0 || E, O = e.readOnly, A = O !== void 0 && O, j = e.indentWithTab, M = j === void 0 || j, N = e.basicSetup, ne = N === void 0 || N, re = e.root, P = e.initialState, ie = (0, H.useState)(), F = ie[0], ae = ie[1], oe = (0, H.useState)(), I = oe[0], L = oe[1], se = (0, H.useState)(), R = se[0], ce = se[1], z = (0, H.useState)(() => ({ current: null }))[0], B = (0, H.useState)(() => ({ current: null }))[0], le = Wt(h, _, y, x, C, te), ue = r.updateListener.of((e) => {
1028
+ e.docChanged && typeof i == "function" && !e.transactions.some((e) => e.annotation(Gt)) && (z.current ? z.current.reset() : (z.current = new Lt(() => {
1029
+ if (B.current) {
1030
+ var e = B.current;
1031
+ B.current = null, e();
1026
1032
  }
1027
- V.current = null;
1028
- }, Gt), zt().add(V.current)), a(e.state.doc.toString(), e)), o && o(Ft(e));
1029
- }), le = Pt({
1030
- theme: p,
1031
- editable: O,
1033
+ z.current = null;
1034
+ }, Kt), Bt().add(z.current)), i(e.state.doc.toString(), e)), a && a(It(e));
1035
+ }), de = Ft({
1036
+ theme: f,
1037
+ editable: D,
1032
1038
  readOnly: A,
1033
- placeholder: E,
1039
+ placeholder: T,
1034
1040
  indentWithTab: M,
1035
- basicSetup: N
1036
- }), U = [
1037
- ce,
1038
- ...se ? [se] : [],
1039
- Bt,
1040
- ...le
1041
+ basicSetup: ne
1042
+ }), V = [
1043
+ ue,
1044
+ ...le ? [le] : [],
1045
+ Vt,
1046
+ ...de
1041
1047
  ];
1042
- return c && typeof c == "function" && U.push(r.updateListener.of(c)), U = U.concat(u), (0, W.useLayoutEffect)(() => {
1043
- if (F && !z) {
1048
+ return s && typeof s == "function" && V.push(r.updateListener.of(s)), V = V.concat(l), (0, H.useLayoutEffect)(() => {
1049
+ if (F && !R) {
1044
1050
  var e = {
1045
1051
  doc: t,
1046
1052
  selection: n,
1047
- extensions: U
1048
- }, a = P ? i.fromJSON(P.json, e, P.fields) : i.create(e);
1049
- if (B(a), !I) {
1050
- var o = new r({
1051
- state: a,
1053
+ extensions: V
1054
+ }, i = P ? k.fromJSON(P.json, e, P.fields) : k.create(e);
1055
+ if (ce(i), !I) {
1056
+ var a = new r({
1057
+ state: i,
1052
1058
  parent: F,
1053
1059
  root: re
1054
1060
  });
1055
- L(o), s && s(o, a);
1061
+ L(a), o && o(a, i);
1056
1062
  }
1057
1063
  }
1058
1064
  return () => {
1059
- I && (B(void 0), L(void 0));
1065
+ I && (ce(void 0), L(void 0));
1060
1066
  };
1061
- }, [F, z]), (0, W.useEffect)(() => {
1067
+ }, [F, R]), (0, H.useEffect)(() => {
1062
1068
  e.container && ae(e.container);
1063
- }, [e.container]), (0, W.useEffect)(() => () => {
1064
- I && (I.destroy(), L(void 0)), V.current &&= (V.current.cancel(), null);
1065
- }, [I]), (0, W.useEffect)(() => {
1066
- d && I && I.focus();
1067
- }, [d, I]), (0, W.useEffect)(() => {
1068
- I && I.dispatch({ effects: m.reconfigure.of(U) });
1069
+ }, [e.container]), (0, H.useEffect)(() => () => {
1070
+ I && (I.destroy(), L(void 0)), z.current &&= (z.current.cancel(), null);
1071
+ }, [I]), (0, H.useEffect)(() => {
1072
+ u && I && I.focus();
1073
+ }, [u, I]), (0, H.useEffect)(() => {
1074
+ I && I.dispatch({ effects: m.reconfigure.of(V) });
1069
1075
  }, [
1070
- p,
1071
- u,
1072
- g,
1073
- v,
1074
- ee,
1075
- b,
1076
- S,
1077
- w,
1078
- E,
1079
- O,
1076
+ f,
1077
+ l,
1078
+ h,
1079
+ _,
1080
+ y,
1081
+ x,
1082
+ C,
1083
+ te,
1084
+ T,
1085
+ D,
1080
1086
  A,
1081
1087
  M,
1082
- N,
1083
- a,
1084
- c
1085
- ]), (0, W.useEffect)(() => {
1088
+ ne,
1089
+ i,
1090
+ s
1091
+ ]), (0, H.useEffect)(() => {
1086
1092
  if (t !== void 0) {
1087
1093
  var e = I ? I.state.doc.toString() : "";
1088
1094
  if (I && t !== e) {
1089
- var n = V.current && !V.current.isDone, r = () => {
1095
+ var n = z.current && !z.current.isDone, r = () => {
1090
1096
  I && t !== I.state.doc.toString() && I.dispatch({
1091
1097
  changes: {
1092
1098
  from: 0,
1093
1099
  to: I.state.doc.toString().length,
1094
1100
  insert: t || ""
1095
1101
  },
1096
- annotations: [Wt.of(!0)]
1102
+ annotations: [Gt.of(!0)]
1097
1103
  });
1098
1104
  };
1099
- n ? H.current = r : r();
1105
+ n ? B.current = r : r();
1100
1106
  }
1101
1107
  }
1102
1108
  }, [t, I]), {
1103
- state: z,
1104
- setState: B,
1109
+ state: R,
1110
+ setState: ce,
1105
1111
  view: I,
1106
1112
  setView: L,
1107
1113
  container: F,
@@ -1109,8 +1115,8 @@ function qt(e) {
1109
1115
  };
1110
1116
  }
1111
1117
  //#endregion
1112
- //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_623c1289eb80a5520a7e784eefdad0eb/node_modules/@uiw/react-codemirror/esm/index.js
1113
- var Jt = n(), Yt = [
1118
+ //#region ../node_modules/.pnpm/@uiw+react-codemirror@4.25.11_@babel+runtime@7.27.6_@codemirror+autocomplete@6.20.3_@co_fa5994cfaae4e313c24d08207e89d48f/node_modules/@uiw/react-codemirror/esm/index.js
1119
+ var Yt = n(), Xt = [
1114
1120
  "className",
1115
1121
  "value",
1116
1122
  "selection",
@@ -1134,8 +1140,8 @@ var Jt = n(), Yt = [
1134
1140
  "readOnly",
1135
1141
  "root",
1136
1142
  "initialState"
1137
- ], Xt = /*#__PURE__*/ (0, W.forwardRef)((e, t) => {
1138
- var n = e.className, r = e.value, i = r === void 0 ? "" : r, a = e.selection, o = e.extensions, s = o === void 0 ? [] : o, c = e.onChange, l = e.onStatistics, u = e.onCreateEditor, d = e.onUpdate, f = e.autoFocus, p = e.theme, m = p === void 0 ? "light" : p, h = e.height, g = e.minHeight, _ = e.maxHeight, v = e.width, y = e.minWidth, ee = e.maxWidth, te = e.basicSetup, b = e.placeholder, x = e.indentWithTab, S = e.editable, C = e.readOnly, w = e.root, T = e.initialState, E = ue(e, Yt), D = (0, W.useRef)(null), O = qt({
1143
+ ], Zt = /*#__PURE__*/ (0, H.forwardRef)((e, t) => {
1144
+ var n = e.className, r = e.value, i = r === void 0 ? "" : r, a = e.selection, o = e.extensions, s = o === void 0 ? [] : o, c = e.onChange, l = e.onStatistics, u = e.onCreateEditor, d = e.onUpdate, f = e.autoFocus, p = e.theme, m = p === void 0 ? "light" : p, h = e.height, g = e.minHeight, _ = e.maxHeight, v = e.width, y = e.minWidth, b = e.maxWidth, x = e.basicSetup, S = e.placeholder, C = e.indentWithTab, ee = e.editable, te = e.readOnly, w = e.root, T = e.initialState, E = pe(e, Xt), D = (0, H.useRef)(null), O = Jt({
1139
1145
  root: w,
1140
1146
  value: i,
1141
1147
  autoFocus: f,
@@ -1145,12 +1151,12 @@ var Jt = n(), Yt = [
1145
1151
  maxHeight: _,
1146
1152
  width: v,
1147
1153
  minWidth: y,
1148
- maxWidth: ee,
1149
- basicSetup: te,
1150
- placeholder: b,
1151
- indentWithTab: x,
1152
- editable: S,
1153
- readOnly: C,
1154
+ maxWidth: b,
1155
+ basicSetup: x,
1156
+ placeholder: S,
1157
+ indentWithTab: C,
1158
+ editable: ee,
1159
+ readOnly: te,
1154
1160
  selection: a,
1155
1161
  onChange: c,
1156
1162
  onStatistics: l,
@@ -1159,7 +1165,7 @@ var Jt = n(), Yt = [
1159
1165
  extensions: s,
1160
1166
  initialState: T
1161
1167
  }), k = O.state, A = O.view, j = O.container, M = O.setContainer;
1162
- (0, W.useImperativeHandle)(t, () => ({
1168
+ (0, H.useImperativeHandle)(t, () => ({
1163
1169
  editor: D.current,
1164
1170
  state: k,
1165
1171
  view: A
@@ -1169,16 +1175,16 @@ var Jt = n(), Yt = [
1169
1175
  k,
1170
1176
  A
1171
1177
  ]);
1172
- var ne = (0, W.useCallback)((e) => {
1178
+ var N = (0, H.useCallback)((e) => {
1173
1179
  D.current = e, M(e);
1174
1180
  }, [M]);
1175
1181
  if (typeof i != "string") throw Error("value must be typeof string but got " + typeof i);
1176
- var N = typeof m == "string" ? "cm-theme-" + m : "cm-theme";
1177
- return /*#__PURE__*/ (0, Jt.jsx)("div", U({
1178
- ref: ne,
1179
- className: "" + N + (n ? " " + n : "")
1182
+ var ne = typeof m == "string" ? "cm-theme-" + m : "cm-theme";
1183
+ return /*#__PURE__*/ (0, Yt.jsx)("div", fe({
1184
+ ref: N,
1185
+ className: "" + ne + (n ? " " + n : "")
1180
1186
  }, E));
1181
1187
  });
1182
- Xt.displayName = "CodeMirror";
1188
+ Zt.displayName = "CodeMirror";
1183
1189
  //#endregion
1184
- export { pt as n, Xt as t };
1190
+ export { mt as n, Zt as t };