halo-fe 1.0.34 → 1.0.35
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/dist/main.js +5513 -5855
- package/dist/vendor/{liquidjs-DEqYMvhe.js → liquidjs-CyjuyKnF.js} +858 -812
- package/dist/vendor/{underscore-DYMmD6H5.js → underscore-CK1gjYcm.js} +2 -2
- package/esm/comp/Timer.vue.d.ts +8 -12
- package/esm/comp/alert/Index.vue.d.ts +2 -1
- package/esm/comp/business/Debugger.vue.d.ts +2 -327
- package/esm/comp/business/Tips.vue.d.ts +2 -1
- package/esm/comp/business/cruds/Index.vue.d.ts +13 -567
- package/esm/comp/business/drivers/Index.vue.d.ts +11 -113
- package/esm/comp/business/drivers/Picker.vue.d.ts +16 -18
- package/esm/comp/button/Button.vue.d.ts +10 -17
- package/esm/comp/button/Index.vue.d.ts +7 -11
- package/esm/comp/calender/Index.vue.d.ts +6 -4
- package/esm/comp/card/Index.vue.d.ts +7 -11
- package/esm/comp/checkbox/Checkbox.vue.d.ts +11 -18
- package/esm/comp/checkbox/Index.vue.d.ts +11 -14
- package/esm/comp/condition/Condition.vue.d.ts +2 -1
- package/esm/comp/condition/Index.vue.d.ts +2 -1
- package/esm/comp/datetime/Date.vue.d.ts +6 -228
- package/esm/comp/datetime/DateRange.vue.d.ts +7 -11
- package/esm/comp/datetime/Index.vue.d.ts +11 -14
- package/esm/comp/datetime/Time.vue.d.ts +2 -1
- package/esm/comp/datetime/TimeRange.vue.d.ts +2 -1
- package/esm/comp/dialog/Index.vue.d.ts +17 -6
- package/esm/comp/drawer/Index.vue.d.ts +10 -17
- package/esm/comp/dropdown/Index.vue.d.ts +11 -422
- package/esm/comp/empty/Index.vue.d.ts +7 -11
- package/esm/comp/form/Field.vue.d.ts +9 -12
- package/esm/comp/form/Index.vue.d.ts +7 -11
- package/esm/comp/icon/Arrow.vue.d.ts +3 -2
- package/esm/comp/icon/Index.vue.d.ts +3 -4
- package/esm/comp/input/Code.vue.d.ts +3 -4
- package/esm/comp/input/Compare.vue.d.ts +3 -4
- package/esm/comp/input/Index.vue.d.ts +12 -23
- package/esm/comp/input/RichText.vue.d.ts +6 -71
- package/esm/comp/layout/Col.vue.d.ts +7 -11
- package/esm/comp/layout/Container.vue.d.ts +8 -16
- package/esm/comp/layout/Desc.vue.d.ts +2 -1
- package/esm/comp/layout/Fill.vue.d.ts +8 -16
- package/esm/comp/layout/Row.vue.d.ts +8 -16
- package/esm/comp/link/Index.vue.d.ts +8 -12
- package/esm/comp/loading/Loading.vue.d.ts +2 -1
- package/esm/comp/menu/Index.vue.d.ts +7 -11
- package/esm/comp/menu/Menu.vue.d.ts +8 -12
- package/esm/comp/number/Index.vue.d.ts +10 -14
- package/esm/comp/overlay/Index.vue.d.ts +7 -11
- package/esm/comp/pager/Index.vue.d.ts +12 -6
- package/esm/comp/popover/Index.vue.d.ts +9 -150
- package/esm/comp/progress/Circle.vue.d.ts +2 -1
- package/esm/comp/progress/Index.vue.d.ts +4 -3
- package/esm/comp/progress/Socket.vue.d.ts +7 -11
- package/esm/comp/progress/Spinner.vue.d.ts +2 -1
- package/esm/comp/radio/Index.vue.d.ts +11 -14
- package/esm/comp/radio/Radio.vue.d.ts +8 -12
- package/esm/comp/resizer/Index.vue.d.ts +3 -4
- package/esm/comp/resizer/Resizers.vue.d.ts +3 -2
- package/esm/comp/scroller/Index.vue.d.ts +9 -23
- package/esm/comp/select/Index.vue.d.ts +11 -464
- package/esm/comp/select/Option.vue.d.ts +7 -15
- package/esm/comp/tab/Index.vue.d.ts +13 -15
- package/esm/comp/tab/Tab.vue.d.ts +9 -12
- package/esm/comp/table/Column.vue.d.ts +11 -155
- package/esm/comp/table/Filter.vue.d.ts +2 -1
- package/esm/comp/table/Index.vue.d.ts +24 -773
- package/esm/comp/table/Row.vue.d.ts +9 -18
- package/esm/comp/table/Sort.vue.d.ts +8 -4
- package/esm/comp/tag/Index.vue.d.ts +7 -11
- package/esm/comp/taskbar/Index.vue.d.ts +13 -15
- package/esm/comp/taskbar/Taskbar.vue.d.ts +7 -11
- package/esm/comp/text/Dance.vue.d.ts +3 -2
- package/esm/comp/tooltip/Index.vue.d.ts +9 -295
- package/esm/comp/tree/Index.vue.d.ts +10 -14
- package/esm/comp/upload/Index.vue.d.ts +7 -11
- package/esm/comp/window/Index.vue.d.ts +21 -6
- package/esm/vite.config.d.ts +1 -5
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class z {
|
|
2
2
|
constructor(e, s, i, r, n) {
|
|
3
3
|
this.kind = e, this.input = s, this.begin = i, this.end = r, this.file = n;
|
|
4
4
|
}
|
|
@@ -17,112 +17,117 @@ class R {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
class Y {
|
|
20
|
-
liquidMethodMissing(e) {
|
|
20
|
+
liquidMethodMissing(e, s) {
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Yt = Object.prototype.toString, Pe = String.prototype.toLowerCase, Le = Object.hasOwnProperty;
|
|
24
24
|
function f(t) {
|
|
25
25
|
return typeof t == "string";
|
|
26
26
|
}
|
|
27
27
|
function v(t) {
|
|
28
28
|
return typeof t == "function";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Jt(t) {
|
|
31
31
|
return t && v(t.then);
|
|
32
32
|
}
|
|
33
33
|
function le(t) {
|
|
34
34
|
return t && v(t.next) && v(t.throw) && v(t.return);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Zt(t) {
|
|
37
37
|
return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
38
38
|
}
|
|
39
39
|
function u(t) {
|
|
40
|
-
return t =
|
|
40
|
+
return t = p(t), f(t) ? t : O(t) ? "" : S(t) ? t.map((e) => u(e)).join("") : String(t);
|
|
41
41
|
}
|
|
42
42
|
function ie(t) {
|
|
43
|
-
return t =
|
|
43
|
+
return t = p(t), S(t) ? t : f(t) && t.length > 0 ? [t] : Gt(t) ? Array.from(t) : pe(t) ? Object.keys(t).map((e) => [e, t[e]]) : [];
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return t =
|
|
45
|
+
function x(t) {
|
|
46
|
+
return t = p(t), O(t) ? [] : S(t) ? t : [t];
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function p(t) {
|
|
49
49
|
return t instanceof Y && v(t.valueOf) ? t.valueOf() : t;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function ve(t) {
|
|
52
|
+
return +p(t) || 0;
|
|
53
53
|
}
|
|
54
54
|
function de(t) {
|
|
55
55
|
return typeof t == "number";
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return t && v(t.toLiquid) ?
|
|
57
|
+
function gt(t) {
|
|
58
|
+
return t && v(t.toLiquid) ? gt(t.toLiquid()) : t;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function O(t) {
|
|
61
61
|
return t == null;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Qt(t) {
|
|
64
64
|
return t === void 0;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function S(t) {
|
|
67
|
+
return Yt.call(t) === "[object Array]";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function mt(t) {
|
|
70
70
|
return t && de(t.length);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Gt(t) {
|
|
73
73
|
return pe(t) && Symbol.iterator in t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ie(t, e) {
|
|
76
76
|
t = t || {};
|
|
77
77
|
for (const s in t)
|
|
78
|
-
if (
|
|
78
|
+
if (Le.call(t, s) && e(t[s], s, t) === !1)
|
|
79
79
|
break;
|
|
80
80
|
return t;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function yt(t) {
|
|
83
83
|
return t[t.length - 1];
|
|
84
84
|
}
|
|
85
85
|
function pe(t) {
|
|
86
86
|
const e = typeof t;
|
|
87
87
|
return t !== null && (e === "object" || e === "function");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function wt(t, e, s = 1) {
|
|
90
90
|
const i = [];
|
|
91
91
|
for (let r = t; r < e; r += s)
|
|
92
92
|
i.push(r);
|
|
93
93
|
return i;
|
|
94
94
|
}
|
|
95
95
|
function se(t, e, s = " ") {
|
|
96
|
-
return
|
|
96
|
+
return bt(t, e, s, (i, r) => r + i);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
98
|
+
function Xt(t, e, s = " ") {
|
|
99
|
+
return bt(t, e, s, (i, r) => i + r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function bt(t, e, s, i) {
|
|
102
102
|
t = String(t);
|
|
103
103
|
let r = e - t.length;
|
|
104
104
|
for (; r-- > 0; )
|
|
105
105
|
t = i(t, s);
|
|
106
106
|
return t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Tt(t) {
|
|
109
109
|
return t;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Kt(t) {
|
|
112
112
|
return [...t].some((s) => s >= "a" && s <= "z") ? t.toUpperCase() : t.toLowerCase();
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function es(t, e) {
|
|
115
115
|
return t.length > e ? t.slice(0, e - 3) + "..." : t;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return t == null && e == null ? 0 : t == null ? 1 : e == null || (t =
|
|
117
|
+
function Be(t, e) {
|
|
118
|
+
return t == null && e == null ? 0 : t == null ? 1 : e == null || (t = Pe.call(t), e = Pe.call(e), t < e) ? -1 : t > e ? 1 : 0;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ge(t) {
|
|
121
121
|
return function(...e) {
|
|
122
|
-
return t.call(this, ...e.map(
|
|
122
|
+
return t.call(this, ...e.map(p));
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function D(t) {
|
|
126
|
+
return function(...e) {
|
|
127
|
+
return t.call(this, ...e.map(ve));
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function Oe(t) {
|
|
126
131
|
return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
127
132
|
}
|
|
128
133
|
function* re(t) {
|
|
@@ -132,32 +137,32 @@ function* re(t) {
|
|
|
132
137
|
e.has(i) || (e.add(i), yield s);
|
|
133
138
|
}
|
|
134
139
|
}
|
|
135
|
-
const
|
|
140
|
+
const Ue = "__liquidClass__";
|
|
136
141
|
class J extends Error {
|
|
137
142
|
constructor(e, s) {
|
|
138
|
-
super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", { value: e, enumerable: !1 }), Object.defineProperty(this, "token", { value: s, enumerable: !1 }), Object.defineProperty(this,
|
|
143
|
+
super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", { value: e, enumerable: !1 }), Object.defineProperty(this, "token", { value: s, enumerable: !1 }), Object.defineProperty(this, Ue, { value: "LiquidError", enumerable: !1 });
|
|
139
144
|
}
|
|
140
145
|
update() {
|
|
141
|
-
Object.defineProperty(this, "context", { value:
|
|
146
|
+
Object.defineProperty(this, "context", { value: as(this.token), enumerable: !1 }), this.message = ls(this.message, this.token), this.stack = this.message + `
|
|
142
147
|
` + this.context + `
|
|
143
148
|
` + this.stack, this.originalError && (this.stack += `
|
|
144
149
|
From ` + this.originalError.stack);
|
|
145
150
|
}
|
|
146
151
|
static is(e) {
|
|
147
|
-
return
|
|
152
|
+
return e?.[Ue] === "LiquidError";
|
|
148
153
|
}
|
|
149
154
|
}
|
|
150
|
-
class
|
|
155
|
+
class ts extends J {
|
|
151
156
|
constructor(e, s) {
|
|
152
157
|
super(e, s), this.name = "TokenizationError", super.update();
|
|
153
158
|
}
|
|
154
159
|
}
|
|
155
|
-
class
|
|
160
|
+
class ss extends J {
|
|
156
161
|
constructor(e, s) {
|
|
157
162
|
super(e, s), this.name = "ParseError", this.message = e.message, super.update();
|
|
158
163
|
}
|
|
159
164
|
}
|
|
160
|
-
class
|
|
165
|
+
class is extends J {
|
|
161
166
|
constructor(e, s) {
|
|
162
167
|
super(e, s.token), this.name = "RenderError", this.message = e.message, super.update();
|
|
163
168
|
}
|
|
@@ -165,7 +170,7 @@ class Qt extends J {
|
|
|
165
170
|
return e.name === "RenderError";
|
|
166
171
|
}
|
|
167
172
|
}
|
|
168
|
-
class
|
|
173
|
+
class kt extends J {
|
|
169
174
|
constructor(e) {
|
|
170
175
|
super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
|
|
171
176
|
const s = e.length > 1 ? "s" : "";
|
|
@@ -175,57 +180,57 @@ class wt extends J {
|
|
|
175
180
|
return e.name === "LiquidErrors";
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
|
-
class
|
|
183
|
+
class rs extends J {
|
|
179
184
|
constructor(e, s) {
|
|
180
185
|
super(e, s), this.name = "UndefinedVariableError", this.message = e.message, super.update();
|
|
181
186
|
}
|
|
182
187
|
}
|
|
183
|
-
class
|
|
188
|
+
class ns extends Error {
|
|
184
189
|
constructor(e) {
|
|
185
190
|
super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
|
|
186
191
|
}
|
|
187
192
|
}
|
|
188
|
-
class
|
|
193
|
+
class os extends Error {
|
|
189
194
|
constructor(e) {
|
|
190
195
|
super(e), this.name = "AssertionError", this.message = e + "";
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
|
-
function
|
|
198
|
+
function as(t) {
|
|
194
199
|
const [e, s] = t.getPosition(), i = t.input.split(`
|
|
195
200
|
`), r = Math.max(e - 2, 1), n = Math.min(e + 3, i.length);
|
|
196
|
-
return
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
` + se("^", s +
|
|
201
|
-
return
|
|
201
|
+
return wt(r, n + 1).map((a) => {
|
|
202
|
+
const l = a === e ? ">> " : " ", c = se(String(a), String(n).length);
|
|
203
|
+
let h = `${l}${c}| `;
|
|
204
|
+
const d = a === e ? `
|
|
205
|
+
` + se("^", s + h.length) : "";
|
|
206
|
+
return h += i[a - 1], h += d, h;
|
|
202
207
|
}).join(`
|
|
203
208
|
`);
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function ls(t, e) {
|
|
206
211
|
e.file && (t += `, file:${e.file}`);
|
|
207
212
|
const [s, i] = e.getPosition();
|
|
208
213
|
return t += `, line:${s}, col:${i}`, t;
|
|
209
214
|
}
|
|
210
|
-
const m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 4, 4, 4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 8, 0, 0, 0, 0, 8, 0, 0, 0, 64, 0, 65, 0, 0, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 0, 0, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],
|
|
215
|
+
const m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 4, 4, 4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 8, 0, 0, 0, 0, 8, 0, 0, 0, 64, 0, 65, 0, 0, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 0, 0, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], hs = 1, X = 4, He = 8, vt = 16, cs = 32, us = 64, fs = 128;
|
|
211
216
|
function ne(t) {
|
|
212
217
|
const e = t.charCodeAt(0);
|
|
213
|
-
return e >= 128 ? !m[e] : !!(m[e] &
|
|
218
|
+
return e >= 128 ? !m[e] : !!(m[e] & hs);
|
|
214
219
|
}
|
|
215
220
|
m[160] = m[5760] = m[6158] = m[8192] = m[8193] = m[8194] = m[8195] = m[8196] = m[8197] = m[8198] = m[8199] = m[8200] = m[8201] = m[8202] = m[8232] = m[8233] = m[8239] = m[8287] = m[12288] = X;
|
|
216
|
-
m[8220] = m[8221] =
|
|
221
|
+
m[8220] = m[8221] = fs;
|
|
217
222
|
function _(t, e) {
|
|
218
223
|
if (!t) {
|
|
219
224
|
const s = typeof e == "function" ? e() : e || `expect ${t} to be true`;
|
|
220
|
-
throw new
|
|
225
|
+
throw new os(s);
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
228
|
function he(t, e = `unexpected ${JSON.stringify(t)}`) {
|
|
224
229
|
_(!t, e);
|
|
225
230
|
}
|
|
226
|
-
class
|
|
231
|
+
class ds extends Y {
|
|
227
232
|
equals(e) {
|
|
228
|
-
return
|
|
233
|
+
return O(p(e));
|
|
229
234
|
}
|
|
230
235
|
gt() {
|
|
231
236
|
return !1;
|
|
@@ -245,7 +250,7 @@ class os extends Y {
|
|
|
245
250
|
}
|
|
246
251
|
class K extends Y {
|
|
247
252
|
equals(e) {
|
|
248
|
-
return e instanceof K ? !1 : (e =
|
|
253
|
+
return e instanceof K ? !1 : (e = p(e), f(e) || S(e) ? e.length === 0 : pe(e) ? Object.keys(e).length === 0 : !1);
|
|
249
254
|
}
|
|
250
255
|
gt() {
|
|
251
256
|
return !1;
|
|
@@ -266,15 +271,15 @@ class K extends Y {
|
|
|
266
271
|
return e instanceof K;
|
|
267
272
|
}
|
|
268
273
|
}
|
|
269
|
-
class
|
|
274
|
+
class ze extends K {
|
|
270
275
|
equals(e) {
|
|
271
|
-
return e === !1 ||
|
|
276
|
+
return e === !1 || O(p(e)) ? !0 : f(e) ? /^\s*$/.test(e) : super.equals(e);
|
|
272
277
|
}
|
|
273
278
|
static is(e) {
|
|
274
|
-
return e instanceof
|
|
279
|
+
return e instanceof ze;
|
|
275
280
|
}
|
|
276
281
|
}
|
|
277
|
-
class
|
|
282
|
+
class Re extends Y {
|
|
278
283
|
constructor(e, s, i) {
|
|
279
284
|
super(), this.i = 0, this.length = e, this.name = `${i}-${s}`;
|
|
280
285
|
}
|
|
@@ -303,7 +308,28 @@ class Oe extends Y {
|
|
|
303
308
|
return JSON.stringify(this);
|
|
304
309
|
}
|
|
305
310
|
}
|
|
306
|
-
class
|
|
311
|
+
class xt {
|
|
312
|
+
constructor() {
|
|
313
|
+
this.buffer = "";
|
|
314
|
+
}
|
|
315
|
+
write(e) {
|
|
316
|
+
this.buffer += u(e);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
class ps {
|
|
320
|
+
constructor() {
|
|
321
|
+
throw this.buffer = "", this.stream = null, new Error("streaming not supported in browser");
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
class gs {
|
|
325
|
+
constructor() {
|
|
326
|
+
this.buffer = "";
|
|
327
|
+
}
|
|
328
|
+
write(e) {
|
|
329
|
+
e = p(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = u(this.buffer) + u(e);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
class We extends Y {
|
|
307
333
|
constructor(e = () => "") {
|
|
308
334
|
super(), this.superBlockRender = e;
|
|
309
335
|
}
|
|
@@ -311,22 +337,23 @@ class Be extends Y {
|
|
|
311
337
|
* Provide parent access in child block by
|
|
312
338
|
* {{ block.super }}
|
|
313
339
|
*/
|
|
314
|
-
super() {
|
|
315
|
-
|
|
340
|
+
*super() {
|
|
341
|
+
const e = new xt();
|
|
342
|
+
return yield this.superBlockRender(e), e.buffer;
|
|
316
343
|
}
|
|
317
344
|
}
|
|
318
|
-
function
|
|
345
|
+
function N(t) {
|
|
319
346
|
return t && v(t.equals) && v(t.gt) && v(t.geq) && v(t.lt) && v(t.leq);
|
|
320
347
|
}
|
|
321
|
-
const
|
|
348
|
+
const Ye = new ds(), St = {
|
|
322
349
|
true: !0,
|
|
323
350
|
false: !1,
|
|
324
|
-
nil:
|
|
325
|
-
null:
|
|
351
|
+
nil: Ye,
|
|
352
|
+
null: Ye,
|
|
326
353
|
empty: new K(),
|
|
327
|
-
blank: new
|
|
354
|
+
blank: new ze()
|
|
328
355
|
};
|
|
329
|
-
function
|
|
356
|
+
function Je(t) {
|
|
330
357
|
const e = {};
|
|
331
358
|
for (const [s, i] of Object.entries(t)) {
|
|
332
359
|
let r = e;
|
|
@@ -354,27 +381,27 @@ function k(t, e, s, i) {
|
|
|
354
381
|
});
|
|
355
382
|
}
|
|
356
383
|
return new (s || (s = Promise))(function(n, o) {
|
|
357
|
-
function a(
|
|
384
|
+
function a(h) {
|
|
358
385
|
try {
|
|
359
|
-
c(i.next(
|
|
360
|
-
} catch (
|
|
361
|
-
o(
|
|
386
|
+
c(i.next(h));
|
|
387
|
+
} catch (d) {
|
|
388
|
+
o(d);
|
|
362
389
|
}
|
|
363
390
|
}
|
|
364
|
-
function h
|
|
391
|
+
function l(h) {
|
|
365
392
|
try {
|
|
366
|
-
c(i.throw(
|
|
367
|
-
} catch (
|
|
368
|
-
o(
|
|
393
|
+
c(i.throw(h));
|
|
394
|
+
} catch (d) {
|
|
395
|
+
o(d);
|
|
369
396
|
}
|
|
370
397
|
}
|
|
371
|
-
function c(
|
|
372
|
-
|
|
398
|
+
function c(h) {
|
|
399
|
+
h.done ? n(h.value) : r(h.value).then(a, l);
|
|
373
400
|
}
|
|
374
401
|
c((i = i.apply(t, [])).next());
|
|
375
402
|
});
|
|
376
403
|
}
|
|
377
|
-
function
|
|
404
|
+
function M(t) {
|
|
378
405
|
return k(this, void 0, void 0, function* () {
|
|
379
406
|
if (!le(t))
|
|
380
407
|
return t;
|
|
@@ -383,7 +410,7 @@ function V(t) {
|
|
|
383
410
|
const r = t[i](e);
|
|
384
411
|
s = r.done, e = r.value, i = "next";
|
|
385
412
|
try {
|
|
386
|
-
le(e) && (e =
|
|
413
|
+
le(e) && (e = M(e)), Jt(e) && (e = yield e);
|
|
387
414
|
} catch (n) {
|
|
388
415
|
i = "throw", e = n;
|
|
389
416
|
}
|
|
@@ -391,7 +418,7 @@ function V(t) {
|
|
|
391
418
|
return e;
|
|
392
419
|
});
|
|
393
420
|
}
|
|
394
|
-
function
|
|
421
|
+
function V(t) {
|
|
395
422
|
if (!le(t))
|
|
396
423
|
return t;
|
|
397
424
|
let e, s = !1, i = "next";
|
|
@@ -399,32 +426,32 @@ function q(t) {
|
|
|
399
426
|
const r = t[i](e);
|
|
400
427
|
if (s = r.done, e = r.value, i = "next", le(e))
|
|
401
428
|
try {
|
|
402
|
-
e =
|
|
429
|
+
e = V(e);
|
|
403
430
|
} catch (n) {
|
|
404
431
|
i = "throw", e = n;
|
|
405
432
|
}
|
|
406
433
|
} while (!s);
|
|
407
434
|
return e;
|
|
408
435
|
}
|
|
409
|
-
const
|
|
410
|
-
function
|
|
411
|
-
return [31,
|
|
436
|
+
const ms = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
|
|
437
|
+
function ys(t) {
|
|
438
|
+
return [31, ws(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
412
439
|
}
|
|
413
|
-
function
|
|
440
|
+
function _t(t) {
|
|
414
441
|
let e = 0;
|
|
415
442
|
for (let s = 0; s < t.getMonth(); ++s)
|
|
416
|
-
e +=
|
|
443
|
+
e += ys(t)[s];
|
|
417
444
|
return e + t.getDate();
|
|
418
445
|
}
|
|
419
|
-
function
|
|
420
|
-
const s =
|
|
446
|
+
function Ze(t, e) {
|
|
447
|
+
const s = _t(t) + (e - t.getDay()), r = 7 - new Date(t.getFullYear(), 0, 1).getDay() + e;
|
|
421
448
|
return String(Math.floor((s - r) / 7) + 1);
|
|
422
449
|
}
|
|
423
|
-
function
|
|
450
|
+
function ws(t) {
|
|
424
451
|
const e = t.getFullYear();
|
|
425
|
-
return !!(
|
|
452
|
+
return !!((e & 3) === 0 && (e % 100 || e % 400 === 0 && e));
|
|
426
453
|
}
|
|
427
|
-
function
|
|
454
|
+
function bs(t) {
|
|
428
455
|
const e = t.getDate();
|
|
429
456
|
if ([11, 12, 13].includes(e))
|
|
430
457
|
return "th";
|
|
@@ -439,10 +466,10 @@ function cs(t) {
|
|
|
439
466
|
return "th";
|
|
440
467
|
}
|
|
441
468
|
}
|
|
442
|
-
function
|
|
469
|
+
function Ts(t) {
|
|
443
470
|
return parseInt(t.getFullYear().toString().substring(0, 2), 10);
|
|
444
471
|
}
|
|
445
|
-
const
|
|
472
|
+
const ks = {
|
|
446
473
|
d: 2,
|
|
447
474
|
e: 2,
|
|
448
475
|
H: 2,
|
|
@@ -456,23 +483,23 @@ const fs = {
|
|
|
456
483
|
S: 2,
|
|
457
484
|
U: 2,
|
|
458
485
|
W: 2
|
|
459
|
-
},
|
|
460
|
-
function
|
|
486
|
+
}, vs = new Set("aAbBceklpP");
|
|
487
|
+
function Qe(t, e) {
|
|
461
488
|
const s = Math.abs(t.getTimezoneOffset()), i = Math.floor(s / 60), r = s % 60;
|
|
462
489
|
return (t.getTimezoneOffset() > 0 ? "-" : "+") + se(i, 2, "0") + (e.flags[":"] ? ":" : "") + se(r, 2, "0");
|
|
463
490
|
}
|
|
464
|
-
const
|
|
491
|
+
const xe = {
|
|
465
492
|
a: (t) => t.getShortWeekdayName(),
|
|
466
493
|
A: (t) => t.getLongWeekdayName(),
|
|
467
494
|
b: (t) => t.getShortMonthName(),
|
|
468
495
|
B: (t) => t.getLongMonthName(),
|
|
469
496
|
c: (t) => t.toLocaleString(),
|
|
470
|
-
C: (t) =>
|
|
497
|
+
C: (t) => Ts(t),
|
|
471
498
|
d: (t) => t.getDate(),
|
|
472
499
|
e: (t) => t.getDate(),
|
|
473
500
|
H: (t) => t.getHours(),
|
|
474
501
|
I: (t) => String(t.getHours() % 12 || 12),
|
|
475
|
-
j: (t) =>
|
|
502
|
+
j: (t) => _t(t),
|
|
476
503
|
k: (t) => t.getHours(),
|
|
477
504
|
l: (t) => String(t.getHours() % 12 || 12),
|
|
478
505
|
L: (t) => t.getMilliseconds(),
|
|
@@ -480,49 +507,49 @@ const ke = {
|
|
|
480
507
|
M: (t) => t.getMinutes(),
|
|
481
508
|
N: (t, e) => {
|
|
482
509
|
const s = Number(e.width) || 9, i = String(t.getMilliseconds()).slice(0, s);
|
|
483
|
-
return
|
|
510
|
+
return Xt(i, s, "0");
|
|
484
511
|
},
|
|
485
512
|
p: (t) => t.getHours() < 12 ? "AM" : "PM",
|
|
486
513
|
P: (t) => t.getHours() < 12 ? "am" : "pm",
|
|
487
|
-
q: (t) =>
|
|
514
|
+
q: (t) => bs(t),
|
|
488
515
|
s: (t) => Math.round(t.getTime() / 1e3),
|
|
489
516
|
S: (t) => t.getSeconds(),
|
|
490
517
|
u: (t) => t.getDay() || 7,
|
|
491
|
-
U: (t) =>
|
|
518
|
+
U: (t) => Ze(t, 0),
|
|
492
519
|
w: (t) => t.getDay(),
|
|
493
|
-
W: (t) =>
|
|
520
|
+
W: (t) => Ze(t, 1),
|
|
494
521
|
x: (t) => t.toLocaleDateString(),
|
|
495
522
|
X: (t) => t.toLocaleTimeString(),
|
|
496
523
|
y: (t) => t.getFullYear().toString().slice(2, 4),
|
|
497
524
|
Y: (t) => t.getFullYear(),
|
|
498
|
-
z:
|
|
499
|
-
Z: (t, e) => t.getTimeZoneName() ||
|
|
525
|
+
z: Qe,
|
|
526
|
+
Z: (t, e) => t.getTimeZoneName() || Qe(t, e),
|
|
500
527
|
t: () => " ",
|
|
501
528
|
n: () => `
|
|
502
529
|
`,
|
|
503
530
|
"%": () => "%"
|
|
504
531
|
};
|
|
505
|
-
|
|
532
|
+
xe.h = xe.b;
|
|
506
533
|
function oe(t, e) {
|
|
507
534
|
let s = "", i = e, r;
|
|
508
|
-
for (; r =
|
|
509
|
-
s += i.slice(0, r.index), i = i.slice(r.index + r[0].length), s +=
|
|
535
|
+
for (; r = ms.exec(i); )
|
|
536
|
+
s += i.slice(0, r.index), i = i.slice(r.index + r[0].length), s += xs(t, r);
|
|
510
537
|
return s + i;
|
|
511
538
|
}
|
|
512
|
-
function
|
|
513
|
-
const [s, i = "", r, n, o] = e, a =
|
|
539
|
+
function xs(t, e) {
|
|
540
|
+
const [s, i = "", r, n, o] = e, a = xe[o];
|
|
514
541
|
if (!a)
|
|
515
542
|
return s;
|
|
516
|
-
const
|
|
543
|
+
const l = {};
|
|
517
544
|
for (const g of i)
|
|
518
|
-
|
|
519
|
-
let c = String(a(t, { flags:
|
|
520
|
-
return
|
|
545
|
+
l[g] = !0;
|
|
546
|
+
let c = String(a(t, { flags: l, width: r, modifier: n })), h = vs.has(o) ? " " : "0", d = r || ks[o] || 0;
|
|
547
|
+
return l["^"] ? c = c.toUpperCase() : l["#"] && (c = Kt(c)), l._ ? h = " " : l[0] && (h = "0"), l["-"] && (d = 0), se(c, d, h);
|
|
521
548
|
}
|
|
522
|
-
function
|
|
549
|
+
function Ft() {
|
|
523
550
|
return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
|
|
524
551
|
}
|
|
525
|
-
const
|
|
552
|
+
const Ss = 6e4, _s = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, Lt = [
|
|
526
553
|
"January",
|
|
527
554
|
"February",
|
|
528
555
|
"March",
|
|
@@ -535,7 +562,7 @@ const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
|
|
|
535
562
|
"October",
|
|
536
563
|
"November",
|
|
537
564
|
"December"
|
|
538
|
-
],
|
|
565
|
+
], Fs = Lt.map((t) => t.slice(0, 3)), Ot = [
|
|
539
566
|
"Sunday",
|
|
540
567
|
"Monday",
|
|
541
568
|
"Tuesday",
|
|
@@ -543,11 +570,11 @@ const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
|
|
|
543
570
|
"Thursday",
|
|
544
571
|
"Friday",
|
|
545
572
|
"Saturday"
|
|
546
|
-
],
|
|
547
|
-
class
|
|
573
|
+
], Ls = Ot.map((t) => t.slice(0, 3));
|
|
574
|
+
class R {
|
|
548
575
|
constructor(e, s, i) {
|
|
549
|
-
this.locale = s, this.DateTimeFormat =
|
|
550
|
-
const r = (this.date.getTimezoneOffset() - this.timezoneOffset) *
|
|
576
|
+
this.locale = s, this.DateTimeFormat = Ft(), this.date = new Date(e), this.timezoneFixed = i !== void 0, i === void 0 && (i = this.date.getTimezoneOffset()), this.timezoneOffset = f(i) ? R.getTimezoneOffset(i, this.date) : i, this.timezoneName = f(i) ? i : "";
|
|
577
|
+
const r = (this.date.getTimezoneOffset() - this.timezoneOffset) * Ss, n = this.date.getTime() + r;
|
|
551
578
|
this.displayDate = new Date(n);
|
|
552
579
|
}
|
|
553
580
|
getTime() {
|
|
@@ -578,7 +605,7 @@ class E {
|
|
|
578
605
|
return this.displayDate.getFullYear();
|
|
579
606
|
}
|
|
580
607
|
toLocaleString(e, s) {
|
|
581
|
-
return s
|
|
608
|
+
return s?.timeZone ? this.date.toLocaleString(e, s) : this.displayDate.toLocaleString(e, s);
|
|
582
609
|
}
|
|
583
610
|
toLocaleTimeString(e) {
|
|
584
611
|
return this.displayDate.toLocaleTimeString(e);
|
|
@@ -597,19 +624,19 @@ class E {
|
|
|
597
624
|
}
|
|
598
625
|
getLongMonthName() {
|
|
599
626
|
var e;
|
|
600
|
-
return (e = this.format({ month: "long" })) !== null && e !== void 0 ? e :
|
|
627
|
+
return (e = this.format({ month: "long" })) !== null && e !== void 0 ? e : Lt[this.getMonth()];
|
|
601
628
|
}
|
|
602
629
|
getShortMonthName() {
|
|
603
630
|
var e;
|
|
604
|
-
return (e = this.format({ month: "short" })) !== null && e !== void 0 ? e :
|
|
631
|
+
return (e = this.format({ month: "short" })) !== null && e !== void 0 ? e : Fs[this.getMonth()];
|
|
605
632
|
}
|
|
606
633
|
getLongWeekdayName() {
|
|
607
634
|
var e;
|
|
608
|
-
return (e = this.format({ weekday: "long" })) !== null && e !== void 0 ? e :
|
|
635
|
+
return (e = this.format({ weekday: "long" })) !== null && e !== void 0 ? e : Ot[this.displayDate.getDay()];
|
|
609
636
|
}
|
|
610
637
|
getShortWeekdayName() {
|
|
611
638
|
var e;
|
|
612
|
-
return (e = this.format({ weekday: "short" })) !== null && e !== void 0 ? e :
|
|
639
|
+
return (e = this.format({ weekday: "short" })) !== null && e !== void 0 ? e : Ls[this.displayDate.getDay()];
|
|
613
640
|
}
|
|
614
641
|
valid() {
|
|
615
642
|
return !isNaN(this.getTime());
|
|
@@ -631,59 +658,59 @@ class E {
|
|
|
631
658
|
* Given that a template is expected to be parsed fewer times than rendered.
|
|
632
659
|
*/
|
|
633
660
|
static createDateFixedToTimezone(e, s) {
|
|
634
|
-
const i = e.match(
|
|
661
|
+
const i = e.match(_s);
|
|
635
662
|
if (i && i[1] === "Z")
|
|
636
|
-
return new
|
|
663
|
+
return new R(+new Date(e), s, 0);
|
|
637
664
|
if (i && i[2] && i[3] && i[4]) {
|
|
638
665
|
const [, , r, n, o] = i, a = (r === "+" ? -1 : 1) * (parseInt(n, 10) * 60 + parseInt(o, 10));
|
|
639
|
-
return new
|
|
666
|
+
return new R(+new Date(e), s, a);
|
|
640
667
|
}
|
|
641
|
-
return new
|
|
668
|
+
return new R(e, s);
|
|
642
669
|
}
|
|
643
670
|
static getTimezoneOffset(e, s) {
|
|
644
671
|
const i = s.toLocaleString("en-US", { timeZone: e }), r = s.toLocaleString("en-US", { timeZone: "UTC" }), n = new Date(i);
|
|
645
672
|
return (+new Date(r) - +n) / (60 * 1e3);
|
|
646
673
|
}
|
|
647
674
|
}
|
|
648
|
-
class
|
|
675
|
+
class Se {
|
|
649
676
|
constructor(e, s) {
|
|
650
677
|
this.base = 0, this.message = `${e} limit exceeded`, this.limit = s;
|
|
651
678
|
}
|
|
652
679
|
use(e) {
|
|
653
|
-
e =
|
|
680
|
+
e = +e || 0, _(this.base + e <= this.limit, this.message), this.base += e;
|
|
654
681
|
}
|
|
655
682
|
check(e) {
|
|
656
|
-
e =
|
|
683
|
+
e = +e || 0, _(e <= this.limit, this.message);
|
|
657
684
|
}
|
|
658
685
|
}
|
|
659
|
-
class
|
|
660
|
-
constructor(e, [s, i], r, n, o, a,
|
|
686
|
+
class Ee extends z {
|
|
687
|
+
constructor(e, [s, i], r, n, o, a, l, c) {
|
|
661
688
|
super(e, r, n, o, c), this.trimLeft = !1, this.trimRight = !1;
|
|
662
|
-
const
|
|
663
|
-
let g =
|
|
689
|
+
const h = r[s] === "-", d = r[i - 1] === "-";
|
|
690
|
+
let g = h ? s + 1 : s, w = d ? i - 1 : i;
|
|
664
691
|
for (; g < w && m[r.charCodeAt(g)] & X; )
|
|
665
692
|
g++;
|
|
666
693
|
for (; w > g && m[r.charCodeAt(w - 1)] & X; )
|
|
667
694
|
w--;
|
|
668
|
-
this.contentRange = [g, w], this.trimLeft =
|
|
695
|
+
this.contentRange = [g, w], this.trimLeft = h || a, this.trimRight = d || l;
|
|
669
696
|
}
|
|
670
697
|
get content() {
|
|
671
698
|
return this.input.slice(this.contentRange[0], this.contentRange[1]);
|
|
672
699
|
}
|
|
673
700
|
}
|
|
674
|
-
class
|
|
701
|
+
class Ge extends Ee {
|
|
675
702
|
constructor(e, s, i, r, n) {
|
|
676
|
-
const { trimTagLeft: o, trimTagRight: a, tagDelimiterLeft:
|
|
677
|
-
super(y.Tag, [
|
|
703
|
+
const { trimTagLeft: o, trimTagRight: a, tagDelimiterLeft: l, tagDelimiterRight: c } = r, [h, d] = [s + l.length, i - c.length];
|
|
704
|
+
super(y.Tag, [h, d], e, s, i, o, a, n), this.tokenizer = new A(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
678
705
|
}
|
|
679
706
|
}
|
|
680
|
-
class
|
|
707
|
+
class Os extends Ee {
|
|
681
708
|
constructor(e, s, i, r, n) {
|
|
682
|
-
const { trimOutputLeft: o, trimOutputRight: a, outputDelimiterLeft:
|
|
683
|
-
super(y.Output,
|
|
709
|
+
const { trimOutputLeft: o, trimOutputRight: a, outputDelimiterLeft: l, outputDelimiterRight: c } = r, h = [s + l.length, i - c.length];
|
|
710
|
+
super(y.Output, h, e, s, i, o, a, n);
|
|
684
711
|
}
|
|
685
712
|
}
|
|
686
|
-
class
|
|
713
|
+
class Xe extends z {
|
|
687
714
|
constructor(e, s, i, r) {
|
|
688
715
|
super(y.HTML, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.trimLeft = 0, this.trimRight = 0;
|
|
689
716
|
}
|
|
@@ -691,22 +718,22 @@ class Ze extends R {
|
|
|
691
718
|
return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
|
|
692
719
|
}
|
|
693
720
|
}
|
|
694
|
-
class
|
|
721
|
+
class zs extends z {
|
|
695
722
|
constructor(e, s, i, r) {
|
|
696
723
|
super(y.Number, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Number(this.getText());
|
|
697
724
|
}
|
|
698
725
|
}
|
|
699
|
-
class
|
|
726
|
+
class we extends z {
|
|
700
727
|
constructor(e, s, i, r) {
|
|
701
728
|
super(y.Word, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = this.getText();
|
|
702
729
|
}
|
|
703
730
|
}
|
|
704
|
-
class
|
|
731
|
+
class Rs extends z {
|
|
705
732
|
constructor(e, s, i, r) {
|
|
706
|
-
super(y.Literal, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.literal = this.getText(), this.content =
|
|
733
|
+
super(y.Literal, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.literal = this.getText(), this.content = St[this.literal];
|
|
707
734
|
}
|
|
708
735
|
}
|
|
709
|
-
const
|
|
736
|
+
const Ke = {
|
|
710
737
|
"==": 2,
|
|
711
738
|
"!=": 2,
|
|
712
739
|
">": 2,
|
|
@@ -717,7 +744,7 @@ const Qe = {
|
|
|
717
744
|
not: 1,
|
|
718
745
|
and: 0,
|
|
719
746
|
or: 0
|
|
720
|
-
},
|
|
747
|
+
}, Es = {
|
|
721
748
|
"==": 0,
|
|
722
749
|
"!=": 0,
|
|
723
750
|
">": 0,
|
|
@@ -730,31 +757,31 @@ const Qe = {
|
|
|
730
757
|
or: 0
|
|
731
758
|
/* OperatorType.Binary */
|
|
732
759
|
};
|
|
733
|
-
class
|
|
760
|
+
class Ns extends z {
|
|
734
761
|
constructor(e, s, i, r) {
|
|
735
762
|
super(y.Operator, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.operator = this.getText();
|
|
736
763
|
}
|
|
737
764
|
getPrecedence() {
|
|
738
765
|
const e = this.getText();
|
|
739
|
-
return e in
|
|
766
|
+
return e in Ke ? Ke[e] : 1;
|
|
740
767
|
}
|
|
741
768
|
}
|
|
742
|
-
class
|
|
769
|
+
class et extends z {
|
|
743
770
|
constructor(e, s, i, r, n, o) {
|
|
744
771
|
super(y.PropertyAccess, i, r, n, o), this.variable = e, this.props = s;
|
|
745
772
|
}
|
|
746
773
|
}
|
|
747
|
-
class
|
|
774
|
+
class zt extends z {
|
|
748
775
|
constructor(e, s, i, r, n, o) {
|
|
749
776
|
super(y.Filter, i, r, n, o), this.name = e, this.args = s;
|
|
750
777
|
}
|
|
751
778
|
}
|
|
752
|
-
class
|
|
779
|
+
class As extends z {
|
|
753
780
|
constructor(e, s, i, r, n, o) {
|
|
754
781
|
super(y.Hash, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.name = r, this.value = n, this.file = o;
|
|
755
782
|
}
|
|
756
783
|
}
|
|
757
|
-
const
|
|
784
|
+
const Ds = /[\da-fA-F]/, tt = /[0-7]/, st = {
|
|
758
785
|
b: "\b",
|
|
759
786
|
f: "\f",
|
|
760
787
|
n: `
|
|
@@ -763,101 +790,80 @@ const _s = /[\da-fA-F]/, Xe = /[0-7]/, Ke = {
|
|
|
763
790
|
t: " ",
|
|
764
791
|
v: "\v"
|
|
765
792
|
};
|
|
766
|
-
function
|
|
793
|
+
function it(t) {
|
|
767
794
|
const e = t.charCodeAt(0);
|
|
768
795
|
return e >= 97 ? e - 87 : e >= 65 ? e - 55 : e - 48;
|
|
769
796
|
}
|
|
770
|
-
function
|
|
797
|
+
function Ms(t) {
|
|
771
798
|
let e = "";
|
|
772
799
|
for (let s = 1; s < t.length - 1; s++) {
|
|
773
800
|
if (t[s] !== "\\") {
|
|
774
801
|
e += t[s];
|
|
775
802
|
continue;
|
|
776
803
|
}
|
|
777
|
-
if (
|
|
778
|
-
e +=
|
|
804
|
+
if (st[t[s + 1]] !== void 0)
|
|
805
|
+
e += st[t[++s]];
|
|
779
806
|
else if (t[s + 1] === "u") {
|
|
780
807
|
let i = 0, r = s + 2;
|
|
781
|
-
for (; r <= s + 5 &&
|
|
782
|
-
i = i * 16 +
|
|
808
|
+
for (; r <= s + 5 && Ds.test(t[r]); )
|
|
809
|
+
i = i * 16 + it(t[r++]);
|
|
783
810
|
s = r - 1, e += String.fromCharCode(i);
|
|
784
|
-
} else if (!
|
|
811
|
+
} else if (!tt.test(t[s + 1]))
|
|
785
812
|
e += t[++s];
|
|
786
813
|
else {
|
|
787
814
|
let i = s + 1, r = 0;
|
|
788
|
-
for (; i <= s + 3 &&
|
|
789
|
-
r = r * 8 +
|
|
815
|
+
for (; i <= s + 3 && tt.test(t[i]); )
|
|
816
|
+
r = r * 8 + it(t[i++]);
|
|
790
817
|
s = i - 1, e += String.fromCharCode(r);
|
|
791
818
|
}
|
|
792
819
|
}
|
|
793
820
|
return e;
|
|
794
821
|
}
|
|
795
|
-
class
|
|
822
|
+
class Vs extends z {
|
|
796
823
|
constructor(e, s, i, r) {
|
|
797
|
-
super(y.Quoted, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content =
|
|
824
|
+
super(y.Quoted, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Ms(this.getText());
|
|
798
825
|
}
|
|
799
826
|
}
|
|
800
|
-
class
|
|
827
|
+
class qs extends z {
|
|
801
828
|
constructor(e, s, i, r, n, o) {
|
|
802
829
|
super(y.Range, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.lhs = r, this.rhs = n, this.file = o;
|
|
803
830
|
}
|
|
804
831
|
}
|
|
805
|
-
class
|
|
832
|
+
class js extends Ee {
|
|
806
833
|
constructor(e, s, i, r, n) {
|
|
807
|
-
super(y.Tag, [s, i], e, s, i, !1, !1, n), this.tokenizer = new
|
|
834
|
+
super(y.Tag, [s, i], e, s, i, !1, !1, n), this.tokenizer = new A(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
|
|
808
835
|
}
|
|
809
836
|
get args() {
|
|
810
837
|
return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
811
838
|
}
|
|
812
839
|
}
|
|
813
|
-
class
|
|
840
|
+
class Cs extends z {
|
|
814
841
|
constructor(e, s, i, r, n, o) {
|
|
815
842
|
super(y.FilteredValue, i, r, n, o), this.initial = e, this.filters = s, this.input = i, this.begin = r, this.end = n, this.file = o;
|
|
816
843
|
}
|
|
817
844
|
}
|
|
818
|
-
const
|
|
845
|
+
const $s = {
|
|
819
846
|
now: () => Date.now()
|
|
820
847
|
};
|
|
821
|
-
function
|
|
822
|
-
return typeof global == "object" && global.performance || typeof window == "object" && window.performance ||
|
|
848
|
+
function Rt() {
|
|
849
|
+
return typeof global == "object" && global.performance || typeof window == "object" && window.performance || $s;
|
|
823
850
|
}
|
|
824
|
-
class
|
|
825
|
-
constructor() {
|
|
826
|
-
this.buffer = "";
|
|
827
|
-
}
|
|
828
|
-
write(e) {
|
|
829
|
-
this.buffer += u(e);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
class As {
|
|
833
|
-
constructor() {
|
|
834
|
-
throw this.buffer = "", this.stream = null, new Error("streaming not supported in browser");
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
class Ds {
|
|
838
|
-
constructor() {
|
|
839
|
-
this.buffer = "";
|
|
840
|
-
}
|
|
841
|
-
write(e) {
|
|
842
|
-
e = d(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = u(this.buffer) + u(e);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
class Ms {
|
|
851
|
+
class Ps {
|
|
846
852
|
renderTemplatesToNodeStream(e, s) {
|
|
847
|
-
const i = new
|
|
848
|
-
return Promise.resolve().then(() =>
|
|
853
|
+
const i = new ps();
|
|
854
|
+
return Promise.resolve().then(() => M(this.renderTemplates(e, s, i))).then(() => i.end(), (r) => i.error(r)), i.stream;
|
|
849
855
|
}
|
|
850
856
|
*renderTemplates(e, s, i) {
|
|
851
|
-
i || (i = s.opts.keepOutputType ? new
|
|
857
|
+
i || (i = s.opts.keepOutputType ? new gs() : new xt());
|
|
852
858
|
const r = [];
|
|
853
859
|
for (const n of e) {
|
|
854
|
-
s.renderLimit.check(
|
|
860
|
+
s.renderLimit.check(Rt().now());
|
|
855
861
|
try {
|
|
856
862
|
const o = yield n.render(s, i);
|
|
857
863
|
if (o && i.write(o), s.breakCalled || s.continueCalled)
|
|
858
864
|
break;
|
|
859
865
|
} catch (o) {
|
|
860
|
-
const a = J.is(o) ? o : new
|
|
866
|
+
const a = J.is(o) ? o : new is(o, n);
|
|
861
867
|
if (s.opts.catchAllErrors)
|
|
862
868
|
r.push(a);
|
|
863
869
|
else
|
|
@@ -865,22 +871,22 @@ class Ms {
|
|
|
865
871
|
}
|
|
866
872
|
}
|
|
867
873
|
if (r.length)
|
|
868
|
-
throw new
|
|
874
|
+
throw new kt(r);
|
|
869
875
|
return i.buffer;
|
|
870
876
|
}
|
|
871
877
|
}
|
|
872
|
-
class
|
|
878
|
+
class Is {
|
|
873
879
|
constructor(e) {
|
|
874
|
-
this.postfix = [...
|
|
880
|
+
this.postfix = [...Ws(e)];
|
|
875
881
|
}
|
|
876
882
|
*evaluate(e, s) {
|
|
877
883
|
_(e, "unable to evaluate: context not defined");
|
|
878
884
|
const i = [];
|
|
879
885
|
for (const r of this.postfix)
|
|
880
|
-
if (
|
|
886
|
+
if (qt(r)) {
|
|
881
887
|
const n = i.pop();
|
|
882
888
|
let o;
|
|
883
|
-
if (
|
|
889
|
+
if (Es[r.operator] === 1)
|
|
884
890
|
o = yield e.opts.operators[r.operator](n, e);
|
|
885
891
|
else {
|
|
886
892
|
const a = i.pop();
|
|
@@ -900,12 +906,12 @@ function* T(t, e, s = !1) {
|
|
|
900
906
|
if ("content" in t)
|
|
901
907
|
return t.content;
|
|
902
908
|
if (fe(t))
|
|
903
|
-
return yield
|
|
904
|
-
if (
|
|
905
|
-
return yield
|
|
909
|
+
return yield Bs(t, e, s);
|
|
910
|
+
if (jt(t))
|
|
911
|
+
return yield Hs(t, e);
|
|
906
912
|
}
|
|
907
913
|
}
|
|
908
|
-
function*
|
|
914
|
+
function* Bs(t, e, s) {
|
|
909
915
|
const i = [];
|
|
910
916
|
for (const r of t.props)
|
|
911
917
|
i.push(yield T(r, e, !1));
|
|
@@ -918,20 +924,20 @@ function* qs(t, e, s) {
|
|
|
918
924
|
} catch (r) {
|
|
919
925
|
if (s && r.name === "InternalUndefinedVariableError")
|
|
920
926
|
return null;
|
|
921
|
-
throw new
|
|
927
|
+
throw new rs(r, t);
|
|
922
928
|
}
|
|
923
929
|
}
|
|
924
|
-
function
|
|
930
|
+
function Us(t) {
|
|
925
931
|
return t.content;
|
|
926
932
|
}
|
|
927
|
-
function*
|
|
933
|
+
function* Hs(t, e) {
|
|
928
934
|
const s = yield T(t.lhs, e), i = yield T(t.rhs, e);
|
|
929
|
-
return e.memoryLimit.use(i - s + 1),
|
|
935
|
+
return e.memoryLimit.use(i - s + 1), wt(+s, +i + 1);
|
|
930
936
|
}
|
|
931
|
-
function*
|
|
937
|
+
function* Ws(t) {
|
|
932
938
|
const e = [];
|
|
933
939
|
for (const s of t)
|
|
934
|
-
if (
|
|
940
|
+
if (qt(s)) {
|
|
935
941
|
for (; e.length && e[e.length - 1].getPrecedence() > s.getPrecedence(); )
|
|
936
942
|
yield e.pop();
|
|
937
943
|
e.push(s);
|
|
@@ -941,46 +947,46 @@ function* js(t) {
|
|
|
941
947
|
yield e.pop();
|
|
942
948
|
}
|
|
943
949
|
function B(t, e) {
|
|
944
|
-
return !
|
|
945
|
-
}
|
|
946
|
-
function
|
|
947
|
-
return t =
|
|
948
|
-
}
|
|
949
|
-
const
|
|
950
|
-
"==":
|
|
951
|
-
"!=": (t, e) => !
|
|
952
|
-
">": (t, e) =>
|
|
953
|
-
"<": (t, e) =>
|
|
954
|
-
">=": (t, e) =>
|
|
955
|
-
"<=": (t, e) =>
|
|
956
|
-
contains: (t, e) => (t =
|
|
957
|
-
not: (t, e) =>
|
|
958
|
-
and: (t, e, s) => B(
|
|
959
|
-
or: (t, e, s) => B(
|
|
950
|
+
return !me(t, e);
|
|
951
|
+
}
|
|
952
|
+
function me(t, e) {
|
|
953
|
+
return t = p(t), e.opts.jsTruthy ? !t : t === !1 || t === void 0 || t === null;
|
|
954
|
+
}
|
|
955
|
+
const Ys = {
|
|
956
|
+
"==": q,
|
|
957
|
+
"!=": (t, e) => !q(t, e),
|
|
958
|
+
">": (t, e) => N(t) ? t.gt(e) : N(e) ? e.lt(t) : p(t) > p(e),
|
|
959
|
+
"<": (t, e) => N(t) ? t.lt(e) : N(e) ? e.gt(t) : p(t) < p(e),
|
|
960
|
+
">=": (t, e) => N(t) ? t.geq(e) : N(e) ? e.leq(t) : p(t) >= p(e),
|
|
961
|
+
"<=": (t, e) => N(t) ? t.leq(e) : N(e) ? e.geq(t) : p(t) <= p(e),
|
|
962
|
+
contains: (t, e) => (t = p(t), S(t) ? t.some((s) => q(s, e)) : v(t?.indexOf) ? t.indexOf(p(e)) > -1 : !1),
|
|
963
|
+
not: (t, e) => me(p(t), e),
|
|
964
|
+
and: (t, e, s) => B(p(t), s) && B(p(e), s),
|
|
965
|
+
or: (t, e, s) => B(p(t), s) || B(p(e), s)
|
|
960
966
|
};
|
|
961
|
-
function
|
|
962
|
-
return
|
|
967
|
+
function q(t, e) {
|
|
968
|
+
return N(t) ? t.equals(e) : N(e) ? e.equals(t) : (t = p(t), e = p(e), S(t) ? S(e) && Js(t, e) : t === e);
|
|
963
969
|
}
|
|
964
|
-
function
|
|
965
|
-
return t.length !== e.length ? !1 : !t.some((s, i) => !
|
|
970
|
+
function Js(t, e) {
|
|
971
|
+
return t.length !== e.length ? !1 : !t.some((s, i) => !q(s, e[i]));
|
|
966
972
|
}
|
|
967
|
-
function
|
|
968
|
-
return t.some((s) =>
|
|
973
|
+
function Zs(t, e) {
|
|
974
|
+
return t.some((s) => q(s, e));
|
|
969
975
|
}
|
|
970
|
-
class
|
|
976
|
+
class be {
|
|
971
977
|
constructor(e, s, i, r) {
|
|
972
978
|
this.key = e, this.value = s, this.next = i, this.prev = r;
|
|
973
979
|
}
|
|
974
980
|
}
|
|
975
|
-
class
|
|
981
|
+
class rt {
|
|
976
982
|
constructor(e, s = 0) {
|
|
977
|
-
this.limit = e, this.size = s, this.cache = {}, this.head = new
|
|
983
|
+
this.limit = e, this.size = s, this.cache = {}, this.head = new be("HEAD", null, null, null), this.tail = new be("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
|
|
978
984
|
}
|
|
979
985
|
write(e, s) {
|
|
980
986
|
if (this.cache[e])
|
|
981
987
|
this.cache[e].value = s;
|
|
982
988
|
else {
|
|
983
|
-
const i = new
|
|
989
|
+
const i = new be(e, s, this.head.next, this.head);
|
|
984
990
|
this.head.next.prev = i, this.head.next = i, this.cache[e] = i, this.size++, this.ensureLimit();
|
|
985
991
|
}
|
|
986
992
|
}
|
|
@@ -1001,7 +1007,7 @@ class tt {
|
|
|
1001
1007
|
this.size > this.limit && this.remove(this.tail.prev.key);
|
|
1002
1008
|
}
|
|
1003
1009
|
}
|
|
1004
|
-
function
|
|
1010
|
+
function Et(t, e) {
|
|
1005
1011
|
const s = document.createElement("base");
|
|
1006
1012
|
s.href = t;
|
|
1007
1013
|
const i = document.getElementsByTagName("head")[0];
|
|
@@ -1011,13 +1017,13 @@ function Lt(t, e) {
|
|
|
1011
1017
|
const n = r.href;
|
|
1012
1018
|
return i.removeChild(s), n;
|
|
1013
1019
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return t.length &&
|
|
1020
|
+
function Qs(t, e, s) {
|
|
1021
|
+
return t.length && yt(t) !== "/" && (t += "/"), Et(t, e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (r, n, o) => {
|
|
1016
1022
|
const a = o.split("/").pop();
|
|
1017
1023
|
return /\.\w+$/.test(a) ? r : n + o + s;
|
|
1018
1024
|
});
|
|
1019
1025
|
}
|
|
1020
|
-
function
|
|
1026
|
+
function Gs(t) {
|
|
1021
1027
|
return k(this, void 0, void 0, function* () {
|
|
1022
1028
|
return new Promise((e, s) => {
|
|
1023
1029
|
const i = new XMLHttpRequest();
|
|
@@ -1029,41 +1035,41 @@ function Hs(t) {
|
|
|
1029
1035
|
});
|
|
1030
1036
|
});
|
|
1031
1037
|
}
|
|
1032
|
-
function
|
|
1038
|
+
function Xs(t) {
|
|
1033
1039
|
const e = new XMLHttpRequest();
|
|
1034
1040
|
if (e.open("GET", t, !1), e.send(), e.status < 200 || e.status >= 300)
|
|
1035
1041
|
throw new Error(e.statusText);
|
|
1036
1042
|
return e.responseText;
|
|
1037
1043
|
}
|
|
1038
|
-
function
|
|
1044
|
+
function Ks(t) {
|
|
1039
1045
|
return k(this, void 0, void 0, function* () {
|
|
1040
1046
|
return !0;
|
|
1041
1047
|
});
|
|
1042
1048
|
}
|
|
1043
|
-
function
|
|
1049
|
+
function ei(t) {
|
|
1044
1050
|
return !0;
|
|
1045
1051
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return
|
|
1052
|
+
function ti(t) {
|
|
1053
|
+
return Et(t, ".");
|
|
1048
1054
|
}
|
|
1049
|
-
const
|
|
1050
|
-
var
|
|
1055
|
+
const si = "/";
|
|
1056
|
+
var ii = /* @__PURE__ */ Object.freeze({
|
|
1051
1057
|
__proto__: null,
|
|
1052
|
-
resolve:
|
|
1053
|
-
readFile:
|
|
1054
|
-
readFileSync:
|
|
1055
|
-
exists:
|
|
1056
|
-
existsSync:
|
|
1057
|
-
dirname:
|
|
1058
|
-
sep:
|
|
1058
|
+
resolve: Qs,
|
|
1059
|
+
readFile: Gs,
|
|
1060
|
+
readFileSync: Xs,
|
|
1061
|
+
exists: Ks,
|
|
1062
|
+
existsSync: ei,
|
|
1063
|
+
dirname: ti,
|
|
1064
|
+
sep: si
|
|
1059
1065
|
});
|
|
1060
|
-
function
|
|
1061
|
-
return t =
|
|
1066
|
+
function ri(t, e, ...s) {
|
|
1067
|
+
return t = p(t), S(t) || f(t) ? t.length ? t : e : t === !1 && new Map(s).get("allow_false") ? !1 : me(t, this.context) ? e : t;
|
|
1062
1068
|
}
|
|
1063
|
-
function
|
|
1069
|
+
function nt(t, e = 0) {
|
|
1064
1070
|
return JSON.stringify(t, null, e);
|
|
1065
1071
|
}
|
|
1066
|
-
function
|
|
1072
|
+
function ni(t, e = 0) {
|
|
1067
1073
|
const s = [];
|
|
1068
1074
|
return JSON.stringify(t, function(i, r) {
|
|
1069
1075
|
if (typeof r != "object" || r === null)
|
|
@@ -1073,64 +1079,64 @@ function Ks(t, e = 0) {
|
|
|
1073
1079
|
return s.includes(r) ? "[Circular]" : (s.push(r), r);
|
|
1074
1080
|
}, e);
|
|
1075
1081
|
}
|
|
1076
|
-
function
|
|
1082
|
+
function oi(t) {
|
|
1077
1083
|
return Number(t);
|
|
1078
1084
|
}
|
|
1079
|
-
const
|
|
1085
|
+
const ai = {
|
|
1080
1086
|
raw: !0,
|
|
1081
|
-
handler:
|
|
1087
|
+
handler: Tt
|
|
1082
1088
|
};
|
|
1083
|
-
var
|
|
1084
|
-
default:
|
|
1085
|
-
raw:
|
|
1086
|
-
jsonify:
|
|
1087
|
-
to_integer:
|
|
1088
|
-
json:
|
|
1089
|
-
inspect:
|
|
1089
|
+
var Nt = {
|
|
1090
|
+
default: ri,
|
|
1091
|
+
raw: ai,
|
|
1092
|
+
jsonify: nt,
|
|
1093
|
+
to_integer: oi,
|
|
1094
|
+
json: nt,
|
|
1095
|
+
inspect: ni
|
|
1090
1096
|
};
|
|
1091
|
-
const
|
|
1097
|
+
const li = {
|
|
1092
1098
|
"&": "&",
|
|
1093
1099
|
"<": "<",
|
|
1094
1100
|
">": ">",
|
|
1095
1101
|
'"': """,
|
|
1096
1102
|
"'": "'"
|
|
1097
|
-
},
|
|
1103
|
+
}, hi = {
|
|
1098
1104
|
"&": "&",
|
|
1099
1105
|
"<": "<",
|
|
1100
1106
|
">": ">",
|
|
1101
1107
|
""": '"',
|
|
1102
1108
|
"'": "'"
|
|
1103
1109
|
};
|
|
1104
|
-
function
|
|
1105
|
-
return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&|<|>|"|'/g, (e) =>
|
|
1110
|
+
function ye(t) {
|
|
1111
|
+
return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&|<|>|"|'/g, (e) => li[e]);
|
|
1106
1112
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1113
|
+
function ci(t) {
|
|
1114
|
+
return ye.call(this, t);
|
|
1109
1115
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&(amp|lt|gt|#34|#39);/g, (e) =>
|
|
1116
|
+
function ui(t) {
|
|
1117
|
+
return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&(amp|lt|gt|#34|#39);/g, (e) => hi[e]);
|
|
1112
1118
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
1119
|
+
function fi(t) {
|
|
1120
|
+
return ye.call(this, ui.call(this, t));
|
|
1115
1121
|
}
|
|
1116
|
-
function
|
|
1122
|
+
function di(t) {
|
|
1117
1123
|
const e = u(t);
|
|
1118
1124
|
return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, `<br />
|
|
1119
1125
|
`);
|
|
1120
1126
|
}
|
|
1121
|
-
function
|
|
1127
|
+
function pi(t) {
|
|
1122
1128
|
const e = u(t);
|
|
1123
1129
|
return this.context.memoryLimit.use(e.length), e.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, "");
|
|
1124
1130
|
}
|
|
1125
|
-
var
|
|
1131
|
+
var gi = /* @__PURE__ */ Object.freeze({
|
|
1126
1132
|
__proto__: null,
|
|
1127
|
-
escape:
|
|
1128
|
-
xml_escape:
|
|
1129
|
-
escape_once:
|
|
1130
|
-
newline_to_br:
|
|
1131
|
-
strip_html:
|
|
1133
|
+
escape: ye,
|
|
1134
|
+
xml_escape: ci,
|
|
1135
|
+
escape_once: fi,
|
|
1136
|
+
newline_to_br: di,
|
|
1137
|
+
strip_html: pi
|
|
1132
1138
|
});
|
|
1133
|
-
class
|
|
1139
|
+
class mi {
|
|
1134
1140
|
constructor(e) {
|
|
1135
1141
|
this.mapping = e, this.sep = "/";
|
|
1136
1142
|
}
|
|
@@ -1140,7 +1146,7 @@ class ci {
|
|
|
1140
1146
|
});
|
|
1141
1147
|
}
|
|
1142
1148
|
existsSync(e) {
|
|
1143
|
-
return !
|
|
1149
|
+
return !O(this.mapping[e]);
|
|
1144
1150
|
}
|
|
1145
1151
|
readFile(e) {
|
|
1146
1152
|
return k(this, void 0, void 0, function* () {
|
|
@@ -1149,7 +1155,7 @@ class ci {
|
|
|
1149
1155
|
}
|
|
1150
1156
|
readFileSync(e) {
|
|
1151
1157
|
const s = this.mapping[e];
|
|
1152
|
-
if (
|
|
1158
|
+
if (O(s))
|
|
1153
1159
|
throw new Error(`ENOENT: ${e}`);
|
|
1154
1160
|
return s;
|
|
1155
1161
|
}
|
|
@@ -1175,7 +1181,7 @@ const Q = {
|
|
|
1175
1181
|
keyValueSeparator: ":",
|
|
1176
1182
|
cache: void 0,
|
|
1177
1183
|
extname: "",
|
|
1178
|
-
fs:
|
|
1184
|
+
fs: ii,
|
|
1179
1185
|
dynamicPartials: !0,
|
|
1180
1186
|
jsTruthy: !1,
|
|
1181
1187
|
dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
|
|
@@ -1196,55 +1202,55 @@ const Q = {
|
|
|
1196
1202
|
lenientIf: !1,
|
|
1197
1203
|
globals: {},
|
|
1198
1204
|
keepOutputType: !1,
|
|
1199
|
-
operators:
|
|
1205
|
+
operators: Ys,
|
|
1200
1206
|
memoryLimit: 1 / 0,
|
|
1201
1207
|
parseLimit: 1 / 0,
|
|
1202
1208
|
renderLimit: 1 / 0
|
|
1203
1209
|
};
|
|
1204
|
-
function
|
|
1210
|
+
function yi(t) {
|
|
1205
1211
|
var e, s;
|
|
1206
1212
|
if (t.hasOwnProperty("root") && (t.hasOwnProperty("partials") || (t.partials = t.root), t.hasOwnProperty("layouts") || (t.layouts = t.root)), t.hasOwnProperty("cache")) {
|
|
1207
1213
|
let i;
|
|
1208
|
-
typeof t.cache == "number" ? i = t.cache > 0 ? new
|
|
1214
|
+
typeof t.cache == "number" ? i = t.cache > 0 ? new rt(t.cache) : void 0 : typeof t.cache == "object" ? i = t.cache : i = t.cache ? new rt(1024) : void 0, t.cache = i;
|
|
1209
1215
|
}
|
|
1210
|
-
return t = Object.assign(Object.assign(Object.assign({}, Q), t.jekyllInclude ? { dynamicPartials: !1 } : {}), t), (!t.fs.dirname || !t.fs.sep) && t.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), t.relativeReference = !1), t.root = ae(t.root), t.partials = ae(t.partials), t.layouts = ae(t.layouts), t.outputEscape = t.outputEscape &&
|
|
1216
|
+
return t = Object.assign(Object.assign(Object.assign({}, Q), t.jekyllInclude ? { dynamicPartials: !1 } : {}), t), (!t.fs.dirname || !t.fs.sep) && t.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), t.relativeReference = !1), t.root = ae(t.root), t.partials = ae(t.partials), t.layouts = ae(t.layouts), t.outputEscape = t.outputEscape && wi(t.outputEscape), t.locale || (t.locale = (s = (e = Ft()) === null || e === void 0 ? void 0 : e().resolvedOptions().locale) !== null && s !== void 0 ? s : "en-US"), t.templates && (t.fs = new mi(t.templates), t.relativeReference = !0, t.root = t.partials = t.layouts = "."), t;
|
|
1211
1217
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return t === "escape" ?
|
|
1218
|
+
function wi(t) {
|
|
1219
|
+
return t === "escape" ? ye : t === "json" ? Nt.json : (_(v(t), "`outputEscape` need to be of type string or function"), t);
|
|
1214
1220
|
}
|
|
1215
1221
|
function ae(t) {
|
|
1216
1222
|
let e = [];
|
|
1217
|
-
return
|
|
1223
|
+
return S(t) && (e = t), f(t) && (e = [t]), e;
|
|
1218
1224
|
}
|
|
1219
|
-
function
|
|
1225
|
+
function bi(t, e) {
|
|
1220
1226
|
let s = !1;
|
|
1221
1227
|
for (let i = 0; i < t.length; i++) {
|
|
1222
1228
|
const r = t[i];
|
|
1223
|
-
|
|
1229
|
+
Oi(r) && (!s && r.trimLeft && Ti(t[i - 1], e.greedy), Z(r) && (r.name === "raw" ? s = !0 : r.name === "endraw" && (s = !1)), !s && r.trimRight && ki(t[i + 1], e.greedy));
|
|
1224
1230
|
}
|
|
1225
1231
|
}
|
|
1226
|
-
function
|
|
1227
|
-
if (!t || !
|
|
1232
|
+
function Ti(t, e) {
|
|
1233
|
+
if (!t || !Ae(t))
|
|
1228
1234
|
return;
|
|
1229
|
-
const s = e ? X :
|
|
1235
|
+
const s = e ? X : vt;
|
|
1230
1236
|
for (; m[t.input.charCodeAt(t.end - 1 - t.trimRight)] & s; )
|
|
1231
1237
|
t.trimRight++;
|
|
1232
1238
|
}
|
|
1233
|
-
function
|
|
1234
|
-
if (!t || !
|
|
1239
|
+
function ki(t, e) {
|
|
1240
|
+
if (!t || !Ae(t))
|
|
1235
1241
|
return;
|
|
1236
|
-
const s = e ? X :
|
|
1242
|
+
const s = e ? X : vt;
|
|
1237
1243
|
for (; m[t.input.charCodeAt(t.begin + t.trimLeft)] & s; )
|
|
1238
1244
|
t.trimLeft++;
|
|
1239
1245
|
t.input.charAt(t.begin + t.trimLeft) === `
|
|
1240
1246
|
` && t.trimLeft++;
|
|
1241
1247
|
}
|
|
1242
|
-
class
|
|
1248
|
+
class A {
|
|
1243
1249
|
constructor(e, s = Q.operators, i, r) {
|
|
1244
|
-
this.input = e, this.file = i, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie =
|
|
1250
|
+
this.input = e, this.file = i, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = Je(s), this.literalTrie = Je(St);
|
|
1245
1251
|
}
|
|
1246
1252
|
readExpression() {
|
|
1247
|
-
return new
|
|
1253
|
+
return new Is(this.readExpressionTokens());
|
|
1248
1254
|
}
|
|
1249
1255
|
*readExpressionTokens() {
|
|
1250
1256
|
for (; this.p < this.N; ) {
|
|
@@ -1265,7 +1271,7 @@ class M {
|
|
|
1265
1271
|
this.skipBlank();
|
|
1266
1272
|
const e = this.matchTrie(this.opTrie);
|
|
1267
1273
|
if (e !== -1)
|
|
1268
|
-
return new
|
|
1274
|
+
return new Ns(this.input, this.p, this.p = e, this.file);
|
|
1269
1275
|
}
|
|
1270
1276
|
matchTrie(e) {
|
|
1271
1277
|
let s = e, i = this.p, r;
|
|
@@ -1277,7 +1283,7 @@ class M {
|
|
|
1277
1283
|
const e = this.p, s = this.readExpression();
|
|
1278
1284
|
this.assert(s.valid(), `invalid value expression: ${this.snapshot()}`);
|
|
1279
1285
|
const i = this.readFilters();
|
|
1280
|
-
return new
|
|
1286
|
+
return new Cs(s, i, this.input, e, this.p, this.file);
|
|
1281
1287
|
}
|
|
1282
1288
|
readFilters() {
|
|
1283
1289
|
const e = [];
|
|
@@ -1303,7 +1309,7 @@ class M {
|
|
|
1303
1309
|
i && s.push(i), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|", () => `unexpected character ${this.snapshot()}`);
|
|
1304
1310
|
} while (this.peek() === ",");
|
|
1305
1311
|
else if (!(this.peek() === "|" || this.end())) throw this.error('expected ":" after filter name');
|
|
1306
|
-
return new
|
|
1312
|
+
return new zt(e.getText(), s, this.input, e.begin, this.p, this.file);
|
|
1307
1313
|
}
|
|
1308
1314
|
readFilterArg() {
|
|
1309
1315
|
const e = this.readValue();
|
|
@@ -1321,7 +1327,7 @@ class M {
|
|
|
1321
1327
|
const i = this.readTopLevelToken(e);
|
|
1322
1328
|
s.push(i);
|
|
1323
1329
|
}
|
|
1324
|
-
return
|
|
1330
|
+
return bi(s, e), s;
|
|
1325
1331
|
}
|
|
1326
1332
|
readTopLevelToken(e) {
|
|
1327
1333
|
const { tagDelimiterLeft: s, outputDelimiterLeft: i } = e;
|
|
@@ -1331,18 +1337,18 @@ class M {
|
|
|
1331
1337
|
const s = this.p;
|
|
1332
1338
|
for (; this.p < this.N && !e.some((i) => this.match(i)); )
|
|
1333
1339
|
++this.p;
|
|
1334
|
-
return new
|
|
1340
|
+
return new Xe(this.input, s, this.p, this.file);
|
|
1335
1341
|
}
|
|
1336
1342
|
readTagToken(e) {
|
|
1337
1343
|
const { file: s, input: i } = this, r = this.p;
|
|
1338
1344
|
if (this.readToDelimiter(e.tagDelimiterRight) === -1)
|
|
1339
1345
|
throw this.error(`tag ${this.snapshot(r)} not closed`, r);
|
|
1340
|
-
const n = new
|
|
1346
|
+
const n = new Ge(i, r, this.p, e, s);
|
|
1341
1347
|
return n.name === "raw" && (this.rawBeginAt = r), n;
|
|
1342
1348
|
}
|
|
1343
1349
|
readToDelimiter(e, s = !1) {
|
|
1344
1350
|
for (this.skipBlank(); this.p < this.N; ) {
|
|
1345
|
-
if (s && this.peekType() &
|
|
1351
|
+
if (s && this.peekType() & He) {
|
|
1346
1352
|
this.readQuoted();
|
|
1347
1353
|
continue;
|
|
1348
1354
|
}
|
|
@@ -1355,7 +1361,7 @@ class M {
|
|
|
1355
1361
|
const { file: s, input: i } = this, { outputDelimiterRight: r } = e, n = this.p;
|
|
1356
1362
|
if (this.readToDelimiter(r, !0) === -1)
|
|
1357
1363
|
throw this.error(`output ${this.snapshot(n)} not closed`, n);
|
|
1358
|
-
return new
|
|
1364
|
+
return new Os(i, n, this.p, e, s);
|
|
1359
1365
|
}
|
|
1360
1366
|
readEndrawOrRawContent(e) {
|
|
1361
1367
|
const { tagDelimiterLeft: s, tagDelimiterRight: i } = e, r = this.p;
|
|
@@ -1368,7 +1374,7 @@ class M {
|
|
|
1368
1374
|
for (; this.p <= this.N; ) {
|
|
1369
1375
|
if (this.rmatch(i)) {
|
|
1370
1376
|
const o = this.p;
|
|
1371
|
-
return r === n ? (this.rawBeginAt = -1, new
|
|
1377
|
+
return r === n ? (this.rawBeginAt = -1, new Ge(this.input, r, o, e, this.file)) : (this.p = n, new Xe(this.input, r, n, this.file));
|
|
1372
1378
|
}
|
|
1373
1379
|
if (this.rmatch(s))
|
|
1374
1380
|
break;
|
|
@@ -1392,17 +1398,17 @@ class M {
|
|
|
1392
1398
|
this.readToDelimiter(`
|
|
1393
1399
|
`);
|
|
1394
1400
|
const i = this.p;
|
|
1395
|
-
return new
|
|
1401
|
+
return new js(this.input, s, i, e, this.file);
|
|
1396
1402
|
}
|
|
1397
1403
|
error(e, s = this.p) {
|
|
1398
|
-
return new
|
|
1404
|
+
return new ts(e, new we(this.input, s, this.N, this.file));
|
|
1399
1405
|
}
|
|
1400
1406
|
assert(e, s, i) {
|
|
1401
1407
|
if (!e)
|
|
1402
1408
|
throw this.error(typeof s == "function" ? s() : s, i);
|
|
1403
1409
|
}
|
|
1404
1410
|
snapshot(e = this.p) {
|
|
1405
|
-
return JSON.stringify(
|
|
1411
|
+
return JSON.stringify(es(this.input.slice(e, this.N), 32));
|
|
1406
1412
|
}
|
|
1407
1413
|
/**
|
|
1408
1414
|
* @deprecated use #readIdentifier instead
|
|
@@ -1415,7 +1421,7 @@ class M {
|
|
|
1415
1421
|
const e = this.p;
|
|
1416
1422
|
for (; !this.end() && ne(this.peek()); )
|
|
1417
1423
|
++this.p;
|
|
1418
|
-
return new
|
|
1424
|
+
return new we(this.input, e, this.p, this.file);
|
|
1419
1425
|
}
|
|
1420
1426
|
readNonEmptyIdentifier() {
|
|
1421
1427
|
const e = this.readIdentifier();
|
|
@@ -1441,7 +1447,7 @@ class M {
|
|
|
1441
1447
|
let r;
|
|
1442
1448
|
this.skipBlank();
|
|
1443
1449
|
const n = f(e) ? e : e ? "=" : ":";
|
|
1444
|
-
return this.peek() === n && (++this.p, r = this.readValue()), new
|
|
1450
|
+
return this.peek() === n && (++this.p, r = this.readValue()), new As(this.input, s, this.p, i, r, this.file);
|
|
1445
1451
|
}
|
|
1446
1452
|
remaining() {
|
|
1447
1453
|
return this.input.slice(this.p, this.N);
|
|
@@ -1464,20 +1470,20 @@ class M {
|
|
|
1464
1470
|
readValue() {
|
|
1465
1471
|
this.skipBlank();
|
|
1466
1472
|
const e = this.p, s = this.readLiteral() || this.readQuoted() || this.readRange() || this.readNumber(), i = this.readProperties(!s);
|
|
1467
|
-
return i.length ? new
|
|
1473
|
+
return i.length ? new et(s, i, this.input, e, this.p) : s;
|
|
1468
1474
|
}
|
|
1469
1475
|
readScopeValue() {
|
|
1470
1476
|
this.skipBlank();
|
|
1471
1477
|
const e = this.p, s = this.readProperties();
|
|
1472
1478
|
if (s.length)
|
|
1473
|
-
return new
|
|
1479
|
+
return new et(void 0, s, this.input, e, this.p);
|
|
1474
1480
|
}
|
|
1475
1481
|
readProperties(e = !0) {
|
|
1476
1482
|
const s = [];
|
|
1477
1483
|
for (; ; ) {
|
|
1478
1484
|
if (this.peek() === "[") {
|
|
1479
1485
|
this.p++;
|
|
1480
|
-
const i = this.readValue() || new
|
|
1486
|
+
const i = this.readValue() || new we(this.input, this.p, this.p, this.file);
|
|
1481
1487
|
this.assert(this.readTo("]") !== -1, "[ not closed"), s.push(i);
|
|
1482
1488
|
continue;
|
|
1483
1489
|
}
|
|
@@ -1503,8 +1509,8 @@ class M {
|
|
|
1503
1509
|
readNumber() {
|
|
1504
1510
|
this.skipBlank();
|
|
1505
1511
|
let e = !1, s = !1, i = 0;
|
|
1506
|
-
for (this.peekType() &
|
|
1507
|
-
if (this.peekType(i) &
|
|
1512
|
+
for (this.peekType() & us && i++; this.p + i <= this.N; )
|
|
1513
|
+
if (this.peekType(i) & cs)
|
|
1508
1514
|
s = !0, i++;
|
|
1509
1515
|
else if (this.peek(i) === "." && this.peek(i + 1) !== ".") {
|
|
1510
1516
|
if (e || !s)
|
|
@@ -1513,7 +1519,7 @@ class M {
|
|
|
1513
1519
|
} else
|
|
1514
1520
|
break;
|
|
1515
1521
|
if (s && !ne(this.peek(i))) {
|
|
1516
|
-
const r = new
|
|
1522
|
+
const r = new zs(this.input, this.p, this.p + i, this.file);
|
|
1517
1523
|
return this.advance(i), r;
|
|
1518
1524
|
}
|
|
1519
1525
|
}
|
|
@@ -1522,7 +1528,7 @@ class M {
|
|
|
1522
1528
|
const e = this.matchTrie(this.literalTrie);
|
|
1523
1529
|
if (e === -1)
|
|
1524
1530
|
return;
|
|
1525
|
-
const s = new
|
|
1531
|
+
const s = new Rs(this.input, this.p, e, this.file);
|
|
1526
1532
|
return this.p = e, s;
|
|
1527
1533
|
}
|
|
1528
1534
|
readRange() {
|
|
@@ -1534,7 +1540,7 @@ class M {
|
|
|
1534
1540
|
const s = this.readValueOrThrow();
|
|
1535
1541
|
this.skipBlank(), this.assert(this.read() === "." && this.read() === ".", "invalid range syntax");
|
|
1536
1542
|
const i = this.readValueOrThrow();
|
|
1537
|
-
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new
|
|
1543
|
+
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new qs(this.input, e, this.p, s, i, this.file);
|
|
1538
1544
|
}
|
|
1539
1545
|
readValueOrThrow() {
|
|
1540
1546
|
const e = this.readValue();
|
|
@@ -1543,13 +1549,13 @@ class M {
|
|
|
1543
1549
|
readQuoted() {
|
|
1544
1550
|
this.skipBlank();
|
|
1545
1551
|
const e = this.p;
|
|
1546
|
-
if (!(this.peekType() &
|
|
1552
|
+
if (!(this.peekType() & He))
|
|
1547
1553
|
return;
|
|
1548
1554
|
++this.p;
|
|
1549
1555
|
let s = !1;
|
|
1550
1556
|
for (; this.p < this.N && (++this.p, !(this.input[this.p - 1] === this.input[e] && !s)); )
|
|
1551
1557
|
s ? s = !1 : this.input[this.p - 1] === "\\" && (s = !0);
|
|
1552
|
-
return new
|
|
1558
|
+
return new Vs(this.input, e, this.p, this.file);
|
|
1553
1559
|
}
|
|
1554
1560
|
*readFileNameTemplate(e) {
|
|
1555
1561
|
const { outputDelimiterLeft: s } = e, i = [",", " ", s], r = new Set(i);
|
|
@@ -1579,7 +1585,7 @@ class M {
|
|
|
1579
1585
|
++this.p;
|
|
1580
1586
|
}
|
|
1581
1587
|
}
|
|
1582
|
-
class
|
|
1588
|
+
class vi {
|
|
1583
1589
|
constructor(e, s) {
|
|
1584
1590
|
this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = s;
|
|
1585
1591
|
}
|
|
@@ -1605,12 +1611,12 @@ class mi {
|
|
|
1605
1611
|
return this.stopRequested = !0, this;
|
|
1606
1612
|
}
|
|
1607
1613
|
}
|
|
1608
|
-
class
|
|
1614
|
+
class Ne {
|
|
1609
1615
|
constructor(e) {
|
|
1610
1616
|
this.token = e;
|
|
1611
1617
|
}
|
|
1612
1618
|
}
|
|
1613
|
-
class b extends
|
|
1619
|
+
class b extends Ne {
|
|
1614
1620
|
constructor(e, s, i) {
|
|
1615
1621
|
super(e), this.name = e.name, this.liquid = i, this.tokenizer = e.tokenizer;
|
|
1616
1622
|
}
|
|
@@ -1618,7 +1624,7 @@ class b extends Re {
|
|
|
1618
1624
|
class ee {
|
|
1619
1625
|
constructor(e, s) {
|
|
1620
1626
|
this.hash = {};
|
|
1621
|
-
const i = e instanceof
|
|
1627
|
+
const i = e instanceof A ? e : new A(e, {});
|
|
1622
1628
|
for (const r of i.readHashes(s))
|
|
1623
1629
|
this.hash[r.name.content] = r.value;
|
|
1624
1630
|
}
|
|
@@ -1629,7 +1635,7 @@ class ee {
|
|
|
1629
1635
|
return s;
|
|
1630
1636
|
}
|
|
1631
1637
|
}
|
|
1632
|
-
function
|
|
1638
|
+
function xi(t) {
|
|
1633
1639
|
return class extends b {
|
|
1634
1640
|
constructor(e, s, i) {
|
|
1635
1641
|
super(e, s, i), v(t.parse) && t.parse.call(this, e, s);
|
|
@@ -1640,17 +1646,17 @@ function yi(t) {
|
|
|
1640
1646
|
}
|
|
1641
1647
|
};
|
|
1642
1648
|
}
|
|
1643
|
-
function
|
|
1644
|
-
return
|
|
1649
|
+
function At(t) {
|
|
1650
|
+
return S(t);
|
|
1645
1651
|
}
|
|
1646
|
-
class
|
|
1652
|
+
class Dt {
|
|
1647
1653
|
constructor(e, s, i) {
|
|
1648
|
-
this.token = e, this.name = e.name, this.handler = v(s) ? s : v(s
|
|
1654
|
+
this.token = e, this.name = e.name, this.handler = v(s) ? s : v(s?.handler) ? s.handler : Tt, this.raw = !v(s) && !!s?.raw, this.args = e.args, this.liquid = i;
|
|
1649
1655
|
}
|
|
1650
1656
|
*render(e, s) {
|
|
1651
1657
|
const i = [];
|
|
1652
1658
|
for (const r of this.args)
|
|
1653
|
-
|
|
1659
|
+
At(r) ? i.push([r[0], yield T(r[1], s)]) : i.push(yield T(r, s));
|
|
1654
1660
|
return yield this.handler.apply({ context: s, token: this.token, liquid: this.liquid }, [e, ...i]);
|
|
1655
1661
|
}
|
|
1656
1662
|
}
|
|
@@ -1660,8 +1666,8 @@ class L {
|
|
|
1660
1666
|
*/
|
|
1661
1667
|
constructor(e, s) {
|
|
1662
1668
|
this.filters = [];
|
|
1663
|
-
const i = typeof e == "string" ? new
|
|
1664
|
-
this.initial = i.initial, this.filters = i.filters.map((r) => new
|
|
1669
|
+
const i = typeof e == "string" ? new A(e, s.options.operators).readFilteredValue() : e;
|
|
1670
|
+
this.initial = i.initial, this.filters = i.filters.map((r) => new Dt(r, this.getFilter(s, r.name), s));
|
|
1665
1671
|
}
|
|
1666
1672
|
*value(e, s) {
|
|
1667
1673
|
s = s || e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
|
|
@@ -1675,16 +1681,16 @@ class L {
|
|
|
1675
1681
|
return _(i || !e.options.strictFilters, () => `undefined filter: ${s}`), i;
|
|
1676
1682
|
}
|
|
1677
1683
|
}
|
|
1678
|
-
class
|
|
1684
|
+
class Si extends Ne {
|
|
1679
1685
|
constructor(e, s) {
|
|
1680
1686
|
var i;
|
|
1681
1687
|
super(e);
|
|
1682
|
-
const r = new
|
|
1688
|
+
const r = new A(e.input, s.options.operators, e.file, e.contentRange);
|
|
1683
1689
|
this.value = new L(r.readFilteredValue(), s);
|
|
1684
1690
|
const n = this.value.filters, o = s.options.outputEscape;
|
|
1685
1691
|
if (!(!((i = n[n.length - 1]) === null || i === void 0) && i.raw) && o) {
|
|
1686
|
-
const a = new
|
|
1687
|
-
n.push(new
|
|
1692
|
+
const a = new zt(toString.call(o), [], "", 0, 0);
|
|
1693
|
+
n.push(new Dt(a, o, s));
|
|
1688
1694
|
}
|
|
1689
1695
|
}
|
|
1690
1696
|
*render(e, s) {
|
|
@@ -1695,7 +1701,7 @@ class wi extends Re {
|
|
|
1695
1701
|
yield this.value;
|
|
1696
1702
|
}
|
|
1697
1703
|
}
|
|
1698
|
-
class
|
|
1704
|
+
class _i extends Ne {
|
|
1699
1705
|
constructor(e) {
|
|
1700
1706
|
super(e), this.str = e.getContent();
|
|
1701
1707
|
}
|
|
@@ -1719,7 +1725,7 @@ class H {
|
|
|
1719
1725
|
return Array.from(e(...this.segments));
|
|
1720
1726
|
}
|
|
1721
1727
|
}
|
|
1722
|
-
class
|
|
1728
|
+
class Te {
|
|
1723
1729
|
constructor() {
|
|
1724
1730
|
this.map = /* @__PURE__ */ new Map();
|
|
1725
1731
|
}
|
|
@@ -1737,82 +1743,82 @@ class be {
|
|
|
1737
1743
|
return Object.fromEntries(this.map);
|
|
1738
1744
|
}
|
|
1739
1745
|
}
|
|
1740
|
-
const
|
|
1746
|
+
const Mt = {
|
|
1741
1747
|
partials: !0
|
|
1742
1748
|
};
|
|
1743
|
-
function*
|
|
1744
|
-
const i = new
|
|
1745
|
-
function h
|
|
1746
|
-
i.push(
|
|
1747
|
-
const g =
|
|
1749
|
+
function* Vt(t, e, s) {
|
|
1750
|
+
const i = new Te(), r = new Te(), n = new Te(), o = new ot(/* @__PURE__ */ new Set()), a = /* @__PURE__ */ new Set();
|
|
1751
|
+
function l(h, d) {
|
|
1752
|
+
i.push(h);
|
|
1753
|
+
const g = d.alias(h);
|
|
1748
1754
|
if (g !== void 0) {
|
|
1749
1755
|
const w = g.segments[0];
|
|
1750
1756
|
f(w) && !o.has(w) && r.push(g);
|
|
1751
1757
|
} else {
|
|
1752
|
-
const w =
|
|
1753
|
-
f(w) && !
|
|
1758
|
+
const w = h.segments[0];
|
|
1759
|
+
f(w) && !d.has(w) && r.push(h);
|
|
1754
1760
|
}
|
|
1755
|
-
for (const w of
|
|
1756
|
-
w instanceof H &&
|
|
1757
|
-
}
|
|
1758
|
-
function* c(
|
|
1759
|
-
if (
|
|
1760
|
-
for (const g of
|
|
1761
|
-
for (const w of
|
|
1762
|
-
|
|
1763
|
-
if (
|
|
1764
|
-
for (const g of
|
|
1765
|
-
|
|
1761
|
+
for (const w of h.segments)
|
|
1762
|
+
w instanceof H && l(w, d);
|
|
1763
|
+
}
|
|
1764
|
+
function* c(h, d) {
|
|
1765
|
+
if (h.arguments)
|
|
1766
|
+
for (const g of h.arguments())
|
|
1767
|
+
for (const w of at(g))
|
|
1768
|
+
l(w, d);
|
|
1769
|
+
if (h.localScope)
|
|
1770
|
+
for (const g of h.localScope()) {
|
|
1771
|
+
d.add(g.content), d.deleteAlias(g.content);
|
|
1766
1772
|
const [w, te] = g.getPosition();
|
|
1767
1773
|
n.push(new H([g.content], { row: w, col: te, file: g.file }));
|
|
1768
1774
|
}
|
|
1769
|
-
if (
|
|
1770
|
-
if (
|
|
1771
|
-
const g =
|
|
1775
|
+
if (h.children)
|
|
1776
|
+
if (h.partialScope) {
|
|
1777
|
+
const g = h.partialScope();
|
|
1772
1778
|
if (g === void 0) {
|
|
1773
|
-
for (const
|
|
1774
|
-
yield c(
|
|
1779
|
+
for (const $ of yield h.children(e, s))
|
|
1780
|
+
yield c($, d);
|
|
1775
1781
|
return;
|
|
1776
1782
|
}
|
|
1777
1783
|
if (a.has(g.name))
|
|
1778
1784
|
return;
|
|
1779
|
-
const w = /* @__PURE__ */ new Set(), te = g.isolated ? new
|
|
1780
|
-
for (const
|
|
1781
|
-
if (f(
|
|
1782
|
-
w.add(
|
|
1785
|
+
const w = /* @__PURE__ */ new Set(), te = g.isolated ? new ot(w) : d.push(w);
|
|
1786
|
+
for (const $ of g.scope)
|
|
1787
|
+
if (f($))
|
|
1788
|
+
w.add($);
|
|
1783
1789
|
else {
|
|
1784
|
-
const [
|
|
1785
|
-
w.add(
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1790
|
+
const [Ce, Wt] = $;
|
|
1791
|
+
w.add(Ce);
|
|
1792
|
+
const $e = Array.from(at(Wt));
|
|
1793
|
+
$e.length && te.setAlias(Ce, $e[0].segments);
|
|
1788
1794
|
}
|
|
1789
|
-
for (const
|
|
1790
|
-
yield c(
|
|
1795
|
+
for (const $ of yield h.children(e, s))
|
|
1796
|
+
yield c($, te), a.add(g.name);
|
|
1791
1797
|
te.pop();
|
|
1792
1798
|
} else {
|
|
1793
|
-
|
|
1794
|
-
for (const g of yield
|
|
1795
|
-
yield c(g,
|
|
1796
|
-
|
|
1799
|
+
h.blockScope && d.push(new Set(h.blockScope()));
|
|
1800
|
+
for (const g of yield h.children(e, s))
|
|
1801
|
+
yield c(g, d);
|
|
1802
|
+
h.blockScope && d.pop();
|
|
1797
1803
|
}
|
|
1798
1804
|
}
|
|
1799
|
-
for (const
|
|
1800
|
-
yield c(
|
|
1805
|
+
for (const h of t)
|
|
1806
|
+
yield c(h, o);
|
|
1801
1807
|
return {
|
|
1802
1808
|
variables: i.asObject(),
|
|
1803
1809
|
globals: r.asObject(),
|
|
1804
1810
|
locals: n.asObject()
|
|
1805
1811
|
};
|
|
1806
1812
|
}
|
|
1807
|
-
function
|
|
1808
|
-
const s = Object.assign(Object.assign({},
|
|
1809
|
-
return
|
|
1813
|
+
function j(t, e = {}) {
|
|
1814
|
+
const s = Object.assign(Object.assign({}, Mt), e);
|
|
1815
|
+
return M(Vt(t, s.partials, !1));
|
|
1810
1816
|
}
|
|
1811
|
-
function
|
|
1812
|
-
const s = Object.assign(Object.assign({},
|
|
1813
|
-
return
|
|
1817
|
+
function C(t, e = {}) {
|
|
1818
|
+
const s = Object.assign(Object.assign({}, Mt), e);
|
|
1819
|
+
return V(Vt(t, s.partials, !0));
|
|
1814
1820
|
}
|
|
1815
|
-
class
|
|
1821
|
+
class ot {
|
|
1816
1822
|
constructor(e) {
|
|
1817
1823
|
this.stack = [{ names: e, aliases: /* @__PURE__ */ new Map() }];
|
|
1818
1824
|
}
|
|
@@ -1859,26 +1865,26 @@ class it {
|
|
|
1859
1865
|
}
|
|
1860
1866
|
}
|
|
1861
1867
|
}
|
|
1862
|
-
function*
|
|
1863
|
-
F(t) ? yield* G(t) : t instanceof L && (yield*
|
|
1868
|
+
function* at(t) {
|
|
1869
|
+
F(t) ? yield* G(t) : t instanceof L && (yield* Fi(t));
|
|
1864
1870
|
}
|
|
1865
|
-
function*
|
|
1871
|
+
function* Fi(t) {
|
|
1866
1872
|
for (const e of t.initial.postfix)
|
|
1867
1873
|
F(e) && (yield* G(e));
|
|
1868
1874
|
for (const e of t.filters)
|
|
1869
1875
|
for (const s of e.args)
|
|
1870
|
-
|
|
1876
|
+
At(s) && s[1] ? yield* G(s[1]) : F(s) && (yield* G(s));
|
|
1871
1877
|
}
|
|
1872
1878
|
function* G(t) {
|
|
1873
|
-
|
|
1879
|
+
jt(t) ? (yield* G(t.lhs), yield* G(t.rhs)) : fe(t) && (yield _e(t));
|
|
1874
1880
|
}
|
|
1875
|
-
function
|
|
1881
|
+
function _e(t) {
|
|
1876
1882
|
const e = [];
|
|
1877
1883
|
let s = t.file;
|
|
1878
1884
|
const i = t.props[0];
|
|
1879
|
-
s = s || i.file,
|
|
1885
|
+
s = s || i.file, Fe(i) || ht(i) || ct(i) ? e.push(i.content) : fe(i) && e.push(..._e(i).segments);
|
|
1880
1886
|
for (const o of t.props.slice(1))
|
|
1881
|
-
s = s || o.file,
|
|
1887
|
+
s = s || o.file, Fe(o) || ht(o) || ct(o) ? e.push(o.content) : fe(o) && e.push(_e(o));
|
|
1882
1888
|
const [r, n] = t.getPosition();
|
|
1883
1889
|
return new H(e, {
|
|
1884
1890
|
row: r,
|
|
@@ -1886,24 +1892,24 @@ function Se(t) {
|
|
|
1886
1892
|
file: s
|
|
1887
1893
|
});
|
|
1888
1894
|
}
|
|
1889
|
-
const
|
|
1895
|
+
const lt = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
|
|
1890
1896
|
function ue(t, e = !1) {
|
|
1891
1897
|
const s = [], i = t[0];
|
|
1892
|
-
f(i) && (!e || i.match(
|
|
1898
|
+
f(i) && (!e || i.match(lt) ? s.push(`${i}`) : s.push(`['${i}']`));
|
|
1893
1899
|
for (const r of t.slice(1))
|
|
1894
|
-
r instanceof H ? s.push(`[${ue(r.segments)}]`) : f(r) ? r.match(
|
|
1900
|
+
r instanceof H ? s.push(`[${ue(r.segments)}]`) : f(r) ? r.match(lt) ? s.push(`.${r}`) : s.push(`['${r}']`) : s.push(`[${r}]`);
|
|
1895
1901
|
return s.join("");
|
|
1896
1902
|
}
|
|
1897
1903
|
var W;
|
|
1898
1904
|
(function(t) {
|
|
1899
1905
|
t.Partials = "partials", t.Layouts = "layouts", t.Root = "root";
|
|
1900
1906
|
})(W || (W = {}));
|
|
1901
|
-
class
|
|
1907
|
+
class Li {
|
|
1902
1908
|
constructor(e) {
|
|
1903
1909
|
if (this.options = e, e.relativeReference) {
|
|
1904
1910
|
const s = e.fs.sep;
|
|
1905
1911
|
_(s, "`fs.sep` is required for relative reference");
|
|
1906
|
-
const i = new RegExp(["." + s, ".." + s, "./", "../"].map((r) =>
|
|
1912
|
+
const i = new RegExp(["." + s, ".." + s, "./", "../"].map((r) => Zt(r)).join("|"));
|
|
1907
1913
|
this.shouldLoadRelative = (r) => i.test(r);
|
|
1908
1914
|
} else
|
|
1909
1915
|
this.shouldLoadRelative = (s) => !1;
|
|
@@ -1920,15 +1926,15 @@ class ki {
|
|
|
1920
1926
|
const { fs: n, extname: o } = this.options;
|
|
1921
1927
|
if (this.shouldLoadRelative(e) && i) {
|
|
1922
1928
|
const a = n.resolve(this.dirname(i), e, o);
|
|
1923
|
-
for (const
|
|
1924
|
-
if (!r || this.contains(
|
|
1929
|
+
for (const l of s)
|
|
1930
|
+
if (!r || this.contains(l, a)) {
|
|
1925
1931
|
yield a;
|
|
1926
1932
|
break;
|
|
1927
1933
|
}
|
|
1928
1934
|
}
|
|
1929
1935
|
for (const a of s) {
|
|
1930
|
-
const
|
|
1931
|
-
(!r || this.contains(a,
|
|
1936
|
+
const l = n.resolve(a, e, o);
|
|
1937
|
+
(!r || this.contains(a, l)) && (yield l);
|
|
1932
1938
|
}
|
|
1933
1939
|
if (n.fallback !== void 0) {
|
|
1934
1940
|
const a = n.fallback(e);
|
|
@@ -1946,11 +1952,11 @@ class ki {
|
|
|
1946
1952
|
}
|
|
1947
1953
|
class P {
|
|
1948
1954
|
constructor(e) {
|
|
1949
|
-
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new
|
|
1955
|
+
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new Li(this.liquid.options), this.parseLimit = new Se("parse length", e.options.parseLimit);
|
|
1950
1956
|
}
|
|
1951
1957
|
parse(e, s) {
|
|
1952
1958
|
e = String(e), this.parseLimit.use(e.length);
|
|
1953
|
-
const r = new
|
|
1959
|
+
const r = new A(e, this.liquid.options.operators, s).readTopLevelTokens(this.liquid.options);
|
|
1954
1960
|
return this.parseTokens(r);
|
|
1955
1961
|
}
|
|
1956
1962
|
parseTokens(e) {
|
|
@@ -1966,7 +1972,7 @@ class P {
|
|
|
1966
1972
|
throw n;
|
|
1967
1973
|
}
|
|
1968
1974
|
if (r.length)
|
|
1969
|
-
throw new
|
|
1975
|
+
throw new kt(r);
|
|
1970
1976
|
return i;
|
|
1971
1977
|
}
|
|
1972
1978
|
parseToken(e, s) {
|
|
@@ -1975,24 +1981,24 @@ class P {
|
|
|
1975
1981
|
const i = this.liquid.tags[e.name];
|
|
1976
1982
|
return _(i, `tag "${e.name}" not found`), new i(e, s, this.liquid, this);
|
|
1977
1983
|
}
|
|
1978
|
-
return
|
|
1984
|
+
return zi(e) ? new Si(e, this.liquid) : new _i(e);
|
|
1979
1985
|
} catch (i) {
|
|
1980
|
-
throw J.is(i) ? i : new
|
|
1986
|
+
throw J.is(i) ? i : new ss(i, e);
|
|
1981
1987
|
}
|
|
1982
1988
|
}
|
|
1983
1989
|
parseStream(e) {
|
|
1984
|
-
return new
|
|
1990
|
+
return new vi(e, (s, i) => this.parseToken(s, i));
|
|
1985
1991
|
}
|
|
1986
1992
|
*_parseFileCached(e, s, i = W.Root, r) {
|
|
1987
1993
|
const n = this.cache, o = this.loader.shouldLoadRelative(e) ? r + "," + e : i + ":" + e, a = yield n.read(o);
|
|
1988
1994
|
if (a)
|
|
1989
1995
|
return a;
|
|
1990
|
-
const
|
|
1996
|
+
const l = this._parseFile(e, s, i, r), c = s ? yield l : M(l);
|
|
1991
1997
|
n.write(o, c);
|
|
1992
1998
|
try {
|
|
1993
1999
|
return yield c;
|
|
1994
|
-
} catch (
|
|
1995
|
-
throw n.remove(o),
|
|
2000
|
+
} catch (h) {
|
|
2001
|
+
throw n.remove(o), h;
|
|
1996
2002
|
}
|
|
1997
2003
|
}
|
|
1998
2004
|
*_parseFile(e, s, i = W.Root, r) {
|
|
@@ -2004,46 +2010,46 @@ var y;
|
|
|
2004
2010
|
(function(t) {
|
|
2005
2011
|
t[t.Number = 1] = "Number", t[t.Literal = 2] = "Literal", t[t.Tag = 4] = "Tag", t[t.Output = 8] = "Output", t[t.HTML = 16] = "HTML", t[t.Filter = 32] = "Filter", t[t.Hash = 64] = "Hash", t[t.PropertyAccess = 128] = "PropertyAccess", t[t.Word = 256] = "Word", t[t.Range = 512] = "Range", t[t.Quoted = 1024] = "Quoted", t[t.Operator = 2048] = "Operator", t[t.FilteredValue = 4096] = "FilteredValue", t[t.Delimited = 12] = "Delimited";
|
|
2006
2012
|
})(y || (y = {}));
|
|
2007
|
-
function
|
|
2008
|
-
return !!(
|
|
2013
|
+
function Oi(t) {
|
|
2014
|
+
return !!(E(t) & y.Delimited);
|
|
2009
2015
|
}
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2016
|
+
function qt(t) {
|
|
2017
|
+
return E(t) === y.Operator;
|
|
2012
2018
|
}
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2019
|
+
function Ae(t) {
|
|
2020
|
+
return E(t) === y.HTML;
|
|
2015
2021
|
}
|
|
2016
|
-
function
|
|
2017
|
-
return
|
|
2022
|
+
function zi(t) {
|
|
2023
|
+
return E(t) === y.Output;
|
|
2018
2024
|
}
|
|
2019
2025
|
function Z(t) {
|
|
2020
|
-
return
|
|
2026
|
+
return E(t) === y.Tag;
|
|
2021
2027
|
}
|
|
2022
|
-
function
|
|
2023
|
-
return
|
|
2028
|
+
function Fe(t) {
|
|
2029
|
+
return E(t) === y.Quoted;
|
|
2024
2030
|
}
|
|
2025
|
-
function
|
|
2026
|
-
return
|
|
2031
|
+
function ht(t) {
|
|
2032
|
+
return E(t) === y.Number;
|
|
2027
2033
|
}
|
|
2028
2034
|
function fe(t) {
|
|
2029
|
-
return
|
|
2035
|
+
return E(t) === y.PropertyAccess;
|
|
2030
2036
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return
|
|
2037
|
+
function ct(t) {
|
|
2038
|
+
return E(t) === y.Word;
|
|
2033
2039
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return
|
|
2040
|
+
function jt(t) {
|
|
2041
|
+
return E(t) === y.Range;
|
|
2036
2042
|
}
|
|
2037
2043
|
function F(t) {
|
|
2038
|
-
return (
|
|
2044
|
+
return (E(t) & 1667) > 0;
|
|
2039
2045
|
}
|
|
2040
|
-
function
|
|
2046
|
+
function E(t) {
|
|
2041
2047
|
return t ? t.kind : -1;
|
|
2042
2048
|
}
|
|
2043
2049
|
class I {
|
|
2044
2050
|
constructor(e = {}, s = Q, i = {}, { memoryLimit: r, renderLimit: n } = {}) {
|
|
2045
|
-
var o, a,
|
|
2046
|
-
this.scopes = [{}], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!i.sync, this.opts = s, this.globals = (o = i.globals) !== null && o !== void 0 ? o : s.globals, this.environments = pe(e) ? e : Object(e), this.strictVariables = (a = i.strictVariables) !== null && a !== void 0 ? a : this.opts.strictVariables, this.ownPropertyOnly = (
|
|
2051
|
+
var o, a, l, c, h;
|
|
2052
|
+
this.scopes = [{}], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!i.sync, this.opts = s, this.globals = (o = i.globals) !== null && o !== void 0 ? o : s.globals, this.environments = pe(e) ? e : Object(e), this.strictVariables = (a = i.strictVariables) !== null && a !== void 0 ? a : this.opts.strictVariables, this.ownPropertyOnly = (l = i.ownPropertyOnly) !== null && l !== void 0 ? l : s.ownPropertyOnly, this.memoryLimit = r ?? new Se("memory alloc", (c = i.memoryLimit) !== null && c !== void 0 ? c : s.memoryLimit), this.renderLimit = n ?? new Se("template render", Rt().now() + ((h = i.renderLimit) !== null && h !== void 0 ? h : s.renderLimit));
|
|
2047
2053
|
}
|
|
2048
2054
|
getRegister(e) {
|
|
2049
2055
|
return this.registers[e] = this.registers[e] || {};
|
|
@@ -2067,7 +2073,7 @@ class I {
|
|
|
2067
2073
|
return this.getSync(e);
|
|
2068
2074
|
}
|
|
2069
2075
|
getSync(e) {
|
|
2070
|
-
return
|
|
2076
|
+
return V(this._get(e));
|
|
2071
2077
|
}
|
|
2072
2078
|
*_get(e) {
|
|
2073
2079
|
const s = this.findScope(e[0]);
|
|
@@ -2077,13 +2083,13 @@ class I {
|
|
|
2077
2083
|
* @deprecated use `_get()` instead
|
|
2078
2084
|
*/
|
|
2079
2085
|
getFromScope(e, s) {
|
|
2080
|
-
return
|
|
2086
|
+
return V(this._getFromScope(e, s));
|
|
2081
2087
|
}
|
|
2082
2088
|
*_getFromScope(e, s, i = this.strictVariables) {
|
|
2083
2089
|
f(s) && (s = s.split("."));
|
|
2084
2090
|
for (let r = 0; r < s.length; r++)
|
|
2085
|
-
if (e = yield
|
|
2086
|
-
throw new
|
|
2091
|
+
if (e = yield this.readProperty(e, s[r]), i && Qt(e))
|
|
2092
|
+
throw new ns(s.slice(0, r + 1).join("."));
|
|
2087
2093
|
return e;
|
|
2088
2094
|
}
|
|
2089
2095
|
push(e) {
|
|
@@ -2113,29 +2119,29 @@ class I {
|
|
|
2113
2119
|
}
|
|
2114
2120
|
return e in this.environments ? this.environments : this.globals;
|
|
2115
2121
|
}
|
|
2122
|
+
readProperty(e, s) {
|
|
2123
|
+
if (e = gt(e), s = p(s), O(e))
|
|
2124
|
+
return e;
|
|
2125
|
+
if (S(e) && s < 0)
|
|
2126
|
+
return e[e.length + +s];
|
|
2127
|
+
const i = Ri(e, s, this.ownPropertyOnly);
|
|
2128
|
+
return i === void 0 && e instanceof Y ? e.liquidMethodMissing(s, this) : v(i) ? i.call(e) : s === "size" ? Ai(e) : s === "first" ? Ei(e) : s === "last" ? Ni(e) : i;
|
|
2129
|
+
}
|
|
2116
2130
|
}
|
|
2117
|
-
function
|
|
2118
|
-
if (
|
|
2119
|
-
return t;
|
|
2120
|
-
if (x(t) && e < 0)
|
|
2121
|
-
return t[t.length + +e];
|
|
2122
|
-
const i = _i(t, e, s);
|
|
2123
|
-
return i === void 0 && t instanceof Y ? t.liquidMethodMissing(e) : v(i) ? i.call(t) : e === "size" ? Oi(t) : e === "first" ? Fi(t) : e === "last" ? Li(t) : i;
|
|
2124
|
-
}
|
|
2125
|
-
function _i(t, e, s) {
|
|
2126
|
-
if (!(s && !_e.call(t, e) && !(t instanceof Y)))
|
|
2131
|
+
function Ri(t, e, s) {
|
|
2132
|
+
if (!(s && !Le.call(t, e) && !(t instanceof Y)))
|
|
2127
2133
|
return t[e];
|
|
2128
2134
|
}
|
|
2129
|
-
function
|
|
2130
|
-
return
|
|
2135
|
+
function Ei(t) {
|
|
2136
|
+
return S(t) ? t[0] : t.first;
|
|
2131
2137
|
}
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2138
|
+
function Ni(t) {
|
|
2139
|
+
return S(t) ? t[t.length - 1] : t.last;
|
|
2134
2140
|
}
|
|
2135
|
-
function
|
|
2136
|
-
if (
|
|
2141
|
+
function Ai(t) {
|
|
2142
|
+
if (Le.call(t, "size") || t.size !== void 0)
|
|
2137
2143
|
return t.size;
|
|
2138
|
-
if (
|
|
2144
|
+
if (S(t) || f(t))
|
|
2139
2145
|
return t.length;
|
|
2140
2146
|
if (typeof t == "object")
|
|
2141
2147
|
return Object.keys(t).length;
|
|
@@ -2144,62 +2150,59 @@ var U;
|
|
|
2144
2150
|
(function(t) {
|
|
2145
2151
|
t[t.OUTPUT = 0] = "OUTPUT", t[t.STORE = 1] = "STORE";
|
|
2146
2152
|
})(U || (U = {}));
|
|
2147
|
-
const
|
|
2148
|
-
function
|
|
2149
|
-
t =
|
|
2153
|
+
const Di = D(Math.abs), Mi = D(Math.max), Vi = D(Math.min), qi = D(Math.ceil), ji = D((t, e, s = !1) => s ? Math.floor(t / e) : t / e), Ci = D(Math.floor), $i = D((t, e) => t - e), Pi = D((t, e) => t + e), Ii = D((t, e) => t % e), Bi = D((t, e) => t * e);
|
|
2154
|
+
function Ui(t, e = 0) {
|
|
2155
|
+
t = ve(t), e = ve(e);
|
|
2150
2156
|
const s = Math.pow(10, e);
|
|
2151
2157
|
return Math.round(t * s) / s;
|
|
2152
2158
|
}
|
|
2153
|
-
|
|
2154
|
-
return t = d(t), e = d(e), Number(t) + Number(e);
|
|
2155
|
-
}
|
|
2156
|
-
var ji = /* @__PURE__ */ Object.freeze({
|
|
2159
|
+
var Hi = /* @__PURE__ */ Object.freeze({
|
|
2157
2160
|
__proto__: null,
|
|
2158
|
-
abs:
|
|
2159
|
-
at_least:
|
|
2160
|
-
at_most:
|
|
2161
|
-
ceil:
|
|
2162
|
-
divided_by:
|
|
2163
|
-
floor:
|
|
2164
|
-
minus:
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2161
|
+
abs: Di,
|
|
2162
|
+
at_least: Mi,
|
|
2163
|
+
at_most: Vi,
|
|
2164
|
+
ceil: qi,
|
|
2165
|
+
divided_by: ji,
|
|
2166
|
+
floor: Ci,
|
|
2167
|
+
minus: $i,
|
|
2168
|
+
plus: Pi,
|
|
2169
|
+
modulo: Ii,
|
|
2170
|
+
times: Bi,
|
|
2171
|
+
round: Ui
|
|
2169
2172
|
});
|
|
2170
|
-
const
|
|
2173
|
+
const Wi = (t) => decodeURIComponent(u(t)).replace(/\+/g, " "), Yi = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+"), Ji = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Zi = (t) => encodeURI(u(t)).replace(/%5B/g, "[").replace(/%5D/g, "]"), ut = /[^\p{M}\p{L}\p{Nd}]+/ug, Qi = {
|
|
2171
2174
|
raw: /\s+/g,
|
|
2172
|
-
default:
|
|
2175
|
+
default: ut,
|
|
2173
2176
|
pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,
|
|
2174
2177
|
ascii: /[^A-Za-z0-9]+/g,
|
|
2175
|
-
latin:
|
|
2178
|
+
latin: ut,
|
|
2176
2179
|
none: null
|
|
2177
2180
|
};
|
|
2178
|
-
function
|
|
2181
|
+
function Gi(t, e = "default", s = !1) {
|
|
2179
2182
|
t = u(t);
|
|
2180
|
-
const i =
|
|
2181
|
-
return i && (e === "latin" && (t =
|
|
2183
|
+
const i = Qi[e];
|
|
2184
|
+
return i && (e === "latin" && (t = Xi(t)), t = t.replace(i, "-").replace(/^-|-$/g, "")), s ? t : t.toLowerCase();
|
|
2182
2185
|
}
|
|
2183
|
-
function
|
|
2186
|
+
function Xi(t) {
|
|
2184
2187
|
return t.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
|
|
2185
2188
|
}
|
|
2186
|
-
var
|
|
2189
|
+
var Ki = /* @__PURE__ */ Object.freeze({
|
|
2187
2190
|
__proto__: null,
|
|
2188
|
-
url_decode:
|
|
2189
|
-
url_encode:
|
|
2190
|
-
cgi_escape:
|
|
2191
|
-
uri_escape:
|
|
2192
|
-
slugify:
|
|
2191
|
+
url_decode: Wi,
|
|
2192
|
+
url_encode: Yi,
|
|
2193
|
+
cgi_escape: Ji,
|
|
2194
|
+
uri_escape: Zi,
|
|
2195
|
+
slugify: Gi
|
|
2193
2196
|
});
|
|
2194
|
-
const
|
|
2195
|
-
const s =
|
|
2197
|
+
const er = ge(function(t, e) {
|
|
2198
|
+
const s = x(t), i = O(e) ? " " : u(e), r = s.length * (1 + i.length);
|
|
2196
2199
|
return this.context.memoryLimit.use(r), s.join(i);
|
|
2197
|
-
}),
|
|
2198
|
-
const e =
|
|
2200
|
+
}), tr = ge((t) => mt(t) ? yt(t) : ""), sr = ge((t) => mt(t) ? t[0] : ""), ir = ge(function(t) {
|
|
2201
|
+
const e = x(t);
|
|
2199
2202
|
return this.context.memoryLimit.use(e.length), [...e].reverse();
|
|
2200
2203
|
});
|
|
2201
|
-
function*
|
|
2202
|
-
const s = [], i =
|
|
2204
|
+
function* rr(t, e) {
|
|
2205
|
+
const s = [], i = x(t);
|
|
2203
2206
|
this.context.memoryLimit.use(i.length);
|
|
2204
2207
|
for (const r of i)
|
|
2205
2208
|
s.push([
|
|
@@ -2211,80 +2214,95 @@ function* Ki(t, e) {
|
|
|
2211
2214
|
return o < a ? -1 : o > a ? 1 : 0;
|
|
2212
2215
|
}).map((r) => r[0]);
|
|
2213
2216
|
}
|
|
2214
|
-
function
|
|
2215
|
-
const s = u(e), i = e === void 0 ?
|
|
2217
|
+
function nr(t, e) {
|
|
2218
|
+
const s = u(e), i = e === void 0 ? Be : (n, o) => Be(n[s], o[s]), r = x(t);
|
|
2216
2219
|
return this.context.memoryLimit.use(r.length), [...r].sort(i);
|
|
2217
2220
|
}
|
|
2218
|
-
const
|
|
2219
|
-
function*
|
|
2220
|
-
const s = [], i =
|
|
2221
|
+
const or = (t) => t && t.length || 0;
|
|
2222
|
+
function* ar(t, e) {
|
|
2223
|
+
const s = [], i = x(t);
|
|
2221
2224
|
this.context.memoryLimit.use(i.length);
|
|
2222
2225
|
for (const r of i)
|
|
2223
2226
|
s.push(yield this.context._getFromScope(r, u(e), !1));
|
|
2224
2227
|
return s;
|
|
2225
2228
|
}
|
|
2226
|
-
function*
|
|
2229
|
+
function* lr(t, e) {
|
|
2227
2230
|
let s = 0;
|
|
2228
|
-
const i =
|
|
2231
|
+
const i = x(t);
|
|
2229
2232
|
for (const r of i) {
|
|
2230
2233
|
const n = Number(e ? yield this.context._getFromScope(r, u(e), !1) : r);
|
|
2231
2234
|
s += Number.isNaN(n) ? 0 : n;
|
|
2232
2235
|
}
|
|
2233
2236
|
return s;
|
|
2234
2237
|
}
|
|
2235
|
-
function
|
|
2236
|
-
const e =
|
|
2237
|
-
return this.context.memoryLimit.use(e.length), e.filter((s) => !
|
|
2238
|
+
function hr(t) {
|
|
2239
|
+
const e = x(t);
|
|
2240
|
+
return this.context.memoryLimit.use(e.length), e.filter((s) => !O(p(s)));
|
|
2238
2241
|
}
|
|
2239
|
-
function
|
|
2240
|
-
const s =
|
|
2242
|
+
function Ct(t, e = []) {
|
|
2243
|
+
const s = x(t), i = x(e);
|
|
2241
2244
|
return this.context.memoryLimit.use(s.length + i.length), s.concat(i);
|
|
2242
2245
|
}
|
|
2243
|
-
function
|
|
2244
|
-
return
|
|
2246
|
+
function cr(t, e) {
|
|
2247
|
+
return Ct.call(this, t, [e]);
|
|
2245
2248
|
}
|
|
2246
|
-
function
|
|
2247
|
-
const s =
|
|
2249
|
+
function ur(t, e) {
|
|
2250
|
+
const s = x(t);
|
|
2248
2251
|
this.context.memoryLimit.use(s.length);
|
|
2249
2252
|
const i = [...s];
|
|
2250
2253
|
return i.unshift(e), i;
|
|
2251
2254
|
}
|
|
2252
|
-
function
|
|
2253
|
-
const e = [...
|
|
2255
|
+
function fr(t) {
|
|
2256
|
+
const e = [...x(t)];
|
|
2254
2257
|
return e.pop(), e;
|
|
2255
2258
|
}
|
|
2256
|
-
function
|
|
2257
|
-
const e =
|
|
2259
|
+
function dr(t) {
|
|
2260
|
+
const e = x(t);
|
|
2258
2261
|
this.context.memoryLimit.use(e.length);
|
|
2259
2262
|
const s = [...e];
|
|
2260
2263
|
return s.shift(), s;
|
|
2261
2264
|
}
|
|
2262
|
-
function
|
|
2263
|
-
return t =
|
|
2265
|
+
function pr(t, e, s = 1) {
|
|
2266
|
+
return t = p(t), O(t) ? [] : (S(t) || (t = u(t)), e = e < 0 ? t.length + e : e, this.context.memoryLimit.use(s), t.slice(e, e + s));
|
|
2264
2267
|
}
|
|
2265
|
-
function
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
const n =
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2268
|
+
function $t(t) {
|
|
2269
|
+
return this.context.opts.jekyllWhere ? (e) => K.is(t) ? q(e, t) : S(e) ? Zs(e, t) : q(e, t) : t === void 0 ? (e) => B(e, this.context) : (e) => q(e, t);
|
|
2270
|
+
}
|
|
2271
|
+
function* Pt(t, e, s, i) {
|
|
2272
|
+
const r = [];
|
|
2273
|
+
e = x(e), this.context.memoryLimit.use(e.length);
|
|
2274
|
+
const n = new A(u(s)).readScopeValue();
|
|
2275
|
+
for (const a of e)
|
|
2276
|
+
r.push(yield T(n, this.context.spawn(a)));
|
|
2277
|
+
const o = $t.call(this, i);
|
|
2278
|
+
return e.filter((a, l) => o(r[l]) === t);
|
|
2279
|
+
}
|
|
2280
|
+
function* It(t, e, s, i) {
|
|
2281
|
+
const r = [], n = new L(u(i), this.liquid), o = x(e);
|
|
2282
|
+
this.context.memoryLimit.use(o.length);
|
|
2283
|
+
for (const a of o) {
|
|
2284
|
+
this.context.push({ [s]: a });
|
|
2285
|
+
const l = yield n.value(this.context);
|
|
2286
|
+
this.context.pop(), l === t && r.push(a);
|
|
2281
2287
|
}
|
|
2282
|
-
return
|
|
2288
|
+
return r;
|
|
2289
|
+
}
|
|
2290
|
+
function* gr(t, e, s) {
|
|
2291
|
+
return yield* Pt.call(this, !0, t, e, s);
|
|
2292
|
+
}
|
|
2293
|
+
function* mr(t, e, s) {
|
|
2294
|
+
return yield* Pt.call(this, !1, t, e, s);
|
|
2295
|
+
}
|
|
2296
|
+
function* yr(t, e, s) {
|
|
2297
|
+
return yield* It.call(this, !0, t, e, s);
|
|
2283
2298
|
}
|
|
2284
|
-
function*
|
|
2299
|
+
function* wr(t, e, s) {
|
|
2300
|
+
return yield* It.call(this, !1, t, e, s);
|
|
2301
|
+
}
|
|
2302
|
+
function* br(t, e) {
|
|
2285
2303
|
const s = /* @__PURE__ */ new Map();
|
|
2286
2304
|
t = ie(t);
|
|
2287
|
-
const i = new
|
|
2305
|
+
const i = new A(u(e)).readScopeValue();
|
|
2288
2306
|
this.context.memoryLimit.use(t.length);
|
|
2289
2307
|
for (const r of t) {
|
|
2290
2308
|
const n = yield T(i, this.context.spawn(r));
|
|
@@ -2292,7 +2310,7 @@ function* fr(t, e) {
|
|
|
2292
2310
|
}
|
|
2293
2311
|
return [...s.entries()].map(([r, n]) => ({ name: r, items: n }));
|
|
2294
2312
|
}
|
|
2295
|
-
function*
|
|
2313
|
+
function* Tr(t, e, s) {
|
|
2296
2314
|
const i = /* @__PURE__ */ new Map(), r = new L(u(s), this.liquid);
|
|
2297
2315
|
t = ie(t), this.context.memoryLimit.use(t.length);
|
|
2298
2316
|
for (const n of t) {
|
|
@@ -2302,81 +2320,109 @@ function* dr(t, e, s) {
|
|
|
2302
2320
|
}
|
|
2303
2321
|
return [...i.entries()].map(([n, o]) => ({ name: n, items: o }));
|
|
2304
2322
|
}
|
|
2305
|
-
function*
|
|
2306
|
-
const i = new
|
|
2307
|
-
for (
|
|
2308
|
-
const
|
|
2309
|
-
if (
|
|
2310
|
-
return
|
|
2323
|
+
function* De(t, e, s) {
|
|
2324
|
+
const i = new A(u(e)).readScopeValue(), r = x(t), n = $t.call(this, s);
|
|
2325
|
+
for (let o = 0; o < r.length; o++) {
|
|
2326
|
+
const a = yield T(i, this.context.spawn(r[o]));
|
|
2327
|
+
if (n(a))
|
|
2328
|
+
return [o, r[o]];
|
|
2311
2329
|
}
|
|
2312
2330
|
}
|
|
2313
|
-
function*
|
|
2314
|
-
const i = new L(u(s), this.liquid), r =
|
|
2315
|
-
for (
|
|
2316
|
-
this.context.push({ [e]: n });
|
|
2331
|
+
function* Me(t, e, s) {
|
|
2332
|
+
const i = new L(u(s), this.liquid), r = x(t);
|
|
2333
|
+
for (let n = 0; n < r.length; n++) {
|
|
2334
|
+
this.context.push({ [e]: r[n] });
|
|
2317
2335
|
const o = yield i.value(this.context);
|
|
2318
2336
|
if (this.context.pop(), o)
|
|
2319
|
-
return n;
|
|
2337
|
+
return [n, r[n]];
|
|
2320
2338
|
}
|
|
2321
2339
|
}
|
|
2322
|
-
function
|
|
2323
|
-
return
|
|
2340
|
+
function* kr(t, e, s) {
|
|
2341
|
+
return !!(yield* De.call(this, t, e, s));
|
|
2342
|
+
}
|
|
2343
|
+
function* vr(t, e, s) {
|
|
2344
|
+
return !!(yield* Me.call(this, t, e, s));
|
|
2345
|
+
}
|
|
2346
|
+
function* xr(t, e, s) {
|
|
2347
|
+
const i = yield* De.call(this, t, e, s);
|
|
2348
|
+
return i ? i[0] : void 0;
|
|
2349
|
+
}
|
|
2350
|
+
function* Sr(t, e, s) {
|
|
2351
|
+
const i = yield* Me.call(this, t, e, s);
|
|
2352
|
+
return i ? i[0] : void 0;
|
|
2353
|
+
}
|
|
2354
|
+
function* _r(t, e, s) {
|
|
2355
|
+
const i = yield* De.call(this, t, e, s);
|
|
2356
|
+
return i ? i[1] : void 0;
|
|
2324
2357
|
}
|
|
2325
|
-
function
|
|
2326
|
-
|
|
2358
|
+
function* Fr(t, e, s) {
|
|
2359
|
+
const i = yield* Me.call(this, t, e, s);
|
|
2360
|
+
return i ? i[1] : void 0;
|
|
2361
|
+
}
|
|
2362
|
+
function Lr(t) {
|
|
2363
|
+
return t = x(t), this.context.memoryLimit.use(t.length), [...new Set(t)];
|
|
2364
|
+
}
|
|
2365
|
+
function Or(t, e = 1) {
|
|
2366
|
+
if (t = p(t), O(t))
|
|
2327
2367
|
return [];
|
|
2328
|
-
|
|
2368
|
+
S(t) || (t = u(t)), this.context.memoryLimit.use(e);
|
|
2329
2369
|
const s = [...t].sort(() => Math.random() - 0.5);
|
|
2330
2370
|
return e === 1 ? s[0] : s.slice(0, e);
|
|
2331
2371
|
}
|
|
2332
|
-
var
|
|
2372
|
+
var zr = /* @__PURE__ */ Object.freeze({
|
|
2333
2373
|
__proto__: null,
|
|
2334
|
-
join:
|
|
2335
|
-
last:
|
|
2336
|
-
first:
|
|
2337
|
-
reverse:
|
|
2338
|
-
sort:
|
|
2339
|
-
sort_natural:
|
|
2340
|
-
size:
|
|
2341
|
-
map:
|
|
2342
|
-
sum:
|
|
2343
|
-
compact:
|
|
2344
|
-
concat:
|
|
2345
|
-
push:
|
|
2346
|
-
unshift:
|
|
2347
|
-
pop:
|
|
2348
|
-
shift:
|
|
2349
|
-
slice:
|
|
2350
|
-
where:
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2374
|
+
join: er,
|
|
2375
|
+
last: tr,
|
|
2376
|
+
first: sr,
|
|
2377
|
+
reverse: ir,
|
|
2378
|
+
sort: rr,
|
|
2379
|
+
sort_natural: nr,
|
|
2380
|
+
size: or,
|
|
2381
|
+
map: ar,
|
|
2382
|
+
sum: lr,
|
|
2383
|
+
compact: hr,
|
|
2384
|
+
concat: Ct,
|
|
2385
|
+
push: cr,
|
|
2386
|
+
unshift: ur,
|
|
2387
|
+
pop: fr,
|
|
2388
|
+
shift: dr,
|
|
2389
|
+
slice: pr,
|
|
2390
|
+
where: gr,
|
|
2391
|
+
reject: mr,
|
|
2392
|
+
where_exp: yr,
|
|
2393
|
+
reject_exp: wr,
|
|
2394
|
+
group_by: br,
|
|
2395
|
+
group_by_exp: Tr,
|
|
2396
|
+
has: kr,
|
|
2397
|
+
has_exp: vr,
|
|
2398
|
+
find_index: xr,
|
|
2399
|
+
find_index_exp: Sr,
|
|
2400
|
+
find: _r,
|
|
2401
|
+
find_exp: Fr,
|
|
2402
|
+
uniq: Lr,
|
|
2403
|
+
sample: Or
|
|
2358
2404
|
});
|
|
2359
|
-
function
|
|
2405
|
+
function Ve(t, e, s) {
|
|
2360
2406
|
var i, r, n;
|
|
2361
|
-
const o = ((i = t
|
|
2407
|
+
const o = ((i = t?.length) !== null && i !== void 0 ? i : 0) + ((r = e?.length) !== null && r !== void 0 ? r : 0) + ((n = s?.length) !== null && n !== void 0 ? n : 0);
|
|
2362
2408
|
this.context.memoryLimit.use(o);
|
|
2363
|
-
const a =
|
|
2364
|
-
return a ? (e =
|
|
2409
|
+
const a = Ut(t, this.context.opts, s);
|
|
2410
|
+
return a ? (e = p(e), e = O(e) ? this.context.opts.dateFormat : u(e), oe(a, e)) : t;
|
|
2365
2411
|
}
|
|
2366
|
-
function
|
|
2367
|
-
return
|
|
2412
|
+
function Rr(t) {
|
|
2413
|
+
return Ve.call(this, t, "%Y-%m-%dT%H:%M:%S%:z");
|
|
2368
2414
|
}
|
|
2369
|
-
function
|
|
2370
|
-
return
|
|
2415
|
+
function Er(t) {
|
|
2416
|
+
return Ve.call(this, t, "%a, %d %b %Y %H:%M:%S %z");
|
|
2371
2417
|
}
|
|
2372
|
-
function
|
|
2373
|
-
return
|
|
2418
|
+
function Nr(t, e, s) {
|
|
2419
|
+
return Bt.call(this, t, "%b", e, s);
|
|
2374
2420
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2421
|
+
function Ar(t, e, s) {
|
|
2422
|
+
return Bt.call(this, t, "%B", e, s);
|
|
2377
2423
|
}
|
|
2378
|
-
function
|
|
2379
|
-
const r =
|
|
2424
|
+
function Bt(t, e, s, i) {
|
|
2425
|
+
const r = Ut(t, this.context.opts);
|
|
2380
2426
|
if (!r)
|
|
2381
2427
|
return t;
|
|
2382
2428
|
if (s === "ordinal") {
|
|
@@ -2385,60 +2431,60 @@ function Vt(t, e, s, i) {
|
|
|
2385
2431
|
}
|
|
2386
2432
|
return oe(r, `%d ${e} %Y`);
|
|
2387
2433
|
}
|
|
2388
|
-
function
|
|
2434
|
+
function Ut(t, e, s) {
|
|
2389
2435
|
let i;
|
|
2390
2436
|
const r = s ?? e.timezoneOffset, n = e.locale;
|
|
2391
|
-
return t =
|
|
2437
|
+
return t = p(t), t === "now" || t === "today" ? i = new R(Date.now(), n, r) : de(t) ? i = new R(t * 1e3, n, r) : f(t) ? /^\d+$/.test(t) ? i = new R(+t * 1e3, n, r) : e.preserveTimezones && s === void 0 ? i = R.createDateFixedToTimezone(t, n) : i = new R(t, n, r) : i = new R(t, n, r), i.valid() ? i : void 0;
|
|
2392
2438
|
}
|
|
2393
|
-
var
|
|
2439
|
+
var Dr = /* @__PURE__ */ Object.freeze({
|
|
2394
2440
|
__proto__: null,
|
|
2395
|
-
date:
|
|
2396
|
-
date_to_xmlschema:
|
|
2397
|
-
date_to_rfc822:
|
|
2398
|
-
date_to_string:
|
|
2399
|
-
date_to_long_string:
|
|
2441
|
+
date: Ve,
|
|
2442
|
+
date_to_xmlschema: Rr,
|
|
2443
|
+
date_to_rfc822: Er,
|
|
2444
|
+
date_to_string: Nr,
|
|
2445
|
+
date_to_long_string: Ar
|
|
2400
2446
|
});
|
|
2401
|
-
const
|
|
2402
|
-
function
|
|
2447
|
+
const ke = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, ft = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
|
|
2448
|
+
function Mr(t, e) {
|
|
2403
2449
|
_(arguments.length === 2, "append expect 2 arguments");
|
|
2404
2450
|
const s = u(t), i = u(e);
|
|
2405
2451
|
return this.context.memoryLimit.use(s.length + i.length), s + i;
|
|
2406
2452
|
}
|
|
2407
|
-
function
|
|
2453
|
+
function Vr(t, e) {
|
|
2408
2454
|
_(arguments.length === 2, "prepend expect 2 arguments");
|
|
2409
2455
|
const s = u(t), i = u(e);
|
|
2410
2456
|
return this.context.memoryLimit.use(s.length + i.length), i + s;
|
|
2411
2457
|
}
|
|
2412
|
-
function
|
|
2458
|
+
function qr(t, e) {
|
|
2413
2459
|
const s = u(t);
|
|
2414
|
-
return this.context.memoryLimit.use(s.length), e ? (e =
|
|
2460
|
+
return this.context.memoryLimit.use(s.length), e ? (e = Oe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "")) : s.replace(/^\s+/, "");
|
|
2415
2461
|
}
|
|
2416
|
-
function
|
|
2462
|
+
function jr(t) {
|
|
2417
2463
|
const e = u(t);
|
|
2418
2464
|
return this.context.memoryLimit.use(e.length), e.toLowerCase();
|
|
2419
2465
|
}
|
|
2420
|
-
function
|
|
2466
|
+
function Cr(t) {
|
|
2421
2467
|
const e = u(t);
|
|
2422
2468
|
return this.context.memoryLimit.use(e.length), u(e).toUpperCase();
|
|
2423
2469
|
}
|
|
2424
|
-
function
|
|
2470
|
+
function $r(t, e) {
|
|
2425
2471
|
const s = u(t);
|
|
2426
2472
|
return this.context.memoryLimit.use(s.length), s.split(u(e)).join("");
|
|
2427
2473
|
}
|
|
2428
|
-
function
|
|
2474
|
+
function Pr(t, e) {
|
|
2429
2475
|
const s = u(t);
|
|
2430
2476
|
return this.context.memoryLimit.use(s.length), s.replace(u(e), "");
|
|
2431
2477
|
}
|
|
2432
|
-
function
|
|
2478
|
+
function Ir(t, e) {
|
|
2433
2479
|
const s = u(t);
|
|
2434
2480
|
this.context.memoryLimit.use(s.length);
|
|
2435
2481
|
const i = u(e), r = s.lastIndexOf(i);
|
|
2436
2482
|
return r === -1 ? s : s.substring(0, r) + s.substring(r + i.length);
|
|
2437
2483
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return t = u(t), this.context.memoryLimit.use(t.length), e ? (e =
|
|
2484
|
+
function Br(t, e) {
|
|
2485
|
+
return t = u(t), this.context.memoryLimit.use(t.length), e ? (e = Oe(u(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
|
|
2440
2486
|
}
|
|
2441
|
-
function
|
|
2487
|
+
function Ur(t, e) {
|
|
2442
2488
|
const s = u(t);
|
|
2443
2489
|
this.context.memoryLimit.use(s.length);
|
|
2444
2490
|
const i = s.split(u(e));
|
|
@@ -2446,26 +2492,26 @@ function Ar(t, e) {
|
|
|
2446
2492
|
i.pop();
|
|
2447
2493
|
return i;
|
|
2448
2494
|
}
|
|
2449
|
-
function
|
|
2495
|
+
function Hr(t, e) {
|
|
2450
2496
|
const s = u(t);
|
|
2451
|
-
return this.context.memoryLimit.use(s.length), e ? (e =
|
|
2497
|
+
return this.context.memoryLimit.use(s.length), e ? (e = Oe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : s.trim();
|
|
2452
2498
|
}
|
|
2453
|
-
function
|
|
2499
|
+
function Wr(t) {
|
|
2454
2500
|
const e = u(t);
|
|
2455
2501
|
return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, "");
|
|
2456
2502
|
}
|
|
2457
|
-
function
|
|
2503
|
+
function Yr(t) {
|
|
2458
2504
|
return t = u(t), this.context.memoryLimit.use(t.length), t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
|
|
2459
2505
|
}
|
|
2460
|
-
function
|
|
2506
|
+
function Jr(t, e, s) {
|
|
2461
2507
|
const i = u(t);
|
|
2462
2508
|
return this.context.memoryLimit.use(i.length), i.split(u(e)).join(s);
|
|
2463
2509
|
}
|
|
2464
|
-
function
|
|
2510
|
+
function Zr(t, e, s) {
|
|
2465
2511
|
const i = u(t);
|
|
2466
2512
|
return this.context.memoryLimit.use(i.length), i.replace(u(e), s);
|
|
2467
2513
|
}
|
|
2468
|
-
function
|
|
2514
|
+
function Qr(t, e, s) {
|
|
2469
2515
|
const i = u(t);
|
|
2470
2516
|
this.context.memoryLimit.use(i.length);
|
|
2471
2517
|
const r = u(e), n = i.lastIndexOf(r);
|
|
@@ -2474,11 +2520,11 @@ function $r(t, e, s) {
|
|
|
2474
2520
|
const o = u(s);
|
|
2475
2521
|
return i.substring(0, n) + o + i.substring(n + r.length);
|
|
2476
2522
|
}
|
|
2477
|
-
function
|
|
2523
|
+
function Gr(t, e = 50, s = "...") {
|
|
2478
2524
|
const i = u(t);
|
|
2479
2525
|
return this.context.memoryLimit.use(i.length), i.length <= e ? t : i.substring(0, e - s.length) + s;
|
|
2480
2526
|
}
|
|
2481
|
-
function
|
|
2527
|
+
function Xr(t, e = 15, s = "...") {
|
|
2482
2528
|
const i = u(t);
|
|
2483
2529
|
this.context.memoryLimit.use(i.length);
|
|
2484
2530
|
const r = i.split(/\s+/);
|
|
@@ -2486,24 +2532,24 @@ function Pr(t, e = 15, s = "...") {
|
|
|
2486
2532
|
let n = r.slice(0, e).join(" ");
|
|
2487
2533
|
return r.length >= e && (n += s), n;
|
|
2488
2534
|
}
|
|
2489
|
-
function
|
|
2535
|
+
function Kr(t) {
|
|
2490
2536
|
const e = u(t);
|
|
2491
2537
|
return this.context.memoryLimit.use(e.length), e.replace(/\s+/g, " ");
|
|
2492
2538
|
}
|
|
2493
|
-
function
|
|
2539
|
+
function en(t, e) {
|
|
2494
2540
|
const s = u(t);
|
|
2495
2541
|
if (this.context.memoryLimit.use(s.length), t = s.trim(), !t)
|
|
2496
2542
|
return 0;
|
|
2497
2543
|
switch (e) {
|
|
2498
2544
|
case "cjk":
|
|
2499
|
-
return (t.match(
|
|
2545
|
+
return (t.match(ke) || []).length + (t.match(ft) || []).length;
|
|
2500
2546
|
case "auto":
|
|
2501
|
-
return
|
|
2547
|
+
return ke.test(t) ? t.match(ke).length + (t.match(ft) || []).length : t.split(/\s+/).length;
|
|
2502
2548
|
default:
|
|
2503
2549
|
return t.split(/\s+/).length;
|
|
2504
2550
|
}
|
|
2505
2551
|
}
|
|
2506
|
-
function
|
|
2552
|
+
function tn(t, e = "and") {
|
|
2507
2553
|
switch (this.context.memoryLimit.use(t.length), t.length) {
|
|
2508
2554
|
case 0:
|
|
2509
2555
|
return "";
|
|
@@ -2515,32 +2561,32 @@ function Ur(t, e = "and") {
|
|
|
2515
2561
|
return `${t.slice(0, -1).join(", ")}, ${e} ${t[t.length - 1]}`;
|
|
2516
2562
|
}
|
|
2517
2563
|
}
|
|
2518
|
-
var
|
|
2564
|
+
var sn = /* @__PURE__ */ Object.freeze({
|
|
2519
2565
|
__proto__: null,
|
|
2520
|
-
append:
|
|
2521
|
-
prepend:
|
|
2522
|
-
lstrip:
|
|
2523
|
-
downcase:
|
|
2524
|
-
upcase:
|
|
2525
|
-
remove:
|
|
2526
|
-
remove_first:
|
|
2527
|
-
remove_last:
|
|
2528
|
-
rstrip:
|
|
2529
|
-
split:
|
|
2530
|
-
strip:
|
|
2531
|
-
strip_newlines:
|
|
2532
|
-
capitalize:
|
|
2533
|
-
replace:
|
|
2534
|
-
replace_first:
|
|
2535
|
-
replace_last:
|
|
2536
|
-
truncate:
|
|
2537
|
-
truncatewords:
|
|
2538
|
-
normalize_whitespace:
|
|
2539
|
-
number_of_words:
|
|
2540
|
-
array_to_sentence_string:
|
|
2566
|
+
append: Mr,
|
|
2567
|
+
prepend: Vr,
|
|
2568
|
+
lstrip: qr,
|
|
2569
|
+
downcase: jr,
|
|
2570
|
+
upcase: Cr,
|
|
2571
|
+
remove: $r,
|
|
2572
|
+
remove_first: Pr,
|
|
2573
|
+
remove_last: Ir,
|
|
2574
|
+
rstrip: Br,
|
|
2575
|
+
split: Ur,
|
|
2576
|
+
strip: Hr,
|
|
2577
|
+
strip_newlines: Wr,
|
|
2578
|
+
capitalize: Yr,
|
|
2579
|
+
replace: Jr,
|
|
2580
|
+
replace_first: Zr,
|
|
2581
|
+
replace_last: Qr,
|
|
2582
|
+
truncate: Gr,
|
|
2583
|
+
truncatewords: Xr,
|
|
2584
|
+
normalize_whitespace: Kr,
|
|
2585
|
+
number_of_words: en,
|
|
2586
|
+
array_to_sentence_string: tn
|
|
2541
2587
|
});
|
|
2542
|
-
const
|
|
2543
|
-
class
|
|
2588
|
+
const rn = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, gi), Hi), Ki), zr), Dr), sn), Nt);
|
|
2589
|
+
class nn extends b {
|
|
2544
2590
|
constructor(e, s, i) {
|
|
2545
2591
|
super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new L(this.tokenizer.readFilteredValue(), this.liquid);
|
|
2546
2592
|
}
|
|
@@ -2554,20 +2600,20 @@ class Yr extends b {
|
|
|
2554
2600
|
yield this.identifier;
|
|
2555
2601
|
}
|
|
2556
2602
|
}
|
|
2557
|
-
const
|
|
2558
|
-
class
|
|
2603
|
+
const dt = ["offset", "limit", "reversed"];
|
|
2604
|
+
class on extends b {
|
|
2559
2605
|
constructor(e, s, i, r) {
|
|
2560
2606
|
super(e, s, i);
|
|
2561
2607
|
const n = this.tokenizer.readIdentifier(), o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
|
|
2562
2608
|
if (!n.size() || o.content !== "in" || !a)
|
|
2563
2609
|
throw new Error(`illegal tag: ${e.getText()}`);
|
|
2564
2610
|
this.variable = n.content, this.collection = a, this.hash = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
|
|
2565
|
-
let
|
|
2566
|
-
const c = r.parseStream(s).on("start", () =>
|
|
2567
|
-
he(
|
|
2568
|
-
}).on("tag:endfor", (
|
|
2569
|
-
he(
|
|
2570
|
-
}).on("template", (
|
|
2611
|
+
let l;
|
|
2612
|
+
const c = r.parseStream(s).on("start", () => l = this.templates).on("tag:else", (h) => {
|
|
2613
|
+
he(h.args), l = this.elseTemplates;
|
|
2614
|
+
}).on("tag:endfor", (h) => {
|
|
2615
|
+
he(h.args), c.stop();
|
|
2616
|
+
}).on("template", (h) => l.push(h)).on("end", () => {
|
|
2571
2617
|
throw new Error(`tag ${e.getText()} not closed`);
|
|
2572
2618
|
});
|
|
2573
2619
|
c.start();
|
|
@@ -2582,13 +2628,13 @@ class Jr extends b {
|
|
|
2582
2628
|
const n = "continue-" + this.variable + "-" + this.collection.getText();
|
|
2583
2629
|
e.push({ continue: e.getRegister(n) });
|
|
2584
2630
|
const o = yield this.hash.render(e);
|
|
2585
|
-
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(o).filter((c) =>
|
|
2586
|
-
const
|
|
2587
|
-
e.push(
|
|
2631
|
+
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(o).filter((c) => dt.includes(c)) : dt.filter((c) => o[c] !== void 0)).reduce((c, h) => h === "offset" ? ln(c, o.offset) : h === "limit" ? hn(c, o.limit) : an(c), r), e.setRegister(n, (o.offset || 0) + r.length);
|
|
2632
|
+
const l = { forloop: new Re(r.length, this.collection.getText(), this.variable) };
|
|
2633
|
+
e.push(l);
|
|
2588
2634
|
for (const c of r) {
|
|
2589
|
-
if (
|
|
2635
|
+
if (l[this.variable] = c, e.continueCalled = e.breakCalled = !1, yield i.renderTemplates(this.templates, e, s), e.breakCalled)
|
|
2590
2636
|
break;
|
|
2591
|
-
|
|
2637
|
+
l.forloop.next();
|
|
2592
2638
|
}
|
|
2593
2639
|
e.continueCalled = e.breakCalled = !1, e.pop();
|
|
2594
2640
|
}
|
|
@@ -2605,16 +2651,16 @@ class Jr extends b {
|
|
|
2605
2651
|
return [this.variable, "forloop"];
|
|
2606
2652
|
}
|
|
2607
2653
|
}
|
|
2608
|
-
function
|
|
2654
|
+
function an(t) {
|
|
2609
2655
|
return [...t].reverse();
|
|
2610
2656
|
}
|
|
2611
|
-
function
|
|
2657
|
+
function ln(t, e) {
|
|
2612
2658
|
return t.slice(e);
|
|
2613
2659
|
}
|
|
2614
|
-
function
|
|
2660
|
+
function hn(t, e) {
|
|
2615
2661
|
return t.slice(0, e);
|
|
2616
2662
|
}
|
|
2617
|
-
class
|
|
2663
|
+
class cn extends b {
|
|
2618
2664
|
constructor(e, s, i, r) {
|
|
2619
2665
|
for (super(e, s, i), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; s.length; ) {
|
|
2620
2666
|
const n = s.shift();
|
|
@@ -2641,37 +2687,37 @@ class Xr extends b {
|
|
|
2641
2687
|
yield this.identifier;
|
|
2642
2688
|
}
|
|
2643
2689
|
}
|
|
2644
|
-
class
|
|
2690
|
+
class un extends b {
|
|
2645
2691
|
constructor(e, s, i, r) {
|
|
2646
2692
|
super(e, s, i), this.branches = [], this.elseTemplates = [], this.value = new L(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
2647
2693
|
let n = [], o = 0;
|
|
2648
|
-
const a = r.parseStream(s).on("tag:when", (
|
|
2694
|
+
const a = r.parseStream(s).on("tag:when", (l) => {
|
|
2649
2695
|
if (o > 0)
|
|
2650
2696
|
return;
|
|
2651
2697
|
n = [];
|
|
2652
2698
|
const c = [];
|
|
2653
|
-
for (; !
|
|
2654
|
-
c.push(
|
|
2699
|
+
for (; !l.tokenizer.end(); )
|
|
2700
|
+
c.push(l.tokenizer.readValueOrThrow()), l.tokenizer.skipBlank(), l.tokenizer.peek() === "," ? l.tokenizer.readTo(",") : l.tokenizer.readTo("or");
|
|
2655
2701
|
this.branches.push({
|
|
2656
2702
|
values: c,
|
|
2657
2703
|
templates: n
|
|
2658
2704
|
});
|
|
2659
2705
|
}).on("tag:else", () => {
|
|
2660
2706
|
o++, n = this.elseTemplates;
|
|
2661
|
-
}).on("tag:endcase", () => a.stop()).on("template", (
|
|
2662
|
-
(n !== this.elseTemplates || o === 1) && n.push(
|
|
2707
|
+
}).on("tag:endcase", () => a.stop()).on("template", (l) => {
|
|
2708
|
+
(n !== this.elseTemplates || o === 1) && n.push(l);
|
|
2663
2709
|
}).on("end", () => {
|
|
2664
2710
|
throw new Error(`tag ${e.getText()} not closed`);
|
|
2665
2711
|
});
|
|
2666
2712
|
a.start();
|
|
2667
2713
|
}
|
|
2668
2714
|
*render(e, s) {
|
|
2669
|
-
const i = this.liquid.renderer, r =
|
|
2715
|
+
const i = this.liquid.renderer, r = p(yield this.value.value(e, e.opts.lenientIf));
|
|
2670
2716
|
let n = !1;
|
|
2671
2717
|
for (const o of this.branches)
|
|
2672
2718
|
for (const a of o.values) {
|
|
2673
|
-
const
|
|
2674
|
-
if (
|
|
2719
|
+
const l = yield T(a, e, e.opts.lenientIf);
|
|
2720
|
+
if (q(r, l)) {
|
|
2675
2721
|
yield i.renderTemplates(o.templates, e, s), n = !0;
|
|
2676
2722
|
break;
|
|
2677
2723
|
}
|
|
@@ -2686,7 +2732,7 @@ class Kr extends b {
|
|
|
2686
2732
|
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
2687
2733
|
}
|
|
2688
2734
|
}
|
|
2689
|
-
class
|
|
2735
|
+
class fn extends b {
|
|
2690
2736
|
constructor(e, s, i) {
|
|
2691
2737
|
for (super(e, s, i); s.length; ) {
|
|
2692
2738
|
const r = s.shift();
|
|
@@ -2698,19 +2744,19 @@ class en extends b {
|
|
|
2698
2744
|
render() {
|
|
2699
2745
|
}
|
|
2700
2746
|
}
|
|
2701
|
-
class
|
|
2747
|
+
class dn extends b {
|
|
2702
2748
|
constructor(e, s, i, r) {
|
|
2703
2749
|
super(e, s, i);
|
|
2704
2750
|
const n = this.tokenizer;
|
|
2705
|
-
for (this.file =
|
|
2751
|
+
for (this.file = qe(n, this.liquid, r), this.currentFile = e.file; !n.end(); ) {
|
|
2706
2752
|
n.skipBlank();
|
|
2707
2753
|
const o = n.p, a = n.readIdentifier();
|
|
2708
2754
|
if ((a.content === "with" || a.content === "for") && (n.skipBlank(), n.peek() !== ":")) {
|
|
2709
|
-
const
|
|
2710
|
-
if (
|
|
2711
|
-
const c = n.p,
|
|
2712
|
-
let
|
|
2713
|
-
|
|
2755
|
+
const l = n.readValue();
|
|
2756
|
+
if (l) {
|
|
2757
|
+
const c = n.p, h = n.readIdentifier();
|
|
2758
|
+
let d;
|
|
2759
|
+
h.content === "as" ? d = n.readIdentifier() : n.p = c, this[a.content] = { value: l, alias: d && d.content }, n.skipBlank(), n.peek() === "," && n.advance();
|
|
2714
2760
|
continue;
|
|
2715
2761
|
}
|
|
2716
2762
|
}
|
|
@@ -2720,24 +2766,24 @@ class tn extends b {
|
|
|
2720
2766
|
this.hash = new ee(n, i.options.keyValueSeparator);
|
|
2721
2767
|
}
|
|
2722
2768
|
*render(e, s) {
|
|
2723
|
-
const { liquid: i, hash: r } = this, n = yield
|
|
2769
|
+
const { liquid: i, hash: r } = this, n = yield je(this.file, e, i);
|
|
2724
2770
|
_(n, () => `illegal file path "${n}"`);
|
|
2725
2771
|
const o = e.spawn(), a = o.bottom();
|
|
2726
2772
|
if (ce(a, yield r.render(e)), this.with) {
|
|
2727
|
-
const { value:
|
|
2728
|
-
a[c || n] = yield T(
|
|
2773
|
+
const { value: l, alias: c } = this.with;
|
|
2774
|
+
a[c || n] = yield T(l, e);
|
|
2729
2775
|
}
|
|
2730
2776
|
if (this.for) {
|
|
2731
|
-
const { value:
|
|
2732
|
-
a.forloop = new
|
|
2733
|
-
for (const
|
|
2734
|
-
a[c] =
|
|
2777
|
+
const { value: l, alias: c } = this.for, h = ie(yield T(l, e));
|
|
2778
|
+
a.forloop = new Re(h.length, l.getText(), c);
|
|
2779
|
+
for (const d of h) {
|
|
2780
|
+
a[c] = d;
|
|
2735
2781
|
const g = yield i._parsePartialFile(n, o.sync, this.currentFile);
|
|
2736
2782
|
yield i.renderer.renderTemplates(g, o, s), a.forloop.next();
|
|
2737
2783
|
}
|
|
2738
2784
|
} else {
|
|
2739
|
-
const
|
|
2740
|
-
yield i.renderer.renderTemplates(
|
|
2785
|
+
const l = yield i._parsePartialFile(n, o.sync, this.currentFile);
|
|
2786
|
+
yield i.renderer.renderTemplates(l, o, s);
|
|
2741
2787
|
}
|
|
2742
2788
|
}
|
|
2743
2789
|
*children(e, s) {
|
|
@@ -2770,43 +2816,43 @@ class tn extends b {
|
|
|
2770
2816
|
}
|
|
2771
2817
|
}
|
|
2772
2818
|
}
|
|
2773
|
-
function
|
|
2819
|
+
function qe(t, e, s) {
|
|
2774
2820
|
if (e.options.dynamicPartials) {
|
|
2775
2821
|
const n = t.readValue();
|
|
2776
2822
|
if (t.assert(n, "illegal file path"), n.getText() === "none")
|
|
2777
2823
|
return;
|
|
2778
|
-
if (
|
|
2779
|
-
const o = s.parse(
|
|
2780
|
-
return
|
|
2824
|
+
if (Fe(n)) {
|
|
2825
|
+
const o = s.parse(Us(n));
|
|
2826
|
+
return pt(o);
|
|
2781
2827
|
}
|
|
2782
2828
|
return n;
|
|
2783
2829
|
}
|
|
2784
|
-
const i = [...t.readFileNameTemplate(e.options)], r =
|
|
2830
|
+
const i = [...t.readFileNameTemplate(e.options)], r = pt(s.parseTokens(i));
|
|
2785
2831
|
return r === "none" ? void 0 : r;
|
|
2786
2832
|
}
|
|
2787
|
-
function
|
|
2788
|
-
return t.length === 1 &&
|
|
2833
|
+
function pt(t) {
|
|
2834
|
+
return t.length === 1 && Ae(t[0].token) ? t[0].token.getContent() : t;
|
|
2789
2835
|
}
|
|
2790
|
-
function*
|
|
2836
|
+
function* je(t, e, s) {
|
|
2791
2837
|
return typeof t == "string" ? t : Array.isArray(t) ? s.renderer.renderTemplates(t, e) : yield T(t, e);
|
|
2792
2838
|
}
|
|
2793
|
-
class
|
|
2839
|
+
class pn extends b {
|
|
2794
2840
|
constructor(e, s, i, r) {
|
|
2795
2841
|
super(e, s, i);
|
|
2796
2842
|
const { tokenizer: n } = e;
|
|
2797
|
-
this.file =
|
|
2843
|
+
this.file = qe(n, this.liquid, r), this.currentFile = e.file;
|
|
2798
2844
|
const o = n.p;
|
|
2799
2845
|
n.readIdentifier().content === "with" ? (n.skipBlank(), n.peek() !== ":" ? this.withVar = n.readValue() : n.p = o) : n.p = o, this.hash = new ee(n, i.options.jekyllInclude || i.options.keyValueSeparator);
|
|
2800
2846
|
}
|
|
2801
2847
|
*render(e, s) {
|
|
2802
|
-
const { liquid: i, hash: r, withVar: n } = this, { renderer: o } = i, a = yield
|
|
2848
|
+
const { liquid: i, hash: r, withVar: n } = this, { renderer: o } = i, a = yield je(this.file, e, i);
|
|
2803
2849
|
_(a, () => `illegal file path "${a}"`);
|
|
2804
|
-
const
|
|
2850
|
+
const l = e.saveRegister("blocks", "blockMode");
|
|
2805
2851
|
e.setRegister("blocks", {}), e.setRegister("blockMode", U.OUTPUT);
|
|
2806
2852
|
const c = yield r.render(e);
|
|
2807
2853
|
n && (c[a] = yield T(n, e));
|
|
2808
|
-
const
|
|
2809
|
-
e.push(e.opts.jekyllInclude ? { include: c } : c), yield o.renderTemplates(
|
|
2854
|
+
const h = yield i._parsePartialFile(a, e.sync, this.currentFile);
|
|
2855
|
+
e.push(e.opts.jekyllInclude ? { include: c } : c), yield o.renderTemplates(h, e, s), e.pop(), e.restoreRegister(l);
|
|
2810
2856
|
}
|
|
2811
2857
|
*children(e, s) {
|
|
2812
2858
|
return e && f(this.file) ? yield this.liquid._parsePartialFile(this.file, s, this.currentFile) : [];
|
|
@@ -2821,7 +2867,7 @@ class sn extends b {
|
|
|
2821
2867
|
yield* Object.values(this.hash.hash).filter(F), F(this.file) && (yield this.file), F(this.withVar) && (yield this.withVar);
|
|
2822
2868
|
}
|
|
2823
2869
|
}
|
|
2824
|
-
class
|
|
2870
|
+
class gn extends b {
|
|
2825
2871
|
constructor(e, s, i) {
|
|
2826
2872
|
super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2827
2873
|
}
|
|
@@ -2833,7 +2879,7 @@ class rn extends b {
|
|
|
2833
2879
|
yield this.identifier;
|
|
2834
2880
|
}
|
|
2835
2881
|
}
|
|
2836
|
-
class
|
|
2882
|
+
class mn extends b {
|
|
2837
2883
|
constructor(e, s, i) {
|
|
2838
2884
|
super(e, s, i), this.candidates = [];
|
|
2839
2885
|
const r = this.tokenizer.readValue();
|
|
@@ -2854,7 +2900,7 @@ class nn extends b {
|
|
|
2854
2900
|
yield* this.candidates, this.group && (yield this.group);
|
|
2855
2901
|
}
|
|
2856
2902
|
}
|
|
2857
|
-
class
|
|
2903
|
+
class yn extends b {
|
|
2858
2904
|
constructor(e, s, i, r) {
|
|
2859
2905
|
super(e, s, i), this.branches = [];
|
|
2860
2906
|
let n = [];
|
|
@@ -2893,7 +2939,7 @@ class on extends b {
|
|
|
2893
2939
|
return this.branches.map((e) => e.value);
|
|
2894
2940
|
}
|
|
2895
2941
|
}
|
|
2896
|
-
class
|
|
2942
|
+
class wn extends b {
|
|
2897
2943
|
constructor(e, s, i) {
|
|
2898
2944
|
super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2899
2945
|
}
|
|
@@ -2907,9 +2953,9 @@ class an extends b {
|
|
|
2907
2953
|
yield this.identifier;
|
|
2908
2954
|
}
|
|
2909
2955
|
}
|
|
2910
|
-
class
|
|
2956
|
+
class bn extends b {
|
|
2911
2957
|
constructor(e, s, i, r) {
|
|
2912
|
-
super(e, s, i), this.file =
|
|
2958
|
+
super(e, s, i), this.file = qe(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = r.parseTokens(s);
|
|
2913
2959
|
}
|
|
2914
2960
|
*render(e, s) {
|
|
2915
2961
|
const { liquid: i, args: r, file: n } = this, { renderer: o } = i;
|
|
@@ -2917,12 +2963,12 @@ class ln extends b {
|
|
|
2917
2963
|
e.setRegister("blockMode", U.OUTPUT), yield o.renderTemplates(this.templates, e, s);
|
|
2918
2964
|
return;
|
|
2919
2965
|
}
|
|
2920
|
-
const a = yield
|
|
2966
|
+
const a = yield je(this.file, e, i);
|
|
2921
2967
|
_(a, () => `illegal file path "${a}"`);
|
|
2922
|
-
const
|
|
2968
|
+
const l = yield i._parseLayoutFile(a, e.sync, this.currentFile);
|
|
2923
2969
|
e.setRegister("blockMode", U.STORE);
|
|
2924
|
-
const c = yield o.renderTemplates(this.templates, e),
|
|
2925
|
-
|
|
2970
|
+
const c = yield o.renderTemplates(this.templates, e), h = e.getRegister("blocks");
|
|
2971
|
+
h[""] === void 0 && (h[""] = (d, g) => g.write(c)), e.setRegister("blockMode", U.OUTPUT), e.push(yield r.render(e)), yield o.renderTemplates(l, e, s), e.pop();
|
|
2926
2972
|
}
|
|
2927
2973
|
*children(e) {
|
|
2928
2974
|
const s = this.templates.slice();
|
|
@@ -2938,7 +2984,7 @@ class ln extends b {
|
|
|
2938
2984
|
return { name: this.file, isolated: !1, scope: Object.keys(this.args.hash) };
|
|
2939
2985
|
}
|
|
2940
2986
|
}
|
|
2941
|
-
class
|
|
2987
|
+
class Tn extends b {
|
|
2942
2988
|
constructor(e, s, i, r) {
|
|
2943
2989
|
super(e, s, i), this.templates = [];
|
|
2944
2990
|
const n = /\w+/.exec(e.args);
|
|
@@ -2953,13 +2999,13 @@ class hn extends b {
|
|
|
2953
2999
|
}
|
|
2954
3000
|
*render(e, s) {
|
|
2955
3001
|
const i = this.getBlockRender(e);
|
|
2956
|
-
e.getRegister("blockMode") === U.STORE ? e.getRegister("blocks")[this.block] = i : yield i(new
|
|
3002
|
+
e.getRegister("blockMode") === U.STORE ? e.getRegister("blocks")[this.block] = i : yield i(new We(), s);
|
|
2957
3003
|
}
|
|
2958
3004
|
getBlockRender(e) {
|
|
2959
3005
|
const { liquid: s, templates: i } = this, r = e.getRegister("blocks")[this.block], n = function* (o, a) {
|
|
2960
3006
|
e.push({ block: o }), yield s.renderer.renderTemplates(i, e, a), e.pop();
|
|
2961
3007
|
};
|
|
2962
|
-
return r ? (o, a) => r(new
|
|
3008
|
+
return r ? (o, a) => r(new We((l) => n(o, l)), a) : n;
|
|
2963
3009
|
}
|
|
2964
3010
|
*children() {
|
|
2965
3011
|
return this.templates;
|
|
@@ -2968,7 +3014,7 @@ class hn extends b {
|
|
|
2968
3014
|
return ["block"];
|
|
2969
3015
|
}
|
|
2970
3016
|
}
|
|
2971
|
-
class
|
|
3017
|
+
class kn extends b {
|
|
2972
3018
|
constructor(e, s, i) {
|
|
2973
3019
|
for (super(e, s, i), this.tokens = []; s.length; ) {
|
|
2974
3020
|
const r = s.shift();
|
|
@@ -2982,7 +3028,7 @@ class cn extends b {
|
|
|
2982
3028
|
return this.tokens.map((e) => e.getText()).join("");
|
|
2983
3029
|
}
|
|
2984
3030
|
}
|
|
2985
|
-
class
|
|
3031
|
+
class vn extends Re {
|
|
2986
3032
|
constructor(e, s, i, r) {
|
|
2987
3033
|
super(e, i, r), this.length = e, this.cols = s;
|
|
2988
3034
|
}
|
|
@@ -3002,7 +3048,7 @@ class un extends Oe {
|
|
|
3002
3048
|
return this.col() === this.cols;
|
|
3003
3049
|
}
|
|
3004
3050
|
}
|
|
3005
|
-
class
|
|
3051
|
+
class xn extends b {
|
|
3006
3052
|
constructor(e, s, i, r) {
|
|
3007
3053
|
super(e, s, i);
|
|
3008
3054
|
const n = this.tokenizer.readIdentifier();
|
|
@@ -3011,8 +3057,8 @@ class fn extends b {
|
|
|
3011
3057
|
if (o.content !== "in" || !a)
|
|
3012
3058
|
throw new Error(`illegal tag: ${e.getText()}`);
|
|
3013
3059
|
this.variable = n.content, this.collection = a, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [];
|
|
3014
|
-
let
|
|
3015
|
-
const c = r.parseStream(s).on("start", () =>
|
|
3060
|
+
let l;
|
|
3061
|
+
const c = r.parseStream(s).on("start", () => l = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (h) => l.push(h)).on("end", () => {
|
|
3016
3062
|
throw new Error(`tag ${e.getText()} not closed`);
|
|
3017
3063
|
});
|
|
3018
3064
|
c.start();
|
|
@@ -3021,10 +3067,10 @@ class fn extends b {
|
|
|
3021
3067
|
let i = ie(yield T(this.collection, e));
|
|
3022
3068
|
const r = yield this.args.render(e), n = r.offset || 0, o = r.limit === void 0 ? i.length : r.limit;
|
|
3023
3069
|
i = i.slice(n, n + o);
|
|
3024
|
-
const a = r.cols || i.length,
|
|
3025
|
-
e.push(
|
|
3026
|
-
for (let
|
|
3027
|
-
|
|
3070
|
+
const a = r.cols || i.length, l = this.liquid.renderer, c = new vn(i.length, a, this.collection.getText(), this.variable), h = { tablerowloop: c };
|
|
3071
|
+
e.push(h);
|
|
3072
|
+
for (let d = 0; d < i.length; d++, c.next())
|
|
3073
|
+
h[this.variable] = i[d], c.col0() === 0 && (c.row() !== 1 && s.write("</tr>"), s.write(`<tr class="row${c.row()}">`)), s.write(`<td class="col${c.col()}">`), yield l.renderTemplates(this.templates, e, s), s.write("</td>");
|
|
3028
3074
|
i.length && s.write("</tr>"), e.pop();
|
|
3029
3075
|
}
|
|
3030
3076
|
*children() {
|
|
@@ -3039,13 +3085,13 @@ class fn extends b {
|
|
|
3039
3085
|
return [this.variable, "tablerowloop"];
|
|
3040
3086
|
}
|
|
3041
3087
|
}
|
|
3042
|
-
class
|
|
3088
|
+
class Sn extends b {
|
|
3043
3089
|
constructor(e, s, i, r) {
|
|
3044
3090
|
super(e, s, i), this.branches = [], this.elseTemplates = [];
|
|
3045
3091
|
let n = [], o = 0;
|
|
3046
3092
|
r.parseStream(s).on("start", () => this.branches.push({
|
|
3047
3093
|
value: new L(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3048
|
-
test:
|
|
3094
|
+
test: me,
|
|
3049
3095
|
templates: n = []
|
|
3050
3096
|
})).on("tag:elsif", (a) => {
|
|
3051
3097
|
if (o > 0) {
|
|
@@ -3086,17 +3132,17 @@ class dn extends b {
|
|
|
3086
3132
|
return this.branches.map((e) => e.value);
|
|
3087
3133
|
}
|
|
3088
3134
|
}
|
|
3089
|
-
class
|
|
3135
|
+
class _n extends b {
|
|
3090
3136
|
render(e, s) {
|
|
3091
3137
|
e.breakCalled = !0;
|
|
3092
3138
|
}
|
|
3093
3139
|
}
|
|
3094
|
-
class
|
|
3140
|
+
class Fn extends b {
|
|
3095
3141
|
render(e, s) {
|
|
3096
3142
|
e.continueCalled = !0;
|
|
3097
3143
|
}
|
|
3098
3144
|
}
|
|
3099
|
-
class
|
|
3145
|
+
class Ln extends b {
|
|
3100
3146
|
constructor(e, s, i) {
|
|
3101
3147
|
super(e, s, i), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new L(this.tokenizer.readFilteredValue(), this.liquid));
|
|
3102
3148
|
}
|
|
@@ -3110,7 +3156,7 @@ class mn extends b {
|
|
|
3110
3156
|
this.value && (yield this.value);
|
|
3111
3157
|
}
|
|
3112
3158
|
}
|
|
3113
|
-
class
|
|
3159
|
+
class On extends b {
|
|
3114
3160
|
constructor(e, s, i, r) {
|
|
3115
3161
|
super(e, s, i);
|
|
3116
3162
|
const n = this.tokenizer.readLiquidTagTokens(this.liquid.options);
|
|
@@ -3123,7 +3169,7 @@ class yn extends b {
|
|
|
3123
3169
|
return this.templates;
|
|
3124
3170
|
}
|
|
3125
3171
|
}
|
|
3126
|
-
class
|
|
3172
|
+
class zn extends b {
|
|
3127
3173
|
constructor(e, s, i) {
|
|
3128
3174
|
if (super(e, s, i), e.args.search(/\n\s*[^#\s]/g) !== -1)
|
|
3129
3175
|
throw new Error("every line of an inline comment must start with a '#' character");
|
|
@@ -3131,32 +3177,32 @@ class wn extends b {
|
|
|
3131
3177
|
render() {
|
|
3132
3178
|
}
|
|
3133
3179
|
}
|
|
3134
|
-
const
|
|
3135
|
-
assign:
|
|
3136
|
-
for:
|
|
3137
|
-
capture:
|
|
3138
|
-
case:
|
|
3139
|
-
comment:
|
|
3140
|
-
include:
|
|
3141
|
-
render:
|
|
3142
|
-
decrement:
|
|
3143
|
-
increment:
|
|
3144
|
-
cycle:
|
|
3145
|
-
if:
|
|
3146
|
-
layout:
|
|
3147
|
-
block:
|
|
3148
|
-
raw:
|
|
3149
|
-
tablerow:
|
|
3150
|
-
unless:
|
|
3151
|
-
break:
|
|
3152
|
-
continue:
|
|
3153
|
-
echo:
|
|
3154
|
-
liquid:
|
|
3155
|
-
"#":
|
|
3180
|
+
const Rn = {
|
|
3181
|
+
assign: nn,
|
|
3182
|
+
for: on,
|
|
3183
|
+
capture: cn,
|
|
3184
|
+
case: un,
|
|
3185
|
+
comment: fn,
|
|
3186
|
+
include: pn,
|
|
3187
|
+
render: dn,
|
|
3188
|
+
decrement: gn,
|
|
3189
|
+
increment: wn,
|
|
3190
|
+
cycle: mn,
|
|
3191
|
+
if: yn,
|
|
3192
|
+
layout: bn,
|
|
3193
|
+
block: Tn,
|
|
3194
|
+
raw: kn,
|
|
3195
|
+
tablerow: xn,
|
|
3196
|
+
unless: Sn,
|
|
3197
|
+
break: _n,
|
|
3198
|
+
continue: Fn,
|
|
3199
|
+
echo: Ln,
|
|
3200
|
+
liquid: On,
|
|
3201
|
+
"#": zn
|
|
3156
3202
|
};
|
|
3157
|
-
class
|
|
3203
|
+
class Ht {
|
|
3158
3204
|
constructor(e = {}) {
|
|
3159
|
-
this.renderer = new
|
|
3205
|
+
this.renderer = new Ps(), this.filters = {}, this.tags = {}, this.options = yi(e), this.parser = new P(this), Ie(Rn, (s, i) => this.registerTag(i, s)), Ie(rn, (s, i) => this.registerFilter(i, s));
|
|
3160
3206
|
}
|
|
3161
3207
|
parse(e, s) {
|
|
3162
3208
|
return new P(this).parse(e, s);
|
|
@@ -3167,11 +3213,11 @@ class Ct {
|
|
|
3167
3213
|
}
|
|
3168
3214
|
render(e, s, i) {
|
|
3169
3215
|
return k(this, void 0, void 0, function* () {
|
|
3170
|
-
return
|
|
3216
|
+
return M(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
|
|
3171
3217
|
});
|
|
3172
3218
|
}
|
|
3173
3219
|
renderSync(e, s, i) {
|
|
3174
|
-
return
|
|
3220
|
+
return V(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
|
|
3175
3221
|
}
|
|
3176
3222
|
renderToNodeStream(e, s, i = {}) {
|
|
3177
3223
|
const r = new I(s, this.options, i);
|
|
@@ -3183,11 +3229,11 @@ class Ct {
|
|
|
3183
3229
|
}
|
|
3184
3230
|
parseAndRender(e, s, i) {
|
|
3185
3231
|
return k(this, void 0, void 0, function* () {
|
|
3186
|
-
return
|
|
3232
|
+
return M(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
|
|
3187
3233
|
});
|
|
3188
3234
|
}
|
|
3189
3235
|
parseAndRenderSync(e, s, i) {
|
|
3190
|
-
return
|
|
3236
|
+
return V(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
|
|
3191
3237
|
}
|
|
3192
3238
|
_parsePartialFile(e, s, i) {
|
|
3193
3239
|
return new P(this).parseFile(e, s, W.Partials, i);
|
|
@@ -3200,11 +3246,11 @@ class Ct {
|
|
|
3200
3246
|
}
|
|
3201
3247
|
parseFile(e, s) {
|
|
3202
3248
|
return k(this, void 0, void 0, function* () {
|
|
3203
|
-
return
|
|
3249
|
+
return M(new P(this).parseFile(e, !1, s));
|
|
3204
3250
|
});
|
|
3205
3251
|
}
|
|
3206
3252
|
parseFileSync(e, s) {
|
|
3207
|
-
return
|
|
3253
|
+
return V(new P(this).parseFile(e, !0, s));
|
|
3208
3254
|
}
|
|
3209
3255
|
*_renderFile(e, s, i) {
|
|
3210
3256
|
const r = yield this._parseFile(e, i.sync, i.lookupType);
|
|
@@ -3212,11 +3258,11 @@ class Ct {
|
|
|
3212
3258
|
}
|
|
3213
3259
|
renderFile(e, s, i) {
|
|
3214
3260
|
return k(this, void 0, void 0, function* () {
|
|
3215
|
-
return
|
|
3261
|
+
return M(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
|
|
3216
3262
|
});
|
|
3217
3263
|
}
|
|
3218
3264
|
renderFileSync(e, s, i) {
|
|
3219
|
-
return
|
|
3265
|
+
return V(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
|
|
3220
3266
|
}
|
|
3221
3267
|
renderFileToNodeStream(e, s, i) {
|
|
3222
3268
|
return k(this, void 0, void 0, function* () {
|
|
@@ -3230,20 +3276,20 @@ class Ct {
|
|
|
3230
3276
|
}
|
|
3231
3277
|
evalValue(e, s) {
|
|
3232
3278
|
return k(this, void 0, void 0, function* () {
|
|
3233
|
-
return
|
|
3279
|
+
return M(this._evalValue(e, s));
|
|
3234
3280
|
});
|
|
3235
3281
|
}
|
|
3236
3282
|
evalValueSync(e, s) {
|
|
3237
|
-
return
|
|
3283
|
+
return V(this._evalValue(e, s));
|
|
3238
3284
|
}
|
|
3239
3285
|
registerFilter(e, s) {
|
|
3240
3286
|
this.filters[e] = s;
|
|
3241
3287
|
}
|
|
3242
3288
|
registerTag(e, s) {
|
|
3243
|
-
this.tags[e] = v(s) ? s :
|
|
3289
|
+
this.tags[e] = v(s) ? s : xi(s);
|
|
3244
3290
|
}
|
|
3245
3291
|
plugin(e) {
|
|
3246
|
-
return e.call(this,
|
|
3292
|
+
return e.call(this, Ht);
|
|
3247
3293
|
}
|
|
3248
3294
|
express() {
|
|
3249
3295
|
const e = this;
|
|
@@ -3259,93 +3305,93 @@ class Ct {
|
|
|
3259
3305
|
}
|
|
3260
3306
|
analyze(e, s = {}) {
|
|
3261
3307
|
return k(this, void 0, void 0, function* () {
|
|
3262
|
-
return
|
|
3308
|
+
return j(e, s);
|
|
3263
3309
|
});
|
|
3264
3310
|
}
|
|
3265
3311
|
analyzeSync(e, s = {}) {
|
|
3266
|
-
return
|
|
3312
|
+
return C(e, s);
|
|
3267
3313
|
}
|
|
3268
3314
|
parseAndAnalyze(e, s, i = {}) {
|
|
3269
3315
|
return k(this, void 0, void 0, function* () {
|
|
3270
|
-
return
|
|
3316
|
+
return j(this.parse(e, s), i);
|
|
3271
3317
|
});
|
|
3272
3318
|
}
|
|
3273
3319
|
parseAndAnalyzeSync(e, s, i = {}) {
|
|
3274
|
-
return
|
|
3320
|
+
return C(this.parse(e, s), i);
|
|
3275
3321
|
}
|
|
3276
3322
|
/** Return an array of all variables without their properties. */
|
|
3277
3323
|
variables(e, s = {}) {
|
|
3278
3324
|
return k(this, void 0, void 0, function* () {
|
|
3279
|
-
const i = yield
|
|
3325
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3280
3326
|
return Object.keys(i.variables);
|
|
3281
3327
|
});
|
|
3282
3328
|
}
|
|
3283
3329
|
/** Return an array of all variables without their properties. */
|
|
3284
3330
|
variablesSync(e, s = {}) {
|
|
3285
|
-
const i =
|
|
3331
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3286
3332
|
return Object.keys(i.variables);
|
|
3287
3333
|
}
|
|
3288
3334
|
/** Return an array of all variables including their properties/paths. */
|
|
3289
3335
|
fullVariables(e, s = {}) {
|
|
3290
3336
|
return k(this, void 0, void 0, function* () {
|
|
3291
|
-
const i = yield
|
|
3337
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3292
3338
|
return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
|
|
3293
3339
|
});
|
|
3294
3340
|
}
|
|
3295
3341
|
/** Return an array of all variables including their properties/paths. */
|
|
3296
3342
|
fullVariablesSync(e, s = {}) {
|
|
3297
|
-
const i =
|
|
3343
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3298
3344
|
return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
|
|
3299
3345
|
}
|
|
3300
3346
|
/** Return an array of all variables, each as an array of properties/segments. */
|
|
3301
3347
|
variableSegments(e, s = {}) {
|
|
3302
3348
|
return k(this, void 0, void 0, function* () {
|
|
3303
|
-
const i = yield
|
|
3349
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3304
3350
|
return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
|
|
3305
3351
|
});
|
|
3306
3352
|
}
|
|
3307
3353
|
/** Return an array of all variables, each as an array of properties/segments. */
|
|
3308
3354
|
variableSegmentsSync(e, s = {}) {
|
|
3309
|
-
const i =
|
|
3355
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3310
3356
|
return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
|
|
3311
3357
|
}
|
|
3312
3358
|
/** Return an array of all expected context variables without their properties. */
|
|
3313
3359
|
globalVariables(e, s = {}) {
|
|
3314
3360
|
return k(this, void 0, void 0, function* () {
|
|
3315
|
-
const i = yield
|
|
3361
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3316
3362
|
return Object.keys(i.globals);
|
|
3317
3363
|
});
|
|
3318
3364
|
}
|
|
3319
3365
|
/** Return an array of all expected context variables without their properties. */
|
|
3320
3366
|
globalVariablesSync(e, s = {}) {
|
|
3321
|
-
const i =
|
|
3367
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3322
3368
|
return Object.keys(i.globals);
|
|
3323
3369
|
}
|
|
3324
3370
|
/** Return an array of all expected context variables including their properties/paths. */
|
|
3325
3371
|
globalFullVariables(e, s = {}) {
|
|
3326
3372
|
return k(this, void 0, void 0, function* () {
|
|
3327
|
-
const i = yield
|
|
3373
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3328
3374
|
return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
|
|
3329
3375
|
});
|
|
3330
3376
|
}
|
|
3331
3377
|
/** Return an array of all expected context variables including their properties/paths. */
|
|
3332
3378
|
globalFullVariablesSync(e, s = {}) {
|
|
3333
|
-
const i =
|
|
3379
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3334
3380
|
return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
|
|
3335
3381
|
}
|
|
3336
3382
|
/** Return an array of all expected context variables, each as an array of properties/segments. */
|
|
3337
3383
|
globalVariableSegments(e, s = {}) {
|
|
3338
3384
|
return k(this, void 0, void 0, function* () {
|
|
3339
|
-
const i = yield
|
|
3385
|
+
const i = yield j(f(e) ? this.parse(e) : e, s);
|
|
3340
3386
|
return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
|
|
3341
3387
|
});
|
|
3342
3388
|
}
|
|
3343
3389
|
/** Return an array of all expected context variables, each as an array of properties/segments. */
|
|
3344
3390
|
globalVariableSegmentsSync(e, s = {}) {
|
|
3345
|
-
const i =
|
|
3391
|
+
const i = C(f(e) ? this.parse(e) : e, s);
|
|
3346
3392
|
return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
|
|
3347
3393
|
}
|
|
3348
3394
|
}
|
|
3349
3395
|
export {
|
|
3350
|
-
|
|
3396
|
+
Ht as L
|
|
3351
3397
|
};
|