@templatical/editor 0.11.0 → 0.12.0
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/{AiChatSidebar-Cm5RM5Qh.js → AiChatSidebar-CXH7l1Ar.js} +13 -13
- package/dist/{AiFeatureMenu-D4D2Sqfk.js → AiFeatureMenu-BKbUUc1D.js} +10 -10
- package/dist/{BlockIssueBadge-BF4sdsr4.js → BlockIssueBadge-C-EPqWsh.js} +5 -5
- package/dist/{CloudEditor-CLwyq3kf.js → CloudEditor-F5YV5hE3.js} +166 -165
- package/dist/{CollaboratorBar-DjX-o5Pi.js → CollaboratorBar-ACUA7lBJ.js} +4 -4
- package/dist/{CommentsSidebar-BQJzyCc6.js → CommentsSidebar-CpRLN40c.js} +19 -19
- package/dist/{CountdownBlock-D_AsF4F3.js → CountdownBlock-C-6o19qS.js} +3 -3
- package/dist/{CountdownToolbar-BGTkFky9.js → CountdownToolbar-CDy9_2Yj.js} +3 -3
- package/dist/{DesignReferenceSidebar-O3epZMXD.js → DesignReferenceSidebar-0dTsBW08.js} +9 -9
- package/dist/{IssuesPanel-CPBbR8yp.js → IssuesPanel-I0z6k6-H.js} +11 -11
- package/dist/{LoadingTrack-e67FA0NP.js → LoadingTrack-C7mGWPHS.js} +1 -1
- package/dist/{ModuleBrowserModal-CVS4Sf7H.js → ModuleBrowserModal-Bz9hSjMS.js} +10 -10
- package/dist/{ModulePreviewCanvas-C10YXsL_.js → ModulePreviewCanvas-CpaumPMS.js} +23 -23
- package/dist/{NumberWithSuffix-eI9pPDWT.js → NumberWithSuffix-Cd7bz1Wk.js} +3 -3
- package/dist/{ParagraphEditor-BKoqcKIt.js → ParagraphEditor-BqRFV_Y-.js} +43 -43
- package/dist/{RichTextEditorContent-Dvn4woIt.js → RichTextEditorContent-Q5altsx1.js} +6 -6
- package/dist/{SaveModuleDialog-BMuIjxVn.js → SaveModuleDialog-DmfvH5D0.js} +7 -7
- package/dist/{SnapshotHistory-DZ5_W7e4.js → SnapshotHistory-C052o-8U.js} +13 -13
- package/dist/{TemplateScoringPanel-Bt5Rsgen.js → TemplateScoringPanel-CUs8XmIi.js} +24 -24
- package/dist/{TestEmailModal-EjpH-F-W.js → TestEmailModal-BIIxRWUt.js} +5 -5
- package/dist/{TitleEditor-Rv1deuV7.js → TitleEditor-FMh54Cx5.js} +18 -18
- package/dist/{TplModal-DSmCQIm4.js → TplModal-utMtXzSO.js} +4 -4
- package/dist/{blockTypeIcons-OhEkQhYj.js → blockTypeIcons-C6UGDmrC.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js → AiFeatureMenu-4NhCFeTh.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-Dm9CL3u0.js.map → AiFeatureMenu-4NhCFeTh.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js → BlockIssueBadge-BYKThwhE.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-DjnFAeWq.js.map → BlockIssueBadge-BYKThwhE.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js → CloudEditor-OO8hWAVp.js} +177 -176
- package/dist/cdn/chunks/{CloudEditor-XSmLmdgp.js.map → CloudEditor-OO8hWAVp.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js → CollaboratorBar-Dn5gXNDt.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-BfoGJhns.js.map → CollaboratorBar-Dn5gXNDt.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js → CountdownBlock-hYoJdVOt.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-GRio55a1.js.map → CountdownBlock-hYoJdVOt.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js → CountdownToolbar-BXjDFRHI.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-Cd1oEopw.js.map → CountdownToolbar-BXjDFRHI.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js → IssuesPanel-_5fEnivU.js} +10 -10
- package/dist/cdn/chunks/{IssuesPanel-C-BiFQDQ.js.map → IssuesPanel-_5fEnivU.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js → ModuleBrowserModal-DtCksAeW.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-Dj7gRT4Q.js.map → ModuleBrowserModal-DtCksAeW.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js → ModulePreviewCanvas-CCOvabZd.js} +31 -31
- package/dist/cdn/chunks/{ModulePreviewCanvas-hwdveKb0.js.map → ModulePreviewCanvas-CCOvabZd.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js → NumberWithSuffix-ZuJ2ePB0.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-bE_6cfiA.js.map → NumberWithSuffix-ZuJ2ePB0.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js → ParagraphEditor-BnhnFOW1.js} +34 -34
- package/dist/cdn/chunks/{ParagraphEditor-y1kGJRBX.js.map → ParagraphEditor-BnhnFOW1.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js → RichTextEditorContent-DV2yknp8.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-DPy9D4hc.js.map → RichTextEditorContent-DV2yknp8.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js → SaveModuleDialog-CCX5U7VA.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-CPu5e2VG.js.map → SaveModuleDialog-CCX5U7VA.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js → TitleEditor-CQqklX0D.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-CMzzOPye.js.map → TitleEditor-CQqklX0D.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BC5qpvuV.js.map → blockTypeIcons-CpGPHppB.js.map} +1 -1
- package/dist/{de-DIAGP7yH.js → cdn/chunks/de-DpBN9H7-.js} +13 -1
- package/dist/cdn/chunks/de-DpBN9H7-.js.map +1 -0
- package/dist/cdn/chunks/{draggable-iAb7QVJo.js → draggable-Bci-fq8y.js} +473 -465
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +1 -0
- package/dist/{en-nqIW8Q9W.js → cdn/chunks/en-BhHtdIiU.js} +13 -1
- package/dist/cdn/chunks/en-BhHtdIiU.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DH7ESsaz.js → extensions-Ds9GnMcd.js} +4 -4
- package/dist/cdn/chunks/{extensions-DH7ESsaz.js.map → extensions-Ds9GnMcd.js.map} +1 -1
- package/dist/cdn/chunks/{features-DmUOSthI.js → features-DxWz_Enw.js} +1055 -1056
- package/dist/cdn/chunks/features-DxWz_Enw.js.map +1 -0
- package/dist/cdn/chunks/{icons-DguD4x_X.js → icons-BflGUmFY.js} +146 -146
- package/dist/cdn/chunks/icons-BflGUmFY.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DUDc3U21.js → liquid.browser-DKKBzRQu.js} +502 -497
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -0
- package/dist/cdn/chunks/{media-library-ClQUPxRM.js → media-library-C479-QcE.js} +364 -364
- package/dist/cdn/chunks/{media-library-ClQUPxRM.js.map → media-library-C479-QcE.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DCNnLLx9.js → pt-BR-Bth5a93y.js} +12 -2
- package/dist/cdn/chunks/pt-BR-Bth5a93y.js.map +1 -0
- package/dist/cdn/chunks/{pusher-CHo5Cua0.js → pusher-BICWUP2j.js} +3 -3
- package/dist/cdn/chunks/{pusher-CHo5Cua0.js.map → pusher-BICWUP2j.js.map} +1 -1
- package/dist/cdn/chunks/{quality-CIw_7cXv.js → quality-BL_pEvFP.js} +20 -20
- package/dist/cdn/chunks/{quality-CIw_7cXv.js.map → quality-BL_pEvFP.js.map} +1 -1
- package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
- package/dist/cdn/chunks/{renderer-Bx8I7_Rb.js → renderer-DwPomkBw.js} +42 -39
- package/dist/cdn/chunks/renderer-DwPomkBw.js.map +1 -0
- package/dist/cdn/chunks/{src-C-GlM149.js → src-DzvOWQ9S.js} +62 -62
- package/dist/cdn/chunks/{src-C-GlM149.js.map → src-DzvOWQ9S.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CfqCvq0Z.js → styles-D45rgVq8.js} +712 -624
- package/dist/cdn/chunks/styles-D45rgVq8.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BAwu9VcJ.js → tiptap-CwScfbsM.js} +5 -4
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +105 -104
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BsNM6BDs.js → check-BRzXxFHr.js} +1 -1
- package/dist/{chevron-down-fcsZ5DU7.js → chevron-down-DmEgzmYT.js} +1 -1
- package/dist/{circle-alert-BZTbwc-B.js → circle-alert-BStvZr3O.js} +1 -1
- package/dist/{clock-B7iQRubC.js → clock-Blwp_1R6.js} +1 -1
- package/dist/{cloud-Dom4EH5Z.js → cloud-_olro76D.js} +6 -6
- package/dist/{createLucideIcon-C_fetdGM.js → createLucideIcon-CmPAC-gt.js} +3 -3
- package/dist/{cdn/chunks/de-DIAGP7yH.js → de-DpBN9H7-.js} +11 -3
- package/dist/{dist-ByBVNmRN.js → dist-412xXefB.js} +1 -1
- package/dist/{dist-XdF11ZkX.js → dist-BCQZZUE9.js} +1 -1
- package/dist/{dist-CD3wbUoR.js → dist-BNEdeWub.js} +1 -1
- package/dist/dist-BctFrpeA.js +472 -0
- package/dist/{dist-eVlXvuKI.js → dist-BlG7k25W.js} +1 -1
- package/dist/{dist-BLcYl_de.js → dist-BwgjpLfr.js} +1 -1
- package/dist/{dist-Dhs3W2WW.js → dist-Cz79qrLL.js} +1 -1
- package/dist/{dist-c2sj5PQ5.js → dist-D6x1cQeh.js} +3 -3
- package/dist/{dist-cT52Hh9L.js → dist-DJ9aD8yA.js} +3 -3
- package/dist/{dist-Cwl7XXr4.js → dist-DULfKmTh.js} +3 -3
- package/dist/{dist-Dem8ODLh.js → dist-DhKTdU52.js} +3 -2
- package/dist/{dist-BOHAk4zI.js → dist-b7Ak-CuM.js} +1 -1
- package/dist/{dist-B4NkMBYc.js → dist-o73iaGqy.js} +1 -1
- package/dist/{dist-BsB4nPJD.js → dist-u0iIJH3V.js} +1 -1
- package/dist/{cdn/chunks/en-nqIW8Q9W.js → en-BhHtdIiU.js} +11 -3
- package/dist/{extensions-B2lSGCA8.js → extensions-XPlNAKIL.js} +23 -23
- package/dist/formatRelativeTime-CtUU-QZ8.js +10 -0
- package/dist/{image-up-1xrPPJYH.js → image-up-BFPbw_Zq.js} +1 -1
- package/dist/index.d.ts +32 -0
- package/dist/{info-ByAFxArD.js → info-B_qLEBN2.js} +1 -1
- package/dist/{keys-DsRdOmg3.js → keys-mFiJ5N0_.js} +1 -1
- package/dist/{liquid.browser--qtl1Fqy.js → liquid.browser-CVjP5Mex.js} +501 -496
- package/dist/{list-checks-CKUP4UZU.js → list-checks-CGg7JxPm.js} +1 -1
- package/dist/{loader-circle-BuxX338d.js → loader-circle-CDF8eR_Q.js} +1 -1
- package/dist/{message-circle-nLwqegRi.js → message-circle-C3cHsCJl.js} +1 -1
- package/dist/{pt-BR-DCNnLLx9.js → pt-BR-Bth5a93y.js} +11 -1
- package/dist/{refresh-cw-DAkD6iDI.js → refresh-cw-Butml7Q4.js} +1 -1
- package/dist/{scan-line-DEELRJJ5.js → scan-line-XYEqim_E.js} +1 -1
- package/dist/{send-DCMgrNT4.js → send-k7npFJNO.js} +1 -1
- package/dist/{shield-check-BFtVr_ov.js → shield-check-CV6GbmCu.js} +1 -1
- package/dist/{sparkles-CeYIQ5RJ.js → sparkles-C965Xop4.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-D_ztiOsh.js → styles-Dp4mJuCM.js} +817 -729
- package/dist/templatical-editor.js +117 -116
- package/dist/{text-align-start-BsmIoqLS.js → text-align-start-Bxnps8fH.js} +1 -1
- package/dist/{trash-2-C2S4-CIH.js → trash-2-DpGb7fIt.js} +1 -1
- package/dist/{triangle-alert-DMdedF6W.js → triangle-alert-BKYElAwz.js} +1 -1
- package/dist/{useAliveFlag-DlVvpZxc.js → useAliveFlag-BinvbqQR.js} +1 -1
- package/dist/{useCloudI18n-BEuiZdzs.js → useCloudI18n-L3H2XvdW.js} +2 -2
- package/dist/{useEditorCore-tZGAVvNz.js → useEditorCore-D7dQFRkw.js} +699 -769
- package/dist/{useI18n-DNspT6uw.js → useI18n-CTs_bP9d.js} +2 -2
- package/dist/{useMergeTag-abutjUud.js → useMergeTag-e3RSY-s3.js} +6 -6
- package/dist/usePopoverRoot-DVh7NY1q.js +8 -0
- package/dist/{vue.runtime.esm-bundler-mPytWZFh.js → vue.runtime.esm-bundler-B2k01iQh.js} +345 -337
- package/dist/{x-_9jw816B.js → x-CGjkjdKK.js} +1 -1
- package/package.json +11 -11
- package/dist/cdn/chunks/blockTypeIcons-BC5qpvuV.js +0 -22
- package/dist/cdn/chunks/de-DIAGP7yH.js.map +0 -1
- package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +0 -1
- package/dist/cdn/chunks/en-nqIW8Q9W.js.map +0 -1
- package/dist/cdn/chunks/features-DmUOSthI.js.map +0 -1
- package/dist/cdn/chunks/icons-DguD4x_X.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DUDc3U21.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DCNnLLx9.js.map +0 -1
- package/dist/cdn/chunks/renderer-Bx8I7_Rb.js.map +0 -1
- package/dist/cdn/chunks/styles-CfqCvq0Z.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +0 -1
- package/dist/dist-D6L_WdRL.js +0 -403
- package/dist/formatRelativeTime-CyDg5cDD.js +0 -12
- package/dist/usePopoverRoot-DG3mlvd1.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/liquidjs@10.27.
|
|
1
|
+
//#region ../../node_modules/.pnpm/liquidjs@10.27.1/node_modules/liquidjs/dist/liquid.browser.mjs
|
|
2
2
|
var e = class {
|
|
3
3
|
constructor(e, t, n, r, i) {
|
|
4
4
|
this.kind = e, this.input = t, this.begin = n, this.end = r, this.file = i;
|
|
@@ -450,24 +450,26 @@ var Ve = new Ne(), He = {
|
|
|
450
450
|
null: Ve,
|
|
451
451
|
empty: new Pe(),
|
|
452
452
|
blank: new Fe()
|
|
453
|
-
};
|
|
454
|
-
function
|
|
455
|
-
let t =
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
453
|
+
}, Ue = /* @__PURE__ */ new WeakMap();
|
|
454
|
+
function We(e) {
|
|
455
|
+
let t = Ue.get(e);
|
|
456
|
+
if (t) return t;
|
|
457
|
+
let n = {};
|
|
458
|
+
for (let [t, r] of Object.entries(e)) {
|
|
459
|
+
let e = n;
|
|
460
|
+
for (let n = 0; n < t.length; n++) {
|
|
461
|
+
let r = t[n];
|
|
462
|
+
e[r] = e[r] || {}, n === t.length - 1 && S(t[n]) && (e[r].needBoundary = !0), e = e[r];
|
|
461
463
|
}
|
|
462
464
|
e.data = r, e.end = !0;
|
|
463
465
|
}
|
|
464
|
-
return
|
|
466
|
+
return Ue.set(e, n), n;
|
|
465
467
|
}
|
|
466
|
-
var
|
|
467
|
-
return
|
|
468
|
+
var Ge = function() {
|
|
469
|
+
return Ge = Object.assign || function(e) {
|
|
468
470
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
469
471
|
return e;
|
|
470
|
-
},
|
|
472
|
+
}, Ge.apply(this, arguments);
|
|
471
473
|
};
|
|
472
474
|
function E(e, t, n, r) {
|
|
473
475
|
function i(e) {
|
|
@@ -496,7 +498,7 @@ function E(e, t, n, r) {
|
|
|
496
498
|
c((r = r.apply(e, t || [])).next());
|
|
497
499
|
});
|
|
498
500
|
}
|
|
499
|
-
function
|
|
501
|
+
function Ke(e, t) {
|
|
500
502
|
let n = t || e;
|
|
501
503
|
return (t, ...r) => t ? n(...r) : e(...r);
|
|
502
504
|
}
|
|
@@ -506,7 +508,7 @@ function D(e) {
|
|
|
506
508
|
let t, n = !1, r = "next";
|
|
507
509
|
do {
|
|
508
510
|
let i = e[r](t);
|
|
509
|
-
n = i.done, t = i.value, r = "next";
|
|
511
|
+
n = !!i.done, t = i.value, r = "next";
|
|
510
512
|
try {
|
|
511
513
|
c(t) && (t = D(t)), s(t) && (t = yield t);
|
|
512
514
|
} catch (e) {
|
|
@@ -521,7 +523,7 @@ function O(e) {
|
|
|
521
523
|
let t, n = !1, r = "next";
|
|
522
524
|
do {
|
|
523
525
|
let i = e[r](t);
|
|
524
|
-
if (n = i.done, t = i.value, r = "next", c(t)) try {
|
|
526
|
+
if (n = !!i.done, t = i.value, r = "next", c(t)) try {
|
|
525
527
|
t = O(t);
|
|
526
528
|
} catch (e) {
|
|
527
529
|
r = "throw", t = e;
|
|
@@ -529,11 +531,11 @@ function O(e) {
|
|
|
529
531
|
} while (!n);
|
|
530
532
|
return t;
|
|
531
533
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
534
|
+
var qe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
|
|
535
|
+
function Je(e) {
|
|
534
536
|
return [
|
|
535
537
|
31,
|
|
536
|
-
|
|
538
|
+
Ze(e) ? 29 : 28,
|
|
537
539
|
31,
|
|
538
540
|
30,
|
|
539
541
|
31,
|
|
@@ -546,20 +548,20 @@ function qe(e) {
|
|
|
546
548
|
31
|
|
547
549
|
];
|
|
548
550
|
}
|
|
549
|
-
function
|
|
551
|
+
function Ye(e) {
|
|
550
552
|
let t = 0;
|
|
551
|
-
for (let n = 0; n < e.getMonth(); ++n) t +=
|
|
553
|
+
for (let n = 0; n < e.getMonth(); ++n) t += Je(e)[n];
|
|
552
554
|
return t + e.getDate();
|
|
553
555
|
}
|
|
554
|
-
function
|
|
555
|
-
let n =
|
|
556
|
+
function Xe(e, t) {
|
|
557
|
+
let n = Ye(e) + (t - e.getDay()), r = 7 - new Date(e.getFullYear(), 0, 1).getDay() + t;
|
|
556
558
|
return String(Math.floor((n - r) / 7) + 1);
|
|
557
559
|
}
|
|
558
|
-
function
|
|
560
|
+
function Ze(e) {
|
|
559
561
|
let t = e.getFullYear();
|
|
560
562
|
return !!(!(t & 3) && (t % 100 || t % 400 == 0 && t));
|
|
561
563
|
}
|
|
562
|
-
function
|
|
564
|
+
function Qe(e) {
|
|
563
565
|
let t = e.getDate();
|
|
564
566
|
if ([
|
|
565
567
|
11,
|
|
@@ -573,10 +575,10 @@ function Ze(e) {
|
|
|
573
575
|
default: return "th";
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
|
-
function
|
|
578
|
+
function $e(e) {
|
|
577
579
|
return parseInt(e.getFullYear().toString().substring(0, 2), 10);
|
|
578
580
|
}
|
|
579
|
-
var
|
|
581
|
+
var et = {
|
|
580
582
|
d: 2,
|
|
581
583
|
e: 2,
|
|
582
584
|
H: 2,
|
|
@@ -590,23 +592,23 @@ var $e = {
|
|
|
590
592
|
S: 2,
|
|
591
593
|
U: 2,
|
|
592
594
|
W: 2
|
|
593
|
-
},
|
|
594
|
-
function
|
|
595
|
+
}, tt = /* @__PURE__ */ new Set("aAbBceklpP");
|
|
596
|
+
function nt(e, t) {
|
|
595
597
|
let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
|
|
596
598
|
return (e.getTimezoneOffset() > 0 ? "-" : "+") + g(r, 2, "0") + (t.flags[":"] ? ":" : "") + g(i, 2, "0");
|
|
597
599
|
}
|
|
598
|
-
var
|
|
600
|
+
var rt = {
|
|
599
601
|
a: (e) => e.getShortWeekdayName(),
|
|
600
602
|
A: (e) => e.getLongWeekdayName(),
|
|
601
603
|
b: (e) => e.getShortMonthName(),
|
|
602
604
|
B: (e) => e.getLongMonthName(),
|
|
603
605
|
c: (e) => e.toLocaleString(),
|
|
604
|
-
C: (e) =>
|
|
606
|
+
C: (e) => $e(e),
|
|
605
607
|
d: (e) => e.getDate(),
|
|
606
608
|
e: (e) => e.getDate(),
|
|
607
609
|
H: (e) => e.getHours(),
|
|
608
610
|
I: (e) => String(e.getHours() % 12 || 12),
|
|
609
|
-
j: (e) =>
|
|
611
|
+
j: (e) => Ye(e),
|
|
610
612
|
k: (e) => e.getHours(),
|
|
611
613
|
l: (e) => String(e.getHours() % 12 || 12),
|
|
612
614
|
L: (e) => e.getMilliseconds(),
|
|
@@ -619,31 +621,31 @@ var nt = {
|
|
|
619
621
|
},
|
|
620
622
|
p: (e) => e.getHours() < 12 ? "AM" : "PM",
|
|
621
623
|
P: (e) => e.getHours() < 12 ? "am" : "pm",
|
|
622
|
-
q: (e) =>
|
|
624
|
+
q: (e) => Qe(e),
|
|
623
625
|
s: (e) => Math.round(e.getTime() / 1e3),
|
|
624
626
|
S: (e) => e.getSeconds(),
|
|
625
627
|
u: (e) => e.getDay() || 7,
|
|
626
|
-
U: (e) =>
|
|
628
|
+
U: (e) => Xe(e, 0),
|
|
627
629
|
w: (e) => e.getDay(),
|
|
628
|
-
W: (e) =>
|
|
630
|
+
W: (e) => Xe(e, 1),
|
|
629
631
|
x: (e) => e.toLocaleDateString(),
|
|
630
632
|
X: (e) => e.toLocaleTimeString(),
|
|
631
633
|
y: (e) => e.getFullYear().toString().slice(2, 4),
|
|
632
634
|
Y: (e) => e.getFullYear(),
|
|
633
|
-
z:
|
|
634
|
-
Z: (e, t) => e.getTimeZoneName() ||
|
|
635
|
+
z: nt,
|
|
636
|
+
Z: (e, t) => e.getTimeZoneName() || nt(e, t),
|
|
635
637
|
t: () => " ",
|
|
636
638
|
n: () => "\n",
|
|
637
639
|
"%": () => "%"
|
|
638
640
|
};
|
|
639
|
-
|
|
640
|
-
function
|
|
641
|
+
rt.h = rt.b;
|
|
642
|
+
function it(e, t, n) {
|
|
641
643
|
let r = "", i = t, a;
|
|
642
|
-
for (; a =
|
|
644
|
+
for (; a = qe.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += at(e, a, n);
|
|
643
645
|
return r + i;
|
|
644
646
|
}
|
|
645
|
-
function
|
|
646
|
-
let [r, i = "", a, o, s] = t, c =
|
|
647
|
+
function at(e, t, n) {
|
|
648
|
+
let [r, i = "", a, o, s] = t, c = rt[s];
|
|
647
649
|
if (!c) return r;
|
|
648
650
|
let l = {};
|
|
649
651
|
for (let e of i) l[e] = !0;
|
|
@@ -652,13 +654,13 @@ function it(e, t, n) {
|
|
|
652
654
|
width: a,
|
|
653
655
|
modifier: o,
|
|
654
656
|
memoryLimit: n
|
|
655
|
-
})), d =
|
|
657
|
+
})), d = tt.has(s) ? " " : "0", f = Number(a) || et[s] || 0;
|
|
656
658
|
return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), g(u, f, d);
|
|
657
659
|
}
|
|
658
|
-
function
|
|
660
|
+
function ot() {
|
|
659
661
|
return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
|
|
660
662
|
}
|
|
661
|
-
var
|
|
663
|
+
var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
662
664
|
"January",
|
|
663
665
|
"February",
|
|
664
666
|
"March",
|
|
@@ -671,7 +673,7 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
671
673
|
"October",
|
|
672
674
|
"November",
|
|
673
675
|
"December"
|
|
674
|
-
],
|
|
676
|
+
], ut = lt.map((e) => e.slice(0, 3)), dt = [
|
|
675
677
|
"Sunday",
|
|
676
678
|
"Monday",
|
|
677
679
|
"Tuesday",
|
|
@@ -679,10 +681,10 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
679
681
|
"Thursday",
|
|
680
682
|
"Friday",
|
|
681
683
|
"Saturday"
|
|
682
|
-
],
|
|
684
|
+
], ft = dt.map((e) => e.slice(0, 3)), k = class e {
|
|
683
685
|
constructor(t, n, r) {
|
|
684
|
-
this.locale = n, this.DateTimeFormat =
|
|
685
|
-
let i = (this.date.getTimezoneOffset() - this.timezoneOffset) *
|
|
686
|
+
this.locale = n, this.DateTimeFormat = ot(), this.date = new Date(t), this.timezoneFixed = r !== void 0, r === void 0 && (r = this.date.getTimezoneOffset()), this.timezoneOffset = a(r) ? e.getTimezoneOffset(r, this.date) : r, this.timezoneName = a(r) ? r : "";
|
|
687
|
+
let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * st, o = this.date.getTime() + i;
|
|
686
688
|
this.displayDate = new Date(o);
|
|
687
689
|
}
|
|
688
690
|
getTime() {
|
|
@@ -729,16 +731,16 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
729
731
|
if (this.DateTimeFormat) return this.DateTimeFormat().resolvedOptions().timeZone;
|
|
730
732
|
}
|
|
731
733
|
getLongMonthName() {
|
|
732
|
-
return this.format({ month: "long" }) ??
|
|
734
|
+
return this.format({ month: "long" }) ?? lt[this.getMonth()];
|
|
733
735
|
}
|
|
734
736
|
getShortMonthName() {
|
|
735
|
-
return this.format({ month: "short" }) ??
|
|
737
|
+
return this.format({ month: "short" }) ?? ut[this.getMonth()];
|
|
736
738
|
}
|
|
737
739
|
getLongWeekdayName() {
|
|
738
|
-
return this.format({ weekday: "long" }) ??
|
|
740
|
+
return this.format({ weekday: "long" }) ?? dt[this.displayDate.getDay()];
|
|
739
741
|
}
|
|
740
742
|
getShortWeekdayName() {
|
|
741
|
-
return this.format({ weekday: "short" }) ??
|
|
743
|
+
return this.format({ weekday: "short" }) ?? ft[this.displayDate.getDay()];
|
|
742
744
|
}
|
|
743
745
|
valid() {
|
|
744
746
|
return !isNaN(this.getTime());
|
|
@@ -747,7 +749,7 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
747
749
|
return this.DateTimeFormat && this.DateTimeFormat(this.locale, e).format(this.displayDate);
|
|
748
750
|
}
|
|
749
751
|
static createDateFixedToTimezone(t, n) {
|
|
750
|
-
let r = t.match(
|
|
752
|
+
let r = t.match(ct);
|
|
751
753
|
if (r && r[1] === "Z") return new e(+new Date(t), n, 0);
|
|
752
754
|
if (r && r[2] && r[3] && r[4]) {
|
|
753
755
|
let [, , i, a, o] = r, s = (i === "+" ? -1 : 1) * (parseInt(a, 10) * 60 + parseInt(o, 10));
|
|
@@ -759,7 +761,7 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
759
761
|
let n = t.toLocaleString("en-US", { timeZone: e }), r = t.toLocaleString("en-US", { timeZone: "UTC" }), i = new Date(n);
|
|
760
762
|
return (new Date(r) - +i) / (60 * 1e3);
|
|
761
763
|
}
|
|
762
|
-
},
|
|
764
|
+
}, pt = class {
|
|
763
765
|
constructor(e, t) {
|
|
764
766
|
this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
|
|
765
767
|
}
|
|
@@ -769,7 +771,7 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
769
771
|
check(e) {
|
|
770
772
|
+e > 0 && C(+e <= this.limit, this.message);
|
|
771
773
|
}
|
|
772
|
-
},
|
|
774
|
+
}, mt = class extends e {
|
|
773
775
|
constructor(e, [t, n], r, i, a, o, s, c) {
|
|
774
776
|
super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
|
|
775
777
|
let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
|
|
@@ -780,36 +782,36 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
780
782
|
get content() {
|
|
781
783
|
return this.input.slice(this.contentRange[0], this.contentRange[1]);
|
|
782
784
|
}
|
|
783
|
-
},
|
|
785
|
+
}, ht = class extends mt {
|
|
784
786
|
constructor(e, t, n, r, i) {
|
|
785
787
|
let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
|
|
786
788
|
super(q.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new I(e, r.operators, i, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
787
789
|
}
|
|
788
|
-
},
|
|
790
|
+
}, gt = class extends mt {
|
|
789
791
|
constructor(e, t, n, r, i) {
|
|
790
792
|
let { trimOutputLeft: a, trimOutputRight: o, outputDelimiterLeft: s, outputDelimiterRight: c } = r, l = [t + s.length, n - c.length];
|
|
791
793
|
super(q.Output, l, e, t, n, a, o, i);
|
|
792
794
|
}
|
|
793
|
-
},
|
|
795
|
+
}, _t = class extends e {
|
|
794
796
|
constructor(e, t, n, r) {
|
|
795
797
|
super(q.HTML, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.trimLeft = 0, this.trimRight = 0;
|
|
796
798
|
}
|
|
797
799
|
getContent() {
|
|
798
800
|
return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
|
|
799
801
|
}
|
|
800
|
-
},
|
|
802
|
+
}, vt = class extends e {
|
|
801
803
|
constructor(e, t, n, r) {
|
|
802
804
|
super(q.Number, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Number(this.getText());
|
|
803
805
|
}
|
|
804
|
-
},
|
|
806
|
+
}, yt = class extends e {
|
|
805
807
|
constructor(e, t, n, r) {
|
|
806
808
|
super(q.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
|
|
807
809
|
}
|
|
808
|
-
},
|
|
810
|
+
}, bt = class extends e {
|
|
809
811
|
constructor(e, t, n, r) {
|
|
810
812
|
super(q.Literal, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.literal = this.getText(), this.content = He[this.literal];
|
|
811
813
|
}
|
|
812
|
-
},
|
|
814
|
+
}, xt = {
|
|
813
815
|
"==": 2,
|
|
814
816
|
"!=": 2,
|
|
815
817
|
">": 2,
|
|
@@ -820,7 +822,7 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
820
822
|
not: 1,
|
|
821
823
|
and: 0,
|
|
822
824
|
or: 0
|
|
823
|
-
},
|
|
825
|
+
}, St = {
|
|
824
826
|
"==": 0,
|
|
825
827
|
"!=": 0,
|
|
826
828
|
">": 0,
|
|
@@ -831,27 +833,26 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
831
833
|
not: 1,
|
|
832
834
|
and: 0,
|
|
833
835
|
or: 0
|
|
834
|
-
},
|
|
836
|
+
}, Ct = class extends e {
|
|
835
837
|
constructor(e, t, n, r) {
|
|
836
838
|
super(q.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
|
|
837
839
|
}
|
|
838
840
|
getPrecedence() {
|
|
839
|
-
|
|
840
|
-
return e in bt ? bt[e] : 1;
|
|
841
|
+
return this.operator in xt ? xt[this.operator] : 1;
|
|
841
842
|
}
|
|
842
|
-
},
|
|
843
|
+
}, wt = class extends e {
|
|
843
844
|
constructor(e, t, n, r, i, a) {
|
|
844
845
|
super(q.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
|
|
845
846
|
}
|
|
846
|
-
},
|
|
847
|
+
}, Tt = class extends e {
|
|
847
848
|
constructor(e, t, n, r, i, a) {
|
|
848
849
|
super(q.Filter, n, r, i, a), this.name = e, this.args = t;
|
|
849
850
|
}
|
|
850
|
-
},
|
|
851
|
+
}, Et = class extends e {
|
|
851
852
|
constructor(e, t, n, r, i, a) {
|
|
852
853
|
super(q.Hash, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.name = r, this.value = i, this.file = a;
|
|
853
854
|
}
|
|
854
|
-
},
|
|
855
|
+
}, Dt = /[\da-fA-F]/, Ot = /[0-7]/, kt = {
|
|
855
856
|
b: "\b",
|
|
856
857
|
f: "\f",
|
|
857
858
|
n: "\n",
|
|
@@ -859,64 +860,64 @@ var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
|
|
|
859
860
|
t: " ",
|
|
860
861
|
v: "\v"
|
|
861
862
|
};
|
|
862
|
-
function
|
|
863
|
+
function At(e) {
|
|
863
864
|
let t = e.charCodeAt(0);
|
|
864
865
|
return t >= 97 ? t - 87 : t >= 65 ? t - 55 : t - 48;
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
+
function jt(e) {
|
|
867
868
|
let t = "";
|
|
868
869
|
for (let n = 1; n < e.length - 1; n++) {
|
|
869
870
|
if (e[n] !== "\\") {
|
|
870
871
|
t += e[n];
|
|
871
872
|
continue;
|
|
872
873
|
}
|
|
873
|
-
if (
|
|
874
|
+
if (kt[e[n + 1]] !== void 0) t += kt[e[++n]];
|
|
874
875
|
else if (e[n + 1] === "u") {
|
|
875
876
|
let r = 0, i = n + 2;
|
|
876
|
-
for (; i <= n + 5 &&
|
|
877
|
+
for (; i <= n + 5 && Dt.test(e[i]);) r = r * 16 + At(e[i++]);
|
|
877
878
|
n = i - 1, t += String.fromCharCode(r);
|
|
878
|
-
} else if (!
|
|
879
|
+
} else if (!Ot.test(e[n + 1])) t += e[++n];
|
|
879
880
|
else {
|
|
880
881
|
let r = n + 1, i = 0;
|
|
881
|
-
for (; r <= n + 3 &&
|
|
882
|
+
for (; r <= n + 3 && Ot.test(e[r]);) i = i * 8 + At(e[r++]);
|
|
882
883
|
n = r - 1, t += String.fromCharCode(i);
|
|
883
884
|
}
|
|
884
885
|
}
|
|
885
886
|
return t;
|
|
886
887
|
}
|
|
887
|
-
var
|
|
888
|
+
var Mt = class extends e {
|
|
888
889
|
constructor(e, t, n, r) {
|
|
889
|
-
super(q.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content =
|
|
890
|
+
super(q.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = jt(this.getText());
|
|
890
891
|
}
|
|
891
|
-
},
|
|
892
|
+
}, Nt = class extends e {
|
|
892
893
|
constructor(e, t, n, r, i, a) {
|
|
893
894
|
super(q.Range, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.lhs = r, this.rhs = i, this.file = a;
|
|
894
895
|
}
|
|
895
|
-
},
|
|
896
|
+
}, Pt = class extends mt {
|
|
896
897
|
constructor(e, t, n, r, i) {
|
|
897
898
|
super(q.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new I(e, r.operators, i, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
|
|
898
899
|
}
|
|
899
900
|
get args() {
|
|
900
901
|
return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
901
902
|
}
|
|
902
|
-
},
|
|
903
|
+
}, Ft = class extends e {
|
|
903
904
|
constructor(e, t, n, r, i, a) {
|
|
904
905
|
super(q.FilteredValue, n, r, i, a), this.initial = e, this.filters = t, this.input = n, this.begin = r, this.end = i, this.file = a;
|
|
905
906
|
}
|
|
906
|
-
},
|
|
907
|
-
function
|
|
908
|
-
return typeof global == "object" && global.performance || typeof window == "object" && window.performance ||
|
|
907
|
+
}, It = { now: () => Date.now() };
|
|
908
|
+
function Lt() {
|
|
909
|
+
return typeof global == "object" && global.performance || typeof window == "object" && window.performance || It;
|
|
909
910
|
}
|
|
910
|
-
var
|
|
911
|
+
var Rt = class {
|
|
911
912
|
renderTemplatesToNodeStream(e, t) {
|
|
912
913
|
let n = new Re();
|
|
913
914
|
return Promise.resolve().then(() => D(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
|
|
914
915
|
}
|
|
915
916
|
*renderTemplates(e, t, n) {
|
|
916
|
-
n ||= t.opts.keepOutputType ? new ze() : new Le(), t.renderLimit.check(
|
|
917
|
+
n ||= t.opts.keepOutputType ? new ze() : new Le(), t.renderLimit.check(Lt().now());
|
|
917
918
|
let r = [];
|
|
918
919
|
for (let i of e) {
|
|
919
|
-
t.renderLimit.check(
|
|
920
|
+
t.renderLimit.check(Lt().now());
|
|
920
921
|
try {
|
|
921
922
|
let e = yield i.render(t, n);
|
|
922
923
|
if (e && n.write(e), t.breakCalled || t.continueCalled) break;
|
|
@@ -929,16 +930,16 @@ var Lt = class {
|
|
|
929
930
|
if (r.length) throw new xe(r);
|
|
930
931
|
return n.buffer;
|
|
931
932
|
}
|
|
932
|
-
},
|
|
933
|
+
}, zt = class {
|
|
933
934
|
constructor(e) {
|
|
934
|
-
this.postfix = [...
|
|
935
|
+
this.postfix = [...Ut(e)];
|
|
935
936
|
}
|
|
936
937
|
*evaluate(e, t) {
|
|
937
938
|
C(e, "unable to evaluate: context not defined");
|
|
938
939
|
let n = [];
|
|
939
|
-
for (let r of this.postfix) if (
|
|
940
|
+
for (let r of this.postfix) if (Vn(r)) {
|
|
940
941
|
let t = n.pop(), i;
|
|
941
|
-
if (
|
|
942
|
+
if (St[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
|
|
942
943
|
else {
|
|
943
944
|
let a = n.pop();
|
|
944
945
|
i = yield e.opts.operators[r.operator](a, t, e);
|
|
@@ -954,11 +955,11 @@ var Lt = class {
|
|
|
954
955
|
function* A(e, t, n = !1) {
|
|
955
956
|
if (e) {
|
|
956
957
|
if ("content" in e) return e.content;
|
|
957
|
-
if (
|
|
958
|
-
if (
|
|
958
|
+
if (Kn(e)) return yield Bt(e, t, n);
|
|
959
|
+
if (Jn(e)) return yield Ht(e, t);
|
|
959
960
|
}
|
|
960
961
|
}
|
|
961
|
-
function*
|
|
962
|
+
function* Bt(e, t, n) {
|
|
962
963
|
let r = [];
|
|
963
964
|
for (let n of e.props) r.push(yield A(n, t, !1));
|
|
964
965
|
try {
|
|
@@ -971,16 +972,16 @@ function* zt(e, t, n) {
|
|
|
971
972
|
throw new Se(t, e);
|
|
972
973
|
}
|
|
973
974
|
}
|
|
974
|
-
function
|
|
975
|
+
function Vt(e) {
|
|
975
976
|
return e.content;
|
|
976
977
|
}
|
|
977
|
-
function*
|
|
978
|
+
function* Ht(e, t) {
|
|
978
979
|
let n = yield A(e.lhs, t), r = yield A(e.rhs, t);
|
|
979
980
|
return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
|
|
980
981
|
}
|
|
981
|
-
function*
|
|
982
|
+
function* Ut(e) {
|
|
982
983
|
let t = [];
|
|
983
|
-
for (let n of e) if (
|
|
984
|
+
for (let n of e) if (Vn(n)) {
|
|
984
985
|
for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
|
|
985
986
|
t.push(n);
|
|
986
987
|
} else yield n;
|
|
@@ -992,7 +993,7 @@ function j(e, t) {
|
|
|
992
993
|
function M(e, t) {
|
|
993
994
|
return e = f(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
|
|
994
995
|
}
|
|
995
|
-
var
|
|
996
|
+
var Wt = {
|
|
996
997
|
"==": N,
|
|
997
998
|
"!=": (e, t) => !N(e, t),
|
|
998
999
|
">": (e, t) => T(e) ? e.gt(t) : T(t) ? t.lt(e) : f(e) > f(t),
|
|
@@ -1005,26 +1006,26 @@ var Ut = {
|
|
|
1005
1006
|
or: (e, t, n) => j(f(e), n) || j(f(t), n)
|
|
1006
1007
|
};
|
|
1007
1008
|
function N(e, t) {
|
|
1008
|
-
return T(e) ? e.equals(t) : T(t) ? t.equals(e) : (e = f(e), t = f(t), m(e) ? m(t) &&
|
|
1009
|
+
return T(e) ? e.equals(t) : T(t) ? t.equals(e) : (e = f(e), t = f(t), m(e) ? m(t) && Gt(e, t) : e === t);
|
|
1009
1010
|
}
|
|
1010
|
-
function
|
|
1011
|
+
function Gt(e, t) {
|
|
1011
1012
|
return e.length === t.length ? !e.some((e, n) => !N(e, t[n])) : !1;
|
|
1012
1013
|
}
|
|
1013
|
-
function
|
|
1014
|
+
function Kt(e, t) {
|
|
1014
1015
|
return e.some((e) => N(e, t));
|
|
1015
1016
|
}
|
|
1016
|
-
var
|
|
1017
|
+
var qt = class {
|
|
1017
1018
|
constructor(e, t, n, r) {
|
|
1018
1019
|
this.key = e, this.value = t, this.next = n, this.prev = r;
|
|
1019
1020
|
}
|
|
1020
|
-
},
|
|
1021
|
+
}, Jt = class {
|
|
1021
1022
|
constructor(e, t = 0) {
|
|
1022
|
-
this.limit = e, this.size = t, this.cache = {}, this.head = new
|
|
1023
|
+
this.limit = e, this.size = t, this.cache = {}, this.head = new qt("HEAD", null, null, null), this.tail = new qt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
|
|
1023
1024
|
}
|
|
1024
1025
|
write(e, t) {
|
|
1025
1026
|
if (this.cache[e]) this.cache[e].value = t;
|
|
1026
1027
|
else {
|
|
1027
|
-
let n = new
|
|
1028
|
+
let n = new qt(e, t, this.head.next, this.head);
|
|
1028
1029
|
this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
|
|
1029
1030
|
}
|
|
1030
1031
|
}
|
|
@@ -1044,7 +1045,7 @@ var Kt = class {
|
|
|
1044
1045
|
this.size > this.limit && this.remove(this.tail.prev.key);
|
|
1045
1046
|
}
|
|
1046
1047
|
};
|
|
1047
|
-
function
|
|
1048
|
+
function Yt(e, t) {
|
|
1048
1049
|
let n = document.createElement("base");
|
|
1049
1050
|
n.href = e;
|
|
1050
1051
|
let r = document.getElementsByTagName("head")[0];
|
|
@@ -1054,13 +1055,13 @@ function Jt(e, t) {
|
|
|
1054
1055
|
let a = i.href;
|
|
1055
1056
|
return r.removeChild(n), a;
|
|
1056
1057
|
}
|
|
1057
|
-
function
|
|
1058
|
-
return e.length && se(e) !== "/" && (e += "/"),
|
|
1058
|
+
function Xt(e, t, n) {
|
|
1059
|
+
return e.length && se(e) !== "/" && (e += "/"), Yt(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
|
|
1059
1060
|
let i = r.split("/").pop();
|
|
1060
1061
|
return /\.\w+$/.test(i) ? e : t + r + n;
|
|
1061
1062
|
});
|
|
1062
1063
|
}
|
|
1063
|
-
function
|
|
1064
|
+
function Zt(e) {
|
|
1064
1065
|
return E(this, void 0, void 0, function* () {
|
|
1065
1066
|
return new Promise((t, n) => {
|
|
1066
1067
|
let r = new XMLHttpRequest();
|
|
@@ -1072,39 +1073,39 @@ function Xt(e) {
|
|
|
1072
1073
|
});
|
|
1073
1074
|
});
|
|
1074
1075
|
}
|
|
1075
|
-
function
|
|
1076
|
+
function Qt(e) {
|
|
1076
1077
|
let t = new XMLHttpRequest();
|
|
1077
1078
|
if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
|
|
1078
1079
|
return t.responseText;
|
|
1079
1080
|
}
|
|
1080
|
-
function
|
|
1081
|
+
function $t(e) {
|
|
1081
1082
|
return E(this, void 0, void 0, function* () {
|
|
1082
1083
|
return !0;
|
|
1083
1084
|
});
|
|
1084
1085
|
}
|
|
1085
|
-
function
|
|
1086
|
+
function en(e) {
|
|
1086
1087
|
return !0;
|
|
1087
1088
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1089
|
+
function tn(e) {
|
|
1090
|
+
return Yt(e, ".");
|
|
1090
1091
|
}
|
|
1091
|
-
var
|
|
1092
|
+
var nn = /*#__PURE__*/ Object.freeze({
|
|
1092
1093
|
__proto__: null,
|
|
1093
|
-
resolve:
|
|
1094
|
-
readFile:
|
|
1095
|
-
readFileSync:
|
|
1096
|
-
exists:
|
|
1097
|
-
existsSync:
|
|
1098
|
-
dirname:
|
|
1094
|
+
resolve: Xt,
|
|
1095
|
+
readFile: Zt,
|
|
1096
|
+
readFileSync: Qt,
|
|
1097
|
+
exists: $t,
|
|
1098
|
+
existsSync: en,
|
|
1099
|
+
dirname: tn,
|
|
1099
1100
|
sep: "/"
|
|
1100
1101
|
});
|
|
1101
|
-
function
|
|
1102
|
+
function rn(e, t, ...n) {
|
|
1102
1103
|
return e = f(e), m(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : M(e, this.context) ? t : e;
|
|
1103
1104
|
}
|
|
1104
|
-
function
|
|
1105
|
+
function an(e, t = 0) {
|
|
1105
1106
|
return JSON.stringify(e, null, t);
|
|
1106
1107
|
}
|
|
1107
|
-
function
|
|
1108
|
+
function on(e, t = 0) {
|
|
1108
1109
|
let n = [];
|
|
1109
1110
|
return JSON.stringify(e, function(e, t) {
|
|
1110
1111
|
if (typeof t != "object" || !t) return t;
|
|
@@ -1112,52 +1113,52 @@ function an(e, t = 0) {
|
|
|
1112
1113
|
return n.includes(t) ? "[Circular]" : (n.push(t), t);
|
|
1113
1114
|
}, t);
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
+
function sn(e) {
|
|
1116
1117
|
return Number(e);
|
|
1117
1118
|
}
|
|
1118
|
-
var
|
|
1119
|
-
default:
|
|
1119
|
+
var cn = {
|
|
1120
|
+
default: rn,
|
|
1120
1121
|
raw: {
|
|
1121
1122
|
raw: !0,
|
|
1122
1123
|
handler: de
|
|
1123
1124
|
},
|
|
1124
|
-
jsonify:
|
|
1125
|
-
to_integer:
|
|
1126
|
-
json:
|
|
1127
|
-
inspect:
|
|
1128
|
-
},
|
|
1125
|
+
jsonify: an,
|
|
1126
|
+
to_integer: sn,
|
|
1127
|
+
json: an,
|
|
1128
|
+
inspect: on
|
|
1129
|
+
}, ln = {
|
|
1129
1130
|
"&": "&",
|
|
1130
1131
|
"<": "<",
|
|
1131
1132
|
">": ">",
|
|
1132
1133
|
"\"": """,
|
|
1133
1134
|
"'": "'"
|
|
1134
|
-
},
|
|
1135
|
+
}, un = {
|
|
1135
1136
|
"&": "&",
|
|
1136
1137
|
"<": "<",
|
|
1137
1138
|
">": ">",
|
|
1138
1139
|
""": "\"",
|
|
1139
1140
|
"'": "'"
|
|
1140
1141
|
};
|
|
1141
|
-
function un(e) {
|
|
1142
|
-
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => cn[e]);
|
|
1143
|
-
}
|
|
1144
1142
|
function dn(e) {
|
|
1145
|
-
return
|
|
1143
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => ln[e]);
|
|
1146
1144
|
}
|
|
1147
1145
|
function fn(e) {
|
|
1148
|
-
return
|
|
1146
|
+
return dn.call(this, e);
|
|
1149
1147
|
}
|
|
1150
1148
|
function pn(e) {
|
|
1151
|
-
return
|
|
1149
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => un[e]);
|
|
1152
1150
|
}
|
|
1153
1151
|
function mn(e) {
|
|
1152
|
+
return dn.call(this, pn.call(this, e));
|
|
1153
|
+
}
|
|
1154
|
+
function hn(e) {
|
|
1154
1155
|
let t = l(e);
|
|
1155
1156
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "<br />\n");
|
|
1156
1157
|
}
|
|
1157
|
-
function
|
|
1158
|
+
function gn(e) {
|
|
1158
1159
|
let t = l(e);
|
|
1159
1160
|
this.context.memoryLimit.use(t.length);
|
|
1160
|
-
let n = new Map([
|
|
1161
|
+
let n = /* @__PURE__ */ new Map([
|
|
1161
1162
|
["<script", "<\/script>"],
|
|
1162
1163
|
["<style", "</style>"],
|
|
1163
1164
|
["<!--", "-->"],
|
|
@@ -1176,18 +1177,18 @@ function hn(e) {
|
|
|
1176
1177
|
}
|
|
1177
1178
|
n.delete(r);
|
|
1178
1179
|
}
|
|
1179
|
-
if (i
|
|
1180
|
+
if (i <= e) return r + t.slice(e);
|
|
1180
1181
|
}
|
|
1181
1182
|
return r;
|
|
1182
1183
|
}
|
|
1183
|
-
var
|
|
1184
|
+
var _n = /*#__PURE__*/ Object.freeze({
|
|
1184
1185
|
__proto__: null,
|
|
1185
|
-
escape:
|
|
1186
|
-
xml_escape:
|
|
1187
|
-
escape_once:
|
|
1188
|
-
newline_to_br:
|
|
1189
|
-
strip_html:
|
|
1190
|
-
}),
|
|
1186
|
+
escape: dn,
|
|
1187
|
+
xml_escape: fn,
|
|
1188
|
+
escape_once: mn,
|
|
1189
|
+
newline_to_br: hn,
|
|
1190
|
+
strip_html: gn
|
|
1191
|
+
}), vn = class {
|
|
1191
1192
|
constructor(e) {
|
|
1192
1193
|
this.mapping = e, this.sep = "/";
|
|
1193
1194
|
}
|
|
@@ -1229,7 +1230,7 @@ var gn = /*#__PURE__*/ Object.freeze({
|
|
|
1229
1230
|
keyValueSeparator: ":",
|
|
1230
1231
|
cache: void 0,
|
|
1231
1232
|
extname: "",
|
|
1232
|
-
fs:
|
|
1233
|
+
fs: nn,
|
|
1233
1234
|
dynamicPartials: !0,
|
|
1234
1235
|
jsTruthy: !1,
|
|
1235
1236
|
dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
|
|
@@ -1250,49 +1251,49 @@ var gn = /*#__PURE__*/ Object.freeze({
|
|
|
1250
1251
|
lenientIf: !1,
|
|
1251
1252
|
globals: {},
|
|
1252
1253
|
keepOutputType: !1,
|
|
1253
|
-
operators:
|
|
1254
|
+
operators: Wt,
|
|
1254
1255
|
memoryLimit: Infinity,
|
|
1255
1256
|
parseLimit: Infinity,
|
|
1256
1257
|
renderLimit: Infinity
|
|
1257
1258
|
};
|
|
1258
|
-
function
|
|
1259
|
+
function yn(e) {
|
|
1259
1260
|
if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
|
|
1260
1261
|
let t;
|
|
1261
|
-
t = typeof e.cache == "number" ? e.cache > 0 ? new
|
|
1262
|
+
t = typeof e.cache == "number" ? e.cache > 0 ? new Jt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new Jt(1024) : void 0, e.cache = t;
|
|
1262
1263
|
}
|
|
1263
|
-
return e = Object.assign(Object.assign(Object.assign({}, P), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), (!e.fs.dirname || !e.fs.sep) && e.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = F(e.root), e.partials = F(e.partials), e.layouts = F(e.layouts), e.outputEscape = e.outputEscape &&
|
|
1264
|
+
return e = Object.assign(Object.assign(Object.assign({}, P), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), (!e.fs.dirname || !e.fs.sep) && e.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = F(e.root), e.partials = F(e.partials), e.layouts = F(e.layouts), e.outputEscape = e.outputEscape && bn(e.outputEscape), e.locale ||= ot()?.().resolvedOptions().locale ?? "en-US", e.templates && (e.fs = new vn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
|
|
1264
1265
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e === "escape" ?
|
|
1266
|
+
function bn(e) {
|
|
1267
|
+
return e === "escape" ? dn : e === "json" ? cn.json : (C(o(e), "`outputEscape` need to be of type string or function"), e);
|
|
1267
1268
|
}
|
|
1268
1269
|
function F(e) {
|
|
1269
1270
|
let t = [];
|
|
1270
1271
|
return m(e) && (t = e), a(e) && (t = [e]), t;
|
|
1271
1272
|
}
|
|
1272
|
-
function
|
|
1273
|
+
function xn(e, t) {
|
|
1273
1274
|
let n = !1;
|
|
1274
1275
|
for (let r = 0; r < e.length; r++) {
|
|
1275
1276
|
let i = e[r];
|
|
1276
|
-
|
|
1277
|
+
Bn(i) && (!n && i.trimLeft && Sn(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && Cn(e[r + 1], t.greedy));
|
|
1277
1278
|
}
|
|
1278
1279
|
}
|
|
1279
|
-
function
|
|
1280
|
-
if (!e || !
|
|
1280
|
+
function Sn(e, t) {
|
|
1281
|
+
if (!e || !Hn(e)) return;
|
|
1281
1282
|
let n = t ? x : ke;
|
|
1282
1283
|
for (; b[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
|
|
1283
1284
|
}
|
|
1284
|
-
function
|
|
1285
|
-
if (!e || !
|
|
1285
|
+
function Cn(e, t) {
|
|
1286
|
+
if (!e || !Hn(e)) return;
|
|
1286
1287
|
let n = t ? x : ke;
|
|
1287
1288
|
for (; b[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
|
|
1288
1289
|
e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
|
|
1289
1290
|
}
|
|
1290
1291
|
var I = class {
|
|
1291
1292
|
constructor(e, t = P.operators, n, r) {
|
|
1292
|
-
this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie =
|
|
1293
|
+
this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = We(t), this.literalTrie = We(He);
|
|
1293
1294
|
}
|
|
1294
1295
|
readExpression() {
|
|
1295
|
-
return new
|
|
1296
|
+
return new zt(this.readExpressionTokens());
|
|
1296
1297
|
}
|
|
1297
1298
|
*readExpressionTokens() {
|
|
1298
1299
|
for (; this.p < this.N;) {
|
|
@@ -1312,7 +1313,7 @@ var I = class {
|
|
|
1312
1313
|
readOperator() {
|
|
1313
1314
|
this.skipBlank();
|
|
1314
1315
|
let e = this.matchTrie(this.opTrie);
|
|
1315
|
-
if (e !== -1) return new
|
|
1316
|
+
if (e !== -1) return new Ct(this.input, this.p, this.p = e, this.file);
|
|
1316
1317
|
}
|
|
1317
1318
|
matchTrie(e) {
|
|
1318
1319
|
let t = e, n = this.p, r;
|
|
@@ -1321,7 +1322,7 @@ var I = class {
|
|
|
1321
1322
|
}
|
|
1322
1323
|
readFilteredValue() {
|
|
1323
1324
|
let e = this.p, t = this.readExpression();
|
|
1324
|
-
return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new
|
|
1325
|
+
return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new Ft(t, this.readFilters(), this.input, e, this.p, this.file);
|
|
1325
1326
|
}
|
|
1326
1327
|
readFilters() {
|
|
1327
1328
|
let e = [];
|
|
@@ -1343,7 +1344,7 @@ var I = class {
|
|
|
1343
1344
|
e && t.push(e), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|", () => `unexpected character ${this.snapshot()}`);
|
|
1344
1345
|
} while (this.peek() === ",");
|
|
1345
1346
|
else if (!(this.peek() === "|" || this.end())) throw this.error("expected \":\" after filter name");
|
|
1346
|
-
return new
|
|
1347
|
+
return new Tt(e.getText(), t, this.input, e.begin, this.p, this.file);
|
|
1347
1348
|
}
|
|
1348
1349
|
readFilterArg() {
|
|
1349
1350
|
let e = this.readValue();
|
|
@@ -1359,7 +1360,7 @@ var I = class {
|
|
|
1359
1360
|
let n = this.readTopLevelToken(e);
|
|
1360
1361
|
t.push(n);
|
|
1361
1362
|
}
|
|
1362
|
-
return
|
|
1363
|
+
return xn(t, e), t;
|
|
1363
1364
|
}
|
|
1364
1365
|
readTopLevelToken(e) {
|
|
1365
1366
|
let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
|
|
@@ -1368,12 +1369,12 @@ var I = class {
|
|
|
1368
1369
|
readHTMLToken(e) {
|
|
1369
1370
|
let t = this.p;
|
|
1370
1371
|
for (; this.p < this.N && !e.some((e) => this.match(e));) ++this.p;
|
|
1371
|
-
return new
|
|
1372
|
+
return new _t(this.input, t, this.p, this.file);
|
|
1372
1373
|
}
|
|
1373
1374
|
readTagToken(e) {
|
|
1374
1375
|
let { file: t, input: n } = this, r = this.p;
|
|
1375
1376
|
if (this.readToDelimiter(e.tagDelimiterRight) === -1) throw this.error(`tag ${this.snapshot(r)} not closed`, r);
|
|
1376
|
-
let i = new
|
|
1377
|
+
let i = new ht(n, r, this.p, e, t);
|
|
1377
1378
|
return i.name === "raw" && (this.rawBeginAt = r), i;
|
|
1378
1379
|
}
|
|
1379
1380
|
readToDelimiter(e, t = !1) {
|
|
@@ -1389,7 +1390,7 @@ var I = class {
|
|
|
1389
1390
|
readOutputToken(e = P) {
|
|
1390
1391
|
let { file: t, input: n } = this, { outputDelimiterRight: r } = e, i = this.p;
|
|
1391
1392
|
if (this.readToDelimiter(r, !0) === -1) throw this.error(`output ${this.snapshot(i)} not closed`, i);
|
|
1392
|
-
return new
|
|
1393
|
+
return new gt(n, i, this.p, e, t);
|
|
1393
1394
|
}
|
|
1394
1395
|
readEndrawOrRawContent(e) {
|
|
1395
1396
|
let { tagDelimiterLeft: t, tagDelimiterRight: n } = e, r = this.p, i = this.readTo(t) - t.length;
|
|
@@ -1401,7 +1402,7 @@ var I = class {
|
|
|
1401
1402
|
for (; this.p <= this.N;) {
|
|
1402
1403
|
if (this.rmatch(n)) {
|
|
1403
1404
|
let t = this.p;
|
|
1404
|
-
return r === i ? (this.rawBeginAt = -1, new
|
|
1405
|
+
return r === i ? (this.rawBeginAt = -1, new ht(this.input, r, t, e, this.file)) : (this.p = i, new _t(this.input, r, i, this.file));
|
|
1405
1406
|
}
|
|
1406
1407
|
if (this.rmatch(t)) break;
|
|
1407
1408
|
this.p++;
|
|
@@ -1422,10 +1423,10 @@ var I = class {
|
|
|
1422
1423
|
let t = this.p;
|
|
1423
1424
|
this.readToDelimiter("\n");
|
|
1424
1425
|
let n = this.p;
|
|
1425
|
-
return new
|
|
1426
|
+
return new Pt(this.input, t, n, e, this.file);
|
|
1426
1427
|
}
|
|
1427
1428
|
error(e, t = this.p) {
|
|
1428
|
-
return new ve(e, new
|
|
1429
|
+
return new ve(e, new yt(this.input, t, this.N, this.file));
|
|
1429
1430
|
}
|
|
1430
1431
|
assert(e, t, n) {
|
|
1431
1432
|
if (!e) throw this.error(typeof t == "function" ? t() : t, n);
|
|
@@ -1440,7 +1441,7 @@ var I = class {
|
|
|
1440
1441
|
this.skipBlank();
|
|
1441
1442
|
let e = this.p;
|
|
1442
1443
|
for (; !this.end() && S(this.peek());) ++this.p;
|
|
1443
|
-
return new
|
|
1444
|
+
return new yt(this.input, e, this.p, this.file);
|
|
1444
1445
|
}
|
|
1445
1446
|
readNonEmptyIdentifier() {
|
|
1446
1447
|
let e = this.readIdentifier();
|
|
@@ -1464,7 +1465,7 @@ var I = class {
|
|
|
1464
1465
|
let r;
|
|
1465
1466
|
this.skipBlank();
|
|
1466
1467
|
let i = a(e) ? e : e ? "=" : ":";
|
|
1467
|
-
return this.peek() === i && (++this.p, r = this.readValue()), new
|
|
1468
|
+
return this.peek() === i && (++this.p, r = this.readValue()), new Et(this.input, t, this.p, n, r, this.file);
|
|
1468
1469
|
}
|
|
1469
1470
|
remaining() {
|
|
1470
1471
|
return this.input.slice(this.p, this.N);
|
|
@@ -1485,19 +1486,19 @@ var I = class {
|
|
|
1485
1486
|
readValue() {
|
|
1486
1487
|
this.skipBlank();
|
|
1487
1488
|
let e = this.p, t = this.readLiteral() || this.readQuoted() || this.readRange() || this.readNumber(), n = this.readProperties(!t);
|
|
1488
|
-
return n.length ? new
|
|
1489
|
+
return n.length ? new wt(t, n, this.input, e, this.p) : t;
|
|
1489
1490
|
}
|
|
1490
1491
|
readScopeValue() {
|
|
1491
1492
|
this.skipBlank();
|
|
1492
1493
|
let e = this.p, t = this.readProperties();
|
|
1493
|
-
if (t.length) return new
|
|
1494
|
+
if (t.length) return new wt(void 0, t, this.input, e, this.p);
|
|
1494
1495
|
}
|
|
1495
1496
|
readProperties(e = !0) {
|
|
1496
1497
|
let t = [];
|
|
1497
1498
|
for (;;) {
|
|
1498
1499
|
if (this.peek() === "[") {
|
|
1499
1500
|
this.p++;
|
|
1500
|
-
let e = this.readValue() || new
|
|
1501
|
+
let e = this.readValue() || new yt(this.input, this.p, this.p, this.file);
|
|
1501
1502
|
this.assert(this.readTo("]") !== -1, "[ not closed"), t.push(e);
|
|
1502
1503
|
continue;
|
|
1503
1504
|
}
|
|
@@ -1528,7 +1529,7 @@ var I = class {
|
|
|
1528
1529
|
e = !0, n++;
|
|
1529
1530
|
} else break;
|
|
1530
1531
|
if (t && !S(this.peek(n))) {
|
|
1531
|
-
let e = new
|
|
1532
|
+
let e = new vt(this.input, this.p, this.p + n, this.file);
|
|
1532
1533
|
return this.advance(n), e;
|
|
1533
1534
|
}
|
|
1534
1535
|
}
|
|
@@ -1536,7 +1537,7 @@ var I = class {
|
|
|
1536
1537
|
this.skipBlank();
|
|
1537
1538
|
let e = this.matchTrie(this.literalTrie);
|
|
1538
1539
|
if (e === -1) return;
|
|
1539
|
-
let t = new
|
|
1540
|
+
let t = new bt(this.input, this.p, e, this.file);
|
|
1540
1541
|
return this.p = e, t;
|
|
1541
1542
|
}
|
|
1542
1543
|
readRange() {
|
|
@@ -1547,7 +1548,7 @@ var I = class {
|
|
|
1547
1548
|
let t = this.readValueOrThrow();
|
|
1548
1549
|
this.skipBlank(), this.assert(this.read() === "." && this.read() === ".", "invalid range syntax");
|
|
1549
1550
|
let n = this.readValueOrThrow();
|
|
1550
|
-
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new
|
|
1551
|
+
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Nt(this.input, e, this.p, t, n, this.file);
|
|
1551
1552
|
}
|
|
1552
1553
|
readValueOrThrow() {
|
|
1553
1554
|
let e = this.readValue();
|
|
@@ -1560,7 +1561,7 @@ var I = class {
|
|
|
1560
1561
|
++this.p;
|
|
1561
1562
|
let t = !1;
|
|
1562
1563
|
for (; this.p < this.N && (++this.p, !(this.input[this.p - 1] === this.input[e] && !t));) t ? t = !1 : this.input[this.p - 1] === "\\" && (t = !0);
|
|
1563
|
-
return new
|
|
1564
|
+
return new Mt(this.input, e, this.p, this.file);
|
|
1564
1565
|
}
|
|
1565
1566
|
*readFileNameTemplate(e) {
|
|
1566
1567
|
let { outputDelimiterLeft: t } = e, n = [
|
|
@@ -1590,7 +1591,7 @@ var I = class {
|
|
|
1590
1591
|
skipBlank() {
|
|
1591
1592
|
for (; this.peekType() & x;) ++this.p;
|
|
1592
1593
|
}
|
|
1593
|
-
},
|
|
1594
|
+
}, wn = class {
|
|
1594
1595
|
constructor(e, t) {
|
|
1595
1596
|
this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
|
|
1596
1597
|
}
|
|
@@ -1614,11 +1615,11 @@ var I = class {
|
|
|
1614
1615
|
stop() {
|
|
1615
1616
|
return this.stopRequested = !0, this;
|
|
1616
1617
|
}
|
|
1617
|
-
},
|
|
1618
|
+
}, Tn = class {
|
|
1618
1619
|
constructor(e) {
|
|
1619
1620
|
this.token = e;
|
|
1620
1621
|
}
|
|
1621
|
-
}, L = class extends
|
|
1622
|
+
}, L = class extends Tn {
|
|
1622
1623
|
constructor(e, t, n) {
|
|
1623
1624
|
super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
|
|
1624
1625
|
}
|
|
@@ -1634,7 +1635,7 @@ var I = class {
|
|
|
1634
1635
|
return t;
|
|
1635
1636
|
}
|
|
1636
1637
|
};
|
|
1637
|
-
function
|
|
1638
|
+
function En(e) {
|
|
1638
1639
|
return class extends L {
|
|
1639
1640
|
constructor(t, n, r) {
|
|
1640
1641
|
super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
|
|
@@ -1645,16 +1646,16 @@ function Tn(e) {
|
|
|
1645
1646
|
}
|
|
1646
1647
|
};
|
|
1647
1648
|
}
|
|
1648
|
-
function
|
|
1649
|
+
function Dn(e) {
|
|
1649
1650
|
return m(e);
|
|
1650
1651
|
}
|
|
1651
|
-
var
|
|
1652
|
+
var On = class {
|
|
1652
1653
|
constructor(e, t, n) {
|
|
1653
1654
|
this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler : de, this.raw = !o(t) && !!t?.raw, this.args = e.args, this.liquid = n;
|
|
1654
1655
|
}
|
|
1655
1656
|
*render(e, t) {
|
|
1656
1657
|
let n = [];
|
|
1657
|
-
for (let e of this.args)
|
|
1658
|
+
for (let e of this.args) Dn(e) ? n.push([e[0], yield A(e[1], t)]) : n.push(yield A(e, t));
|
|
1658
1659
|
return yield this.handler.apply({
|
|
1659
1660
|
context: t,
|
|
1660
1661
|
token: this.token,
|
|
@@ -1665,7 +1666,7 @@ var Dn = class {
|
|
|
1665
1666
|
constructor(e, t) {
|
|
1666
1667
|
this.filters = [];
|
|
1667
1668
|
let n = typeof e == "string" ? new I(e, t.options.operators).readFilteredValue() : e;
|
|
1668
|
-
this.initial = n.initial, this.filters = n.filters.map((e) => new
|
|
1669
|
+
this.initial = n.initial, this.filters = n.filters.map((e) => new On(e, this.getFilter(t, e.name), t));
|
|
1669
1670
|
}
|
|
1670
1671
|
*value(e, t) {
|
|
1671
1672
|
t ||= e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
|
|
@@ -1677,15 +1678,15 @@ var Dn = class {
|
|
|
1677
1678
|
let n = e.filters[t];
|
|
1678
1679
|
return C(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
|
|
1679
1680
|
}
|
|
1680
|
-
},
|
|
1681
|
+
}, kn = class extends Tn {
|
|
1681
1682
|
constructor(e, t) {
|
|
1682
1683
|
super(e);
|
|
1683
1684
|
let n = new I(e.input, t.options.operators, e.file, e.contentRange);
|
|
1684
1685
|
this.value = new z(n.readFilteredValue(), t);
|
|
1685
1686
|
let r = this.value.filters, i = t.options.outputEscape;
|
|
1686
1687
|
if (!r[r.length - 1]?.raw && i) {
|
|
1687
|
-
let e = new
|
|
1688
|
-
r.push(new
|
|
1688
|
+
let e = new Tt(toString.call(i), [], "", 0, 0);
|
|
1689
|
+
r.push(new On(e, i, t));
|
|
1689
1690
|
}
|
|
1690
1691
|
}
|
|
1691
1692
|
*render(e, t) {
|
|
@@ -1695,7 +1696,7 @@ var Dn = class {
|
|
|
1695
1696
|
*arguments() {
|
|
1696
1697
|
yield this.value;
|
|
1697
1698
|
}
|
|
1698
|
-
},
|
|
1699
|
+
}, An = class extends Tn {
|
|
1699
1700
|
constructor(e) {
|
|
1700
1701
|
super(e), this.str = e.getContent();
|
|
1701
1702
|
}
|
|
@@ -1715,7 +1716,7 @@ var Dn = class {
|
|
|
1715
1716
|
}
|
|
1716
1717
|
return Array.from(t(...this.segments));
|
|
1717
1718
|
}
|
|
1718
|
-
},
|
|
1719
|
+
}, jn = class {
|
|
1719
1720
|
constructor() {
|
|
1720
1721
|
this.map = /* @__PURE__ */ new Map();
|
|
1721
1722
|
}
|
|
@@ -1732,9 +1733,9 @@ var Dn = class {
|
|
|
1732
1733
|
asObject() {
|
|
1733
1734
|
return Object.fromEntries(this.map);
|
|
1734
1735
|
}
|
|
1735
|
-
},
|
|
1736
|
-
function*
|
|
1737
|
-
let r = new
|
|
1736
|
+
}, Mn = { partials: !0 };
|
|
1737
|
+
function* Nn(e, t, n) {
|
|
1738
|
+
let r = new jn(), i = new jn(), o = new jn(), s = new Pn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
|
|
1738
1739
|
function l(e, t) {
|
|
1739
1740
|
r.push(e);
|
|
1740
1741
|
let n = t.alias(e);
|
|
@@ -1748,7 +1749,7 @@ function* Mn(e, t, n) {
|
|
|
1748
1749
|
for (let n of e.segments) n instanceof B && l(n, t);
|
|
1749
1750
|
}
|
|
1750
1751
|
function* u(e, r) {
|
|
1751
|
-
if (e.arguments) for (let t of e.arguments()) for (let e of
|
|
1752
|
+
if (e.arguments) for (let t of e.arguments()) for (let e of Fn(t)) l(e, r);
|
|
1752
1753
|
if (e.localScope) for (let t of e.localScope()) {
|
|
1753
1754
|
r.add(t.content), r.deleteAlias(t.content);
|
|
1754
1755
|
let [e, n] = t.getPosition();
|
|
@@ -1765,12 +1766,12 @@ function* Mn(e, t, n) {
|
|
|
1765
1766
|
return;
|
|
1766
1767
|
}
|
|
1767
1768
|
if (c.has(i.name)) return;
|
|
1768
|
-
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new
|
|
1769
|
+
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Pn(o) : r.push(o);
|
|
1769
1770
|
for (let e of i.scope) if (a(e)) o.add(e);
|
|
1770
1771
|
else {
|
|
1771
1772
|
let [t, n] = e;
|
|
1772
1773
|
o.add(t);
|
|
1773
|
-
let r = Array.from(
|
|
1774
|
+
let r = Array.from(Fn(n));
|
|
1774
1775
|
r.length && s.setAlias(t, r[0].segments);
|
|
1775
1776
|
}
|
|
1776
1777
|
for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
|
|
@@ -1789,12 +1790,12 @@ function* Mn(e, t, n) {
|
|
|
1789
1790
|
};
|
|
1790
1791
|
}
|
|
1791
1792
|
function V(e, t = {}) {
|
|
1792
|
-
return D(
|
|
1793
|
+
return D(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !1));
|
|
1793
1794
|
}
|
|
1794
1795
|
function H(e, t = {}) {
|
|
1795
|
-
return O(
|
|
1796
|
+
return O(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !0));
|
|
1796
1797
|
}
|
|
1797
|
-
var
|
|
1798
|
+
var Pn = class {
|
|
1798
1799
|
constructor(e) {
|
|
1799
1800
|
this.stack = [{
|
|
1800
1801
|
names: e,
|
|
@@ -1836,20 +1837,20 @@ var Nn = class {
|
|
|
1836
1837
|
}
|
|
1837
1838
|
}
|
|
1838
1839
|
};
|
|
1839
|
-
function* Pn(e) {
|
|
1840
|
-
Y(e) ? yield* U(e) : e instanceof z && (yield* Fn(e));
|
|
1841
|
-
}
|
|
1842
1840
|
function* Fn(e) {
|
|
1841
|
+
Y(e) ? yield* U(e) : e instanceof z && (yield* In(e));
|
|
1842
|
+
}
|
|
1843
|
+
function* In(e) {
|
|
1843
1844
|
for (let t of e.initial.postfix) Y(t) && (yield* U(t));
|
|
1844
|
-
for (let t of e.filters) for (let e of t.args)
|
|
1845
|
+
for (let t of e.filters) for (let e of t.args) Dn(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
|
|
1845
1846
|
}
|
|
1846
1847
|
function* U(e) {
|
|
1847
|
-
|
|
1848
|
+
Jn(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : Kn(e) && (yield Ln(e));
|
|
1848
1849
|
}
|
|
1849
|
-
function
|
|
1850
|
+
function Ln(e) {
|
|
1850
1851
|
let t = [], n = e.file, r = e.props[0];
|
|
1851
|
-
n ||= r.file,
|
|
1852
|
-
for (let r of e.props.slice(1)) n ||= r.file,
|
|
1852
|
+
n ||= r.file, Wn(r) || Gn(r) || qn(r) ? t.push(r.content) : Kn(r) && t.push(...Ln(r).segments);
|
|
1853
|
+
for (let r of e.props.slice(1)) n ||= r.file, Wn(r) || Gn(r) || qn(r) ? t.push(r.content) : Kn(r) && t.push(Ln(r));
|
|
1853
1854
|
let [i, a] = e.getPosition();
|
|
1854
1855
|
return new B(t, {
|
|
1855
1856
|
row: i,
|
|
@@ -1857,18 +1858,18 @@ function In(e) {
|
|
|
1857
1858
|
file: n
|
|
1858
1859
|
});
|
|
1859
1860
|
}
|
|
1860
|
-
var
|
|
1861
|
+
var Rn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
|
|
1861
1862
|
function W(e, t = !1) {
|
|
1862
1863
|
let n = [], r = e[0];
|
|
1863
|
-
a(r) && (!t || r.match(
|
|
1864
|
-
for (let t of e.slice(1)) t instanceof B ? n.push(`[${W(t.segments)}]`) : a(t) ? t.match(
|
|
1864
|
+
a(r) && (!t || r.match(Rn) ? n.push(`${r}`) : n.push(`['${r}']`));
|
|
1865
|
+
for (let t of e.slice(1)) t instanceof B ? n.push(`[${W(t.segments)}]`) : a(t) ? t.match(Rn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
|
|
1865
1866
|
return n.join("");
|
|
1866
1867
|
}
|
|
1867
1868
|
var G;
|
|
1868
1869
|
(function(e) {
|
|
1869
1870
|
e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
|
|
1870
1871
|
})(G ||= {});
|
|
1871
|
-
var
|
|
1872
|
+
var zn = class {
|
|
1872
1873
|
constructor(e) {
|
|
1873
1874
|
if (this.options = e, e.relativeReference) {
|
|
1874
1875
|
let t = e.fs.sep;
|
|
@@ -1882,9 +1883,9 @@ var Rn = class {
|
|
|
1882
1883
|
this.shouldLoadRelative = (e) => n.some((t) => e.startsWith(t));
|
|
1883
1884
|
} else this.shouldLoadRelative = (e) => !1;
|
|
1884
1885
|
let t = e.fs;
|
|
1885
|
-
this.contains =
|
|
1886
|
+
this.contains = Ke(t.contains?.bind(t) || (() => E(this, void 0, void 0, function* () {
|
|
1886
1887
|
return !0;
|
|
1887
|
-
})), t.containsSync?.bind(t) || (() => !0)), this.exists =
|
|
1888
|
+
})), t.containsSync?.bind(t) || (() => !0)), this.exists = Ke(t.exists?.bind(t) || (() => E(this, void 0, void 0, function* () {
|
|
1888
1889
|
return !1;
|
|
1889
1890
|
})), t.existsSync?.bind(t));
|
|
1890
1891
|
}
|
|
@@ -1919,7 +1920,7 @@ var Rn = class {
|
|
|
1919
1920
|
}
|
|
1920
1921
|
}, K = class {
|
|
1921
1922
|
constructor(e) {
|
|
1922
|
-
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new
|
|
1923
|
+
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new zn(this.liquid.options), this.parseLimit = new pt("parse length", e.options.parseLimit), this.readFile = Ke(this.fs.readFile?.bind(this.fs) || (() => E(this, void 0, void 0, function* () {
|
|
1923
1924
|
throw Error("readFile not implemented");
|
|
1924
1925
|
})), this.fs.readFileSync?.bind(this.fs));
|
|
1925
1926
|
}
|
|
@@ -1945,13 +1946,13 @@ var Rn = class {
|
|
|
1945
1946
|
let n = this.liquid.tags[e.name];
|
|
1946
1947
|
return C(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
|
|
1947
1948
|
}
|
|
1948
|
-
return
|
|
1949
|
+
return Un(e) ? new kn(e, this.liquid) : new An(e);
|
|
1949
1950
|
} catch (t) {
|
|
1950
1951
|
throw y.is(t) ? t : new ye(t, e);
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
1954
|
parseStream(e) {
|
|
1954
|
-
return new
|
|
1955
|
+
return new wn(e, (e, t) => this.parseToken(e, t));
|
|
1955
1956
|
}
|
|
1956
1957
|
*_parseFileCached(e, t, n = G.Root, r) {
|
|
1957
1958
|
let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
|
|
@@ -1972,34 +1973,34 @@ var Rn = class {
|
|
|
1972
1973
|
(function(e) {
|
|
1973
1974
|
e[e.Number = 1] = "Number", e[e.Literal = 2] = "Literal", e[e.Tag = 4] = "Tag", e[e.Output = 8] = "Output", e[e.HTML = 16] = "HTML", e[e.Filter = 32] = "Filter", e[e.Hash = 64] = "Hash", e[e.PropertyAccess = 128] = "PropertyAccess", e[e.Word = 256] = "Word", e[e.Range = 512] = "Range", e[e.Quoted = 1024] = "Quoted", e[e.Operator = 2048] = "Operator", e[e.FilteredValue = 4096] = "FilteredValue", e[e.Delimited = 12] = "Delimited";
|
|
1974
1975
|
})(q ||= {});
|
|
1975
|
-
function
|
|
1976
|
+
function Bn(e) {
|
|
1976
1977
|
return !!(X(e) & q.Delimited);
|
|
1977
1978
|
}
|
|
1978
|
-
function
|
|
1979
|
+
function Vn(e) {
|
|
1979
1980
|
return X(e) === q.Operator;
|
|
1980
1981
|
}
|
|
1981
|
-
function
|
|
1982
|
+
function Hn(e) {
|
|
1982
1983
|
return X(e) === q.HTML;
|
|
1983
1984
|
}
|
|
1984
|
-
function
|
|
1985
|
+
function Un(e) {
|
|
1985
1986
|
return X(e) === q.Output;
|
|
1986
1987
|
}
|
|
1987
1988
|
function J(e) {
|
|
1988
1989
|
return X(e) === q.Tag;
|
|
1989
1990
|
}
|
|
1990
|
-
function
|
|
1991
|
+
function Wn(e) {
|
|
1991
1992
|
return X(e) === q.Quoted;
|
|
1992
1993
|
}
|
|
1993
|
-
function
|
|
1994
|
+
function Gn(e) {
|
|
1994
1995
|
return X(e) === q.Number;
|
|
1995
1996
|
}
|
|
1996
|
-
function
|
|
1997
|
+
function Kn(e) {
|
|
1997
1998
|
return X(e) === q.PropertyAccess;
|
|
1998
1999
|
}
|
|
1999
|
-
function
|
|
2000
|
+
function qn(e) {
|
|
2000
2001
|
return X(e) === q.Word;
|
|
2001
2002
|
}
|
|
2002
|
-
function
|
|
2003
|
+
function Jn(e) {
|
|
2003
2004
|
return X(e) === q.Range;
|
|
2004
2005
|
}
|
|
2005
2006
|
function Y(e) {
|
|
@@ -2014,7 +2015,7 @@ function Z(e) {
|
|
|
2014
2015
|
}
|
|
2015
2016
|
var Q = class e {
|
|
2016
2017
|
constructor(e = {}, t = P, n = {}, { memoryLimit: r, renderLimit: i } = {}) {
|
|
2017
|
-
this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments = h(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new
|
|
2018
|
+
this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments = h(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new pt("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new pt("template render", Lt().now() + (n.renderLimit ?? t.renderLimit));
|
|
2018
2019
|
}
|
|
2019
2020
|
getRegister(e, t = void 0) {
|
|
2020
2021
|
return this.registers[e] = this.registers[e] || t;
|
|
@@ -2033,7 +2034,7 @@ var Q = class e {
|
|
|
2033
2034
|
this.globals,
|
|
2034
2035
|
this.environments,
|
|
2035
2036
|
...this.scopes
|
|
2036
|
-
].reduce((e, t) =>
|
|
2037
|
+
].reduce((e, t) => Ge(e, t), {});
|
|
2037
2038
|
}
|
|
2038
2039
|
get(e) {
|
|
2039
2040
|
return this.getSync(e);
|
|
@@ -2083,20 +2084,20 @@ var Q = class e {
|
|
|
2083
2084
|
readProperty(e, n) {
|
|
2084
2085
|
if (e = ne(e), n = f(n), p(e)) return e;
|
|
2085
2086
|
if (m(e) && n < 0) return e[e.length + +n];
|
|
2086
|
-
let r =
|
|
2087
|
-
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ?
|
|
2087
|
+
let r = Yn(e, n, this.ownPropertyOnly);
|
|
2088
|
+
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? Qn(e) : n === "first" ? Xn(e) : n === "last" ? Zn(e) : r;
|
|
2088
2089
|
}
|
|
2089
2090
|
};
|
|
2090
|
-
function
|
|
2091
|
+
function Yn(e, n, r) {
|
|
2091
2092
|
if (!(r && !i.call(e, n) && !(e instanceof t))) return e[n];
|
|
2092
2093
|
}
|
|
2093
|
-
function
|
|
2094
|
+
function Xn(e) {
|
|
2094
2095
|
return m(e) ? e[0] : e.first;
|
|
2095
2096
|
}
|
|
2096
|
-
function
|
|
2097
|
+
function Zn(e) {
|
|
2097
2098
|
return m(e) ? e[e.length - 1] : e.last;
|
|
2098
2099
|
}
|
|
2099
|
-
function
|
|
2100
|
+
function Qn(e) {
|
|
2100
2101
|
if (i.call(e, "size") || e.size !== void 0) return e.size;
|
|
2101
2102
|
if (m(e) || a(e)) return e.length;
|
|
2102
2103
|
if (typeof e == "object") return Object.keys(e).length;
|
|
@@ -2105,75 +2106,75 @@ var $;
|
|
|
2105
2106
|
(function(e) {
|
|
2106
2107
|
e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
|
|
2107
2108
|
})($ ||= {});
|
|
2108
|
-
var
|
|
2109
|
-
function
|
|
2109
|
+
var $n = v(Math.abs), er = v(Math.max), tr = v(Math.min), nr = v(Math.ceil), rr = v((e, t, n = !1) => n ? Math.floor(e / t) : e / t), ir = v(Math.floor), ar = v((e, t) => e - t), or = v((e, t) => e + t), sr = v((e, t) => e % t), cr = v((e, t) => e * t);
|
|
2110
|
+
function lr(e, t = 0) {
|
|
2110
2111
|
e = ee(e), t = ee(t);
|
|
2111
|
-
let n = 10 ** t, r = e * n;
|
|
2112
|
-
return Math.
|
|
2112
|
+
let n = 10 ** t, r = e * n * (1 + 2 ** -52);
|
|
2113
|
+
return Math.round(r) / n;
|
|
2113
2114
|
}
|
|
2114
|
-
var
|
|
2115
|
+
var ur = /*#__PURE__*/ Object.freeze({
|
|
2115
2116
|
__proto__: null,
|
|
2116
|
-
abs:
|
|
2117
|
-
at_least:
|
|
2118
|
-
at_most:
|
|
2119
|
-
ceil:
|
|
2120
|
-
divided_by:
|
|
2121
|
-
floor:
|
|
2122
|
-
minus:
|
|
2123
|
-
plus:
|
|
2124
|
-
modulo:
|
|
2125
|
-
times:
|
|
2126
|
-
round:
|
|
2127
|
-
}),
|
|
2117
|
+
abs: $n,
|
|
2118
|
+
at_least: er,
|
|
2119
|
+
at_most: tr,
|
|
2120
|
+
ceil: nr,
|
|
2121
|
+
divided_by: rr,
|
|
2122
|
+
floor: ir,
|
|
2123
|
+
minus: ar,
|
|
2124
|
+
plus: or,
|
|
2125
|
+
modulo: sr,
|
|
2126
|
+
times: cr,
|
|
2127
|
+
round: lr
|
|
2128
|
+
}), dr = (e) => decodeURIComponent(l(e)).replace(/\+/g, " "), fr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), pr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), mr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), hr = /[^\p{M}\p{L}\p{Nd}]+/gu, gr = {
|
|
2128
2129
|
raw: /\s+/g,
|
|
2129
|
-
default:
|
|
2130
|
+
default: hr,
|
|
2130
2131
|
pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
|
|
2131
2132
|
ascii: /[^A-Za-z0-9]+/g,
|
|
2132
|
-
latin:
|
|
2133
|
+
latin: hr,
|
|
2133
2134
|
none: null
|
|
2134
2135
|
};
|
|
2135
|
-
function
|
|
2136
|
+
function _r(e, t = "default", n = !1) {
|
|
2136
2137
|
e = l(e);
|
|
2137
|
-
let r =
|
|
2138
|
-
return r && (t === "latin" && (e =
|
|
2138
|
+
let r = gr[t];
|
|
2139
|
+
return r && (t === "latin" && (e = vr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
|
|
2139
2140
|
}
|
|
2140
|
-
function
|
|
2141
|
+
function vr(e) {
|
|
2141
2142
|
return e.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
|
|
2142
2143
|
}
|
|
2143
|
-
var
|
|
2144
|
+
var yr = /*#__PURE__*/ Object.freeze({
|
|
2144
2145
|
__proto__: null,
|
|
2145
|
-
url_decode:
|
|
2146
|
-
url_encode:
|
|
2147
|
-
cgi_escape:
|
|
2148
|
-
uri_escape:
|
|
2149
|
-
slugify:
|
|
2150
|
-
}),
|
|
2146
|
+
url_decode: dr,
|
|
2147
|
+
url_encode: fr,
|
|
2148
|
+
cgi_escape: pr,
|
|
2149
|
+
uri_escape: mr,
|
|
2150
|
+
slugify: _r
|
|
2151
|
+
}), br = _(function(e, t) {
|
|
2151
2152
|
let n = d(e), r = p(t) ? " " : l(t), i = n.length * (1 + r.length);
|
|
2152
2153
|
return this.context.memoryLimit.use(i), n.join(r);
|
|
2153
|
-
}),
|
|
2154
|
+
}), xr = _((e) => ie(e) ? se(e) : ""), Sr = _((e) => ie(e) ? e[0] : ""), Cr = _(function(e) {
|
|
2154
2155
|
let t = d(e);
|
|
2155
2156
|
return this.context.memoryLimit.use(t.length), [...t].reverse();
|
|
2156
2157
|
});
|
|
2157
|
-
function*
|
|
2158
|
+
function* wr(e, t, n) {
|
|
2158
2159
|
let r = [], i = d(e);
|
|
2159
2160
|
this.context.memoryLimit.use(i.length);
|
|
2160
2161
|
for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
|
|
2161
2162
|
return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
|
|
2162
2163
|
}
|
|
2163
|
-
function* wr(e, t) {
|
|
2164
|
-
return yield* Cr.call(this, e, t, me);
|
|
2165
|
-
}
|
|
2166
2164
|
function* Tr(e, t) {
|
|
2167
|
-
return yield*
|
|
2165
|
+
return yield* wr.call(this, e, t, me);
|
|
2166
|
+
}
|
|
2167
|
+
function* Er(e, t) {
|
|
2168
|
+
return yield* wr.call(this, e, t, he);
|
|
2168
2169
|
}
|
|
2169
|
-
var
|
|
2170
|
-
function*
|
|
2170
|
+
var Dr = (e) => e && e.length || 0;
|
|
2171
|
+
function* Or(e, t) {
|
|
2171
2172
|
let n = [], r = d(e);
|
|
2172
2173
|
this.context.memoryLimit.use(r.length);
|
|
2173
2174
|
for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
|
|
2174
2175
|
return n;
|
|
2175
2176
|
}
|
|
2176
|
-
function*
|
|
2177
|
+
function* kr(e, t) {
|
|
2177
2178
|
let n = 0, r = d(e);
|
|
2178
2179
|
for (let e of r) {
|
|
2179
2180
|
let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
|
|
@@ -2181,48 +2182,50 @@ function* Or(e, t) {
|
|
|
2181
2182
|
}
|
|
2182
2183
|
return n;
|
|
2183
2184
|
}
|
|
2184
|
-
function
|
|
2185
|
+
function Ar(e) {
|
|
2185
2186
|
let t = d(e);
|
|
2186
2187
|
return this.context.memoryLimit.use(t.length), t.filter((e) => !p(f(e)));
|
|
2187
2188
|
}
|
|
2188
|
-
function
|
|
2189
|
+
function jr(e, t = []) {
|
|
2189
2190
|
let n = d(e), r = d(t);
|
|
2190
2191
|
return this.context.memoryLimit.use(n.length + r.length), n.concat(r);
|
|
2191
2192
|
}
|
|
2192
|
-
function jr(e, t) {
|
|
2193
|
-
return Ar.call(this, e, [t]);
|
|
2194
|
-
}
|
|
2195
2193
|
function Mr(e, t) {
|
|
2194
|
+
return jr.call(this, e, [t]);
|
|
2195
|
+
}
|
|
2196
|
+
function Nr(e, t) {
|
|
2196
2197
|
let n = d(e);
|
|
2197
2198
|
this.context.memoryLimit.use(n.length);
|
|
2198
2199
|
let r = [...n];
|
|
2199
2200
|
return r.unshift(t), r;
|
|
2200
2201
|
}
|
|
2201
|
-
function Nr(e) {
|
|
2202
|
-
let t = [...d(e)];
|
|
2203
|
-
return t.pop(), t;
|
|
2204
|
-
}
|
|
2205
2202
|
function Pr(e) {
|
|
2203
|
+
let t = d(e);
|
|
2204
|
+
this.context.memoryLimit.use(t.length);
|
|
2205
|
+
let n = [...t];
|
|
2206
|
+
return n.pop(), n;
|
|
2207
|
+
}
|
|
2208
|
+
function Fr(e) {
|
|
2206
2209
|
let t = d(e);
|
|
2207
2210
|
this.context.memoryLimit.use(t.length);
|
|
2208
2211
|
let n = [...t];
|
|
2209
2212
|
return n.shift(), n;
|
|
2210
2213
|
}
|
|
2211
|
-
function
|
|
2214
|
+
function Ir(e, t, n = 1) {
|
|
2212
2215
|
return e = f(e), p(e) ? [] : (m(e) || (e = l(e)), t = t < 0 ? e.length + t : t, this.context.memoryLimit.use(n), e.slice(t, t + n));
|
|
2213
2216
|
}
|
|
2214
|
-
function
|
|
2215
|
-
return this.context.opts.jekyllWhere ? (t) => Pe.is(e) ? N(t, e) : m(t) ?
|
|
2217
|
+
function Lr(e) {
|
|
2218
|
+
return this.context.opts.jekyllWhere ? (t) => Pe.is(e) ? N(t, e) : m(t) ? Kt(t, e) : N(t, e) : e === void 0 ? (e) => j(e, this.context) : (t) => N(t, e);
|
|
2216
2219
|
}
|
|
2217
|
-
function*
|
|
2220
|
+
function* Rr(e, t, n, r) {
|
|
2218
2221
|
let i = [];
|
|
2219
2222
|
t = d(t), this.context.memoryLimit.use(t.length);
|
|
2220
2223
|
let a = new I(l(n)).readScopeValue();
|
|
2221
2224
|
for (let e of t) i.push(yield A(a, this.context.spawn(e)));
|
|
2222
|
-
let o =
|
|
2225
|
+
let o = Lr.call(this, r);
|
|
2223
2226
|
return t.filter((t, n) => o(i[n]) === e);
|
|
2224
2227
|
}
|
|
2225
|
-
function*
|
|
2228
|
+
function* zr(e, t, n, r) {
|
|
2226
2229
|
let i = [], a = new z(l(r), this.liquid), o = d(t);
|
|
2227
2230
|
this.context.memoryLimit.use(o.length);
|
|
2228
2231
|
for (let t of o) {
|
|
@@ -2232,19 +2235,19 @@ function* Rr(e, t, n, r) {
|
|
|
2232
2235
|
}
|
|
2233
2236
|
return i;
|
|
2234
2237
|
}
|
|
2235
|
-
function* zr(e, t, n) {
|
|
2236
|
-
return yield* Lr.call(this, !0, e, t, n);
|
|
2237
|
-
}
|
|
2238
2238
|
function* Br(e, t, n) {
|
|
2239
|
-
return yield*
|
|
2239
|
+
return yield* Rr.call(this, !0, e, t, n);
|
|
2240
2240
|
}
|
|
2241
2241
|
function* Vr(e, t, n) {
|
|
2242
|
-
return yield* Rr.call(this, !
|
|
2242
|
+
return yield* Rr.call(this, !1, e, t, n);
|
|
2243
2243
|
}
|
|
2244
2244
|
function* Hr(e, t, n) {
|
|
2245
|
-
return yield*
|
|
2245
|
+
return yield* zr.call(this, !0, e, t, n);
|
|
2246
|
+
}
|
|
2247
|
+
function* Ur(e, t, n) {
|
|
2248
|
+
return yield* zr.call(this, !1, e, t, n);
|
|
2246
2249
|
}
|
|
2247
|
-
function*
|
|
2250
|
+
function* Wr(e, t) {
|
|
2248
2251
|
let n = /* @__PURE__ */ new Map();
|
|
2249
2252
|
e = u(e);
|
|
2250
2253
|
let r = new I(l(t)).readScopeValue();
|
|
@@ -2258,7 +2261,7 @@ function* Ur(e, t) {
|
|
|
2258
2261
|
items: t
|
|
2259
2262
|
}));
|
|
2260
2263
|
}
|
|
2261
|
-
function*
|
|
2264
|
+
function* Gr(e, t, n) {
|
|
2262
2265
|
let r = /* @__PURE__ */ new Map(), i = new z(l(n), this.liquid);
|
|
2263
2266
|
e = u(e), this.context.memoryLimit.use(e.length);
|
|
2264
2267
|
for (let n of e) {
|
|
@@ -2271,11 +2274,11 @@ function* Wr(e, t, n) {
|
|
|
2271
2274
|
items: t
|
|
2272
2275
|
}));
|
|
2273
2276
|
}
|
|
2274
|
-
function*
|
|
2275
|
-
let r = new I(l(t)).readScopeValue(), i = d(e), a =
|
|
2277
|
+
function* Kr(e, t, n) {
|
|
2278
|
+
let r = new I(l(t)).readScopeValue(), i = d(e), a = Lr.call(this, n);
|
|
2276
2279
|
for (let e = 0; e < i.length; e++) if (a(yield A(r, this.context.spawn(i[e])))) return [e, i[e]];
|
|
2277
2280
|
}
|
|
2278
|
-
function*
|
|
2281
|
+
function* qr(e, t, n) {
|
|
2279
2282
|
let r = new z(l(n), this.liquid), i = d(e);
|
|
2280
2283
|
for (let e = 0; e < i.length; e++) {
|
|
2281
2284
|
this.context.push({ [t]: i[e] });
|
|
@@ -2283,121 +2286,121 @@ function* Kr(e, t, n) {
|
|
|
2283
2286
|
if (this.context.pop(), n) return [e, i[e]];
|
|
2284
2287
|
}
|
|
2285
2288
|
}
|
|
2286
|
-
function* qr(e, t, n) {
|
|
2287
|
-
return !!(yield* Gr.call(this, e, t, n));
|
|
2288
|
-
}
|
|
2289
2289
|
function* Jr(e, t, n) {
|
|
2290
2290
|
return !!(yield* Kr.call(this, e, t, n));
|
|
2291
2291
|
}
|
|
2292
2292
|
function* Yr(e, t, n) {
|
|
2293
|
-
|
|
2294
|
-
return r ? r[0] : void 0;
|
|
2293
|
+
return !!(yield* qr.call(this, e, t, n));
|
|
2295
2294
|
}
|
|
2296
2295
|
function* Xr(e, t, n) {
|
|
2297
2296
|
let r = yield* Kr.call(this, e, t, n);
|
|
2298
2297
|
return r ? r[0] : void 0;
|
|
2299
2298
|
}
|
|
2300
2299
|
function* Zr(e, t, n) {
|
|
2301
|
-
let r = yield*
|
|
2302
|
-
return r ? r[
|
|
2300
|
+
let r = yield* qr.call(this, e, t, n);
|
|
2301
|
+
return r ? r[0] : void 0;
|
|
2303
2302
|
}
|
|
2304
2303
|
function* Qr(e, t, n) {
|
|
2305
2304
|
let r = yield* Kr.call(this, e, t, n);
|
|
2306
2305
|
return r ? r[1] : void 0;
|
|
2307
2306
|
}
|
|
2308
|
-
function $r(e) {
|
|
2307
|
+
function* $r(e, t, n) {
|
|
2308
|
+
let r = yield* qr.call(this, e, t, n);
|
|
2309
|
+
return r ? r[1] : void 0;
|
|
2310
|
+
}
|
|
2311
|
+
function ei(e) {
|
|
2309
2312
|
return e = d(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
|
|
2310
2313
|
}
|
|
2311
|
-
function
|
|
2314
|
+
function ti(e, t = 1) {
|
|
2312
2315
|
if (e = f(e), p(e)) return [];
|
|
2313
|
-
m(e) || (e = l(e)), this.context.memoryLimit.use(
|
|
2316
|
+
m(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
|
|
2314
2317
|
let n = [...e].sort(() => Math.random() - .5);
|
|
2315
2318
|
return t === 1 ? n[0] : n.slice(0, t);
|
|
2316
2319
|
}
|
|
2317
|
-
var
|
|
2320
|
+
var ni = /*#__PURE__*/ Object.freeze({
|
|
2318
2321
|
__proto__: null,
|
|
2319
|
-
join:
|
|
2320
|
-
last:
|
|
2321
|
-
first:
|
|
2322
|
-
reverse:
|
|
2323
|
-
sort:
|
|
2324
|
-
sort_natural:
|
|
2325
|
-
size:
|
|
2326
|
-
map:
|
|
2327
|
-
sum:
|
|
2328
|
-
compact:
|
|
2329
|
-
concat:
|
|
2330
|
-
push:
|
|
2331
|
-
unshift:
|
|
2332
|
-
pop:
|
|
2333
|
-
shift:
|
|
2334
|
-
slice:
|
|
2335
|
-
where:
|
|
2336
|
-
reject:
|
|
2337
|
-
where_exp:
|
|
2338
|
-
reject_exp:
|
|
2339
|
-
group_by:
|
|
2340
|
-
group_by_exp:
|
|
2341
|
-
has:
|
|
2342
|
-
has_exp:
|
|
2343
|
-
find_index:
|
|
2344
|
-
find_index_exp:
|
|
2345
|
-
find:
|
|
2346
|
-
find_exp:
|
|
2347
|
-
uniq:
|
|
2348
|
-
sample:
|
|
2322
|
+
join: br,
|
|
2323
|
+
last: xr,
|
|
2324
|
+
first: Sr,
|
|
2325
|
+
reverse: Cr,
|
|
2326
|
+
sort: Tr,
|
|
2327
|
+
sort_natural: Er,
|
|
2328
|
+
size: Dr,
|
|
2329
|
+
map: Or,
|
|
2330
|
+
sum: kr,
|
|
2331
|
+
compact: Ar,
|
|
2332
|
+
concat: jr,
|
|
2333
|
+
push: Mr,
|
|
2334
|
+
unshift: Nr,
|
|
2335
|
+
pop: Pr,
|
|
2336
|
+
shift: Fr,
|
|
2337
|
+
slice: Ir,
|
|
2338
|
+
where: Br,
|
|
2339
|
+
reject: Vr,
|
|
2340
|
+
where_exp: Hr,
|
|
2341
|
+
reject_exp: Ur,
|
|
2342
|
+
group_by: Wr,
|
|
2343
|
+
group_by_exp: Gr,
|
|
2344
|
+
has: Jr,
|
|
2345
|
+
has_exp: Yr,
|
|
2346
|
+
find_index: Xr,
|
|
2347
|
+
find_index_exp: Zr,
|
|
2348
|
+
find: Qr,
|
|
2349
|
+
find_exp: $r,
|
|
2350
|
+
uniq: ei,
|
|
2351
|
+
sample: ti
|
|
2349
2352
|
});
|
|
2350
|
-
function
|
|
2353
|
+
function ri(e, t, n) {
|
|
2351
2354
|
let r = (e?.length ?? 0) + (n?.length ?? 0);
|
|
2352
2355
|
this.context.memoryLimit.use(r);
|
|
2353
|
-
let i =
|
|
2354
|
-
return i ? (t = f(t), t = p(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length),
|
|
2355
|
-
}
|
|
2356
|
-
function ri(e) {
|
|
2357
|
-
return ni.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
|
|
2356
|
+
let i = li(e, this.context.opts, n);
|
|
2357
|
+
return i ? (t = f(t), t = p(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), it(i, t, this.context.memoryLimit)) : e;
|
|
2358
2358
|
}
|
|
2359
2359
|
function ii(e) {
|
|
2360
|
-
return
|
|
2360
|
+
return ri.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
|
|
2361
2361
|
}
|
|
2362
|
-
function ai(e
|
|
2363
|
-
return
|
|
2362
|
+
function ai(e) {
|
|
2363
|
+
return ri.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
|
|
2364
2364
|
}
|
|
2365
2365
|
function oi(e, t, n) {
|
|
2366
|
-
return
|
|
2366
|
+
return ci.call(this, e, "%b", t, n);
|
|
2367
2367
|
}
|
|
2368
|
-
function si(e, t, n
|
|
2369
|
-
|
|
2368
|
+
function si(e, t, n) {
|
|
2369
|
+
return ci.call(this, e, "%B", t, n);
|
|
2370
|
+
}
|
|
2371
|
+
function ci(e, t, n, r) {
|
|
2372
|
+
let i = li(e, this.context.opts);
|
|
2370
2373
|
if (!i) return e;
|
|
2371
2374
|
let a = this.context.memoryLimit;
|
|
2372
2375
|
if (n === "ordinal") {
|
|
2373
2376
|
let e = i.getDate();
|
|
2374
|
-
return r === "US" ?
|
|
2377
|
+
return r === "US" ? it(i, `${t} ${e}%q, %Y`, a) : it(i, `${e}%q ${t} %Y`, a);
|
|
2375
2378
|
}
|
|
2376
|
-
return
|
|
2379
|
+
return it(i, `%d ${t} %Y`, a);
|
|
2377
2380
|
}
|
|
2378
|
-
function
|
|
2381
|
+
function li(e, t, n) {
|
|
2379
2382
|
let r, i = n ?? t.timezoneOffset, o = t.locale;
|
|
2380
2383
|
if (e = f(e), !p(e)) return r = e === "now" || e === "today" ? new k(Date.now(), o, i) : te(e) ? new k(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new k(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? k.createDateFixedToTimezone(e, o) : new k(e, o, i) : new k(e, o, i), r.valid() ? r : void 0;
|
|
2381
2384
|
}
|
|
2382
|
-
var
|
|
2385
|
+
var ui = /*#__PURE__*/ Object.freeze({
|
|
2383
2386
|
__proto__: null,
|
|
2384
|
-
date:
|
|
2385
|
-
date_to_xmlschema:
|
|
2386
|
-
date_to_rfc822:
|
|
2387
|
-
date_to_string:
|
|
2388
|
-
date_to_long_string:
|
|
2389
|
-
}),
|
|
2390
|
-
function
|
|
2387
|
+
date: ri,
|
|
2388
|
+
date_to_xmlschema: ii,
|
|
2389
|
+
date_to_rfc822: ai,
|
|
2390
|
+
date_to_string: oi,
|
|
2391
|
+
date_to_long_string: si
|
|
2392
|
+
}), di = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, fi = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
|
|
2393
|
+
function pi(e, t) {
|
|
2391
2394
|
C(arguments.length === 2, "append expect 2 arguments");
|
|
2392
2395
|
let n = l(e), r = l(t);
|
|
2393
2396
|
return this.context.memoryLimit.use(n.length + r.length), n + r;
|
|
2394
2397
|
}
|
|
2395
|
-
function
|
|
2398
|
+
function mi(e, t) {
|
|
2396
2399
|
C(arguments.length === 2, "prepend expect 2 arguments");
|
|
2397
2400
|
let n = l(e), r = l(t);
|
|
2398
2401
|
return this.context.memoryLimit.use(n.length + r.length), r + n;
|
|
2399
2402
|
}
|
|
2400
|
-
function
|
|
2403
|
+
function hi(e, t) {
|
|
2401
2404
|
let n = l(e);
|
|
2402
2405
|
if (this.context.memoryLimit.use(n.length), t) {
|
|
2403
2406
|
t = l(t), this.context.memoryLimit.use(t.length);
|
|
@@ -2406,29 +2409,29 @@ function mi(e, t) {
|
|
|
2406
2409
|
}
|
|
2407
2410
|
return n.trimStart();
|
|
2408
2411
|
}
|
|
2409
|
-
function
|
|
2412
|
+
function gi(e) {
|
|
2410
2413
|
let t = l(e);
|
|
2411
2414
|
return this.context.memoryLimit.use(t.length), t.toLowerCase();
|
|
2412
2415
|
}
|
|
2413
|
-
function
|
|
2416
|
+
function _i(e) {
|
|
2414
2417
|
let t = l(e);
|
|
2415
2418
|
return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
|
|
2416
2419
|
}
|
|
2417
|
-
function
|
|
2420
|
+
function vi(e, t) {
|
|
2418
2421
|
let n = l(e);
|
|
2419
2422
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
|
|
2420
2423
|
}
|
|
2421
|
-
function
|
|
2424
|
+
function yi(e, t) {
|
|
2422
2425
|
let n = l(e);
|
|
2423
2426
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
|
|
2424
2427
|
}
|
|
2425
|
-
function
|
|
2428
|
+
function bi(e, t) {
|
|
2426
2429
|
let n = l(e), r = l(t);
|
|
2427
2430
|
this.context.memoryLimit.use(n.length + r.length);
|
|
2428
2431
|
let i = n.lastIndexOf(r);
|
|
2429
2432
|
return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
|
|
2430
2433
|
}
|
|
2431
|
-
function
|
|
2434
|
+
function xi(e, t) {
|
|
2432
2435
|
if (e = l(e), this.context.memoryLimit.use(e.length), t) {
|
|
2433
2436
|
t = l(t), this.context.memoryLimit.use(t.length);
|
|
2434
2437
|
for (let n = e.length - 1, r = new Set(t); n >= 0; n--) if (!r.has(e[n])) return e.slice(0, n + 1);
|
|
@@ -2436,14 +2439,14 @@ function bi(e, t) {
|
|
|
2436
2439
|
}
|
|
2437
2440
|
return e.trimEnd();
|
|
2438
2441
|
}
|
|
2439
|
-
function
|
|
2442
|
+
function Si(e, t) {
|
|
2440
2443
|
let n = l(e);
|
|
2441
2444
|
this.context.memoryLimit.use(n.length);
|
|
2442
2445
|
let r = n.split(l(t));
|
|
2443
2446
|
for (; r.length && r[r.length - 1] === "";) r.pop();
|
|
2444
2447
|
return r;
|
|
2445
2448
|
}
|
|
2446
|
-
function
|
|
2449
|
+
function Ci(e, t) {
|
|
2447
2450
|
let n = l(e);
|
|
2448
2451
|
if (this.context.memoryLimit.use(n.length), t) {
|
|
2449
2452
|
let e = new Set(l(t));
|
|
@@ -2455,34 +2458,34 @@ function Si(e, t) {
|
|
|
2455
2458
|
}
|
|
2456
2459
|
return n.trim();
|
|
2457
2460
|
}
|
|
2458
|
-
function
|
|
2461
|
+
function wi(e) {
|
|
2459
2462
|
let t = l(e);
|
|
2460
2463
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
|
|
2461
2464
|
}
|
|
2462
|
-
function
|
|
2465
|
+
function Ti(e) {
|
|
2463
2466
|
return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
2464
2467
|
}
|
|
2465
|
-
function
|
|
2468
|
+
function Ei(e, t, n) {
|
|
2466
2469
|
let r = l(e);
|
|
2467
2470
|
t = l(t), n = l(n);
|
|
2468
2471
|
let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
|
|
2469
2472
|
return this.context.memoryLimit.use(a), i.join(n);
|
|
2470
2473
|
}
|
|
2471
|
-
function
|
|
2474
|
+
function Di(e, t, n) {
|
|
2472
2475
|
let r = l(e);
|
|
2473
2476
|
return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
|
|
2474
2477
|
}
|
|
2475
|
-
function
|
|
2478
|
+
function Oi(e, t, n) {
|
|
2476
2479
|
let r = l(e), i = l(t), a = l(n);
|
|
2477
2480
|
this.context.memoryLimit.use(r.length + i.length + a.length);
|
|
2478
2481
|
let o = r.lastIndexOf(i);
|
|
2479
2482
|
return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
|
|
2480
2483
|
}
|
|
2481
|
-
function
|
|
2484
|
+
function ki(e, t = 50, n = "...") {
|
|
2482
2485
|
let r = l(e);
|
|
2483
2486
|
return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
|
|
2484
2487
|
}
|
|
2485
|
-
function
|
|
2488
|
+
function Ai(e, t = 15, n = "...") {
|
|
2486
2489
|
let r = l(e);
|
|
2487
2490
|
n = l(n), this.context.memoryLimit.use(r.length + n.length);
|
|
2488
2491
|
let i = r.split(/\s+/);
|
|
@@ -2490,20 +2493,20 @@ function ki(e, t = 15, n = "...") {
|
|
|
2490
2493
|
let a = i.slice(0, t).join(" ");
|
|
2491
2494
|
return i.length >= t && (a += n), a;
|
|
2492
2495
|
}
|
|
2493
|
-
function
|
|
2496
|
+
function ji(e) {
|
|
2494
2497
|
let t = l(e);
|
|
2495
2498
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
|
|
2496
2499
|
}
|
|
2497
|
-
function
|
|
2500
|
+
function Mi(e, t) {
|
|
2498
2501
|
let n = l(e);
|
|
2499
2502
|
if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
|
|
2500
2503
|
switch (t) {
|
|
2501
|
-
case "cjk": return (e.match(
|
|
2502
|
-
case "auto": return
|
|
2504
|
+
case "cjk": return (e.match(di) || []).length + (e.match(fi) || []).length;
|
|
2505
|
+
case "auto": return di.test(e) ? e.match(di).length + (e.match(fi) || []).length : e.split(/\s+/).length;
|
|
2503
2506
|
default: return e.split(/\s+/).length;
|
|
2504
2507
|
}
|
|
2505
2508
|
}
|
|
2506
|
-
function
|
|
2509
|
+
function Ni(e, t = "and") {
|
|
2507
2510
|
switch (t = l(t), this.context.memoryLimit.use(e.length + t.length), e.length) {
|
|
2508
2511
|
case 0: return "";
|
|
2509
2512
|
case 1: return e[0];
|
|
@@ -2511,83 +2514,83 @@ function Mi(e, t = "and") {
|
|
|
2511
2514
|
default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
|
|
2512
2515
|
}
|
|
2513
2516
|
}
|
|
2514
|
-
var
|
|
2517
|
+
var Pi = /*#__PURE__*/ Object.freeze({
|
|
2515
2518
|
__proto__: null,
|
|
2516
|
-
append:
|
|
2517
|
-
prepend:
|
|
2518
|
-
lstrip:
|
|
2519
|
-
downcase:
|
|
2520
|
-
upcase:
|
|
2521
|
-
remove:
|
|
2522
|
-
remove_first:
|
|
2523
|
-
remove_last:
|
|
2524
|
-
rstrip:
|
|
2525
|
-
split:
|
|
2526
|
-
strip:
|
|
2527
|
-
strip_newlines:
|
|
2528
|
-
capitalize:
|
|
2529
|
-
replace:
|
|
2530
|
-
replace_first:
|
|
2531
|
-
replace_last:
|
|
2532
|
-
truncate:
|
|
2533
|
-
truncatewords:
|
|
2534
|
-
normalize_whitespace:
|
|
2535
|
-
number_of_words:
|
|
2536
|
-
array_to_sentence_string:
|
|
2519
|
+
append: pi,
|
|
2520
|
+
prepend: mi,
|
|
2521
|
+
lstrip: hi,
|
|
2522
|
+
downcase: gi,
|
|
2523
|
+
upcase: _i,
|
|
2524
|
+
remove: vi,
|
|
2525
|
+
remove_first: yi,
|
|
2526
|
+
remove_last: bi,
|
|
2527
|
+
rstrip: xi,
|
|
2528
|
+
split: Si,
|
|
2529
|
+
strip: Ci,
|
|
2530
|
+
strip_newlines: wi,
|
|
2531
|
+
capitalize: Ti,
|
|
2532
|
+
replace: Ei,
|
|
2533
|
+
replace_first: Di,
|
|
2534
|
+
replace_last: Oi,
|
|
2535
|
+
truncate: ki,
|
|
2536
|
+
truncatewords: Ai,
|
|
2537
|
+
normalize_whitespace: ji,
|
|
2538
|
+
number_of_words: Mi,
|
|
2539
|
+
array_to_sentence_string: Ni
|
|
2537
2540
|
});
|
|
2538
|
-
function
|
|
2541
|
+
function Fi(e) {
|
|
2539
2542
|
return btoa(String.fromCharCode(...new TextEncoder().encode(e)));
|
|
2540
2543
|
}
|
|
2541
|
-
function
|
|
2544
|
+
function Ii(e) {
|
|
2542
2545
|
return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
|
|
2543
2546
|
}
|
|
2544
|
-
function
|
|
2547
|
+
function Li(e) {
|
|
2545
2548
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
|
|
2546
2549
|
let t = l(e);
|
|
2547
|
-
return this.context.memoryLimit.use(t.length),
|
|
2550
|
+
return this.context.memoryLimit.use(t.length), Fi(t);
|
|
2548
2551
|
}
|
|
2549
|
-
function
|
|
2552
|
+
function Ri(e) {
|
|
2550
2553
|
let t = l(e);
|
|
2551
|
-
return this.context.memoryLimit.use(t.length),
|
|
2554
|
+
return this.context.memoryLimit.use(t.length), Ii(t);
|
|
2552
2555
|
}
|
|
2553
|
-
var
|
|
2556
|
+
var zi = /*#__PURE__*/ Object.freeze({
|
|
2554
2557
|
__proto__: null,
|
|
2555
|
-
base64_encode:
|
|
2556
|
-
base64_decode:
|
|
2558
|
+
base64_encode: Li,
|
|
2559
|
+
base64_decode: Ri
|
|
2557
2560
|
});
|
|
2558
|
-
function
|
|
2561
|
+
function Bi(e) {
|
|
2559
2562
|
let t = new Uint8Array(e), n = "";
|
|
2560
2563
|
for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
|
|
2561
2564
|
return n;
|
|
2562
2565
|
}
|
|
2563
|
-
function
|
|
2566
|
+
function Vi(e) {
|
|
2564
2567
|
return E(this, void 0, void 0, function* () {
|
|
2565
2568
|
let t = new TextEncoder().encode(e);
|
|
2566
|
-
return
|
|
2569
|
+
return Bi(yield crypto.subtle.digest("SHA-256", t));
|
|
2567
2570
|
});
|
|
2568
2571
|
}
|
|
2569
|
-
function
|
|
2572
|
+
function Hi(e, t) {
|
|
2570
2573
|
return E(this, void 0, void 0, function* () {
|
|
2571
2574
|
let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
|
|
2572
2575
|
name: "HMAC",
|
|
2573
2576
|
hash: "SHA-256"
|
|
2574
2577
|
}, !1, ["sign"]);
|
|
2575
|
-
return
|
|
2578
|
+
return Bi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
|
|
2576
2579
|
});
|
|
2577
2580
|
}
|
|
2578
|
-
function
|
|
2581
|
+
function Ui(e) {
|
|
2579
2582
|
let t = l(e);
|
|
2580
|
-
return this.context.memoryLimit.use(t.length),
|
|
2583
|
+
return this.context.memoryLimit.use(t.length), Vi(t);
|
|
2581
2584
|
}
|
|
2582
|
-
function
|
|
2585
|
+
function Wi(e, t) {
|
|
2583
2586
|
let n = l(e), r = l(t);
|
|
2584
|
-
return this.context.memoryLimit.use(n.length + r.length),
|
|
2587
|
+
return this.context.memoryLimit.use(n.length + r.length), Hi(n, r);
|
|
2585
2588
|
}
|
|
2586
|
-
var
|
|
2589
|
+
var Gi = /*#__PURE__*/ Object.freeze({
|
|
2587
2590
|
__proto__: null,
|
|
2588
|
-
sha256:
|
|
2589
|
-
hmac_sha256:
|
|
2590
|
-
}),
|
|
2591
|
+
sha256: Ui,
|
|
2592
|
+
hmac_sha256: Wi
|
|
2593
|
+
}), Ki = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, _n), ur), yr), ni), ui), Pi), zi), Gi), cn), qi = class extends L {
|
|
2591
2594
|
constructor(e, t, n) {
|
|
2592
2595
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", "expected \"=\""), this.tokenizer.advance(), this.value = new z(this.tokenizer.readFilteredValue(), this.liquid);
|
|
2593
2596
|
}
|
|
@@ -2600,11 +2603,11 @@ var Wi = /*#__PURE__*/ Object.freeze({
|
|
|
2600
2603
|
*localScope() {
|
|
2601
2604
|
yield this.identifier;
|
|
2602
2605
|
}
|
|
2603
|
-
},
|
|
2606
|
+
}, Ji = [
|
|
2604
2607
|
"offset",
|
|
2605
2608
|
"limit",
|
|
2606
2609
|
"reversed"
|
|
2607
|
-
],
|
|
2610
|
+
], Yi = class extends L {
|
|
2608
2611
|
constructor(e, t, n, r) {
|
|
2609
2612
|
super(e, t, n);
|
|
2610
2613
|
let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
@@ -2628,7 +2631,7 @@ var Wi = /*#__PURE__*/ Object.freeze({
|
|
|
2628
2631
|
let i = "continue-" + this.variable + "-" + this.collection.getText();
|
|
2629
2632
|
e.push(Z({ continue: e.getRegister(i, {}) }));
|
|
2630
2633
|
let a = yield this.hash.render(e);
|
|
2631
|
-
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) =>
|
|
2634
|
+
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => Ji.includes(e)) : Ji.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? Zi(e, a.offset) : t === "limit" ? Qi(e, a.limit) : Xi(e), r), e.setRegister(i, (a.offset || 0) + r.length);
|
|
2632
2635
|
let o = Z({ forloop: new Ie(r.length, this.collection.getText(), this.variable) });
|
|
2633
2636
|
e.push(o);
|
|
2634
2637
|
for (let i of r) {
|
|
@@ -2649,16 +2652,16 @@ var Wi = /*#__PURE__*/ Object.freeze({
|
|
|
2649
2652
|
return [this.variable, "forloop"];
|
|
2650
2653
|
}
|
|
2651
2654
|
};
|
|
2652
|
-
function
|
|
2655
|
+
function Xi(e) {
|
|
2653
2656
|
return [...e].reverse();
|
|
2654
2657
|
}
|
|
2655
|
-
function
|
|
2658
|
+
function Zi(e, t) {
|
|
2656
2659
|
return e.slice(t);
|
|
2657
2660
|
}
|
|
2658
|
-
function
|
|
2661
|
+
function Qi(e, t) {
|
|
2659
2662
|
return e.slice(0, t);
|
|
2660
2663
|
}
|
|
2661
|
-
var
|
|
2664
|
+
var $i = class extends L {
|
|
2662
2665
|
constructor(e, t, n, r) {
|
|
2663
2666
|
for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
|
|
2664
2667
|
let e = t.shift();
|
|
@@ -2682,7 +2685,7 @@ var Qi = class extends L {
|
|
|
2682
2685
|
*localScope() {
|
|
2683
2686
|
yield this.identifier;
|
|
2684
2687
|
}
|
|
2685
|
-
},
|
|
2688
|
+
}, ea = class extends L {
|
|
2686
2689
|
constructor(e, t, n, r) {
|
|
2687
2690
|
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new z(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
2688
2691
|
let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
|
|
@@ -2718,7 +2721,7 @@ var Qi = class extends L {
|
|
|
2718
2721
|
let e = this.branches.flatMap((e) => e.templates);
|
|
2719
2722
|
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
2720
2723
|
}
|
|
2721
|
-
},
|
|
2724
|
+
}, ta = class extends L {
|
|
2722
2725
|
constructor(e, t, n) {
|
|
2723
2726
|
for (super(e, t, n); t.length;) {
|
|
2724
2727
|
let e = t.shift();
|
|
@@ -2727,21 +2730,23 @@ var Qi = class extends L {
|
|
|
2727
2730
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2728
2731
|
}
|
|
2729
2732
|
render() {}
|
|
2730
|
-
},
|
|
2733
|
+
}, na = class extends L {
|
|
2731
2734
|
constructor(e, t, n, r) {
|
|
2732
2735
|
super(e, t, n);
|
|
2733
2736
|
let i = this.tokenizer;
|
|
2734
|
-
for (this.file =
|
|
2737
|
+
for (this.file = ra(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
|
|
2735
2738
|
i.skipBlank();
|
|
2736
2739
|
let e = i.p, t = i.readIdentifier();
|
|
2737
2740
|
if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
|
|
2738
2741
|
let e = i.readValue();
|
|
2739
2742
|
if (e) {
|
|
2740
2743
|
let n = i.p, r = i.readIdentifier(), a;
|
|
2741
|
-
r.content === "as" ? a = i.readIdentifier() : i.p = n
|
|
2744
|
+
r.content === "as" ? a = i.readIdentifier() : i.p = n;
|
|
2745
|
+
let o = {
|
|
2742
2746
|
value: e,
|
|
2743
2747
|
alias: a && a.content
|
|
2744
|
-
}
|
|
2748
|
+
};
|
|
2749
|
+
t.content === "with" ? this.with = o : this.forBinding = o, i.skipBlank(), i.peek() === "," && i.advance();
|
|
2745
2750
|
continue;
|
|
2746
2751
|
}
|
|
2747
2752
|
}
|
|
@@ -2751,15 +2756,15 @@ var Qi = class extends L {
|
|
|
2751
2756
|
this.hash = new R(i, n.options.keyValueSeparator);
|
|
2752
2757
|
}
|
|
2753
2758
|
*render(e, t) {
|
|
2754
|
-
let { liquid: n, hash: r } = this, i = yield
|
|
2759
|
+
let { liquid: n, hash: r } = this, i = yield aa(this.file, e, n);
|
|
2755
2760
|
C(i, () => `illegal file path "${i}"`);
|
|
2756
2761
|
let a = e.spawn(), o = a.bottom();
|
|
2757
|
-
if (
|
|
2762
|
+
if (Ge(o, yield r.render(e)), this.with) {
|
|
2758
2763
|
let { value: t, alias: n } = this.with;
|
|
2759
2764
|
o[n || i] = yield A(t, e);
|
|
2760
2765
|
}
|
|
2761
|
-
if (this.
|
|
2762
|
-
let { value: r, alias: s } = this.
|
|
2766
|
+
if (this.forBinding) {
|
|
2767
|
+
let { value: r, alias: s } = this.forBinding, c = u(yield A(r, e));
|
|
2763
2768
|
o.forloop = new Ie(c.length, r.getText(), s);
|
|
2764
2769
|
for (let e of c) {
|
|
2765
2770
|
o[s] = e;
|
|
@@ -2781,8 +2786,8 @@ var Qi = class extends L {
|
|
|
2781
2786
|
let { value: t, alias: n } = this.with;
|
|
2782
2787
|
a(n) ? e.push([n, t]) : a(this.file) && e.push([this.file, t]);
|
|
2783
2788
|
}
|
|
2784
|
-
if (this.
|
|
2785
|
-
let { value: t, alias: n } = this.
|
|
2789
|
+
if (this.forBinding) {
|
|
2790
|
+
let { value: t, alias: n } = this.forBinding;
|
|
2786
2791
|
a(n) ? e.push([n, t]) : a(this.file) && e.push([this.file, t]);
|
|
2787
2792
|
}
|
|
2788
2793
|
return {
|
|
@@ -2798,36 +2803,36 @@ var Qi = class extends L {
|
|
|
2798
2803
|
let { value: e } = this.with;
|
|
2799
2804
|
Y(e) && (yield e);
|
|
2800
2805
|
}
|
|
2801
|
-
if (this.
|
|
2802
|
-
let { value: e } = this.
|
|
2806
|
+
if (this.forBinding) {
|
|
2807
|
+
let { value: e } = this.forBinding;
|
|
2803
2808
|
Y(e) && (yield e);
|
|
2804
2809
|
}
|
|
2805
2810
|
}
|
|
2806
2811
|
};
|
|
2807
|
-
function
|
|
2812
|
+
function ra(e, t, n) {
|
|
2808
2813
|
if (t.options.dynamicPartials) {
|
|
2809
2814
|
let t = e.readValue();
|
|
2810
|
-
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 :
|
|
2815
|
+
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Wn(t) ? ia(n.parse(Vt(t))) : t;
|
|
2811
2816
|
}
|
|
2812
|
-
let r = [...e.readFileNameTemplate(t.options)], i =
|
|
2817
|
+
let r = [...e.readFileNameTemplate(t.options)], i = ia(n.parseTokens(r));
|
|
2813
2818
|
return i === "none" ? void 0 : i;
|
|
2814
2819
|
}
|
|
2815
|
-
function
|
|
2816
|
-
return e.length === 1 &&
|
|
2820
|
+
function ia(e) {
|
|
2821
|
+
return e.length === 1 && Hn(e[0].token) ? e[0].token.getContent() : e;
|
|
2817
2822
|
}
|
|
2818
|
-
function*
|
|
2823
|
+
function* aa(e, t, n) {
|
|
2819
2824
|
return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield A(e, t);
|
|
2820
2825
|
}
|
|
2821
|
-
var
|
|
2826
|
+
var oa = class extends L {
|
|
2822
2827
|
constructor(e, t, n, r) {
|
|
2823
2828
|
super(e, t, n);
|
|
2824
2829
|
let { tokenizer: i } = e;
|
|
2825
|
-
this.file =
|
|
2830
|
+
this.file = ra(i, this.liquid, r), this.currentFile = e.file;
|
|
2826
2831
|
let a = i.p;
|
|
2827
2832
|
i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new R(i, n.options.jekyllInclude || n.options.keyValueSeparator);
|
|
2828
2833
|
}
|
|
2829
2834
|
*render(e, t) {
|
|
2830
|
-
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield
|
|
2835
|
+
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield aa(this.file, e, n);
|
|
2831
2836
|
C(o, () => `illegal file path "${o}"`);
|
|
2832
2837
|
let s = e.saveRegister("blocks", "blockMode");
|
|
2833
2838
|
e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
|
|
@@ -2852,7 +2857,7 @@ var aa = class extends L {
|
|
|
2852
2857
|
*arguments() {
|
|
2853
2858
|
yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
|
|
2854
2859
|
}
|
|
2855
|
-
},
|
|
2860
|
+
}, sa = class extends L {
|
|
2856
2861
|
constructor(e, t, n) {
|
|
2857
2862
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2858
2863
|
}
|
|
@@ -2863,7 +2868,7 @@ var aa = class extends L {
|
|
|
2863
2868
|
*localScope() {
|
|
2864
2869
|
yield this.identifier;
|
|
2865
2870
|
}
|
|
2866
|
-
},
|
|
2871
|
+
}, ca = class extends L {
|
|
2867
2872
|
constructor(e, t, n) {
|
|
2868
2873
|
super(e, t, n), this.candidates = [];
|
|
2869
2874
|
let r = this.tokenizer.readValue();
|
|
@@ -2882,7 +2887,7 @@ var aa = class extends L {
|
|
|
2882
2887
|
*arguments() {
|
|
2883
2888
|
yield* this.candidates, this.group && (yield this.group);
|
|
2884
2889
|
}
|
|
2885
|
-
},
|
|
2890
|
+
}, la = class extends L {
|
|
2886
2891
|
constructor(e, t, n, r) {
|
|
2887
2892
|
super(e, t, n), this.branches = [];
|
|
2888
2893
|
let i = [];
|
|
@@ -2917,7 +2922,7 @@ var aa = class extends L {
|
|
|
2917
2922
|
arguments() {
|
|
2918
2923
|
return this.branches.map((e) => e.value);
|
|
2919
2924
|
}
|
|
2920
|
-
},
|
|
2925
|
+
}, ua = class extends L {
|
|
2921
2926
|
constructor(e, t, n) {
|
|
2922
2927
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2923
2928
|
}
|
|
@@ -2930,9 +2935,9 @@ var aa = class extends L {
|
|
|
2930
2935
|
*localScope() {
|
|
2931
2936
|
yield this.identifier;
|
|
2932
2937
|
}
|
|
2933
|
-
},
|
|
2938
|
+
}, da = class extends L {
|
|
2934
2939
|
constructor(e, t, n, r) {
|
|
2935
|
-
super(e, t, n), this.file =
|
|
2940
|
+
super(e, t, n), this.file = ra(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
|
|
2936
2941
|
}
|
|
2937
2942
|
*render(e, t) {
|
|
2938
2943
|
let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
|
|
@@ -2940,7 +2945,7 @@ var aa = class extends L {
|
|
|
2940
2945
|
e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
|
|
2941
2946
|
return;
|
|
2942
2947
|
}
|
|
2943
|
-
let o = yield
|
|
2948
|
+
let o = yield aa(this.file, e, n);
|
|
2944
2949
|
C(o, () => `illegal file path "${o}"`);
|
|
2945
2950
|
let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
|
|
2946
2951
|
e.setRegister("blockMode", $.STORE);
|
|
@@ -2962,7 +2967,7 @@ var aa = class extends L {
|
|
|
2962
2967
|
scope: Object.keys(this.args.hash)
|
|
2963
2968
|
};
|
|
2964
2969
|
}
|
|
2965
|
-
},
|
|
2970
|
+
}, fa = class extends L {
|
|
2966
2971
|
constructor(e, t, n, r) {
|
|
2967
2972
|
super(e, t, n), this.templates = [];
|
|
2968
2973
|
let i = /\w+/.exec(e.args);
|
|
@@ -2992,7 +2997,7 @@ var aa = class extends L {
|
|
|
2992
2997
|
blockScope() {
|
|
2993
2998
|
return ["block"];
|
|
2994
2999
|
}
|
|
2995
|
-
},
|
|
3000
|
+
}, pa = class extends L {
|
|
2996
3001
|
constructor(e, t, n) {
|
|
2997
3002
|
for (super(e, t, n), this.tokens = []; t.length;) {
|
|
2998
3003
|
let e = t.shift();
|
|
@@ -3004,7 +3009,7 @@ var aa = class extends L {
|
|
|
3004
3009
|
render() {
|
|
3005
3010
|
return this.tokens.map((e) => e.getText()).join("");
|
|
3006
3011
|
}
|
|
3007
|
-
},
|
|
3012
|
+
}, ma = class extends Ie {
|
|
3008
3013
|
constructor(e, t, n, r) {
|
|
3009
3014
|
super(e, n, r), this.length = e, this.cols = t;
|
|
3010
3015
|
}
|
|
@@ -3023,21 +3028,21 @@ var aa = class extends L {
|
|
|
3023
3028
|
col_last() {
|
|
3024
3029
|
return this.col() === this.cols;
|
|
3025
3030
|
}
|
|
3026
|
-
},
|
|
3027
|
-
assign:
|
|
3028
|
-
for:
|
|
3029
|
-
capture:
|
|
3030
|
-
case:
|
|
3031
|
-
comment:
|
|
3032
|
-
include:
|
|
3033
|
-
render:
|
|
3034
|
-
decrement:
|
|
3035
|
-
increment:
|
|
3036
|
-
cycle:
|
|
3037
|
-
if:
|
|
3038
|
-
layout:
|
|
3039
|
-
block:
|
|
3040
|
-
raw:
|
|
3031
|
+
}, ha = {
|
|
3032
|
+
assign: qi,
|
|
3033
|
+
for: Yi,
|
|
3034
|
+
capture: $i,
|
|
3035
|
+
case: ea,
|
|
3036
|
+
comment: ta,
|
|
3037
|
+
include: oa,
|
|
3038
|
+
render: na,
|
|
3039
|
+
decrement: sa,
|
|
3040
|
+
increment: ua,
|
|
3041
|
+
cycle: ca,
|
|
3042
|
+
if: la,
|
|
3043
|
+
layout: da,
|
|
3044
|
+
block: fa,
|
|
3045
|
+
raw: pa,
|
|
3041
3046
|
tablerow: class extends L {
|
|
3042
3047
|
constructor(e, t, n, r) {
|
|
3043
3048
|
super(e, t, n);
|
|
@@ -3054,7 +3059,7 @@ var aa = class extends L {
|
|
|
3054
3059
|
*render(e, t) {
|
|
3055
3060
|
let n = u(yield A(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0;
|
|
3056
3061
|
n = n.slice(i, i + (r.limit === void 0 ? n.length : r.limit));
|
|
3057
|
-
let a = r.cols || n.length, o = this.liquid.renderer, s = new
|
|
3062
|
+
let a = r.cols || n.length, o = this.liquid.renderer, s = new ma(n.length, a, this.collection.getText(), this.variable), c = Z({ tablerowloop: s });
|
|
3058
3063
|
e.push(c);
|
|
3059
3064
|
for (let r = 0; r < n.length; r++, s.next()) c[this.variable] = n[r], s.col0() === 0 && (s.row() !== 1 && t.write("</tr>"), t.write(`<tr class="row${s.row()}">`)), t.write(`<td class="col${s.col()}">`), yield o.renderTemplates(this.templates, e, t), t.write("</td>");
|
|
3060
3065
|
n.length && t.write("</tr>"), e.pop();
|
|
@@ -3156,9 +3161,9 @@ var aa = class extends L {
|
|
|
3156
3161
|
}
|
|
3157
3162
|
render() {}
|
|
3158
3163
|
}
|
|
3159
|
-
},
|
|
3164
|
+
}, ga = class e {
|
|
3160
3165
|
constructor(e = {}) {
|
|
3161
|
-
this.renderer = new
|
|
3166
|
+
this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = yn(e), this.parser = new K(this), oe(ha, (e, t) => this.registerTag(t, e)), oe(Ki, (e, t) => this.registerFilter(t, e));
|
|
3162
3167
|
}
|
|
3163
3168
|
parse(e, t) {
|
|
3164
3169
|
return new K(this).parse(e, t);
|
|
@@ -3242,7 +3247,7 @@ var aa = class extends L {
|
|
|
3242
3247
|
this.filters[e] = t;
|
|
3243
3248
|
}
|
|
3244
3249
|
registerTag(e, t) {
|
|
3245
|
-
this.tags[e] = o(t) ? t :
|
|
3250
|
+
this.tags[e] = o(t) ? t : En(t);
|
|
3246
3251
|
}
|
|
3247
3252
|
plugin(t) {
|
|
3248
3253
|
return t.call(this, e);
|
|
@@ -3336,6 +3341,6 @@ var aa = class extends L {
|
|
|
3336
3341
|
}
|
|
3337
3342
|
};
|
|
3338
3343
|
//#endregion
|
|
3339
|
-
export {
|
|
3344
|
+
export { ga as Liquid };
|
|
3340
3345
|
|
|
3341
|
-
//# sourceMappingURL=liquid.browser-
|
|
3346
|
+
//# sourceMappingURL=liquid.browser-DKKBzRQu.js.map
|