@templatical/editor 0.11.1 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/{AiChatSidebar-Cm5RM5Qh.js → AiChatSidebar-CXH7l1Ar.js} +13 -13
  2. package/dist/{AiFeatureMenu-DBWcfcWl.js → AiFeatureMenu-BKbUUc1D.js} +10 -10
  3. package/dist/{BlockIssueBadge-BF4sdsr4.js → BlockIssueBadge-C-EPqWsh.js} +5 -5
  4. package/dist/{CloudEditor-C6cSXtcP.js → CloudEditor-CB16QzKM.js} +60 -60
  5. package/dist/{CollaboratorBar-B8-AQfG2.js → CollaboratorBar-ACUA7lBJ.js} +4 -4
  6. package/dist/{CommentsSidebar-BQJzyCc6.js → CommentsSidebar-CpRLN40c.js} +19 -19
  7. package/dist/{CountdownBlock-D_AsF4F3.js → CountdownBlock-C-6o19qS.js} +3 -3
  8. package/dist/{CountdownToolbar-BGTkFky9.js → CountdownToolbar-Dol7Q0Pv.js} +3 -3
  9. package/dist/{DesignReferenceSidebar-O3epZMXD.js → DesignReferenceSidebar-0dTsBW08.js} +9 -9
  10. package/dist/{IssuesPanel-CPBbR8yp.js → IssuesPanel-I0z6k6-H.js} +11 -11
  11. package/dist/{LoadingTrack-e67FA0NP.js → LoadingTrack-C7mGWPHS.js} +1 -1
  12. package/dist/{ModuleBrowserModal-B_tLzFAk.js → ModuleBrowserModal-Bz9hSjMS.js} +10 -10
  13. package/dist/{ModulePreviewCanvas-B7pNpAHM.js → ModulePreviewCanvas-CpaumPMS.js} +23 -23
  14. package/dist/{NumberWithSuffix-eI9pPDWT.js → NumberWithSuffix-Bp40ik4l.js} +101 -79
  15. package/dist/{ParagraphEditor-DmA9K7dx.js → ParagraphEditor-BqRFV_Y-.js} +47 -47
  16. package/dist/{RichTextEditorContent-Dvn4woIt.js → RichTextEditorContent-Q5altsx1.js} +6 -6
  17. package/dist/{SaveModuleDialog-B8ypoxdj.js → SaveModuleDialog-DmfvH5D0.js} +7 -7
  18. package/dist/{SnapshotHistory-BTHd7CVP.js → SnapshotHistory-C052o-8U.js} +13 -13
  19. package/dist/{TemplateScoringPanel-Bt5Rsgen.js → TemplateScoringPanel-CUs8XmIi.js} +24 -24
  20. package/dist/{TestEmailModal-CBIFMzK6.js → TestEmailModal-BIIxRWUt.js} +5 -5
  21. package/dist/{TitleEditor-C9jDA5lI.js → TitleEditor-FMh54Cx5.js} +18 -18
  22. package/dist/{TplModal-ND4fiqOS.js → TplModal-utMtXzSO.js} +4 -4
  23. package/dist/{blockTypeIcons-Bn-_Smlm.js → blockTypeIcons-C6UGDmrC.js} +5 -5
  24. package/dist/bundle-stats.json +6 -6
  25. package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js → AiFeatureMenu-4NhCFeTh.js} +6 -6
  26. package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js.map → AiFeatureMenu-4NhCFeTh.js.map} +1 -1
  27. package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js → BlockIssueBadge-BYKThwhE.js} +6 -6
  28. package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js.map → BlockIssueBadge-BYKThwhE.js.map} +1 -1
  29. package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js → CloudEditor-DSeihOan.js} +162 -162
  30. package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js.map → CloudEditor-DSeihOan.js.map} +1 -1
  31. package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js → CollaboratorBar-Dn5gXNDt.js} +4 -4
  32. package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js.map → CollaboratorBar-Dn5gXNDt.js.map} +1 -1
  33. package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js → CountdownBlock-hYoJdVOt.js} +3 -3
  34. package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js.map → CountdownBlock-hYoJdVOt.js.map} +1 -1
  35. package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js → CountdownToolbar-BQn0Kj0X.js} +4 -4
  36. package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js.map → CountdownToolbar-BQn0Kj0X.js.map} +1 -1
  37. package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js → IssuesPanel-_5fEnivU.js} +11 -11
  38. package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js.map → IssuesPanel-_5fEnivU.js.map} +1 -1
  39. package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js → ModuleBrowserModal-DtCksAeW.js} +9 -9
  40. package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js.map → ModuleBrowserModal-DtCksAeW.js.map} +1 -1
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js → ModulePreviewCanvas-CCOvabZd.js} +33 -33
  42. package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js.map → ModulePreviewCanvas-CCOvabZd.js.map} +1 -1
  43. package/dist/cdn/chunks/{NumberWithSuffix-Deo8EOSz.js → NumberWithSuffix-cdWjAK6y.js} +140 -119
  44. package/dist/cdn/chunks/NumberWithSuffix-cdWjAK6y.js.map +1 -0
  45. package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js → ParagraphEditor-BnhnFOW1.js} +67 -67
  46. package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js.map → ParagraphEditor-BnhnFOW1.js.map} +1 -1
  47. package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js → RichTextEditorContent-DV2yknp8.js} +5 -5
  48. package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js.map → RichTextEditorContent-DV2yknp8.js.map} +1 -1
  49. package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js → SaveModuleDialog-CCX5U7VA.js} +6 -6
  50. package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js.map → SaveModuleDialog-CCX5U7VA.js.map} +1 -1
  51. package/dist/cdn/chunks/{TitleEditor--XulEf7R.js → TitleEditor-CQqklX0D.js} +13 -13
  52. package/dist/cdn/chunks/{TitleEditor--XulEf7R.js.map → TitleEditor-CQqklX0D.js.map} +1 -1
  53. package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +22 -0
  54. package/dist/cdn/chunks/{blockTypeIcons-BJND4L-A.js.map → blockTypeIcons-CpGPHppB.js.map} +1 -1
  55. package/dist/{de-BJMLpg_p.js → cdn/chunks/de-BpseTWOA.js} +12 -2
  56. package/dist/cdn/chunks/de-BpseTWOA.js.map +1 -0
  57. package/dist/cdn/chunks/{draggable-iAb7QVJo.js → draggable-Bci-fq8y.js} +473 -465
  58. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +1 -0
  59. package/dist/{en-DFMMw7SL.js → cdn/chunks/en-VGIQ0WNq.js} +12 -2
  60. package/dist/cdn/chunks/en-VGIQ0WNq.js.map +1 -0
  61. package/dist/cdn/chunks/{extensions-BtWoLy6E.js → extensions-Ds9GnMcd.js} +25 -25
  62. package/dist/cdn/chunks/{extensions-BtWoLy6E.js.map → extensions-Ds9GnMcd.js.map} +1 -1
  63. package/dist/cdn/chunks/{features-mO5NzwnN.js → features-DxWz_Enw.js} +1048 -1059
  64. package/dist/cdn/chunks/features-DxWz_Enw.js.map +1 -0
  65. package/dist/cdn/chunks/{icons-CuXm6XAT.js → icons-BflGUmFY.js} +146 -146
  66. package/dist/cdn/chunks/icons-BflGUmFY.js.map +1 -0
  67. package/dist/cdn/chunks/{liquid.browser-DUDc3U21.js → liquid.browser-DKKBzRQu.js} +502 -497
  68. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -0
  69. package/dist/cdn/chunks/{media-library-BtNzYUTi.js → media-library-C479-QcE.js} +565 -565
  70. package/dist/cdn/chunks/{media-library-BtNzYUTi.js.map → media-library-C479-QcE.js.map} +1 -1
  71. package/dist/cdn/chunks/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +11 -3
  72. package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +1 -0
  73. package/dist/cdn/chunks/{pusher-CHo5Cua0.js → pusher-BICWUP2j.js} +3 -3
  74. package/dist/cdn/chunks/{pusher-CHo5Cua0.js.map → pusher-BICWUP2j.js.map} +1 -1
  75. package/dist/cdn/chunks/{quality-YKe19zp8.js → quality-BL_pEvFP.js} +101 -101
  76. package/dist/cdn/chunks/{quality-YKe19zp8.js.map → quality-BL_pEvFP.js.map} +1 -1
  77. package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
  78. package/dist/cdn/chunks/{renderer-BcOaxCs6.js → renderer-C0vdAODQ.js} +53 -50
  79. package/dist/cdn/chunks/renderer-C0vdAODQ.js.map +1 -0
  80. package/dist/cdn/chunks/{src-B_ZRmuit.js → src-DzvOWQ9S.js} +11 -11
  81. package/dist/cdn/chunks/{src-B_ZRmuit.js.map → src-DzvOWQ9S.js.map} +1 -1
  82. package/dist/cdn/chunks/{styles-DDBCCJ-l.js → styles-LfeoSNRA.js} +673 -599
  83. package/dist/cdn/chunks/styles-LfeoSNRA.js.map +1 -0
  84. package/dist/cdn/chunks/{tiptap-BAwu9VcJ.js → tiptap-CwScfbsM.js} +5 -4
  85. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +1 -0
  86. package/dist/cdn/editor.css +1 -1
  87. package/dist/cdn/editor.js +36 -36
  88. package/dist/cdn/editor.js.map +1 -1
  89. package/dist/{check-BsNM6BDs.js → check-BRzXxFHr.js} +1 -1
  90. package/dist/{chevron-down-fcsZ5DU7.js → chevron-down-DmEgzmYT.js} +1 -1
  91. package/dist/{circle-alert-BZTbwc-B.js → circle-alert-BStvZr3O.js} +1 -1
  92. package/dist/{clock-B7iQRubC.js → clock-Blwp_1R6.js} +1 -1
  93. package/dist/{cloud-Dom4EH5Z.js → cloud-_olro76D.js} +6 -6
  94. package/dist/{createLucideIcon-C_fetdGM.js → createLucideIcon-CmPAC-gt.js} +3 -3
  95. package/dist/{cdn/chunks/de-BJMLpg_p.js → de-BpseTWOA.js} +10 -4
  96. package/dist/{dist-ByBVNmRN.js → dist-412xXefB.js} +1 -1
  97. package/dist/{dist-XdF11ZkX.js → dist-BCQZZUE9.js} +1 -1
  98. package/dist/{dist-CD3wbUoR.js → dist-BNEdeWub.js} +1 -1
  99. package/dist/dist-BctFrpeA.js +472 -0
  100. package/dist/{dist-eVlXvuKI.js → dist-BlG7k25W.js} +1 -1
  101. package/dist/{dist-BLcYl_de.js → dist-BwgjpLfr.js} +1 -1
  102. package/dist/{dist-Dhs3W2WW.js → dist-Cz79qrLL.js} +1 -1
  103. package/dist/{dist-c2sj5PQ5.js → dist-D6x1cQeh.js} +3 -3
  104. package/dist/{dist-cT52Hh9L.js → dist-DJ9aD8yA.js} +3 -3
  105. package/dist/{dist-Cwl7XXr4.js → dist-DULfKmTh.js} +3 -3
  106. package/dist/{dist-Dem8ODLh.js → dist-DhKTdU52.js} +3 -2
  107. package/dist/{dist-BOHAk4zI.js → dist-b7Ak-CuM.js} +1 -1
  108. package/dist/{dist-B4NkMBYc.js → dist-o73iaGqy.js} +1 -1
  109. package/dist/{dist-BsB4nPJD.js → dist-u0iIJH3V.js} +1 -1
  110. package/dist/{cdn/chunks/en-DFMMw7SL.js → en-VGIQ0WNq.js} +10 -4
  111. package/dist/{extensions-B2lSGCA8.js → extensions-XPlNAKIL.js} +23 -23
  112. package/dist/formatRelativeTime-CtUU-QZ8.js +10 -0
  113. package/dist/{image-up-1xrPPJYH.js → image-up-BFPbw_Zq.js} +1 -1
  114. package/dist/{info-ByAFxArD.js → info-B_qLEBN2.js} +1 -1
  115. package/dist/{keys-DsRdOmg3.js → keys-mFiJ5N0_.js} +1 -1
  116. package/dist/{liquid.browser--qtl1Fqy.js → liquid.browser-CVjP5Mex.js} +501 -496
  117. package/dist/{list-checks-CKUP4UZU.js → list-checks-CGg7JxPm.js} +1 -1
  118. package/dist/{loader-circle-BuxX338d.js → loader-circle-CDF8eR_Q.js} +1 -1
  119. package/dist/{message-circle-nLwqegRi.js → message-circle-C3cHsCJl.js} +1 -1
  120. package/dist/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +10 -2
  121. package/dist/{refresh-cw-DAkD6iDI.js → refresh-cw-Butml7Q4.js} +1 -1
  122. package/dist/{scan-line-DEELRJJ5.js → scan-line-XYEqim_E.js} +1 -1
  123. package/dist/{send-DCMgrNT4.js → send-k7npFJNO.js} +1 -1
  124. package/dist/{shield-check-BFtVr_ov.js → shield-check-CV6GbmCu.js} +1 -1
  125. package/dist/{sparkles-CeYIQ5RJ.js → sparkles-C965Xop4.js} +1 -1
  126. package/dist/style.css +1 -1
  127. package/dist/{styles-DZcQGzsN.js → styles-DSm9Ijxt.js} +898 -824
  128. package/dist/templatical-editor.js +14 -14
  129. package/dist/{text-align-start-BsmIoqLS.js → text-align-start-Bxnps8fH.js} +1 -1
  130. package/dist/{trash-2-C2S4-CIH.js → trash-2-DpGb7fIt.js} +1 -1
  131. package/dist/{triangle-alert-DMdedF6W.js → triangle-alert-BKYElAwz.js} +1 -1
  132. package/dist/{useAliveFlag-DlVvpZxc.js → useAliveFlag-BinvbqQR.js} +1 -1
  133. package/dist/{useCloudI18n-BEuiZdzs.js → useCloudI18n-L3H2XvdW.js} +2 -2
  134. package/dist/{useEditorCore-D00QzW07.js → useEditorCore-D7dQFRkw.js} +406 -486
  135. package/dist/{useI18n-DNspT6uw.js → useI18n-CTs_bP9d.js} +2 -2
  136. package/dist/{useMergeTag-abutjUud.js → useMergeTag-e3RSY-s3.js} +6 -6
  137. package/dist/usePopoverRoot-DVh7NY1q.js +8 -0
  138. package/dist/{vue.runtime.esm-bundler-mPytWZFh.js → vue.runtime.esm-bundler-B2k01iQh.js} +345 -337
  139. package/dist/{x-_9jw816B.js → x-CGjkjdKK.js} +1 -1
  140. package/package.json +10 -10
  141. package/dist/cdn/chunks/NumberWithSuffix-Deo8EOSz.js.map +0 -1
  142. package/dist/cdn/chunks/blockTypeIcons-BJND4L-A.js +0 -22
  143. package/dist/cdn/chunks/de-BJMLpg_p.js.map +0 -1
  144. package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +0 -1
  145. package/dist/cdn/chunks/en-DFMMw7SL.js.map +0 -1
  146. package/dist/cdn/chunks/features-mO5NzwnN.js.map +0 -1
  147. package/dist/cdn/chunks/icons-CuXm6XAT.js.map +0 -1
  148. package/dist/cdn/chunks/liquid.browser-DUDc3U21.js.map +0 -1
  149. package/dist/cdn/chunks/pt-BR-C-9aWLlR.js.map +0 -1
  150. package/dist/cdn/chunks/renderer-BcOaxCs6.js.map +0 -1
  151. package/dist/cdn/chunks/styles-DDBCCJ-l.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +0 -1
  153. package/dist/dist-D6L_WdRL.js +0 -403
  154. package/dist/formatRelativeTime-CyDg5cDD.js +0 -12
  155. package/dist/usePopoverRoot-DG3mlvd1.js +0 -8
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/liquidjs@10.27.0/node_modules/liquidjs/dist/liquid.browser.mjs
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 Ue(e) {
455
- let t = {};
456
- for (let [n, r] of Object.entries(e)) {
457
- let e = t;
458
- for (let t = 0; t < n.length; t++) {
459
- let r = n[t];
460
- e[r] = e[r] || {}, t === n.length - 1 && S(n[t]) && (e[r].needBoundary = !0), e = e[r];
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 t;
466
+ return Ue.set(e, n), n;
465
467
  }
466
- var We = function() {
467
- return We = Object.assign || function(e) {
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
- }, We.apply(this, arguments);
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 Ge(e, t) {
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 Ke = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
533
- function qe(e) {
534
+ var qe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
535
+ function Je(e) {
534
536
  return [
535
537
  31,
536
- Xe(e) ? 29 : 28,
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 Je(e) {
551
+ function Ye(e) {
550
552
  let t = 0;
551
- for (let n = 0; n < e.getMonth(); ++n) t += qe(e)[n];
553
+ for (let n = 0; n < e.getMonth(); ++n) t += Je(e)[n];
552
554
  return t + e.getDate();
553
555
  }
554
- function Ye(e, t) {
555
- let n = Je(e) + (t - e.getDay()), r = 7 - new Date(e.getFullYear(), 0, 1).getDay() + t;
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 Xe(e) {
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 Ze(e) {
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 Qe(e) {
578
+ function $e(e) {
577
579
  return parseInt(e.getFullYear().toString().substring(0, 2), 10);
578
580
  }
579
- var $e = {
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
- }, et = /* @__PURE__ */ new Set("aAbBceklpP");
594
- function tt(e, t) {
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 nt = {
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) => Qe(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) => Je(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) => Ze(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) => Ye(e, 0),
628
+ U: (e) => Xe(e, 0),
627
629
  w: (e) => e.getDay(),
628
- W: (e) => Ye(e, 1),
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: tt,
634
- Z: (e, t) => e.getTimeZoneName() || tt(e, t),
635
+ z: nt,
636
+ Z: (e, t) => e.getTimeZoneName() || nt(e, t),
635
637
  t: () => " ",
636
638
  n: () => "\n",
637
639
  "%": () => "%"
638
640
  };
639
- nt.h = nt.b;
640
- function rt(e, t, n) {
641
+ rt.h = rt.b;
642
+ function it(e, t, n) {
641
643
  let r = "", i = t, a;
642
- for (; a = Ke.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += it(e, a, n);
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 it(e, t, n) {
646
- let [r, i = "", a, o, s] = t, c = nt[s];
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 = et.has(s) ? " " : "0", f = a || $e[s] || 0;
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 at() {
660
+ function ot() {
659
661
  return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
660
662
  }
661
- var ot = 6e4, st = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ct = [
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
- ], lt = ct.map((e) => e.slice(0, 3)), ut = [
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
- ], dt = ut.map((e) => e.slice(0, 3)), k = class e {
684
+ ], ft = dt.map((e) => e.slice(0, 3)), k = class e {
683
685
  constructor(t, n, r) {
684
- this.locale = n, this.DateTimeFormat = at(), 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 : "";
685
- let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * ot, o = this.date.getTime() + i;
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" }) ?? ct[this.getMonth()];
734
+ return this.format({ month: "long" }) ?? lt[this.getMonth()];
733
735
  }
734
736
  getShortMonthName() {
735
- return this.format({ month: "short" }) ?? lt[this.getMonth()];
737
+ return this.format({ month: "short" }) ?? ut[this.getMonth()];
736
738
  }
737
739
  getLongWeekdayName() {
738
- return this.format({ weekday: "long" }) ?? ut[this.displayDate.getDay()];
740
+ return this.format({ weekday: "long" }) ?? dt[this.displayDate.getDay()];
739
741
  }
740
742
  getShortWeekdayName() {
741
- return this.format({ weekday: "short" }) ?? dt[this.displayDate.getDay()];
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(st);
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
- }, ft = class {
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
- }, pt = class extends e {
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
- }, mt = class extends pt {
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
- }, ht = class extends pt {
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
- }, gt = class extends e {
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
- }, _t = class extends e {
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
- }, vt = class extends e {
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
- }, yt = class extends e {
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
- }, bt = {
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
- }, xt = {
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
- }, St = class extends e {
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
- let e = this.getText();
840
- return e in bt ? bt[e] : 1;
841
+ return this.operator in xt ? xt[this.operator] : 1;
841
842
  }
842
- }, Ct = class extends e {
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
- }, wt = class extends e {
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
- }, Tt = class extends e {
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
- }, Et = /[\da-fA-F]/, Dt = /[0-7]/, Ot = {
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 kt(e) {
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 At(e) {
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 (Ot[e[n + 1]] !== void 0) t += Ot[e[++n]];
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 && Et.test(e[i]);) r = r * 16 + kt(e[i++]);
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 (!Dt.test(e[n + 1])) t += e[++n];
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 && Dt.test(e[r]);) i = i * 8 + kt(e[r++]);
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 jt = class extends e {
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 = At(this.getText());
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
- }, Mt = class extends e {
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
- }, Nt = class extends pt {
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
- }, Pt = class extends e {
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
- }, Ft = { now: () => Date.now() };
907
- function It() {
908
- return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Ft;
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 Lt = class {
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(It().now());
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(It().now());
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
- }, Rt = class {
933
+ }, zt = class {
933
934
  constructor(e) {
934
- this.postfix = [...Ht(e)];
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 (Bn(r)) {
940
+ for (let r of this.postfix) if (Vn(r)) {
940
941
  let t = n.pop(), i;
941
- if (xt[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
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 (Gn(e)) return yield zt(e, t, n);
958
- if (qn(e)) return yield Vt(e, t);
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* zt(e, t, n) {
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 Bt(e) {
975
+ function Vt(e) {
975
976
  return e.content;
976
977
  }
977
- function* Vt(e, t) {
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* Ht(e) {
982
+ function* Ut(e) {
982
983
  let t = [];
983
- for (let n of e) if (Bn(n)) {
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 Ut = {
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) && Wt(e, t) : e === 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 Wt(e, t) {
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 Gt(e, t) {
1014
+ function Kt(e, t) {
1014
1015
  return e.some((e) => N(e, t));
1015
1016
  }
1016
- var Kt = class {
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
- }, qt = class {
1021
+ }, Jt = class {
1021
1022
  constructor(e, t = 0) {
1022
- this.limit = e, this.size = t, this.cache = {}, this.head = new Kt("HEAD", null, null, null), this.tail = new Kt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
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 Kt(e, t, this.head.next, this.head);
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 Jt(e, t) {
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 Yt(e, t, n) {
1058
- return e.length && se(e) !== "/" && (e += "/"), Jt(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
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 Xt(e) {
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 Zt(e) {
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 Qt(e) {
1081
+ function $t(e) {
1081
1082
  return E(this, void 0, void 0, function* () {
1082
1083
  return !0;
1083
1084
  });
1084
1085
  }
1085
- function $t(e) {
1086
+ function en(e) {
1086
1087
  return !0;
1087
1088
  }
1088
- function en(e) {
1089
- return Jt(e, ".");
1089
+ function tn(e) {
1090
+ return Yt(e, ".");
1090
1091
  }
1091
- var tn = /*#__PURE__*/ Object.freeze({
1092
+ var nn = /*#__PURE__*/ Object.freeze({
1092
1093
  __proto__: null,
1093
- resolve: Yt,
1094
- readFile: Xt,
1095
- readFileSync: Zt,
1096
- exists: Qt,
1097
- existsSync: $t,
1098
- dirname: en,
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 nn(e, t, ...n) {
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 rn(e, t = 0) {
1105
+ function an(e, t = 0) {
1105
1106
  return JSON.stringify(e, null, t);
1106
1107
  }
1107
- function an(e, t = 0) {
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 on(e) {
1116
+ function sn(e) {
1116
1117
  return Number(e);
1117
1118
  }
1118
- var sn = {
1119
- default: nn,
1119
+ var cn = {
1120
+ default: rn,
1120
1121
  raw: {
1121
1122
  raw: !0,
1122
1123
  handler: de
1123
1124
  },
1124
- jsonify: rn,
1125
- to_integer: on,
1126
- json: rn,
1127
- inspect: an
1128
- }, cn = {
1125
+ jsonify: an,
1126
+ to_integer: sn,
1127
+ json: an,
1128
+ inspect: on
1129
+ }, ln = {
1129
1130
  "&": "&amp;",
1130
1131
  "<": "&lt;",
1131
1132
  ">": "&gt;",
1132
1133
  "\"": "&#34;",
1133
1134
  "'": "&#39;"
1134
- }, ln = {
1135
+ }, un = {
1135
1136
  "&amp;": "&",
1136
1137
  "&lt;": "<",
1137
1138
  "&gt;": ">",
1138
1139
  "&#34;": "\"",
1139
1140
  "&#39;": "'"
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 un.call(this, e);
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 e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => ln[e]);
1146
+ return dn.call(this, e);
1149
1147
  }
1150
1148
  function pn(e) {
1151
- return un.call(this, fn.call(this, e));
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 hn(e) {
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 === e) return r + t.slice(e);
1180
+ if (i <= e) return r + t.slice(e);
1180
1181
  }
1181
1182
  return r;
1182
1183
  }
1183
- var gn = /*#__PURE__*/ Object.freeze({
1184
+ var _n = /*#__PURE__*/ Object.freeze({
1184
1185
  __proto__: null,
1185
- escape: un,
1186
- xml_escape: dn,
1187
- escape_once: pn,
1188
- newline_to_br: mn,
1189
- strip_html: hn
1190
- }), _n = class {
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: tn,
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: Ut,
1254
+ operators: Wt,
1254
1255
  memoryLimit: Infinity,
1255
1256
  parseLimit: Infinity,
1256
1257
  renderLimit: Infinity
1257
1258
  };
1258
- function vn(e) {
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 qt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new qt(1024) : void 0, e.cache = t;
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 && yn(e.outputEscape), e.locale ||= at()?.().resolvedOptions().locale ?? "en-US", e.templates && (e.fs = new _n(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
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 yn(e) {
1266
- return e === "escape" ? un : e === "json" ? sn.json : (C(o(e), "`outputEscape` need to be of type string or function"), e);
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 bn(e, t) {
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
- zn(i) && (!n && i.trimLeft && xn(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && Sn(e[r + 1], t.greedy));
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 xn(e, t) {
1280
- if (!e || !Vn(e)) return;
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 Sn(e, t) {
1285
- if (!e || !Vn(e)) return;
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 = Ue(t), this.literalTrie = Ue(He);
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 Rt(this.readExpressionTokens());
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 St(this.input, this.p, this.p = e, this.file);
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 Pt(t, this.readFilters(), this.input, e, this.p, this.file);
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 wt(e.getText(), t, this.input, e.begin, this.p, this.file);
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 bn(t, e), t;
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 gt(this.input, t, this.p, this.file);
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 mt(n, r, this.p, e, t);
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 ht(n, i, this.p, e, t);
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 mt(this.input, r, t, e, this.file)) : (this.p = i, new gt(this.input, r, i, this.file));
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 Nt(this.input, t, n, e, this.file);
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 vt(this.input, t, this.N, this.file));
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 vt(this.input, e, this.p, this.file);
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 Tt(this.input, t, this.p, n, r, this.file);
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 Ct(t, n, this.input, e, this.p) : t;
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 Ct(void 0, t, this.input, e, this.p);
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 vt(this.input, this.p, this.p, this.file);
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 _t(this.input, this.p, this.p + n, this.file);
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 yt(this.input, this.p, e, this.file);
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 Mt(this.input, e, this.p, t, n, this.file);
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 jt(this.input, e, this.p, this.file);
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
- }, Cn = class {
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
- }, wn = class {
1618
+ }, Tn = class {
1618
1619
  constructor(e) {
1619
1620
  this.token = e;
1620
1621
  }
1621
- }, L = class extends wn {
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 Tn(e) {
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 En(e) {
1649
+ function Dn(e) {
1649
1650
  return m(e);
1650
1651
  }
1651
- var Dn = class {
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) En(e) ? n.push([e[0], yield A(e[1], t)]) : n.push(yield A(e, t));
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 Dn(e, this.getFilter(t, e.name), t));
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
- }, On = class extends wn {
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 wt(toString.call(i), [], "", 0, 0);
1688
- r.push(new Dn(e, i, t));
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
- }, kn = class extends wn {
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
- }, An = class {
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
- }, jn = { partials: !0 };
1736
- function* Mn(e, t, n) {
1737
- let r = new An(), i = new An(), o = new An(), s = new Nn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
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 Pn(t)) l(e, r);
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 Nn(o) : r.push(o);
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(Pn(n));
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(Mn(e, Object.assign(Object.assign({}, jn), t).partials, !1));
1793
+ return D(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !1));
1793
1794
  }
1794
1795
  function H(e, t = {}) {
1795
- return O(Mn(e, Object.assign(Object.assign({}, jn), t).partials, !0));
1796
+ return O(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !0));
1796
1797
  }
1797
- var Nn = class {
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) En(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
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
- qn(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : Gn(e) && (yield In(e));
1848
+ Jn(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : Kn(e) && (yield Ln(e));
1848
1849
  }
1849
- function In(e) {
1850
+ function Ln(e) {
1850
1851
  let t = [], n = e.file, r = e.props[0];
1851
- n ||= r.file, Un(r) || Wn(r) || Kn(r) ? t.push(r.content) : Gn(r) && t.push(...In(r).segments);
1852
- for (let r of e.props.slice(1)) n ||= r.file, Un(r) || Wn(r) || Kn(r) ? t.push(r.content) : Gn(r) && t.push(In(r));
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 Ln = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
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(Ln) ? n.push(`${r}`) : n.push(`['${r}']`));
1864
- for (let t of e.slice(1)) t instanceof B ? n.push(`[${W(t.segments)}]`) : a(t) ? t.match(Ln) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
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 Rn = class {
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 = Ge(t.contains?.bind(t) || (() => E(this, void 0, void 0, function* () {
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 = Ge(t.exists?.bind(t) || (() => E(this, void 0, void 0, function* () {
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 Rn(this.liquid.options), this.parseLimit = new ft("parse length", e.options.parseLimit), this.readFile = Ge(this.fs.readFile?.bind(this.fs) || (() => E(this, void 0, void 0, function* () {
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 Hn(e) ? new On(e, this.liquid) : new kn(e);
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 Cn(e, (e, t) => this.parseToken(e, t));
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 zn(e) {
1976
+ function Bn(e) {
1976
1977
  return !!(X(e) & q.Delimited);
1977
1978
  }
1978
- function Bn(e) {
1979
+ function Vn(e) {
1979
1980
  return X(e) === q.Operator;
1980
1981
  }
1981
- function Vn(e) {
1982
+ function Hn(e) {
1982
1983
  return X(e) === q.HTML;
1983
1984
  }
1984
- function Hn(e) {
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 Un(e) {
1991
+ function Wn(e) {
1991
1992
  return X(e) === q.Quoted;
1992
1993
  }
1993
- function Wn(e) {
1994
+ function Gn(e) {
1994
1995
  return X(e) === q.Number;
1995
1996
  }
1996
- function Gn(e) {
1997
+ function Kn(e) {
1997
1998
  return X(e) === q.PropertyAccess;
1998
1999
  }
1999
- function Kn(e) {
2000
+ function qn(e) {
2000
2001
  return X(e) === q.Word;
2001
2002
  }
2002
- function qn(e) {
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 ft("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new ft("template render", It().now() + (n.renderLimit ?? t.renderLimit));
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) => We(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 = Jn(e, n, this.ownPropertyOnly);
2087
- return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? Zn(e) : n === "first" ? Yn(e) : n === "last" ? Xn(e) : r;
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 Jn(e, n, r) {
2091
+ function Yn(e, n, r) {
2091
2092
  if (!(r && !i.call(e, n) && !(e instanceof t))) return e[n];
2092
2093
  }
2093
- function Yn(e) {
2094
+ function Xn(e) {
2094
2095
  return m(e) ? e[0] : e.first;
2095
2096
  }
2096
- function Xn(e) {
2097
+ function Zn(e) {
2097
2098
  return m(e) ? e[e.length - 1] : e.last;
2098
2099
  }
2099
- function Zn(e) {
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 Qn = v(Math.abs), $n = v(Math.max), er = v(Math.min), tr = v(Math.ceil), nr = v((e, t, n = !1) => n ? Math.floor(e / t) : e / t), rr = v(Math.floor), ir = v((e, t) => e - t), ar = v((e, t) => e + t), or = v((e, t) => e % t), sr = v((e, t) => e * t);
2109
- function cr(e, t = 0) {
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.sign(e) * Math.round(Math.abs(r)) / n;
2112
+ let n = 10 ** t, r = e * n * (1 + 2 ** -52);
2113
+ return Math.round(r) / n;
2113
2114
  }
2114
- var lr = /*#__PURE__*/ Object.freeze({
2115
+ var ur = /*#__PURE__*/ Object.freeze({
2115
2116
  __proto__: null,
2116
- abs: Qn,
2117
- at_least: $n,
2118
- at_most: er,
2119
- ceil: tr,
2120
- divided_by: nr,
2121
- floor: rr,
2122
- minus: ir,
2123
- plus: ar,
2124
- modulo: or,
2125
- times: sr,
2126
- round: cr
2127
- }), ur = (e) => decodeURIComponent(l(e)).replace(/\+/g, " "), dr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), fr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), pr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), mr = /[^\p{M}\p{L}\p{Nd}]+/gu, hr = {
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: mr,
2130
+ default: hr,
2130
2131
  pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
2131
2132
  ascii: /[^A-Za-z0-9]+/g,
2132
- latin: mr,
2133
+ latin: hr,
2133
2134
  none: null
2134
2135
  };
2135
- function gr(e, t = "default", n = !1) {
2136
+ function _r(e, t = "default", n = !1) {
2136
2137
  e = l(e);
2137
- let r = hr[t];
2138
- return r && (t === "latin" && (e = _r(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
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 _r(e) {
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 vr = /*#__PURE__*/ Object.freeze({
2144
+ var yr = /*#__PURE__*/ Object.freeze({
2144
2145
  __proto__: null,
2145
- url_decode: ur,
2146
- url_encode: dr,
2147
- cgi_escape: fr,
2148
- uri_escape: pr,
2149
- slugify: gr
2150
- }), yr = _(function(e, t) {
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
- }), br = _((e) => ie(e) ? se(e) : ""), xr = _((e) => ie(e) ? e[0] : ""), Sr = _(function(e) {
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* Cr(e, t, n) {
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* Cr.call(this, e, t, he);
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 Er = (e) => e && e.length || 0;
2170
- function* Dr(e, t) {
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* Or(e, t) {
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 kr(e) {
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 Ar(e, t = []) {
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 Fr(e, t, n = 1) {
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 Ir(e) {
2215
- return this.context.opts.jekyllWhere ? (t) => Pe.is(e) ? N(t, e) : m(t) ? Gt(t, e) : N(t, e) : e === void 0 ? (e) => j(e, this.context) : (t) => N(t, e);
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* Lr(e, t, n, r) {
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 = Ir.call(this, r);
2225
+ let o = Lr.call(this, r);
2223
2226
  return t.filter((t, n) => o(i[n]) === e);
2224
2227
  }
2225
- function* Rr(e, t, n, r) {
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* Lr.call(this, !1, e, t, n);
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, !0, e, t, n);
2242
+ return yield* Rr.call(this, !1, e, t, n);
2243
2243
  }
2244
2244
  function* Hr(e, t, n) {
2245
- return yield* Rr.call(this, !1, e, t, n);
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* Ur(e, t) {
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* Wr(e, t, n) {
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* Gr(e, t, n) {
2275
- let r = new I(l(t)).readScopeValue(), i = d(e), a = Ir.call(this, n);
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* Kr(e, t, n) {
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
- let r = yield* Gr.call(this, e, t, n);
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* Gr.call(this, e, t, n);
2302
- return r ? r[1] : void 0;
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 ei(e, t = 1) {
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(t);
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 ti = /*#__PURE__*/ Object.freeze({
2320
+ var ni = /*#__PURE__*/ Object.freeze({
2318
2321
  __proto__: null,
2319
- join: yr,
2320
- last: br,
2321
- first: xr,
2322
- reverse: Sr,
2323
- sort: wr,
2324
- sort_natural: Tr,
2325
- size: Er,
2326
- map: Dr,
2327
- sum: Or,
2328
- compact: kr,
2329
- concat: Ar,
2330
- push: jr,
2331
- unshift: Mr,
2332
- pop: Nr,
2333
- shift: Pr,
2334
- slice: Fr,
2335
- where: zr,
2336
- reject: Br,
2337
- where_exp: Vr,
2338
- reject_exp: Hr,
2339
- group_by: Ur,
2340
- group_by_exp: Wr,
2341
- has: qr,
2342
- has_exp: Jr,
2343
- find_index: Yr,
2344
- find_index_exp: Xr,
2345
- find: Zr,
2346
- find_exp: Qr,
2347
- uniq: $r,
2348
- sample: ei
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 ni(e, t, n) {
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 = ci(e, this.context.opts, n);
2354
- return i ? (t = f(t), t = p(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), rt(i, t, this.context.memoryLimit)) : e;
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 ni.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2360
+ return ri.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2361
2361
  }
2362
- function ai(e, t, n) {
2363
- return si.call(this, e, "%b", t, n);
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 si.call(this, e, "%B", t, n);
2366
+ return ci.call(this, e, "%b", t, n);
2367
2367
  }
2368
- function si(e, t, n, r) {
2369
- let i = ci(e, this.context.opts);
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" ? rt(i, `${t} ${e}%q, %Y`, a) : rt(i, `${e}%q ${t} %Y`, a);
2377
+ return r === "US" ? it(i, `${t} ${e}%q, %Y`, a) : it(i, `${e}%q ${t} %Y`, a);
2375
2378
  }
2376
- return rt(i, `%d ${t} %Y`, a);
2379
+ return it(i, `%d ${t} %Y`, a);
2377
2380
  }
2378
- function ci(e, t, n) {
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 li = /*#__PURE__*/ Object.freeze({
2385
+ var ui = /*#__PURE__*/ Object.freeze({
2383
2386
  __proto__: null,
2384
- date: ni,
2385
- date_to_xmlschema: ri,
2386
- date_to_rfc822: ii,
2387
- date_to_string: ai,
2388
- date_to_long_string: oi
2389
- }), ui = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, di = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2390
- function fi(e, t) {
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 pi(e, t) {
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 mi(e, t) {
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 hi(e) {
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 gi(e) {
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 _i(e, t) {
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 vi(e, t) {
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 yi(e, t) {
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 bi(e, t) {
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 xi(e, t) {
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 Si(e, t) {
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 Ci(e) {
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 wi(e) {
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 Ti(e, t, n) {
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 Ei(e, t, n) {
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 Di(e, t, n) {
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 Oi(e, t = 50, n = "...") {
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 ki(e, t = 15, n = "...") {
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 Ai(e) {
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 ji(e, t) {
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(ui) || []).length + (e.match(di) || []).length;
2502
- case "auto": return ui.test(e) ? e.match(ui).length + (e.match(di) || []).length : e.split(/\s+/).length;
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 Mi(e, t = "and") {
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 Ni = /*#__PURE__*/ Object.freeze({
2517
+ var Pi = /*#__PURE__*/ Object.freeze({
2515
2518
  __proto__: null,
2516
- append: fi,
2517
- prepend: pi,
2518
- lstrip: mi,
2519
- downcase: hi,
2520
- upcase: gi,
2521
- remove: _i,
2522
- remove_first: vi,
2523
- remove_last: yi,
2524
- rstrip: bi,
2525
- split: xi,
2526
- strip: Si,
2527
- strip_newlines: Ci,
2528
- capitalize: wi,
2529
- replace: Ti,
2530
- replace_first: Ei,
2531
- replace_last: Di,
2532
- truncate: Oi,
2533
- truncatewords: ki,
2534
- normalize_whitespace: Ai,
2535
- number_of_words: ji,
2536
- array_to_sentence_string: Mi
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 Pi(e) {
2541
+ function Fi(e) {
2539
2542
  return btoa(String.fromCharCode(...new TextEncoder().encode(e)));
2540
2543
  }
2541
- function Fi(e) {
2544
+ function Ii(e) {
2542
2545
  return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
2543
2546
  }
2544
- function Ii(e) {
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), Pi(t);
2550
+ return this.context.memoryLimit.use(t.length), Fi(t);
2548
2551
  }
2549
- function Li(e) {
2552
+ function Ri(e) {
2550
2553
  let t = l(e);
2551
- return this.context.memoryLimit.use(t.length), Fi(t);
2554
+ return this.context.memoryLimit.use(t.length), Ii(t);
2552
2555
  }
2553
- var Ri = /*#__PURE__*/ Object.freeze({
2556
+ var zi = /*#__PURE__*/ Object.freeze({
2554
2557
  __proto__: null,
2555
- base64_encode: Ii,
2556
- base64_decode: Li
2558
+ base64_encode: Li,
2559
+ base64_decode: Ri
2557
2560
  });
2558
- function zi(e) {
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 Bi(e) {
2566
+ function Vi(e) {
2564
2567
  return E(this, void 0, void 0, function* () {
2565
2568
  let t = new TextEncoder().encode(e);
2566
- return zi(yield crypto.subtle.digest("SHA-256", t));
2569
+ return Bi(yield crypto.subtle.digest("SHA-256", t));
2567
2570
  });
2568
2571
  }
2569
- function Vi(e, t) {
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 zi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2578
+ return Bi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2576
2579
  });
2577
2580
  }
2578
- function Hi(e) {
2581
+ function Ui(e) {
2579
2582
  let t = l(e);
2580
- return this.context.memoryLimit.use(t.length), Bi(t);
2583
+ return this.context.memoryLimit.use(t.length), Vi(t);
2581
2584
  }
2582
- function Ui(e, t) {
2585
+ function Wi(e, t) {
2583
2586
  let n = l(e), r = l(t);
2584
- return this.context.memoryLimit.use(n.length + r.length), Vi(n, r);
2587
+ return this.context.memoryLimit.use(n.length + r.length), Hi(n, r);
2585
2588
  }
2586
- var Wi = /*#__PURE__*/ Object.freeze({
2589
+ var Gi = /*#__PURE__*/ Object.freeze({
2587
2590
  __proto__: null,
2588
- sha256: Hi,
2589
- hmac_sha256: Ui
2590
- }), Gi = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, gn), lr), vr), ti), li), Ni), Ri), Wi), sn), Ki = class extends L {
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
- }, qi = [
2606
+ }, Ji = [
2604
2607
  "offset",
2605
2608
  "limit",
2606
2609
  "reversed"
2607
- ], Ji = class extends L {
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) => qi.includes(e)) : qi.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? Xi(e, a.offset) : t === "limit" ? Zi(e, a.limit) : Yi(e), r), e.setRegister(i, (a.offset || 0) + r.length);
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 Yi(e) {
2655
+ function Xi(e) {
2653
2656
  return [...e].reverse();
2654
2657
  }
2655
- function Xi(e, t) {
2658
+ function Zi(e, t) {
2656
2659
  return e.slice(t);
2657
2660
  }
2658
- function Zi(e, t) {
2661
+ function Qi(e, t) {
2659
2662
  return e.slice(0, t);
2660
2663
  }
2661
- var Qi = class extends L {
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
- }, $i = class extends L {
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
- }, ea = class extends L {
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
- }, ta = class extends L {
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 = na(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
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, this[t.content] = {
2744
+ r.content === "as" ? a = i.readIdentifier() : i.p = n;
2745
+ let o = {
2742
2746
  value: e,
2743
2747
  alias: a && a.content
2744
- }, i.skipBlank(), i.peek() === "," && i.advance();
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 ia(this.file, e, n);
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 (We(o, yield r.render(e)), this.with) {
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.for) {
2762
- let { value: r, alias: s } = this.for, c = u(yield A(r, e));
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.for) {
2785
- let { value: t, alias: n } = this.for;
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.for) {
2802
- let { value: e } = this.for;
2806
+ if (this.forBinding) {
2807
+ let { value: e } = this.forBinding;
2803
2808
  Y(e) && (yield e);
2804
2809
  }
2805
2810
  }
2806
2811
  };
2807
- function na(e, t, n) {
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 : Un(t) ? ra(n.parse(Bt(t))) : t;
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 = ra(n.parseTokens(r));
2817
+ let r = [...e.readFileNameTemplate(t.options)], i = ia(n.parseTokens(r));
2813
2818
  return i === "none" ? void 0 : i;
2814
2819
  }
2815
- function ra(e) {
2816
- return e.length === 1 && Vn(e[0].token) ? e[0].token.getContent() : e;
2820
+ function ia(e) {
2821
+ return e.length === 1 && Hn(e[0].token) ? e[0].token.getContent() : e;
2817
2822
  }
2818
- function* ia(e, t, n) {
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 aa = class extends L {
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 = na(i, this.liquid, r), this.currentFile = e.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 ia(this.file, e, n);
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
- }, oa = class extends L {
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
- }, sa = class extends L {
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
- }, ca = class extends L {
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
- }, la = class extends L {
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
- }, ua = class extends L {
2938
+ }, da = class extends L {
2934
2939
  constructor(e, t, n, r) {
2935
- super(e, t, n), this.file = na(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
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 ia(this.file, e, n);
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
- }, da = class extends L {
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
- }, fa = class extends L {
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
- }, pa = class extends Ie {
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
- }, ma = {
3027
- assign: Ki,
3028
- for: Ji,
3029
- capture: Qi,
3030
- case: $i,
3031
- comment: ea,
3032
- include: aa,
3033
- render: ta,
3034
- decrement: oa,
3035
- increment: la,
3036
- cycle: sa,
3037
- if: ca,
3038
- layout: ua,
3039
- block: da,
3040
- raw: fa,
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 pa(n.length, a, this.collection.getText(), this.variable), c = Z({ tablerowloop: s });
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
- }, ha = class e {
3164
+ }, ga = class e {
3160
3165
  constructor(e = {}) {
3161
- this.renderer = new Lt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = vn(e), this.parser = new K(this), oe(ma, (e, t) => this.registerTag(t, e)), oe(Gi, (e, t) => this.registerFilter(t, e));
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 : Tn(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 { ha as Liquid };
3344
+ export { ga as Liquid };
3340
3345
 
3341
- //# sourceMappingURL=liquid.browser-DUDc3U21.js.map
3346
+ //# sourceMappingURL=liquid.browser-DKKBzRQu.js.map