@camunda/copilot-chat 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +5423 -28
  3. package/dist/package.json +6 -2
  4. package/package.json +6 -2
  5. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts +0 -19
  6. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts.map +0 -1
  7. package/dist/ConversationHistoryPanel/ConversationHistoryRow.d.ts +0 -14
  8. package/dist/ConversationHistoryPanel/ConversationHistoryRow.d.ts.map +0 -1
  9. package/dist/ConversationHistoryPanel/index.d.ts +0 -2
  10. package/dist/ConversationHistoryPanel/index.d.ts.map +0 -1
  11. package/dist/CopilotChat.d.ts +0 -18
  12. package/dist/CopilotChat.d.ts.map +0 -1
  13. package/dist/CopilotSidecar.d.ts +0 -12
  14. package/dist/CopilotSidecar.d.ts.map +0 -1
  15. package/dist/apl-B2DGVGxc.mjs +0 -76
  16. package/dist/asciiarmor-2LVJmxlE.mjs +0 -34
  17. package/dist/asn1-jKiBa2Ya.mjs +0 -95
  18. package/dist/asterisk-DS281yxp.mjs +0 -271
  19. package/dist/clike-BMALKCNj.mjs +0 -620
  20. package/dist/clojure-CCKyeQKf.mjs +0 -800
  21. package/dist/cmake-CuaCgAKt.mjs +0 -28
  22. package/dist/cobol-BlTKFDRj.mjs +0 -72
  23. package/dist/codemirror-runtime-DN57DLqx.mjs +0 -14620
  24. package/dist/coffeescript-BVCvwO8I.mjs +0 -179
  25. package/dist/commonlisp-D_kxz07b.mjs +0 -75
  26. package/dist/crystal-D309uH6_.mjs +0 -217
  27. package/dist/css-BkF-NPzE.mjs +0 -1553
  28. package/dist/cypher-BMq4Fwjl.mjs +0 -68
  29. package/dist/d-BZcgY6La.mjs +0 -127
  30. package/dist/diff-Cg9d_RX2.mjs +0 -18
  31. package/dist/dockerfile-BmicwmnY.mjs +0 -194
  32. package/dist/dtd-CtLokQ-U.mjs +0 -84
  33. package/dist/dylan-QYeExnWK.mjs +0 -234
  34. package/dist/ebnf-DUPDuY4r.mjs +0 -78
  35. package/dist/ecl-CiXN-g_D.mjs +0 -121
  36. package/dist/eiffel-yQhjl4T1.mjs +0 -110
  37. package/dist/elm-CNT9vbN0.mjs +0 -108
  38. package/dist/erlang-CFOYdy9e.mjs +0 -487
  39. package/dist/factor-CYi8BYN3.mjs +0 -65
  40. package/dist/fcl-CPC2WYrI.mjs +0 -103
  41. package/dist/forth-BmxRyE9S.mjs +0 -60
  42. package/dist/fortran-9bvPyrOW.mjs +0 -442
  43. package/dist/gas-cpmYfFX2.mjs +0 -183
  44. package/dist/gherkin-CJuwpceU.mjs +0 -34
  45. package/dist/groovy-DZeT_VM-.mjs +0 -146
  46. package/dist/haskell-CxiO_7JL.mjs +0 -375
  47. package/dist/haxe-70NVW1pR.mjs +0 -359
  48. package/dist/hooks/index.d.ts +0 -7
  49. package/dist/hooks/index.d.ts.map +0 -1
  50. package/dist/hooks/useAgentAdapter.d.ts +0 -3
  51. package/dist/hooks/useAgentAdapter.d.ts.map +0 -1
  52. package/dist/hooks/useConversationLifecycle.d.ts +0 -16
  53. package/dist/hooks/useConversationLifecycle.d.ts.map +0 -1
  54. package/dist/hooks/useCopilotSidecar.d.ts +0 -6
  55. package/dist/hooks/useCopilotSidecar.d.ts.map +0 -1
  56. package/dist/hooks/useEventProcessing.d.ts +0 -26
  57. package/dist/hooks/useEventProcessing.d.ts.map +0 -1
  58. package/dist/hooks/useToolExecution.d.ts +0 -11
  59. package/dist/hooks/useToolExecution.d.ts.map +0 -1
  60. package/dist/hooks/useTransportSubscription.d.ts +0 -6
  61. package/dist/hooks/useTransportSubscription.d.ts.map +0 -1
  62. package/dist/http-D9LttvKF.mjs +0 -44
  63. package/dist/idl-B6TRFYjl.mjs +0 -947
  64. package/dist/index-61nyxvLt.mjs +0 -138
  65. package/dist/index-9DDv9i4k.mjs +0 -555
  66. package/dist/index-9LzGM3Tf.mjs +0 -101
  67. package/dist/index-B68tiRpB.mjs +0 -342
  68. package/dist/index-BFfuxTl0.mjs +0 -248
  69. package/dist/index-BN1g2LCp.mjs +0 -270
  70. package/dist/index-BZylef8t.mjs +0 -612
  71. package/dist/index-BsJOd3yN.mjs +0 -253
  72. package/dist/index-BvOoeB_X.mjs +0 -310
  73. package/dist/index-C2BPUXNG.mjs +0 -946
  74. package/dist/index-CNSMHaJL.mjs +0 -302
  75. package/dist/index-CWVsn7Ik.mjs +0 -1918
  76. package/dist/index-CYJusi0T.mjs +0 -565
  77. package/dist/index-CYMOKrFz.mjs +0 -157
  78. package/dist/index-Cu_bl2ol.mjs +0 -1307
  79. package/dist/index-Ddm1PyM_.mjs +0 -289
  80. package/dist/index-DfGa1EZ6.mjs +0 -960
  81. package/dist/index-FIfj5vEl.mjs +0 -94
  82. package/dist/index-K8lyX8F9.mjs +0 -76
  83. package/dist/index-TBOAg0OP.mjs +0 -21326
  84. package/dist/index-bxhTUN49.mjs +0 -74
  85. package/dist/index-mqjp_-mu.mjs +0 -59
  86. package/dist/index-snW0nLB3.mjs +0 -136
  87. package/dist/index.d.ts +0 -20
  88. package/dist/index.d.ts.map +0 -1
  89. package/dist/javascript-DOuB9oqA.mjs +0 -691
  90. package/dist/julia-DpvXAuO6.mjs +0 -241
  91. package/dist/layout/attachSidecarLayout.d.ts +0 -4
  92. package/dist/layout/attachSidecarLayout.d.ts.map +0 -1
  93. package/dist/layout/index.d.ts +0 -2
  94. package/dist/layout/index.d.ts.map +0 -1
  95. package/dist/layout/sidecarDom.d.ts +0 -10
  96. package/dist/layout/sidecarDom.d.ts.map +0 -1
  97. package/dist/layout/sidecarMediaQuery.d.ts +0 -3
  98. package/dist/layout/sidecarMediaQuery.d.ts.map +0 -1
  99. package/dist/layout/sidecarState.d.ts +0 -29
  100. package/dist/layout/sidecarState.d.ts.map +0 -1
  101. package/dist/layout/sidecarTypes.d.ts +0 -14
  102. package/dist/layout/sidecarTypes.d.ts.map +0 -1
  103. package/dist/livescript-CanGTf8u.mjs +0 -272
  104. package/dist/lua-XplVlWi_.mjs +0 -217
  105. package/dist/mathematica-jaRHnSxC.mjs +0 -35
  106. package/dist/mbox-BctzC1hL.mjs +0 -76
  107. package/dist/mirc-CFBPAOaF.mjs +0 -72
  108. package/dist/mllike-BSnXJBGA.mjs +0 -272
  109. package/dist/modelica-vUgVs--1.mjs +0 -93
  110. package/dist/mscgen-Cpl0NYLN.mjs +0 -104
  111. package/dist/mumps-CQoS1kWX.mjs +0 -25
  112. package/dist/nginx-zDPm3Z74.mjs +0 -89
  113. package/dist/nsis-DYWPgAyk.mjs +0 -62
  114. package/dist/ntriples-CsNjv2QF.mjs +0 -79
  115. package/dist/octave-C8PmmSRH.mjs +0 -143
  116. package/dist/oz-Ce8aN8oE.mjs +0 -151
  117. package/dist/pascal-De0D6mP7.mjs +0 -77
  118. package/dist/perl-B4bSCe1C.mjs +0 -915
  119. package/dist/pig-D24Z8EXi.mjs +0 -54
  120. package/dist/powershell-DkYVfTzP.mjs +0 -249
  121. package/dist/properties-Dn9wna3M.mjs +0 -26
  122. package/dist/protobuf-BPIjwpzm.mjs +0 -49
  123. package/dist/pug-Bz8aeT0D.mjs +0 -248
  124. package/dist/puppet-nyd4dhjf.mjs +0 -45
  125. package/dist/python-BkR3uSy8.mjs +0 -313
  126. package/dist/q-DyHZGnqm.mjs +0 -86
  127. package/dist/r-LKEuhEGI.mjs +0 -104
  128. package/dist/registry/index.d.ts +0 -2
  129. package/dist/registry/index.d.ts.map +0 -1
  130. package/dist/registry/toolDefinitions.d.ts +0 -10
  131. package/dist/registry/toolDefinitions.d.ts.map +0 -1
  132. package/dist/registry/toolRegistry.d.ts +0 -29
  133. package/dist/registry/toolRegistry.d.ts.map +0 -1
  134. package/dist/rpm-IznJm2Xc.mjs +0 -57
  135. package/dist/ruby-CcYfvIk6.mjs +0 -228
  136. package/dist/sas-7E8yHoCW.mjs +0 -105
  137. package/dist/scheme-DjibxsNh.mjs +0 -124
  138. package/dist/shell-C0C2sNA_.mjs +0 -182
  139. package/dist/sidecar-api.d.ts +0 -5
  140. package/dist/sidecar-api.d.ts.map +0 -1
  141. package/dist/sieve-Bwz7vjP5.mjs +0 -72
  142. package/dist/simple-mode-mNVtnu0l.mjs +0 -89
  143. package/dist/smalltalk-Bhddl2pB.mjs +0 -48
  144. package/dist/solr-BNlsLglM.mjs +0 -41
  145. package/dist/sparql-FarWu_Gb.mjs +0 -197
  146. package/dist/spreadsheet-C-cy4P5N.mjs +0 -49
  147. package/dist/sql-CfG5lQ3l.mjs +0 -282
  148. package/dist/stex-Du4h4KAU.mjs +0 -129
  149. package/dist/store/agentStore.d.ts +0 -27
  150. package/dist/store/agentStore.d.ts.map +0 -1
  151. package/dist/store/agentStoreEventProcessor.d.ts +0 -21
  152. package/dist/store/agentStoreEventProcessor.d.ts.map +0 -1
  153. package/dist/store/chatStore.d.ts +0 -36
  154. package/dist/store/chatStore.d.ts.map +0 -1
  155. package/dist/store/historyStore.d.ts +0 -25
  156. package/dist/store/historyStore.d.ts.map +0 -1
  157. package/dist/store/index.d.ts +0 -5
  158. package/dist/store/index.d.ts.map +0 -1
  159. package/dist/store/sidecarStore.d.ts +0 -9
  160. package/dist/store/sidecarStore.d.ts.map +0 -1
  161. package/dist/styles/ensureSidecarStyles.d.ts +0 -2
  162. package/dist/styles/ensureSidecarStyles.d.ts.map +0 -1
  163. package/dist/stylus-CAdqWld3.mjs +0 -250
  164. package/dist/swift-DSxqR9R6.mjs +0 -230
  165. package/dist/sync-ottB0RsS.mjs +0 -1251
  166. package/dist/table-runtime-eW_FiMnH.mjs +0 -3606
  167. package/dist/tcl-xfoLljhY.mjs +0 -81
  168. package/dist/test-setup.d.ts +0 -1
  169. package/dist/test-setup.d.ts.map +0 -1
  170. package/dist/textile-D1AWE-pc.mjs +0 -295
  171. package/dist/tiddlywiki-5wqsXtSk.mjs +0 -155
  172. package/dist/tiki-__Kn3CeS.mjs +0 -181
  173. package/dist/toml-DWAmxCjl.mjs +0 -58
  174. package/dist/tools/kapaAi/KapaSearchBridge.d.ts +0 -7
  175. package/dist/tools/kapaAi/KapaSearchBridge.d.ts.map +0 -1
  176. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts +0 -35
  177. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts.map +0 -1
  178. package/dist/tools/kapaAi/kapaSearchTool.d.ts +0 -24
  179. package/dist/tools/kapaAi/kapaSearchTool.d.ts.map +0 -1
  180. package/dist/troff-D2UO-fKf.mjs +0 -35
  181. package/dist/ttcn-Bsa4sfRm.mjs +0 -123
  182. package/dist/ttcn-cfg-Bac_acMi.mjs +0 -88
  183. package/dist/turtle-xwJUxoPV.mjs +0 -80
  184. package/dist/types/agentTypes.d.ts +0 -11
  185. package/dist/types/agentTypes.d.ts.map +0 -1
  186. package/dist/types/chatTypes.d.ts +0 -45
  187. package/dist/types/chatTypes.d.ts.map +0 -1
  188. package/dist/types/eventTypes.d.ts +0 -28
  189. package/dist/types/eventTypes.d.ts.map +0 -1
  190. package/dist/types/historyTypes.d.ts +0 -34
  191. package/dist/types/historyTypes.d.ts.map +0 -1
  192. package/dist/types/index.d.ts +0 -5
  193. package/dist/types/index.d.ts.map +0 -1
  194. package/dist/types/toolTypes.d.ts +0 -51
  195. package/dist/types/toolTypes.d.ts.map +0 -1
  196. package/dist/types/transportTypes.d.ts +0 -49
  197. package/dist/types/transportTypes.d.ts.map +0 -1
  198. package/dist/utils/eventHandlers.d.ts +0 -34
  199. package/dist/utils/eventHandlers.d.ts.map +0 -1
  200. package/dist/utils/eventPredicates.d.ts +0 -10
  201. package/dist/utils/eventPredicates.d.ts.map +0 -1
  202. package/dist/utils/index.d.ts +0 -7
  203. package/dist/utils/index.d.ts.map +0 -1
  204. package/dist/utils/mapConversationMessages.d.ts +0 -12
  205. package/dist/utils/mapConversationMessages.d.ts.map +0 -1
  206. package/dist/utils/parseToolArguments.d.ts +0 -6
  207. package/dist/utils/parseToolArguments.d.ts.map +0 -1
  208. package/dist/utils/statusLabels.d.ts +0 -3
  209. package/dist/utils/statusLabels.d.ts.map +0 -1
  210. package/dist/utils/thinkingBlockUtils.d.ts +0 -18
  211. package/dist/utils/thinkingBlockUtils.d.ts.map +0 -1
  212. package/dist/utils/toolResultFormatter.d.ts +0 -6
  213. package/dist/utils/toolResultFormatter.d.ts.map +0 -1
  214. package/dist/vb-c2kQGd6-.mjs +0 -74
  215. package/dist/vbscript-1f_Dhg5H.mjs +0 -324
  216. package/dist/velocity-DJd0pTTC.mjs +0 -96
  217. package/dist/verilog-CiS1jyi5.mjs +0 -262
  218. package/dist/vhdl-T9HkrbI2.mjs +0 -106
  219. package/dist/webidl-CjfDENEo.mjs +0 -155
  220. package/dist/xquery-Ct6lEb4B.mjs +0 -422
  221. package/dist/yacas-C0absKBh.mjs +0 -73
  222. package/dist/z80-Pki2zAjW.mjs +0 -61
