@milkdown/crepe 7.3.5 → 7.3.6
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.
- package/lib/core/crepe.d.ts +1 -1
- package/lib/core/crepe.d.ts.map +1 -1
- package/lib/{index-YjIgdsm-.js → index-BSv6537G.js} +3 -3
- package/lib/{index-brbFUWoa.js → index-BoI246Ti.js} +3 -3
- package/lib/{index-f8O1bHwz.js → index-DDSXiQ90.js} +4 -4
- package/lib/{index-4p4g7ekJ.js → index-ECCvmC6D.js} +12 -6
- package/lib/{index-zY_Ffd-9.js → index-EI1FcaSv.js} +4 -4
- package/lib/{index-4uesIuIi.js → index-ESoQGvsE.js} +8 -8
- package/lib/{index-C17brGmy.js → index-GOH7H2i9.js} +4 -4
- package/lib/{index-IKzcztdD.js → index-GjFRg3RJ.js} +1 -1
- package/lib/index-GzVCh3P9.js +353 -0
- package/lib/{index-cAviWcah.js → index-KCykNSJx.js} +7 -7
- package/lib/{index-S3dtETwZ.js → index-Ls2I7eOW.js} +26 -16
- package/lib/{index-iHi9E5fI.js → index-P4-KqpEN.js} +5 -5
- package/lib/{index-sAnPFt21.js → index-Qcks_HSE.js} +6 -6
- package/lib/{index-1KQHo-44.js → index-RKThEh9x.js} +4 -4
- package/lib/{index-iECr6hjv.js → index-UqF8o9eD.js} +3246 -3092
- package/lib/{index-gRh597MD.js → index-_VrGF4z-.js} +1 -1
- package/lib/{index-K_kBonEs.js → index-cteyPSwp.js} +1 -1
- package/lib/{index-f_vMXWyc.js → index-f0pbmfJP.js} +4 -4
- package/lib/{index-WpINpUas.js → index-gMYRN2wV.js} +7 -7
- package/lib/{index-P2HixfB4.js → index-jZuF1Iix.js} +4 -4
- package/lib/{index-T6CCBIrO.js → index-kyD7hUif.js} +5 -5
- package/lib/{index-UdINtlLB.js → index-oszOFbwW.js} +5 -5
- package/lib/{index-EhPVaWMa.js → index-pC1MPpe2.js} +31 -31
- package/lib/{index-Mwqn_gij.js → index-q3iu4cef.js} +7 -7
- package/lib/{index-KDuMRRPt.js → index-qMeqmZtK.js} +4 -4
- package/lib/index-rs4SJ8Gd.js +253 -0
- package/lib/{index-ZyvuYqIf.js → index-w-CiezW1.js} +3 -3
- package/lib/{index-gaQ0Jeve.js → index-x6C6leag.js} +4 -4
- package/lib/{index-51ybuhXd.js → index-xa7wUurf.js} +1 -1
- package/lib/{index-PwfWCMtB.js → index-xjkoF_Bn.js} +1 -1
- package/lib/{index-wD9meLYq.js → index-yrfirMbY.js} +4 -4
- package/lib/{index-96I5UgEh.js → index-zNGl_CdN.js} +1 -1
- package/lib/{index-hcG6NuOF.js → index-zc51oyS8.js} +2 -2
- package/lib/index.es.js +1 -1
- package/lib/{schema-PTbL6iMu.js → schema-ywm7RaKF.js} +1 -1
- package/lib/{tippy.esm-lHdsQkl8.js → tippy.esm-4ny8MQOF.js} +1 -1
- package/lib/{tooltip-plugin-Pjm6nx6a.js → tooltip-plugin-NpyG8C5u.js} +2 -2
- package/package.json +14 -14
- package/src/core/crepe.ts +1 -0
- package/lib/yaml-DnNTfjXK.js +0 -53
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as i, y as s, i as a, P as d, A as u, D as p, x as f } from "./index-
|
|
1
|
+
import { $ as i, y as s, i as a, P as d, A as u, D as p, x as f } from "./index-Ls2I7eOW.js";
|
|
2
2
|
import { i as h, a as g } from "./index-xHADmDT3.js";
|
|
3
3
|
const m = ".milkdown .crepe-placeholder:before{position:absolute;color:color-mix(in srgb,var(--crepe-color-on-background),transparent 60%);pointer-events:none;height:0;content:attr(data-placeholder)}";
|
|
4
4
|
function y(o) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { L as o, b as r, h as O, f as t, j as n, s as a, a as s, t as e } from "./index-
|
|
2
|
-
import { L as i } from "./index-
|
|
1
|
+
import { L as o, b as r, h as O, f as t, j as n, s as a, a as s, t as e } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { L as i } from "./index-ECCvmC6D.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Ls2I7eOW.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-cteyPSwp.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const Q = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 }, $ = /* @__PURE__ */ i.deserialize({
|
|
10
10
|
version: 14,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { L as P, a as q, s as g, t as r, p as l } from "./index-
|
|
2
|
-
import { html as c } from "./index-
|
|
3
|
-
import { javascriptLanguage as s } from "./index-
|
|
4
|
-
import { L as m, E as p } from "./index-
|
|
1
|
+
import { L as P, a as q, s as g, t as r, p as l } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { html as c } from "./index-Qcks_HSE.js";
|
|
3
|
+
import { javascriptLanguage as s } from "./index-DDSXiQ90.js";
|
|
4
|
+
import { L as m, E as p } from "./index-ECCvmC6D.js";
|
|
5
5
|
import "./meta-tAGyVRPE.js";
|
|
6
6
|
import "./icons-HYkfuR-O.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-Ls2I7eOW.js";
|
|
8
8
|
import "./hooks-82sqkbtE.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-cteyPSwp.js";
|
|
10
10
|
import "./clsx-7d8NmkQq.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-EI1FcaSv.js";
|
|
12
12
|
const R = 1, b = 33, $ = 34, v = 35, x = 36, W = /* @__PURE__ */ new p((O) => {
|
|
13
13
|
let t = O.pos;
|
|
14
14
|
for (; ; ) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as Y, L as S } from "./index-
|
|
2
|
-
import { s as l, t as Q, L as o, b as n, d as i, g as s, h as W, f as c, j as f, a as x } from "./index-
|
|
1
|
+
import { E as Y, L as S } from "./index-ECCvmC6D.js";
|
|
2
|
+
import { s as l, t as Q, L as o, b as n, d as i, g as s, h as W, f as c, j as f, a as x } from "./index-UqF8o9eD.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Ls2I7eOW.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-cteyPSwp.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const r = 1, Z = 2, V = 3, u = 82, p = 76, w = 117, q = 85, T = 97, y = 122, z = 65, b = 90, j = 95, a = 48, P = 34, v = 40, U = 41, d = 32, t = 62, _ = new Y((O) => {
|
|
10
10
|
if (O.next == p || O.next == q ? O.advance() : O.next == w && (O.advance(), O.next == a + 8 && O.advance()), O.next != u || (O.advance(), O.next != P))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { L as t, b as i, d as n, f as $, j as y, a as m, s as P, t as O } from "./index-
|
|
2
|
-
import { defineCSSCompletionSource as X } from "./index-
|
|
3
|
-
import { L as c, E as S } from "./index-
|
|
1
|
+
import { L as t, b as i, d as n, f as $, j as y, a as m, s as P, t as O } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { defineCSSCompletionSource as X } from "./index-EI1FcaSv.js";
|
|
3
|
+
import { L as c, E as S } from "./index-ECCvmC6D.js";
|
|
4
4
|
import "./meta-tAGyVRPE.js";
|
|
5
5
|
import "./icons-HYkfuR-O.js";
|
|
6
|
-
import "./index-
|
|
6
|
+
import "./index-Ls2I7eOW.js";
|
|
7
7
|
import "./hooks-82sqkbtE.js";
|
|
8
|
-
import "./index-
|
|
8
|
+
import "./index-cteyPSwp.js";
|
|
9
9
|
import "./clsx-7d8NmkQq.js";
|
|
10
10
|
const f = 110, l = 1, s = 2, r = [
|
|
11
11
|
9,
|
|
@@ -8,12 +8,12 @@ var l = (i, t, o) => (wt(i, t, "read from private field"), o ? o.call(i) : t.get
|
|
|
8
8
|
t instanceof WeakSet ? t.add(i) : t.set(i, o);
|
|
9
9
|
}, c = (i, t, o, e) => (wt(i, t, "write to private field"), e ? e.call(i, o) : t.set(i, o), o);
|
|
10
10
|
var Ct = (i, t, o) => (wt(i, t, "access private method"), o);
|
|
11
|
-
import { d as Tt, t as It, p as ne } from "./tippy.esm-
|
|
12
|
-
import { o as oe, z as se, t as Lt, g as y, $ as at, y as Rt, A as Dt, P as At, T as Ot, B as ie, E as Nt, G as K, H as le, I as re, J as ce, K as ae, c as de, L as he, f as zt, i as pe } from "./index-
|
|
11
|
+
import { d as Tt, t as It, p as ne } from "./tippy.esm-4ny8MQOF.js";
|
|
12
|
+
import { o as oe, z as se, t as Lt, g as y, $ as at, y as Rt, A as Dt, P as At, T as Ot, B as ie, E as Nt, G as K, H as le, I as re, J as ce, K as ae, c as de, L as he, f as zt, i as pe } from "./index-Ls2I7eOW.js";
|
|
13
13
|
import { i as ue, a as me } from "./index-xHADmDT3.js";
|
|
14
14
|
import { h as w, c as Ft, e as ge, u as qt, a as yt } from "./meta-tAGyVRPE.js";
|
|
15
15
|
import { a as fe, u as we, b as W } from "./hooks-82sqkbtE.js";
|
|
16
|
-
import { i as Ce } from "./schema-
|
|
16
|
+
import { i as Ce } from "./schema-ywm7RaKF.js";
|
|
17
17
|
const E = typeof navigator < "u" ? navigator : null, St = typeof document < "u" ? document : null, q = E && E.userAgent || "", bt = /Edge\/(\d+)/.exec(q), Kt = /MSIE \d/.exec(q), Ht = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(q), mt = !!(Kt || Ht || bt), ve = Kt ? document.documentMode : Ht ? +Ht[1] : bt ? +bt[1] : 0, ke = !mt && /gecko\/(\d+)/i.test(q);
|
|
18
18
|
ke && +(/Firefox\/(\d+)/.exec(q) || [0, 0])[1];
|
|
19
19
|
const Bt = !mt && /Chrome\/(\d+)/.exec(q);
|
|
@@ -193,7 +193,7 @@ class $e {
|
|
|
193
193
|
move: !0
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
}), this.keydownCallback = () => (l(this, O).call(this), !1), c(this, nt, (t, o) => {
|
|
196
|
+
}), this.keydownCallback = () => (l(this, O).call(this), !1), c(this, nt, Tt((t, o) => {
|
|
197
197
|
if (!t.editable || l(this, x))
|
|
198
198
|
return;
|
|
199
199
|
const { y: e } = o, n = t.dom.getBoundingClientRect().width / 2, s = document.elementFromPoint(n, e);
|
|
@@ -210,7 +210,7 @@ class $e {
|
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
212
|
l(this, et).call(this, d);
|
|
213
|
-
}), this.mousemoveCallback = (t, o) => (t.composing || !t.editable ||
|
|
213
|
+
}, 20)), this.mousemoveCallback = (t, o) => (t.composing || !t.editable || l(this, nt).call(this, t, o), !1), this.dragoverCallback = (t, o) => {
|
|
214
214
|
var e;
|
|
215
215
|
if (l(this, x)) {
|
|
216
216
|
const n = (e = l(this, D, Y)) == null ? void 0 : e.dom.parentElement;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { N as $,
|
|
2
|
-
import { htmlCompletionSource as mt, html as gt } from "./index-
|
|
1
|
+
import { N as $, l as M, s as xe, m as Ae, t as c, P as tt, T as rt, n as E, p as nt, e as j, k as I, o as R, a as ae, q as st, r as it, C as ot, u as at, v as lt, w as ht, x as ft, f as Be, b as ut, y as dt, z as pt, A as le, B as ct } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { htmlCompletionSource as mt, html as gt } from "./index-Qcks_HSE.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Ls2I7eOW.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-cteyPSwp.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
9
|
+
import "./index-ECCvmC6D.js";
|
|
10
|
+
import "./index-EI1FcaSv.js";
|
|
11
|
+
import "./index-DDSXiQ90.js";
|
|
12
12
|
class X {
|
|
13
13
|
static create(e, r, n, s, i) {
|
|
14
14
|
let o = s + (s << 8) + e + (r << 4) | 0;
|
|
@@ -18,12 +18,12 @@ class X {
|
|
|
18
18
|
this.type = e, this.value = r, this.from = n, this.hash = s, this.end = i, this.children = o, this.positions = a, this.hashProp = [[M.contextHash, s]];
|
|
19
19
|
}
|
|
20
20
|
addChild(e, r) {
|
|
21
|
-
e.prop(M.contextHash) != this.hash && (e = new
|
|
21
|
+
e.prop(M.contextHash) != this.hash && (e = new E(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(r);
|
|
22
22
|
}
|
|
23
23
|
toTree(e, r = this.end) {
|
|
24
24
|
let n = this.children.length - 1;
|
|
25
|
-
return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new
|
|
26
|
-
makeTree: (s, i, o) => new
|
|
25
|
+
return n >= 0 && (r = Math.max(r, this.positions[n] + this.children[n].length + this.from)), new E(e.types[this.type], this.children, this.positions, r - this.from).balance({
|
|
26
|
+
makeTree: (s, i, o) => new E($.none, s, i, o, this.hashProp)
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -110,7 +110,7 @@ function he(t, e, r) {
|
|
|
110
110
|
let n = (t.type == u.OrderedList ? se : ne)(r, e, !1);
|
|
111
111
|
return n > 0 && (t.type != u.BulletList || re(r, e, !1) < 0) && r.text.charCodeAt(r.pos + n - 1) == t.value;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const Ee = {
|
|
114
114
|
[u.Blockquote](t, e, r) {
|
|
115
115
|
return r.next != 62 ? !1 : (r.markers.push(g(u.QuoteMark, e.lineStart + r.pos, e.lineStart + r.pos + 1)), r.moveBase(r.pos + (C(r.text.charCodeAt(r.pos + 1)) ? 2 : 1)), t.end = e.lineStart + r.text.length, !0);
|
|
116
116
|
},
|
|
@@ -230,7 +230,7 @@ function ue(t, e) {
|
|
|
230
230
|
let r = t.countIndent(e, t.pos, t.indent), n = t.countIndent(t.skipSpace(e), e, r);
|
|
231
231
|
return n >= r + 5 ? r + 1 : n;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function B(t, e, r) {
|
|
234
234
|
let n = t.length - 1;
|
|
235
235
|
n >= 0 && t[n].to == e && t[n].type == u.CodeText ? t[n].to = r : t.push(g(u.CodeText, e, r));
|
|
236
236
|
}
|
|
@@ -241,9 +241,9 @@ const z = {
|
|
|
241
241
|
if (e.indent < r)
|
|
242
242
|
return !1;
|
|
243
243
|
let n = e.findColumn(r), s = t.lineStart + n, i = t.lineStart + e.text.length, o = [], a = [];
|
|
244
|
-
for (
|
|
244
|
+
for (B(o, s, i); t.nextLine() && e.depth >= t.stack.length; )
|
|
245
245
|
if (e.pos == e.text.length) {
|
|
246
|
-
|
|
246
|
+
B(a, t.lineStart - 1, t.lineStart);
|
|
247
247
|
for (let l of e.markers)
|
|
248
248
|
a.push(l);
|
|
249
249
|
} else {
|
|
@@ -252,15 +252,15 @@ const z = {
|
|
|
252
252
|
{
|
|
253
253
|
if (a.length) {
|
|
254
254
|
for (let f of a)
|
|
255
|
-
f.type == u.CodeText ?
|
|
255
|
+
f.type == u.CodeText ? B(o, f.from, f.to) : o.push(f);
|
|
256
256
|
a = [];
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
B(o, t.lineStart - 1, t.lineStart);
|
|
259
259
|
for (let f of e.markers)
|
|
260
260
|
o.push(f);
|
|
261
261
|
i = t.lineStart + e.text.length;
|
|
262
262
|
let l = t.lineStart + e.findColumn(e.baseIndent + 4);
|
|
263
|
-
l < i &&
|
|
263
|
+
l < i && B(o, l, i);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
return a.length && (a = a.filter((l) => l.type != u.CodeText), a.length && (e.markers = a.concat(e.markers))), t.addNode(t.buffer.writeElements(o, -s).finish(u.CodeBlock, i - s), s), !0;
|
|
@@ -282,11 +282,11 @@ const z = {
|
|
|
282
282
|
l.push(g(u.CodeMark, t.lineStart + e.pos, t.lineStart + h)), t.nextLine();
|
|
283
283
|
break;
|
|
284
284
|
} else {
|
|
285
|
-
f ||
|
|
285
|
+
f || B(l, t.lineStart - 1, t.lineStart);
|
|
286
286
|
for (let m of e.markers)
|
|
287
287
|
l.push(m);
|
|
288
288
|
let p = t.lineStart + e.basePos, d = t.lineStart + e.text.length;
|
|
289
|
-
p < d &&
|
|
289
|
+
p < d && B(l, p, d);
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
return t.addNode(t.buffer.writeElements(l, -n).finish(u.FencedCode, t.prevLineEnd() - n), n), !0;
|
|
@@ -592,7 +592,7 @@ class At {
|
|
|
592
592
|
}
|
|
593
593
|
/// @internal
|
|
594
594
|
addNode(e, r, n) {
|
|
595
|
-
typeof e == "number" && (e = new
|
|
595
|
+
typeof e == "number" && (e = new E(this.parser.nodeSet.types[e], P, P, (n ?? this.prevLineEnd()) - r)), this.block.addChild(e, r - this.block.from);
|
|
596
596
|
}
|
|
597
597
|
/// Add a block element. Can be called by [block
|
|
598
598
|
/// parsers](#BlockParser.parse).
|
|
@@ -647,7 +647,7 @@ function Oe(t, e, r, n, s) {
|
|
|
647
647
|
let p = h.from + n, d, m = s.get(h.tree);
|
|
648
648
|
m ? d = m : h.to + n > i ? (d = Oe(t, e, h, n, s), f(h.to + n, !1)) : d = h.toTree(), o.push(d), a.push(p - l);
|
|
649
649
|
}
|
|
650
|
-
return f(r.to + n, !1), new
|
|
650
|
+
return f(r.to + n, !1), new E(r.type, o, a, r.to + n - l, r.tree ? r.tree.propValues : void 0);
|
|
651
651
|
}
|
|
652
652
|
class _ extends tt {
|
|
653
653
|
/// @internal
|
|
@@ -724,7 +724,7 @@ class _ extends tt {
|
|
|
724
724
|
/// returning an array of [`Element`](#Element) objects representing
|
|
725
725
|
/// the inline content.
|
|
726
726
|
parseInline(e, r) {
|
|
727
|
-
let n = new
|
|
727
|
+
let n = new Et(this, e, r);
|
|
728
728
|
e:
|
|
729
729
|
for (let s = r; s < n.end; ) {
|
|
730
730
|
let i = n.char(s);
|
|
@@ -776,7 +776,7 @@ for (let t = 1, e; e = u[t]; t++)
|
|
|
776
776
|
Te[t] = $.define({
|
|
777
777
|
id: t,
|
|
778
778
|
name: e,
|
|
779
|
-
props: t >= u.Escape ? [] : [[M.group, t in
|
|
779
|
+
props: t >= u.Escape ? [] : [[M.group, t in Ee ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
|
|
780
780
|
top: e == "Document"
|
|
781
781
|
});
|
|
782
782
|
const P = [];
|
|
@@ -793,7 +793,7 @@ class ze {
|
|
|
793
793
|
return this;
|
|
794
794
|
}
|
|
795
795
|
finish(e, r) {
|
|
796
|
-
return
|
|
796
|
+
return E.build({
|
|
797
797
|
buffer: this.content,
|
|
798
798
|
nodeSet: this.nodeSet,
|
|
799
799
|
reused: this.nodes,
|
|
@@ -948,7 +948,7 @@ const Q = {
|
|
|
948
948
|
if (s instanceof x && (s.type == v || s.type == de)) {
|
|
949
949
|
if (!s.side || t.skipSpace(s.to) == r && !/[(\[]/.test(t.slice(r + 1, r + 2)))
|
|
950
950
|
return t.parts[n] = null, -1;
|
|
951
|
-
let i = t.takeContent(n), o = t.parts[n] =
|
|
951
|
+
let i = t.takeContent(n), o = t.parts[n] = Bt(t, i, s.type == v ? u.Link : u.Image, s.from, r + 1);
|
|
952
952
|
if (s.type == v)
|
|
953
953
|
for (let a = 0; a < n; a++) {
|
|
954
954
|
let l = t.parts[a];
|
|
@@ -960,7 +960,7 @@ const Q = {
|
|
|
960
960
|
return -1;
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
|
-
function
|
|
963
|
+
function Bt(t, e, r, n, s) {
|
|
964
964
|
let { text: i } = t, o = t.char(s), a = s;
|
|
965
965
|
if (e.unshift(g(u.LinkMark, n, n + (r == u.Image ? 2 : 1))), e.push(g(u.LinkMark, s - 1, s)), o == 40) {
|
|
966
966
|
let l = t.skipSpace(s + 1), f = $e(i, l - t.offset, t.offset), h;
|
|
@@ -1033,7 +1033,7 @@ function _e(t, e, r, n) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
return null;
|
|
1035
1035
|
}
|
|
1036
|
-
class
|
|
1036
|
+
class Et {
|
|
1037
1037
|
/// @internal
|
|
1038
1038
|
constructor(e, r, n) {
|
|
1039
1039
|
this.parser = e, this.text = r, this.offset = n, this.parts = [];
|
|
@@ -1200,7 +1200,7 @@ class Mt {
|
|
|
1200
1200
|
if (r.to - n <= e.ranges[e.rangeI].to)
|
|
1201
1201
|
e.addNode(r.tree, h);
|
|
1202
1202
|
else {
|
|
1203
|
-
let p = new
|
|
1203
|
+
let p = new E(e.parser.nodeSet.types[u.Paragraph], [], [], 0, e.block.hashProp);
|
|
1204
1204
|
e.reusePlaceholders.set(p, r.tree), e.addNode(p, h);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (r.type.is("Block") && (It.indexOf(r.type.id) < 0 ? (o = r.to - n, a = e.block.children.length) : (o = l, a = f, l = r.to - n, f = e.block.children.length)), !r.nextSibling())
|
|
@@ -1242,7 +1242,7 @@ const Pt = xe({
|
|
|
1242
1242
|
"CodeInfo LinkLabel": c.labelName,
|
|
1243
1243
|
LinkTitle: c.string,
|
|
1244
1244
|
Paragraph: c.content
|
|
1245
|
-
}), Ht = new _(new Ae(Te).extend(Pt), Object.keys(z).map((t) => z[t]), Object.keys(z).map((t) => St[t]), Object.keys(z), Ct,
|
|
1245
|
+
}), Ht = new _(new Ae(Te).extend(Pt), Object.keys(z).map((t) => z[t]), Object.keys(z).map((t) => St[t]), Object.keys(z), Ct, Ee, Object.keys(Q).map((t) => Q[t]), Object.keys(Q), []);
|
|
1246
1246
|
function vt(t, e, r) {
|
|
1247
1247
|
let n = [];
|
|
1248
1248
|
for (let s = t.firstChild, i = e; ; s = s.nextSibling) {
|
|
@@ -1467,7 +1467,7 @@ const jt = {
|
|
|
1467
1467
|
}]
|
|
1468
1468
|
}, Ze = /* @__PURE__ */ ft({ commentTokens: { block: { open: "<!--", close: "-->" } } }), Ge = /* @__PURE__ */ new M(), Ve = /* @__PURE__ */ Ht.configure({
|
|
1469
1469
|
props: [
|
|
1470
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ Be.add((t) => !t.is("Block") || t.is("Document") || W(t) != null ? void 0 : (e, r) => ({ from: r.doc.lineAt(e.from).to, to: e.to })),
|
|
1471
1471
|
/* @__PURE__ */ Ge.add(W),
|
|
1472
1472
|
/* @__PURE__ */ ut.add({
|
|
1473
1473
|
Document: () => null
|
|
@@ -1507,7 +1507,7 @@ function ie(t) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
const Zt = /* @__PURE__ */ ie(Ve), Gt = /* @__PURE__ */ Ve.configure([$t, _t, jt, qt, {
|
|
1509
1509
|
props: [
|
|
1510
|
-
/* @__PURE__ */
|
|
1510
|
+
/* @__PURE__ */ Be.add({
|
|
1511
1511
|
Table: (t, e) => ({ from: e.doc.lineAt(t.from).to, to: t.to })
|
|
1512
1512
|
})
|
|
1513
1513
|
]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { L as p, a as u, s as m, t as e, p as n } from "./index-
|
|
2
|
-
import { html as l } from "./index-
|
|
3
|
-
import { javascriptLanguage as b } from "./index-
|
|
4
|
-
import { L as S, a as r } from "./index-
|
|
1
|
+
import { L as p, a as u, s as m, t as e, p as n } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { html as l } from "./index-Qcks_HSE.js";
|
|
3
|
+
import { javascriptLanguage as b } from "./index-DDSXiQ90.js";
|
|
4
|
+
import { L as S, a as r } from "./index-ECCvmC6D.js";
|
|
5
5
|
import "./meta-tAGyVRPE.js";
|
|
6
6
|
import "./icons-HYkfuR-O.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-Ls2I7eOW.js";
|
|
8
8
|
import "./hooks-82sqkbtE.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-cteyPSwp.js";
|
|
10
10
|
import "./clsx-7d8NmkQq.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-EI1FcaSv.js";
|
|
12
12
|
const c = /* @__PURE__ */ S.deserialize({
|
|
13
13
|
version: 14,
|
|
14
14
|
states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as a, L as o } from "./index-
|
|
2
|
-
import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-
|
|
1
|
+
import { E as a, L as o } from "./index-ECCvmC6D.js";
|
|
2
|
+
import { s as Z, t as Q, L as _, b as q, d as r, f as l, j as w, a as V } from "./index-UqF8o9eD.js";
|
|
3
3
|
import "./meta-tAGyVRPE.js";
|
|
4
4
|
import "./icons-HYkfuR-O.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Ls2I7eOW.js";
|
|
6
6
|
import "./hooks-82sqkbtE.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-cteyPSwp.js";
|
|
8
8
|
import "./clsx-7d8NmkQq.js";
|
|
9
9
|
const R = 1, g = 2, b = 3, y = 4, T = 5, s = 98, c = 101, p = 102, t = 114, v = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
|
|
10
10
|
function n(O) {
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { E as W, k as u, a as T, e as b, p as y, L as v, s as k, t, b as _, h as R, f as Y } from "./index-UqF8o9eD.js";
|
|
2
|
+
import { html as w } from "./index-Qcks_HSE.js";
|
|
3
|
+
import { L as U, E as d } from "./index-ECCvmC6D.js";
|
|
4
|
+
import "./meta-tAGyVRPE.js";
|
|
5
|
+
import "./icons-HYkfuR-O.js";
|
|
6
|
+
import "./index-Ls2I7eOW.js";
|
|
7
|
+
import "./hooks-82sqkbtE.js";
|
|
8
|
+
import "./index-cteyPSwp.js";
|
|
9
|
+
import "./clsx-7d8NmkQq.js";
|
|
10
|
+
import "./index-EI1FcaSv.js";
|
|
11
|
+
import "./index-DDSXiQ90.js";
|
|
12
|
+
const G = 1, X = 2, S = 3, z = 180, j = 4, h = 181, Z = 5, E = 182;
|
|
13
|
+
function x(O) {
|
|
14
|
+
return O >= 65 && O <= 90 || O >= 97 && O <= 122;
|
|
15
|
+
}
|
|
16
|
+
const V = /* @__PURE__ */ new d((O) => {
|
|
17
|
+
let a = O.pos;
|
|
18
|
+
for (; ; ) {
|
|
19
|
+
let { next: e } = O;
|
|
20
|
+
if (e < 0)
|
|
21
|
+
break;
|
|
22
|
+
if (e == 123) {
|
|
23
|
+
let r = O.peek(1);
|
|
24
|
+
if (r == 123) {
|
|
25
|
+
if (O.pos > a)
|
|
26
|
+
break;
|
|
27
|
+
O.acceptToken(G, 2);
|
|
28
|
+
return;
|
|
29
|
+
} else if (r == 37) {
|
|
30
|
+
if (O.pos > a)
|
|
31
|
+
break;
|
|
32
|
+
let $ = 2, i = 2;
|
|
33
|
+
for (; ; ) {
|
|
34
|
+
let n = O.peek($);
|
|
35
|
+
if (n == 32 || n == 10)
|
|
36
|
+
++$;
|
|
37
|
+
else if (n == 35)
|
|
38
|
+
for (++$; ; ) {
|
|
39
|
+
let Q = O.peek($);
|
|
40
|
+
if (Q < 0 || Q == 10)
|
|
41
|
+
break;
|
|
42
|
+
$++;
|
|
43
|
+
}
|
|
44
|
+
else if (n == 45 && i == 2)
|
|
45
|
+
i = ++$;
|
|
46
|
+
else {
|
|
47
|
+
let Q = n == 101 && O.peek($ + 1) == 110 && O.peek($ + 2) == 100;
|
|
48
|
+
O.acceptToken(Q ? S : X, i);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (O.advance(), e == 10)
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
O.pos > a && O.acceptToken(z);
|
|
58
|
+
});
|
|
59
|
+
function f(O, a, e) {
|
|
60
|
+
return new d((r) => {
|
|
61
|
+
let $ = r.pos;
|
|
62
|
+
for (; ; ) {
|
|
63
|
+
let { next: i } = r;
|
|
64
|
+
if (i == 123 && r.peek(1) == 37) {
|
|
65
|
+
let n = 2;
|
|
66
|
+
for (; ; n++) {
|
|
67
|
+
let l = r.peek(n);
|
|
68
|
+
if (l != 32 && l != 10)
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
let Q = "";
|
|
72
|
+
for (; ; n++) {
|
|
73
|
+
let l = r.peek(n);
|
|
74
|
+
if (!x(l))
|
|
75
|
+
break;
|
|
76
|
+
Q += String.fromCharCode(l);
|
|
77
|
+
}
|
|
78
|
+
if (Q == O) {
|
|
79
|
+
if (r.pos > $)
|
|
80
|
+
break;
|
|
81
|
+
r.acceptToken(e, 2);
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
} else if (i < 0)
|
|
85
|
+
break;
|
|
86
|
+
if (r.advance(), i == 10)
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
r.pos > $ && r.acceptToken(a);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const F = /* @__PURE__ */ f("endcomment", E, Z), D = /* @__PURE__ */ f("endraw", h, j), N = { __proto__: null, contains: 32, or: 36, and: 36, true: 50, false: 50, empty: 52, forloop: 54, tablerowloop: 56, continue: 58, in: 128, with: 194, for: 196, as: 198, if: 234, endif: 238, unless: 244, endunless: 248, elsif: 252, else: 256, case: 262, endcase: 266, when: 270, endfor: 278, tablerow: 284, endtablerow: 288, break: 292, cycle: 298, echo: 302, render: 306, include: 312, assign: 316, capture: 322, endcapture: 326, increment: 330, decrement: 334 }, C = { __proto__: null, if: 82, endif: 86, elsif: 90, else: 94, unless: 100, endunless: 104, case: 110, endcase: 114, when: 118, for: 126, endfor: 136, tablerow: 142, endtablerow: 146, break: 150, continue: 154, cycle: 158, comment: 164, endcomment: 170, raw: 176, endraw: 182, echo: 186, render: 190, include: 202, assign: 206, capture: 212, endcapture: 216, increment: 220, decrement: 224, liquid: 228 }, I = /* @__PURE__ */ U.deserialize({
|
|
93
|
+
version: 14,
|
|
94
|
+
states: "GYQYOPOOOOOP'#F{'#F{OeOXO'#CdOsQWO'#CfO!bQ`O'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQO'#Cg'#CgO&`QpO,59QO&gQpO'#G^OsQWO'#CsOOQO'#G^'#G^OOOP,59l,59lO)PQWO,59lOsQWO,59pOsQWO,59tO)WQWO,59vOsQWO,59yOsQWO,5:OOsQWO,5:SO!]QWO,5:WO!]QWO,5:`O)]QWO,5:dO)bQWO,5:fO)gQWO,5:hO)lQWO,5:kO)qQWO,5:qOsQWO,5:vOsQWO,5:xOsQWO,5;OOsQWO,5;QOsQWO,5;TOsQWO,5;XOsQWO,5;ZO+QQWO,5;]O+XOPO'#CdOOOP,59o,59oO#{OPO,59oO+gQ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%X%[%_%bQ%W#^R&a%Xm#_}#[#]#^#_#`#a#d%R%U%X%[%_%bQ%Z#_R&b%[m#`}#[#]#^#_#`#a#d%R%U%X%[%_%bQ%^#`R&c%_T&l%o&mm#a}#[#]#^#_#`#a#d%R%U%X%[%_%bQ%a#aR&d%bQ`OQ!QTQ!TUQ!WVQ!ZWQ!^XQ!g[_!i`!Q!T!W!Z!^!gSQO`SaQ!Oi!OTUVWX[!Q!T!W!Z!^!gQ!ocU$a!o$t&jQ$t#TR&j%nQ$l!{S&Q$l&eR&e%jQ&u&SQ&w&TW'T&u&w'Z'[Q'Z&}R'['OQ$q#QW&V$q&h&y']Q&h%mQ&y&XR']'PQ!aYR$S!aQ!dZR$V!dQ$x#UR&[$xQ#d}Q%R#[Q%U#]Q%X#^Q%[#_Q%_#`Q%b#a_%d#d%R%U%X%[%_%bQ&m%oR'R&mm_OTUVWX[`!Q!T!W!Z!^!gQcRQ!seQ!thQ!viQ!wjQ!ylQ!zmQ!{nQ#TvQ#UwQ#VxQ#WyQ#XzQ#Y{Q#Z|Q$]!kQ$^!lQ$c!qQ$d!rQ%f#eQ%g#fQ%h#gQ%i#iQ%j#jQ%n#pQ%o#qQ%p#rQ%q#sQ%r#tQ%s#uQ%t#vQ&O$eQ&P$kQ&S$nQ&T$oQ&^$yQ&p%}Q&}&fQ'O&gQ'X&{Q'_'SR'`'^m#c}#[#]#^#_#`#a#d%R%U%X%[%_%b",
|
|
97
|
+
nodeNames: "⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName 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 RenderParameter Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
|
|
98
|
+
maxTerm: 189,
|
|
99
|
+
nodeProps: [
|
|
100
|
+
["closedBy", 1, "}}", -4, 2, 3, 4, 5, "%}", 22, ")"],
|
|
101
|
+
["openedBy", 9, "{{", 21, "(", 38, "{%"],
|
|
102
|
+
["group", -12, 11, 12, 15, 19, 23, 25, 26, 27, 28, 29, 30, 31, "Expression"]
|
|
103
|
+
],
|
|
104
|
+
skippedNodes: [0, 6],
|
|
105
|
+
repeatNodeCount: 11,
|
|
106
|
+
tokenData: ")l~RlXY!yYZ!y]^!ypq!yqr#[rs#gst$Xuv$pwx${xy%hyz%m{|%r|}'^}!O'c!O!P'o!Q[#q#r)a%W;'S(f;'S;:j)U<%lO(f~#OS%O~XY!yYZ!y]^!ypq!y~#_P!_!`#b~#gOa~~#jUOY#gZr#grs#|s;'S#g;'S;=`$R<%lO#g~$ROn~~$UP;=`<%l#g~$^SU~OY$XZ;'S$X;'S;=`$j<%lO$X~$mP;=`<%l$X~$sP#q#r$v~${Ov~~%OUOY${Zw${wx#|x;'S${;'S;=`%b<%lO${~%eP;=`<%l${~%mOf~~%rOe~P%uQ!O!P%{!Q![&{P&OP!Q![&RP&WRoP!Q![&R!g!h&a#X#Y&aP&dR{|&m}!O&m!Q![&sP&pP!Q![&sP&xPoP!Q![&sP'QSoP!O!P%{!Q![&{!g!h&a#X#Y&a~'cO!^~~'fRuv$p!O!P%{!Q![&{~'tQ]S!O!P'z!Q![&R~(POh~~(UOs~~(ZPa~!_!`#b~(cPd~!_!`#b_(oV^WuQ%RT!Q![(f!c!}(f#R#S(f#T#o(f%W;'S(f;'S;:j)U<%lO(f_)XP;=`<%l(f~)aOq~~)dP#q#r)g~)lOX~",
|
|
107
|
+
tokenizers: [V, D, F, 0, 1, 2, 3],
|
|
108
|
+
topRules: { Template: [0, 7] },
|
|
109
|
+
specialized: [{ term: 187, get: (O) => N[O] || -1 }, { term: 37, get: (O) => C[O] || -1 }],
|
|
110
|
+
tokenPrec: 0
|
|
111
|
+
});
|
|
112
|
+
function s(O, a) {
|
|
113
|
+
return O.split(" ").map((e) => ({ label: e, type: a }));
|
|
114
|
+
}
|
|
115
|
+
const m = /* @__PURE__ */ s("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"), P = /* @__PURE__ */ s("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"), q = /* @__PURE__ */ s("empty forloop tablerowloop in with as contains", "keyword"), L = /* @__PURE__ */ s("first index index0 last length rindex", "property"), A = /* @__PURE__ */ s("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
|
|
116
|
+
function B(O) {
|
|
117
|
+
var a;
|
|
118
|
+
let { state: e, pos: r } = O, $ = b(e).resolveInner(r, -1).enterUnfinishedNodesBefore(r), i = ((a = $.childBefore(r)) === null || a === void 0 ? void 0 : a.name) || $.name;
|
|
119
|
+
if ($.name == "FilterName")
|
|
120
|
+
return { type: "filter", node: $ };
|
|
121
|
+
if (O.explicit && i == "|")
|
|
122
|
+
return { type: "filter" };
|
|
123
|
+
if ($.name == "TagName")
|
|
124
|
+
return { type: "tag", node: $ };
|
|
125
|
+
if (O.explicit && i == "{%")
|
|
126
|
+
return { type: "tag" };
|
|
127
|
+
if ($.name == "PropertyName" && $.parent.name == "MemberExpression")
|
|
128
|
+
return { type: "property", node: $, target: $.parent };
|
|
129
|
+
if ($.name == "." && $.parent.name == "MemberExpression")
|
|
130
|
+
return { type: "property", target: $.parent };
|
|
131
|
+
if ($.name == "MemberExpression" && i == ".")
|
|
132
|
+
return { type: "property", target: $ };
|
|
133
|
+
if ($.name == "VariableName")
|
|
134
|
+
return { type: "expression", from: $.from };
|
|
135
|
+
let n = O.matchBefore(/[\w\u00c0-\uffff]+$/);
|
|
136
|
+
return n ? { type: "expression", from: n.from } : O.explicit && $.name != "CommentText" && $.name != "StringLiteral" && $.name != "NumberLiteral" && $.name != "InlineComment" ? { type: "expression" } : null;
|
|
137
|
+
}
|
|
138
|
+
function M(O, a, e, r) {
|
|
139
|
+
let $ = [];
|
|
140
|
+
for (; ; ) {
|
|
141
|
+
let i = a.getChild("Expression");
|
|
142
|
+
if (!i)
|
|
143
|
+
return [];
|
|
144
|
+
if (i.name == "forloop")
|
|
145
|
+
return $.length ? [] : L;
|
|
146
|
+
if (i.name == "tablerowloop")
|
|
147
|
+
return $.length ? [] : A;
|
|
148
|
+
if (i.name == "VariableName") {
|
|
149
|
+
$.unshift(O.sliceDoc(i.from, i.to));
|
|
150
|
+
break;
|
|
151
|
+
} else if (i.name == "MemberExpression") {
|
|
152
|
+
let n = i.getChild("PropertyName");
|
|
153
|
+
n && $.unshift(O.sliceDoc(n.from, n.to)), a = i;
|
|
154
|
+
} else
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
return r ? r($, O, e) : [];
|
|
158
|
+
}
|
|
159
|
+
function H(O = {}) {
|
|
160
|
+
let a = O.filters ? O.filters.concat(m) : m, e = O.tags ? O.tags.concat(P) : P, r = O.variables ? O.variables.concat(q) : q, { properties: $ } = O;
|
|
161
|
+
return (i) => {
|
|
162
|
+
var n;
|
|
163
|
+
let Q = B(i);
|
|
164
|
+
if (!Q)
|
|
165
|
+
return null;
|
|
166
|
+
let l = (n = Q.from) !== null && n !== void 0 ? n : Q.node ? Q.node.from : i.pos, o;
|
|
167
|
+
return Q.type == "filter" ? o = a : Q.type == "tag" ? o = e : Q.type == "expression" ? o = r : o = M(i.state, Q.target, i, $), o.length ? { options: o, from: l, validFor: /^[\w\u00c0-\uffff]*$/ } : null;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
const K = /* @__PURE__ */ W.inputHandler.of((O, a, e, r) => r != "%" || a != e || O.state.doc.sliceString(a - 1, e + 1) != "{}" ? !1 : (O.dispatch(O.state.changeByRange(($) => ({
|
|
171
|
+
changes: { from: $.from, to: $.to, insert: "%%" },
|
|
172
|
+
range: u.cursor($.from + 1)
|
|
173
|
+
})), {
|
|
174
|
+
scrollIntoView: !0,
|
|
175
|
+
userEvent: "input.type"
|
|
176
|
+
}), !0));
|
|
177
|
+
function c(O) {
|
|
178
|
+
return (a) => {
|
|
179
|
+
let e = O.test(a.textAfter);
|
|
180
|
+
return a.lineIndent(a.node.from) + (e ? 0 : a.unit);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
const J = /* @__PURE__ */ v.define({
|
|
184
|
+
name: "liquid",
|
|
185
|
+
parser: /* @__PURE__ */ I.configure({
|
|
186
|
+
props: [
|
|
187
|
+
/* @__PURE__ */ k({
|
|
188
|
+
"cycle comment endcomment raw endraw echo increment decrement liquid in with as": t.keyword,
|
|
189
|
+
"empty forloop tablerowloop": t.atom,
|
|
190
|
+
"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": t.controlKeyword,
|
|
191
|
+
"assign capture endcapture": t.definitionKeyword,
|
|
192
|
+
contains: t.operatorKeyword,
|
|
193
|
+
"render include": t.moduleKeyword,
|
|
194
|
+
VariableName: t.variableName,
|
|
195
|
+
TagName: t.tagName,
|
|
196
|
+
FilterName: /* @__PURE__ */ t.function(t.variableName),
|
|
197
|
+
PropertyName: t.propertyName,
|
|
198
|
+
CompareOp: t.compareOperator,
|
|
199
|
+
AssignOp: t.definitionOperator,
|
|
200
|
+
LogicOp: t.logicOperator,
|
|
201
|
+
NumberLiteral: t.number,
|
|
202
|
+
StringLiteral: t.string,
|
|
203
|
+
BooleanLiteral: t.bool,
|
|
204
|
+
InlineComment: t.lineComment,
|
|
205
|
+
CommentText: t.blockComment,
|
|
206
|
+
"{% %} {{ }}": t.brace,
|
|
207
|
+
"( )": t.paren,
|
|
208
|
+
".": t.derefOperator,
|
|
209
|
+
", .. : |": t.punctuation
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ _.add({
|
|
212
|
+
Tag: /* @__PURE__ */ R({ closing: "%}" }),
|
|
213
|
+
"UnlessDirective ForDirective TablerowDirective CaptureDirective": /* @__PURE__ */ c(/^\s*(\{%-?\s*)?end\w/),
|
|
214
|
+
IfDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
|
|
215
|
+
CaseDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endcase|when)\b/)
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ Y.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__ */ w();
|
|
230
|
+
function g(O) {
|
|
231
|
+
return J.configure({
|
|
232
|
+
wrap: y((a) => a.type.isTop ? {
|
|
233
|
+
parser: O.parser,
|
|
234
|
+
overlay: (e) => e.name == "Text" || e.name == "RawText"
|
|
235
|
+
} : null)
|
|
236
|
+
}, "liquid");
|
|
237
|
+
}
|
|
238
|
+
const OO = /* @__PURE__ */ g(p.language);
|
|
239
|
+
function cO(O = {}) {
|
|
240
|
+
let a = O.base || p, e = a.language == p.language ? OO : g(a.language);
|
|
241
|
+
return new T(e, [
|
|
242
|
+
a.support,
|
|
243
|
+
e.data.of({ autocomplete: H(O) }),
|
|
244
|
+
a.language.data.of({ closeBrackets: { brackets: ["{"] } }),
|
|
245
|
+
K
|
|
246
|
+
]);
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
K as closePercentBrace,
|
|
250
|
+
cO as liquid,
|
|
251
|
+
H as liquidCompletionSource,
|
|
252
|
+
OO as liquidLanguage
|
|
253
|
+
};
|