twenty-sdk 2.5.0 → 2.5.1
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/define/index.cjs +12 -12
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +2 -3
- package/dist/define/index.mjs +521 -536
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-CAXZvR3C.js → get-function-input-schema-BZ7_XyUh-B4X558dR.js} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-CZAcXjRm.mjs → get-function-input-schema-BZ7_XyUh-DYcon7Tw.mjs} +1 -1
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +25 -38
- package/dist/ui/index.mjs +10331 -10987
- package/dist/{uninstall-alpjCdlN.js → uninstall-CAX2lAya.js} +44 -44
- package/dist/{uninstall-1kje7-S4.mjs → uninstall-EJoTXOaZ.mjs} +1898 -1913
- package/dist/utils/index.cjs +2 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.mjs +19 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +10 -2
package/dist/define/index.mjs
CHANGED
|
@@ -10,10 +10,10 @@ const _ = ({
|
|
|
10
10
|
config: e,
|
|
11
11
|
errors: a,
|
|
12
12
|
warnings: o
|
|
13
|
-
}),
|
|
13
|
+
}), zt = (e) => {
|
|
14
14
|
const a = [];
|
|
15
15
|
return e.universalIdentifier || a.push("Agent must have a universalIdentifier"), e.name || a.push("Agent must have a name"), e.label || a.push("Agent must have a label"), e.prompt || a.push("Agent must have a prompt"), _({ config: e, errors: a });
|
|
16
|
-
},
|
|
16
|
+
}, qt = (e) => {
|
|
17
17
|
const a = [], o = [];
|
|
18
18
|
return e.universalIdentifier || a.push("Application must have a universalIdentifier"), (!e.displayName || e.displayName.length === 0) && a.push("Application must have a non empty display name"), e.defaultRoleUniversalIdentifier && o.push(
|
|
19
19
|
"`defaultRoleUniversalIdentifier` on defineApplication() is deprecated. Use defineApplicationRole() in your role file instead."
|
|
@@ -254,7 +254,7 @@ const rn = (e) => {
|
|
|
254
254
|
`Field "${o.label}" of type ${o.type} cannot be unique`
|
|
255
255
|
);
|
|
256
256
|
return a;
|
|
257
|
-
},
|
|
257
|
+
}, Vt = (e) => {
|
|
258
258
|
const a = [];
|
|
259
259
|
e.objectUniversalIdentifier || a.push("Field must have an objectUniversalIdentifier");
|
|
260
260
|
const o = rn([e]);
|
|
@@ -262,36 +262,36 @@ const rn = (e) => {
|
|
|
262
262
|
config: e,
|
|
263
263
|
errors: a
|
|
264
264
|
});
|
|
265
|
-
},
|
|
265
|
+
}, es = (e) => {
|
|
266
266
|
const a = [];
|
|
267
267
|
return e.universalIdentifier || a.push("CommandMenuItem must have a universalIdentifier"), e.label || a.push("CommandMenuItem must have a label"), e.frontComponentUniversalIdentifier || a.push(
|
|
268
268
|
"CommandMenuItem must have a frontComponentUniversalIdentifier (the universalIdentifier of the front component this command opens)"
|
|
269
269
|
), _({ config: e, errors: a });
|
|
270
|
-
},
|
|
270
|
+
}, as = (e) => {
|
|
271
271
|
const a = [];
|
|
272
272
|
return e.universalIdentifier || a.push("Front component must have a universalIdentifier"), e.component || a.push("Front component must have a component"), typeof e.component != "function" && a.push("Front component component must be a React component"), _({
|
|
273
273
|
config: e,
|
|
274
274
|
errors: a
|
|
275
275
|
});
|
|
276
|
-
},
|
|
276
|
+
}, is = (e) => {
|
|
277
277
|
const a = [];
|
|
278
278
|
return e.universalIdentifier || a.push("Logic function must have a universalIdentifier"), e.handler || a.push("Logic function must have a handler"), typeof e.handler != "function" && a.push("Logic function handler must be a function"), e.httpRouteTriggerSettings && (e.httpRouteTriggerSettings.path || a.push("Route trigger must have a path"), e.httpRouteTriggerSettings.httpMethod || a.push("Route trigger must have an httpMethod")), e.cronTriggerSettings && (e.cronTriggerSettings.pattern || a.push("Cron trigger must have a pattern")), e.databaseEventTriggerSettings && (e.databaseEventTriggerSettings.eventName || a.push("Database event trigger must have an eventName")), _({
|
|
279
279
|
config: e,
|
|
280
280
|
errors: a
|
|
281
281
|
});
|
|
282
|
-
},
|
|
282
|
+
}, ns = (e) => {
|
|
283
283
|
const a = [];
|
|
284
284
|
return e.universalIdentifier || a.push("Post install logic function must have a universalIdentifier"), e.handler || a.push("Post install logic function must have a handler"), typeof e.handler != "function" && a.push("Post install logic function handler must be a function"), _({
|
|
285
285
|
config: e,
|
|
286
286
|
errors: a
|
|
287
287
|
});
|
|
288
|
-
},
|
|
288
|
+
}, us = (e) => {
|
|
289
289
|
const a = [];
|
|
290
290
|
return e.universalIdentifier || a.push("Pre install logic function must have a universalIdentifier"), e.handler || a.push("Pre install logic function must have a handler"), typeof e.handler != "function" && a.push("Pre install logic function handler must be a function"), _({
|
|
291
291
|
config: e,
|
|
292
292
|
errors: a
|
|
293
293
|
});
|
|
294
|
-
}, ai = /^[a-z][a-z0-9-]*$/, xu = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ii = ["oauth"],
|
|
294
|
+
}, ai = /^[a-z][a-z0-9-]*$/, xu = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, ii = ["oauth"], os = (e) => {
|
|
295
295
|
const a = [];
|
|
296
296
|
if (e.universalIdentifier ? xu.test(e.universalIdentifier) || a.push(
|
|
297
297
|
`Connection provider universalIdentifier "${e.universalIdentifier}" must be a UUID. Generate one with \`uuidgen\` or any UUID v4 tool.`
|
|
@@ -312,7 +312,7 @@ const rn = (e) => {
|
|
|
312
312
|
);
|
|
313
313
|
}
|
|
314
314
|
return _({ config: e, errors: a });
|
|
315
|
-
},
|
|
315
|
+
}, ts = (e) => {
|
|
316
316
|
const a = [];
|
|
317
317
|
return e.universalIdentifier || a.push("NavigationMenuItem must have a universalIdentifier"), typeof e.position != "number" && a.push("NavigationMenuItem must have a position"), _({ config: e, errors: a });
|
|
318
318
|
}, Ye = (e) => !bu(e) && !yu(e);
|
|
@@ -352,45 +352,45 @@ function dn(e) {
|
|
|
352
352
|
return new A(Ze, e);
|
|
353
353
|
}
|
|
354
354
|
function Pa(e, a, o, t, h) {
|
|
355
|
-
for (var
|
|
355
|
+
for (var g = [], b = [], c, r, d, s, y = 0; y < e.length; y++) {
|
|
356
356
|
var u = e[y], n = u.type;
|
|
357
357
|
if (n === V || n === he)
|
|
358
|
-
Array.isArray(u.value) ?
|
|
358
|
+
Array.isArray(u.value) ? g.push.apply(g, Pa(u.value.map(function(i) {
|
|
359
359
|
return new A(V, i);
|
|
360
|
-
}).concat(new A(Ce, u.value.length)), a, o, t, h)) :
|
|
360
|
+
}).concat(new A(Ce, u.value.length)), a, o, t, h)) : g.push(u);
|
|
361
361
|
else if (n === se && Object.hasOwn(h, u.value))
|
|
362
|
-
u = new A(V, h[u.value]),
|
|
363
|
-
else if (n === Ie &&
|
|
364
|
-
r =
|
|
365
|
-
else if (n === Ze &&
|
|
366
|
-
d =
|
|
367
|
-
else if (n === ke &&
|
|
368
|
-
c =
|
|
362
|
+
u = new A(V, h[u.value]), g.push(u);
|
|
363
|
+
else if (n === Ie && g.length > 1)
|
|
364
|
+
r = g.pop(), c = g.pop(), s = o[u.value], u = new A(V, s(c.value, r.value)), g.push(u);
|
|
365
|
+
else if (n === Ze && g.length > 2)
|
|
366
|
+
d = g.pop(), r = g.pop(), c = g.pop(), u.value === "?" ? g.push(c.value ? r.value : d.value) : (s = t[u.value], u = new A(V, s(c.value, r.value, d.value)), g.push(u));
|
|
367
|
+
else if (n === ke && g.length > 0)
|
|
368
|
+
c = g.pop(), s = a[u.value], u = new A(V, s(c.value)), g.push(u);
|
|
369
369
|
else if (n === K) {
|
|
370
|
-
for (;
|
|
371
|
-
b.push(
|
|
370
|
+
for (; g.length > 0; )
|
|
371
|
+
b.push(g.shift());
|
|
372
372
|
b.push(new A(K, Pa(u.value, a, o, t, h)));
|
|
373
|
-
} else if (n === ce &&
|
|
374
|
-
c =
|
|
373
|
+
} else if (n === ce && g.length > 0)
|
|
374
|
+
c = g.pop(), g.push(new A(V, c.value[u.value]));
|
|
375
375
|
else {
|
|
376
|
-
for (;
|
|
377
|
-
b.push(
|
|
376
|
+
for (; g.length > 0; )
|
|
377
|
+
b.push(g.shift());
|
|
378
378
|
b.push(u);
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
for (;
|
|
382
|
-
b.push(
|
|
381
|
+
for (; g.length > 0; )
|
|
382
|
+
b.push(g.shift());
|
|
383
383
|
return b;
|
|
384
384
|
}
|
|
385
385
|
function ln(e, a, o) {
|
|
386
386
|
for (var t = [], h = 0; h < e.length; h++) {
|
|
387
|
-
var
|
|
388
|
-
if (b === se &&
|
|
387
|
+
var g = e[h], b = g.type;
|
|
388
|
+
if (b === se && g.value === a)
|
|
389
389
|
for (var c = 0; c < o.tokens.length; c++) {
|
|
390
390
|
var r = o.tokens[c], d;
|
|
391
391
|
r.type === ke ? d = ya(r.value) : r.type === Ie ? d = de(r.value) : r.type === Ze ? d = dn(r.value) : d = new A(r.type, r.value), t.push(d);
|
|
392
392
|
}
|
|
393
|
-
else b === K ? t.push(new A(K, ln(
|
|
393
|
+
else b === K ? t.push(new A(K, ln(g.value, a, o))) : t.push(g);
|
|
394
394
|
}
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
@@ -398,8 +398,8 @@ function va(e, a, o) {
|
|
|
398
398
|
if (Object.values(a.functions).includes(e)) return !0;
|
|
399
399
|
for (const h of Object.values(o))
|
|
400
400
|
if (typeof h == "object" && h !== null) {
|
|
401
|
-
for (const
|
|
402
|
-
if (
|
|
401
|
+
for (const g of Object.values(h))
|
|
402
|
+
if (g === e) {
|
|
403
403
|
const b = Object.freeze({
|
|
404
404
|
abs: Math.abs,
|
|
405
405
|
acos: Math.acos,
|
|
@@ -439,14 +439,14 @@ function va(e, a, o) {
|
|
|
439
439
|
cbrt: Math.cbrt
|
|
440
440
|
});
|
|
441
441
|
for (var t of Object.getOwnPropertyNames(b))
|
|
442
|
-
if (b[t] ===
|
|
443
|
-
return Object.values(a.functions).includes(
|
|
442
|
+
if (b[t] === g) return !0;
|
|
443
|
+
return Object.values(a.functions).includes(g);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
return !1;
|
|
447
447
|
}
|
|
448
448
|
function ge(e, a, o) {
|
|
449
|
-
var t = [], h,
|
|
449
|
+
var t = [], h, g, b, c, r, d;
|
|
450
450
|
if (Fa(e))
|
|
451
451
|
return oe(e, o);
|
|
452
452
|
for (var s = e.length, y = 0; y < s; y++) {
|
|
@@ -454,9 +454,9 @@ function ge(e, a, o) {
|
|
|
454
454
|
if (n === V || n === he)
|
|
455
455
|
t.push(u.value);
|
|
456
456
|
else if (n === Ie)
|
|
457
|
-
|
|
457
|
+
g = t.pop(), h = t.pop(), u.value === "and" ? t.push(h ? !!ge(g, a, o) : !1) : u.value === "or" ? t.push(h ? !0 : !!ge(g, a, o)) : u.value === "=" ? (c = a.binaryOps[u.value], t.push(c(h, ge(g, a, o), o))) : (c = a.binaryOps[u.value], t.push(c(oe(h, o), oe(g, o))));
|
|
458
458
|
else if (n === Ze)
|
|
459
|
-
b = t.pop(),
|
|
459
|
+
b = t.pop(), g = t.pop(), h = t.pop(), u.value === "?" ? t.push(ge(h ? g : b, a, o)) : (c = a.ternaryOps[u.value], t.push(c(oe(h, o), oe(g, o), oe(b, o))));
|
|
460
460
|
else if (n === se) {
|
|
461
461
|
if (/^__proto__|prototype|constructor$/.test(u.value))
|
|
462
462
|
throw new Error("prototype access detected");
|
|
@@ -486,12 +486,12 @@ function ge(e, a, o) {
|
|
|
486
486
|
throw new Error(c + " is not a function");
|
|
487
487
|
} else if (n === fa)
|
|
488
488
|
t.push((function() {
|
|
489
|
-
for (var
|
|
489
|
+
for (var l = t.pop(), f = [], p = u.value; p-- > 0; )
|
|
490
490
|
f.unshift(t.pop());
|
|
491
491
|
var m = t.pop(), S = function() {
|
|
492
492
|
for (var j = Object.assign({}, o), w = 0, $ = f.length; w < $; w++)
|
|
493
493
|
j[f[w]] = arguments[w];
|
|
494
|
-
return ge(
|
|
494
|
+
return ge(l, a, j);
|
|
495
495
|
};
|
|
496
496
|
return a.functions["lambda_" + a.functions.__counter++] = S, o[m] = S, S;
|
|
497
497
|
})());
|
|
@@ -533,15 +533,15 @@ function oe(e, a) {
|
|
|
533
533
|
return Fa(e) ? e.value(a) : e;
|
|
534
534
|
}
|
|
535
535
|
function xa(e, a) {
|
|
536
|
-
for (var o = [], t, h,
|
|
536
|
+
for (var o = [], t, h, g, b, c, r, d = 0; d < e.length; d++) {
|
|
537
537
|
var s = e[d], y = s.type;
|
|
538
538
|
if (y === V)
|
|
539
539
|
typeof s.value == "number" && s.value < 0 ? o.push("(" + s.value + ")") : Array.isArray(s.value) ? o.push("[" + s.value.map(ni).join(", ") + "]") : o.push(ni(s.value));
|
|
540
540
|
else if (y === Ie)
|
|
541
541
|
h = o.pop(), t = o.pop(), b = s.value, a ? b === "^" ? o.push("Math.pow(" + t + ", " + h + ")") : b === "and" ? o.push("(!!" + t + " && !!" + h + ")") : b === "or" ? o.push("(!!" + t + " || !!" + h + ")") : b === "||" ? o.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((" + t + "),(" + h + ")))") : b === "==" ? o.push("(" + t + " === " + h + ")") : b === "!=" ? o.push("(" + t + " !== " + h + ")") : b === "[" ? o.push(t + "[(" + h + ") | 0]") : o.push("(" + t + " " + b + " " + h + ")") : b === "[" ? o.push(t + "[" + h + "]") : o.push("(" + t + " " + b + " " + h + ")");
|
|
542
542
|
else if (y === Ze)
|
|
543
|
-
if (
|
|
544
|
-
o.push("(" + t + " ? " + h + " : " +
|
|
543
|
+
if (g = o.pop(), h = o.pop(), t = o.pop(), b = s.value, b === "?")
|
|
544
|
+
o.push("(" + t + " ? " + h + " : " + g + ")");
|
|
545
545
|
else
|
|
546
546
|
throw new Error("invalid Expression");
|
|
547
547
|
else if (y === se || y === he)
|
|
@@ -579,8 +579,8 @@ function je(e, a) {
|
|
|
579
579
|
}
|
|
580
580
|
function Ra(e, a, o) {
|
|
581
581
|
o = o || {};
|
|
582
|
-
for (var t = !!o.withMembers, h = null,
|
|
583
|
-
var b = e[
|
|
582
|
+
for (var t = !!o.withMembers, h = null, g = 0; g < e.length; g++) {
|
|
583
|
+
var b = e[g];
|
|
584
584
|
b.type === se || b.type === he ? !t && !je(a, b.value) ? a.push(b.value) : (h !== null && (je(a, h) || a.push(h)), h = b.value) : b.type === ce && t && h !== null ? h += "." + b.value : b.type === K ? Ra(b.value, a, o) : h !== null && (je(a, h) || a.push(h), h = null);
|
|
585
585
|
}
|
|
586
586
|
h !== null && !je(a, h) && a.push(h);
|
|
@@ -771,8 +771,8 @@ E.prototype.unescape = function(e) {
|
|
|
771
771
|
throw this.parseError('Illegal escape sequence: "\\' + t + '"');
|
|
772
772
|
}
|
|
773
773
|
++a;
|
|
774
|
-
var
|
|
775
|
-
o += e.substring(a,
|
|
774
|
+
var g = e.indexOf("\\", a);
|
|
775
|
+
o += e.substring(a, g < 0 ? e.length : g), a = g;
|
|
776
776
|
}
|
|
777
777
|
return o;
|
|
778
778
|
};
|
|
@@ -793,8 +793,8 @@ E.prototype.isRadixInteger = function() {
|
|
|
793
793
|
else
|
|
794
794
|
return !1;
|
|
795
795
|
for (var t = !1, h = e; e < this.expression.length; ) {
|
|
796
|
-
var
|
|
797
|
-
if (o.test(
|
|
796
|
+
var g = this.expression.charAt(e);
|
|
797
|
+
if (o.test(g))
|
|
798
798
|
e++, t = !0;
|
|
799
799
|
else
|
|
800
800
|
break;
|
|
@@ -802,8 +802,8 @@ E.prototype.isRadixInteger = function() {
|
|
|
802
802
|
return t && (this.current = this.newToken(pa, parseInt(this.expression.substring(h, e), a)), this.pos = e), t;
|
|
803
803
|
};
|
|
804
804
|
E.prototype.isNumber = function() {
|
|
805
|
-
for (var e = !1, a = this.pos, o = a, t = a, h = !1,
|
|
806
|
-
b === "." ? h = !0 :
|
|
805
|
+
for (var e = !1, a = this.pos, o = a, t = a, h = !1, g = !1, b; a < this.expression.length && (b = this.expression.charAt(a), b >= "0" && b <= "9" || !h && b === "."); )
|
|
806
|
+
b === "." ? h = !0 : g = !0, a++, e = g;
|
|
807
807
|
if (e && (t = a), b === "e" || b === "E") {
|
|
808
808
|
a++;
|
|
809
809
|
for (var c = !0, r = !1; a < this.expression.length; ) {
|
|
@@ -930,7 +930,7 @@ H.prototype.parseVariableAssignmentExpression = function(e) {
|
|
|
930
930
|
if (a.type === $e) {
|
|
931
931
|
if (!this.tokens.isOperatorEnabled("()="))
|
|
932
932
|
throw new Error("function definition is not permitted");
|
|
933
|
-
for (var h = 0,
|
|
933
|
+
for (var h = 0, g = a.value + 1; h < g; h++) {
|
|
934
934
|
var b = t - h;
|
|
935
935
|
e[b].type === se && (e[b] = new A(he, e[b].value));
|
|
936
936
|
}
|
|
@@ -1011,8 +1011,8 @@ H.prototype.parsePostfixExpression = function(e) {
|
|
|
1011
1011
|
};
|
|
1012
1012
|
H.prototype.parseFunctionCall = function(e) {
|
|
1013
1013
|
var a = this.tokens.unaryOps;
|
|
1014
|
-
function o(
|
|
1015
|
-
return
|
|
1014
|
+
function o(g) {
|
|
1015
|
+
return g.value in a;
|
|
1016
1016
|
}
|
|
1017
1017
|
if (this.accept(X, o)) {
|
|
1018
1018
|
var t = this.current;
|
|
@@ -1164,8 +1164,8 @@ function Qa(e) {
|
|
|
1164
1164
|
if (e >= 171.35)
|
|
1165
1165
|
return 1 / 0;
|
|
1166
1166
|
if (e > 85) {
|
|
1167
|
-
var
|
|
1168
|
-
return Math.sqrt(2 * Math.PI / e) * Math.pow(e / Math.E, e) * (1 + 1 / (12 * e) + 1 / (288 *
|
|
1167
|
+
var g = e * e, b = g * e, c = b * e, r = c * e;
|
|
1168
|
+
return Math.sqrt(2 * Math.PI / e) * Math.pow(e / Math.E, e) * (1 + 1 / (12 * e) + 1 / (288 * g) - 139 / (51840 * b) - 571 / (2488320 * c) + 163879 / (209018880 * r) + 5246819 / (75246796800 * r * e));
|
|
1169
1169
|
}
|
|
1170
1170
|
--e, o = Sa[0];
|
|
1171
1171
|
for (var d = 1; d < Sa.length; ++d)
|
|
@@ -1214,8 +1214,8 @@ function Zo(e, a, o) {
|
|
|
1214
1214
|
throw new Error("First argument to fold is not a function");
|
|
1215
1215
|
if (!Array.isArray(o))
|
|
1216
1216
|
throw new Error("Second argument to fold is not an array");
|
|
1217
|
-
return o.reduce(function(t, h,
|
|
1218
|
-
return e(t, h,
|
|
1217
|
+
return o.reduce(function(t, h, g) {
|
|
1218
|
+
return e(t, h, g);
|
|
1219
1219
|
}, a);
|
|
1220
1220
|
}
|
|
1221
1221
|
function To(e, a) {
|
|
@@ -1408,26 +1408,26 @@ function U() {
|
|
|
1408
1408
|
return e[i];
|
|
1409
1409
|
}
|
|
1410
1410
|
function h(i) {
|
|
1411
|
-
for (var
|
|
1412
|
-
for (var f in arguments[
|
|
1413
|
-
Object.prototype.hasOwnProperty.call(arguments[
|
|
1411
|
+
for (var l = 1; l < arguments.length; l++)
|
|
1412
|
+
for (var f in arguments[l])
|
|
1413
|
+
Object.prototype.hasOwnProperty.call(arguments[l], f) && (i[f] = arguments[l][f]);
|
|
1414
1414
|
return i;
|
|
1415
1415
|
}
|
|
1416
|
-
var
|
|
1417
|
-
O.toString =
|
|
1418
|
-
var b = function(
|
|
1419
|
-
return typeof
|
|
1416
|
+
var g = Object.prototype.toString;
|
|
1417
|
+
O.toString = g;
|
|
1418
|
+
var b = function(l) {
|
|
1419
|
+
return typeof l == "function";
|
|
1420
1420
|
};
|
|
1421
1421
|
b(/x/) && (O.isFunction = b = function(i) {
|
|
1422
|
-
return typeof i == "function" &&
|
|
1422
|
+
return typeof i == "function" && g.call(i) === "[object Function]";
|
|
1423
1423
|
}), O.isFunction = b;
|
|
1424
1424
|
var c = Array.isArray || function(i) {
|
|
1425
|
-
return i && typeof i == "object" ?
|
|
1425
|
+
return i && typeof i == "object" ? g.call(i) === "[object Array]" : !1;
|
|
1426
1426
|
};
|
|
1427
1427
|
O.isArray = c;
|
|
1428
|
-
function r(i,
|
|
1428
|
+
function r(i, l) {
|
|
1429
1429
|
for (var f = 0, p = i.length; f < p; f++)
|
|
1430
|
-
if (i[f] ===
|
|
1430
|
+
if (i[f] === l)
|
|
1431
1431
|
return f;
|
|
1432
1432
|
return -1;
|
|
1433
1433
|
}
|
|
@@ -1447,14 +1447,14 @@ function U() {
|
|
|
1447
1447
|
return !i && i !== 0 ? !0 : !!(c(i) && i.length === 0);
|
|
1448
1448
|
}
|
|
1449
1449
|
function y(i) {
|
|
1450
|
-
var
|
|
1451
|
-
return
|
|
1450
|
+
var l = h({}, i);
|
|
1451
|
+
return l._parent = i, l;
|
|
1452
1452
|
}
|
|
1453
|
-
function u(i,
|
|
1454
|
-
return i.path =
|
|
1453
|
+
function u(i, l) {
|
|
1454
|
+
return i.path = l, i;
|
|
1455
1455
|
}
|
|
1456
|
-
function n(i,
|
|
1457
|
-
return (i ? i + "." : "") +
|
|
1456
|
+
function n(i, l) {
|
|
1457
|
+
return (i ? i + "." : "") + l;
|
|
1458
1458
|
}
|
|
1459
1459
|
return O;
|
|
1460
1460
|
}
|
|
@@ -1463,8 +1463,8 @@ function ee() {
|
|
|
1463
1463
|
return gi || (gi = 1, (function(e, a) {
|
|
1464
1464
|
a.__esModule = !0;
|
|
1465
1465
|
var o = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"];
|
|
1466
|
-
function t(h,
|
|
1467
|
-
var b =
|
|
1466
|
+
function t(h, g) {
|
|
1467
|
+
var b = g && g.loc, c = void 0, r = void 0, d = void 0, s = void 0;
|
|
1468
1468
|
b && (c = b.start.line, r = b.end.line, d = b.start.column, s = b.end.column, h += " - " + c + ":" + d);
|
|
1469
1469
|
for (var y = Error.prototype.constructor.call(this, h), u = 0; u < o.length; u++)
|
|
1470
1470
|
this[o[u]] = y[o[u]];
|
|
@@ -1489,19 +1489,19 @@ function Bo() {
|
|
|
1489
1489
|
a.__esModule = !0;
|
|
1490
1490
|
var o = U();
|
|
1491
1491
|
a.default = function(t) {
|
|
1492
|
-
t.registerHelper("blockHelperMissing", function(h,
|
|
1493
|
-
var b =
|
|
1492
|
+
t.registerHelper("blockHelperMissing", function(h, g) {
|
|
1493
|
+
var b = g.inverse, c = g.fn;
|
|
1494
1494
|
if (h === !0)
|
|
1495
1495
|
return c(this);
|
|
1496
1496
|
if (h === !1 || h == null)
|
|
1497
1497
|
return b(this);
|
|
1498
1498
|
if (o.isArray(h))
|
|
1499
|
-
return h.length > 0 ? (
|
|
1500
|
-
if (
|
|
1501
|
-
var r = o.createFrame(
|
|
1502
|
-
r.contextPath = o.appendContextPath(
|
|
1499
|
+
return h.length > 0 ? (g.ids && (g.ids = [g.name]), t.helpers.each(h, g)) : b(this);
|
|
1500
|
+
if (g.data && g.ids) {
|
|
1501
|
+
var r = o.createFrame(g.data);
|
|
1502
|
+
r.contextPath = o.appendContextPath(g.data.contextPath, g.name), g = { data: r };
|
|
1503
1503
|
}
|
|
1504
|
-
return c(h,
|
|
1504
|
+
return c(h, g);
|
|
1505
1505
|
});
|
|
1506
1506
|
}, e.exports = a.default;
|
|
1507
1507
|
})(Ge, Ge.exports)), Ge.exports;
|
|
@@ -1513,14 +1513,14 @@ function Fo() {
|
|
|
1513
1513
|
function o(b) {
|
|
1514
1514
|
return b && b.__esModule ? b : { default: b };
|
|
1515
1515
|
}
|
|
1516
|
-
var t = U(), h = ee(),
|
|
1516
|
+
var t = U(), h = ee(), g = o(h);
|
|
1517
1517
|
a.default = function(b) {
|
|
1518
1518
|
b.registerHelper("each", function(c, r) {
|
|
1519
1519
|
if (!r)
|
|
1520
|
-
throw new
|
|
1520
|
+
throw new g.default("Must pass iterator to #each");
|
|
1521
1521
|
var d = r.fn, s = r.inverse, y = 0, u = "", n = void 0, i = void 0;
|
|
1522
1522
|
r.data && r.ids && (i = t.appendContextPath(r.data.contextPath, r.ids[0]) + "."), t.isFunction(c) && (c = c.call(this)), r.data && (n = t.createFrame(r.data));
|
|
1523
|
-
function
|
|
1523
|
+
function l(j, w, $) {
|
|
1524
1524
|
n && (n.key = j, n.index = w, n.first = w === 0, n.last = !!$, i && (n.contextPath = i + j)), u = u + d(c[j], {
|
|
1525
1525
|
data: n,
|
|
1526
1526
|
blockParams: t.blockParams([c[j], j], [i + j, null])
|
|
@@ -1529,19 +1529,19 @@ function Fo() {
|
|
|
1529
1529
|
if (c && typeof c == "object")
|
|
1530
1530
|
if (t.isArray(c))
|
|
1531
1531
|
for (var f = c.length; y < f; y++)
|
|
1532
|
-
y in c &&
|
|
1532
|
+
y in c && l(y, y, y === c.length - 1);
|
|
1533
1533
|
else if (typeof Symbol == "function" && c[Symbol.iterator]) {
|
|
1534
1534
|
for (var p = [], m = c[Symbol.iterator](), S = m.next(); !S.done; S = m.next())
|
|
1535
1535
|
p.push(S.value);
|
|
1536
1536
|
c = p;
|
|
1537
1537
|
for (var f = c.length; y < f; y++)
|
|
1538
|
-
|
|
1538
|
+
l(y, y, y === c.length - 1);
|
|
1539
1539
|
} else
|
|
1540
1540
|
(function() {
|
|
1541
1541
|
var j = void 0;
|
|
1542
1542
|
Object.keys(c).forEach(function(w) {
|
|
1543
|
-
j !== void 0 &&
|
|
1544
|
-
}), j !== void 0 &&
|
|
1543
|
+
j !== void 0 && l(j, y - 1), j = w, y++;
|
|
1544
|
+
}), j !== void 0 && l(j, y - 1, !0);
|
|
1545
1545
|
})();
|
|
1546
1546
|
return y === 0 && (u = s(this)), u;
|
|
1547
1547
|
});
|
|
@@ -1552,12 +1552,12 @@ var Qe = { exports: {} }, fi;
|
|
|
1552
1552
|
function xo() {
|
|
1553
1553
|
return fi || (fi = 1, (function(e, a) {
|
|
1554
1554
|
a.__esModule = !0;
|
|
1555
|
-
function o(
|
|
1556
|
-
return
|
|
1555
|
+
function o(g) {
|
|
1556
|
+
return g && g.__esModule ? g : { default: g };
|
|
1557
1557
|
}
|
|
1558
1558
|
var t = ee(), h = o(t);
|
|
1559
|
-
a.default = function(
|
|
1560
|
-
|
|
1559
|
+
a.default = function(g) {
|
|
1560
|
+
g.registerHelper("helperMissing", function() {
|
|
1561
1561
|
if (arguments.length !== 1)
|
|
1562
1562
|
throw new h.default('Missing helper: "' + arguments[arguments.length - 1].name + '"');
|
|
1563
1563
|
});
|
|
@@ -1571,15 +1571,15 @@ function Ro() {
|
|
|
1571
1571
|
function o(b) {
|
|
1572
1572
|
return b && b.__esModule ? b : { default: b };
|
|
1573
1573
|
}
|
|
1574
|
-
var t = U(), h = ee(),
|
|
1574
|
+
var t = U(), h = ee(), g = o(h);
|
|
1575
1575
|
a.default = function(b) {
|
|
1576
1576
|
b.registerHelper("if", function(c, r) {
|
|
1577
1577
|
if (arguments.length != 2)
|
|
1578
|
-
throw new
|
|
1578
|
+
throw new g.default("#if requires exactly one argument");
|
|
1579
1579
|
return t.isFunction(c) && (c = c.call(this)), !r.hash.includeZero && !c || t.isEmpty(c) ? r.inverse(this) : r.fn(this);
|
|
1580
1580
|
}), b.registerHelper("unless", function(c, r) {
|
|
1581
1581
|
if (arguments.length != 2)
|
|
1582
|
-
throw new
|
|
1582
|
+
throw new g.default("#unless requires exactly one argument");
|
|
1583
1583
|
return b.helpers.if.call(this, c, {
|
|
1584
1584
|
fn: r.inverse,
|
|
1585
1585
|
inverse: r.fn,
|
|
@@ -1594,8 +1594,8 @@ function Go() {
|
|
|
1594
1594
|
return yi || (yi = 1, (function(e, a) {
|
|
1595
1595
|
a.__esModule = !0, a.default = function(o) {
|
|
1596
1596
|
o.registerHelper("log", function() {
|
|
1597
|
-
for (var t = [void 0], h = arguments[arguments.length - 1],
|
|
1598
|
-
t.push(arguments[
|
|
1597
|
+
for (var t = [void 0], h = arguments[arguments.length - 1], g = 0; g < arguments.length - 1; g++)
|
|
1598
|
+
t.push(arguments[g]);
|
|
1599
1599
|
var b = 1;
|
|
1600
1600
|
h.hash.level != null ? b = h.hash.level : h.data && h.data.level != null && (b = h.data.level), t[0] = b, o.log.apply(o, t);
|
|
1601
1601
|
});
|
|
@@ -1606,8 +1606,8 @@ var Ke = { exports: {} }, pi;
|
|
|
1606
1606
|
function _o() {
|
|
1607
1607
|
return pi || (pi = 1, (function(e, a) {
|
|
1608
1608
|
a.__esModule = !0, a.default = function(o) {
|
|
1609
|
-
o.registerHelper("lookup", function(t, h,
|
|
1610
|
-
return t &&
|
|
1609
|
+
o.registerHelper("lookup", function(t, h, g) {
|
|
1610
|
+
return t && g.lookupProperty(t, h);
|
|
1611
1611
|
});
|
|
1612
1612
|
}, e.exports = a.default;
|
|
1613
1613
|
})(Ke, Ke.exports)), Ke.exports;
|
|
@@ -1619,11 +1619,11 @@ function Qo() {
|
|
|
1619
1619
|
function o(b) {
|
|
1620
1620
|
return b && b.__esModule ? b : { default: b };
|
|
1621
1621
|
}
|
|
1622
|
-
var t = U(), h = ee(),
|
|
1622
|
+
var t = U(), h = ee(), g = o(h);
|
|
1623
1623
|
a.default = function(b) {
|
|
1624
1624
|
b.registerHelper("with", function(c, r) {
|
|
1625
1625
|
if (arguments.length != 2)
|
|
1626
|
-
throw new
|
|
1626
|
+
throw new g.default("#with requires exactly one argument");
|
|
1627
1627
|
t.isFunction(c) && (c = c.call(this));
|
|
1628
1628
|
var d = r.fn;
|
|
1629
1629
|
if (t.isEmpty(c))
|
|
@@ -1640,12 +1640,12 @@ function Qo() {
|
|
|
1640
1640
|
var mi;
|
|
1641
1641
|
function fn() {
|
|
1642
1642
|
if (mi) return De;
|
|
1643
|
-
mi = 1, De.__esModule = !0, De.registerDefaultHelpers =
|
|
1643
|
+
mi = 1, De.__esModule = !0, De.registerDefaultHelpers = l, De.moveHelperToHooks = f;
|
|
1644
1644
|
function e(p) {
|
|
1645
1645
|
return p && p.__esModule ? p : { default: p };
|
|
1646
1646
|
}
|
|
1647
|
-
var a = Bo(), o = e(a), t = Fo(), h = e(t),
|
|
1648
|
-
function
|
|
1647
|
+
var a = Bo(), o = e(a), t = Fo(), h = e(t), g = xo(), b = e(g), c = Ro(), r = e(c), d = Go(), s = e(d), y = _o(), u = e(y), n = Qo(), i = e(n);
|
|
1648
|
+
function l(p) {
|
|
1649
1649
|
o.default(p), h.default(p), b.default(p), r.default(p), s.default(p), u.default(p), i.default(p);
|
|
1650
1650
|
}
|
|
1651
1651
|
function f(p, m, S) {
|
|
@@ -1659,14 +1659,14 @@ function Oo() {
|
|
|
1659
1659
|
a.__esModule = !0;
|
|
1660
1660
|
var o = U();
|
|
1661
1661
|
a.default = function(t) {
|
|
1662
|
-
t.registerDecorator("inline", function(h,
|
|
1662
|
+
t.registerDecorator("inline", function(h, g, b, c) {
|
|
1663
1663
|
var r = h;
|
|
1664
|
-
return
|
|
1664
|
+
return g.partials || (g.partials = {}, r = function(d, s) {
|
|
1665
1665
|
var y = b.partials;
|
|
1666
|
-
b.partials = o.extend({}, y,
|
|
1666
|
+
b.partials = o.extend({}, y, g.partials);
|
|
1667
1667
|
var u = h(d, s);
|
|
1668
1668
|
return b.partials = y, u;
|
|
1669
|
-
}),
|
|
1669
|
+
}), g.partials[c.args[0]] = c.fn, r;
|
|
1670
1670
|
});
|
|
1671
1671
|
}, e.exports = a.default;
|
|
1672
1672
|
})(qe, qe.exports)), qe.exports;
|
|
@@ -1692,17 +1692,17 @@ function bn() {
|
|
|
1692
1692
|
methodMap: ["debug", "info", "warn", "error"],
|
|
1693
1693
|
level: "info",
|
|
1694
1694
|
// Maps a given level value to the `methodMap` indexes above.
|
|
1695
|
-
lookupLevel: function(
|
|
1696
|
-
if (typeof
|
|
1697
|
-
var b = o.indexOf(t.methodMap,
|
|
1698
|
-
b >= 0 ?
|
|
1695
|
+
lookupLevel: function(g) {
|
|
1696
|
+
if (typeof g == "string") {
|
|
1697
|
+
var b = o.indexOf(t.methodMap, g.toLowerCase());
|
|
1698
|
+
b >= 0 ? g = b : g = parseInt(g, 10);
|
|
1699
1699
|
}
|
|
1700
|
-
return
|
|
1700
|
+
return g;
|
|
1701
1701
|
},
|
|
1702
1702
|
// Can be overridden in the host environment
|
|
1703
|
-
log: function(
|
|
1704
|
-
if (
|
|
1705
|
-
var b = t.methodMap[
|
|
1703
|
+
log: function(g) {
|
|
1704
|
+
if (g = t.lookupLevel(g), typeof console < "u" && t.lookupLevel(t.level) <= g) {
|
|
1705
|
+
var b = t.methodMap[g];
|
|
1706
1706
|
console[b] || (b = "log");
|
|
1707
1707
|
for (var c = arguments.length, r = Array(c > 1 ? c - 1 : 0), d = 1; d < c; d++)
|
|
1708
1708
|
r[d - 1] = arguments[d];
|
|
@@ -1716,12 +1716,12 @@ function bn() {
|
|
|
1716
1716
|
var ye = {}, $i;
|
|
1717
1717
|
function yn() {
|
|
1718
1718
|
if ($i) return ye;
|
|
1719
|
-
$i = 1, ye.__esModule = !0, ye.createProtoAccessControl =
|
|
1719
|
+
$i = 1, ye.__esModule = !0, ye.createProtoAccessControl = g, ye.resultIsAllowed = b, ye.resetLoggedProperties = d;
|
|
1720
1720
|
function e(s) {
|
|
1721
1721
|
return s && s.__esModule ? s : { default: s };
|
|
1722
1722
|
}
|
|
1723
1723
|
var a = U(), o = bn(), t = e(o), h = /* @__PURE__ */ Object.create(null);
|
|
1724
|
-
function
|
|
1724
|
+
function g(s) {
|
|
1725
1725
|
var y = /* @__PURE__ */ Object.create(null);
|
|
1726
1726
|
y.__proto__ = !1, a.extend(y, s.allowedProtoProperties);
|
|
1727
1727
|
var u = /* @__PURE__ */ Object.create(null);
|
|
@@ -1761,7 +1761,7 @@ function Oa() {
|
|
|
1761
1761
|
function e(f) {
|
|
1762
1762
|
return f && f.__esModule ? f : { default: f };
|
|
1763
1763
|
}
|
|
1764
|
-
var a = U(), o = ee(), t = e(o), h = fn(),
|
|
1764
|
+
var a = U(), o = ee(), t = e(o), h = fn(), g = Wo(), b = bn(), c = e(b), r = yn(), d = "4.7.9";
|
|
1765
1765
|
ae.VERSION = d;
|
|
1766
1766
|
var s = 8;
|
|
1767
1767
|
ae.COMPILER_REVISION = s;
|
|
@@ -1781,7 +1781,7 @@ function Oa() {
|
|
|
1781
1781
|
ae.REVISION_CHANGES = u;
|
|
1782
1782
|
var n = "[object Object]";
|
|
1783
1783
|
function i(f, p, m) {
|
|
1784
|
-
this.helpers = f || {}, this.partials = p || {}, this.decorators = m || {}, h.registerDefaultHelpers(this),
|
|
1784
|
+
this.helpers = f || {}, this.partials = p || {}, this.decorators = m || {}, h.registerDefaultHelpers(this), g.registerDefaultDecorators(this);
|
|
1785
1785
|
}
|
|
1786
1786
|
i.prototype = {
|
|
1787
1787
|
constructor: i,
|
|
@@ -1829,8 +1829,8 @@ function Oa() {
|
|
|
1829
1829
|
r.resetLoggedProperties();
|
|
1830
1830
|
}
|
|
1831
1831
|
};
|
|
1832
|
-
var
|
|
1833
|
-
return ae.log =
|
|
1832
|
+
var l = c.default.log;
|
|
1833
|
+
return ae.log = l, ae.createFrame = a.createFrame, ae.logger = c.default, ae;
|
|
1834
1834
|
}
|
|
1835
1835
|
var ea = { exports: {} }, Li;
|
|
1836
1836
|
function Ko() {
|
|
@@ -1852,8 +1852,8 @@ function Uo() {
|
|
|
1852
1852
|
if (typeof a != "function")
|
|
1853
1853
|
return a;
|
|
1854
1854
|
var t = function() {
|
|
1855
|
-
var
|
|
1856
|
-
return arguments[arguments.length - 1] = o(
|
|
1855
|
+
var g = arguments[arguments.length - 1];
|
|
1856
|
+
return arguments[arguments.length - 1] = o(g), a.apply(this, arguments);
|
|
1857
1857
|
};
|
|
1858
1858
|
return t;
|
|
1859
1859
|
}
|
|
@@ -1862,7 +1862,7 @@ function Uo() {
|
|
|
1862
1862
|
var ki;
|
|
1863
1863
|
function zo() {
|
|
1864
1864
|
if (ki) return te;
|
|
1865
|
-
ki = 1, te.__esModule = !0, te.checkRevision = s, te.template = y, te.wrapProgram = u, te.resolvePartial = n, te.invokePartial = i, te.noop =
|
|
1865
|
+
ki = 1, te.__esModule = !0, te.checkRevision = s, te.template = y, te.wrapProgram = u, te.resolvePartial = n, te.invokePartial = i, te.noop = l;
|
|
1866
1866
|
function e(w) {
|
|
1867
1867
|
return w && w.__esModule ? w : { default: w };
|
|
1868
1868
|
}
|
|
@@ -1875,21 +1875,21 @@ function zo() {
|
|
|
1875
1875
|
Object.prototype.hasOwnProperty.call(w, v) && ($[v] = w[v]);
|
|
1876
1876
|
return $.default = w, $;
|
|
1877
1877
|
}
|
|
1878
|
-
var o = U(), t = a(o), h = ee(),
|
|
1878
|
+
var o = U(), t = a(o), h = ee(), g = e(h), b = Oa(), c = fn(), r = Uo(), d = yn();
|
|
1879
1879
|
function s(w) {
|
|
1880
1880
|
var $ = w && w[0] || 1, v = b.COMPILER_REVISION;
|
|
1881
1881
|
if (!($ >= b.LAST_COMPATIBLE_COMPILER_REVISION && $ <= b.COMPILER_REVISION))
|
|
1882
1882
|
if ($ < b.LAST_COMPATIBLE_COMPILER_REVISION) {
|
|
1883
1883
|
var Z = b.REVISION_CHANGES[v], T = b.REVISION_CHANGES[$];
|
|
1884
|
-
throw new
|
|
1884
|
+
throw new g.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + Z + ") or downgrade your runtime to an older version (" + T + ").");
|
|
1885
1885
|
} else
|
|
1886
|
-
throw new
|
|
1886
|
+
throw new g.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + w[1] + ").");
|
|
1887
1887
|
}
|
|
1888
1888
|
function y(w, $) {
|
|
1889
1889
|
if (!$)
|
|
1890
|
-
throw new
|
|
1890
|
+
throw new g.default("No environment passed to template");
|
|
1891
1891
|
if (!w || !w.main)
|
|
1892
|
-
throw new
|
|
1892
|
+
throw new g.default("Unknown template object: " + typeof w);
|
|
1893
1893
|
w.main.decorator = w.main_d, $.VM.checkRevision(w.compiler);
|
|
1894
1894
|
var v = w.compiler && w.compiler[0] === 7;
|
|
1895
1895
|
function Z(k, C, Y) {
|
|
@@ -1905,12 +1905,12 @@ function zo() {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
return P;
|
|
1907
1907
|
} else
|
|
1908
|
-
throw new
|
|
1908
|
+
throw new g.default("The partial " + Y.name + " could not be compiled when running in runtime-only mode");
|
|
1909
1909
|
}
|
|
1910
1910
|
var T = {
|
|
1911
1911
|
strict: function(C, Y, P) {
|
|
1912
1912
|
if (!C || !(Y in C))
|
|
1913
|
-
throw new
|
|
1913
|
+
throw new g.default('"' + Y + '" not defined in ' + C, {
|
|
1914
1914
|
loc: P
|
|
1915
1915
|
});
|
|
1916
1916
|
return T.lookupProperty(C, Y);
|
|
@@ -1976,9 +1976,9 @@ function zo() {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}, J._child = function(k, C, Y, P) {
|
|
1978
1978
|
if (w.useBlockParams && !Y)
|
|
1979
|
-
throw new
|
|
1979
|
+
throw new g.default("must pass block params");
|
|
1980
1980
|
if (w.useDepths && !P)
|
|
1981
|
-
throw new
|
|
1981
|
+
throw new g.default("must pass parent depths");
|
|
1982
1982
|
return u(T, k, w[k], C, 0, Y, P);
|
|
1983
1983
|
}, J;
|
|
1984
1984
|
}
|
|
@@ -1996,7 +1996,7 @@ function zo() {
|
|
|
1996
1996
|
var Z = f(v.data, "partial-block");
|
|
1997
1997
|
v.partial = !0, v.ids && (v.data.contextPath = v.ids[0] || v.data.contextPath);
|
|
1998
1998
|
var T = void 0;
|
|
1999
|
-
if (v.fn && v.fn !==
|
|
1999
|
+
if (v.fn && v.fn !== l && (function() {
|
|
2000
2000
|
v.data = b.createFrame(v.data);
|
|
2001
2001
|
var J = v.fn;
|
|
2002
2002
|
T = v.data["partial-block"] = function(C) {
|
|
@@ -2004,11 +2004,11 @@ function zo() {
|
|
|
2004
2004
|
return Y.data = b.createFrame(Y.data), Y.data["partial-block"] = Z, J(C, Y);
|
|
2005
2005
|
}, J.partials && (v.partials = t.extend({}, v.partials, J.partials));
|
|
2006
2006
|
})(), w === void 0 && T && (w = T), w === void 0)
|
|
2007
|
-
throw new
|
|
2007
|
+
throw new g.default("The partial " + v.name + " could not be found");
|
|
2008
2008
|
if (w instanceof Function)
|
|
2009
2009
|
return w($, v);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function l() {
|
|
2012
2012
|
return "";
|
|
2013
2013
|
}
|
|
2014
2014
|
function f(w, $) {
|
|
@@ -2071,15 +2071,15 @@ function qo() {
|
|
|
2071
2071
|
Object.prototype.hasOwnProperty.call(m, j) && (S[j] = m[j]);
|
|
2072
2072
|
return S.default = m, S;
|
|
2073
2073
|
}
|
|
2074
|
-
var h = Oa(),
|
|
2074
|
+
var h = Oa(), g = t(h), b = Ko(), c = o(b), r = ee(), d = o(r), s = U(), y = t(s), u = zo(), n = t(u), i = pn(), l = o(i);
|
|
2075
2075
|
function f() {
|
|
2076
|
-
var m = new
|
|
2077
|
-
return y.extend(m,
|
|
2076
|
+
var m = new g.HandlebarsEnvironment();
|
|
2077
|
+
return y.extend(m, g), m.SafeString = c.default, m.Exception = d.default, m.Utils = y, m.escapeExpression = y.escapeExpression, m.VM = n, m.template = function(S) {
|
|
2078
2078
|
return n.template(S, m);
|
|
2079
2079
|
}, m;
|
|
2080
2080
|
}
|
|
2081
2081
|
var p = f();
|
|
2082
|
-
p.create = f,
|
|
2082
|
+
p.create = f, l.default(p), p.default = p, a.default = p, e.exports = a.default;
|
|
2083
2083
|
})(xe, xe.exports)), xe.exports;
|
|
2084
2084
|
}
|
|
2085
2085
|
var na = { exports: {} }, Ti;
|
|
@@ -2187,7 +2187,7 @@ function Vo() {
|
|
|
2187
2187
|
this.$ = { strip: s.stripFlags(u[i - 1], u[i - 1]), program: u[i] };
|
|
2188
2188
|
break;
|
|
2189
2189
|
case 19:
|
|
2190
|
-
var
|
|
2190
|
+
var l = s.prepareBlock(u[i - 2], u[i - 1], u[i], u[i], !1, this._$), f = s.prepareProgram([l], u[i - 1].loc);
|
|
2191
2191
|
f.chained = !0, this.$ = { strip: u[i - 2].strip, program: f, chain: !0 };
|
|
2192
2192
|
break;
|
|
2193
2193
|
case 20:
|
|
@@ -2368,7 +2368,7 @@ function Vo() {
|
|
|
2368
2368
|
throw new Error(c);
|
|
2369
2369
|
},
|
|
2370
2370
|
parse: function(c) {
|
|
2371
|
-
var r = this, d = [0], s = [null], y = [], u = this.table, n = "", i = 0,
|
|
2371
|
+
var r = this, d = [0], s = [null], y = [], u = this.table, n = "", i = 0, l = 0;
|
|
2372
2372
|
this.lexer.setInput(c), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
|
|
2373
2373
|
var f = this.lexer.yylloc;
|
|
2374
2374
|
y.push(f);
|
|
@@ -2393,10 +2393,10 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : C = "
|
|
|
2393
2393
|
throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + S);
|
|
2394
2394
|
switch (w[0]) {
|
|
2395
2395
|
case 1:
|
|
2396
|
-
d.push(S), s.push(this.lexer.yytext), y.push(this.lexer.yylloc), d.push(w[1]), S = null,
|
|
2396
|
+
d.push(S), s.push(this.lexer.yytext), y.push(this.lexer.yylloc), d.push(w[1]), S = null, l = this.lexer.yyleng, n = this.lexer.yytext, i = this.lexer.yylineno, f = this.lexer.yylloc;
|
|
2397
2397
|
break;
|
|
2398
2398
|
case 2:
|
|
2399
|
-
if (T = this.productions_[w[1]][1], v.$ = s[s.length - T], v._$ = { first_line: y[y.length - (T || 1)].first_line, last_line: y[y.length - 1].last_line, first_column: y[y.length - (T || 1)].first_column, last_column: y[y.length - 1].last_column }, p && (v._$.range = [y[y.length - (T || 1)].range[0], y[y.length - 1].range[1]]), $ = this.performAction.call(v, n,
|
|
2399
|
+
if (T = this.productions_[w[1]][1], v.$ = s[s.length - T], v._$ = { first_line: y[y.length - (T || 1)].first_line, last_line: y[y.length - 1].last_line, first_column: y[y.length - (T || 1)].first_column, last_column: y[y.length - 1].last_column }, p && (v._$.range = [y[y.length - (T || 1)].range[0], y[y.length - 1].range[1]]), $ = this.performAction.call(v, n, l, i, this.yy, w[1], s, y), typeof $ < "u")
|
|
2400
2400
|
return $;
|
|
2401
2401
|
T && (d = d.slice(0, -1 * T * 2), s = s.slice(0, -1 * T), y = y.slice(0, -1 * T)), d.push(this.productions_[w[1]][0]), s.push(v.$), y.push(v._$), J = u[d[d.length - 2]][d[d.length - 1]], d.push(J);
|
|
2402
2402
|
break;
|
|
@@ -2593,10 +2593,10 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : C = "
|
|
|
2593
2593
|
}, b.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/], b.conditions = { mu: { rules: [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], inclusive: !1 }, emu: { rules: [2], inclusive: !1 }, com: { rules: [6], inclusive: !1 }, raw: { rules: [3, 4, 5], inclusive: !1 }, INITIAL: { rules: [0, 1, 44], inclusive: !0 } }, b;
|
|
2594
2594
|
})();
|
|
2595
2595
|
t.lexer = h;
|
|
2596
|
-
function
|
|
2596
|
+
function g() {
|
|
2597
2597
|
this.yy = {};
|
|
2598
2598
|
}
|
|
2599
|
-
return
|
|
2599
|
+
return g.prototype = t, t.Parser = g, new g();
|
|
2600
2600
|
})();
|
|
2601
2601
|
a.default = o, e.exports = a.default;
|
|
2602
2602
|
})(ua, ua.exports)), ua.exports;
|
|
@@ -2609,17 +2609,17 @@ function mn() {
|
|
|
2609
2609
|
return d && d.__esModule ? d : { default: d };
|
|
2610
2610
|
}
|
|
2611
2611
|
var t = ee(), h = o(t);
|
|
2612
|
-
function
|
|
2612
|
+
function g() {
|
|
2613
2613
|
this.parents = [];
|
|
2614
2614
|
}
|
|
2615
|
-
|
|
2616
|
-
constructor:
|
|
2615
|
+
g.prototype = {
|
|
2616
|
+
constructor: g,
|
|
2617
2617
|
mutating: !1,
|
|
2618
2618
|
// Visits a given value. If mutating, will replace the value if necessary.
|
|
2619
2619
|
acceptKey: function(s, y) {
|
|
2620
2620
|
var u = this.accept(s[y]);
|
|
2621
2621
|
if (this.mutating) {
|
|
2622
|
-
if (u && !
|
|
2622
|
+
if (u && !g.prototype[u.type])
|
|
2623
2623
|
throw new h.default('Unexpected node type "' + u.type + '" found when accepting ' + y + " on " + s.type);
|
|
2624
2624
|
s[y] = u;
|
|
2625
2625
|
}
|
|
@@ -2692,7 +2692,7 @@ function mn() {
|
|
|
2692
2692
|
function r(d) {
|
|
2693
2693
|
this.acceptRequired(d, "name"), this.acceptArray(d.params), this.acceptKey(d, "hash");
|
|
2694
2694
|
}
|
|
2695
|
-
a.default =
|
|
2695
|
+
a.default = g, e.exports = a.default;
|
|
2696
2696
|
})(ta, ta.exports)), ta.exports;
|
|
2697
2697
|
}
|
|
2698
2698
|
var Mi;
|
|
@@ -2703,14 +2703,14 @@ function et() {
|
|
|
2703
2703
|
return s && s.__esModule ? s : { default: s };
|
|
2704
2704
|
}
|
|
2705
2705
|
var t = mn(), h = o(t);
|
|
2706
|
-
function
|
|
2706
|
+
function g() {
|
|
2707
2707
|
var s = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
|
|
2708
2708
|
this.options = s;
|
|
2709
2709
|
}
|
|
2710
|
-
|
|
2710
|
+
g.prototype = new h.default(), g.prototype.Program = function(s) {
|
|
2711
2711
|
var y = !this.options.ignoreStandalone, u = !this.isRootSeen;
|
|
2712
2712
|
this.isRootSeen = !0;
|
|
2713
|
-
for (var n = s.body, i = 0,
|
|
2713
|
+
for (var n = s.body, i = 0, l = n.length; i < l; i++) {
|
|
2714
2714
|
var f = n[i], p = this.accept(f);
|
|
2715
2715
|
if (p) {
|
|
2716
2716
|
var m = b(n, i, u), S = c(n, i, u), j = p.openStandalone && m, w = p.closeStandalone && S, $ = p.inlineStandalone && m && S;
|
|
@@ -2718,13 +2718,13 @@ function et() {
|
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
2720
|
return s;
|
|
2721
|
-
},
|
|
2721
|
+
}, g.prototype.BlockStatement = g.prototype.DecoratorBlock = g.prototype.PartialBlockStatement = function(s) {
|
|
2722
2722
|
this.accept(s.program), this.accept(s.inverse);
|
|
2723
2723
|
var y = s.program || s.inverse, u = s.program && s.inverse, n = u, i = u;
|
|
2724
2724
|
if (u && u.chained)
|
|
2725
2725
|
for (n = u.body[0].program; i.chained; )
|
|
2726
2726
|
i = i.body[i.body.length - 1].program;
|
|
2727
|
-
var
|
|
2727
|
+
var l = {
|
|
2728
2728
|
open: s.openStrip.open,
|
|
2729
2729
|
close: s.closeStrip.close,
|
|
2730
2730
|
// Determine the standalone candiacy. Basically flag our content as being possibly standalone
|
|
@@ -2736,10 +2736,10 @@ function et() {
|
|
|
2736
2736
|
var f = s.inverseStrip;
|
|
2737
2737
|
f.open && d(y.body, null, !0), f.close && r(n.body, null, !0), s.closeStrip.open && d(i.body, null, !0), !this.options.ignoreStandalone && b(y.body) && c(n.body) && (d(y.body), r(n.body));
|
|
2738
2738
|
} else s.closeStrip.open && d(y.body, null, !0);
|
|
2739
|
-
return
|
|
2740
|
-
},
|
|
2739
|
+
return l;
|
|
2740
|
+
}, g.prototype.Decorator = g.prototype.MustacheStatement = function(s) {
|
|
2741
2741
|
return s.strip;
|
|
2742
|
-
},
|
|
2742
|
+
}, g.prototype.PartialStatement = g.prototype.CommentStatement = function(s) {
|
|
2743
2743
|
var y = s.strip || {};
|
|
2744
2744
|
return {
|
|
2745
2745
|
inlineStandalone: !0,
|
|
@@ -2777,49 +2777,49 @@ function et() {
|
|
|
2777
2777
|
return n.value = n.value.replace(u ? /\s+$/ : /[ \t]+$/, ""), n.leftStripped = n.value !== i, n.leftStripped;
|
|
2778
2778
|
}
|
|
2779
2779
|
}
|
|
2780
|
-
a.default =
|
|
2780
|
+
a.default = g, e.exports = a.default;
|
|
2781
2781
|
})(oa, oa.exports)), oa.exports;
|
|
2782
2782
|
}
|
|
2783
2783
|
var z = {}, Pi;
|
|
2784
2784
|
function at() {
|
|
2785
2785
|
if (Pi) return z;
|
|
2786
|
-
Pi = 1, z.__esModule = !0, z.SourceLocation = h, z.id =
|
|
2786
|
+
Pi = 1, z.__esModule = !0, z.SourceLocation = h, z.id = g, z.stripFlags = b, z.stripComment = c, z.preparePath = r, z.prepareMustache = d, z.prepareRawBlock = s, z.prepareBlock = y, z.prepareProgram = u, z.preparePartialBlock = n;
|
|
2787
2787
|
function e(i) {
|
|
2788
2788
|
return i && i.__esModule ? i : { default: i };
|
|
2789
2789
|
}
|
|
2790
2790
|
var a = ee(), o = e(a);
|
|
2791
|
-
function t(i,
|
|
2792
|
-
if (
|
|
2791
|
+
function t(i, l) {
|
|
2792
|
+
if (l = l.path ? l.path.original : l, i.path.original !== l) {
|
|
2793
2793
|
var f = { loc: i.path.loc };
|
|
2794
|
-
throw new o.default(i.path.original + " doesn't match " +
|
|
2794
|
+
throw new o.default(i.path.original + " doesn't match " + l, f);
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
function h(i,
|
|
2797
|
+
function h(i, l) {
|
|
2798
2798
|
this.source = i, this.start = {
|
|
2799
|
-
line:
|
|
2800
|
-
column:
|
|
2799
|
+
line: l.first_line,
|
|
2800
|
+
column: l.first_column
|
|
2801
2801
|
}, this.end = {
|
|
2802
|
-
line:
|
|
2803
|
-
column:
|
|
2802
|
+
line: l.last_line,
|
|
2803
|
+
column: l.last_column
|
|
2804
2804
|
};
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function g(i) {
|
|
2807
2807
|
return /^\[.*\]$/.test(i) ? i.substring(1, i.length - 1) : i;
|
|
2808
2808
|
}
|
|
2809
|
-
function b(i,
|
|
2809
|
+
function b(i, l) {
|
|
2810
2810
|
return {
|
|
2811
2811
|
open: i.charAt(2) === "~",
|
|
2812
|
-
close:
|
|
2812
|
+
close: l.charAt(l.length - 3) === "~"
|
|
2813
2813
|
};
|
|
2814
2814
|
}
|
|
2815
2815
|
function c(i) {
|
|
2816
2816
|
return i.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, "");
|
|
2817
2817
|
}
|
|
2818
|
-
function r(i,
|
|
2818
|
+
function r(i, l, f) {
|
|
2819
2819
|
f = this.locInfo(f);
|
|
2820
|
-
for (var p = i ? "@" : "", m = [], S = 0, j = 0, w =
|
|
2821
|
-
var $ =
|
|
2822
|
-
if (p += (
|
|
2820
|
+
for (var p = i ? "@" : "", m = [], S = 0, j = 0, w = l.length; j < w; j++) {
|
|
2821
|
+
var $ = l[j].part, v = l[j].original !== $;
|
|
2822
|
+
if (p += (l[j].separator || "") + $, !v && ($ === ".." || $ === "." || $ === "this")) {
|
|
2823
2823
|
if (m.length > 0)
|
|
2824
2824
|
throw new o.default("Invalid path: " + p, { loc: f });
|
|
2825
2825
|
$ === ".." && S++;
|
|
@@ -2835,23 +2835,23 @@ function at() {
|
|
|
2835
2835
|
loc: f
|
|
2836
2836
|
};
|
|
2837
2837
|
}
|
|
2838
|
-
function d(i,
|
|
2838
|
+
function d(i, l, f, p, m, S) {
|
|
2839
2839
|
var j = p.charAt(3) || p.charAt(2), w = j !== "{" && j !== "&", $ = /\*/.test(p);
|
|
2840
2840
|
return {
|
|
2841
2841
|
type: $ ? "Decorator" : "MustacheStatement",
|
|
2842
2842
|
path: i,
|
|
2843
|
-
params:
|
|
2843
|
+
params: l,
|
|
2844
2844
|
hash: f,
|
|
2845
2845
|
escaped: w,
|
|
2846
2846
|
strip: m,
|
|
2847
2847
|
loc: this.locInfo(S)
|
|
2848
2848
|
};
|
|
2849
2849
|
}
|
|
2850
|
-
function s(i,
|
|
2850
|
+
function s(i, l, f, p) {
|
|
2851
2851
|
t(i, f), p = this.locInfo(p);
|
|
2852
2852
|
var m = {
|
|
2853
2853
|
type: "Program",
|
|
2854
|
-
body:
|
|
2854
|
+
body: l,
|
|
2855
2855
|
strip: {},
|
|
2856
2856
|
loc: p
|
|
2857
2857
|
};
|
|
@@ -2867,22 +2867,22 @@ function at() {
|
|
|
2867
2867
|
loc: p
|
|
2868
2868
|
};
|
|
2869
2869
|
}
|
|
2870
|
-
function y(i,
|
|
2870
|
+
function y(i, l, f, p, m, S) {
|
|
2871
2871
|
p && p.path && t(i, p);
|
|
2872
2872
|
var j = /\*/.test(i.open);
|
|
2873
|
-
|
|
2873
|
+
l.blockParams = i.blockParams;
|
|
2874
2874
|
var w = void 0, $ = void 0;
|
|
2875
2875
|
if (f) {
|
|
2876
2876
|
if (j)
|
|
2877
2877
|
throw new o.default("Unexpected inverse block on decorator", f);
|
|
2878
2878
|
f.chain && (f.program.body[0].closeStrip = p.strip), $ = f.strip, w = f.program;
|
|
2879
2879
|
}
|
|
2880
|
-
return m && (m = w, w =
|
|
2880
|
+
return m && (m = w, w = l, l = m), {
|
|
2881
2881
|
type: j ? "DecoratorBlock" : "BlockStatement",
|
|
2882
2882
|
path: i.path,
|
|
2883
2883
|
params: i.params,
|
|
2884
2884
|
hash: i.hash,
|
|
2885
|
-
program:
|
|
2885
|
+
program: l,
|
|
2886
2886
|
inverse: w,
|
|
2887
2887
|
openStrip: i.strip,
|
|
2888
2888
|
inverseStrip: $,
|
|
@@ -2890,10 +2890,10 @@ function at() {
|
|
|
2890
2890
|
loc: this.locInfo(S)
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
|
-
function u(i,
|
|
2894
|
-
if (!
|
|
2893
|
+
function u(i, l) {
|
|
2894
|
+
if (!l && i.length) {
|
|
2895
2895
|
var f = i[0].loc, p = i[i.length - 1].loc;
|
|
2896
|
-
f && p && (
|
|
2896
|
+
f && p && (l = {
|
|
2897
2897
|
source: f.source,
|
|
2898
2898
|
start: {
|
|
2899
2899
|
line: f.start.line,
|
|
@@ -2909,16 +2909,16 @@ function at() {
|
|
|
2909
2909
|
type: "Program",
|
|
2910
2910
|
body: i,
|
|
2911
2911
|
strip: {},
|
|
2912
|
-
loc:
|
|
2912
|
+
loc: l
|
|
2913
2913
|
};
|
|
2914
2914
|
}
|
|
2915
|
-
function n(i,
|
|
2915
|
+
function n(i, l, f, p) {
|
|
2916
2916
|
return t(i, f), {
|
|
2917
2917
|
type: "PartialBlockStatement",
|
|
2918
2918
|
name: i.path,
|
|
2919
2919
|
params: i.params,
|
|
2920
2920
|
hash: i.hash,
|
|
2921
|
-
program:
|
|
2921
|
+
program: l,
|
|
2922
2922
|
openStrip: i.strip,
|
|
2923
2923
|
closeStrip: f && f.strip,
|
|
2924
2924
|
loc: this.locInfo(p)
|
|
@@ -2942,7 +2942,7 @@ function it() {
|
|
|
2942
2942
|
function a(p) {
|
|
2943
2943
|
return p && p.__esModule ? p : { default: p };
|
|
2944
2944
|
}
|
|
2945
|
-
var o = Vo(), t = a(o), h = et(),
|
|
2945
|
+
var o = Vo(), t = a(o), h = et(), g = a(h), b = at(), c = e(b), r = ee(), d = a(r), s = U();
|
|
2946
2946
|
pe.parser = t.default;
|
|
2947
2947
|
var y = {};
|
|
2948
2948
|
s.extend(y, c);
|
|
@@ -2956,16 +2956,16 @@ function it() {
|
|
|
2956
2956
|
return S;
|
|
2957
2957
|
}
|
|
2958
2958
|
function n(p, m) {
|
|
2959
|
-
var S = u(p, m), j = new
|
|
2959
|
+
var S = u(p, m), j = new g.default(m);
|
|
2960
2960
|
return j.accept(S);
|
|
2961
2961
|
}
|
|
2962
2962
|
function i(p) {
|
|
2963
|
-
|
|
2963
|
+
l(p);
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function l(p) {
|
|
2966
2966
|
if (p != null) {
|
|
2967
2967
|
if (Array.isArray(p)) {
|
|
2968
|
-
p.forEach(
|
|
2968
|
+
p.forEach(l);
|
|
2969
2969
|
return;
|
|
2970
2970
|
}
|
|
2971
2971
|
if (typeof p == "object") {
|
|
@@ -2983,7 +2983,7 @@ function it() {
|
|
|
2983
2983
|
} else if (p.type === "BooleanLiteral" && typeof p.value != "boolean")
|
|
2984
2984
|
throw new d.default("Invalid AST: BooleanLiteral.value must be a boolean");
|
|
2985
2985
|
Object.keys(p).forEach(function(S) {
|
|
2986
|
-
S !== "loc" &&
|
|
2986
|
+
S !== "loc" && l(p[S]);
|
|
2987
2987
|
});
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
@@ -3000,7 +3000,7 @@ function nt() {
|
|
|
3000
3000
|
function e(u) {
|
|
3001
3001
|
return u && u.__esModule ? u : { default: u };
|
|
3002
3002
|
}
|
|
3003
|
-
var a = ee(), o = e(a), t = U(), h = wn(),
|
|
3003
|
+
var a = ee(), o = e(a), t = U(), h = wn(), g = e(h), b = [].slice;
|
|
3004
3004
|
function c() {
|
|
3005
3005
|
}
|
|
3006
3006
|
c.prototype = {
|
|
@@ -3009,14 +3009,14 @@ function nt() {
|
|
|
3009
3009
|
var i = this.opcodes.length;
|
|
3010
3010
|
if (n.opcodes.length !== i)
|
|
3011
3011
|
return !1;
|
|
3012
|
-
for (var
|
|
3013
|
-
var f = this.opcodes[
|
|
3012
|
+
for (var l = 0; l < i; l++) {
|
|
3013
|
+
var f = this.opcodes[l], p = n.opcodes[l];
|
|
3014
3014
|
if (f.opcode !== p.opcode || !s(f.args, p.args))
|
|
3015
3015
|
return !1;
|
|
3016
3016
|
}
|
|
3017
3017
|
i = this.children.length;
|
|
3018
|
-
for (var
|
|
3019
|
-
if (!this.children[
|
|
3018
|
+
for (var l = 0; l < i; l++)
|
|
3019
|
+
if (!this.children[l].equals(n.children[l]))
|
|
3020
3020
|
return !1;
|
|
3021
3021
|
return !0;
|
|
3022
3022
|
},
|
|
@@ -3034,8 +3034,8 @@ function nt() {
|
|
|
3034
3034
|
}, i.knownHelpers), this.accept(n);
|
|
3035
3035
|
},
|
|
3036
3036
|
compileProgram: function(n) {
|
|
3037
|
-
var i = new this.compiler(),
|
|
3038
|
-
return this.usePartial = this.usePartial ||
|
|
3037
|
+
var i = new this.compiler(), l = i.compile(n, this.options), f = this.guid++;
|
|
3038
|
+
return this.usePartial = this.usePartial || l.usePartial, this.children[f] = l, this.useDepths = this.useDepths || l.useDepths, f;
|
|
3039
3039
|
},
|
|
3040
3040
|
accept: function(n) {
|
|
3041
3041
|
if (!this[n.type])
|
|
@@ -3046,29 +3046,29 @@ function nt() {
|
|
|
3046
3046
|
},
|
|
3047
3047
|
Program: function(n) {
|
|
3048
3048
|
this.options.blockParams.unshift(n.blockParams);
|
|
3049
|
-
for (var i = n.body,
|
|
3049
|
+
for (var i = n.body, l = i.length, f = 0; f < l; f++)
|
|
3050
3050
|
this.accept(i[f]);
|
|
3051
|
-
return this.options.blockParams.shift(), this.isSimple =
|
|
3051
|
+
return this.options.blockParams.shift(), this.isSimple = l === 1, this.blockParams = n.blockParams ? n.blockParams.length : 0, this;
|
|
3052
3052
|
},
|
|
3053
3053
|
BlockStatement: function(n) {
|
|
3054
3054
|
y(n);
|
|
3055
|
-
var i = n.program,
|
|
3056
|
-
i = i && this.compileProgram(i),
|
|
3055
|
+
var i = n.program, l = n.inverse;
|
|
3056
|
+
i = i && this.compileProgram(i), l = l && this.compileProgram(l);
|
|
3057
3057
|
var f = this.classifySexpr(n);
|
|
3058
|
-
f === "helper" ? this.helperSexpr(n, i,
|
|
3058
|
+
f === "helper" ? this.helperSexpr(n, i, l) : f === "simple" ? (this.simpleSexpr(n), this.opcode("pushProgram", i), this.opcode("pushProgram", l), this.opcode("emptyHash"), this.opcode("blockValue", n.path.original)) : (this.ambiguousSexpr(n, i, l), this.opcode("pushProgram", i), this.opcode("pushProgram", l), this.opcode("emptyHash"), this.opcode("ambiguousBlockValue")), this.opcode("append");
|
|
3059
3059
|
},
|
|
3060
3060
|
DecoratorBlock: function(n) {
|
|
3061
|
-
var i = n.program && this.compileProgram(n.program),
|
|
3062
|
-
this.useDecorators = !0, this.opcode("registerDecorator",
|
|
3061
|
+
var i = n.program && this.compileProgram(n.program), l = this.setupFullMustacheParams(n, i, void 0), f = n.path;
|
|
3062
|
+
this.useDecorators = !0, this.opcode("registerDecorator", l.length, f.original);
|
|
3063
3063
|
},
|
|
3064
3064
|
PartialStatement: function(n) {
|
|
3065
3065
|
this.usePartial = !0;
|
|
3066
3066
|
var i = n.program;
|
|
3067
3067
|
i && (i = this.compileProgram(n.program));
|
|
3068
|
-
var
|
|
3069
|
-
if (
|
|
3070
|
-
throw new o.default("Unsupported number of partial arguments: " +
|
|
3071
|
-
|
|
3068
|
+
var l = n.params;
|
|
3069
|
+
if (l.length > 1)
|
|
3070
|
+
throw new o.default("Unsupported number of partial arguments: " + l.length, n);
|
|
3071
|
+
l.length || (this.options.explicitPartialContext ? this.opcode("pushLiteral", "undefined") : l.push({ type: "PathExpression", parts: [], depth: 0 }));
|
|
3072
3072
|
var f = n.name.original, p = n.name.type === "SubExpression";
|
|
3073
3073
|
p && this.accept(n.name), this.setupFullMustacheParams(n, i, void 0, !0);
|
|
3074
3074
|
var m = n.indent || "";
|
|
@@ -3093,28 +3093,28 @@ function nt() {
|
|
|
3093
3093
|
var i = this.classifySexpr(n);
|
|
3094
3094
|
i === "simple" ? this.simpleSexpr(n) : i === "helper" ? this.helperSexpr(n) : this.ambiguousSexpr(n);
|
|
3095
3095
|
},
|
|
3096
|
-
ambiguousSexpr: function(n, i,
|
|
3097
|
-
var f = n.path, p = f.parts[0], m = i != null ||
|
|
3098
|
-
this.opcode("getContext", f.depth), this.opcode("pushProgram", i), this.opcode("pushProgram",
|
|
3096
|
+
ambiguousSexpr: function(n, i, l) {
|
|
3097
|
+
var f = n.path, p = f.parts[0], m = i != null || l != null;
|
|
3098
|
+
this.opcode("getContext", f.depth), this.opcode("pushProgram", i), this.opcode("pushProgram", l), f.strict = !0, this.accept(f), this.opcode("invokeAmbiguous", p, m);
|
|
3099
3099
|
},
|
|
3100
3100
|
simpleSexpr: function(n) {
|
|
3101
3101
|
var i = n.path;
|
|
3102
3102
|
i.strict = !0, this.accept(i), this.opcode("resolvePossibleLambda");
|
|
3103
3103
|
},
|
|
3104
|
-
helperSexpr: function(n, i,
|
|
3105
|
-
var f = this.setupFullMustacheParams(n, i,
|
|
3104
|
+
helperSexpr: function(n, i, l) {
|
|
3105
|
+
var f = this.setupFullMustacheParams(n, i, l), p = n.path, m = p.parts[0];
|
|
3106
3106
|
if (this.options.knownHelpers[m])
|
|
3107
3107
|
this.opcode("invokeKnownHelper", f.length, m);
|
|
3108
3108
|
else {
|
|
3109
3109
|
if (this.options.knownHelpersOnly)
|
|
3110
3110
|
throw new o.default("You specified knownHelpersOnly, but used the unknown helper " + m, n);
|
|
3111
|
-
p.strict = !0, p.falsy = !0, this.accept(p), this.opcode("invokeHelper", f.length, p.original,
|
|
3111
|
+
p.strict = !0, p.falsy = !0, this.accept(p), this.opcode("invokeHelper", f.length, p.original, g.default.helpers.simpleId(p));
|
|
3112
3112
|
}
|
|
3113
3113
|
},
|
|
3114
3114
|
PathExpression: function(n) {
|
|
3115
3115
|
this.addDepth(n.depth), this.opcode("getContext", n.depth);
|
|
3116
|
-
var i = n.parts[0],
|
|
3117
|
-
f ? this.opcode("lookupBlockParam", f, n.parts) : i ? n.data ? (this.options.data = !0, this.opcode("lookupData", n.depth, n.parts, n.strict)) : this.opcode("lookupOnContext", n.parts, n.falsy, n.strict,
|
|
3116
|
+
var i = n.parts[0], l = g.default.helpers.scopedId(n), f = !n.depth && !l && this.blockParamIndex(i);
|
|
3117
|
+
f ? this.opcode("lookupBlockParam", f, n.parts) : i ? n.data ? (this.options.data = !0, this.opcode("lookupData", n.depth, n.parts, n.strict)) : this.opcode("lookupOnContext", n.parts, n.falsy, n.strict, l) : this.opcode("pushContext");
|
|
3118
3118
|
},
|
|
3119
3119
|
StringLiteral: function(n) {
|
|
3120
3120
|
this.opcode("pushString", n.value);
|
|
@@ -3132,11 +3132,11 @@ function nt() {
|
|
|
3132
3132
|
this.opcode("pushLiteral", "null");
|
|
3133
3133
|
},
|
|
3134
3134
|
Hash: function(n) {
|
|
3135
|
-
var i = n.pairs,
|
|
3136
|
-
for (this.opcode("pushHash");
|
|
3137
|
-
this.pushParam(i[
|
|
3138
|
-
for (;
|
|
3139
|
-
this.opcode("assignToHash", i[
|
|
3135
|
+
var i = n.pairs, l = 0, f = i.length;
|
|
3136
|
+
for (this.opcode("pushHash"); l < f; l++)
|
|
3137
|
+
this.pushParam(i[l].value);
|
|
3138
|
+
for (; l--; )
|
|
3139
|
+
this.opcode("assignToHash", i[l].key);
|
|
3140
3140
|
this.opcode("popHash");
|
|
3141
3141
|
},
|
|
3142
3142
|
// HELPERS
|
|
@@ -3151,7 +3151,7 @@ function nt() {
|
|
|
3151
3151
|
n && (this.useDepths = !0);
|
|
3152
3152
|
},
|
|
3153
3153
|
classifySexpr: function(n) {
|
|
3154
|
-
var i =
|
|
3154
|
+
var i = g.default.helpers.simpleId(n.path), l = i && !!this.blockParamIndex(n.path.parts[0]), f = !l && g.default.helpers.helperExpression(n), p = !l && (f || i);
|
|
3155
3155
|
if (p && !f) {
|
|
3156
3156
|
var m = n.path.parts[0], S = this.options;
|
|
3157
3157
|
S.knownHelpers[m] ? f = !0 : S.knownHelpersOnly && (p = !1);
|
|
@@ -3159,7 +3159,7 @@ function nt() {
|
|
|
3159
3159
|
return f ? "helper" : p ? "ambiguous" : "simple";
|
|
3160
3160
|
},
|
|
3161
3161
|
pushParams: function(n) {
|
|
3162
|
-
for (var i = 0,
|
|
3162
|
+
for (var i = 0, l = n.length; i < l; i++)
|
|
3163
3163
|
this.pushParam(n[i]);
|
|
3164
3164
|
},
|
|
3165
3165
|
pushParam: function(n) {
|
|
@@ -3168,22 +3168,22 @@ function nt() {
|
|
|
3168
3168
|
i.replace && (i = i.replace(/^(\.?\.\/)*/g, "").replace(/\//g, ".")), n.depth && this.addDepth(n.depth), this.opcode("getContext", n.depth || 0), this.opcode("pushStringParam", i, n.type), n.type === "SubExpression" && this.accept(n);
|
|
3169
3169
|
else {
|
|
3170
3170
|
if (this.trackIds) {
|
|
3171
|
-
var
|
|
3172
|
-
if (n.parts && !
|
|
3171
|
+
var l = void 0;
|
|
3172
|
+
if (n.parts && !g.default.helpers.scopedId(n) && !n.depth && (l = this.blockParamIndex(n.parts[0])), l) {
|
|
3173
3173
|
var f = n.parts.slice(1).join(".");
|
|
3174
|
-
this.opcode("pushId", "BlockParam",
|
|
3174
|
+
this.opcode("pushId", "BlockParam", l, f);
|
|
3175
3175
|
} else
|
|
3176
3176
|
i = n.original || i, i.replace && (i = i.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, "")), this.opcode("pushId", n.type, i);
|
|
3177
3177
|
}
|
|
3178
3178
|
this.accept(n);
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
|
-
setupFullMustacheParams: function(n, i,
|
|
3181
|
+
setupFullMustacheParams: function(n, i, l, f) {
|
|
3182
3182
|
var p = n.params;
|
|
3183
|
-
return this.pushParams(p), this.opcode("pushProgram", i), this.opcode("pushProgram",
|
|
3183
|
+
return this.pushParams(p), this.opcode("pushProgram", i), this.opcode("pushProgram", l), n.hash ? this.accept(n.hash) : this.opcode("emptyHash", f), p;
|
|
3184
3184
|
},
|
|
3185
3185
|
blockParamIndex: function(n) {
|
|
3186
|
-
for (var i = 0,
|
|
3186
|
+
for (var i = 0, l = this.options.blockParams.length; i < l; i++) {
|
|
3187
3187
|
var f = this.options.blockParams[i], p = f && t.indexOf(f, n);
|
|
3188
3188
|
if (f && p >= 0)
|
|
3189
3189
|
return [i, p];
|
|
@@ -3194,25 +3194,25 @@ function nt() {
|
|
|
3194
3194
|
if (u == null || typeof u != "string" && u.type !== "Program")
|
|
3195
3195
|
throw new o.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + u);
|
|
3196
3196
|
n = n || {}, "data" in n || (n.data = !0), n.compat && (n.useDepths = !0);
|
|
3197
|
-
var
|
|
3197
|
+
var l = i.parse(u, n), f = new i.Compiler().compile(l, n);
|
|
3198
3198
|
return new i.JavaScriptCompiler().compile(f, n);
|
|
3199
3199
|
}
|
|
3200
3200
|
function d(u, n, i) {
|
|
3201
3201
|
if (n === void 0 && (n = {}), u == null || typeof u != "string" && u.type !== "Program")
|
|
3202
3202
|
throw new o.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + u);
|
|
3203
3203
|
n = t.extend({}, n), "data" in n || (n.data = !0), n.compat && (n.useDepths = !0);
|
|
3204
|
-
var
|
|
3204
|
+
var l = void 0;
|
|
3205
3205
|
function f() {
|
|
3206
3206
|
var m = i.parse(u, n), S = new i.Compiler().compile(m, n), j = new i.JavaScriptCompiler().compile(S, n, void 0, !0);
|
|
3207
3207
|
return i.template(j);
|
|
3208
3208
|
}
|
|
3209
3209
|
function p(m, S) {
|
|
3210
|
-
return
|
|
3210
|
+
return l || (l = f()), l.call(this, m, S);
|
|
3211
3211
|
}
|
|
3212
3212
|
return p._setup = function(m) {
|
|
3213
|
-
return
|
|
3213
|
+
return l || (l = f()), l._setup(m);
|
|
3214
3214
|
}, p._child = function(m, S, j, w) {
|
|
3215
|
-
return
|
|
3215
|
+
return l || (l = f()), l._child(m, S, j, w);
|
|
3216
3216
|
}, p;
|
|
3217
3217
|
}
|
|
3218
3218
|
function s(u, n) {
|
|
@@ -3250,8 +3250,8 @@ function ut() {
|
|
|
3250
3250
|
return e[a];
|
|
3251
3251
|
throw new TypeError("Must be between 0 and 63: " + a);
|
|
3252
3252
|
}, la.decode = function(a) {
|
|
3253
|
-
var o = 65, t = 90, h = 97,
|
|
3254
|
-
return o <= a && a <= t ? a - o : h <= a && a <=
|
|
3253
|
+
var o = 65, t = 90, h = 97, g = 122, b = 48, c = 57, r = 43, d = 47, s = 26, y = 52;
|
|
3254
|
+
return o <= a && a <= t ? a - o : h <= a && a <= g ? a - h + s : b <= a && a <= c ? a - b + y : a == r ? 62 : a == d ? 63 : -1;
|
|
3255
3255
|
}, la;
|
|
3256
3256
|
}
|
|
3257
3257
|
var Hi;
|
|
@@ -3259,7 +3259,7 @@ function jn() {
|
|
|
3259
3259
|
if (Hi) return da;
|
|
3260
3260
|
Hi = 1;
|
|
3261
3261
|
var e = ut(), a = 5, o = 1 << a, t = o - 1, h = o;
|
|
3262
|
-
function
|
|
3262
|
+
function g(c) {
|
|
3263
3263
|
return c < 0 ? (-c << 1) + 1 : (c << 1) + 0;
|
|
3264
3264
|
}
|
|
3265
3265
|
function b(c) {
|
|
@@ -3267,19 +3267,19 @@ function jn() {
|
|
|
3267
3267
|
return r ? -d : d;
|
|
3268
3268
|
}
|
|
3269
3269
|
return da.encode = function(r) {
|
|
3270
|
-
var d = "", s, y =
|
|
3270
|
+
var d = "", s, y = g(r);
|
|
3271
3271
|
do
|
|
3272
3272
|
s = y & t, y >>>= a, y > 0 && (s |= h), d += e.encode(s);
|
|
3273
3273
|
while (y > 0);
|
|
3274
3274
|
return d;
|
|
3275
3275
|
}, da.decode = function(r, d, s) {
|
|
3276
|
-
var y = r.length, u = 0, n = 0, i,
|
|
3276
|
+
var y = r.length, u = 0, n = 0, i, l;
|
|
3277
3277
|
do {
|
|
3278
3278
|
if (d >= y)
|
|
3279
3279
|
throw new Error("Expected more digits in base 64 VLQ value.");
|
|
3280
|
-
if (
|
|
3280
|
+
if (l = e.decode(r.charCodeAt(d++)), l === -1)
|
|
3281
3281
|
throw new Error("Invalid base64 digit: " + r.charAt(d - 1));
|
|
3282
|
-
i = !!(
|
|
3282
|
+
i = !!(l & h), l &= t, u = u + (l << n), n += a;
|
|
3283
3283
|
} while (i);
|
|
3284
3284
|
s.value = b(u), s.rest = d;
|
|
3285
3285
|
}, da;
|
|
@@ -3307,11 +3307,11 @@ function He() {
|
|
|
3307
3307
|
} : null;
|
|
3308
3308
|
}
|
|
3309
3309
|
e.urlParse = h;
|
|
3310
|
-
function
|
|
3310
|
+
function g(j) {
|
|
3311
3311
|
var w = "";
|
|
3312
3312
|
return j.scheme && (w += j.scheme + ":"), w += "//", j.auth && (w += j.auth + "@"), j.host && (w += j.host), j.port && (w += ":" + j.port), j.path && (w += j.path), w;
|
|
3313
3313
|
}
|
|
3314
|
-
e.urlGenerate =
|
|
3314
|
+
e.urlGenerate = g;
|
|
3315
3315
|
function b(j) {
|
|
3316
3316
|
var w = j, $ = h(j);
|
|
3317
3317
|
if ($) {
|
|
@@ -3321,20 +3321,20 @@ function He() {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
for (var v = e.isAbsolute(w), Z = w.split(/\/+/), T, J = 0, k = Z.length - 1; k >= 0; k--)
|
|
3323
3323
|
T = Z[k], T === "." ? Z.splice(k, 1) : T === ".." ? J++ : J > 0 && (T === "" ? (Z.splice(k + 1, J), J = 0) : (Z.splice(k, 2), J--));
|
|
3324
|
-
return w = Z.join("/"), w === "" && (w = v ? "/" : "."), $ ? ($.path = w,
|
|
3324
|
+
return w = Z.join("/"), w === "" && (w = v ? "/" : "."), $ ? ($.path = w, g($)) : w;
|
|
3325
3325
|
}
|
|
3326
3326
|
e.normalize = b;
|
|
3327
3327
|
function c(j, w) {
|
|
3328
3328
|
j === "" && (j = "."), w === "" && (w = ".");
|
|
3329
3329
|
var $ = h(w), v = h(j);
|
|
3330
3330
|
if (v && (j = v.path || "/"), $ && !$.scheme)
|
|
3331
|
-
return v && ($.scheme = v.scheme),
|
|
3331
|
+
return v && ($.scheme = v.scheme), g($);
|
|
3332
3332
|
if ($ || w.match(t))
|
|
3333
3333
|
return w;
|
|
3334
3334
|
if (v && !v.host && !v.path)
|
|
3335
|
-
return v.host = w,
|
|
3335
|
+
return v.host = w, g(v);
|
|
3336
3336
|
var Z = w.charAt(0) === "/" ? w : b(j.replace(/\/+$/, "") + "/" + w);
|
|
3337
|
-
return v ? (v.path = Z,
|
|
3337
|
+
return v ? (v.path = Z, g(v)) : Z;
|
|
3338
3338
|
}
|
|
3339
3339
|
e.join = c, e.isAbsolute = function(j) {
|
|
3340
3340
|
return j.charAt(0) === "/" || o.test(j);
|
|
@@ -3381,11 +3381,11 @@ function He() {
|
|
|
3381
3381
|
return v !== 0 || (v = j.originalLine - w.originalLine, v !== 0) || (v = j.originalColumn - w.originalColumn, v !== 0 || $) || (v = j.generatedColumn - w.generatedColumn, v !== 0) || (v = j.generatedLine - w.generatedLine, v !== 0) ? v : f(j.name, w.name);
|
|
3382
3382
|
}
|
|
3383
3383
|
e.compareByOriginalPositions = i;
|
|
3384
|
-
function
|
|
3384
|
+
function l(j, w, $) {
|
|
3385
3385
|
var v = j.generatedLine - w.generatedLine;
|
|
3386
3386
|
return v !== 0 || (v = j.generatedColumn - w.generatedColumn, v !== 0 || $) || (v = f(j.source, w.source), v !== 0) || (v = j.originalLine - w.originalLine, v !== 0) || (v = j.originalColumn - w.originalColumn, v !== 0) ? v : f(j.name, w.name);
|
|
3387
3387
|
}
|
|
3388
|
-
e.compareByGeneratedPositionsDeflated =
|
|
3388
|
+
e.compareByGeneratedPositionsDeflated = l;
|
|
3389
3389
|
function f(j, w) {
|
|
3390
3390
|
return j === w ? 0 : j === null ? 1 : w === null ? -1 : j > w ? 1 : -1;
|
|
3391
3391
|
}
|
|
@@ -3407,7 +3407,7 @@ function He() {
|
|
|
3407
3407
|
var Z = v.path.lastIndexOf("/");
|
|
3408
3408
|
Z >= 0 && (v.path = v.path.substring(0, Z + 1));
|
|
3409
3409
|
}
|
|
3410
|
-
w = c(
|
|
3410
|
+
w = c(g(v), w);
|
|
3411
3411
|
}
|
|
3412
3412
|
return b(w);
|
|
3413
3413
|
}
|
|
@@ -3422,35 +3422,35 @@ function vn() {
|
|
|
3422
3422
|
function t() {
|
|
3423
3423
|
this._array = [], this._set = o ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
|
|
3424
3424
|
}
|
|
3425
|
-
return t.fromArray = function(
|
|
3426
|
-
for (var c = new t(), r = 0, d =
|
|
3427
|
-
c.add(
|
|
3425
|
+
return t.fromArray = function(g, b) {
|
|
3426
|
+
for (var c = new t(), r = 0, d = g.length; r < d; r++)
|
|
3427
|
+
c.add(g[r], b);
|
|
3428
3428
|
return c;
|
|
3429
3429
|
}, t.prototype.size = function() {
|
|
3430
3430
|
return o ? this._set.size : Object.getOwnPropertyNames(this._set).length;
|
|
3431
|
-
}, t.prototype.add = function(
|
|
3432
|
-
var c = o ?
|
|
3433
|
-
(!r || b) && this._array.push(
|
|
3434
|
-
}, t.prototype.has = function(
|
|
3431
|
+
}, t.prototype.add = function(g, b) {
|
|
3432
|
+
var c = o ? g : e.toSetString(g), r = o ? this.has(g) : a.call(this._set, c), d = this._array.length;
|
|
3433
|
+
(!r || b) && this._array.push(g), r || (o ? this._set.set(g, d) : this._set[c] = d);
|
|
3434
|
+
}, t.prototype.has = function(g) {
|
|
3435
3435
|
if (o)
|
|
3436
|
-
return this._set.has(
|
|
3437
|
-
var b = e.toSetString(
|
|
3436
|
+
return this._set.has(g);
|
|
3437
|
+
var b = e.toSetString(g);
|
|
3438
3438
|
return a.call(this._set, b);
|
|
3439
|
-
}, t.prototype.indexOf = function(
|
|
3439
|
+
}, t.prototype.indexOf = function(g) {
|
|
3440
3440
|
if (o) {
|
|
3441
|
-
var b = this._set.get(
|
|
3441
|
+
var b = this._set.get(g);
|
|
3442
3442
|
if (b >= 0)
|
|
3443
3443
|
return b;
|
|
3444
3444
|
} else {
|
|
3445
|
-
var c = e.toSetString(
|
|
3445
|
+
var c = e.toSetString(g);
|
|
3446
3446
|
if (a.call(this._set, c))
|
|
3447
3447
|
return this._set[c];
|
|
3448
3448
|
}
|
|
3449
|
-
throw new Error('"' +
|
|
3450
|
-
}, t.prototype.at = function(
|
|
3451
|
-
if (
|
|
3452
|
-
return this._array[
|
|
3453
|
-
throw new Error("No element indexed by " +
|
|
3449
|
+
throw new Error('"' + g + '" is not in the set.');
|
|
3450
|
+
}, t.prototype.at = function(g) {
|
|
3451
|
+
if (g >= 0 && g < this._array.length)
|
|
3452
|
+
return this._array[g];
|
|
3453
|
+
throw new Error("No element indexed by " + g);
|
|
3454
3454
|
}, t.prototype.toArray = function() {
|
|
3455
3455
|
return this._array.slice();
|
|
3456
3456
|
}, La.ArraySet = t, La;
|
|
@@ -3461,14 +3461,14 @@ function ot() {
|
|
|
3461
3461
|
Fi = 1;
|
|
3462
3462
|
var e = He();
|
|
3463
3463
|
function a(t, h) {
|
|
3464
|
-
var
|
|
3465
|
-
return b >
|
|
3464
|
+
var g = t.generatedLine, b = h.generatedLine, c = t.generatedColumn, r = h.generatedColumn;
|
|
3465
|
+
return b > g || b == g && r >= c || e.compareByGeneratedPositionsInflated(t, h) <= 0;
|
|
3466
3466
|
}
|
|
3467
3467
|
function o() {
|
|
3468
3468
|
this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
|
|
3469
3469
|
}
|
|
3470
|
-
return o.prototype.unsortedForEach = function(h,
|
|
3471
|
-
this._array.forEach(h,
|
|
3470
|
+
return o.prototype.unsortedForEach = function(h, g) {
|
|
3471
|
+
this._array.forEach(h, g);
|
|
3472
3472
|
}, o.prototype.add = function(h) {
|
|
3473
3473
|
a(this._last, h) ? (this._last = h, this._array.push(h)) : (this._sorted = !1, this._array.push(h));
|
|
3474
3474
|
}, o.prototype.toArray = function() {
|
|
@@ -3480,8 +3480,8 @@ function Sn() {
|
|
|
3480
3480
|
if (xi) return $a;
|
|
3481
3481
|
xi = 1;
|
|
3482
3482
|
var e = jn(), a = He(), o = vn().ArraySet, t = ot().MappingList;
|
|
3483
|
-
function h(
|
|
3484
|
-
|
|
3483
|
+
function h(g) {
|
|
3484
|
+
g || (g = {}), this._file = a.getArg(g, "file", null), this._sourceRoot = a.getArg(g, "sourceRoot", null), this._skipValidation = a.getArg(g, "skipValidation", !1), this._sources = new o(), this._names = new o(), this._mappings = new t(), this._sourcesContents = null;
|
|
3485
3485
|
}
|
|
3486
3486
|
return h.prototype._version = 3, h.fromSourceMap = function(b) {
|
|
3487
3487
|
var c = b.sourceRoot, r = new h({
|
|
@@ -3538,8 +3538,8 @@ function Sn() {
|
|
|
3538
3538
|
});
|
|
3539
3539
|
i.source != null && (n.source = i.source, r != null && (n.source = a.join(r, n.source)), s != null && (n.source = a.relative(s, n.source)), n.originalLine = i.line, n.originalColumn = i.column, i.name != null && (n.name = i.name));
|
|
3540
3540
|
}
|
|
3541
|
-
var
|
|
3542
|
-
|
|
3541
|
+
var l = n.source;
|
|
3542
|
+
l != null && !y.has(l) && y.add(l);
|
|
3543
3543
|
var f = n.name;
|
|
3544
3544
|
f != null && !u.has(f) && u.add(f);
|
|
3545
3545
|
}, this), this._sources = y, this._names = u, b.sources.forEach(function(n) {
|
|
@@ -3562,7 +3562,7 @@ function Sn() {
|
|
|
3562
3562
|
}));
|
|
3563
3563
|
}
|
|
3564
3564
|
}, h.prototype._serializeMappings = function() {
|
|
3565
|
-
for (var b = 0, c = 1, r = 0, d = 0, s = 0, y = 0, u = "", n, i,
|
|
3565
|
+
for (var b = 0, c = 1, r = 0, d = 0, s = 0, y = 0, u = "", n, i, l, f, p = this._mappings.toArray(), m = 0, S = p.length; m < S; m++) {
|
|
3566
3566
|
if (i = p[m], n = "", i.generatedLine !== c)
|
|
3567
3567
|
for (b = 0; i.generatedLine !== c; )
|
|
3568
3568
|
n += ";", c++;
|
|
@@ -3571,7 +3571,7 @@ function Sn() {
|
|
|
3571
3571
|
continue;
|
|
3572
3572
|
n += ",";
|
|
3573
3573
|
}
|
|
3574
|
-
n += e.encode(i.generatedColumn - b), b = i.generatedColumn, i.source != null && (f = this._sources.indexOf(i.source), n += e.encode(f - y), y = f, n += e.encode(i.originalLine - 1 - d), d = i.originalLine - 1, n += e.encode(i.originalColumn - r), r = i.originalColumn, i.name != null && (
|
|
3574
|
+
n += e.encode(i.generatedColumn - b), b = i.generatedColumn, i.source != null && (f = this._sources.indexOf(i.source), n += e.encode(f - y), y = f, n += e.encode(i.originalLine - 1 - d), d = i.originalLine - 1, n += e.encode(i.originalColumn - r), r = i.originalColumn, i.name != null && (l = this._names.indexOf(i.name), n += e.encode(l - s), s = l)), u += n;
|
|
3575
3575
|
}
|
|
3576
3576
|
return u;
|
|
3577
3577
|
}, h.prototype._generateSourcesContent = function(b, c) {
|
|
@@ -3598,11 +3598,11 @@ var Pe = {}, ka = {}, Ri;
|
|
|
3598
3598
|
function tt() {
|
|
3599
3599
|
return Ri || (Ri = 1, (function(e) {
|
|
3600
3600
|
e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
|
|
3601
|
-
function a(o, t, h,
|
|
3602
|
-
var r = Math.floor((t - o) / 2) + o, d = b(h,
|
|
3603
|
-
return d === 0 ? r : d > 0 ? t - r > 1 ? a(r, t, h,
|
|
3601
|
+
function a(o, t, h, g, b, c) {
|
|
3602
|
+
var r = Math.floor((t - o) / 2) + o, d = b(h, g[r], !0);
|
|
3603
|
+
return d === 0 ? r : d > 0 ? t - r > 1 ? a(r, t, h, g, b, c) : c == e.LEAST_UPPER_BOUND ? t < g.length ? t : -1 : r : r - o > 1 ? a(o, r, h, g, b, c) : c == e.LEAST_UPPER_BOUND ? r : o < 0 ? -1 : o;
|
|
3604
3604
|
}
|
|
3605
|
-
e.search = function(t, h,
|
|
3605
|
+
e.search = function(t, h, g, b) {
|
|
3606
3606
|
if (h.length === 0)
|
|
3607
3607
|
return -1;
|
|
3608
3608
|
var c = a(
|
|
@@ -3610,12 +3610,12 @@ function tt() {
|
|
|
3610
3610
|
h.length,
|
|
3611
3611
|
t,
|
|
3612
3612
|
h,
|
|
3613
|
-
|
|
3613
|
+
g,
|
|
3614
3614
|
b || e.GREATEST_LOWER_BOUND
|
|
3615
3615
|
);
|
|
3616
3616
|
if (c < 0)
|
|
3617
3617
|
return -1;
|
|
3618
|
-
for (; c - 1 >= 0 &&
|
|
3618
|
+
for (; c - 1 >= 0 && g(h[c], h[c - 1], !0) === 0; )
|
|
3619
3619
|
--c;
|
|
3620
3620
|
return c;
|
|
3621
3621
|
};
|
|
@@ -3625,22 +3625,22 @@ var Ia = {}, Gi;
|
|
|
3625
3625
|
function st() {
|
|
3626
3626
|
if (Gi) return Ia;
|
|
3627
3627
|
Gi = 1;
|
|
3628
|
-
function e(t, h,
|
|
3628
|
+
function e(t, h, g) {
|
|
3629
3629
|
var b = t[h];
|
|
3630
|
-
t[h] = t[
|
|
3630
|
+
t[h] = t[g], t[g] = b;
|
|
3631
3631
|
}
|
|
3632
3632
|
function a(t, h) {
|
|
3633
3633
|
return Math.round(t + Math.random() * (h - t));
|
|
3634
3634
|
}
|
|
3635
|
-
function o(t, h,
|
|
3636
|
-
if (
|
|
3637
|
-
var c = a(
|
|
3635
|
+
function o(t, h, g, b) {
|
|
3636
|
+
if (g < b) {
|
|
3637
|
+
var c = a(g, b), r = g - 1;
|
|
3638
3638
|
e(t, c, b);
|
|
3639
|
-
for (var d = t[b], s =
|
|
3639
|
+
for (var d = t[b], s = g; s < b; s++)
|
|
3640
3640
|
h(t[s], d) <= 0 && (r += 1, e(t, r, s));
|
|
3641
3641
|
e(t, r + 1, s);
|
|
3642
3642
|
var y = r + 1;
|
|
3643
|
-
o(t, h,
|
|
3643
|
+
o(t, h, g, y - 1), o(t, h, y + 1, b);
|
|
3644
3644
|
}
|
|
3645
3645
|
}
|
|
3646
3646
|
return Ia.quickSort = function(t, h) {
|
|
@@ -3652,43 +3652,43 @@ function rt() {
|
|
|
3652
3652
|
if (_i) return Pe;
|
|
3653
3653
|
_i = 1;
|
|
3654
3654
|
var e = He(), a = tt(), o = vn().ArraySet, t = jn(), h = st().quickSort;
|
|
3655
|
-
function
|
|
3655
|
+
function g(d, s) {
|
|
3656
3656
|
var y = d;
|
|
3657
3657
|
return typeof d == "string" && (y = e.parseSourceMapInput(d)), y.sections != null ? new r(y, s) : new b(y, s);
|
|
3658
3658
|
}
|
|
3659
|
-
|
|
3659
|
+
g.fromSourceMap = function(d, s) {
|
|
3660
3660
|
return b.fromSourceMap(d, s);
|
|
3661
|
-
},
|
|
3661
|
+
}, g.prototype._version = 3, g.prototype.__generatedMappings = null, Object.defineProperty(g.prototype, "_generatedMappings", {
|
|
3662
3662
|
configurable: !0,
|
|
3663
3663
|
enumerable: !0,
|
|
3664
3664
|
get: function() {
|
|
3665
3665
|
return this.__generatedMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__generatedMappings;
|
|
3666
3666
|
}
|
|
3667
|
-
}),
|
|
3667
|
+
}), g.prototype.__originalMappings = null, Object.defineProperty(g.prototype, "_originalMappings", {
|
|
3668
3668
|
configurable: !0,
|
|
3669
3669
|
enumerable: !0,
|
|
3670
3670
|
get: function() {
|
|
3671
3671
|
return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings;
|
|
3672
3672
|
}
|
|
3673
|
-
}),
|
|
3673
|
+
}), g.prototype._charIsMappingSeparator = function(s, y) {
|
|
3674
3674
|
var u = s.charAt(y);
|
|
3675
3675
|
return u === ";" || u === ",";
|
|
3676
|
-
},
|
|
3676
|
+
}, g.prototype._parseMappings = function(s, y) {
|
|
3677
3677
|
throw new Error("Subclasses must implement _parseMappings");
|
|
3678
|
-
},
|
|
3679
|
-
var n = y || null, i = u ||
|
|
3678
|
+
}, g.GENERATED_ORDER = 1, g.ORIGINAL_ORDER = 2, g.GREATEST_LOWER_BOUND = 1, g.LEAST_UPPER_BOUND = 2, g.prototype.eachMapping = function(s, y, u) {
|
|
3679
|
+
var n = y || null, i = u || g.GENERATED_ORDER, l;
|
|
3680
3680
|
switch (i) {
|
|
3681
|
-
case
|
|
3682
|
-
|
|
3681
|
+
case g.GENERATED_ORDER:
|
|
3682
|
+
l = this._generatedMappings;
|
|
3683
3683
|
break;
|
|
3684
|
-
case
|
|
3685
|
-
|
|
3684
|
+
case g.ORIGINAL_ORDER:
|
|
3685
|
+
l = this._originalMappings;
|
|
3686
3686
|
break;
|
|
3687
3687
|
default:
|
|
3688
3688
|
throw new Error("Unknown order of iteration.");
|
|
3689
3689
|
}
|
|
3690
3690
|
var f = this.sourceRoot;
|
|
3691
|
-
|
|
3691
|
+
l.map(function(p) {
|
|
3692
3692
|
var m = p.source === null ? null : this._sources.at(p.source);
|
|
3693
3693
|
return m = e.computeSourceURL(f, m, this._sourceMapURL), {
|
|
3694
3694
|
source: m,
|
|
@@ -3699,7 +3699,7 @@ function rt() {
|
|
|
3699
3699
|
name: p.name === null ? null : this._names.at(p.name)
|
|
3700
3700
|
};
|
|
3701
3701
|
}, this).forEach(s, n);
|
|
3702
|
-
},
|
|
3702
|
+
}, g.prototype.allGeneratedPositionsFor = function(s) {
|
|
3703
3703
|
var y = e.getArg(s, "line"), u = {
|
|
3704
3704
|
source: e.getArg(s, "source"),
|
|
3705
3705
|
originalLine: y,
|
|
@@ -3716,37 +3716,37 @@ function rt() {
|
|
|
3716
3716
|
a.LEAST_UPPER_BOUND
|
|
3717
3717
|
);
|
|
3718
3718
|
if (i >= 0) {
|
|
3719
|
-
var
|
|
3719
|
+
var l = this._originalMappings[i];
|
|
3720
3720
|
if (s.column === void 0)
|
|
3721
|
-
for (var f =
|
|
3721
|
+
for (var f = l.originalLine; l && l.originalLine === f; )
|
|
3722
3722
|
n.push({
|
|
3723
|
-
line: e.getArg(
|
|
3724
|
-
column: e.getArg(
|
|
3725
|
-
lastColumn: e.getArg(
|
|
3726
|
-
}),
|
|
3723
|
+
line: e.getArg(l, "generatedLine", null),
|
|
3724
|
+
column: e.getArg(l, "generatedColumn", null),
|
|
3725
|
+
lastColumn: e.getArg(l, "lastGeneratedColumn", null)
|
|
3726
|
+
}), l = this._originalMappings[++i];
|
|
3727
3727
|
else
|
|
3728
|
-
for (var p =
|
|
3728
|
+
for (var p = l.originalColumn; l && l.originalLine === y && l.originalColumn == p; )
|
|
3729
3729
|
n.push({
|
|
3730
|
-
line: e.getArg(
|
|
3731
|
-
column: e.getArg(
|
|
3732
|
-
lastColumn: e.getArg(
|
|
3733
|
-
}),
|
|
3730
|
+
line: e.getArg(l, "generatedLine", null),
|
|
3731
|
+
column: e.getArg(l, "generatedColumn", null),
|
|
3732
|
+
lastColumn: e.getArg(l, "lastGeneratedColumn", null)
|
|
3733
|
+
}), l = this._originalMappings[++i];
|
|
3734
3734
|
}
|
|
3735
3735
|
return n;
|
|
3736
|
-
}, Pe.SourceMapConsumer =
|
|
3736
|
+
}, Pe.SourceMapConsumer = g;
|
|
3737
3737
|
function b(d, s) {
|
|
3738
3738
|
var y = d;
|
|
3739
3739
|
typeof d == "string" && (y = e.parseSourceMapInput(d));
|
|
3740
|
-
var u = e.getArg(y, "version"), n = e.getArg(y, "sources"), i = e.getArg(y, "names", []),
|
|
3740
|
+
var u = e.getArg(y, "version"), n = e.getArg(y, "sources"), i = e.getArg(y, "names", []), l = e.getArg(y, "sourceRoot", null), f = e.getArg(y, "sourcesContent", null), p = e.getArg(y, "mappings"), m = e.getArg(y, "file", null);
|
|
3741
3741
|
if (u != this._version)
|
|
3742
3742
|
throw new Error("Unsupported version: " + u);
|
|
3743
|
-
|
|
3744
|
-
return
|
|
3743
|
+
l && (l = e.normalize(l)), n = n.map(String).map(e.normalize).map(function(S) {
|
|
3744
|
+
return l && e.isAbsolute(l) && e.isAbsolute(S) ? e.relative(l, S) : S;
|
|
3745
3745
|
}), this._names = o.fromArray(i.map(String), !0), this._sources = o.fromArray(n, !0), this._absoluteSources = this._sources.toArray().map(function(S) {
|
|
3746
|
-
return e.computeSourceURL(
|
|
3747
|
-
}), this.sourceRoot =
|
|
3746
|
+
return e.computeSourceURL(l, S, s);
|
|
3747
|
+
}), this.sourceRoot = l, this.sourcesContent = f, this._mappings = p, this._sourceMapURL = s, this.file = m;
|
|
3748
3748
|
}
|
|
3749
|
-
b.prototype = Object.create(
|
|
3749
|
+
b.prototype = Object.create(g.prototype), b.prototype.consumer = g, b.prototype._findSourceIndex = function(d) {
|
|
3750
3750
|
var s = d;
|
|
3751
3751
|
if (this.sourceRoot != null && (s = e.relative(this.sourceRoot, s)), this._sources.has(s))
|
|
3752
3752
|
return this._sources.indexOf(s);
|
|
@@ -3763,8 +3763,8 @@ function rt() {
|
|
|
3763
3763
|
), u.file = s._file, u._sourceMapURL = y, u._absoluteSources = u._sources.toArray().map(function($) {
|
|
3764
3764
|
return e.computeSourceURL(u.sourceRoot, $, y);
|
|
3765
3765
|
});
|
|
3766
|
-
for (var
|
|
3767
|
-
var j =
|
|
3766
|
+
for (var l = s._mappings.toArray().slice(), f = u.__generatedMappings = [], p = u.__originalMappings = [], m = 0, S = l.length; m < S; m++) {
|
|
3767
|
+
var j = l[m], w = new c();
|
|
3768
3768
|
w.generatedLine = j.generatedLine, w.generatedColumn = j.generatedColumn, j.source && (w.source = i.indexOf(j.source), w.originalLine = j.originalLine, w.originalColumn = j.originalColumn, j.name && (w.name = n.indexOf(j.name)), p.push(w)), f.push(w);
|
|
3769
3769
|
}
|
|
3770
3770
|
return h(u.__originalMappings, e.compareByOriginalPositions), u;
|
|
@@ -3777,7 +3777,7 @@ function rt() {
|
|
|
3777
3777
|
this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
|
|
3778
3778
|
}
|
|
3779
3779
|
b.prototype._parseMappings = function(s, y) {
|
|
3780
|
-
for (var u = 1, n = 0, i = 0,
|
|
3780
|
+
for (var u = 1, n = 0, i = 0, l = 0, f = 0, p = 0, m = s.length, S = 0, j = {}, w = {}, $ = [], v = [], Z, T, J, k, C; S < m; )
|
|
3781
3781
|
if (s.charAt(S) === ";")
|
|
3782
3782
|
u++, S++, n = 0;
|
|
3783
3783
|
else if (s.charAt(S) === ",")
|
|
@@ -3796,15 +3796,15 @@ function rt() {
|
|
|
3796
3796
|
throw new Error("Found a source and line, but no column");
|
|
3797
3797
|
j[T] = J;
|
|
3798
3798
|
}
|
|
3799
|
-
Z.generatedColumn = n + J[0], n = Z.generatedColumn, J.length > 1 && (Z.source = f + J[1], f += J[1], Z.originalLine = i + J[2], i = Z.originalLine, Z.originalLine += 1, Z.originalColumn =
|
|
3799
|
+
Z.generatedColumn = n + J[0], n = Z.generatedColumn, J.length > 1 && (Z.source = f + J[1], f += J[1], Z.originalLine = i + J[2], i = Z.originalLine, Z.originalLine += 1, Z.originalColumn = l + J[3], l = Z.originalColumn, J.length > 4 && (Z.name = p + J[4], p += J[4])), v.push(Z), typeof Z.originalLine == "number" && $.push(Z);
|
|
3800
3800
|
}
|
|
3801
3801
|
h(v, e.compareByGeneratedPositionsDeflated), this.__generatedMappings = v, h($, e.compareByOriginalPositions), this.__originalMappings = $;
|
|
3802
|
-
}, b.prototype._findMapping = function(s, y, u, n, i,
|
|
3802
|
+
}, b.prototype._findMapping = function(s, y, u, n, i, l) {
|
|
3803
3803
|
if (s[u] <= 0)
|
|
3804
3804
|
throw new TypeError("Line must be greater than or equal to 1, got " + s[u]);
|
|
3805
3805
|
if (s[n] < 0)
|
|
3806
3806
|
throw new TypeError("Column must be greater than or equal to 0, got " + s[n]);
|
|
3807
|
-
return a.search(s, y, i,
|
|
3807
|
+
return a.search(s, y, i, l);
|
|
3808
3808
|
}, b.prototype.computeColumnSpans = function() {
|
|
3809
3809
|
for (var s = 0; s < this._generatedMappings.length; ++s) {
|
|
3810
3810
|
var y = this._generatedMappings[s];
|
|
@@ -3827,19 +3827,19 @@ function rt() {
|
|
|
3827
3827
|
"generatedLine",
|
|
3828
3828
|
"generatedColumn",
|
|
3829
3829
|
e.compareByGeneratedPositionsDeflated,
|
|
3830
|
-
e.getArg(s, "bias",
|
|
3830
|
+
e.getArg(s, "bias", g.GREATEST_LOWER_BOUND)
|
|
3831
3831
|
);
|
|
3832
3832
|
if (u >= 0) {
|
|
3833
3833
|
var n = this._generatedMappings[u];
|
|
3834
3834
|
if (n.generatedLine === y.generatedLine) {
|
|
3835
3835
|
var i = e.getArg(n, "source", null);
|
|
3836
3836
|
i !== null && (i = this._sources.at(i), i = e.computeSourceURL(this.sourceRoot, i, this._sourceMapURL));
|
|
3837
|
-
var
|
|
3838
|
-
return
|
|
3837
|
+
var l = e.getArg(n, "name", null);
|
|
3838
|
+
return l !== null && (l = this._names.at(l)), {
|
|
3839
3839
|
source: i,
|
|
3840
3840
|
line: e.getArg(n, "originalLine", null),
|
|
3841
3841
|
column: e.getArg(n, "originalColumn", null),
|
|
3842
|
-
name:
|
|
3842
|
+
name: l
|
|
3843
3843
|
};
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
@@ -3863,9 +3863,9 @@ function rt() {
|
|
|
3863
3863
|
this.sourceRoot != null && (n = e.relative(this.sourceRoot, n));
|
|
3864
3864
|
var i;
|
|
3865
3865
|
if (this.sourceRoot != null && (i = e.urlParse(this.sourceRoot))) {
|
|
3866
|
-
var
|
|
3867
|
-
if (i.scheme == "file" && this._sources.has(
|
|
3868
|
-
return this.sourcesContent[this._sources.indexOf(
|
|
3866
|
+
var l = n.replace(/^file:\/\//, "");
|
|
3867
|
+
if (i.scheme == "file" && this._sources.has(l))
|
|
3868
|
+
return this.sourcesContent[this._sources.indexOf(l)];
|
|
3869
3869
|
if ((!i.path || i.path == "/") && this._sources.has("/" + n))
|
|
3870
3870
|
return this.sourcesContent[this._sources.indexOf("/" + n)];
|
|
3871
3871
|
}
|
|
@@ -3890,7 +3890,7 @@ function rt() {
|
|
|
3890
3890
|
"originalLine",
|
|
3891
3891
|
"originalColumn",
|
|
3892
3892
|
e.compareByOriginalPositions,
|
|
3893
|
-
e.getArg(s, "bias",
|
|
3893
|
+
e.getArg(s, "bias", g.GREATEST_LOWER_BOUND)
|
|
3894
3894
|
);
|
|
3895
3895
|
if (n >= 0) {
|
|
3896
3896
|
var i = this._originalMappings[n];
|
|
@@ -3918,10 +3918,10 @@ function rt() {
|
|
|
3918
3918
|
line: -1,
|
|
3919
3919
|
column: 0
|
|
3920
3920
|
};
|
|
3921
|
-
this._sections = n.map(function(
|
|
3922
|
-
if (
|
|
3921
|
+
this._sections = n.map(function(l) {
|
|
3922
|
+
if (l.url)
|
|
3923
3923
|
throw new Error("Support for url field in sections not implemented.");
|
|
3924
|
-
var f = e.getArg(
|
|
3924
|
+
var f = e.getArg(l, "offset"), p = e.getArg(f, "line"), m = e.getArg(f, "column");
|
|
3925
3925
|
if (p < i.line || p === i.line && m < i.column)
|
|
3926
3926
|
throw new Error("Section offsets must be ordered and non-overlapping.");
|
|
3927
3927
|
return i = f, {
|
|
@@ -3931,11 +3931,11 @@ function rt() {
|
|
|
3931
3931
|
generatedLine: p + 1,
|
|
3932
3932
|
generatedColumn: m + 1
|
|
3933
3933
|
},
|
|
3934
|
-
consumer: new
|
|
3934
|
+
consumer: new g(e.getArg(l, "map"), s)
|
|
3935
3935
|
};
|
|
3936
3936
|
});
|
|
3937
3937
|
}
|
|
3938
|
-
return r.prototype = Object.create(
|
|
3938
|
+
return r.prototype = Object.create(g.prototype), r.prototype.constructor = g, r.prototype._version = 3, Object.defineProperty(r.prototype, "sources", {
|
|
3939
3939
|
get: function() {
|
|
3940
3940
|
for (var d = [], s = 0; s < this._sections.length; s++)
|
|
3941
3941
|
for (var y = 0; y < this._sections[s].consumer.sources.length; y++)
|
|
@@ -3949,9 +3949,9 @@ function rt() {
|
|
|
3949
3949
|
}, u = a.search(
|
|
3950
3950
|
y,
|
|
3951
3951
|
this._sections,
|
|
3952
|
-
function(i,
|
|
3953
|
-
var f = i.generatedLine -
|
|
3954
|
-
return f || i.generatedColumn -
|
|
3952
|
+
function(i, l) {
|
|
3953
|
+
var f = i.generatedLine - l.generatedOffset.generatedLine;
|
|
3954
|
+
return f || i.generatedColumn - l.generatedOffset.generatedColumn;
|
|
3955
3955
|
}
|
|
3956
3956
|
), n = this._sections[u];
|
|
3957
3957
|
return n ? n.consumer.originalPositionFor({
|
|
@@ -3998,8 +3998,8 @@ function rt() {
|
|
|
3998
3998
|
}, r.prototype._parseMappings = function(s, y) {
|
|
3999
3999
|
this.__generatedMappings = [], this.__originalMappings = [];
|
|
4000
4000
|
for (var u = 0; u < this._sections.length; u++)
|
|
4001
|
-
for (var n = this._sections[u], i = n.consumer._generatedMappings,
|
|
4002
|
-
var f = i[
|
|
4001
|
+
for (var n = this._sections[u], i = n.consumer._generatedMappings, l = 0; l < i.length; l++) {
|
|
4002
|
+
var f = i[l], p = n.consumer._sources.at(f.source);
|
|
4003
4003
|
p = e.computeSourceURL(n.consumer.sourceRoot, p, this._sourceMapURL), this._sources.add(p), p = this._sources.indexOf(p);
|
|
4004
4004
|
var m = null;
|
|
4005
4005
|
f.name && (m = n.consumer._names.at(f.name), this._names.add(m), m = this._names.indexOf(m));
|
|
@@ -4021,31 +4021,31 @@ function dt() {
|
|
|
4021
4021
|
if (Qi) return Za;
|
|
4022
4022
|
Qi = 1;
|
|
4023
4023
|
var e = Sn().SourceMapGenerator, a = He(), o = /(\r?\n)/, t = 10, h = "$$$isSourceNode$$$";
|
|
4024
|
-
function
|
|
4024
|
+
function g(b, c, r, d, s) {
|
|
4025
4025
|
this.children = [], this.sourceContents = {}, this.line = b ?? null, this.column = c ?? null, this.source = r ?? null, this.name = s ?? null, this[h] = !0, d != null && this.add(d);
|
|
4026
4026
|
}
|
|
4027
|
-
return
|
|
4028
|
-
var s = new
|
|
4027
|
+
return g.fromStringWithSourceMap = function(c, r, d) {
|
|
4028
|
+
var s = new g(), y = c.split(o), u = 0, n = function() {
|
|
4029
4029
|
var m = j(), S = j() || "";
|
|
4030
4030
|
return m + S;
|
|
4031
4031
|
function j() {
|
|
4032
4032
|
return u < y.length ? y[u++] : void 0;
|
|
4033
4033
|
}
|
|
4034
|
-
}, i = 1,
|
|
4034
|
+
}, i = 1, l = 0, f = null;
|
|
4035
4035
|
return r.eachMapping(function(m) {
|
|
4036
4036
|
if (f !== null)
|
|
4037
4037
|
if (i < m.generatedLine)
|
|
4038
|
-
p(f, n()), i++,
|
|
4038
|
+
p(f, n()), i++, l = 0;
|
|
4039
4039
|
else {
|
|
4040
|
-
var S = y[u] || "", j = S.substr(0, m.generatedColumn -
|
|
4041
|
-
y[u] = S.substr(m.generatedColumn -
|
|
4040
|
+
var S = y[u] || "", j = S.substr(0, m.generatedColumn - l);
|
|
4041
|
+
y[u] = S.substr(m.generatedColumn - l), l = m.generatedColumn, p(f, j), f = m;
|
|
4042
4042
|
return;
|
|
4043
4043
|
}
|
|
4044
4044
|
for (; i < m.generatedLine; )
|
|
4045
4045
|
s.add(n()), i++;
|
|
4046
|
-
if (
|
|
4046
|
+
if (l < m.generatedColumn) {
|
|
4047
4047
|
var S = y[u] || "";
|
|
4048
|
-
s.add(S.substr(0, m.generatedColumn)), y[u] = S.substr(m.generatedColumn),
|
|
4048
|
+
s.add(S.substr(0, m.generatedColumn)), y[u] = S.substr(m.generatedColumn), l = m.generatedColumn;
|
|
4049
4049
|
}
|
|
4050
4050
|
f = m;
|
|
4051
4051
|
}, this), u < y.length && (f && p(f, n()), s.add(y.splice(u).join(""))), r.sources.forEach(function(m) {
|
|
@@ -4057,7 +4057,7 @@ function dt() {
|
|
|
4057
4057
|
s.add(S);
|
|
4058
4058
|
else {
|
|
4059
4059
|
var j = d ? a.join(d, m.source) : m.source;
|
|
4060
|
-
s.add(new
|
|
4060
|
+
s.add(new g(
|
|
4061
4061
|
m.originalLine,
|
|
4062
4062
|
m.originalColumn,
|
|
4063
4063
|
j,
|
|
@@ -4066,7 +4066,7 @@ function dt() {
|
|
|
4066
4066
|
));
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
|
-
},
|
|
4069
|
+
}, g.prototype.add = function(c) {
|
|
4070
4070
|
if (Array.isArray(c))
|
|
4071
4071
|
c.forEach(function(r) {
|
|
4072
4072
|
this.add(r);
|
|
@@ -4078,7 +4078,7 @@ function dt() {
|
|
|
4078
4078
|
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + c
|
|
4079
4079
|
);
|
|
4080
4080
|
return this;
|
|
4081
|
-
},
|
|
4081
|
+
}, g.prototype.prepend = function(c) {
|
|
4082
4082
|
if (Array.isArray(c))
|
|
4083
4083
|
for (var r = c.length - 1; r >= 0; r--)
|
|
4084
4084
|
this.prepend(c[r]);
|
|
@@ -4089,7 +4089,7 @@ function dt() {
|
|
|
4089
4089
|
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + c
|
|
4090
4090
|
);
|
|
4091
4091
|
return this;
|
|
4092
|
-
},
|
|
4092
|
+
}, g.prototype.walk = function(c) {
|
|
4093
4093
|
for (var r, d = 0, s = this.children.length; d < s; d++)
|
|
4094
4094
|
r = this.children[d], r[h] ? r.walk(c) : r !== "" && c(r, {
|
|
4095
4095
|
source: this.source,
|
|
@@ -4097,7 +4097,7 @@ function dt() {
|
|
|
4097
4097
|
column: this.column,
|
|
4098
4098
|
name: this.name
|
|
4099
4099
|
});
|
|
4100
|
-
},
|
|
4100
|
+
}, g.prototype.join = function(c) {
|
|
4101
4101
|
var r, d, s = this.children.length;
|
|
4102
4102
|
if (s > 0) {
|
|
4103
4103
|
for (r = [], d = 0; d < s - 1; d++)
|
|
@@ -4105,29 +4105,29 @@ function dt() {
|
|
|
4105
4105
|
r.push(this.children[d]), this.children = r;
|
|
4106
4106
|
}
|
|
4107
4107
|
return this;
|
|
4108
|
-
},
|
|
4108
|
+
}, g.prototype.replaceRight = function(c, r) {
|
|
4109
4109
|
var d = this.children[this.children.length - 1];
|
|
4110
4110
|
return d[h] ? d.replaceRight(c, r) : typeof d == "string" ? this.children[this.children.length - 1] = d.replace(c, r) : this.children.push("".replace(c, r)), this;
|
|
4111
|
-
},
|
|
4111
|
+
}, g.prototype.setSourceContent = function(c, r) {
|
|
4112
4112
|
this.sourceContents[a.toSetString(c)] = r;
|
|
4113
|
-
},
|
|
4113
|
+
}, g.prototype.walkSourceContents = function(c) {
|
|
4114
4114
|
for (var r = 0, d = this.children.length; r < d; r++)
|
|
4115
4115
|
this.children[r][h] && this.children[r].walkSourceContents(c);
|
|
4116
4116
|
for (var s = Object.keys(this.sourceContents), r = 0, d = s.length; r < d; r++)
|
|
4117
4117
|
c(a.fromSetString(s[r]), this.sourceContents[s[r]]);
|
|
4118
|
-
},
|
|
4118
|
+
}, g.prototype.toString = function() {
|
|
4119
4119
|
var c = "";
|
|
4120
4120
|
return this.walk(function(r) {
|
|
4121
4121
|
c += r;
|
|
4122
4122
|
}), c;
|
|
4123
|
-
},
|
|
4123
|
+
}, g.prototype.toStringWithSourceMap = function(c) {
|
|
4124
4124
|
var r = {
|
|
4125
4125
|
code: "",
|
|
4126
4126
|
line: 1,
|
|
4127
4127
|
column: 0
|
|
4128
4128
|
}, d = new e(c), s = !1, y = null, u = null, n = null, i = null;
|
|
4129
|
-
return this.walk(function(
|
|
4130
|
-
r.code +=
|
|
4129
|
+
return this.walk(function(l, f) {
|
|
4130
|
+
r.code += l, f.source !== null && f.line !== null && f.column !== null ? ((y !== f.source || u !== f.line || n !== f.column || i !== f.name) && d.addMapping({
|
|
4131
4131
|
source: f.source,
|
|
4132
4132
|
original: {
|
|
4133
4133
|
line: f.line,
|
|
@@ -4144,8 +4144,8 @@ function dt() {
|
|
|
4144
4144
|
column: r.column
|
|
4145
4145
|
}
|
|
4146
4146
|
}), y = null, s = !1);
|
|
4147
|
-
for (var p = 0, m =
|
|
4148
|
-
|
|
4147
|
+
for (var p = 0, m = l.length; p < m; p++)
|
|
4148
|
+
l.charCodeAt(p) === t ? (r.line++, r.column = 0, p + 1 === m ? (y = null, s = !1) : s && d.addMapping({
|
|
4149
4149
|
source: f.source,
|
|
4150
4150
|
original: {
|
|
4151
4151
|
line: f.line,
|
|
@@ -4157,10 +4157,10 @@ function dt() {
|
|
|
4157
4157
|
},
|
|
4158
4158
|
name: f.name
|
|
4159
4159
|
})) : r.column++;
|
|
4160
|
-
}), this.walkSourceContents(function(
|
|
4161
|
-
d.setSourceContent(
|
|
4160
|
+
}), this.walkSourceContents(function(l, f) {
|
|
4161
|
+
d.setSourceContent(l, f);
|
|
4162
4162
|
}), { code: r.code, map: d };
|
|
4163
|
-
}, Za.SourceNode =
|
|
4163
|
+
}, Za.SourceNode = g, Za;
|
|
4164
4164
|
}
|
|
4165
4165
|
var Oi;
|
|
4166
4166
|
function lt() {
|
|
@@ -4192,7 +4192,7 @@ function gt() {
|
|
|
4192
4192
|
return this.src;
|
|
4193
4193
|
}
|
|
4194
4194
|
});
|
|
4195
|
-
function
|
|
4195
|
+
function g(c, r, d) {
|
|
4196
4196
|
if (o.isArray(c)) {
|
|
4197
4197
|
for (var s = [], y = 0, u = c.length; y < u; y++)
|
|
4198
4198
|
s.push(r.wrap(c[y], d));
|
|
@@ -4231,7 +4231,7 @@ function gt() {
|
|
|
4231
4231
|
},
|
|
4232
4232
|
wrap: function(r) {
|
|
4233
4233
|
var d = arguments.length <= 1 || arguments[1] === void 0 ? this.currentLocation || { start: {} } : arguments[1];
|
|
4234
|
-
return r instanceof t ? r : (r =
|
|
4234
|
+
return r instanceof t ? r : (r = g(r, this, d), new t(d.start.line, d.start.column, this.srcFile, r));
|
|
4235
4235
|
},
|
|
4236
4236
|
functionCall: function(r, d, s) {
|
|
4237
4237
|
return s = this.generateList(s), this.wrap([r, d ? "." + d + "(" : "(", s, ")"]);
|
|
@@ -4242,7 +4242,7 @@ function gt() {
|
|
|
4242
4242
|
objectLiteral: function(r) {
|
|
4243
4243
|
var d = this, s = [];
|
|
4244
4244
|
Object.keys(r).forEach(function(u) {
|
|
4245
|
-
var n =
|
|
4245
|
+
var n = g(r[u], d);
|
|
4246
4246
|
n !== "undefined" && s.push([d.quotedString(u), ":", n]);
|
|
4247
4247
|
});
|
|
4248
4248
|
var y = this.generateList(s);
|
|
@@ -4250,7 +4250,7 @@ function gt() {
|
|
|
4250
4250
|
},
|
|
4251
4251
|
generateList: function(r) {
|
|
4252
4252
|
for (var d = this.empty(), s = 0, y = r.length; s < y; s++)
|
|
4253
|
-
s && d.add(","), d.add(
|
|
4253
|
+
s && d.add(","), d.add(g(r[s], this));
|
|
4254
4254
|
return d;
|
|
4255
4255
|
},
|
|
4256
4256
|
generateArray: function(r) {
|
|
@@ -4267,7 +4267,7 @@ function ht() {
|
|
|
4267
4267
|
function o(u) {
|
|
4268
4268
|
return u && u.__esModule ? u : { default: u };
|
|
4269
4269
|
}
|
|
4270
|
-
var t = Oa(), h = ee(),
|
|
4270
|
+
var t = Oa(), h = ee(), g = o(h), b = U(), c = gt(), r = o(c);
|
|
4271
4271
|
function d(u) {
|
|
4272
4272
|
this.value = u;
|
|
4273
4273
|
}
|
|
@@ -4286,8 +4286,8 @@ function ht() {
|
|
|
4286
4286
|
var n = t.COMPILER_REVISION, i = t.REVISION_CHANGES[n];
|
|
4287
4287
|
return [n, i];
|
|
4288
4288
|
},
|
|
4289
|
-
appendToBuffer: function(n, i,
|
|
4290
|
-
return b.isArray(n) || (n = [n]), n = this.source.wrap(n, i), this.environment.isSimple ? ["return ", n, ";"] :
|
|
4289
|
+
appendToBuffer: function(n, i, l) {
|
|
4290
|
+
return b.isArray(n) || (n = [n]), n = this.source.wrap(n, i), this.environment.isSimple ? ["return ", n, ";"] : l ? ["buffer += ", n, ";"] : (n.appendToBuffer = !0, n);
|
|
4291
4291
|
},
|
|
4292
4292
|
initializeBuffer: function() {
|
|
4293
4293
|
return this.quotedString("");
|
|
@@ -4297,8 +4297,8 @@ function ht() {
|
|
|
4297
4297
|
return this.lookupPropertyFunctionIsUsed = !0, ["lookupProperty(", n, ",", JSON.stringify(i), ")"];
|
|
4298
4298
|
},
|
|
4299
4299
|
lookupPropertyFunctionIsUsed: !1,
|
|
4300
|
-
compile: function(n, i,
|
|
4301
|
-
this.environment = n, this.options = i, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !f, this.name = this.environment.name, this.isChild = !!
|
|
4300
|
+
compile: function(n, i, l, f) {
|
|
4301
|
+
this.environment = n, this.options = i, this.stringParams = this.options.stringParams, this.trackIds = this.options.trackIds, this.precompile = !f, this.name = this.environment.name, this.isChild = !!l, this.context = l || {
|
|
4302
4302
|
decorators: [],
|
|
4303
4303
|
programs: [],
|
|
4304
4304
|
environments: []
|
|
@@ -4307,7 +4307,7 @@ function ht() {
|
|
|
4307
4307
|
for (j = 0, w = p.length; j < w; j++)
|
|
4308
4308
|
m = p[j], this.source.currentLocation = m.loc, S = S || m.loc, this[m.opcode].apply(this, m.args);
|
|
4309
4309
|
if (this.source.currentLocation = S, this.pushSource(""), this.stackSlot || this.inlineStack.length || this.compileStack.length)
|
|
4310
|
-
throw new
|
|
4310
|
+
throw new g.default("Compile completed with content left on stack");
|
|
4311
4311
|
this.decorators.isEmpty() ? this.decorators = void 0 : (this.useDecorators = !0, this.decorators.prepend(["var decorators = container.decorators, ", this.lookupPropertyFunctionVarDeclaration(), `;
|
|
4312
4312
|
`]), this.decorators.push("return fn;"), f ? this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]) : (this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
4313
4313
|
`), this.decorators.push(`}
|
|
@@ -4329,24 +4329,24 @@ function ht() {
|
|
|
4329
4329
|
this.lastContext = 0, this.source = new r.default(this.options.srcName), this.decorators = new r.default(this.options.srcName);
|
|
4330
4330
|
},
|
|
4331
4331
|
createFunctionContext: function(n) {
|
|
4332
|
-
var i = this,
|
|
4333
|
-
f.length > 0 && (
|
|
4332
|
+
var i = this, l = "", f = this.stackVars.concat(this.registers.list);
|
|
4333
|
+
f.length > 0 && (l += ", " + f.join(", "));
|
|
4334
4334
|
var p = 0;
|
|
4335
4335
|
Object.keys(this.aliases).forEach(function(j) {
|
|
4336
4336
|
var w = i.aliases[j];
|
|
4337
|
-
w.children && w.referenceCount > 1 && (
|
|
4338
|
-
}), this.lookupPropertyFunctionIsUsed && (
|
|
4337
|
+
w.children && w.referenceCount > 1 && (l += ", alias" + ++p + "=" + j, w.children[0] = "alias" + p);
|
|
4338
|
+
}), this.lookupPropertyFunctionIsUsed && (l += ", " + this.lookupPropertyFunctionVarDeclaration());
|
|
4339
4339
|
var m = ["container", "depth0", "helpers", "partials", "data"];
|
|
4340
4340
|
(this.useBlockParams || this.useDepths) && m.push("blockParams"), this.useDepths && m.push("depths");
|
|
4341
|
-
var S = this.mergeSource(
|
|
4341
|
+
var S = this.mergeSource(l);
|
|
4342
4342
|
return n ? (m.push(S), Function.apply(this, m)) : this.source.wrap(["function(", m.join(","), `) {
|
|
4343
4343
|
`, S, "}"]);
|
|
4344
4344
|
},
|
|
4345
4345
|
mergeSource: function(n) {
|
|
4346
|
-
var i = this.environment.isSimple,
|
|
4346
|
+
var i = this.environment.isSimple, l = !this.forceBuffer, f = void 0, p = void 0, m = void 0, S = void 0;
|
|
4347
4347
|
return this.source.each(function(j) {
|
|
4348
|
-
j.appendToBuffer ? (m ? j.prepend(" + ") : m = j, S = j) : (m && (p ? m.prepend("buffer += ") : f = !0, S.add(";"), m = S = void 0), p = !0, i || (
|
|
4349
|
-
}),
|
|
4348
|
+
j.appendToBuffer ? (m ? j.prepend(" + ") : m = j, S = j) : (m && (p ? m.prepend("buffer += ") : f = !0, S.add(";"), m = S = void 0), p = !0, i || (l = !1));
|
|
4349
|
+
}), l ? m ? (m.prepend("return "), S.add(";")) : p || this.source.push('return "";') : (n += ", buffer = " + (f ? "" : this.initializeBuffer()), m ? (m.prepend("return buffer + "), S.add(";")) : this.source.push("return buffer;")), n && this.source.prepend("var " + n.substring(2) + (f ? "" : `;
|
|
4350
4350
|
`)), this.source.merge();
|
|
4351
4351
|
},
|
|
4352
4352
|
lookupPropertyFunctionVarDeclaration: function() {
|
|
@@ -4369,10 +4369,10 @@ function ht() {
|
|
|
4369
4369
|
// replace it on the stack with the result of properly
|
|
4370
4370
|
// invoking blockHelperMissing.
|
|
4371
4371
|
blockValue: function(n) {
|
|
4372
|
-
var i = this.aliasable("container.hooks.blockHelperMissing"),
|
|
4373
|
-
this.setupHelperArgs(n, 0,
|
|
4372
|
+
var i = this.aliasable("container.hooks.blockHelperMissing"), l = [this.contextName(0)];
|
|
4373
|
+
this.setupHelperArgs(n, 0, l);
|
|
4374
4374
|
var f = this.popStack();
|
|
4375
|
-
|
|
4375
|
+
l.splice(1, 0, f), this.push(this.source.functionCall(i, "call", l));
|
|
4376
4376
|
},
|
|
4377
4377
|
// [ambiguousBlockValue]
|
|
4378
4378
|
//
|
|
@@ -4383,8 +4383,8 @@ function ht() {
|
|
|
4383
4383
|
ambiguousBlockValue: function() {
|
|
4384
4384
|
var n = this.aliasable("container.hooks.blockHelperMissing"), i = [this.contextName(0)];
|
|
4385
4385
|
this.setupHelperArgs("", 0, i, !0), this.flushInline();
|
|
4386
|
-
var
|
|
4387
|
-
i.splice(1, 0,
|
|
4386
|
+
var l = this.topStack();
|
|
4387
|
+
i.splice(1, 0, l), this.pushSource(["if (!", this.lastHelper, ") { ", l, " = ", this.source.functionCall(n, "call", i), "}"]);
|
|
4388
4388
|
},
|
|
4389
4389
|
// [appendContent]
|
|
4390
4390
|
//
|
|
@@ -4449,9 +4449,9 @@ function ht() {
|
|
|
4449
4449
|
//
|
|
4450
4450
|
// Looks up the value of `name` on the current context and pushes
|
|
4451
4451
|
// it onto the stack.
|
|
4452
|
-
lookupOnContext: function(n, i,
|
|
4452
|
+
lookupOnContext: function(n, i, l, f) {
|
|
4453
4453
|
var p = 0;
|
|
4454
|
-
!f && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(n[p++])) : this.pushContext(), this.resolvePath("context", n, p, i,
|
|
4454
|
+
!f && this.options.compat && !this.lastContext ? this.push(this.depthedLookup(n[p++])) : this.pushContext(), this.resolvePath("context", n, p, i, l);
|
|
4455
4455
|
},
|
|
4456
4456
|
// [lookupBlockParam]
|
|
4457
4457
|
//
|
|
@@ -4469,13 +4469,13 @@ function ht() {
|
|
|
4469
4469
|
// On stack, after: data, ...
|
|
4470
4470
|
//
|
|
4471
4471
|
// Push the data lookup operator
|
|
4472
|
-
lookupData: function(n, i,
|
|
4473
|
-
n ? this.pushStackLiteral("container.data(data, " + n + ")") : this.pushStackLiteral("data"), this.resolvePath("data", i, 0, !0,
|
|
4472
|
+
lookupData: function(n, i, l) {
|
|
4473
|
+
n ? this.pushStackLiteral("container.data(data, " + n + ")") : this.pushStackLiteral("data"), this.resolvePath("data", i, 0, !0, l);
|
|
4474
4474
|
},
|
|
4475
|
-
resolvePath: function(n, i,
|
|
4475
|
+
resolvePath: function(n, i, l, f, p) {
|
|
4476
4476
|
var m = this;
|
|
4477
4477
|
if (this.options.strict || this.options.assumeObjects) {
|
|
4478
|
-
this.push(y(this.options.strict && p, this, i,
|
|
4478
|
+
this.push(y(this.options.strict && p, this, i, l, n));
|
|
4479
4479
|
return;
|
|
4480
4480
|
}
|
|
4481
4481
|
for (var S = i.length, j = function($) {
|
|
@@ -4483,7 +4483,7 @@ function ht() {
|
|
|
4483
4483
|
var Z = m.nameLookup(v, i[$], n);
|
|
4484
4484
|
return f ? [" && ", Z] : [" != null ? ", Z, " : ", v];
|
|
4485
4485
|
});
|
|
4486
|
-
}, w =
|
|
4486
|
+
}, w = l; w < S; w++)
|
|
4487
4487
|
j(w);
|
|
4488
4488
|
},
|
|
4489
4489
|
// [resolvePossibleLambda]
|
|
@@ -4556,8 +4556,8 @@ function ht() {
|
|
|
4556
4556
|
// Pops off the decorator's parameters, invokes the decorator,
|
|
4557
4557
|
// and inserts the decorator into the decorators list.
|
|
4558
4558
|
registerDecorator: function(n, i) {
|
|
4559
|
-
var
|
|
4560
|
-
this.decorators.push(["var decorator = ",
|
|
4559
|
+
var l = this.nameLookup("decorators", i, "decorator"), f = this.setupHelperArgs(i, n);
|
|
4560
|
+
this.decorators.push(["var decorator = ", l, ";"]), this.decorators.push(['if (typeof decorator !== "function") { throw new Error(', this.quotedString('Missing decorator: "' + i + '"'), "); }"]), this.decorators.push(["fn = ", this.decorators.functionCall("decorator", "", ["fn", "props", "container", f]), " || fn;"]);
|
|
4561
4561
|
},
|
|
4562
4562
|
// [invokeHelper]
|
|
4563
4563
|
//
|
|
@@ -4568,18 +4568,18 @@ function ht() {
|
|
|
4568
4568
|
// and pushes the helper's return value onto the stack.
|
|
4569
4569
|
//
|
|
4570
4570
|
// If the helper is not found, `helperMissing` is called.
|
|
4571
|
-
invokeHelper: function(n, i,
|
|
4571
|
+
invokeHelper: function(n, i, l) {
|
|
4572
4572
|
var f = this.popStack(), p = this.setupHelper(n, i), m = [];
|
|
4573
|
-
|
|
4573
|
+
l && m.push(p.name), m.push(f), this.options.strict || m.push(this.aliasable("container.hooks.helperMissing"));
|
|
4574
4574
|
var S = ["(", this.itemsSeparatedBy(m, "||"), ")"], j = this.source.functionCall(S, "call", p.callParams);
|
|
4575
4575
|
this.push(j);
|
|
4576
4576
|
},
|
|
4577
4577
|
itemsSeparatedBy: function(n, i) {
|
|
4578
|
-
var
|
|
4579
|
-
|
|
4578
|
+
var l = [];
|
|
4579
|
+
l.push(n[0]);
|
|
4580
4580
|
for (var f = 1; f < n.length; f++)
|
|
4581
|
-
|
|
4582
|
-
return
|
|
4581
|
+
l.push(i, n[f]);
|
|
4582
|
+
return l;
|
|
4583
4583
|
},
|
|
4584
4584
|
// [invokeKnownHelper]
|
|
4585
4585
|
//
|
|
@@ -4589,8 +4589,8 @@ function ht() {
|
|
|
4589
4589
|
// This operation is used when the helper is known to exist,
|
|
4590
4590
|
// so a `helperMissing` fallback is not required.
|
|
4591
4591
|
invokeKnownHelper: function(n, i) {
|
|
4592
|
-
var
|
|
4593
|
-
this.push(this.source.functionCall(
|
|
4592
|
+
var l = this.setupHelper(n, i);
|
|
4593
|
+
this.push(this.source.functionCall(l.name, "call", l.callParams));
|
|
4594
4594
|
},
|
|
4595
4595
|
// [invokeAmbiguous]
|
|
4596
4596
|
//
|
|
@@ -4606,9 +4606,9 @@ function ht() {
|
|
|
4606
4606
|
// `knownHelpersOnly` flags at compile-time.
|
|
4607
4607
|
invokeAmbiguous: function(n, i) {
|
|
4608
4608
|
this.useRegister("helper");
|
|
4609
|
-
var
|
|
4609
|
+
var l = this.popStack();
|
|
4610
4610
|
this.emptyHash();
|
|
4611
|
-
var f = this.setupHelper(0, n, i), p = this.lastHelper = this.nameLookup("helpers", n, "helper"), m = ["(", "(helper = ", p, " || ",
|
|
4611
|
+
var f = this.setupHelper(0, n, i), p = this.lastHelper = this.nameLookup("helpers", n, "helper"), m = ["(", "(helper = ", p, " || ", l, ")"];
|
|
4612
4612
|
this.options.strict || (m[0] = "(helper = ", m.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing"))), this.push(["(", m, f.paramsInit ? ["),(", f.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", f.callParams), " : helper))"]);
|
|
4613
4613
|
},
|
|
4614
4614
|
// [invokePartial]
|
|
@@ -4618,9 +4618,9 @@ function ht() {
|
|
|
4618
4618
|
//
|
|
4619
4619
|
// This operation pops off a context, invokes a partial with that context,
|
|
4620
4620
|
// and pushes the result of the invocation back.
|
|
4621
|
-
invokePartial: function(n, i,
|
|
4621
|
+
invokePartial: function(n, i, l) {
|
|
4622
4622
|
var f = [], p = this.setupParams(i, 1, f);
|
|
4623
|
-
n && (i = this.popStack(), delete p.name),
|
|
4623
|
+
n && (i = this.popStack(), delete p.name), l && (p.indent = JSON.stringify(l)), p.helpers = "helpers", p.partials = "partials", p.decorators = "container.decorators", n ? f.unshift(i) : f.unshift(this.nameLookup("partials", i, "partial")), this.options.compat && (p.depths = "depths"), p = this.objectLiteral(p), f.push(p), this.push(this.source.functionCall("container.invokePartial", "", f));
|
|
4624
4624
|
},
|
|
4625
4625
|
// [assignToHash]
|
|
4626
4626
|
//
|
|
@@ -4629,19 +4629,19 @@ function ht() {
|
|
|
4629
4629
|
//
|
|
4630
4630
|
// Pops a value off the stack and assigns it to the current hash
|
|
4631
4631
|
assignToHash: function(n) {
|
|
4632
|
-
var i = this.popStack(),
|
|
4633
|
-
this.trackIds && (p = this.popStack()), this.stringParams && (f = this.popStack(),
|
|
4632
|
+
var i = this.popStack(), l = void 0, f = void 0, p = void 0;
|
|
4633
|
+
this.trackIds && (p = this.popStack()), this.stringParams && (f = this.popStack(), l = this.popStack());
|
|
4634
4634
|
var m = this.hash;
|
|
4635
|
-
|
|
4635
|
+
l && (m.contexts[n] = l), f && (m.types[n] = f), p && (m.ids[n] = p), m.values[n] = i;
|
|
4636
4636
|
},
|
|
4637
|
-
pushId: function(n, i,
|
|
4638
|
-
n === "BlockParam" ? this.pushStackLiteral("blockParams[" + i[0] + "].path[" + i[1] + "]" + (
|
|
4637
|
+
pushId: function(n, i, l) {
|
|
4638
|
+
n === "BlockParam" ? this.pushStackLiteral("blockParams[" + i[0] + "].path[" + i[1] + "]" + (l ? " + " + JSON.stringify("." + l) : "")) : n === "PathExpression" ? this.pushString(i) : n === "SubExpression" ? this.pushStackLiteral("true") : this.pushStackLiteral("null");
|
|
4639
4639
|
},
|
|
4640
4640
|
// HELPERS
|
|
4641
4641
|
compiler: s,
|
|
4642
4642
|
compileChildren: function(n, i) {
|
|
4643
|
-
for (var
|
|
4644
|
-
f =
|
|
4643
|
+
for (var l = n.children, f = void 0, p = void 0, m = 0, S = l.length; m < S; m++) {
|
|
4644
|
+
f = l[m], p = new this.compiler();
|
|
4645
4645
|
var j = this.matchExistingProgram(f);
|
|
4646
4646
|
if (j == null) {
|
|
4647
4647
|
var w = this.context.programs.push("") - 1;
|
|
@@ -4651,15 +4651,15 @@ function ht() {
|
|
|
4651
4651
|
}
|
|
4652
4652
|
},
|
|
4653
4653
|
matchExistingProgram: function(n) {
|
|
4654
|
-
for (var i = 0,
|
|
4654
|
+
for (var i = 0, l = this.context.environments.length; i < l; i++) {
|
|
4655
4655
|
var f = this.context.environments[i];
|
|
4656
4656
|
if (f && f.equals(n))
|
|
4657
4657
|
return f;
|
|
4658
4658
|
}
|
|
4659
4659
|
},
|
|
4660
4660
|
programExpression: function(n) {
|
|
4661
|
-
var i = this.environment.children[n],
|
|
4662
|
-
return (this.useBlockParams || this.useDepths) &&
|
|
4661
|
+
var i = this.environment.children[n], l = [i.index, "data", i.blockParams];
|
|
4662
|
+
return (this.useBlockParams || this.useDepths) && l.push("blockParams"), this.useDepths && l.push("depths"), "container.program(" + l.join(", ") + ")";
|
|
4663
4663
|
},
|
|
4664
4664
|
useRegister: function(n) {
|
|
4665
4665
|
this.registers[n] || (this.registers[n] = !0, this.registers.list.push(n));
|
|
@@ -4674,18 +4674,18 @@ function ht() {
|
|
|
4674
4674
|
this.pendingContent && (this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)), this.pendingContent = void 0), n && this.source.push(n);
|
|
4675
4675
|
},
|
|
4676
4676
|
replaceStack: function(n) {
|
|
4677
|
-
var i = ["("],
|
|
4677
|
+
var i = ["("], l = void 0, f = void 0, p = void 0;
|
|
4678
4678
|
if (!this.isInline())
|
|
4679
|
-
throw new
|
|
4679
|
+
throw new g.default("replaceStack on non-inline");
|
|
4680
4680
|
var m = this.popStack(!0);
|
|
4681
4681
|
if (m instanceof d)
|
|
4682
|
-
|
|
4682
|
+
l = [m.value], i = ["(", l], p = !0;
|
|
4683
4683
|
else {
|
|
4684
4684
|
f = !0;
|
|
4685
4685
|
var S = this.incrStack();
|
|
4686
|
-
i = ["((", this.push(S), " = ", m, ")"],
|
|
4686
|
+
i = ["((", this.push(S), " = ", m, ")"], l = this.topStack();
|
|
4687
4687
|
}
|
|
4688
|
-
var j = n.call(this,
|
|
4688
|
+
var j = n.call(this, l);
|
|
4689
4689
|
p || this.popStack(), f && this.stackSlot--, this.push(i.concat(j, ")"));
|
|
4690
4690
|
},
|
|
4691
4691
|
incrStack: function() {
|
|
@@ -4697,7 +4697,7 @@ function ht() {
|
|
|
4697
4697
|
flushInline: function() {
|
|
4698
4698
|
var n = this.inlineStack;
|
|
4699
4699
|
this.inlineStack = [];
|
|
4700
|
-
for (var i = 0,
|
|
4700
|
+
for (var i = 0, l = n.length; i < l; i++) {
|
|
4701
4701
|
var f = n[i];
|
|
4702
4702
|
if (f instanceof d)
|
|
4703
4703
|
this.compileStack.push(f);
|
|
@@ -4711,15 +4711,15 @@ function ht() {
|
|
|
4711
4711
|
return this.inlineStack.length;
|
|
4712
4712
|
},
|
|
4713
4713
|
popStack: function(n) {
|
|
4714
|
-
var i = this.isInline(),
|
|
4715
|
-
if (!n &&
|
|
4716
|
-
return
|
|
4714
|
+
var i = this.isInline(), l = (i ? this.inlineStack : this.compileStack).pop();
|
|
4715
|
+
if (!n && l instanceof d)
|
|
4716
|
+
return l.value;
|
|
4717
4717
|
if (!i) {
|
|
4718
4718
|
if (!this.stackSlot)
|
|
4719
|
-
throw new
|
|
4719
|
+
throw new g.default("Invalid stack pop");
|
|
4720
4720
|
this.stackSlot--;
|
|
4721
4721
|
}
|
|
4722
|
-
return
|
|
4722
|
+
return l;
|
|
4723
4723
|
},
|
|
4724
4724
|
topStack: function() {
|
|
4725
4725
|
var n = this.isInline() ? this.inlineStack : this.compileStack, i = n[n.length - 1];
|
|
@@ -4738,8 +4738,8 @@ function ht() {
|
|
|
4738
4738
|
var i = this.aliases[n];
|
|
4739
4739
|
return i ? (i.referenceCount++, i) : (i = this.aliases[n] = this.source.wrap(n), i.aliasable = !0, i.referenceCount = 1, i);
|
|
4740
4740
|
},
|
|
4741
|
-
setupHelper: function(n, i,
|
|
4742
|
-
var f = [], p = this.setupHelperArgs(i, n, f,
|
|
4741
|
+
setupHelper: function(n, i, l) {
|
|
4742
|
+
var f = [], p = this.setupHelperArgs(i, n, f, l), m = this.nameLookup("helpers", i, "helper"), S = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})");
|
|
4743
4743
|
return {
|
|
4744
4744
|
params: f,
|
|
4745
4745
|
paramsInit: p,
|
|
@@ -4747,29 +4747,29 @@ function ht() {
|
|
|
4747
4747
|
callParams: [S].concat(f)
|
|
4748
4748
|
};
|
|
4749
4749
|
},
|
|
4750
|
-
setupParams: function(n, i,
|
|
4751
|
-
var f = {}, p = [], m = [], S = [], j = !
|
|
4752
|
-
j && (
|
|
4750
|
+
setupParams: function(n, i, l) {
|
|
4751
|
+
var f = {}, p = [], m = [], S = [], j = !l, w = void 0;
|
|
4752
|
+
j && (l = []), f.name = this.quotedString(n), f.hash = this.popStack(), this.trackIds && (f.hashIds = this.popStack()), this.stringParams && (f.hashTypes = this.popStack(), f.hashContexts = this.popStack());
|
|
4753
4753
|
var $ = this.popStack(), v = this.popStack();
|
|
4754
4754
|
(v || $) && (f.fn = v || "container.noop", f.inverse = $ || "container.noop");
|
|
4755
4755
|
for (var Z = i; Z--; )
|
|
4756
|
-
w = this.popStack(),
|
|
4757
|
-
return j && (f.args = this.source.generateArray(
|
|
4756
|
+
w = this.popStack(), l[Z] = w, this.trackIds && (S[Z] = this.popStack()), this.stringParams && (m[Z] = this.popStack(), p[Z] = this.popStack());
|
|
4757
|
+
return j && (f.args = this.source.generateArray(l)), this.trackIds && (f.ids = this.source.generateArray(S)), this.stringParams && (f.types = this.source.generateArray(m), f.contexts = this.source.generateArray(p)), this.options.data && (f.data = "data"), this.useBlockParams && (f.blockParams = "blockParams"), f;
|
|
4758
4758
|
},
|
|
4759
|
-
setupHelperArgs: function(n, i,
|
|
4760
|
-
var p = this.setupParams(n, i,
|
|
4761
|
-
return p.loc = JSON.stringify(this.source.currentLocation), p = this.objectLiteral(p), f ? (this.useRegister("options"),
|
|
4759
|
+
setupHelperArgs: function(n, i, l, f) {
|
|
4760
|
+
var p = this.setupParams(n, i, l);
|
|
4761
|
+
return p.loc = JSON.stringify(this.source.currentLocation), p = this.objectLiteral(p), f ? (this.useRegister("options"), l.push("options"), ["options=", p]) : l ? (l.push(p), "") : p;
|
|
4762
4762
|
}
|
|
4763
4763
|
}, (function() {
|
|
4764
|
-
for (var u = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), n = s.RESERVED_WORDS = {}, i = 0,
|
|
4764
|
+
for (var u = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "), n = s.RESERVED_WORDS = {}, i = 0, l = u.length; i < l; i++)
|
|
4765
4765
|
n[u[i]] = !0;
|
|
4766
4766
|
})(), s.isValidJavaScriptVariableName = function(u) {
|
|
4767
4767
|
return !s.RESERVED_WORDS[u] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(u);
|
|
4768
4768
|
};
|
|
4769
|
-
function y(u, n, i,
|
|
4769
|
+
function y(u, n, i, l, f) {
|
|
4770
4770
|
var p = n.popStack(), m = i.length;
|
|
4771
4771
|
u && m--;
|
|
4772
|
-
for (var S =
|
|
4772
|
+
for (var S = l; S < m; S++)
|
|
4773
4773
|
p = n.nameLookup(p, i[S], f);
|
|
4774
4774
|
return u ? [n.aliasable("container.strict"), "(", p, ", ", n.quotedString(i[m]), ", ", JSON.stringify(n.source.currentLocation), " )"] : p;
|
|
4775
4775
|
}
|
|
@@ -4783,9 +4783,9 @@ function ct() {
|
|
|
4783
4783
|
function o(m) {
|
|
4784
4784
|
return m && m.__esModule ? m : { default: m };
|
|
4785
4785
|
}
|
|
4786
|
-
var t = qo(), h = o(t),
|
|
4786
|
+
var t = qo(), h = o(t), g = wn(), b = o(g), c = it(), r = nt(), d = ht(), s = o(d), y = mn(), u = o(y), n = pn(), i = o(n), l = h.default.create;
|
|
4787
4787
|
function f() {
|
|
4788
|
-
var m =
|
|
4788
|
+
var m = l();
|
|
4789
4789
|
return m.compile = function(S, j) {
|
|
4790
4790
|
return r.compile(S, j, m);
|
|
4791
4791
|
}, m.precompile = function(S, j) {
|
|
@@ -4960,7 +4960,7 @@ var Ta, zi;
|
|
|
4960
4960
|
function yt() {
|
|
4961
4961
|
if (zi) return Ta;
|
|
4962
4962
|
zi = 1;
|
|
4963
|
-
var e = "[object Symbol]", a = /[\\^$.*+?()[\]{}|]/g, o = RegExp(a.source), t = typeof le == "object" && le && le.Object === Object && le, h = typeof self == "object" && self && self.Object === Object && self,
|
|
4963
|
+
var e = "[object Symbol]", a = /[\\^$.*+?()[\]{}|]/g, o = RegExp(a.source), t = typeof le == "object" && le && le.Object === Object && le, h = typeof self == "object" && self && self.Object === Object && self, g = t || h || Function("return this")(), b = Object.prototype, c = b.toString, r = g.Symbol, d = r ? r.prototype : void 0, s = d ? d.toString : void 0;
|
|
4964
4964
|
function y(f) {
|
|
4965
4965
|
if (typeof f == "string")
|
|
4966
4966
|
return f;
|
|
@@ -4978,24 +4978,24 @@ function yt() {
|
|
|
4978
4978
|
function i(f) {
|
|
4979
4979
|
return f == null ? "" : y(f);
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4981
|
+
function l(f) {
|
|
4982
4982
|
return f = i(f), f && o.test(f) ? f.replace(a, "\\$&") : f;
|
|
4983
4983
|
}
|
|
4984
|
-
return Ta =
|
|
4984
|
+
return Ta = l, Ta;
|
|
4985
4985
|
}
|
|
4986
4986
|
yt();
|
|
4987
4987
|
var Ja, qi;
|
|
4988
4988
|
function pt() {
|
|
4989
4989
|
if (qi) return Ja;
|
|
4990
4990
|
qi = 1;
|
|
4991
|
-
var e = "[object Symbol]", a = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, o = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", h = "\\u0300-\\u036f\\ufe20-\\ufe23",
|
|
4991
|
+
var e = "[object Symbol]", a = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, o = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, t = "\\ud800-\\udfff", h = "\\u0300-\\u036f\\ufe20-\\ufe23", g = "\\u20d0-\\u20f0", b = "\\u2700-\\u27bf", c = "a-z\\xdf-\\xf6\\xf8-\\xff", r = "\\xac\\xb1\\xd7\\xf7", d = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", s = "\\u2000-\\u206f", y = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", n = "\\ufe0e\\ufe0f", i = r + d + s + y, l = "['’]", f = "[" + t + "]", p = "[" + i + "]", m = "[" + h + g + "]", S = "\\d+", j = "[" + b + "]", w = "[" + c + "]", $ = "[^" + t + i + S + b + c + u + "]", v = "\\ud83c[\\udffb-\\udfff]", Z = "(?:" + m + "|" + v + ")", T = "[^" + t + "]", J = "(?:\\ud83c[\\udde6-\\uddff]){2}", k = "[\\ud800-\\udbff][\\udc00-\\udfff]", C = "[" + u + "]", Y = "\\u200d", P = "(?:" + w + "|" + $ + ")", B = "(?:" + C + "|" + $ + ")", F = "(?:" + l + "(?:d|ll|m|re|s|t|ve))?", q = "(?:" + l + "(?:D|LL|M|RE|S|T|VE))?", Je = Z + "?", Ka = "[" + n + "]?", Jn = "(?:" + Y + "(?:" + [T, J, k].join("|") + ")" + Ka + Je + ")*", Ua = Ka + Je + Jn, Dn = "(?:" + [j, J, k].join("|") + ")" + Ua, Mn = "(?:" + [T + m + "?", m, J, k, f].join("|") + ")", Pn = RegExp(l, "g"), An = RegExp(m, "g"), Xn = RegExp(v + "(?=" + v + ")|" + Mn + Ua, "g"), Nn = RegExp([
|
|
4992
4992
|
C + "?" + w + "+" + F + "(?=" + [p, C, "$"].join("|") + ")",
|
|
4993
4993
|
B + "+" + q + "(?=" + [p, C + P, "$"].join("|") + ")",
|
|
4994
4994
|
C + "?" + P + "+" + F,
|
|
4995
4995
|
C + "+" + q,
|
|
4996
4996
|
S,
|
|
4997
4997
|
Dn
|
|
4998
|
-
].join("|"), "g"), Hn = RegExp("[" + Y + t + h +
|
|
4998
|
+
].join("|"), "g"), Hn = RegExp("[" + Y + t + h + g + n + "]"), En = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Bn = {
|
|
4999
4999
|
// Latin-1 Supplement block.
|
|
5000
5000
|
À: "A",
|
|
5001
5001
|
Á: "A",
|
|
@@ -5318,11 +5318,11 @@ function Cn(e, a) {
|
|
|
5318
5318
|
function Vi(e, a) {
|
|
5319
5319
|
e = e.split("-"), a = a.split("-");
|
|
5320
5320
|
for (var o = e[0].split("."), t = a[0].split("."), h = 0; h < 3; h++) {
|
|
5321
|
-
var
|
|
5322
|
-
if (
|
|
5323
|
-
if (b >
|
|
5324
|
-
if (!isNaN(
|
|
5325
|
-
if (isNaN(
|
|
5321
|
+
var g = Number(o[h]), b = Number(t[h]);
|
|
5322
|
+
if (g > b) return 1;
|
|
5323
|
+
if (b > g) return -1;
|
|
5324
|
+
if (!isNaN(g) && isNaN(b)) return 1;
|
|
5325
|
+
if (isNaN(g) && !isNaN(b)) return -1;
|
|
5326
5326
|
}
|
|
5327
5327
|
return e[1] && a[1] ? e[1] > a[1] ? 1 : e[1] < a[1] ? -1 : 0 : !e[1] && a[1] ? 1 : e[1] && !a[1] ? -1 : 0;
|
|
5328
5328
|
}
|
|
@@ -5443,8 +5443,8 @@ var St = "1.2.0", $t = "1.7.35", en = " ext. ", Ct = /^\d+$/, Ln = /* @__PURE__
|
|
|
5443
5443
|
if (h)
|
|
5444
5444
|
return h;
|
|
5445
5445
|
} else {
|
|
5446
|
-
var
|
|
5447
|
-
if (
|
|
5446
|
+
var g = this.countryCallingCodes()[o];
|
|
5447
|
+
if (g && g.length === 1 && g[0] === "001")
|
|
5448
5448
|
return this.metadata.countries["001"];
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
@@ -5811,7 +5811,7 @@ const Mt = /* @__PURE__ */ new Set([
|
|
|
5811
5811
|
}, be = (e, a) => (o, t) => Ea(o) ? o[e](
|
|
5812
5812
|
(h) => a(In(h, t))
|
|
5813
5813
|
) : !1, Te = (e, a) => (o, t, h) => Ea(o) ? o[e](
|
|
5814
|
-
(
|
|
5814
|
+
(g) => a(In(g, t), h)
|
|
5815
5815
|
) : !1, R = new fe();
|
|
5816
5816
|
R.functions.isDefined = (e) => Ye(e);
|
|
5817
5817
|
R.functions.isNonEmptyString = (e) => Xe(e);
|
|
@@ -5950,10 +5950,10 @@ ne.string().transform((e, a) => {
|
|
|
5950
5950
|
return a.addIssue(
|
|
5951
5951
|
`Cannot parse stringified inline relative date filter, value : "${e}"`
|
|
5952
5952
|
), ne.NEVER;
|
|
5953
|
-
const [t, h,
|
|
5953
|
+
const [t, h, g, b, c, r] = o;
|
|
5954
5954
|
return Et.parse({
|
|
5955
5955
|
direction: h,
|
|
5956
|
-
amount:
|
|
5956
|
+
amount: g,
|
|
5957
5957
|
unit: b,
|
|
5958
5958
|
timezone: c,
|
|
5959
5959
|
firstDayOfTheWeek: r
|
|
@@ -5964,8 +5964,8 @@ const Ft = (e) => {
|
|
|
5964
5964
|
const a = e.trim();
|
|
5965
5965
|
return a.startsWith("http://") || a.startsWith("https://") || a.startsWith("HTTPS://") || a.startsWith("HTTP://") ? a : `https://${a}`;
|
|
5966
5966
|
}, xt = (e, a) => {
|
|
5967
|
-
const h = /^(((?!-))(xn--|_)?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.){1,10}(xn--)?([a-z0-9][a-z0-9-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$/.test(e),
|
|
5968
|
-
return b && !1 ||
|
|
5967
|
+
const h = /^(((?!-))(xn--|_)?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.){1,10}(xn--)?([a-z0-9][a-z0-9-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$/.test(e), g = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(e), b = e === "localhost" || e === "127.0.0.1";
|
|
5968
|
+
return b && !1 || g && !1 ? !1 : h || b || g;
|
|
5969
5969
|
};
|
|
5970
5970
|
x.string().transform((e, a) => {
|
|
5971
5971
|
const o = e.trim(), t = Ft(o), h = t.replace("https://", "").replace("http://", "").replace("HTTPS://", "").replace("HTTP://", "");
|
|
@@ -5975,8 +5975,8 @@ x.string().transform((e, a) => {
|
|
|
5975
5975
|
message: "domain is not a valid url"
|
|
5976
5976
|
}), x.NEVER;
|
|
5977
5977
|
try {
|
|
5978
|
-
const
|
|
5979
|
-
return xt(
|
|
5978
|
+
const g = new URL(t);
|
|
5979
|
+
return xt(g.hostname) ? t : (a.addIssue({
|
|
5980
5980
|
code: "custom",
|
|
5981
5981
|
message: "domain is not a valid url"
|
|
5982
5982
|
}), x.NEVER);
|
|
@@ -5993,7 +5993,7 @@ for (const e of kn()) {
|
|
|
5993
5993
|
o ? o.push(e) : un.set(a, [e]);
|
|
5994
5994
|
}
|
|
5995
5995
|
new Set(kn());
|
|
5996
|
-
const
|
|
5996
|
+
const ss = (e) => {
|
|
5997
5997
|
const a = [];
|
|
5998
5998
|
e.universalIdentifier || a.push("Object must have a universalIdentifier"), e.nameSingular || a.push("Object must have a nameSingular"), e.namePlural || a.push("Object must have a namePlural"), e.labelSingular || a.push("Object must have a labelSingular"), e.labelPlural || a.push("Object must have a labelPlural");
|
|
5999
5999
|
const o = rn(e.fields);
|
|
@@ -6005,7 +6005,7 @@ const ls = (e) => {
|
|
|
6005
6005
|
config: e,
|
|
6006
6006
|
errors: a
|
|
6007
6007
|
});
|
|
6008
|
-
}, Rt = "142046f0-4d80-48b5-ad56-26ad410e895c",
|
|
6008
|
+
}, Rt = "142046f0-4d80-48b5-ad56-26ad410e895c", rs = ({
|
|
6009
6009
|
objectUniversalIdentifier: e,
|
|
6010
6010
|
fieldName: a
|
|
6011
6011
|
}) => {
|
|
@@ -6072,10 +6072,10 @@ function ca(e, a) {
|
|
|
6072
6072
|
return !0;
|
|
6073
6073
|
}
|
|
6074
6074
|
function Zn(e, a, o, t = []) {
|
|
6075
|
-
const h = t.length ? RegExp(t.map(Wa).join("|"), "g") : null,
|
|
6075
|
+
const h = t.length ? RegExp(t.map(Wa).join("|"), "g") : null, g = RegExp(a.source, a.flags.replace("g", "") + "g");
|
|
6076
6076
|
let b = "", c = 0;
|
|
6077
6077
|
for (; ; ) {
|
|
6078
|
-
const r =
|
|
6078
|
+
const r = g.exec(e);
|
|
6079
6079
|
let d = "", s = 0;
|
|
6080
6080
|
if (!r) {
|
|
6081
6081
|
b += e.substring(c, e.length);
|
|
@@ -6089,7 +6089,7 @@ function Zn(e, a, o, t = []) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
d += y.index > s ? o : "", d += y[0], s = h.lastIndex;
|
|
6091
6091
|
}
|
|
6092
|
-
b += e.substring(c, r.index) + d, c =
|
|
6092
|
+
b += e.substring(c, r.index) + d, c = g.lastIndex;
|
|
6093
6093
|
}
|
|
6094
6094
|
return b;
|
|
6095
6095
|
}
|
|
@@ -6106,7 +6106,7 @@ class Tn {
|
|
|
6106
6106
|
return o && (this.confOptions = {}), a && typeof a == "object" && (this.confOptions = W(a)), this.confOptions;
|
|
6107
6107
|
}
|
|
6108
6108
|
codeMapReplace(a, o = [], t) {
|
|
6109
|
-
let h = 0,
|
|
6109
|
+
let h = 0, g = "";
|
|
6110
6110
|
const b = t.fixChineseSpacing && on(a);
|
|
6111
6111
|
let c = !1;
|
|
6112
6112
|
for (let r = 0; r < a.length; r++) {
|
|
@@ -6120,9 +6120,9 @@ class Tn {
|
|
|
6120
6120
|
default:
|
|
6121
6121
|
s = this.map[d] || t.unknown || "";
|
|
6122
6122
|
}
|
|
6123
|
-
b && (!c || y || Gt(s) || (s = " " + s), c = !!s && on(d)),
|
|
6123
|
+
b && (!c || y || Gt(s) || (s = " " + s), c = !!s && on(d)), g += s, h += d.length, r += d.length - 1;
|
|
6124
6124
|
}
|
|
6125
|
-
return
|
|
6125
|
+
return g;
|
|
6126
6126
|
}
|
|
6127
6127
|
formatReplaceOption(a) {
|
|
6128
6128
|
if (a instanceof Array) return W(a);
|
|
@@ -6132,7 +6132,7 @@ class Tn {
|
|
|
6132
6132
|
}
|
|
6133
6133
|
replaceString(a, o, t = []) {
|
|
6134
6134
|
const h = W(o);
|
|
6135
|
-
let
|
|
6135
|
+
let g = a;
|
|
6136
6136
|
for (let b = 0; b < h.length; b++) {
|
|
6137
6137
|
const c = h[b];
|
|
6138
6138
|
switch (!0) {
|
|
@@ -6145,9 +6145,9 @@ class Tn {
|
|
|
6145
6145
|
default:
|
|
6146
6146
|
c[0] = /[^\s\S]/;
|
|
6147
6147
|
}
|
|
6148
|
-
|
|
6148
|
+
g = Zn(g, c[0], c[1], t);
|
|
6149
6149
|
}
|
|
6150
|
-
return
|
|
6150
|
+
return g;
|
|
6151
6151
|
}
|
|
6152
6152
|
setData(a, o = !1) {
|
|
6153
6153
|
if (o && (this.map = W(Na)), a && typeof a == "object" && Object.keys(a).length) {
|
|
@@ -6160,14 +6160,14 @@ class Tn {
|
|
|
6160
6160
|
o = typeof o == "object" ? o : {};
|
|
6161
6161
|
const t = W(Object.assign(Object.assign({}, this.options), o));
|
|
6162
6162
|
let h = typeof a == "string" ? a : String(a);
|
|
6163
|
-
const
|
|
6164
|
-
|
|
6163
|
+
const g = this.formatReplaceOption(t.replace);
|
|
6164
|
+
g.length && (h = this.replaceString(h, g, t.ignore));
|
|
6165
6165
|
const b = t.ignore && t.ignore.length > 0 ? (function(r, d) {
|
|
6166
6166
|
let s = [];
|
|
6167
6167
|
for (let n = 0; n < d.length; n++) {
|
|
6168
6168
|
const i = d[n];
|
|
6169
|
-
let
|
|
6170
|
-
for (; (
|
|
6169
|
+
let l = -1;
|
|
6170
|
+
for (; (l = r.indexOf(i, l + 1)) > -1; ) s.push([l, l + i.length - 1]);
|
|
6171
6171
|
}
|
|
6172
6172
|
const y = s.sort((n, i) => n[0] - i[0] || n[1] - i[1]);
|
|
6173
6173
|
let u;
|
|
@@ -6195,7 +6195,7 @@ const Se = new class extends Tn {
|
|
|
6195
6195
|
}
|
|
6196
6196
|
}(), sn = Se.slugify.bind(Se);
|
|
6197
6197
|
sn.config = Se.config.bind(Se), sn.setData = Se.setData.bind(Se);
|
|
6198
|
-
const
|
|
6198
|
+
const ds = {
|
|
6199
6199
|
attachment: {
|
|
6200
6200
|
universalIdentifier: "20202020-bd3d-4c60-8dca-571c71d4447a",
|
|
6201
6201
|
fields: {
|
|
@@ -9416,7 +9416,7 @@ const hs = {
|
|
|
9416
9416
|
}
|
|
9417
9417
|
}
|
|
9418
9418
|
}
|
|
9419
|
-
},
|
|
9419
|
+
}, ls = (e) => {
|
|
9420
9420
|
const a = [];
|
|
9421
9421
|
if (e.universalIdentifier || a.push("PageLayout must have a universalIdentifier"), e.name || a.push("PageLayout must have a name"), e.tabs) {
|
|
9422
9422
|
for (const o of e.tabs)
|
|
@@ -9425,7 +9425,7 @@ const hs = {
|
|
|
9425
9425
|
t.universalIdentifier || a.push("PageLayoutWidget must have a universalIdentifier"), t.title || a.push("PageLayoutWidget must have a title"), t.type || a.push("PageLayoutWidget must have a type");
|
|
9426
9426
|
}
|
|
9427
9427
|
return _({ config: e, errors: a });
|
|
9428
|
-
},
|
|
9428
|
+
}, gs = (e) => {
|
|
9429
9429
|
const a = [];
|
|
9430
9430
|
if (e.universalIdentifier || a.push("PageLayoutTab must have a universalIdentifier"), e.title || a.push("PageLayoutTab must have a title"), e.pageLayoutUniversalIdentifier || a.push(
|
|
9431
9431
|
"PageLayoutTab must have a pageLayoutUniversalIdentifier when defined standalone (use the parent page layout universalIdentifier)"
|
|
@@ -9442,13 +9442,13 @@ const hs = {
|
|
|
9442
9442
|
for (const o of e.fieldPermissions)
|
|
9443
9443
|
o.objectUniversalIdentifier || a.push("Field permission must have an objectUniversalIdentifier"), o.fieldUniversalIdentifier || a.push("Field permission must have a fieldUniversalIdentifier");
|
|
9444
9444
|
return _({ config: e, errors: a });
|
|
9445
|
-
},
|
|
9445
|
+
}, hs = (e) => Qt(e);
|
|
9446
9446
|
me.DAY, me.WEEK, me.MONTH, me.QUARTER, me.YEAR;
|
|
9447
9447
|
var Ot = /* @__PURE__ */ ((e) => (e.API_KEYS_AND_WEBHOOKS = "API_KEYS_AND_WEBHOOKS", e.WORKSPACE = "WORKSPACE", e.WORKSPACE_MEMBERS = "WORKSPACE_MEMBERS", e.ROLES = "ROLES", e.DATA_MODEL = "DATA_MODEL", e.SECURITY = "SECURITY", e.WORKFLOWS = "WORKFLOWS", e.IMPERSONATE = "IMPERSONATE", e.SSO_BYPASS = "SSO_BYPASS", e.APPLICATIONS = "APPLICATIONS", e.MARKETPLACE_APPS = "MARKETPLACE_APPS", e.LAYOUTS = "LAYOUTS", e.BILLING = "BILLING", e.AI_SETTINGS = "AI_SETTINGS", e.AI = "AI", e.VIEWS = "VIEWS", e.UPLOAD_FILE = "UPLOAD_FILE", e.DOWNLOAD_FILE = "DOWNLOAD_FILE", e.SEND_EMAIL_TOOL = "SEND_EMAIL_TOOL", e.HTTP_REQUEST_TOOL = "HTTP_REQUEST_TOOL", e.CODE_INTERPRETER_TOOL = "CODE_INTERPRETER_TOOL", e.IMPORT_CSV = "IMPORT_CSV", e.EXPORT_CSV = "EXPORT_CSV", e.CONNECTED_ACCOUNTS = "CONNECTED_ACCOUNTS", e.PROFILE_INFORMATION = "PROFILE_INFORMATION", e))(Ot || {});
|
|
9448
|
-
const
|
|
9448
|
+
const cs = (e) => {
|
|
9449
9449
|
const a = [];
|
|
9450
9450
|
return e.universalIdentifier || a.push("Skill must have a universalIdentifier"), e.name || a.push("Skill must have a name"), e.label || a.push("Skill must have a label"), e.content || a.push("Skill must have content"), _({ config: e, errors: a });
|
|
9451
|
-
},
|
|
9451
|
+
}, fs = (e) => {
|
|
9452
9452
|
const a = [];
|
|
9453
9453
|
if (e.universalIdentifier || a.push("View must have a universalIdentifier"), e.name || a.push("View must have a name"), e.objectUniversalIdentifier || a.push("View must have an objectUniversalIdentifier"), e.fields)
|
|
9454
9454
|
for (const o of e.fields)
|
|
@@ -9471,20 +9471,6 @@ const ys = (e) => {
|
|
|
9471
9471
|
`ViewSort direction must be '${Ae.ASC}' or '${Ae.DESC}'`
|
|
9472
9472
|
);
|
|
9473
9473
|
return _({ config: e, errors: a });
|
|
9474
|
-
}, Wt = "TWENTY_API_URL", Kt = "TWENTY_APP_ACCESS_TOKEN", Ut = (e) => {
|
|
9475
|
-
const a = JSON.parse(atob(e.split(".")[1]));
|
|
9476
|
-
return {
|
|
9477
|
-
workspaceId: a.workspaceId,
|
|
9478
|
-
applicationId: a.applicationId
|
|
9479
|
-
};
|
|
9480
|
-
}, ws = (e) => {
|
|
9481
|
-
const a = process.env[Wt], o = process.env[Kt];
|
|
9482
|
-
if (!a || !o)
|
|
9483
|
-
throw new Error(
|
|
9484
|
-
"getPublicAssetUrl can only be called from within a logic function or front component"
|
|
9485
|
-
);
|
|
9486
|
-
const { workspaceId: t, applicationId: h } = Ut(o), l = e.startsWith("/") ? e.slice(1) : e, c = (l.startsWith("public/") ? l : `public/${l}`).split("/").map(encodeURIComponent).join("/");
|
|
9487
|
-
return `${a}/public-assets/${t}/${h}/${c}`;
|
|
9488
9474
|
};
|
|
9489
9475
|
export {
|
|
9490
9476
|
ju as AggregateOperations,
|
|
@@ -9499,8 +9485,8 @@ export {
|
|
|
9499
9485
|
Mu as PageLayoutTabLayoutMode,
|
|
9500
9486
|
Ot as PermissionFlag,
|
|
9501
9487
|
Au as RelationType,
|
|
9502
|
-
|
|
9503
|
-
|
|
9488
|
+
ds as STANDARD_OBJECT,
|
|
9489
|
+
ds as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS,
|
|
9504
9490
|
Xu as ViewCalendarLayout,
|
|
9505
9491
|
Nu as ViewFilterGroupLogicalOperator,
|
|
9506
9492
|
D as ViewFilterOperand,
|
|
@@ -9510,25 +9496,24 @@ export {
|
|
|
9510
9496
|
Bu as ViewType,
|
|
9511
9497
|
Fu as ViewVisibility,
|
|
9512
9498
|
_ as createValidationResult,
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9499
|
+
zt as defineAgent,
|
|
9500
|
+
qt as defineApplication,
|
|
9501
|
+
hs as defineApplicationRole,
|
|
9502
|
+
es as defineCommandMenuItem,
|
|
9503
|
+
os as defineConnectionProvider,
|
|
9504
|
+
Vt as defineField,
|
|
9505
|
+
as as defineFrontComponent,
|
|
9506
|
+
is as defineLogicFunction,
|
|
9507
|
+
ts as defineNavigationMenuItem,
|
|
9508
|
+
ss as defineObject,
|
|
9509
|
+
ls as definePageLayout,
|
|
9510
|
+
gs as definePageLayoutTab,
|
|
9511
|
+
ns as definePostInstallLogicFunction,
|
|
9512
|
+
us as definePreInstallLogicFunction,
|
|
9527
9513
|
Qt as defineRole,
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
ws as getPublicAssetUrl,
|
|
9514
|
+
cs as defineSkill,
|
|
9515
|
+
fs as defineView,
|
|
9516
|
+
rs as generateDefaultFieldUniversalIdentifier,
|
|
9532
9517
|
rn as validateFields
|
|
9533
9518
|
};
|
|
9534
9519
|
//# sourceMappingURL=index.mjs.map
|