@@ -1,253 +0,0 @@
1
- import { E as u, a as x, p, e as h, L as y, s as X, t as n, i as b, h as Z, f as j } from "./codemirror-runtime-DN57DLqx.mjs";
2
- import { html as G } from "./index-C2BPUXNG.mjs";
3
- import { L as W, E as c } from "./index-Cu_bl2ol.mjs";
4
- import { t as V } from "./index-TBOAg0OP.mjs";
5
- const S = 1, w = 2, k = 3, _ = 180, R = 4, z = 181, v = 5, E = 182, U = 6;
6
- function D(O) {
7
- return O >= 65 && O <= 90 || O >= 97 && O <= 122;
8
- }
9
- const F = /* @__PURE__ */ new c((O) => {
10
- let a = O.pos;
11
- for (; ; ) {
12
- let { next: e } = O;
13
- if (e < 0)
14
- break;
15
- if (e == 123) {
16
- let r = O.peek(1);
17
- if (r == 123) {
18
- if (O.pos > a)
19
- break;
20
- O.acceptToken(S, 2);
21
- return;
22
- } else if (r == 37) {
23
- if (O.pos > a)
24
- break;
25
- let $ = 2, i = 2;
26
- for (; ; ) {
27
- let Q = O.peek($);
28
- if (Q == 32 || Q == 10)
29
- ++$;
30
- else if (Q == 35)
31
- for (++$; ; ) {
32
- let t = O.peek($);
33
- if (t < 0 || t == 10)
34
- break;
35
- $++;
36
- }
37
- else if (Q == 45 && i == 2)
38
- i = ++$;
39
- else {
40
- let t = Q == 101 && O.peek($ + 1) == 110 && O.peek($ + 2) == 100;
41
- O.acceptToken(t ? k : w, i);
42
- return;
43
- }
44
- }
45
- }
46
- }
47
- if (O.advance(), e == 10)
48
- break;
49
- }
50
- O.pos > a && O.acceptToken(_);
51
- });
52
- function f(O, a, e) {
53
- return new c((r) => {
54
- let $ = r.pos;
55
- for (; ; ) {
56
- let { next: i } = r;
57
- if (i == 123 && r.peek(1) == 37) {
58
- let Q = 2;
59
- for (; ; Q++) {
60
- let o = r.peek(Q);
61
- if (o != 32 && o != 10)
62
- break;
63
- }
64
- let t = "";
65
- for (; ; Q++) {
66
- let o = r.peek(Q);
67
- if (!D(o))
68
- break;
69
- t += String.fromCharCode(o);
70
- }
71
- if (t == O) {
72
- if (r.pos > $)
73
- break;
74
- r.acceptToken(e, 2);
75
- break;
76
- }
77
- } else if (i < 0)
78
- break;
79
- if (r.advance(), i == 10)
80
- break;
81
- }
82
- r.pos > $ && r.acceptToken(a);
83
- });
84
- }
85
- const C = /* @__PURE__ */ f("endcomment", E, v), N = /* @__PURE__ */ f("endraw", z, R), Y = /* @__PURE__ */ new c((O) => {
86
- if (O.next == 35) {
87
- for (O.advance(); !(O.next == 10 || O.next < 0 || (O.next == 37 || O.next == 125) && O.peek(1) == 125); )
88
- O.advance();
89
- O.acceptToken(U);
90
- }
91
- }), I = { __proto__: null, contains: 34, or: 38, and: 38, true: 52, false: 52, empty: 54, forloop: 56, tablerowloop: 58, continue: 60, in: 130, with: 196, for: 198, as: 200, if: 236, endif: 240, unless: 246, endunless: 250, elsif: 254, else: 258, case: 264, endcase: 268, when: 272, endfor: 280, tablerow: 286, endtablerow: 290, break: 294, cycle: 300, echo: 304, render: 308, include: 312, assign: 316, capture: 322, endcapture: 326, increment: 330, decrement: 334 }, L = { __proto__: null, if: 86, endif: 90, elsif: 94, else: 98, unless: 104, endunless: 108, case: 114, endcase: 118, when: 122, for: 128, endfor: 138, tablerow: 144, endtablerow: 148, break: 152, continue: 156, cycle: 160, comment: 166, endcomment: 172, raw: 178, endraw: 184, echo: 188, render: 192, include: 204, assign: 208, capture: 214, endcapture: 218, increment: 222, decrement: 226, liquid: 230 }, A = /* @__PURE__ */ W.deserialize({
92
- version: 14,
93
- states: "HOQYOPOOOOOP'#F{'#F{OeOaO'#CdOsQhO'#CfO!bQxO'#DSO#{OPO'#DVO$ZOPO'#D`O$iOPO'#DeO$wOPO'#DlO%VOPO'#DtO%eOSO'#EPO%jOQO'#EVO%oOPO'#EiOOOP'#Gb'#GbOOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQW'#Cg'#CgO&cQ!jO,59QO&jQ!jO'#G^OsQhO'#CtOOQW'#G^'#G^OOOP,59n,59nO)YQhO,59nOsQhO,59rOsQhO,59vO)dQhO,59xOsQhO,59{OsQhO,5:QOsQhO,5:UO!]QhO,5:XO!]QhO,5:aO)iQhO,5:eO)nQhO,5:gO)sQhO,5:iO)xQhO,5:lO)}QhO,5:rOsQhO,5:wOsQhO,5:yOsQhO,5;POsQhO,5;ROsQhO,5;UOsQhO,5;YOsQhO,5;[O+^QhO,5;^O+eOPO'#CdOOOP,59q,59qO#{OPO,59qO+sQxO'#DYOOOP,59z,59zO$ZOPO,59zO+xQxO'#DcOOOP,5:P,5:PO$iOPO,5:PO+}QxO'#DhOOOP,5:W,5:WO$wOPO,5:WO,SQxO'#DrOOOP,5:`,5:`O%VOPO,5:`O,XQxO'#DwOOOS'#GQ'#GQO,^OSO'#ESO,fOSO,5:kOOOQ'#GR'#GRO,kOQO'#EYO,sOQO,5:qOOOP,5;T,5;TO%oOPO,5;TO,xQxO'#ElOOOP-E9x-E9xO,}Q#|O,59SOsQhO,59VOsQhO,59WOsQhO,59WO-SQhO'#C}OOQW'#F|'#F|O-XQhO1G.lOOOP1G.l1G.lOsQh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Q%Y#_R&h%Zm#`}#^#_#`#a#b#c#f%W%Z%^%a%d%gQ%]#`R&i%^m#a}#^#_#`#a#b#c#f%W%Z%^%a%d%gQ%`#aR&j%am#b}#^#_#`#a#b#c#f%W%Z%^%a%d%gQ%c#bR&k%dm#c}#^#_#`#a#b#c#f%W%Z%^%a%d%gQ%f#cR&l%gQ`OQ!QTQ!TUQ!WVQ!ZWQ!^XQ!g[_!i`!Q!T!W!Z!^!gSQO`SaQ!Oi!OTUVWX[!Q!T!W!Z!^!gQ!pcQ!vh^$d!p!v$i$x%Q&r&uQ$i!uQ$x#VQ%Q#YQ&r%sR&u%vQ$p!}U&X$p&m'ZQ&m%oR'Z&xQ&}&ZQ'P&[W']&}'P'c'dQ'c'VR'd'WQ$u#SW&^$u&p'R'eQ&p%rQ'R&`R'e'XQ!aYR$U!aQ!dZR$X!dQ$|#WR&c$|Q#f}Q%W#^Q%Z#_Q%^#`Q%a#aQ%d#bQ%g#c_%i#f%W%Z%^%a%d%gQ&t%tR'Y&tm_OTUVWX[`!Q!T!W!Z!^!gQcRQ!teQ!uhQ!xiQ!yjQ!{lQ!|mQ!}nQ#VvQ#WwQ#XxQ#YyQ#ZzQ#[{Q#]|Q$_!kQ$`!lQ$a!mQ$f!rQ$g!sQ%k#gQ%l#hQ%m#iQ%n#kQ%o#lQ%s#rQ%t#sQ%u#tQ%v#uQ%w#vQ%x#wQ%y#xQ&U$hQ&W$oQ&Z$rQ&[$sQ&e$}Q&x&TQ'V&nQ'W&oQ'a'TR'f'[m#e}#^#_#`#a#b#c#f%W%Z%^%a%d%g",
96
- nodeNames: "⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName SubscriptExpression BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
97
- maxTerm: 191,
98
- nodeProps: [
99
- ["closedBy", 1, "}}", -4, 2, 3, 4, 5, "%}", 23, ")"],
100
- ["openedBy", 9, "{{", 22, "(", 40, "{%"],
101
- ["group", -13, 11, 12, 15, 16, 20, 24, 26, 27, 28, 29, 30, 31, 32, "Expression"]
102
- ],
103
- skippedNodes: [0, 6],
104
- repeatNodeCount: 11,
105
- tokenData: ")e~RmXY!|YZ!|]^!|pq!|qr#_rs#juv$[wx$gxy%Syz%X{|%^|}&x}!O&}!O!P'Z!Q![&g![!]'k!^!_'p!_!`'x!`!a'p!c!}(Q!}#O(y#P#Q)O#R#S(Q#T#o(Q#p#q)T#q#r)Y%W;'S(Q;'S;:j(s<%lO(Q~#RS%O~XY!|YZ!|]^!|pq!|~#bP!_!`#e~#jOb~~#mUOY#jZr#jrs$Ps;'S#j;'S;=`$U<%lO#j~$UOo~~$XP;=`<%l#j~$_P#q#r$b~$gOx~~$jUOY$gZw$gwx$Px;'S$g;'S;=`$|<%lO$g~%PP;=`<%l$g~%XOg~~%^Of~P%aQ!O!P%g!Q![&gP%jP!Q![%mP%rRpP!Q![%m!g!h%{#X#Y%{P&OR{|&X}!O&X!Q![&_P&[P!Q![&_P&dPpP!Q![&_P&lSpP!O!P%g!Q![&g!g!h%{#X#Y%{~&}Ou~~'QRuv$[!O!P%g!Q![&g~'`Q]S!O!P'f!Q![%m~'kOi~~'pOt~~'uPb~!_!`#e~'}Pe~!_!`#e_(ZW^WwQ%RT}!O(Q!Q![(Q!c!}(Q#R#S(Q#T#o(Q%W;'S(Q;'S;:j(s<%lO(Q_(vP;=`<%l(Q~)OO%T~~)TO%S~~)YOr~~)]P#q#r)`~)eOX~",
106
- tokenizers: [F, N, C, Y, 0, 1, 2, 3],
107
- topRules: { Template: [0, 7] },
108
- specialized: [{ term: 187, get: (O) => I[O] || -1 }, { term: 39, get: (O) => L[O] || -1 }],
109
- tokenPrec: 0
110
- });
111
- function l(O, a) {
112
- return O.split(" ").map((e) => ({ label: e, type: a }));
113
- }
114
- const q = /* @__PURE__ */ l("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where", "function"), m = /* @__PURE__ */ l("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include", "keyword"), T = /* @__PURE__ */ l("empty forloop tablerowloop in with as", "keyword"), B = /* @__PURE__ */ l("first index index0 last length rindex", "property"), H = /* @__PURE__ */ l("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
115
- function M(O) {
116
- var a;
117
- let { state: e, pos: r } = O, $ = h(e).resolveInner(r, -1).enterUnfinishedNodesBefore(r), i = ((a = $.childBefore(r)) === null || a === void 0 ? void 0 : a.name) || $.name;
118
- if ($.name == "FilterName")
119
- return { type: "filter", node: $ };
120
- if (O.explicit && i == "|")
121
- return { type: "filter" };
122
- if ($.name == "TagName")
123
- return { type: "tag", node: $ };
124
- if (O.explicit && i == "{%")
125
- return { type: "tag" };
126
- if ($.name == "PropertyName" && $.parent.name == "MemberExpression")
127
- return { type: "property", node: $, target: $.parent };
128
- if ($.name == "." && $.parent.name == "MemberExpression")
129
- return { type: "property", target: $.parent };
130
- if ($.name == "MemberExpression" && i == ".")
131
- return { type: "property", target: $ };
132
- if ($.name == "VariableName")
133
- return { type: "expression", from: $.from };
134
- let Q = O.matchBefore(/[\w\u00c0-\uffff]+$/);
135
- return Q ? { type: "expression", from: Q.from } : O.explicit && $.name != "CommentText" && $.name != "StringLiteral" && $.name != "NumberLiteral" && $.name != "InlineComment" ? { type: "expression" } : null;
136
- }
137
- function J(O, a, e, r) {
138
- let $ = [];
139
- for (; ; ) {
140
- let i = a.getChild("Expression");
141
- if (!i)
142
- return [];
143
- if (i.name == "forloop")
144
- return $.length ? [] : B;
145
- if (i.name == "tablerowloop")
146
- return $.length ? [] : H;
147
- if (i.name == "VariableName") {
148
- $.unshift(O.sliceDoc(i.from, i.to));
149
- break;
150
- } else if (i.name == "MemberExpression") {
151
- let Q = i.getChild("PropertyName");
152
- Q && $.unshift(O.sliceDoc(Q.from, Q.to)), a = i;
153
- } else
154
- return [];
155
- }
156
- return r ? r($, O, e) : [];
157
- }
158
- function K(O = {}) {
159
- let a = O.filters ? O.filters.concat(q) : q, e = O.tags ? O.tags.concat(m) : m, r = O.variables ? O.variables.concat(T) : T, { properties: $ } = O;
160
- return (i) => {
161
- var Q;
162
- let t = M(i);
163
- if (!t)
164
- return null;
165
- let o = (Q = t.from) !== null && Q !== void 0 ? Q : t.node ? t.node.from : i.pos, s;
166
- return t.type == "filter" ? s = a : t.type == "tag" ? s = e : t.type == "expression" ? s = r : s = J(i.state, t.target, i, $), s.length ? { options: s, from: o, validFor: /^[\w\u00c0-\uffff]*$/ } : null;
167
- };
168
- }
169
- const OO = /* @__PURE__ */ u.inputHandler.of((O, a, e, r) => r != "%" || a != e || O.state.doc.sliceString(a - 1, e + 1) != "{}" ? !1 : (O.dispatch(O.state.changeByRange(($) => ({
170
- changes: { from: $.from, to: $.to, insert: "%%" },
171
- range: V.cursor($.from + 1)
172
- })), {
173
- scrollIntoView: !0,
174
- userEvent: "input.type"
175
- }), !0));
176
- function d(O) {
177
- return (a) => {
178
- let e = O.test(a.textAfter);
179
- return a.lineIndent(a.node.from) + (e ? 0 : a.unit);
180
- };
181
- }
182
- const $O = /* @__PURE__ */ y.define({
183
- name: "liquid",
184
- parser: /* @__PURE__ */ A.configure({
185
- props: [
186
- /* @__PURE__ */ X({
187
- "cycle comment endcomment raw endraw echo increment decrement liquid in with as": n.keyword,
188
- "empty forloop tablerowloop": n.atom,
189
- "if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": n.controlKeyword,
190
- "assign capture endcapture": n.definitionKeyword,
191
- contains: n.operatorKeyword,
192
- "render include": n.moduleKeyword,
193
- VariableName: n.variableName,
194
- TagName: n.tagName,
195
- FilterName: /* @__PURE__ */ n.function(n.variableName),
196
- PropertyName: n.propertyName,
197
- CompareOp: n.compareOperator,
198
- AssignOp: n.definitionOperator,
199
- LogicOp: n.logicOperator,
200
- NumberLiteral: n.number,
201
- StringLiteral: n.string,
202
- BooleanLiteral: n.bool,
203
- InlineComment: n.lineComment,
204
- CommentText: n.blockComment,
205
- "{% %} {{ }}": n.brace,
206
- "[ ]": n.bracket,
207
- "( )": n.paren,
208
- ".": n.derefOperator,
209
- ", .. : |": n.punctuation
210
- }),
211
- /* @__PURE__ */ b.add({
212
- Tag: /* @__PURE__ */ Z({ closing: "%}" }),
213
- "UnlessDirective ForDirective TablerowDirective CaptureDirective": /* @__PURE__ */ d(/^\s*(\{%-?\s*)?end\w/),
214
- IfDirective: /* @__PURE__ */ d(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
215
- CaseDirective: /* @__PURE__ */ d(/^\s*(\{%-?\s*)?(endcase|when)\b/)
216
- }),
217
- /* @__PURE__ */ j.add({
218
- "UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O) {
219
- let a = O.firstChild, e = O.lastChild;
220
- return !a || a.name != "Tag" ? null : { from: a.to, to: e.name == "EndTag" ? e.from : O.to };
221
- }
222
- })
223
- ]
224
- }),
225
- languageData: {
226
- commentTokens: { line: "#" },
227
- indentOnInput: /^\s*{%-?\s*(?:end|elsif|else|when|)$/
228
- }
229
- }), P = /* @__PURE__ */ G();
230
- function g(O) {
231
- return $O.configure({
232
- wrap: p((a) => a.type.isTop ? {
233
- parser: O.parser,
234
- overlay: (e) => e.name == "Text" || e.name == "RawText"
235
- } : null)
236
- }, "liquid");
237
- }
238
- const aO = /* @__PURE__ */ g(P.language);
239
- function QO(O = {}) {
240
- let a = O.base || P, e = a.language == P.language ? aO : g(a.language);
241
- return new x(e, [
242
- a.support,
243
- e.data.of({ autocomplete: K(O) }),
244
- a.language.data.of({ closeBrackets: { brackets: ["{"] } }),
245
- OO
246
- ]);
247
- }
248
- export {
249
- OO as closePercentBrace,
250
- QO as liquid,
251
- K as liquidCompletionSource,
252
- aO as liquidLanguage
253
- };
@@ -1,310 +0,0 @@
1
- import { L as G, E as z, C as N } from "./index-Cu_bl2ol.mjs";
2
- import { s as I, t as p, E as Y, e as k, a as j, L as U, i as Z, f as B, A as D } from "./codemirror-runtime-DN57DLqx.mjs";
3
- import { t as M } from "./index-TBOAg0OP.mjs";
4
- const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
5
- function re(e) {
6
- return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
7
- }
8
- function ne(e) {
9
- return e == 9 || e == 10 || e == 13 || e == 32;
10
- }
11
- let Q = null, V = null, X = 0;
12
- function W(e, t) {
13
- let o = e.pos + t;
14
- if (V == e && X == o) return Q;
15
- for (; ne(e.peek(t)); ) t++;
16
- let O = "";
17
- for (; ; ) {
18
- let r = e.peek(t);
19
- if (!re(r)) break;
20
- O += String.fromCharCode(r), t++;
21
- }
22
- return V = e, X = o, Q = O || null;
23
- }
24
- function _(e, t) {
25
- this.name = e, this.parent = t;
26
- }
27
- const ae = new N({
28
- start: null,
29
- shift(e, t, o, O) {
30
- return t == h ? new _(W(O, 1) || "", e) : e;
31
- },
32
- reduce(e, t) {
33
- return t == Oe && e ? e.parent : e;
34
- },
35
- reuse(e, t, o, O) {
36
- let r = t.type.id;
37
- return r == h || r == oe ? new _(W(O, 1) || "", e) : e;
38
- },
39
- strict: !1
40
- }), le = new z((e, t) => {
41
- if (e.next == 60) {
42
- if (e.advance(), e.next == 47) {
43
- e.advance();
44
- let o = W(e, 0);
45
- if (!o) return e.acceptToken(H);
46
- if (t.context && o == t.context.name) return e.acceptToken(F);
47
- for (let O = t.context; O; O = O.parent) if (O.name == o) return e.acceptToken(L, -2);
48
- e.acceptToken(K);
49
- } else if (e.next != 33 && e.next != 63)
50
- return e.acceptToken(h);
51
- }
52
- }, { contextual: !0 });
53
- function y(e, t) {
54
- return new z((o) => {
55
- let O = 0, r = t.charCodeAt(0);
56
- e: for (; !(o.next < 0); o.advance(), O++)
57
- if (o.next == r) {
58
- for (let a = 1; a < t.length; a++)
59
- if (o.peek(a) != t.charCodeAt(a)) continue e;
60
- break;
61
- }
62
- O && o.acceptToken(e);
63
- });
64
- }
65
- const se = y(J, "-->"), ie = y(ee, "?>"), ce = y(te, "]]>"), me = I({
66
- Text: p.content,
67
- "StartTag StartCloseTag EndTag SelfCloseEndTag": p.angleBracket,
68
- TagName: p.tagName,
69
- "MismatchedCloseTag/TagName": [p.tagName, p.invalid],
70
- AttributeName: p.attributeName,
71
- AttributeValue: p.attributeValue,
72
- Is: p.definitionOperator,
73
- "EntityReference CharacterReference": p.character,
74
- Comment: p.blockComment,
75
- ProcessingInst: p.processingInstruction,
76
- DoctypeDecl: p.documentMeta,
77
- Cdata: p.special(p.string)
78
- }), $e = G.deserialize({
79
- version: 14,
80
- states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP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O!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",
82
- goto: "%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",
83
- nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
84
- maxTerm: 50,
85
- context: ae,
86
- nodeProps: [
87
- ["closedBy", 1, "SelfCloseEndTag EndTag", 13, "CloseTag MissingCloseTag"],
88
- ["openedBy", 12, "StartTag StartCloseTag", 19, "OpenTag", 20, "StartTag"],
89
- ["isolate", -6, 13, 18, 19, 21, 22, 24, ""]
90
- ],
91
- propSources: [me],
92
- skippedNodes: [0],
93
- repeatNodeCount: 9,
94
- tokenData: "!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q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!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",
95
- tokenizers: [le, se, ie, ce, 0, 1, 2, 3, 4],
96
- topRules: { Document: [0, 6] },
97
- tokenPrec: 0
98
- });
99
- function T(e, t) {
100
- let o = t && t.getChild("TagName");
101
- return o ? e.sliceString(o.from, o.to) : "";
102
- }
103
- function P(e, t) {
104
- let o = t && t.firstChild;
105
- return !o || o.name != "OpenTag" ? "" : T(e, o);
106
- }
107
- function Se(e, t, o) {
108
- let O = t && t.getChildren("Attribute").find((a) => a.from <= o && a.to >= o), r = O && O.getChild("AttributeName");
109
- return r ? e.sliceString(r.from, r.to) : "";
110
- }
111
- function C(e) {
112
- for (let t = e && e.parent; t; t = t.parent)
113
- if (t.name == "Element")
114
- return t;
115
- return null;
116
- }
117
- function ge(e, t) {
118
- var o;
119
- let O = k(e).resolveInner(t, -1), r = null;
120
- for (let a = O; !r && a.parent; a = a.parent)
121
- (a.name == "OpenTag" || a.name == "CloseTag" || a.name == "SelfClosingTag" || a.name == "MismatchedCloseTag") && (r = a);
122
- if (r && (r.to > t || r.lastChild.type.isError)) {
123
- let a = r.parent;
124
- if (O.name == "TagName")
125
- return r.name == "CloseTag" || r.name == "MismatchedCloseTag" ? { type: "closeTag", from: O.from, context: a } : { type: "openTag", from: O.from, context: C(a) };
126
- if (O.name == "AttributeName")
127
- return { type: "attrName", from: O.from, context: r };
128
- if (O.name == "AttributeValue")
129
- return { type: "attrValue", from: O.from, context: r };
130
- let s = O == r || O.name == "Attribute" ? O.childBefore(t) : O;
131
- return s?.name == "StartTag" ? { type: "openTag", from: t, context: C(a) } : s?.name == "StartCloseTag" && s.to <= t ? { type: "closeTag", from: t, context: a } : s?.name == "Is" ? { type: "attrValue", from: t, context: r } : s ? { type: "attrName", from: t, context: r } : null;
132
- } else if (O.name == "StartCloseTag")
133
- return { type: "closeTag", from: t, context: O.parent };
134
- for (; O.parent && O.to == t && !(!((o = O.lastChild) === null || o === void 0) && o.type.isError); )
135
- O = O.parent;
136
- return O.name == "Element" || O.name == "Text" || O.name == "Document" ? { type: "tag", from: t, context: O.name == "Element" ? O : C(O) } : null;
137
- }
138
- class ue {
139
- constructor(t, o, O) {
140
- this.attrs = o, this.attrValues = O, this.children = [], this.name = t.name, this.completion = Object.assign(Object.assign({ type: "type" }, t.completion || {}), { label: this.name }), this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name }), this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 }), this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" }), this.text = t.textContent ? t.textContent.map((r) => ({ label: r, type: "text" })) : [];
141
- }
142
- }
143
- const b = /^[:\-\.\w\u00b7-\uffff]*$/;
144
- function E(e) {
145
- return Object.assign(Object.assign({ type: "property" }, e.completion || {}), { label: e.name });
146
- }
147
- function R(e) {
148
- return typeof e == "string" ? { label: `"${e}"`, type: "constant" } : /^"/.test(e.label) ? e : Object.assign(Object.assign({}, e), { label: `"${e.label}"` });
149
- }
150
- function pe(e, t) {
151
- let o = [], O = [], r = /* @__PURE__ */ Object.create(null);
152
- for (let n of t) {
153
- let $ = E(n);
154
- o.push($), n.global && O.push($), n.values && (r[n.name] = n.values.map(R));
155
- }
156
- let a = [], s = [], f = /* @__PURE__ */ Object.create(null);
157
- for (let n of e) {
158
- let $ = O, c = r;
159
- n.attributes && ($ = $.concat(n.attributes.map((l) => typeof l == "string" ? o.find((d) => d.label == l) || { label: l, type: "property" } : (l.values && (c == r && (c = Object.create(c)), c[l.name] = l.values.map(R)), E(l)))));
160
- let u = new ue(n, $, c);
161
- f[u.name] = u, a.push(u), n.top && s.push(u);
162
- }
163
- s.length || (s = a);
164
- for (let n = 0; n < a.length; n++) {
165
- let $ = e[n], c = a[n];
166
- if ($.children)
167
- for (let u of $.children)
168
- f[u] && c.children.push(f[u]);
169
- else
170
- c.children = a;
171
- }
172
- return (n) => {
173
- var $;
174
- let { doc: c } = n.state, u = ge(n.state, n.pos);
175
- if (!u || u.type == "tag" && !n.explicit)
176
- return null;
177
- let { type: l, from: d, context: S } = u;
178
- if (l == "openTag") {
179
- let i = s, m = P(c, S);
180
- if (m) {
181
- let g = f[m];
182
- i = g?.children || a;
183
- }
184
- return {
185
- from: d,
186
- options: i.map((g) => g.completion),
187
- validFor: b
188
- };
189
- } else if (l == "closeTag") {
190
- let i = P(c, S);
191
- return i ? {
192
- from: d,
193
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == ">" ? 1 : 0),
194
- options: [(($ = f[i]) === null || $ === void 0 ? void 0 : $.closeNameCompletion) || { label: i + ">", type: "type" }],
195
- validFor: b
196
- } : null;
197
- } else if (l == "attrName") {
198
- let i = f[T(c, S)];
199
- return {
200
- from: d,
201
- options: i?.attrs || O,
202
- validFor: b
203
- };
204
- } else if (l == "attrValue") {
205
- let i = Se(c, S, d);
206
- if (!i)
207
- return null;
208
- let m = f[T(c, S)], g = (m?.attrValues || r)[i];
209
- return !g || !g.length ? null : {
210
- from: d,
211
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == '"' ? 1 : 0),
212
- options: g,
213
- validFor: /^"[^"]*"?$/
214
- };
215
- } else if (l == "tag") {
216
- let i = P(c, S), m = f[i], g = [], q = S && S.lastChild;
217
- i && (!q || q.name != "CloseTag" || T(c, q) != i) && g.push(m ? m.closeCompletion : { label: "</" + i + ">", type: "type", boost: 2 });
218
- let v = g.concat((m?.children || (S ? a : s)).map((x) => x.openCompletion));
219
- if (S && m?.text.length) {
220
- let x = S.firstChild;
221
- x.to > n.pos - 20 && !/\S/.test(n.state.sliceDoc(x.to, n.pos)) && (v = v.concat(m.text));
222
- }
223
- return {
224
- from: d,
225
- options: v,
226
- validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
227
- };
228
- } else
229
- return null;
230
- };
231
- }
232
- const w = /* @__PURE__ */ U.define({
233
- name: "xml",
234
- parser: /* @__PURE__ */ $e.configure({
235
- props: [
236
- /* @__PURE__ */ Z.add({
237
- Element(e) {
238
- let t = /^\s*<\//.test(e.textAfter);
239
- return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
240
- },
241
- "OpenTag CloseTag SelfClosingTag"(e) {
242
- return e.column(e.node.from) + e.unit;
243
- }
244
- }),
245
- /* @__PURE__ */ B.add({
246
- Element(e) {
247
- let t = e.firstChild, o = e.lastChild;
248
- return !t || t.name != "OpenTag" ? null : { from: t.to, to: o.name == "CloseTag" ? o.from : e.to };
249
- }
250
- }),
251
- /* @__PURE__ */ D.add({
252
- "OpenTag CloseTag": (e) => e.getChild("TagName")
253
- })
254
- ]
255
- }),
256
- languageData: {
257
- commentTokens: { block: { open: "<!--", close: "-->" } },
258
- indentOnInput: /^\s*<\/$/
259
- }
260
- });
261
- function Te(e = {}) {
262
- let t = [w.data.of({
263
- autocomplete: pe(e.elements || [], e.attributes || [])
264
- })];
265
- return e.autoCloseTags !== !1 && t.push(fe), new j(w, t);
266
- }
267
- function A(e, t, o = e.length) {
268
- if (!t)
269
- return "";
270
- let O = t.firstChild, r = O && O.getChild("TagName");
271
- return r ? e.sliceString(r.from, Math.min(r.to, o)) : "";
272
- }
273
- const fe = /* @__PURE__ */ Y.inputHandler.of((e, t, o, O, r) => {
274
- if (e.composing || e.state.readOnly || t != o || O != ">" && O != "/" || !w.isActiveAt(e.state, t, -1))
275
- return !1;
276
- let a = r(), { state: s } = a, f = s.changeByRange((n) => {
277
- var $, c, u;
278
- let { head: l } = n, d = s.doc.sliceString(l - 1, l) == O, S = k(s).resolveInner(l, -1), i;
279
- if (d && O == ">" && S.name == "EndTag") {
280
- let m = S.parent;
281
- if (((c = ($ = m.parent) === null || $ === void 0 ? void 0 : $.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (i = A(s.doc, m.parent, l))) {
282
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `</${i}>`;
283
- return { range: n, changes: { from: l, to: g, insert: q } };
284
- }
285
- } else if (d && O == "/" && S.name == "StartCloseTag") {
286
- let m = S.parent;
287
- if (S.from == l - 2 && ((u = m.lastChild) === null || u === void 0 ? void 0 : u.name) != "CloseTag" && (i = A(s.doc, m, l))) {
288
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `${i}>`;
289
- return {
290
- range: M.cursor(l + q.length, -1),
291
- changes: { from: l, to: g, insert: q }
292
- };
293
- }
294
- }
295
- return { range: n };
296
- });
297
- return f.changes.empty ? !1 : (e.dispatch([
298
- a,
299
- s.update(f, {
300
- userEvent: "input.complete",
301
- scrollIntoView: !0
302
- })
303
- ]), !0);
304
- });
305
- export {
306
- fe as autoCloseTags,
307
- pe as completeFromSchema,
308
- Te as xml,
309
- w as xmlLanguage
310
- };