@marimo-team/islands 0.23.10-dev24 → 0.23.10-dev26

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 (82) hide show
  1. package/dist/{any-language-editor-QDDrgvfh.js → any-language-editor-DNmoSiWL.js} +18 -18
  2. package/dist/{chat-ui-BrKSZ7Yu.js → chat-ui-D6oraHT2.js} +11 -11
  3. package/dist/{code-visibility-CVmFerQM.js → code-visibility-Rcdlclvw.js} +1202 -1025
  4. package/dist/dist-7QfXoMdB.js +5 -0
  5. package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
  6. package/dist/dist-BEXXyZig.js +5 -0
  7. package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
  8. package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
  9. package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
  10. package/dist/dist-BYj57OV4.js +5 -0
  11. package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
  12. package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
  13. package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
  14. package/dist/dist-BlSvQzNr.js +5 -0
  15. package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
  16. package/dist/dist-CCBlxAgS.js +8 -0
  17. package/dist/dist-CIDTVIUf.js +5 -0
  18. package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
  19. package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
  20. package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
  21. package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
  22. package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
  23. package/dist/dist-CqQyhAM8.js +8 -0
  24. package/dist/dist-CwRu2Xzh.js +5 -0
  25. package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
  26. package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
  27. package/dist/dist-D8CDTVgf.js +6 -0
  28. package/dist/dist-D8DNB0nO.js +8 -0
  29. package/dist/dist-DL6N_q-A.js +5 -0
  30. package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
  31. package/dist/dist-DOFbNV_b.js +8 -0
  32. package/dist/dist-DPrYzMY0.js +6 -0
  33. package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
  34. package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
  35. package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
  36. package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
  37. package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
  38. package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
  39. package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
  40. package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
  41. package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
  42. package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
  43. package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
  44. package/dist/dist-cdmMjgsn.js +5 -0
  45. package/dist/dist-hT4QzYX-.js +1247 -0
  46. package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
  47. package/dist/esm-BaH2eg5-.js +1171 -0
  48. package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
  49. package/dist/{extends-C3j0Pbh9.js → extends-D_hDsj6R.js} +1 -1
  50. package/dist/{html-to-image-D5fIgQg_.js → html-to-image-UEH5lFDZ.js} +2162 -2139
  51. package/dist/main.js +1220 -1356
  52. package/dist/{process-output-B59yoBQx.js → process-output-CyMLTogj.js} +1 -1
  53. package/dist/{reveal-component-bghJ00sb.js → reveal-component-xsFYQVKT.js} +414 -337
  54. package/dist/style.css +1 -1
  55. package/package.json +1 -1
  56. package/src/components/editor/cell/code/language-toggle.tsx +7 -1
  57. package/src/components/editor/documentation.css +19 -0
  58. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
  59. package/src/components/editor/renderers/slides-layout/types.ts +1 -0
  60. package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
  61. package/src/components/slides/reveal-component.tsx +283 -61
  62. package/src/components/slides/slide-cell-view.tsx +26 -2
  63. package/src/components/slides/slide-form.tsx +26 -4
  64. package/src/core/codemirror/language/languages/python.ts +2 -0
  65. package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
  66. package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
  67. package/dist/dist-0Fif7jnk.js +0 -5
  68. package/dist/dist-B5h_9sHB.js +0 -6
  69. package/dist/dist-B9M6R5ye.js +0 -5
  70. package/dist/dist-BCt3tnck.js +0 -8
  71. package/dist/dist-BUIJwMwn.js +0 -8
  72. package/dist/dist-BpquMd3k.js +0 -5
  73. package/dist/dist-BzJsqYfz.js +0 -5
  74. package/dist/dist-CA5ELXAf.js +0 -6
  75. package/dist/dist-CLBRs6Uv.js +0 -5
  76. package/dist/dist-CStVCMbq.js +0 -5
  77. package/dist/dist-CZRIEY3Y.js +0 -8
  78. package/dist/dist-CuUHbFD0.js +0 -5
  79. package/dist/dist-DV7Iabxb.js +0 -8
  80. package/dist/dist-DhHh0jLg.js +0 -1247
  81. package/dist/dist-DuEeHMvL.js +0 -5
  82. package/dist/esm-DzhtSSSq.js +0 -1171
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as defineCSSCompletionSource, n as cssCompletionSource, r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
3
+ export {
4
+ css
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
2
2
  var javaHighlighting = styleTags({
3
3
  null: tags.null,
4
4
  instanceof: tags.operatorKeyword,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as yamlLanguage, t as yaml } from "./dist-BzEzfugY.js";
3
+ export {
4
+ yaml
5
+ };
@@ -1,5 +1,5 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
4
4
  function wordChar(h) {
5
5
  return h >= 65 && h <= 90 || h >= 97 && h <= 122;
@@ -288,7 +288,7 @@ function jinjaCompletionSource(h = {}) {
288
288
  } : null;
289
289
  };
290
290
  }
291
- var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, z, B, V) => V != "%" || z != B || h.state.doc.sliceString(z - 1, B + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
291
+ var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, R, z, B) => B != "%" || R != z || h.state.doc.sliceString(R - 1, z + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
292
292
  changes: {
293
293
  from: h2.from,
294
294
  to: h2.to,
@@ -1,6 +1,6 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { r as cssLanguage, t as css } from "./dist-DxvORzUR.js";
3
- import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-DqAWR3CS.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
3
+ import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-M9Vag9Y0.js";
4
4
  var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
5
5
  area: true,
6
6
  base: true,
@@ -356,19 +356,19 @@ function maybeNest(g, G, K) {
356
356
  return null;
357
357
  }
358
358
  function configureNesting(g = [], G = []) {
359
- let K = [], J = [], Y = [], X = [];
360
- for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? J : G2.tag == "textarea" ? Y : X).push(G2);
359
+ let K = [], q = [], J = [], Y = [];
360
+ for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J : Y).push(G2);
361
361
  let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
362
362
  for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
363
363
  return parseMixed((g2, G2) => {
364
- let q = g2.type.id;
365
- if (q == ScriptText) return maybeNest(g2, G2, K);
366
- if (q == StyleText) return maybeNest(g2, G2, J);
367
- if (q == TextareaText) return maybeNest(g2, G2, Y);
368
- if (q == Element && X.length) {
369
- let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), Y2;
364
+ let X = g2.type.id;
365
+ if (X == ScriptText) return maybeNest(g2, G2, K);
366
+ if (X == StyleText) return maybeNest(g2, G2, q);
367
+ if (X == TextareaText) return maybeNest(g2, G2, J);
368
+ if (X == Element && Y.length) {
369
+ let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), X2;
370
370
  if (J2) {
371
- for (let g3 of X) if (g3.tag == J2 && (!g3.attrs || g3.attrs(Y2 || (Y2 = getAttrs(q2, G2))))) {
371
+ for (let g3 of Y) if (g3.tag == J2 && (!g3.attrs || g3.attrs(X2 || (X2 = getAttrs(q2, G2))))) {
372
372
  let G3 = K2.lastChild, J3 = G3.type.id == CloseTag ? G3.from : K2.to;
373
373
  if (J3 > q2.to) return {
374
374
  parser: g3.parser,
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
380
380
  }
381
381
  }
382
382
  }
383
- if (Z && q == Attribute) {
383
+ if (Z && X == Attribute) {
384
384
  let K2 = g2.node, q2;
385
385
  if (q2 = K2.firstChild) {
386
386
  let g3 = Z[G2.read(q2.from, q2.to)];
@@ -1281,31 +1281,31 @@ function html(g = {}) {
1281
1281
  css().support
1282
1282
  ]);
1283
1283
  }
1284
- var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, q, J, Y, X) => {
1285
- if (g.composing || g.state.readOnly || q != J || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, q, -1)) return false;
1284
+ var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q, Y, X) => {
1285
+ if (g.composing || g.state.readOnly || G != q || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, G, -1)) return false;
1286
1286
  let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
1287
1287
  var _a, _b, _c;
1288
- let q2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: J2 } = g2, X2 = syntaxTree(Q).resolveInner(J2, -1), Z2;
1289
- if (q2 && Y == ">" && X2.name == "EndTag") {
1290
- let G = X2.parent;
1291
- if (((_b = (_a = G.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G.parent, J2)) && !selfClosers.has(Z2)) return {
1288
+ let G2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: q2 } = g2, X2 = syntaxTree(Q).resolveInner(q2, -1), Z2;
1289
+ if (G2 && Y == ">" && X2.name == "EndTag") {
1290
+ let G3 = X2.parent;
1291
+ if (((_b = (_a = G3.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G3.parent, q2)) && !selfClosers.has(Z2)) return {
1292
1292
  range: g2,
1293
1293
  changes: {
1294
- from: J2,
1295
- to: J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0),
1294
+ from: q2,
1295
+ to: q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0),
1296
1296
  insert: `</${Z2}>`
1297
1297
  }
1298
1298
  };
1299
- } else if (q2 && Y == "/" && X2.name == "IncompleteCloseTag") {
1299
+ } else if (G2 && Y == "/" && X2.name == "IncompleteCloseTag") {
1300
1300
  let g3 = X2.parent;
1301
- if (X2.from == J2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, J2)) && !selfClosers.has(Z2)) {
1302
- let g4 = J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0), K = `${Z2}>`;
1301
+ if (X2.from == q2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, q2)) && !selfClosers.has(Z2)) {
1302
+ let g4 = q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0), G3 = `${Z2}>`;
1303
1303
  return {
1304
- range: EditorSelection.cursor(J2 + K.length, -1),
1304
+ range: EditorSelection.cursor(q2 + G3.length, -1),
1305
1305
  changes: {
1306
- from: J2,
1306
+ from: q2,
1307
1307
  to: g4,
1308
- insert: K
1308
+ insert: G3
1309
1309
  }
1310
1310
  };
1311
1311
  }
@@ -1,5 +1,5 @@
1
- import { B as tags, J as parseMixed, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, _require = 52, require_once = 53, _return = 54, _switch = 55, _throw = 56, trait = 57, _try = 58, unset = 59, use = 60, _var = 61, Visibility = 62, keywordMap = {
4
4
  abstract,
5
5
  and,
@@ -407,19 +407,19 @@ var interpolated = new ExternalTokenizer((S, Z) => {
407
407
  }
408
408
  });
409
409
  function php(S = {}) {
410
- let Q = [], $;
411
- if (S.baseLanguage !== null) if (S.baseLanguage) $ = S.baseLanguage;
410
+ let Z = [], Q;
411
+ if (S.baseLanguage !== null) if (S.baseLanguage) Q = S.baseLanguage;
412
412
  else {
413
413
  let S2 = html({ matchClosingTags: false });
414
- Q.push(S2.support), $ = S2.language;
414
+ Z.push(S2.support), Q = S2.language;
415
415
  }
416
416
  return new LanguageSupport(phpLanguage.configure({
417
- wrap: $ && parseMixed((S2) => S2.type.isTop ? {
418
- parser: $.parser,
417
+ wrap: Q && parseMixed((S2) => S2.type.isTop ? {
418
+ parser: Q.parser,
419
419
  overlay: (S3) => S3.name == "Text"
420
420
  } : null),
421
421
  top: S.plain ? "Program" : "Template"
422
- }), Q);
422
+ }), Z);
423
423
  }
424
424
  export {
425
425
  phpLanguage as n,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as cppLanguage, t as cpp } from "./dist-CIYBwstr.js";
3
+ export {
4
+ cpp
5
+ };
@@ -1,5 +1,5 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-RqXTaiir.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-abid3KgM.js";
3
3
  export {
4
4
  go
5
5
  };
@@ -1,8 +1,8 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-fQ0ViXGs.js";
3
- import "./dist-CcXxepx6.js";
4
- import "./dist-DxvORzUR.js";
5
- import "./dist-DqAWR3CS.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-Dv_Y15yk.js";
3
+ import "./dist-BSAt6RhH.js";
4
+ import "./dist-D-W5ny5a.js";
5
+ import "./dist-M9Vag9Y0.js";
6
6
  export {
7
7
  markdown
8
8
  };
@@ -1,5 +1,5 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-BTfv03uy.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CcWX6tmx.js";
3
3
  export {
4
4
  Cassandra,
5
5
  MSSQL,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as javaLanguage, t as java } from "./dist-A2846XWO.js";
3
+ export {
4
+ java
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47, type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4, Context = class {
3
3
  constructor(v, q, J) {
4
4
  this.parent = v, this.depth = q, this.type = J, this.hash = (v ? v.hash + v.hash << 8 : 0) + q + (q << 4) + J;
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { n as phpLanguage, t as php } from "./dist-BY018Paw.js";
6
+ export {
7
+ php
8
+ };
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as rustLanguage, t as rust } from "./dist-Dax--nl9.js";
3
+ export {
4
+ rust
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
2
2
  var RawString = 1, templateArgsEndFallback = 2, MacroName = 3, R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62, rawString = new ExternalTokenizer((y) => {
3
3
  if (y.next == L || y.next == U ? y.advance() : y.next == u && (y.advance(), y.next == Zero + 8 && y.advance()), y.next != R || (y.advance(), y.next != Quote)) return;
4
4
  y.advance();
@@ -1,5 +1,5 @@
1
- import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
1
+ import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
3
  var printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
4
4
  ParenthesizedExpression,
5
5
  TupleExpression,
@@ -388,19 +388,19 @@ var gatherCompletions = {
388
388
  function getScope(v, q) {
389
389
  let J = cache.get(q);
390
390
  if (J) return J;
391
- let Y = [], X = true;
391
+ let Y = [], Z = true;
392
392
  function Q(q2, J2) {
393
- let X2 = v.sliceString(q2.from, q2.to);
393
+ let X = v.sliceString(q2.from, q2.to);
394
394
  Y.push({
395
- label: X2,
395
+ label: X,
396
396
  type: J2
397
397
  });
398
398
  }
399
399
  return q.cursor(IterMode.IncludeAnonymous).iterate((q2) => {
400
400
  if (q2.name) {
401
401
  let v2 = gatherCompletions[q2.name];
402
- if (v2 && v2(q2, Q, X) || !X && ScopeNodes.has(q2.name)) return false;
403
- X = false;
402
+ if (v2 && v2(q2, Q, Z) || !Z && ScopeNodes.has(q2.name)) return false;
403
+ Z = false;
404
404
  } else if (q2.to - q2.from > 8192) {
405
405
  for (let J2 of getScope(v, q2.node)) Y.push(J2);
406
406
  return false;
@@ -414,15 +414,15 @@ var Identifier = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/, dontComplete = [
414
414
  "PropertyName"
415
415
  ];
416
416
  function localCompletionSource(v) {
417
- let q = syntaxTree(v.state).resolveInner(v.pos, -1);
418
- if (dontComplete.indexOf(q.name) > -1) return null;
419
- let Y = q.name == "VariableName" || q.to - q.from < 20 && Identifier.test(v.state.sliceDoc(q.from, q.to));
417
+ let J = syntaxTree(v.state).resolveInner(v.pos, -1);
418
+ if (dontComplete.indexOf(J.name) > -1) return null;
419
+ let Y = J.name == "VariableName" || J.to - J.from < 20 && Identifier.test(v.state.sliceDoc(J.from, J.to));
420
420
  if (!Y && !v.explicit) return null;
421
421
  let X = [];
422
- for (let J = q; J; J = J.parent) ScopeNodes.has(J.name) && (X = X.concat(getScope(v.state.doc, J)));
422
+ for (let q = J; q; q = q.parent) ScopeNodes.has(q.name) && (X = X.concat(getScope(v.state.doc, q)));
423
423
  return {
424
424
  options: X,
425
- from: Y ? q.from : v.pos,
425
+ from: Y ? J.from : v.pos,
426
426
  validFor: Identifier
427
427
  };
428
428
  }
@@ -1,5 +1,5 @@
1
- import { B as tags, I as syntaxTree, O as indentNodeProp, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
1
+ import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
3
  var whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
4
4
  function isAlpha(h3) {
5
5
  return h3 >= 65 && h3 <= 90 || h3 >= 97 && h3 <= 122 || h3 >= 48 && h3 <= 57;
@@ -1,7 +1,7 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
5
  export {
6
6
  html
7
7
  };
@@ -1,5 +1,5 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
4
4
  function wordChar(_) {
5
5
  return _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122;
@@ -284,7 +284,7 @@ function liquidCompletionSource(_ = {}) {
284
284
  } : null;
285
285
  };
286
286
  }
287
- var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, H, U, W) => W != "%" || H != U || _.state.doc.sliceString(H - 1, U + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
287
+ var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, V, H, U) => U != "%" || V != H || _.state.doc.sliceString(V - 1, H + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
288
288
  changes: {
289
289
  from: _2.from,
290
290
  to: _2.to,
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-CpxNdDkw.js";
6
+ export {
7
+ liquid
8
+ };
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as jsonLanguage, t as json } from "./dist-DZORgqKY.js";
3
+ export {
4
+ json
5
+ };
@@ -1,7 +1,7 @@
1
- import { B as tags, J as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import { r as javascriptLanguage } from "./dist-DqAWR3CS.js";
1
+ import { H as tags, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import { r as javascriptLanguage } from "./dist-M9Vag9Y0.js";
5
5
  var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36, text = /* @__PURE__ */ new ExternalTokenizer((p) => {
6
6
  let A = p.pos;
7
7
  for (; ; ) {
@@ -13,11 +13,11 @@ var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAt
13
13
  }
14
14
  p.pos > A && p.acceptToken(Text);
15
15
  });
16
- function attrContent(p, A, M) {
17
- return new ExternalTokenizer((j) => {
18
- let N = j.pos;
19
- for (; j.next != p && j.next >= 0 && (M || j.next != 38 && (j.next != 123 || j.peek(1) != 123)); ) j.advance();
20
- j.pos > N && j.acceptToken(A);
16
+ function attrContent(p, A, j) {
17
+ return new ExternalTokenizer((M) => {
18
+ let N = M.pos;
19
+ for (; M.next != p && M.next >= 0 && (j || M.next != 38 && (M.next != 123 || M.peek(1) != 123)); ) M.advance();
20
+ M.pos > N && M.acceptToken(A);
21
21
  });
22
22
  }
23
23
  var attrSingle = /* @__PURE__ */ attrContent(39, attributeContentSingle, false), attrDouble = /* @__PURE__ */ attrContent(34, attributeContentDouble, false), scriptAttrSingle = /* @__PURE__ */ attrContent(39, scriptAttributeContentSingle, true), scriptAttrDouble = /* @__PURE__ */ attrContent(34, scriptAttributeContentDouble, true), parser = /* @__PURE__ */ LRParser.deserialize({
@@ -1,4 +1,4 @@
1
- import { B as tags$1, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags$1, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var descendantOp = 122, Unit = 1, identifier$1 = 123, callee = 124, VariableName = 2, queryIdentifier = 125, queryVariableName = 3, QueryCallee = 4, space = [
3
3
  9,
4
4
  10,
@@ -283,11 +283,11 @@ function variableNames(_, K, q) {
283
283
  if (K.to - K.from > 4096) {
284
284
  let J = VariablesByNode.get(K);
285
285
  if (J) return J;
286
- let Y = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
286
+ let X = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
287
287
  if (Q.firstChild()) do
288
- for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), Y.push(K2));
288
+ for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), X.push(K2));
289
289
  while (Q.nextSibling());
290
- return VariablesByNode.set(K, Y), Y;
290
+ return VariablesByNode.set(K, X), X;
291
291
  } else {
292
292
  let J = [], Y = /* @__PURE__ */ new Set();
293
293
  return K.cursor().iterate((K2) => {
@@ -302,8 +302,8 @@ function variableNames(_, K, q) {
302
302
  }), J;
303
303
  }
304
304
  }
305
- var defineCSSCompletionSource = (_) => (K) => {
306
- let { state: J, pos: Y } = K, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
305
+ var defineCSSCompletionSource = (_) => (q) => {
306
+ let { state: J, pos: Y } = q, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
307
307
  if (X.name == "PropertyName" || (Z || X.name == "TagName") && /^(Block|Styles)$/.test(X.resolve(X.to).name)) return {
308
308
  from: X.from,
309
309
  options: properties(),
@@ -319,7 +319,7 @@ var defineCSSCompletionSource = (_) => (K) => {
319
319
  options: pseudoClasses,
320
320
  validFor: identifier
321
321
  };
322
- if (_(X) || (K.explicit || Z) && isVarArg(X, J.doc)) return {
322
+ if (_(X) || (q.explicit || Z) && isVarArg(X, J.doc)) return {
323
323
  from: _(X) || Z ? X.from : Y,
324
324
  options: variableNames(J.doc, astTop(X), _),
325
325
  validFor: variable
@@ -341,7 +341,7 @@ var defineCSSCompletionSource = (_) => (K) => {
341
341
  options: atRules,
342
342
  validFor: identifier
343
343
  };
344
- if (!K.explicit) return null;
344
+ if (!q.explicit) return null;
345
345
  let Q = X.resolve(Y), $ = Q.childBefore(Y);
346
346
  return $ && $.name == ":" && Q.name == "PseudoClassSelector" ? {
347
347
  from: Y,
@@ -0,0 +1,6 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-D-W5ny5a.js";
3
+ import { n as sassCompletionSource, r as sassLanguage, t as sass } from "./dist-DyyjKEYf.js";
4
+ export {
5
+ sass
6
+ };
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { n as vueLanguage, t as vue } from "./dist-LTU8Hdvn.js";
6
+ export {
7
+ vue
8
+ };
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as pythonLanguage, n as localCompletionSource, r as python, t as globalCompletion } from "./dist-C_Y3oV3C.js";
3
+ export {
4
+ python
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var spec_Keyword = {
3
3
  __proto__: null,
4
4
  anyref: 34,
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-BR_gyG9L.js";
6
+ export {
7
+ jinja
8
+ };
@@ -0,0 +1,6 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-D-W5ny5a.js";
3
+ import { n as lessCompletionSource, r as lessLanguage, t as less } from "./dist-t9Kf7xqC.js";
4
+ export {
5
+ less
6
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var jsonHighlighting = styleTags({
3
3
  String: tags.string,
4
4
  Number: tags.number,
@@ -1,4 +1,4 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, O as indentNodeProp, Z as EditorView, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
3
3
  function nameChar(m) {
4
4
  return m == 45 || m == 46 || m == 58 || m >= 65 && m <= 90 || m == 95 || m >= 97 && m <= 122 || m >= 161;
@@ -334,29 +334,29 @@ function elementName(m, V, H = m.length) {
334
334
  let U = V.firstChild, W = U && U.getChild("TagName");
335
335
  return W ? m.sliceString(W.from, Math.min(W.to, H)) : "";
336
336
  }
337
- var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m, U, W, G, K) => {
338
- if (m.composing || m.state.readOnly || U != W || G != ">" && G != "/" || !xmlLanguage.isActiveAt(m.state, U, -1)) return false;
337
+ var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m, V, U, G, K) => {
338
+ if (m.composing || m.state.readOnly || V != U || G != ">" && G != "/" || !xmlLanguage.isActiveAt(m.state, V, -1)) return false;
339
339
  let q = K(), { state: J } = q, Y = J.changeByRange((m2) => {
340
340
  var _a, _b, _c;
341
- let { head: U2 } = m2, W2 = J.doc.sliceString(U2 - 1, U2) == G, K2 = syntaxTree(J).resolveInner(U2, -1), q2;
342
- if (W2 && G == ">" && K2.name == "EndTag") {
343
- let V = K2.parent;
344
- if (((_b = (_a = V.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (q2 = elementName(J.doc, V.parent, U2))) return {
341
+ let { head: V2 } = m2, U2 = J.doc.sliceString(V2 - 1, V2) == G, K2 = syntaxTree(J).resolveInner(V2, -1), q2;
342
+ if (U2 && G == ">" && K2.name == "EndTag") {
343
+ let H = K2.parent;
344
+ if (((_b = (_a = H.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (q2 = elementName(J.doc, H.parent, V2))) return {
345
345
  range: m2,
346
346
  changes: {
347
- from: U2,
348
- to: U2 + (J.doc.sliceString(U2, U2 + 1) === ">" ? 1 : 0),
347
+ from: V2,
348
+ to: V2 + (J.doc.sliceString(V2, V2 + 1) === ">" ? 1 : 0),
349
349
  insert: `</${q2}>`
350
350
  }
351
351
  };
352
- } else if (W2 && G == "/" && K2.name == "StartCloseTag") {
352
+ } else if (U2 && G == "/" && K2.name == "StartCloseTag") {
353
353
  let m3 = K2.parent;
354
- if (K2.from == U2 - 2 && ((_c = m3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (q2 = elementName(J.doc, m3, U2))) {
355
- let m4 = U2 + (J.doc.sliceString(U2, U2 + 1) === ">" ? 1 : 0), H = `${q2}>`;
354
+ if (K2.from == V2 - 2 && ((_c = m3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (q2 = elementName(J.doc, m3, V2))) {
355
+ let m4 = V2 + (J.doc.sliceString(V2, V2 + 1) === ">" ? 1 : 0), H = `${q2}>`;
356
356
  return {
357
- range: EditorSelection.cursor(U2 + H.length, -1),
357
+ range: EditorSelection.cursor(V2 + H.length, -1),
358
358
  changes: {
359
- from: U2,
359
+ from: V2,
360
360
  to: m4,
361
361
  insert: H
362
362
  }
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5, _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
3
3
  function isNum(h) {
4
4
  return h >= 48 && h <= 57;
@@ -1,5 +1,5 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-B3P2fFpz.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-DZo4nSS0.js";
3
3
  export {
4
4
  xml
5
5
  };