@templatical/editor 0.51.1 → 0.52.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 (380) hide show
  1. package/THIRD_PARTY_NOTICES.md +208 -0
  2. package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
  3. package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
  4. package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
  5. package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
  6. package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
  7. package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
  8. package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
  9. package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
  10. package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
  11. package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
  12. package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
  13. package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
  14. package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
  15. package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
  16. package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
  17. package/dist/IssuesPanel-4ykrf1ax.js +359 -0
  18. package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
  19. package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
  20. package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
  21. package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
  22. package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
  23. package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
  24. package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
  25. package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
  26. package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
  27. package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
  28. package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
  29. package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
  30. package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
  31. package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
  32. package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
  33. package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
  34. package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
  35. package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
  36. package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
  37. package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
  38. package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
  39. package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
  40. package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
  41. package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
  42. package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
  43. package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  44. package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
  45. package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
  46. package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
  47. package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
  48. package/dist/bundle-stats.json +6 -6
  49. package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
  50. package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
  51. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
  52. package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
  53. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
  54. package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
  55. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
  56. package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
  57. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
  58. package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
  59. package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
  60. package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
  61. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
  62. package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
  63. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
  64. package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
  65. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
  66. package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
  67. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
  68. package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
  69. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
  70. package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
  71. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
  72. package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
  73. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
  74. package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
  75. package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
  76. package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
  77. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
  78. package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
  79. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
  80. package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
  81. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
  82. package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
  83. package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
  84. package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
  85. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
  86. package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
  87. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
  88. package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
  89. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
  90. package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
  91. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
  92. package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
  93. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
  94. package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
  95. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
  96. package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
  97. package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
  98. package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
  99. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
  100. package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
  101. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
  102. package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
  103. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
  104. package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
  105. package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
  106. package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
  107. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
  108. package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
  109. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
  110. package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
  111. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
  112. package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
  113. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
  114. package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
  115. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
  116. package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
  117. package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
  118. package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
  119. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
  120. package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
  121. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
  122. package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
  123. package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
  124. package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
  125. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
  126. package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
  127. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
  128. package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
  129. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
  130. package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
  131. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
  132. package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
  133. package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
  134. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
  135. package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
  136. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
  137. package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
  138. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
  139. package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
  140. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
  141. package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
  142. package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
  143. package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
  144. package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
  145. package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
  146. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
  147. package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
  148. package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
  149. package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
  150. package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
  151. package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
  152. package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
  153. package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
  154. package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
  155. package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
  156. package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
  157. package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
  158. package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
  159. package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
  160. package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
  161. package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
  162. package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
  163. package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
  164. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
  165. package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
  166. package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
  167. package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
  168. package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
  169. package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
  170. package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
  171. package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
  172. package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
  173. package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
  174. package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
  175. package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
  176. package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
  177. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
  178. package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
  179. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
  180. package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
  181. package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
  182. package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
  183. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
  184. package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
  185. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
  186. package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
  187. package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
  188. package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
  189. package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
  190. package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
  191. package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
  192. package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
  193. package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
  194. package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
  195. package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
  196. package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
  197. package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
  198. package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
  199. package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
  200. package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
  201. package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
  202. package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
  203. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
  204. package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
  205. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
  206. package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
  207. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
  208. package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
  209. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
  210. package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
  211. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
  212. package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
  213. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
  214. package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
  215. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
  216. package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
  217. package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
  218. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
  219. package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
  220. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
  221. package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
  222. package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
  223. package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
  224. package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
  225. package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
  226. package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
  227. package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
  228. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
  229. package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
  230. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
  231. package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
  232. package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
  233. package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
  234. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
  235. package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
  236. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
  237. package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
  238. package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
  239. package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
  240. package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
  241. package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
  242. package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
  243. package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
  244. package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
  245. package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
  246. package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
  247. package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
  248. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
  249. package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
  250. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
  251. package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
  252. package/dist/cdn/editor.css +1 -1
  253. package/dist/cdn/editor.js +1433 -1454
  254. package/dist/cdn/editor.js.map +1 -1
  255. package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
  256. package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
  257. package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
  258. package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
  259. package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
  260. package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
  261. package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
  262. package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
  263. package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
  264. package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
  265. package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
  266. package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
  267. package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
  268. package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
  269. package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
  270. package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
  271. package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
  272. package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
  273. package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
  274. package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
  275. package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
  276. package/dist/dist-DyFArF_G.js +4 -0
  277. package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
  278. package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
  279. package/dist/dist-pA3ooG6N.js +4 -0
  280. package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
  281. package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
  282. package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
  283. package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
  284. package/dist/en-Db76vJbY.js +1 -0
  285. package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
  286. package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
  287. package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
  288. package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
  289. package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
  290. package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
  291. package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
  292. package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
  293. package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
  294. package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
  295. package/dist/index.d.ts +6 -6
  296. package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
  297. package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
  298. package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
  299. package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
  300. package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
  301. package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
  302. package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
  303. package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
  304. package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
  305. package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
  306. package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
  307. package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
  308. package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
  309. package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
  310. package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
  311. package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
  312. package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
  313. package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
  314. package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
  315. package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
  316. package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
  317. package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  318. package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
  319. package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
  320. package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
  321. package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
  322. package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
  323. package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
  324. package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
  325. package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
  326. package/dist/style.css +1 -1
  327. package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
  328. package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
  329. package/dist/templatical-editor.js +1231 -1251
  330. package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
  331. package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
  332. package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
  333. package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
  334. package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
  335. package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
  336. package/dist/useEditorRoot-BMcoCLBx.js +7 -0
  337. package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
  338. package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
  339. package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
  340. package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
  341. package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
  342. package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
  343. package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
  344. package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
  345. package/package.json +26 -24
  346. package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
  347. package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
  348. package/dist/IssuesPanel-C8nMUccy.js +0 -360
  349. package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
  350. package/dist/WrapperBlock-BO619LAb.js +0 -45
  351. package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
  352. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
  353. package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
  354. package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
  355. package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
  356. package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
  357. package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
  358. package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
  359. package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
  360. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
  361. package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
  362. package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
  363. package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
  364. package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
  365. package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
  366. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
  367. package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
  368. package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
  369. package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
  370. package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
  371. package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
  372. package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
  373. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
  374. package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
  375. package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
  376. package/dist/dist-BPFcLKTw.js +0 -5
  377. package/dist/dist-D7Yj7E-F.js +0 -5
  378. package/dist/en-DwV15ltA.js +0 -1
  379. package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
  380. package/dist/useEditorRoot-DUy67lJu.js +0 -8
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/liquidjs@10.30.0/node_modules/liquidjs/dist/liquid.browser.mjs
1
+ // ../../node_modules/.pnpm/liquidjs@10.30.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;
@@ -30,43 +30,53 @@ function c(e) {
30
30
  return e && o(e.next) && o(e.throw) && o(e.return);
31
31
  }
32
32
  function l(e) {
33
- return e = p(e), a(e) ? e : h(e) ? "" : g(e) ? e.map((e) => l(e)).join("") : String(e);
33
+ return e = h(e), a(e) ? e : _(e) ? "" : v(e) ? e.map((e) => l(e)).join("") : String(e);
34
34
  }
35
35
  function u(e, t, n) {
36
- if (t < 0 && (t = e.length + t), !n || i.call(e, t)) return e[t];
36
+ let r = t;
37
+ for (let t = 0; t < n && r < e.length; t++) r += e.codePointAt(r) > 65535 ? 2 : 1;
38
+ return r;
37
39
  }
38
40
  function d(e) {
39
- return e = p(e), g(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : _(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
41
+ let t = 0;
42
+ for (let n = 0; n < e.length; n = u(e, n, 1)) t++;
43
+ return t;
40
44
  }
41
- function f(e) {
42
- return e = p(e), h(e) ? [] : g(e) ? e : [e];
45
+ function f(e, t, n) {
46
+ if (t < 0 && (t = e.length + t), !n || i.call(e, t)) return e[t];
43
47
  }
44
48
  function p(e) {
49
+ return e = h(e), v(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : se(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
50
+ }
51
+ function m(e) {
52
+ return e = h(e), _(e) ? [] : v(e) ? e : [e];
53
+ }
54
+ function h(e) {
45
55
  return e instanceof t && o(e.valueOf) ? e.valueOf() : e;
46
56
  }
47
57
  function ee(e) {
48
- return +p(e) || 0;
58
+ return +h(e) || 0;
49
59
  }
50
- function m(e) {
60
+ function g(e) {
51
61
  return typeof e == "number";
52
62
  }
53
63
  function te(e) {
54
64
  return e && o(e.toLiquid) ? te(e.toLiquid()) : e;
55
65
  }
56
- function h(e) {
66
+ function _(e) {
57
67
  return e == null;
58
68
  }
59
69
  function ne(e) {
60
70
  return e === void 0;
61
71
  }
62
- function g(e) {
72
+ function v(e) {
63
73
  return n.call(e) === "[object Array]";
64
74
  }
65
75
  function re(e) {
66
- return e && m(e.length);
76
+ return e && g(e.length);
67
77
  }
68
78
  function ie(e) {
69
- return _(e) && Symbol.iterator in e;
79
+ return se(e) && Symbol.iterator in e;
70
80
  }
71
81
  function ae(e, t) {
72
82
  e ||= {};
@@ -76,59 +86,59 @@ function ae(e, t) {
76
86
  function oe(e) {
77
87
  return e[e.length - 1];
78
88
  }
79
- function _(e) {
89
+ function se(e) {
80
90
  let t = typeof e;
81
91
  return e !== null && (t === "object" || t === "function");
82
92
  }
83
- function se(e, t, n = 1) {
93
+ function ce(e, t, n = 1) {
84
94
  let r = [];
85
95
  for (let i = e; i < t; i += n) r.push(i);
86
96
  return r;
87
97
  }
88
- function v(e, t, n = " ") {
89
- return le(e, t, n, (e, t) => t + e);
98
+ function y(e, t, n = " ") {
99
+ return ue(e, t, n, (e, t) => t + e);
90
100
  }
91
- function ce(e, t, n = " ") {
92
- return le(e, t, n, (e, t) => e + t);
101
+ function le(e, t, n = " ") {
102
+ return ue(e, t, n, (e, t) => e + t);
93
103
  }
94
- function le(e, t, n, r) {
104
+ function ue(e, t, n, r) {
95
105
  e = String(e);
96
106
  let i = t - e.length;
97
107
  return i <= 0 ? e : r(e, n.repeat(i));
98
108
  }
99
- function ue(e) {
109
+ function de(e) {
100
110
  return e;
101
111
  }
102
- function de(e) {
112
+ function fe(e) {
103
113
  return [...e].some((e) => e >= "a" && e <= "z") ? e.toUpperCase() : e.toLowerCase();
104
114
  }
105
- function fe(e, t) {
106
- return e.length > t ? e.slice(0, t - 3) + "..." : e;
107
- }
108
115
  function pe(e, t) {
109
- return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || e < t ? -1 : +(e > t);
116
+ return e.length > t ? e.slice(0, t - 3) + "..." : e;
110
117
  }
111
118
  function me(e, t) {
112
- return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
119
+ return _(e) && _(t) ? 0 : _(e) ? 1 : _(t) || e < t ? -1 : +(e > t);
120
+ }
121
+ function he(e, t) {
122
+ return _(e) && _(t) ? 0 : _(e) ? 1 : _(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
113
123
  }
114
- function he(e) {
124
+ function ge(e) {
115
125
  return function(...t) {
116
- return e.call(this, ...t.map(p));
126
+ return e.call(this, ...t.map(h));
117
127
  };
118
128
  }
119
- function y(e) {
129
+ function b(e) {
120
130
  return function(...t) {
121
131
  return e.call(this, ...t.map(ee));
122
132
  };
123
133
  }
124
- function* b(e) {
134
+ function* _e(e) {
125
135
  let t = /* @__PURE__ */ new Set();
126
136
  for (let n of e) {
127
137
  let e = JSON.stringify(n);
128
138
  t.has(e) || (t.add(e), yield n);
129
139
  }
130
140
  }
131
- var ge = "__liquidClass__", x = class extends Error {
141
+ var ve = "__liquidClass__", x = class extends Error {
132
142
  constructor(e, t) {
133
143
  super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", {
134
144
  value: e,
@@ -136,36 +146,36 @@ var ge = "__liquidClass__", x = class extends Error {
136
146
  }), Object.defineProperty(this, "token", {
137
147
  value: t,
138
148
  enumerable: !1
139
- }), Object.defineProperty(this, ge, {
149
+ }), Object.defineProperty(this, ve, {
140
150
  value: "LiquidError",
141
151
  enumerable: !1
142
152
  });
143
153
  }
144
154
  update() {
145
155
  Object.defineProperty(this, "context", {
146
- value: we(this.token),
156
+ value: Ee(this.token),
147
157
  enumerable: !1
148
- }), this.message = Te(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
158
+ }), this.message = De(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
149
159
  }
150
160
  static is(e) {
151
- return e?.[ge] === "LiquidError";
161
+ return e?.[ve] === "LiquidError";
152
162
  }
153
- }, _e = class extends x {
163
+ }, ye = class extends x {
154
164
  constructor(e, t) {
155
165
  super(e, t), this.name = "TokenizationError", super.update();
156
166
  }
157
- }, ve = class extends x {
167
+ }, be = class extends x {
158
168
  constructor(e, t) {
159
169
  super(e, t), this.name = "ParseError", this.message = e.message, super.update();
160
170
  }
161
- }, ye = class extends x {
171
+ }, xe = class extends x {
162
172
  constructor(e, t) {
163
173
  super(e, t.token), this.name = "RenderError", this.message = e.message, super.update();
164
174
  }
165
175
  static is(e) {
166
176
  return e.name === "RenderError";
167
177
  }
168
- }, be = class extends x {
178
+ }, Se = class extends x {
169
179
  constructor(e) {
170
180
  super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
171
181
  let t = e.length > 1 ? "s" : "";
@@ -174,27 +184,27 @@ var ge = "__liquidClass__", x = class extends Error {
174
184
  static is(e) {
175
185
  return e.name === "LiquidErrors";
176
186
  }
177
- }, xe = class extends x {
187
+ }, Ce = class extends x {
178
188
  constructor(e, t) {
179
189
  super(e, t), this.name = "UndefinedVariableError", this.message = e.message, super.update();
180
190
  }
181
- }, Se = class extends Error {
191
+ }, we = class extends Error {
182
192
  constructor(e) {
183
193
  super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
184
194
  }
185
- }, Ce = class extends Error {
195
+ }, Te = class extends Error {
186
196
  constructor(e) {
187
197
  super(e), this.name = "AssertionError", this.message = e + "";
188
198
  }
189
199
  };
190
- function we(e) {
200
+ function Ee(e) {
191
201
  let [t, n] = e.getPosition(), r = e.input.split("\n"), i = Math.max(t - 2, 1), a = Math.min(t + 3, r.length);
192
- return se(i, a + 1).map((e) => {
193
- let i = `${e === t ? ">> " : " "}${v(String(e), String(a).length)}| `, o = e === t ? "\n" + v("^", n + i.length) : "";
202
+ return ce(i, a + 1).map((e) => {
203
+ let i = `${e === t ? ">> " : " "}${y(String(e), String(a).length)}| `, o = e === t ? "\n" + y("^", n + i.length) : "";
194
204
  return i += r[e - 1], i += o, i;
195
205
  }).join("\n");
196
206
  }
197
- function Te(e, t) {
207
+ function De(e, t) {
198
208
  t.file && (e += `, file:${t.file}`);
199
209
  let [n, r] = t.getPosition();
200
210
  return e += `, line:${n}, col:${r}`, e;
@@ -328,21 +338,21 @@ var S = [
328
338
  0,
329
339
  0,
330
340
  0
331
- ], Ee = 1, C = 4, De = 8, Oe = 16, ke = 32, Ae = 64, je = 128;
332
- function Me(e) {
341
+ ], Oe = 1, C = 4, ke = 8, Ae = 16, je = 32, Me = 64, Ne = 128;
342
+ function Pe(e) {
333
343
  let t = e.charCodeAt(0);
334
- return t >= 128 ? !S[t] : !!(S[t] & Ee);
344
+ return t >= 128 ? !S[t] : !!(S[t] & Oe);
335
345
  }
336
- S[160] = S[5760] = S[6158] = S[8192] = S[8193] = S[8194] = S[8195] = S[8196] = S[8197] = S[8198] = S[8199] = S[8200] = S[8201] = S[8202] = S[8232] = S[8233] = S[8239] = S[8287] = S[12288] = C, S[8220] = S[8221] = je;
346
+ S[160] = S[5760] = S[6158] = S[8192] = S[8193] = S[8194] = S[8195] = S[8196] = S[8197] = S[8198] = S[8199] = S[8200] = S[8201] = S[8202] = S[8232] = S[8233] = S[8239] = S[8287] = S[12288] = C, S[8220] = S[8221] = Ne;
337
347
  function w(e, t) {
338
- if (!e) throw new Ce(typeof t == "function" ? t() : t || `expect ${e} to be true`);
348
+ if (!e) throw new Te(typeof t == "function" ? t() : t || `expect ${e} to be true`);
339
349
  }
340
- function Ne(e, t = `unexpected ${JSON.stringify(e)}`) {
350
+ function Fe(e, t = `unexpected ${JSON.stringify(e)}`) {
341
351
  w(!e, t);
342
352
  }
343
- var Pe = class extends t {
353
+ var Ie = class extends t {
344
354
  *equals(e) {
345
- return h(yield p(e));
355
+ return _(yield h(e));
346
356
  }
347
357
  gt() {
348
358
  return !1;
@@ -359,9 +369,9 @@ var Pe = class extends t {
359
369
  valueOf() {
360
370
  return null;
361
371
  }
362
- }, Fe = class e extends t {
372
+ }, Le = class e extends t {
363
373
  *equals(t) {
364
- return t instanceof e ? !1 : (t = yield p(t), a(t) || g(t) ? t.length === 0 : _(t) ? Object.keys(t).length === 0 : !1);
374
+ return t instanceof e ? !1 : (t = yield h(t), a(t) || v(t) ? t.length === 0 : se(t) ? Object.keys(t).length === 0 : !1);
365
375
  }
366
376
  gt() {
367
377
  return !1;
@@ -381,14 +391,14 @@ var Pe = class extends t {
381
391
  static is(t) {
382
392
  return t instanceof e;
383
393
  }
384
- }, Ie = class e extends Fe {
394
+ }, Re = class e extends Le {
385
395
  *equals(e) {
386
- return e === !1 || h(yield p(e)) ? !0 : a(e) ? /^\s*$/.test(e) : yield super.equals(e);
396
+ return e === !1 || _(yield h(e)) ? !0 : a(e) ? /^\s*$/.test(e) : yield super.equals(e);
387
397
  }
388
398
  static is(t) {
389
399
  return t instanceof e;
390
400
  }
391
- }, Le = class extends t {
401
+ }, ze = class extends t {
392
402
  constructor(e, t, n) {
393
403
  super(), this.i = 0, this.length = e, this.name = `${n}-${t}`;
394
404
  }
@@ -416,65 +426,65 @@ var Pe = class extends t {
416
426
  valueOf() {
417
427
  return JSON.stringify(this);
418
428
  }
419
- }, Re = class {
429
+ }, Be = class {
420
430
  constructor() {
421
431
  this.buffer = "";
422
432
  }
423
433
  write(e) {
424
434
  this.buffer += l(e);
425
435
  }
426
- }, ze = class {
436
+ }, Ve = class {
427
437
  constructor() {
428
438
  throw this.buffer = "", this.stream = null, Error("streaming not supported in browser");
429
439
  }
430
- }, Be = class {
440
+ }, He = class {
431
441
  constructor() {
432
442
  this.buffer = "";
433
443
  }
434
444
  write(e) {
435
- e = p(e), this.buffer = typeof e != "string" && this.buffer === "" ? e : l(this.buffer) + l(e);
445
+ e = h(e), this.buffer = typeof e != "string" && this.buffer === "" ? e : l(this.buffer) + l(e);
436
446
  }
437
- }, Ve = class extends t {
447
+ }, Ue = class extends t {
438
448
  constructor(e = () => "") {
439
449
  super(), this.superBlockRender = e;
440
450
  }
441
451
  *super() {
442
- let e = new Re();
452
+ let e = new Be();
443
453
  return yield this.superBlockRender(e), e.buffer;
444
454
  }
445
455
  };
446
456
  function T(e) {
447
457
  return e && o(e.equals) && o(e.gt) && o(e.geq) && o(e.lt) && o(e.leq);
448
458
  }
449
- var He = new Pe(), Ue = {
459
+ var We = new Ie(), Ge = {
450
460
  true: !0,
451
461
  false: !1,
452
- nil: He,
453
- null: He,
454
- empty: new Fe(),
455
- blank: new Ie()
456
- }, We = /* @__PURE__ */ new WeakMap();
457
- function Ge(e) {
458
- let t = We.get(e);
462
+ nil: We,
463
+ null: We,
464
+ empty: new Le(),
465
+ blank: new Re()
466
+ }, Ke = /* @__PURE__ */ new WeakMap();
467
+ function qe(e) {
468
+ let t = Ke.get(e);
459
469
  if (t) return t;
460
470
  let n = {};
461
471
  for (let [t, r] of Object.entries(e)) {
462
472
  let e = n;
463
473
  for (let n = 0; n < t.length; n++) {
464
474
  let r = t[n];
465
- e[r] = e[r] || {}, n === t.length - 1 && Me(t[n]) && (e[r].needBoundary = !0), e = e[r];
475
+ e[r] = e[r] || {}, n === t.length - 1 && Pe(t[n]) && (e[r].needBoundary = !0), e = e[r];
466
476
  }
467
477
  e.data = r, e.end = !0;
468
478
  }
469
- return We.set(e, n), n;
479
+ return Ke.set(e, n), n;
470
480
  }
471
- var E = function() {
472
- return E = Object.assign || function(e) {
481
+ var Je = function() {
482
+ return Je = Object.assign || function(e) {
473
483
  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]);
474
484
  return e;
475
- }, E.apply(this, arguments);
485
+ }, Je.apply(this, arguments);
476
486
  };
477
- function D(e, t, n, r) {
487
+ function E(e, t, n, r) {
478
488
  function i(e) {
479
489
  return e instanceof n ? e : new n(function(t) {
480
490
  t(e);
@@ -501,19 +511,19 @@ function D(e, t, n, r) {
501
511
  c((r = r.apply(e, t || [])).next());
502
512
  });
503
513
  }
504
- function Ke(e, t) {
514
+ function Ye(e, t) {
505
515
  let n = t || e;
506
516
  return (t, ...r) => t ? n(...r) : e(...r);
507
517
  }
508
- function O(e) {
509
- return D(this, void 0, void 0, function* () {
518
+ function D(e) {
519
+ return E(this, void 0, void 0, function* () {
510
520
  if (!c(e)) return e;
511
521
  let t, n = !1, r = "next";
512
522
  do {
513
523
  let i = e[r](t);
514
524
  n = !!i.done, t = i.value, r = "next";
515
525
  try {
516
- c(t) && (t = O(t)), s(t) && (t = yield t);
526
+ c(t) && (t = D(t)), s(t) && (t = yield t);
517
527
  } catch (e) {
518
528
  r = "throw", t = e;
519
529
  }
@@ -521,24 +531,24 @@ function O(e) {
521
531
  return t;
522
532
  });
523
533
  }
524
- function k(e) {
534
+ function O(e) {
525
535
  if (!c(e)) return e;
526
536
  let t, n = !1, r = "next";
527
537
  do {
528
538
  let i = e[r](t);
529
539
  if (n = !!i.done, t = i.value, r = "next", c(t)) try {
530
- t = k(t);
540
+ t = O(t);
531
541
  } catch (e) {
532
542
  r = "throw", t = e;
533
543
  }
534
544
  } while (!n);
535
545
  return t;
536
546
  }
537
- var qe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
538
- function Je(e) {
547
+ var Xe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
548
+ function Ze(e) {
539
549
  return [
540
550
  31,
541
- Ze(e) ? 29 : 28,
551
+ et(e) ? 29 : 28,
542
552
  31,
543
553
  30,
544
554
  31,
@@ -551,20 +561,20 @@ function Je(e) {
551
561
  31
552
562
  ];
553
563
  }
554
- function Ye(e) {
564
+ function Qe(e) {
555
565
  let t = 0;
556
- for (let n = 0; n < e.getMonth(); ++n) t += Je(e)[n];
566
+ for (let n = 0; n < e.getMonth(); ++n) t += Ze(e)[n];
557
567
  return t + e.getDate();
558
568
  }
559
- function Xe(e, t) {
569
+ function $e(e, t) {
560
570
  let n = (e.getDay() - t + 7) % 7;
561
- return String(Math.floor((Ye(e) - 1 - n + 7) / 7));
571
+ return String(Math.floor((Qe(e) - 1 - n + 7) / 7));
562
572
  }
563
- function Ze(e) {
573
+ function et(e) {
564
574
  let t = e.getFullYear();
565
575
  return !!(!(t & 3) && (t % 100 || t % 400 == 0 && t));
566
576
  }
567
- function Qe(e) {
577
+ function tt(e) {
568
578
  let t = e.getDate();
569
579
  if ([
570
580
  11,
@@ -578,10 +588,10 @@ function Qe(e) {
578
588
  default: return "th";
579
589
  }
580
590
  }
581
- function $e(e) {
591
+ function nt(e) {
582
592
  return Math.floor(e.getFullYear() / 100);
583
593
  }
584
- var et = {
594
+ var rt = {
585
595
  C: 2,
586
596
  d: 2,
587
597
  e: 2,
@@ -596,24 +606,25 @@ var et = {
596
606
  S: 2,
597
607
  U: 2,
598
608
  W: 2,
599
- y: 2
600
- }, tt = /* @__PURE__ */ new Set("aAbBceklpP");
601
- function nt(e, t) {
609
+ y: 2,
610
+ Y: 4
611
+ }, it = /* @__PURE__ */ new Set("aAbBceklpP");
612
+ function at(e, t) {
602
613
  let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
603
- return (e.getTimezoneOffset() > 0 ? "-" : "+") + v(r, 2, "0") + (t.flags[":"] ? ":" : "") + v(i, 2, "0");
614
+ return (e.getTimezoneOffset() > 0 ? "-" : "+") + y(r, 2, "0") + (t.flags[":"] ? ":" : "") + y(i, 2, "0");
604
615
  }
605
- var rt = {
616
+ var ot = {
606
617
  a: (e) => e.getShortWeekdayName(),
607
618
  A: (e) => e.getLongWeekdayName(),
608
619
  b: (e) => e.getShortMonthName(),
609
620
  B: (e) => e.getLongMonthName(),
610
621
  c: (e) => e.toLocaleString(),
611
- C: (e) => $e(e),
622
+ C: (e) => nt(e),
612
623
  d: (e) => e.getDate(),
613
624
  e: (e) => e.getDate(),
614
625
  H: (e) => e.getHours(),
615
626
  I: (e) => String(e.getHours() % 12 || 12),
616
- j: (e) => Ye(e),
627
+ j: (e) => Qe(e),
617
628
  k: (e) => e.getHours(),
618
629
  l: (e) => String(e.getHours() % 12 || 12),
619
630
  L: (e) => e.getMilliseconds(),
@@ -621,36 +632,36 @@ var rt = {
621
632
  M: (e) => e.getMinutes(),
622
633
  N: (e, t) => {
623
634
  var n;
624
- let r = Number(t.width) || 9, i = v(String(e.getMilliseconds()), 3, "0").slice(0, r);
625
- return (n = t.memoryLimit) == null || n.use(r - i.length), ce(i, r, "0");
635
+ let r = Number(t.width) || 9, i = y(String(e.getMilliseconds()), 3, "0").slice(0, r);
636
+ return (n = t.memoryLimit) == null || n.use(r - i.length), le(i, r, "0");
626
637
  },
627
638
  p: (e) => e.getHours() < 12 ? "AM" : "PM",
628
639
  P: (e) => e.getHours() < 12 ? "am" : "pm",
629
- q: (e) => Qe(e),
640
+ q: (e) => tt(e),
630
641
  s: (e) => Math.floor(e.dateValue() / 1e3),
631
642
  S: (e) => e.getSeconds(),
632
643
  u: (e) => e.getDay() || 7,
633
- U: (e) => Xe(e, 0),
644
+ U: (e) => $e(e, 0),
634
645
  w: (e) => e.getDay(),
635
- W: (e) => Xe(e, 1),
646
+ W: (e) => $e(e, 1),
636
647
  x: (e) => e.toLocaleDateString(),
637
648
  X: (e) => e.toLocaleTimeString(),
638
649
  y: (e) => (e.getFullYear() % 100 + 100) % 100,
639
650
  Y: (e) => e.getFullYear(),
640
- z: nt,
641
- Z: (e, t) => e.getTimeZoneName() || nt(e, t),
651
+ z: at,
652
+ Z: (e, t) => e.getTimeZoneName() || at(e, t),
642
653
  t: () => " ",
643
654
  n: () => "\n",
644
655
  "%": () => "%"
645
656
  };
646
- rt.h = rt.b;
647
- function it(e, t, n) {
657
+ ot.h = ot.b;
658
+ function k(e, t, n) {
648
659
  let r = "", i = t, a;
649
- for (; a = qe.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += at(e, a, n);
660
+ for (; a = Xe.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += st(e, a, n);
650
661
  return r + i;
651
662
  }
652
- function at(e, t, n) {
653
- let [r, i = "", a, o, s] = t, c = rt[s];
663
+ function st(e, t, n) {
664
+ let [r, i = "", a, o, s] = t, c = ot[s];
654
665
  if (!c) return r;
655
666
  let l = {};
656
667
  for (let e of i) l[e] = !0;
@@ -659,13 +670,13 @@ function at(e, t, n) {
659
670
  width: a,
660
671
  modifier: o,
661
672
  memoryLimit: n
662
- })), d = tt.has(s) ? " " : "0", f = Number(a) || et[s] || 0;
663
- return l["^"] ? u = u.toUpperCase() : l["#"] && (u = de(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), v(u, f, d);
673
+ })), d = it.has(s) ? " " : "0", f = Number(a) || rt[s] || 0;
674
+ return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), d === "0" && u[0] === "-" ? "-" + y(u.slice(1), f - 1, d) : y(u, f, d);
664
675
  }
665
- function ot() {
676
+ function ct() {
666
677
  return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
667
678
  }
668
- var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
679
+ var lt = 6e4, ut = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, dt = [
669
680
  "January",
670
681
  "February",
671
682
  "March",
@@ -678,7 +689,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
678
689
  "October",
679
690
  "November",
680
691
  "December"
681
- ], ut = lt.map((e) => e.slice(0, 3)), dt = [
692
+ ], ft = dt.map((e) => e.slice(0, 3)), pt = [
682
693
  "Sunday",
683
694
  "Monday",
684
695
  "Tuesday",
@@ -686,10 +697,10 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
686
697
  "Thursday",
687
698
  "Friday",
688
699
  "Saturday"
689
- ], ft = dt.map((e) => e.slice(0, 3)), A = class e {
700
+ ], mt = pt.map((e) => e.slice(0, 3)), A = class e {
690
701
  constructor(t, n, r) {
691
- 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 : "";
692
- let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * st, o = this.date.getTime() + i;
702
+ this.locale = n, this.DateTimeFormat = ct(), 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 : "";
703
+ let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * lt, o = this.date.getTime() + i;
693
704
  this.displayDate = new Date(o);
694
705
  }
695
706
  getTime() {
@@ -739,16 +750,16 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
739
750
  if (this.DateTimeFormat) return this.DateTimeFormat().resolvedOptions().timeZone;
740
751
  }
741
752
  getLongMonthName() {
742
- return this.format({ month: "long" }) ?? lt[this.getMonth()];
753
+ return this.format({ month: "long" }) ?? dt[this.getMonth()];
743
754
  }
744
755
  getShortMonthName() {
745
- return this.format({ month: "short" }) ?? ut[this.getMonth()];
756
+ return this.format({ month: "short" }) ?? ft[this.getMonth()];
746
757
  }
747
758
  getLongWeekdayName() {
748
- return this.format({ weekday: "long" }) ?? dt[this.displayDate.getDay()];
759
+ return this.format({ weekday: "long" }) ?? pt[this.displayDate.getDay()];
749
760
  }
750
761
  getShortWeekdayName() {
751
- return this.format({ weekday: "short" }) ?? ft[this.displayDate.getDay()];
762
+ return this.format({ weekday: "short" }) ?? mt[this.displayDate.getDay()];
752
763
  }
753
764
  valid() {
754
765
  return !isNaN(this.getTime());
@@ -757,7 +768,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
757
768
  return this.DateTimeFormat && this.DateTimeFormat(this.locale, e).format(this.displayDate);
758
769
  }
759
770
  static createDateFixedToTimezone(t, n) {
760
- let r = t.match(ct);
771
+ let r = t.match(ut);
761
772
  if (r && r[1] === "Z") return new e(+new Date(t), n, 0);
762
773
  if (r && r[2] && r[3] && r[4]) {
763
774
  let [, , i, a, o] = r, s = (i === "+" ? -1 : 1) * (parseInt(a, 10) * 60 + parseInt(o, 10));
@@ -769,7 +780,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
769
780
  let n = t.toLocaleString("en-US", { timeZone: e }), r = t.toLocaleString("en-US", { timeZone: "UTC" }), i = new Date(n);
770
781
  return (+new Date(r) - i) / 6e4;
771
782
  }
772
- }, pt = class {
783
+ }, ht = class {
773
784
  constructor(e, t) {
774
785
  this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
775
786
  }
@@ -779,7 +790,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
779
790
  check(e) {
780
791
  +e > 0 && w(+e <= this.limit, this.message);
781
792
  }
782
- }, mt = class extends e {
793
+ }, gt = class extends e {
783
794
  constructor(e, [t, n], r, i, a, o, s, c) {
784
795
  super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
785
796
  let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
@@ -790,36 +801,36 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
790
801
  get content() {
791
802
  return this.input.slice(this.contentRange[0], this.contentRange[1]);
792
803
  }
793
- }, ht = class extends mt {
804
+ }, _t = class extends gt {
794
805
  constructor(e, t, n, r, i) {
795
806
  let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
796
- super(q.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new L(e, r.operators, i, this.contentRange, r.groupedExpressions), 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]);
807
+ super(K.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new I(e, r.operators, i, this.contentRange, r.groupedExpressions), 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]);
797
808
  }
798
- }, gt = class extends mt {
809
+ }, vt = class extends gt {
799
810
  constructor(e, t, n, r, i) {
800
811
  let { trimOutputLeft: a, trimOutputRight: o, outputDelimiterLeft: s, outputDelimiterRight: c } = r, l = [t + s.length, n - c.length];
801
- super(q.Output, l, e, t, n, a, o, i);
812
+ super(K.Output, l, e, t, n, a, o, i);
802
813
  }
803
- }, _t = class extends e {
814
+ }, yt = class extends e {
804
815
  constructor(e, t, n, r) {
805
- 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;
816
+ super(K.HTML, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.trimLeft = 0, this.trimRight = 0;
806
817
  }
807
818
  getContent() {
808
819
  return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
809
820
  }
810
- }, vt = class extends e {
821
+ }, bt = class extends e {
811
822
  constructor(e, t, n, r) {
812
- super(q.Number, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Number(this.getText());
823
+ super(K.Number, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Number(this.getText());
813
824
  }
814
- }, yt = class extends e {
825
+ }, xt = class extends e {
815
826
  constructor(e, t, n, r) {
816
- super(q.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
827
+ super(K.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
817
828
  }
818
- }, bt = class extends e {
829
+ }, St = class extends e {
819
830
  constructor(e, t, n, r) {
820
- 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 = Ue[this.literal];
831
+ super(K.Literal, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.literal = this.getText(), this.content = Ge[this.literal];
821
832
  }
822
- }, xt = {
833
+ }, Ct = {
823
834
  "==": 2,
824
835
  "!=": 2,
825
836
  ">": 2,
@@ -830,7 +841,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
830
841
  not: 1,
831
842
  and: 0,
832
843
  or: 0
833
- }, St = {
844
+ }, wt = {
834
845
  "==": 0,
835
846
  "!=": 0,
836
847
  ">": 0,
@@ -841,26 +852,26 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
841
852
  not: 1,
842
853
  and: 0,
843
854
  or: 0
844
- }, Ct = class extends e {
855
+ }, Tt = class extends e {
845
856
  constructor(e, t, n, r) {
846
- super(q.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
857
+ super(K.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
847
858
  }
848
859
  getPrecedence() {
849
- return this.operator in xt ? xt[this.operator] : 1;
860
+ return this.operator in Ct ? Ct[this.operator] : 1;
850
861
  }
851
- }, wt = class extends e {
862
+ }, Et = class extends e {
852
863
  constructor(e, t, n, r, i, a) {
853
- super(q.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
864
+ super(K.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
854
865
  }
855
- }, Tt = class extends e {
866
+ }, Dt = class extends e {
856
867
  constructor(e, t, n, r, i, a) {
857
- super(q.Filter, n, r, i, a), this.name = e, this.args = t;
868
+ super(K.Filter, n, r, i, a), this.name = e, this.args = t;
858
869
  }
859
- }, Et = class extends e {
870
+ }, Ot = class extends e {
860
871
  constructor(e, t, n, r, i, a) {
861
- 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;
872
+ super(K.Hash, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.name = r, this.value = i, this.file = a;
862
873
  }
863
- }, Dt = /[\da-fA-F]/, Ot = /[0-7]/, kt = {
874
+ }, kt = /[\da-fA-F]/, At = /[0-7]/, jt = {
864
875
  b: "\b",
865
876
  f: "\f",
866
877
  n: "\n",
@@ -868,98 +879,98 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
868
879
  t: " ",
869
880
  v: "\v"
870
881
  };
871
- function At(e) {
882
+ function Mt(e) {
872
883
  let t = e.charCodeAt(0);
873
884
  return t >= 97 ? t - 87 : t >= 65 ? t - 55 : t - 48;
874
885
  }
875
- function jt(e) {
886
+ function Nt(e) {
876
887
  let t = "";
877
888
  for (let n = 1; n < e.length - 1; n++) if (e[n] !== "\\") t += e[n];
878
- else if (kt[e[n + 1]] !== void 0) t += kt[e[++n]];
889
+ else if (jt[e[n + 1]] !== void 0) t += jt[e[++n]];
879
890
  else if (e[n + 1] === "u") {
880
891
  let r = 0, i = n + 2;
881
- for (; i <= n + 5 && Dt.test(e[i]);) r = r * 16 + At(e[i++]);
892
+ for (; i <= n + 5 && kt.test(e[i]);) r = r * 16 + Mt(e[i++]);
882
893
  n = i - 1, t += String.fromCharCode(r);
883
- } else if (!Ot.test(e[n + 1])) t += e[++n];
894
+ } else if (!At.test(e[n + 1])) t += e[++n];
884
895
  else {
885
896
  let r = n + 1, i = 0;
886
- for (; r <= n + 3 && Ot.test(e[r]);) i = i * 8 + At(e[r++]);
897
+ for (; r <= n + 3 && At.test(e[r]);) i = i * 8 + Mt(e[r++]);
887
898
  n = r - 1, t += String.fromCharCode(i);
888
899
  }
889
900
  return t;
890
901
  }
891
- var Mt = class extends e {
902
+ var Pt = class extends e {
892
903
  constructor(e, t, n, r) {
893
- super(q.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = jt(this.getText());
904
+ super(K.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Nt(this.getText());
894
905
  }
895
- }, Nt = class extends e {
906
+ }, Ft = class extends e {
896
907
  constructor(e, t, n, r, i, a) {
897
- 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;
908
+ super(K.Range, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.lhs = r, this.rhs = i, this.file = a;
898
909
  }
899
- }, Pt = class extends mt {
910
+ }, It = class extends gt {
900
911
  constructor(e, t, n, r, i) {
901
- super(q.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new L(e, r.operators, i, this.contentRange, r.groupedExpressions), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
912
+ super(K.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new I(e, r.operators, i, this.contentRange, r.groupedExpressions), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
902
913
  }
903
914
  get args() {
904
915
  return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
905
916
  }
906
- }, Ft = class extends e {
917
+ }, Lt = class extends e {
907
918
  constructor(e, t, n, r, i, a) {
908
- 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;
919
+ super(K.FilteredValue, n, r, i, a), this.initial = e, this.filters = t, this.input = n, this.begin = r, this.end = i, this.file = a;
909
920
  }
910
- }, It = { now: () => Date.now() };
911
- function Lt() {
912
- return typeof global == "object" && global.performance || typeof window == "object" && window.performance || It;
921
+ }, Rt = { now: () => Date.now() };
922
+ function zt() {
923
+ return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Rt;
913
924
  }
914
- var Rt = class {
925
+ var Bt = class {
915
926
  renderTemplatesToNodeStream(e, t) {
916
- let n = new ze();
917
- return Promise.resolve().then(() => O(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
927
+ let n = new Ve();
928
+ return Promise.resolve().then(() => D(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
918
929
  }
919
930
  *renderTemplates(e, t, n) {
920
- n ||= t.opts.keepOutputType ? new Be() : new Re(), t.renderLimit.check(Lt().now());
931
+ n ||= t.opts.keepOutputType ? new He() : new Be(), t.renderLimit.check(zt().now());
921
932
  let r = [];
922
933
  for (let i of e) {
923
- t.renderLimit.check(Lt().now());
934
+ t.renderLimit.check(zt().now());
924
935
  try {
925
936
  let e = yield i.render(t, n);
926
937
  if (e && n.write(e), t.breakCalled || t.continueCalled) break;
927
938
  } catch (e) {
928
- let n = x.is(e) ? e : new ye(e, i);
939
+ let n = x.is(e) ? e : new xe(e, i);
929
940
  if (t.opts.catchAllErrors) r.push(n);
930
941
  else throw n;
931
942
  }
932
943
  }
933
- if (r.length) throw new be(r);
944
+ if (r.length) throw new Se(r);
934
945
  return n.buffer;
935
946
  }
936
947
  };
937
- function zt(e) {
938
- return g(e);
948
+ function Vt(e) {
949
+ return v(e);
939
950
  }
940
- var Bt = class {
951
+ var Ht = class {
941
952
  constructor(e, t, n) {
942
- this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler : ue, this.raw = !o(t) && !!t?.raw, this.args = e.args, this.liquid = n;
953
+ 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;
943
954
  }
944
955
  *render(e, t) {
945
956
  let n = [];
946
- for (let e of this.args) zt(e) ? n.push([e[0], yield j(e[1], t)]) : n.push(yield j(e, t));
957
+ for (let e of this.args) Vt(e) ? n.push([e[0], yield j(e[1], t)]) : n.push(yield j(e, t));
947
958
  return yield this.handler.apply({
948
959
  context: t,
949
960
  token: this.token,
950
961
  liquid: this.liquid
951
962
  }, [e, ...n]);
952
963
  }
953
- }, Vt = class {
964
+ }, Ut = class {
954
965
  constructor(e) {
955
- this.postfix = [...qt(e)];
966
+ this.postfix = [...Yt(e)];
956
967
  }
957
968
  *evaluate(e, t) {
958
969
  w(e, "unable to evaluate: context not defined");
959
970
  let n = [];
960
- for (let r of this.postfix) if (Kn(r)) {
971
+ for (let r of this.postfix) if (Yn(r)) {
961
972
  let t = n.pop(), i;
962
- if (St[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
973
+ if (wt[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
963
974
  else {
964
975
  let a = n.pop();
965
976
  i = yield e.opts.operators[r.operator](a, t, e);
@@ -975,26 +986,26 @@ var Bt = class {
975
986
  function* j(e, t, n = !1) {
976
987
  if (e) {
977
988
  if ("content" in e) return e.content;
978
- if (Zn(e)) return yield Wt(e, t, n);
979
- if ($n(e)) return yield Kt(e, t);
980
- if (er(e)) return yield Ht(e, t, n);
989
+ if (J(e)) return yield Kt(e, t, n);
990
+ if (nr(e)) return yield Jt(e, t);
991
+ if (rr(e)) return yield Wt(e, t, n);
981
992
  }
982
993
  }
983
- function* Ht(e, t, n) {
994
+ function* Wt(e, t, n) {
984
995
  w(t.liquid, "FilteredValueToken evaluation requires liquid instance in context"), n ||= t.opts.lenientIf && e.filters.length > 0 && e.filters[0].name === "default";
985
996
  let r = yield e.initial.evaluate(t, n);
986
997
  for (let n of e.filters) {
987
998
  let e = t.liquid.filters[n.name];
988
- w(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Bt(n, e, t.liquid).render(r, t);
999
+ w(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Ht(n, e, t.liquid).render(r, t);
989
1000
  }
990
1001
  return r;
991
1002
  }
992
- function* Ut(e, t, n = !1) {
993
- return yield p(yield j(e, t, n));
1003
+ function* Gt(e, t, n = !1) {
1004
+ return yield h(yield j(e, t, n));
994
1005
  }
995
- function* Wt(e, t, n) {
1006
+ function* Kt(e, t, n) {
996
1007
  let r = [];
997
- for (let n of e.props) r.push(yield Ut(n, t, !1));
1008
+ for (let n of e.props) r.push(yield Gt(n, t, !1));
998
1009
  try {
999
1010
  if (e.variable) {
1000
1011
  let i = yield j(e.variable, t, n);
@@ -1003,86 +1014,86 @@ function* Wt(e, t, n) {
1003
1014
  return yield t._get(r);
1004
1015
  } catch (t) {
1005
1016
  if (n && t.name === "InternalUndefinedVariableError") return null;
1006
- throw new xe(t, e);
1017
+ throw new Ce(t, e);
1007
1018
  }
1008
1019
  }
1009
- function Gt(e) {
1020
+ function qt(e) {
1010
1021
  return e.content;
1011
1022
  }
1012
- function* Kt(e, t) {
1013
- let n = yield Ut(e.lhs, t), r = yield Ut(e.rhs, t);
1014
- return t.memoryLimit.use(r - n + 1), se(+n, +r + 1);
1023
+ function* Jt(e, t) {
1024
+ let n = yield Gt(e.lhs, t), r = yield Gt(e.rhs, t);
1025
+ return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
1015
1026
  }
1016
- function* qt(e) {
1027
+ function* Yt(e) {
1017
1028
  let t = [];
1018
- for (let n of e) if (Kn(n)) {
1029
+ for (let n of e) if (Yn(n)) {
1019
1030
  for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
1020
1031
  t.push(n);
1021
1032
  } else yield n;
1022
1033
  for (; t.length;) yield t.pop();
1023
1034
  }
1024
1035
  function M(e, t) {
1025
- return !Jt(e, t);
1036
+ return !N(e, t);
1026
1037
  }
1027
- function Jt(e, t) {
1028
- return e = p(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
1038
+ function N(e, t) {
1039
+ return e = h(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
1029
1040
  }
1030
- var Yt = {
1041
+ var Xt = {
1031
1042
  "==": function* (e, t) {
1032
- return yield N(e, t);
1043
+ return yield P(e, t);
1033
1044
  },
1034
1045
  "!=": function* (e, t) {
1035
- return !(yield N(e, t));
1046
+ return !(yield P(e, t));
1036
1047
  },
1037
1048
  ">": function* (e, t) {
1038
- return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield p(e)) > (yield p(t));
1049
+ return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield h(e)) > (yield h(t));
1039
1050
  },
1040
1051
  "<": function* (e, t) {
1041
- return T(e) ? yield e.lt(t) : T(t) ? yield t.gt(e) : (yield p(e)) < (yield p(t));
1052
+ return T(e) ? yield e.lt(t) : T(t) ? yield t.gt(e) : (yield h(e)) < (yield h(t));
1042
1053
  },
1043
1054
  ">=": function* (e, t) {
1044
- return T(e) ? yield e.geq(t) : T(t) ? yield t.leq(e) : (yield p(e)) >= (yield p(t));
1055
+ return T(e) ? yield e.geq(t) : T(t) ? yield t.leq(e) : (yield h(e)) >= (yield h(t));
1045
1056
  },
1046
1057
  "<=": function* (e, t) {
1047
- return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield p(e)) <= (yield p(t));
1058
+ return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield h(e)) <= (yield h(t));
1048
1059
  },
1049
1060
  contains: function* (e, t) {
1050
- return e = yield p(e), g(e) ? yield Zt(e, t) : o(e?.indexOf) ? e.indexOf(yield p(t)) > -1 : !1;
1061
+ return e = yield h(e), v(e) ? yield Qt(e, t) : o(e?.indexOf) ? e.indexOf(yield h(t)) > -1 : !1;
1051
1062
  },
1052
1063
  not: function* (e, t) {
1053
- return Jt(yield p(e), t);
1064
+ return N(yield h(e), t);
1054
1065
  },
1055
1066
  and: function* (e, t, n) {
1056
- return M(yield p(e), n) && M(yield p(t), n);
1067
+ return M(yield h(e), n) && M(yield h(t), n);
1057
1068
  },
1058
1069
  or: function* (e, t, n) {
1059
- return M(yield p(e), n) || M(yield p(t), n);
1070
+ return M(yield h(e), n) || M(yield h(t), n);
1060
1071
  }
1061
1072
  };
1062
- function* N(e, t) {
1063
- return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield p(e), t = yield p(t), g(e) ? g(t) && (yield Xt(e, t)) : e === t);
1073
+ function* P(e, t) {
1074
+ return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield h(e), t = yield h(t), v(e) ? v(t) && (yield Zt(e, t)) : e === t);
1064
1075
  }
1065
- function* Xt(e, t) {
1076
+ function* Zt(e, t) {
1066
1077
  if (e.length !== t.length) return !1;
1067
- for (let n = 0; n < e.length; n++) if (!(yield N(e[n], t[n]))) return !1;
1078
+ for (let n = 0; n < e.length; n++) if (!(yield P(e[n], t[n]))) return !1;
1068
1079
  return !0;
1069
1080
  }
1070
- function* Zt(e, t) {
1071
- for (let n of e) if (yield N(n, t)) return !0;
1081
+ function* Qt(e, t) {
1082
+ for (let n of e) if (yield P(n, t)) return !0;
1072
1083
  return !1;
1073
1084
  }
1074
- var Qt = class {
1085
+ var $t = class {
1075
1086
  constructor(e, t, n, r) {
1076
1087
  this.key = e, this.value = t, this.next = n, this.prev = r;
1077
1088
  }
1078
- }, $t = class {
1089
+ }, en = class {
1079
1090
  constructor(e, t = 0) {
1080
- 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;
1091
+ this.limit = e, this.size = t, this.cache = {}, this.head = new $t("HEAD", null, null, null), this.tail = new $t("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
1081
1092
  }
1082
1093
  write(e, t) {
1083
1094
  if (this.cache[e]) this.cache[e].value = t;
1084
1095
  else {
1085
- let n = new Qt(e, t, this.head.next, this.head);
1096
+ let n = new $t(e, t, this.head.next, this.head);
1086
1097
  this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
1087
1098
  }
1088
1099
  }
@@ -1102,7 +1113,7 @@ var Qt = class {
1102
1113
  this.size > this.limit && this.remove(this.tail.prev.key);
1103
1114
  }
1104
1115
  };
1105
- function en(e, t) {
1116
+ function tn(e, t) {
1106
1117
  let n = document.createElement("base");
1107
1118
  n.href = e;
1108
1119
  let r = document.getElementsByTagName("head")[0];
@@ -1112,14 +1123,14 @@ function en(e, t) {
1112
1123
  let a = i.href;
1113
1124
  return r.removeChild(n), a;
1114
1125
  }
1115
- function tn(e, t, n) {
1116
- return e.length && oe(e) !== "/" && (e += "/"), en(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1126
+ function nn(e, t, n) {
1127
+ return e.length && oe(e) !== "/" && (e += "/"), tn(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1117
1128
  let i = r.split("/").pop();
1118
1129
  return /\.\w+$/.test(i) ? e : t + r + n;
1119
1130
  });
1120
1131
  }
1121
- function nn(e) {
1122
- return D(this, void 0, void 0, function* () {
1132
+ function rn(e) {
1133
+ return E(this, void 0, void 0, function* () {
1123
1134
  return new Promise((t, n) => {
1124
1135
  let r = new XMLHttpRequest();
1125
1136
  r.onload = () => {
@@ -1130,93 +1141,93 @@ function nn(e) {
1130
1141
  });
1131
1142
  });
1132
1143
  }
1133
- function rn(e) {
1144
+ function an(e) {
1134
1145
  let t = new XMLHttpRequest();
1135
1146
  if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
1136
1147
  return t.responseText;
1137
1148
  }
1138
- function an(e) {
1139
- return D(this, void 0, void 0, function* () {
1149
+ function on(e) {
1150
+ return E(this, void 0, void 0, function* () {
1140
1151
  return !0;
1141
1152
  });
1142
1153
  }
1143
- function on(e) {
1154
+ function sn(e) {
1144
1155
  return !0;
1145
1156
  }
1146
- function sn(e) {
1147
- return en(e, ".");
1157
+ function cn(e) {
1158
+ return tn(e, ".");
1148
1159
  }
1149
- var cn = /*#__PURE__*/ Object.freeze({
1160
+ var ln = /*#__PURE__*/ Object.freeze({
1150
1161
  __proto__: null,
1151
- resolve: tn,
1152
- readFile: nn,
1153
- readFileSync: rn,
1154
- exists: an,
1155
- existsSync: on,
1156
- dirname: sn,
1162
+ resolve: nn,
1163
+ readFile: rn,
1164
+ readFileSync: an,
1165
+ exists: on,
1166
+ existsSync: sn,
1167
+ dirname: cn,
1157
1168
  sep: "/"
1158
1169
  });
1159
- function ln(e, t) {
1170
+ function un(e, t) {
1160
1171
  typeof t == "string" ? e.use(t.length) : t === null || typeof t == "number" || typeof t == "boolean" ? e.use(JSON.stringify(t).length) : Array.isArray(t) ? e.use(t.length + 1) : typeof t == "object" && e.use(2);
1161
1172
  }
1162
- function un(e, t, ...n) {
1163
- return e = p(e), g(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : Jt(e, this.context) ? t : e;
1173
+ function dn(e, t, ...n) {
1174
+ return e = h(e), v(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : N(e, this.context) ? t : e;
1164
1175
  }
1165
- function dn(e, t = 0) {
1176
+ function fn(e, t = 0) {
1166
1177
  let n = this.context.memoryLimit;
1167
- return JSON.stringify(e, (e, t) => (ln(n, t), t), t);
1178
+ return JSON.stringify(e, (e, t) => (un(n, t), t), t);
1168
1179
  }
1169
- function fn(e, t = 0) {
1180
+ function pn(e, t = 0) {
1170
1181
  let n = this.context.memoryLimit, r = [];
1171
1182
  return JSON.stringify(e, function(e, t) {
1172
- if (typeof t != "object" || !t) return ln(n, t), t;
1183
+ if (typeof t != "object" || !t) return un(n, t), t;
1173
1184
  for (; r.length > 0 && r[r.length - 1] !== this;) r.pop();
1174
- return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), ln(n, t), t);
1185
+ return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), un(n, t), t);
1175
1186
  }, t);
1176
1187
  }
1177
- function pn(e) {
1188
+ function mn(e) {
1178
1189
  return Number(e);
1179
1190
  }
1180
- var mn = {
1181
- default: un,
1191
+ var hn = {
1192
+ default: dn,
1182
1193
  raw: {
1183
1194
  raw: !0,
1184
- handler: ue
1195
+ handler: de
1185
1196
  },
1186
- jsonify: dn,
1187
- to_integer: pn,
1188
- json: dn,
1189
- inspect: fn
1190
- }, hn = {
1197
+ jsonify: fn,
1198
+ to_integer: mn,
1199
+ json: fn,
1200
+ inspect: pn
1201
+ }, gn = {
1191
1202
  "&": "&amp;",
1192
1203
  "<": "&lt;",
1193
1204
  ">": "&gt;",
1194
1205
  "\"": "&#34;",
1195
1206
  "'": "&#39;"
1196
- }, gn = {
1207
+ }, _n = {
1197
1208
  "&amp;": "&",
1198
1209
  "&lt;": "<",
1199
1210
  "&gt;": ">",
1200
1211
  "&#34;": "\"",
1201
1212
  "&#39;": "'"
1202
1213
  };
1203
- function P(e) {
1204
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => hn[e]);
1205
- }
1206
- function _n(e) {
1207
- return P.call(this, e);
1208
- }
1209
1214
  function vn(e) {
1210
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => gn[e]);
1215
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => gn[e]);
1211
1216
  }
1212
1217
  function yn(e) {
1213
- return P.call(this, vn.call(this, e));
1218
+ return vn.call(this, e);
1214
1219
  }
1215
1220
  function bn(e) {
1221
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => _n[e]);
1222
+ }
1223
+ function xn(e) {
1224
+ return vn.call(this, bn.call(this, e));
1225
+ }
1226
+ function Sn(e) {
1216
1227
  let t = l(e);
1217
1228
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "<br />\n");
1218
1229
  }
1219
- function xn(e) {
1230
+ function Cn(e) {
1220
1231
  let t = l(e);
1221
1232
  this.context.memoryLimit.use(t.length);
1222
1233
  let n = /* @__PURE__ */ new Map([
@@ -1242,33 +1253,33 @@ function xn(e) {
1242
1253
  }
1243
1254
  return r;
1244
1255
  }
1245
- var Sn = /*#__PURE__*/ Object.freeze({
1256
+ var wn = /*#__PURE__*/ Object.freeze({
1246
1257
  __proto__: null,
1247
- escape: P,
1248
- xml_escape: _n,
1249
- escape_once: yn,
1250
- newline_to_br: bn,
1251
- strip_html: xn
1252
- }), Cn = class {
1258
+ escape: vn,
1259
+ xml_escape: yn,
1260
+ escape_once: xn,
1261
+ newline_to_br: Sn,
1262
+ strip_html: Cn
1263
+ }), Tn = class {
1253
1264
  constructor(e) {
1254
1265
  this.mapping = e, this.sep = "/";
1255
1266
  }
1256
1267
  exists(e) {
1257
- return D(this, void 0, void 0, function* () {
1268
+ return E(this, void 0, void 0, function* () {
1258
1269
  return this.existsSync(e);
1259
1270
  });
1260
1271
  }
1261
1272
  existsSync(e) {
1262
- return !h(this.mapping[e]);
1273
+ return !_(this.mapping[e]);
1263
1274
  }
1264
1275
  readFile(e) {
1265
- return D(this, void 0, void 0, function* () {
1276
+ return E(this, void 0, void 0, function* () {
1266
1277
  return this.readFileSync(e);
1267
1278
  });
1268
1279
  }
1269
1280
  readFileSync(e) {
1270
1281
  let t = this.mapping[e];
1271
- if (h(t)) throw Error(`ENOENT: ${e}`);
1282
+ if (_(t)) throw Error(`ENOENT: ${e}`);
1272
1283
  return t;
1273
1284
  }
1274
1285
  dirname(e) {
@@ -1291,7 +1302,7 @@ var Sn = /*#__PURE__*/ Object.freeze({
1291
1302
  keyValueSeparator: ":",
1292
1303
  cache: void 0,
1293
1304
  extname: "",
1294
- fs: cn,
1305
+ fs: ln,
1295
1306
  dynamicPartials: !0,
1296
1307
  jsTruthy: !1,
1297
1308
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -1312,50 +1323,50 @@ var Sn = /*#__PURE__*/ Object.freeze({
1312
1323
  lenientIf: !1,
1313
1324
  globals: {},
1314
1325
  keepOutputType: !1,
1315
- operators: Yt,
1326
+ operators: Xt,
1316
1327
  groupedExpressions: !1,
1317
1328
  memoryLimit: Infinity,
1318
1329
  parseLimit: Infinity,
1319
1330
  renderLimit: Infinity
1320
1331
  };
1321
- function wn(e) {
1332
+ function En(e) {
1322
1333
  if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
1323
1334
  let t;
1324
- t = typeof e.cache == "number" ? e.cache > 0 ? new $t(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new $t(1024) : void 0, e.cache = t;
1335
+ t = typeof e.cache == "number" ? e.cache > 0 ? new en(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new en(1024) : void 0, e.cache = t;
1325
1336
  }
1326
- return e = Object.assign(Object.assign(Object.assign({}, F), 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 = I(e.root), e.partials = I(e.partials), e.layouts = I(e.layouts), e.outputEscape = e.outputEscape && Tn(e.outputEscape), e.locale || (e.locale = ot()?.().resolvedOptions().locale ?? "en-US"), e.templates && (e.fs = new Cn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
1337
+ return e = Object.assign(Object.assign(Object.assign({}, F), 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 = On(e.root), e.partials = On(e.partials), e.layouts = On(e.layouts), e.outputEscape = e.outputEscape && Dn(e.outputEscape), e.locale || (e.locale = ct()?.().resolvedOptions().locale ?? "en-US"), e.templates && (e.fs = new Tn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
1327
1338
  }
1328
- function Tn(e) {
1329
- return e === "escape" ? P : e === "json" ? mn.json : (w(o(e), "`outputEscape` need to be of type string or function"), e);
1339
+ function Dn(e) {
1340
+ return e === "escape" ? vn : e === "json" ? hn.json : (w(o(e), "`outputEscape` need to be of type string or function"), e);
1330
1341
  }
1331
- function I(e) {
1342
+ function On(e) {
1332
1343
  let t = [];
1333
- return g(e) && (t = e), a(e) && (t = [e]), t;
1344
+ return v(e) && (t = e), a(e) && (t = [e]), t;
1334
1345
  }
1335
- function En(e, t) {
1346
+ function kn(e, t) {
1336
1347
  let n = !1;
1337
1348
  for (let r = 0; r < e.length; r++) {
1338
1349
  let i = e[r];
1339
- Gn(i) && (!n && i.trimLeft && Dn(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && On(e[r + 1], t.greedy));
1350
+ Jn(i) && (!n && i.trimLeft && An(e[r - 1], t.greedy), q(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && jn(e[r + 1], t.greedy));
1340
1351
  }
1341
1352
  }
1342
- function Dn(e, t) {
1343
- if (!e || !qn(e)) return;
1344
- let n = t ? C : Oe;
1353
+ function An(e, t) {
1354
+ if (!e || !Xn(e)) return;
1355
+ let n = t ? C : Ae;
1345
1356
  for (; S[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
1346
1357
  }
1347
- function On(e, t) {
1348
- if (!e || !qn(e)) return;
1349
- let n = t ? C : Oe;
1358
+ function jn(e, t) {
1359
+ if (!e || !Xn(e)) return;
1360
+ let n = t ? C : Ae;
1350
1361
  for (; S[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
1351
1362
  e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
1352
1363
  }
1353
- var L = class {
1364
+ var I = class {
1354
1365
  constructor(e, t = F.operators, n, r, i = !1) {
1355
- this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = Ge(t), this.literalTrie = Ge(Ue), this.groupedExpressions = i;
1366
+ this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = qe(t), this.literalTrie = qe(Ge), this.groupedExpressions = i;
1356
1367
  }
1357
1368
  readExpression() {
1358
- return new Vt(this.readExpressionTokens());
1369
+ return new Ut(this.readExpressionTokens());
1359
1370
  }
1360
1371
  *readExpressionTokens() {
1361
1372
  for (; this.p < this.N;) {
@@ -1372,16 +1383,16 @@ var L = class {
1372
1383
  readOperator() {
1373
1384
  this.skipBlank();
1374
1385
  let e = this.matchTrie(this.opTrie);
1375
- if (e !== -1) return new Ct(this.input, this.p, this.p = e, this.file);
1386
+ if (e !== -1) return new Tt(this.input, this.p, this.p = e, this.file);
1376
1387
  }
1377
1388
  matchTrie(e) {
1378
1389
  let t = e, n = this.p, r;
1379
1390
  for (; t[this.input[n]] && n < this.N;) t = t[this.input[n++]], t.end && (r = t);
1380
- return !r || r.needBoundary && Me(this.peek(n - this.p)) ? -1 : n;
1391
+ return !r || r.needBoundary && Pe(this.peek(n - this.p)) ? -1 : n;
1381
1392
  }
1382
1393
  readFilteredValue() {
1383
1394
  let e = this.p, t = this.readExpression();
1384
- return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new Ft(t, this.readFilters(), this.input, e, this.p, this.file);
1395
+ return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new Lt(t, this.readFilters(), this.input, e, this.p, this.file);
1385
1396
  }
1386
1397
  readFilters() {
1387
1398
  let e = [];
@@ -1392,7 +1403,7 @@ var L = class {
1392
1403
  }
1393
1404
  }
1394
1405
  readFilter() {
1395
- if (this.skipBlank(), this.end() || this.peek() === ")") return null;
1406
+ if (this.skipBlank(), this.end() || this.peek() === ")" || this.peek() === ",") return null;
1396
1407
  this.assert(this.read() === "|", "expected \"|\" before filter");
1397
1408
  let e = this.readIdentifier();
1398
1409
  if (!e.size()) return this.assert(this.end(), "expected filter name"), null;
@@ -1402,8 +1413,8 @@ var L = class {
1402
1413
  let e = this.readFilterArg();
1403
1414
  e && t.push(e), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|" || this.peek() === ")", () => `unexpected character ${this.snapshot()}`);
1404
1415
  } while (this.peek() === ",");
1405
- else if (!(this.peek() === "|" || this.peek() === ")" || this.end())) throw this.error("expected \":\" after filter name");
1406
- return new Tt(e.getText(), t, this.input, e.begin, this.p, this.file);
1416
+ else if (!(this.peek() === "|" || this.peek() === ")" || this.peek() === "," || this.end())) throw this.error("expected \":\" after filter name");
1417
+ return new Dt(e.getText(), t, this.input, e.begin, this.p, this.file);
1407
1418
  }
1408
1419
  readFilterArg() {
1409
1420
  let e = this.readValue();
@@ -1419,7 +1430,7 @@ var L = class {
1419
1430
  let n = this.readTopLevelToken(e);
1420
1431
  t.push(n);
1421
1432
  }
1422
- return En(t, e), t;
1433
+ return kn(t, e), t;
1423
1434
  }
1424
1435
  readTopLevelToken(e) {
1425
1436
  let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
@@ -1428,23 +1439,23 @@ var L = class {
1428
1439
  readHTMLToken(e) {
1429
1440
  let t = this.p;
1430
1441
  for (; this.p < this.N && !e.some((e) => this.match(e));) ++this.p;
1431
- return new _t(this.input, t, this.p, this.file);
1442
+ return new yt(this.input, t, this.p, this.file);
1432
1443
  }
1433
1444
  readTagToken(e) {
1434
1445
  let { file: t, input: n } = this, r = this.p;
1435
1446
  if (this.readToDelimiter(e.tagDelimiterRight) === -1) throw this.error(`tag ${this.snapshot(r)} not closed`, r);
1436
- let i = new ht(n, r, this.p, e, t);
1447
+ let i = new _t(n, r, this.p, e, t);
1437
1448
  return i.name === "raw" && (this.rawBeginAt = r), i;
1438
1449
  }
1439
1450
  readToDelimiter(e, t = !1) {
1440
- for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() & De) this.readQuoted();
1451
+ for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() & ke) this.readQuoted();
1441
1452
  else if (++this.p, this.rmatch(e)) return this.p;
1442
1453
  return -1;
1443
1454
  }
1444
1455
  readOutputToken(e = F) {
1445
1456
  let { file: t, input: n } = this, { outputDelimiterRight: r } = e, i = this.p;
1446
1457
  if (this.readToDelimiter(r, !0) === -1) throw this.error(`output ${this.snapshot(i)} not closed`, i);
1447
- return new gt(n, i, this.p, e, t);
1458
+ return new vt(n, i, this.p, e, t);
1448
1459
  }
1449
1460
  readEndrawOrRawContent(e) {
1450
1461
  let { tagDelimiterLeft: t, tagDelimiterRight: n } = e, r = this.p, i = this.readTo(t) - t.length;
@@ -1452,7 +1463,7 @@ var L = class {
1452
1463
  else for (; this.p <= this.N;) {
1453
1464
  if (this.rmatch(n)) {
1454
1465
  let t = this.p;
1455
- 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));
1466
+ return r === i ? (this.rawBeginAt = -1, new _t(this.input, r, t, e, this.file)) : (this.p = i, new yt(this.input, r, i, this.file));
1456
1467
  }
1457
1468
  if (this.rmatch(t)) break;
1458
1469
  this.p++;
@@ -1472,16 +1483,16 @@ var L = class {
1472
1483
  let t = this.p;
1473
1484
  this.readToDelimiter("\n");
1474
1485
  let n = this.p;
1475
- return new Pt(this.input, t, n, e, this.file);
1486
+ return new It(this.input, t, n, e, this.file);
1476
1487
  }
1477
1488
  error(e, t = this.p) {
1478
- return new _e(e, new yt(this.input, t, this.N, this.file));
1489
+ return new ye(e, new xt(this.input, t, this.N, this.file));
1479
1490
  }
1480
1491
  assert(e, t, n) {
1481
1492
  if (!e) throw this.error(typeof t == "function" ? t() : t, n);
1482
1493
  }
1483
1494
  snapshot(e = this.p) {
1484
- return JSON.stringify(fe(this.input.slice(e, this.N), 32));
1495
+ return JSON.stringify(pe(this.input.slice(e, this.N), 32));
1485
1496
  }
1486
1497
  readWord() {
1487
1498
  return this.readIdentifier();
@@ -1489,8 +1500,8 @@ var L = class {
1489
1500
  readIdentifier() {
1490
1501
  this.skipBlank();
1491
1502
  let e = this.p;
1492
- for (; !this.end() && Me(this.peek());) ++this.p;
1493
- return new yt(this.input, e, this.p, this.file);
1503
+ for (; !this.end() && Pe(this.peek());) ++this.p;
1504
+ return new xt(this.input, e, this.p, this.file);
1494
1505
  }
1495
1506
  readNonEmptyIdentifier() {
1496
1507
  let e = this.readIdentifier();
@@ -1514,7 +1525,7 @@ var L = class {
1514
1525
  let r;
1515
1526
  this.skipBlank();
1516
1527
  let i = a(e) ? e : e ? "=" : ":";
1517
- return this.peek() === i && (++this.p, r = this.readValue()), new Et(this.input, t, this.p, n, r, this.file);
1528
+ return this.peek() === i && (++this.p, r = this.readValue()), new Ot(this.input, t, this.p, n, r, this.file);
1518
1529
  }
1519
1530
  remaining() {
1520
1531
  return this.input.slice(this.p, this.N);
@@ -1537,18 +1548,18 @@ var L = class {
1537
1548
  let e = this.p, t = this.readLiteral() || this.readQuoted() || this.readNumber();
1538
1549
  !t && this.peek() === "(" && (t = this.readGroupOrRange());
1539
1550
  let n = this.readProperties(!t);
1540
- return n.length ? new wt(t, n, this.input, e, this.p) : t;
1551
+ return n.length ? new Et(t, n, this.input, e, this.p) : t;
1541
1552
  }
1542
1553
  readScopeValue() {
1543
1554
  this.skipBlank();
1544
1555
  let e = this.p, t = this.readProperties();
1545
- if (t.length) return new wt(void 0, t, this.input, e, this.p);
1556
+ if (t.length) return new Et(void 0, t, this.input, e, this.p);
1546
1557
  }
1547
1558
  readProperties(e = !0) {
1548
1559
  let t = [];
1549
1560
  for (;;) if (this.peek() === "[") {
1550
1561
  this.p++;
1551
- let e = this.readValue() || new yt(this.input, this.p, this.p, this.file);
1562
+ let e = this.readValue() || new xt(this.input, this.p, this.p, this.file);
1552
1563
  this.assert(this.readTo("]") !== -1, "[ not closed"), t.push(e);
1553
1564
  } else {
1554
1565
  if (e && !t.length) {
@@ -1570,13 +1581,13 @@ var L = class {
1570
1581
  readNumber() {
1571
1582
  this.skipBlank();
1572
1583
  let e = !1, t = !1, n = 0;
1573
- for (this.peekType() & Ae && n++; this.p + n <= this.N;) if (this.peekType(n) & ke) t = !0, n++;
1584
+ for (this.peekType() & Me && n++; this.p + n <= this.N;) if (this.peekType(n) & je) t = !0, n++;
1574
1585
  else if (this.peek(n) === "." && this.peek(n + 1) !== ".") {
1575
1586
  if (e || !t) return;
1576
1587
  e = !0, n++;
1577
1588
  } else break;
1578
- if (t && !Me(this.peek(n))) {
1579
- let e = new vt(this.input, this.p, this.p + n, this.file);
1589
+ if (t && !Pe(this.peek(n))) {
1590
+ let e = new bt(this.input, this.p, this.p + n, this.file);
1580
1591
  return this.advance(n), e;
1581
1592
  }
1582
1593
  }
@@ -1584,7 +1595,7 @@ var L = class {
1584
1595
  this.skipBlank();
1585
1596
  let e = this.matchTrie(this.literalTrie);
1586
1597
  if (e === -1) return;
1587
- let t = new bt(this.input, this.p, e, this.file);
1598
+ let t = new St(this.input, this.p, e, this.file);
1588
1599
  return this.p = e, t;
1589
1600
  }
1590
1601
  readGroupOrRange() {
@@ -1596,13 +1607,13 @@ var L = class {
1596
1607
  if (this.skipBlank(), this.peek() === "." && this.peek(1) === ".") {
1597
1608
  this.p += 2;
1598
1609
  let n = this.readValueOrThrow();
1599
- return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Nt(this.input, e, this.p, t, n, this.file);
1610
+ return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Ft(this.input, e, this.p, t, n, this.file);
1600
1611
  }
1601
1612
  if (this.groupedExpressions) {
1602
- let n = new Vt([t, ...this.readExpressionTokens()]);
1613
+ let n = new Ut([t, ...this.readExpressionTokens()]);
1603
1614
  this.assert(n.valid(), () => `invalid value expression: ${this.snapshot()}`);
1604
1615
  let r = this.readFilters();
1605
- return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new Ft(n, r, this.input, e, this.p, this.file);
1616
+ return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new Lt(n, r, this.input, e, this.p, this.file);
1606
1617
  }
1607
1618
  throw this.error("invalid range syntax");
1608
1619
  }
@@ -1613,11 +1624,11 @@ var L = class {
1613
1624
  readQuoted() {
1614
1625
  this.skipBlank();
1615
1626
  let e = this.p;
1616
- if (!(this.peekType() & De)) return;
1627
+ if (!(this.peekType() & ke)) return;
1617
1628
  ++this.p;
1618
1629
  let t = !1;
1619
1630
  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);
1620
- return new Mt(this.input, e, this.p, this.file);
1631
+ return new Pt(this.input, e, this.p, this.file);
1621
1632
  }
1622
1633
  *readFileNameTemplate(e) {
1623
1634
  let { outputDelimiterLeft: t } = e, n = [
@@ -1647,7 +1658,7 @@ var L = class {
1647
1658
  skipBlank() {
1648
1659
  for (; this.peekType() & C;) ++this.p;
1649
1660
  }
1650
- }, kn = class {
1661
+ }, Mn = class {
1651
1662
  constructor(e, t) {
1652
1663
  this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
1653
1664
  }
@@ -1662,7 +1673,7 @@ var L = class {
1662
1673
  this.trigger("start");
1663
1674
  let e;
1664
1675
  for (; !this.stopRequested && (e = this.tokens.shift());) {
1665
- if (this.trigger("token", e) || J(e) && this.trigger(`tag:${e.name}`, e)) continue;
1676
+ if (this.trigger("token", e) || q(e) && this.trigger(`tag:${e.name}`, e)) continue;
1666
1677
  let t = this.parseToken(e, this.tokens);
1667
1678
  this.trigger("template", t);
1668
1679
  }
@@ -1671,18 +1682,18 @@ var L = class {
1671
1682
  stop() {
1672
1683
  return this.stopRequested = !0, this;
1673
1684
  }
1674
- }, An = class {
1685
+ }, Nn = class {
1675
1686
  constructor(e) {
1676
1687
  this.token = e;
1677
1688
  }
1678
- }, R = class extends An {
1689
+ }, L = class extends Nn {
1679
1690
  constructor(e, t, n) {
1680
1691
  super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
1681
1692
  }
1682
- }, z = class {
1693
+ }, R = class {
1683
1694
  constructor(e, t) {
1684
1695
  this.hash = {};
1685
- let n = e instanceof L ? e : new L(e, {});
1696
+ let n = e instanceof I ? e : new I(e, {});
1686
1697
  for (let e of n.readHashes(t)) this.hash[e.name.content] = e.value;
1687
1698
  }
1688
1699
  *render(e) {
@@ -1691,22 +1702,22 @@ var L = class {
1691
1702
  return t;
1692
1703
  }
1693
1704
  };
1694
- function jn(e) {
1695
- return class extends R {
1705
+ function Pn(e) {
1706
+ return class extends L {
1696
1707
  constructor(t, n, r) {
1697
1708
  super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
1698
1709
  }
1699
1710
  *render(t, n) {
1700
- let r = yield new z(this.token.args, t.opts.keyValueSeparator).render(t);
1711
+ let r = yield new R(this.token.args, t.opts.keyValueSeparator).render(t);
1701
1712
  return yield e.render.call(this, t, n, r);
1702
1713
  }
1703
1714
  };
1704
1715
  }
1705
- var B = class {
1716
+ var z = class {
1706
1717
  constructor(e, t) {
1707
1718
  this.filters = [];
1708
- let n = typeof e == "string" ? new L(e, t.options.operators, void 0, void 0, t.options.groupedExpressions).readFilteredValue() : e;
1709
- this.initial = n.initial, this.filters = n.filters.map((e) => new Bt(e, this.getFilter(t, e.name), t));
1719
+ let n = typeof e == "string" ? new I(e, t.options.operators, void 0, void 0, t.options.groupedExpressions).readFilteredValue() : e;
1720
+ this.initial = n.initial, this.filters = n.filters.map((e) => new Ht(e, this.getFilter(t, e.name), t));
1710
1721
  }
1711
1722
  *value(e, t) {
1712
1723
  t ||= e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
@@ -1718,37 +1729,37 @@ var B = class {
1718
1729
  let n = e.filters[t];
1719
1730
  return w(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
1720
1731
  }
1721
- }, Mn = class extends An {
1732
+ }, Fn = class extends Nn {
1722
1733
  constructor(e, t) {
1723
1734
  super(e);
1724
- let n = new L(e.input, t.options.operators, e.file, e.contentRange, t.options.groupedExpressions);
1725
- this.value = new B(n.readFilteredValue(), t);
1735
+ let n = new I(e.input, t.options.operators, e.file, e.contentRange, t.options.groupedExpressions);
1736
+ this.value = new z(n.readFilteredValue(), t);
1726
1737
  let r = this.value.filters, i = t.options.outputEscape;
1727
1738
  if (!r[r.length - 1]?.raw && i) {
1728
- let e = new Tt(toString.call(i), [], "", 0, 0);
1729
- r.push(new Bt(e, i, t));
1739
+ let e = new Dt(toString.call(i), [], "", 0, 0);
1740
+ r.push(new Ht(e, i, t));
1730
1741
  }
1731
1742
  }
1732
1743
  *render(e, t) {
1733
- let n = yield p(yield this.value.value(e, !1));
1744
+ let n = yield h(yield this.value.value(e, !1));
1734
1745
  t.write(n);
1735
1746
  }
1736
1747
  *arguments() {
1737
1748
  yield this.value;
1738
1749
  }
1739
- }, Nn = class extends An {
1750
+ }, In = class extends Nn {
1740
1751
  constructor(e) {
1741
1752
  super(e), this.str = e.getContent();
1742
1753
  }
1743
1754
  *render(e, t) {
1744
1755
  t.write(this.str);
1745
1756
  }
1746
- }, V = class e {
1757
+ }, B = class e {
1747
1758
  constructor(e, t) {
1748
1759
  this.segments = e, this.location = t;
1749
1760
  }
1750
1761
  toString() {
1751
- return Un(this.segments, !0);
1762
+ return Kn(this.segments, !0);
1752
1763
  }
1753
1764
  toArray() {
1754
1765
  function* t(...n) {
@@ -1756,16 +1767,16 @@ var B = class {
1756
1767
  }
1757
1768
  return Array.from(t(...this.segments));
1758
1769
  }
1759
- }, Pn = class {
1770
+ }, Ln = class {
1760
1771
  constructor() {
1761
1772
  this.map = /* @__PURE__ */ new Map();
1762
1773
  }
1763
1774
  get(e) {
1764
- let t = Un([e.segments[0]]);
1775
+ let t = Kn([e.segments[0]]);
1765
1776
  return this.map.has(t) || this.map.set(t, []), this.map.get(t);
1766
1777
  }
1767
1778
  has(e) {
1768
- return this.map.has(Un([e.segments[0]]));
1779
+ return this.map.has(Kn([e.segments[0]]));
1769
1780
  }
1770
1781
  push(e) {
1771
1782
  this.get(e).push(e);
@@ -1773,9 +1784,9 @@ var B = class {
1773
1784
  asObject() {
1774
1785
  return Object.fromEntries(this.map);
1775
1786
  }
1776
- }, Fn = { partials: !0 };
1777
- function* In(e, t, n) {
1778
- let r = new Pn(), i = new Pn(), o = new Pn(), s = new Ln(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1787
+ }, Rn = { partials: !0 };
1788
+ function* zn(e, t, n) {
1789
+ let r = new Ln(), i = new Ln(), o = new Ln(), s = new Bn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1779
1790
  function l(e, t) {
1780
1791
  r.push(e);
1781
1792
  let n = t.alias(e);
@@ -1786,14 +1797,14 @@ function* In(e, t, n) {
1786
1797
  let n = e.segments[0];
1787
1798
  a(n) && !t.has(n) && i.push(e);
1788
1799
  }
1789
- for (let n of e.segments) n instanceof V && l(n, t);
1800
+ for (let n of e.segments) n instanceof B && l(n, t);
1790
1801
  }
1791
1802
  function* u(e, r) {
1792
- if (e.arguments) for (let t of e.arguments()) for (let e of Rn(t)) l(e, r);
1803
+ if (e.arguments) for (let t of e.arguments()) for (let e of Vn(t)) l(e, r);
1793
1804
  if (e.localScope) for (let t of e.localScope()) {
1794
1805
  r.add(t.content), r.deleteAlias(t.content);
1795
1806
  let [e, n] = t.getPosition();
1796
- o.push(new V([t.content], {
1807
+ o.push(new B([t.content], {
1797
1808
  row: e,
1798
1809
  col: n,
1799
1810
  file: t.file
@@ -1807,12 +1818,12 @@ function* In(e, t, n) {
1807
1818
  return;
1808
1819
  }
1809
1820
  if (c.has(i.name)) return;
1810
- let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Ln(o) : r.push(o);
1821
+ let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Bn(o) : r.push(o);
1811
1822
  for (let e of i.scope) if (a(e)) o.add(e);
1812
1823
  else {
1813
1824
  let [t, n] = e;
1814
1825
  o.add(t);
1815
- let r = Array.from(Rn(n));
1826
+ let r = Array.from(Vn(n));
1816
1827
  r.length && s.setAlias(t, r[0].segments);
1817
1828
  }
1818
1829
  for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
@@ -1831,13 +1842,13 @@ function* In(e, t, n) {
1831
1842
  locals: o.asObject()
1832
1843
  };
1833
1844
  }
1834
- function H(e, t = {}) {
1835
- return O(In(e, Object.assign(Object.assign({}, Fn), t).partials, !1));
1845
+ function V(e, t = {}) {
1846
+ return D(zn(e, Object.assign(Object.assign({}, Rn), t).partials, !1));
1836
1847
  }
1837
- function U(e, t = {}) {
1838
- return k(In(e, Object.assign(Object.assign({}, Fn), t).partials, !0));
1848
+ function H(e, t = {}) {
1849
+ return O(zn(e, Object.assign(Object.assign({}, Rn), t).partials, !0));
1839
1850
  }
1840
- var Ln = class {
1851
+ var Bn = class {
1841
1852
  constructor(e) {
1842
1853
  this.stack = [{
1843
1854
  names: e,
@@ -1864,7 +1875,7 @@ var Ln = class {
1864
1875
  let t = e.segments[0];
1865
1876
  if (!a(t)) return;
1866
1877
  let n = this.getAlias(t);
1867
- if (n !== void 0) return new V([...n, ...e.segments.slice(1)], e.location);
1878
+ if (n !== void 0) return new B([...n, ...e.segments.slice(1)], e.location);
1868
1879
  }
1869
1880
  setAlias(e, t) {
1870
1881
  this.stack[this.stack.length - 1].aliases.set(e, t);
@@ -1879,45 +1890,45 @@ var Ln = class {
1879
1890
  }
1880
1891
  }
1881
1892
  };
1882
- function* Rn(e) {
1883
- Y(e) ? yield* W(e) : e instanceof B && (yield* zn(e));
1893
+ function* Vn(e) {
1894
+ Y(e) ? yield* U(e) : e instanceof z && (yield* Hn(e));
1884
1895
  }
1885
- function* zn(e) {
1886
- for (let t of e.initial.postfix) Y(t) && (yield* W(t));
1887
- for (let t of e.filters) for (let e of t.args) zt(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
1896
+ function* Hn(e) {
1897
+ for (let t of e.initial.postfix) Y(t) && (yield* U(t));
1898
+ for (let t of e.filters) for (let e of t.args) Vt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
1888
1899
  }
1889
- function* W(e) {
1890
- $n(e) ? (yield* W(e.lhs), yield* W(e.rhs)) : er(e) ? yield* Bn(e) : Zn(e) && (yield Vn(e));
1900
+ function* U(e) {
1901
+ nr(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : rr(e) ? yield* Un(e) : J(e) && (yield Wn(e));
1891
1902
  }
1892
- function* Bn(e) {
1893
- if (er(e)) {
1894
- for (let t of e.initial.postfix) Y(t) && (yield* W(t));
1895
- for (let t of e.filters) for (let e of t.args) zt(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
1903
+ function* Un(e) {
1904
+ if (rr(e)) {
1905
+ for (let t of e.initial.postfix) Y(t) && (yield* U(t));
1906
+ for (let t of e.filters) for (let e of t.args) Vt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
1896
1907
  }
1897
1908
  }
1898
- function Vn(e) {
1909
+ function Wn(e) {
1899
1910
  let t = [], n = e.file, r = e.props[0];
1900
- n ||= r.file, Yn(r) || Xn(r) || Qn(r) ? t.push(r.content) : Zn(r) && t.push(...Vn(r).segments);
1901
- for (let r of e.props.slice(1)) n ||= r.file, Yn(r) || Xn(r) || Qn(r) ? t.push(r.content) : Zn(r) && t.push(Vn(r));
1911
+ n ||= r.file, Qn(r) || er(r) || tr(r) ? t.push(r.content) : J(r) && t.push(...Wn(r).segments);
1912
+ for (let r of e.props.slice(1)) n ||= r.file, Qn(r) || er(r) || tr(r) ? t.push(r.content) : J(r) && t.push(Wn(r));
1902
1913
  let [i, a] = e.getPosition();
1903
- return new V(t, {
1914
+ return new B(t, {
1904
1915
  row: i,
1905
1916
  col: a,
1906
1917
  file: n
1907
1918
  });
1908
1919
  }
1909
- var Hn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1910
- function Un(e, t = !1) {
1920
+ var Gn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1921
+ function Kn(e, t = !1) {
1911
1922
  let n = [], r = e[0];
1912
- a(r) && (!t || r.match(Hn) ? n.push(`${r}`) : n.push(`['${r}']`));
1913
- for (let t of e.slice(1)) t instanceof V ? n.push(`[${Un(t.segments)}]`) : a(t) ? t.match(Hn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
1923
+ a(r) && (!t || r.match(Gn) ? n.push(`${r}`) : n.push(`['${r}']`));
1924
+ for (let t of e.slice(1)) t instanceof B ? n.push(`[${Kn(t.segments)}]`) : a(t) ? t.match(Gn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
1914
1925
  return n.join("");
1915
1926
  }
1916
- var G;
1927
+ var W;
1917
1928
  (function(e) {
1918
1929
  e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
1919
- })(G ||= {});
1920
- var Wn = class {
1930
+ })(W ||= {});
1931
+ var qn = class {
1921
1932
  constructor(e) {
1922
1933
  if (this.options = e, e.relativeReference) {
1923
1934
  let t = e.fs.sep;
@@ -1931,9 +1942,9 @@ var Wn = class {
1931
1942
  this.shouldLoadRelative = (e) => n.some((t) => e.startsWith(t));
1932
1943
  } else this.shouldLoadRelative = (e) => !1;
1933
1944
  let t = e.fs;
1934
- this.contains = Ke(t.contains?.bind(t) || (() => D(this, void 0, void 0, function* () {
1945
+ this.contains = Ye(t.contains?.bind(t) || (() => E(this, void 0, void 0, function* () {
1935
1946
  return !0;
1936
- })), t.containsSync?.bind(t) || (() => !0)), this.exists = Ke(t.exists?.bind(t) || (() => D(this, void 0, void 0, function* () {
1947
+ })), t.containsSync?.bind(t) || (() => !0)), this.exists = Ye(t.exists?.bind(t) || (() => E(this, void 0, void 0, function* () {
1937
1948
  return !1;
1938
1949
  })), t.existsSync?.bind(t));
1939
1950
  }
@@ -1966,15 +1977,15 @@ var Wn = class {
1966
1977
  let n = /* @__PURE__ */ Error("ENOENT");
1967
1978
  return n.message = `ENOENT: Failed to lookup "${e}" in "${t}"`, n.code = "ENOENT", n;
1968
1979
  }
1969
- }, K = class {
1980
+ }, G = class {
1970
1981
  constructor(e) {
1971
- 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 Wn(this.liquid.options), this.parseLimit = new pt("parse length", e.options.parseLimit), this.readFile = Ke(this.fs.readFile?.bind(this.fs) || (() => D(this, void 0, void 0, function* () {
1982
+ 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 qn(this.liquid.options), this.parseLimit = new ht("parse length", e.options.parseLimit), this.readFile = Ye(this.fs.readFile?.bind(this.fs) || (() => E(this, void 0, void 0, function* () {
1972
1983
  throw Error("readFile not implemented");
1973
1984
  })), this.fs.readFileSync?.bind(this.fs));
1974
1985
  }
1975
1986
  parse(e, t) {
1976
1987
  e = String(e), this.parseLimit.use(e.length);
1977
- let n = new L(e, this.liquid.options.operators, t, void 0, this.liquid.options.groupedExpressions).readTopLevelTokens(this.liquid.options);
1988
+ let n = new I(e, this.liquid.options.operators, t, void 0, this.liquid.options.groupedExpressions).readTopLevelTokens(this.liquid.options);
1978
1989
  return this.parseTokens(n);
1979
1990
  }
1980
1991
  parseTokens(e) {
@@ -1985,27 +1996,27 @@ var Wn = class {
1985
1996
  if (this.liquid.options.catchAllErrors) r.push(e);
1986
1997
  else throw e;
1987
1998
  }
1988
- if (r.length) throw new be(r);
1999
+ if (r.length) throw new Se(r);
1989
2000
  return n;
1990
2001
  }
1991
2002
  parseToken(e, t) {
1992
2003
  try {
1993
- if (J(e)) {
2004
+ if (q(e)) {
1994
2005
  let n = this.liquid.tags[e.name];
1995
2006
  return w(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
1996
2007
  }
1997
- return Jn(e) ? new Mn(e, this.liquid) : new Nn(e);
2008
+ return Zn(e) ? new Fn(e, this.liquid) : new In(e);
1998
2009
  } catch (t) {
1999
- throw x.is(t) ? t : new ve(t, e);
2010
+ throw x.is(t) ? t : new be(t, e);
2000
2011
  }
2001
2012
  }
2002
2013
  parseStream(e) {
2003
- return new kn(e, (e, t) => this.parseToken(e, t));
2014
+ return new Mn(e, (e, t) => this.parseToken(e, t));
2004
2015
  }
2005
- *_parseFileCached(e, t, n = G.Root, r) {
2016
+ *_parseFileCached(e, t, n = W.Root, r) {
2006
2017
  let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
2007
2018
  if (o) return o;
2008
- let s = this._parseFile(e, t, n, r), c = t ? yield s : O(s);
2019
+ let s = this._parseFile(e, t, n, r), c = t ? yield s : D(s);
2009
2020
  i.write(a, c);
2010
2021
  try {
2011
2022
  return yield c;
@@ -2013,46 +2024,49 @@ var Wn = class {
2013
2024
  throw i.remove(a), e;
2014
2025
  }
2015
2026
  }
2016
- *_parseFile(e, t, n = G.Root, r) {
2027
+ *_parseFile(e, t, n = W.Root, r) {
2017
2028
  let i = yield this.loader.lookup(e, n, t, r);
2018
2029
  return this.parse(yield this.readFile(!!t, i), i);
2019
2030
  }
2020
- }, q;
2031
+ }, K;
2021
2032
  (function(e) {
2022
2033
  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.GroupedExpression = 8192] = "GroupedExpression", e[e.Delimited = 12] = "Delimited";
2023
- })(q ||= {});
2024
- function Gn(e) {
2025
- return !!(X(e) & q.Delimited);
2026
- }
2027
- function Kn(e) {
2028
- return X(e) === q.Operator;
2029
- }
2030
- function qn(e) {
2031
- return X(e) === q.HTML;
2032
- }
2034
+ })(K ||= {});
2033
2035
  function Jn(e) {
2034
- return X(e) === q.Output;
2035
- }
2036
- function J(e) {
2037
- return X(e) === q.Tag;
2036
+ return !!(X(e) & K.Delimited);
2038
2037
  }
2039
2038
  function Yn(e) {
2040
- return X(e) === q.Quoted;
2039
+ return X(e) === K.Operator;
2041
2040
  }
2042
2041
  function Xn(e) {
2043
- return X(e) === q.Number;
2042
+ return X(e) === K.HTML;
2044
2043
  }
2045
2044
  function Zn(e) {
2046
- return X(e) === q.PropertyAccess;
2045
+ return X(e) === K.Output;
2046
+ }
2047
+ function q(e) {
2048
+ return X(e) === K.Tag;
2047
2049
  }
2048
2050
  function Qn(e) {
2049
- return X(e) === q.Word;
2051
+ return X(e) === K.Quoted;
2050
2052
  }
2051
2053
  function $n(e) {
2052
- return X(e) === q.Range;
2054
+ return X(e) === K.Literal;
2053
2055
  }
2054
2056
  function er(e) {
2055
- return X(e) === q.FilteredValue;
2057
+ return X(e) === K.Number;
2058
+ }
2059
+ function J(e) {
2060
+ return X(e) === K.PropertyAccess;
2061
+ }
2062
+ function tr(e) {
2063
+ return X(e) === K.Word;
2064
+ }
2065
+ function nr(e) {
2066
+ return X(e) === K.Range;
2067
+ }
2068
+ function rr(e) {
2069
+ return X(e) === K.FilteredValue;
2056
2070
  }
2057
2071
  function Y(e) {
2058
2072
  return (X(e) & 5763) > 0;
@@ -2060,13 +2074,29 @@ function Y(e) {
2060
2074
  function X(e) {
2061
2075
  return e ? e.kind : -1;
2062
2076
  }
2077
+ var ir = /*#__PURE__*/ Object.freeze({
2078
+ __proto__: null,
2079
+ isDelimitedToken: Jn,
2080
+ isOperatorToken: Yn,
2081
+ isHTMLToken: Xn,
2082
+ isOutputToken: Zn,
2083
+ isTagToken: q,
2084
+ isQuotedToken: Qn,
2085
+ isLiteralToken: $n,
2086
+ isNumberToken: er,
2087
+ isPropertyAccessToken: J,
2088
+ isWordToken: tr,
2089
+ isRangeToken: nr,
2090
+ isFilteredValueToken: rr,
2091
+ isValueToken: Y
2092
+ });
2063
2093
  function Z(e) {
2064
2094
  let t = Object.create(null);
2065
2095
  return e && Object.assign(t, e), t;
2066
2096
  }
2067
2097
  var Q = class e {
2068
2098
  constructor(e = {}, t = F, n = {}, { memoryLimit: r, renderLimit: i, liquid: a } = {}) {
2069
- 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 = _(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)), this.liquid = a;
2099
+ 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 = se(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new ht("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new ht("template render", zt().now() + (n.renderLimit ?? t.renderLimit)), this.liquid = a;
2070
2100
  }
2071
2101
  getRegister(e, t = void 0) {
2072
2102
  return this.registers[e] = this.registers[e] || t;
@@ -2085,24 +2115,24 @@ var Q = class e {
2085
2115
  this.globals,
2086
2116
  this.environments,
2087
2117
  ...this.scopes
2088
- ].reduce((e, t) => E(e, t), {});
2118
+ ].reduce((e, t) => Je(e, t), {});
2089
2119
  }
2090
2120
  get(e) {
2091
2121
  return this.getSync(e);
2092
2122
  }
2093
2123
  getSync(e) {
2094
- return k(this._get(e));
2124
+ return O(this._get(e));
2095
2125
  }
2096
2126
  *_get(e) {
2097
2127
  let t = this.findScope(e[0]);
2098
2128
  return yield this._getFromScope(t, e);
2099
2129
  }
2100
2130
  getFromScope(e, t) {
2101
- return k(this._getFromScope(e, t));
2131
+ return O(this._getFromScope(e, t));
2102
2132
  }
2103
2133
  *_getFromScope(e, t, n = this.strictVariables) {
2104
2134
  a(t) && (t = t.split("."));
2105
- for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new Se(t.slice(0, r + 1).join("."));
2135
+ for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new we(t.slice(0, r + 1).join("."));
2106
2136
  return e;
2107
2137
  }
2108
2138
  push(e) {
@@ -2134,157 +2164,167 @@ var Q = class e {
2134
2164
  return e in this.environments ? this.environments : this.globals;
2135
2165
  }
2136
2166
  readProperty(e, n) {
2137
- if (e = te(e), n = p(n), h(e)) return e;
2138
- if (g(e) && m(n)) return u(e, n, this.ownPropertyOnly);
2139
- let r = tr(e, n, this.ownPropertyOnly);
2140
- return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? ir(e) : n === "first" ? nr(e, this.ownPropertyOnly) : n === "last" ? rr(e, this.ownPropertyOnly) : r;
2167
+ if (e = te(e), n = h(n), _(e)) return e;
2168
+ if (v(e) && g(n)) return f(e, n, this.ownPropertyOnly);
2169
+ let r = ar(e, n, this.ownPropertyOnly);
2170
+ return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? cr(e) : n === "first" ? or(e, this.ownPropertyOnly) : n === "last" ? sr(e, this.ownPropertyOnly) : r;
2141
2171
  }
2142
2172
  };
2143
- function tr(e, n, r) {
2173
+ function ar(e, n, r) {
2144
2174
  if (!r || i.call(e, n) || e instanceof t) return e[n];
2145
2175
  }
2146
- function nr(e, t) {
2147
- return g(e) ? u(e, 0, t) : tr(e, "first", t);
2176
+ function or(e, t) {
2177
+ return v(e) ? f(e, 0, t) : ar(e, "first", t);
2148
2178
  }
2149
- function rr(e, t) {
2150
- return g(e) ? u(e, -1, t) : tr(e, "last", t);
2179
+ function sr(e, t) {
2180
+ return v(e) ? f(e, -1, t) : ar(e, "last", t);
2151
2181
  }
2152
- function ir(e) {
2182
+ function cr(e) {
2153
2183
  if (i.call(e, "size") || e.size !== void 0) return e.size;
2154
- if (g(e) || a(e)) return e.length;
2184
+ if (v(e) || a(e)) return e.length;
2155
2185
  if (typeof e == "object") return Object.keys(e).length;
2156
2186
  }
2157
2187
  var $;
2158
2188
  (function(e) {
2159
2189
  e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
2160
2190
  })($ ||= {});
2161
- var ar = y(Math.abs), or = y(Math.max), sr = y(Math.min), cr = y(Math.ceil), lr = y((e, t, n = !1) => n ? Math.floor(e / t) : e / t), ur = y(Math.floor), dr = y((e, t) => e - t), fr = y((e, t) => e + t), pr = y((e, t) => (e % t + t) % t), mr = y((e, t) => e * t);
2162
- function hr(e, t = 0) {
2191
+ var lr = b(Math.abs), ur = b(Math.max), dr = b(Math.min), fr = b(Math.ceil), pr = b((e, t, n = !1) => n ? Math.floor(e / t) : e / t), mr = b(Math.floor), hr = b((e, t) => e - t), gr = b((e, t) => e + t), _r = b((e, t) => (e % t + t) % t), vr = b((e, t) => e * t);
2192
+ function yr(e, t) {
2193
+ let [n, r = "0"] = String(e).split("e");
2194
+ return Number(`${n}e${Number(r) + t}`);
2195
+ }
2196
+ function br(e, t = 0) {
2163
2197
  e = ee(e), t = ee(t);
2164
- let n = 10 ** t, r = e * n * (1 + 2 ** -52);
2165
- return Math.round(r) / n;
2198
+ let n = yr(Math.abs(e), t);
2199
+ if (!(n <= 2 ** 53 - 1)) return e;
2200
+ let r = yr(Math.round(n), -t);
2201
+ return e < 0 ? -r : r;
2166
2202
  }
2167
- var gr = /*#__PURE__*/ Object.freeze({
2203
+ var xr = /*#__PURE__*/ Object.freeze({
2168
2204
  __proto__: null,
2169
- abs: ar,
2170
- at_least: or,
2171
- at_most: sr,
2172
- ceil: cr,
2173
- divided_by: lr,
2174
- floor: ur,
2175
- minus: dr,
2176
- plus: fr,
2177
- modulo: pr,
2178
- times: mr,
2179
- round: hr
2180
- }), _r = (e) => decodeURIComponent(l(e).replace(/\+/g, " ")), vr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), yr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), br = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), xr = /[^\p{M}\p{L}\p{Nd}]+/gu, Sr = {
2205
+ abs: lr,
2206
+ at_least: ur,
2207
+ at_most: dr,
2208
+ ceil: fr,
2209
+ divided_by: pr,
2210
+ floor: mr,
2211
+ minus: hr,
2212
+ plus: gr,
2213
+ modulo: _r,
2214
+ times: vr,
2215
+ round: br
2216
+ }), Sr = (e) => decodeURIComponent(l(e).replace(/\+/g, " ")), Cr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), wr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Tr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), Er = /[^\p{M}\p{L}\p{Nd}]+/gu, Dr = {
2181
2217
  raw: /\s+/g,
2182
- default: xr,
2218
+ default: Er,
2183
2219
  pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
2184
2220
  ascii: /[^A-Za-z0-9]+/g,
2185
- latin: xr,
2221
+ latin: Er,
2186
2222
  none: null
2187
2223
  };
2188
- function Cr(e, t = "default", n = !1) {
2224
+ function Or(e, t = "default", n = !1) {
2189
2225
  e = l(e);
2190
- let r = Sr[t];
2191
- return r && (t === "latin" && (e = wr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2226
+ let r = Dr[t];
2227
+ return r && (t === "latin" && (e = kr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2192
2228
  }
2193
- function wr(e) {
2229
+ function kr(e) {
2194
2230
  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");
2195
2231
  }
2196
- var Tr = /*#__PURE__*/ Object.freeze({
2232
+ var Ar = /*#__PURE__*/ Object.freeze({
2197
2233
  __proto__: null,
2198
- url_decode: _r,
2199
- url_encode: vr,
2200
- cgi_escape: yr,
2201
- uri_escape: br,
2202
- slugify: Cr
2203
- }), Er = he(function(e, t) {
2204
- let n = f(e), r = h(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
2234
+ url_decode: Sr,
2235
+ url_encode: Cr,
2236
+ cgi_escape: wr,
2237
+ uri_escape: Tr,
2238
+ slugify: Or
2239
+ }), jr = ge(function(e, t) {
2240
+ let n = m(e), r = _(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
2205
2241
  for (let e = 0; e < n.length; e++) i += String(n[e]).length;
2206
2242
  return this.context.memoryLimit.use(i), Array.prototype.join.call(n, r);
2207
- }), Dr = he(function(e) {
2208
- return re(e) ? u(e, -1, this.context.ownPropertyOnly) : "";
2209
- }), Or = he(function(e) {
2210
- return re(e) ? u(e, 0, this.context.ownPropertyOnly) : "";
2211
- }), kr = he(function(e) {
2212
- let t = f(e);
2243
+ }), Mr = ge(function(e) {
2244
+ return re(e) ? f(e, -1, this.context.ownPropertyOnly) : "";
2245
+ }), Nr = ge(function(e) {
2246
+ return re(e) ? f(e, 0, this.context.ownPropertyOnly) : "";
2247
+ }), Pr = ge(function(e) {
2248
+ let t = m(e);
2213
2249
  return this.context.memoryLimit.use(t.length), [...t].reverse();
2214
2250
  });
2215
- function* Ar(e, t, n) {
2216
- let r = [], i = f(e);
2251
+ function* Fr(e, t, n) {
2252
+ let r = [], i = m(e);
2217
2253
  this.context.memoryLimit.use(i.length);
2218
2254
  for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
2219
2255
  return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
2220
2256
  }
2221
- function* jr(e, t) {
2222
- return yield* Ar.call(this, e, t, pe);
2257
+ function* Ir(e, t) {
2258
+ return yield* Fr.call(this, e, t, me);
2223
2259
  }
2224
- function* Mr(e, t) {
2225
- return yield* Ar.call(this, e, t, me);
2260
+ function* Lr(e, t) {
2261
+ return yield* Fr.call(this, e, t, he);
2226
2262
  }
2227
- var Nr = (e) => e && e.length || 0;
2228
- function* Pr(e, t) {
2229
- let n = [], r = f(e);
2263
+ var Rr = (e) => e && e.length || 0;
2264
+ function* zr(e, t) {
2265
+ let n = [], r = m(e);
2230
2266
  this.context.memoryLimit.use(r.length);
2231
2267
  for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
2232
2268
  return n;
2233
2269
  }
2234
- function* Fr(e, t) {
2235
- let n = 0, r = f(e);
2270
+ function* Br(e, t) {
2271
+ let n = 0, r = m(e);
2236
2272
  for (let e of r) {
2237
2273
  let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
2238
2274
  n += Number.isNaN(r) ? 0 : r;
2239
2275
  }
2240
2276
  return n;
2241
2277
  }
2242
- function Ir(e) {
2243
- let t = f(e);
2244
- return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !h(p(e)));
2278
+ function Vr(e) {
2279
+ let t = m(e);
2280
+ return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !_(h(e)));
2245
2281
  }
2246
- function Lr(e, t = []) {
2247
- let n = f(e), r = f(t);
2282
+ function Hr(e, t = []) {
2283
+ let n = m(e), r = m(t);
2248
2284
  return this.context.memoryLimit.use(n.length + r.length), Array.prototype.concat.call(n, r);
2249
2285
  }
2250
- function Rr(e, t) {
2251
- return Lr.call(this, e, [t]);
2286
+ function Ur(e, t) {
2287
+ return Hr.call(this, e, [t]);
2252
2288
  }
2253
- function zr(e, t) {
2254
- let n = f(e);
2289
+ function Wr(e, t) {
2290
+ let n = m(e);
2255
2291
  this.context.memoryLimit.use(n.length);
2256
2292
  let r = [...n];
2257
2293
  return r.unshift(t), r;
2258
2294
  }
2259
- function Br(e) {
2260
- let t = f(e);
2295
+ function Gr(e) {
2296
+ let t = m(e);
2261
2297
  this.context.memoryLimit.use(t.length);
2262
2298
  let n = [...t];
2263
2299
  return n.pop(), n;
2264
2300
  }
2265
- function Vr(e) {
2266
- let t = f(e);
2301
+ function Kr(e) {
2302
+ let t = m(e);
2267
2303
  this.context.memoryLimit.use(t.length);
2268
2304
  let n = [...t];
2269
2305
  return n.shift(), n;
2270
2306
  }
2271
- function Hr(e, t, n = 1) {
2272
- return e = p(e), h(e) ? [] : (g(e) || (e = l(e)), t = t < 0 ? e.length + t : t, t < 0 || n < 0 ? g(e) ? [] : "" : (this.context.memoryLimit.use(n), g(e) ? Array.prototype.slice.call(e, t, t + n) : String.prototype.slice.call(e, t, t + n)));
2307
+ function qr(e, t, n = 1) {
2308
+ if (e = h(e), _(e)) return [];
2309
+ if (v(e) || (e = l(e)), t = t < 0 ? (v(e) ? e.length : d(e)) + t : t, t < 0 || n < 0) return v(e) ? [] : "";
2310
+ if (this.context.memoryLimit.use(n), v(e)) return Array.prototype.slice.call(e, t, t + n);
2311
+ let r = u(e, 0, t);
2312
+ return e.slice(r, u(e, r, n));
2273
2313
  }
2274
- function* Ur(e, t) {
2275
- return this.context.opts.jekyllWhere ? Fe.is(t) ? yield N(e, t) : g(e) ? yield Zt(e, t) : yield N(e, t) : t === void 0 ? M(e, this.context) : yield N(e, t);
2314
+ function* Jr(e, t) {
2315
+ return this.context.opts.jekyllWhere ? Le.is(t) ? yield P(e, t) : v(e) ? yield Qt(e, t) : yield P(e, t) : t === void 0 ? M(e, this.context) : yield P(e, t);
2276
2316
  }
2277
- function* Wr(e, t, n, r) {
2278
- t = f(t), this.context.memoryLimit.use(t.length);
2279
- let i = new L(l(n)).readScopeValue(), a = [];
2317
+ function* Yr(e, t, n, r) {
2318
+ t = m(t), this.context.memoryLimit.use(t.length);
2319
+ let i = new I(l(n)).readScopeValue(), a = [];
2280
2320
  for (let n of t) {
2281
2321
  let t = yield j(i, this.context.spawn(n));
2282
- (yield Ur.call(this, t, r)) === e && a.push(n);
2322
+ (yield Jr.call(this, t, r)) === e && a.push(n);
2283
2323
  }
2284
2324
  return a;
2285
2325
  }
2286
- function* Gr(e, t, n, r) {
2287
- let i = [], a = new B(l(r), this.liquid), o = f(t);
2326
+ function* Xr(e, t, n, r) {
2327
+ let i = [], a = new z(l(r), this.liquid), o = m(t);
2288
2328
  this.context.memoryLimit.use(o.length);
2289
2329
  for (let t of o) {
2290
2330
  this.context.push({ [n]: t });
@@ -2293,22 +2333,22 @@ function* Gr(e, t, n, r) {
2293
2333
  }
2294
2334
  return i;
2295
2335
  }
2296
- function* Kr(e, t, n) {
2297
- return yield* Wr.call(this, !0, e, t, n);
2336
+ function* Zr(e, t, n) {
2337
+ return yield* Yr.call(this, !0, e, t, n);
2298
2338
  }
2299
- function* qr(e, t, n) {
2300
- return yield* Wr.call(this, !1, e, t, n);
2339
+ function* Qr(e, t, n) {
2340
+ return yield* Yr.call(this, !1, e, t, n);
2301
2341
  }
2302
- function* Jr(e, t, n) {
2303
- return yield* Gr.call(this, !0, e, t, n);
2342
+ function* $r(e, t, n) {
2343
+ return yield* Xr.call(this, !0, e, t, n);
2304
2344
  }
2305
- function* Yr(e, t, n) {
2306
- return yield* Gr.call(this, !1, e, t, n);
2345
+ function* ei(e, t, n) {
2346
+ return yield* Xr.call(this, !1, e, t, n);
2307
2347
  }
2308
- function* Xr(e, t) {
2348
+ function* ti(e, t) {
2309
2349
  let n = /* @__PURE__ */ new Map();
2310
- e = d(e);
2311
- let r = new L(l(t)).readScopeValue();
2350
+ e = p(e);
2351
+ let r = new I(l(t)).readScopeValue();
2312
2352
  this.context.memoryLimit.use(e.length);
2313
2353
  for (let t of e) {
2314
2354
  let e = yield j(r, this.context.spawn(t));
@@ -2319,9 +2359,9 @@ function* Xr(e, t) {
2319
2359
  items: t
2320
2360
  }));
2321
2361
  }
2322
- function* Zr(e, t, n) {
2323
- let r = /* @__PURE__ */ new Map(), i = new B(l(n), this.liquid);
2324
- e = d(e), this.context.memoryLimit.use(e.length);
2362
+ function* ni(e, t, n) {
2363
+ let r = /* @__PURE__ */ new Map(), i = new z(l(n), this.liquid);
2364
+ e = p(e), this.context.memoryLimit.use(e.length);
2325
2365
  for (let n of e) {
2326
2366
  this.context.push({ [t]: n });
2327
2367
  let e = yield i.value(this.context);
@@ -2332,136 +2372,137 @@ function* Zr(e, t, n) {
2332
2372
  items: t
2333
2373
  }));
2334
2374
  }
2335
- function* Qr(e, t, n) {
2336
- let r = new L(l(t)).readScopeValue(), i = f(e);
2375
+ function* ri(e, t, n) {
2376
+ let r = new I(l(t)).readScopeValue(), i = m(e);
2337
2377
  for (let e = 0; e < i.length; e++) {
2338
2378
  let t = yield j(r, this.context.spawn(i[e]));
2339
- if (yield Ur.call(this, t, n)) return [e, i[e]];
2379
+ if (yield Jr.call(this, t, n)) return [e, i[e]];
2340
2380
  }
2341
2381
  }
2342
- function* $r(e, t, n) {
2343
- let r = new B(l(n), this.liquid), i = f(e);
2382
+ function* ii(e, t, n) {
2383
+ let r = new z(l(n), this.liquid), i = m(e);
2344
2384
  for (let e = 0; e < i.length; e++) {
2345
2385
  this.context.push({ [t]: i[e] });
2346
2386
  let n = yield r.value(this.context);
2347
2387
  if (this.context.pop(), n) return [e, i[e]];
2348
2388
  }
2349
2389
  }
2350
- function* ei(e, t, n) {
2351
- return !!(yield* Qr.call(this, e, t, n));
2390
+ function* ai(e, t, n) {
2391
+ return !!(yield* ri.call(this, e, t, n));
2352
2392
  }
2353
- function* ti(e, t, n) {
2354
- return !!(yield* $r.call(this, e, t, n));
2393
+ function* oi(e, t, n) {
2394
+ return !!(yield* ii.call(this, e, t, n));
2355
2395
  }
2356
- function* ni(e, t, n) {
2357
- let r = yield* Qr.call(this, e, t, n);
2396
+ function* si(e, t, n) {
2397
+ let r = yield* ri.call(this, e, t, n);
2358
2398
  return r ? r[0] : void 0;
2359
2399
  }
2360
- function* ri(e, t, n) {
2361
- let r = yield* $r.call(this, e, t, n);
2400
+ function* ci(e, t, n) {
2401
+ let r = yield* ii.call(this, e, t, n);
2362
2402
  return r ? r[0] : void 0;
2363
2403
  }
2364
- function* ii(e, t, n) {
2365
- let r = yield* Qr.call(this, e, t, n);
2404
+ function* li(e, t, n) {
2405
+ let r = yield* ri.call(this, e, t, n);
2366
2406
  return r ? r[1] : void 0;
2367
2407
  }
2368
- function* ai(e, t, n) {
2369
- let r = yield* $r.call(this, e, t, n);
2408
+ function* ui(e, t, n) {
2409
+ let r = yield* ii.call(this, e, t, n);
2370
2410
  return r ? r[1] : void 0;
2371
2411
  }
2372
- function oi(e) {
2373
- return e = f(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
2412
+ function di(e) {
2413
+ return e = m(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
2374
2414
  }
2375
- function si(e, t = 1) {
2376
- if (e = p(e), h(e)) return [];
2377
- g(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
2415
+ function fi(e, t = 1) {
2416
+ if (e = h(e), _(e)) return [];
2417
+ v(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
2378
2418
  let n = [...e].sort(() => Math.random() - .5);
2379
2419
  return t === 1 ? n[0] : n.slice(0, t);
2380
2420
  }
2381
- var ci = /*#__PURE__*/ Object.freeze({
2421
+ var pi = /*#__PURE__*/ Object.freeze({
2382
2422
  __proto__: null,
2383
- join: Er,
2384
- last: Dr,
2385
- first: Or,
2386
- reverse: kr,
2387
- sort: jr,
2388
- sort_natural: Mr,
2389
- size: Nr,
2390
- map: Pr,
2391
- sum: Fr,
2392
- compact: Ir,
2393
- concat: Lr,
2394
- push: Rr,
2395
- unshift: zr,
2396
- pop: Br,
2397
- shift: Vr,
2398
- slice: Hr,
2399
- where: Kr,
2400
- reject: qr,
2401
- where_exp: Jr,
2402
- reject_exp: Yr,
2403
- group_by: Xr,
2404
- group_by_exp: Zr,
2405
- has: ei,
2406
- has_exp: ti,
2407
- find_index: ni,
2408
- find_index_exp: ri,
2409
- find: ii,
2410
- find_exp: ai,
2411
- uniq: oi,
2412
- sample: si
2423
+ join: jr,
2424
+ last: Mr,
2425
+ first: Nr,
2426
+ reverse: Pr,
2427
+ sort: Ir,
2428
+ sort_natural: Lr,
2429
+ size: Rr,
2430
+ map: zr,
2431
+ sum: Br,
2432
+ compact: Vr,
2433
+ concat: Hr,
2434
+ push: Ur,
2435
+ unshift: Wr,
2436
+ pop: Gr,
2437
+ shift: Kr,
2438
+ slice: qr,
2439
+ where: Zr,
2440
+ reject: Qr,
2441
+ where_exp: $r,
2442
+ reject_exp: ei,
2443
+ group_by: ti,
2444
+ group_by_exp: ni,
2445
+ has: ai,
2446
+ has_exp: oi,
2447
+ find_index: si,
2448
+ find_index_exp: ci,
2449
+ find: li,
2450
+ find_exp: ui,
2451
+ uniq: di,
2452
+ sample: fi
2413
2453
  });
2414
- function li(e, t, n) {
2454
+ function mi(e, t, n) {
2415
2455
  let r = (e?.length ?? 0) + (n?.length ?? 0);
2416
2456
  this.context.memoryLimit.use(r);
2417
- let i = hi(e, this.context.opts, n);
2418
- return i ? (t = p(t), t = h(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), it(i, t, this.context.memoryLimit)) : e;
2457
+ let i = bi(e, this.context.opts, n);
2458
+ return i ? (t = h(t), t = _(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), k(i, t, this.context.memoryLimit)) : e;
2419
2459
  }
2420
- function ui(e) {
2421
- return li.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2460
+ function hi(e) {
2461
+ return mi.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2422
2462
  }
2423
- function di(e) {
2424
- return li.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2463
+ function gi(e) {
2464
+ let t = bi(e, this.context.opts, void 0, "en-US");
2465
+ return t ? k(t, "%a, %d %b %Y %H:%M:%S %z", this.context.memoryLimit) : e;
2425
2466
  }
2426
- function fi(e, t, n) {
2427
- return mi.call(this, e, "%b", t, n);
2467
+ function _i(e, t, n) {
2468
+ return yi.call(this, e, "%b", t, n);
2428
2469
  }
2429
- function pi(e, t, n) {
2430
- return mi.call(this, e, "%B", t, n);
2470
+ function vi(e, t, n) {
2471
+ return yi.call(this, e, "%B", t, n);
2431
2472
  }
2432
- function mi(e, t, n, r) {
2433
- let i = hi(e, this.context.opts);
2473
+ function yi(e, t, n, r) {
2474
+ let i = bi(e, this.context.opts);
2434
2475
  if (!i) return e;
2435
2476
  let a = this.context.memoryLimit;
2436
2477
  if (n === "ordinal") {
2437
2478
  let e = i.getDate();
2438
- return r === "US" ? it(i, `${t} ${e}%q, %Y`, a) : it(i, `${e}%q ${t} %Y`, a);
2479
+ return r === "US" ? k(i, `${t} ${e}%q, %Y`, a) : k(i, `${e}%q ${t} %Y`, a);
2439
2480
  }
2440
- return it(i, `%d ${t} %Y`, a);
2481
+ return k(i, `%d ${t} %Y`, a);
2441
2482
  }
2442
- function hi(e, t, n) {
2443
- let r, i = n ?? t.timezoneOffset, o = t.locale;
2444
- if (e = p(e), !h(e)) return r = e === "now" || e === "today" ? new A(Date.now(), o, i) : m(e) ? new A(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new A(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? A.createDateFixedToTimezone(e, o) : new A(e, o, i) : new A(e, o, i), r.valid() ? r : void 0;
2483
+ function bi(e, t, n, r = t.locale) {
2484
+ let i, o = n ?? t.timezoneOffset;
2485
+ if (e = h(e), !_(e)) return i = e === "now" || e === "today" ? new A(Date.now(), r, o) : g(e) ? new A(e * 1e3, r, o) : a(e) ? /^\d+$/.test(e) ? new A(e * 1e3, r, o) : t.preserveTimezones && n === void 0 ? A.createDateFixedToTimezone(e, r) : new A(e, r, o) : new A(e, r, o), i.valid() ? i : void 0;
2445
2486
  }
2446
- var gi = /*#__PURE__*/ Object.freeze({
2487
+ var xi = /*#__PURE__*/ Object.freeze({
2447
2488
  __proto__: null,
2448
- date: li,
2449
- date_to_xmlschema: ui,
2450
- date_to_rfc822: di,
2451
- date_to_string: fi,
2452
- date_to_long_string: pi
2453
- }), _i = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, vi = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2454
- function yi(e, t) {
2489
+ date: mi,
2490
+ date_to_xmlschema: hi,
2491
+ date_to_rfc822: gi,
2492
+ date_to_string: _i,
2493
+ date_to_long_string: vi
2494
+ }), Si = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, Ci = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2495
+ function wi(e, t) {
2455
2496
  w(arguments.length === 2, "append expect 2 arguments");
2456
2497
  let n = l(e), r = l(t);
2457
2498
  return this.context.memoryLimit.use(n.length + r.length), n + r;
2458
2499
  }
2459
- function bi(e, t) {
2500
+ function Ti(e, t) {
2460
2501
  w(arguments.length === 2, "prepend expect 2 arguments");
2461
2502
  let n = l(e), r = l(t);
2462
2503
  return this.context.memoryLimit.use(n.length + r.length), r + n;
2463
2504
  }
2464
- function xi(e, t) {
2505
+ function Ei(e, t) {
2465
2506
  let n = 0;
2466
2507
  for (let r of e) {
2467
2508
  if (!t.has(r)) break;
@@ -2469,7 +2510,7 @@ function xi(e, t) {
2469
2510
  }
2470
2511
  return n;
2471
2512
  }
2472
- function Si(e, t, n = 0) {
2513
+ function Di(e, t, n = 0) {
2473
2514
  let r = e.length;
2474
2515
  for (; r > n;) {
2475
2516
  let i = r - n >= 2 && e.codePointAt(r - 2) > 65535 ? 2 : 1;
@@ -2478,84 +2519,84 @@ function Si(e, t, n = 0) {
2478
2519
  }
2479
2520
  return r;
2480
2521
  }
2481
- function Ci(e, t) {
2522
+ function Oi(e, t) {
2482
2523
  let n = l(e);
2483
- return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(xi(n, new Set(t)))) : n.trimStart();
2524
+ return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(Ei(n, new Set(t)))) : n.trimStart();
2484
2525
  }
2485
- function wi(e) {
2526
+ function ki(e) {
2486
2527
  let t = l(e);
2487
2528
  return this.context.memoryLimit.use(t.length), t.toLowerCase();
2488
2529
  }
2489
- function Ti(e) {
2530
+ function Ai(e) {
2490
2531
  let t = l(e);
2491
2532
  return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
2492
2533
  }
2493
- function Ei(e, t) {
2534
+ function ji(e, t) {
2494
2535
  let n = l(e);
2495
2536
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
2496
2537
  }
2497
- function Di(e, t) {
2538
+ function Mi(e, t) {
2498
2539
  let n = l(e);
2499
2540
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
2500
2541
  }
2501
- function Oi(e, t) {
2542
+ function Ni(e, t) {
2502
2543
  let n = l(e), r = l(t);
2503
2544
  this.context.memoryLimit.use(n.length + r.length);
2504
2545
  let i = n.lastIndexOf(r);
2505
2546
  return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
2506
2547
  }
2507
- function ki(e, t) {
2508
- return e = l(e), this.context.memoryLimit.use(e.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), e.slice(0, Si(e, new Set(t)))) : e.trimEnd();
2548
+ function Pi(e, t) {
2549
+ return e = l(e), this.context.memoryLimit.use(e.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), e.slice(0, Di(e, new Set(t)))) : e.trimEnd();
2509
2550
  }
2510
- function Ai(e, t) {
2551
+ function Fi(e, t) {
2511
2552
  let n = l(e);
2512
2553
  this.context.memoryLimit.use(n.length);
2513
2554
  let r = n.split(l(t));
2514
2555
  for (; r.length && r[r.length - 1] === "";) r.pop();
2515
2556
  return r;
2516
2557
  }
2517
- function ji(e, t) {
2558
+ function Ii(e, t) {
2518
2559
  let n = l(e);
2519
2560
  if (this.context.memoryLimit.use(n.length), t) {
2520
2561
  let e = new Set(l(t));
2521
2562
  this.context.memoryLimit.use(e.size);
2522
- let r = xi(n, e);
2523
- return n.slice(r, Si(n, e, r));
2563
+ let r = Ei(n, e);
2564
+ return n.slice(r, Di(n, e, r));
2524
2565
  }
2525
2566
  return n.trim();
2526
2567
  }
2527
- function Mi(e) {
2568
+ function Li(e) {
2528
2569
  let t = l(e);
2529
2570
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
2530
2571
  }
2531
- function Ni(e) {
2572
+ function Ri(e) {
2532
2573
  let t = l(e);
2533
2574
  return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ").trim();
2534
2575
  }
2535
- function Pi(e) {
2576
+ function zi(e) {
2536
2577
  return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
2537
2578
  }
2538
- function Fi(e, t, n) {
2579
+ function Bi(e, t, n) {
2539
2580
  let r = l(e);
2540
2581
  t = l(t), n = l(n);
2541
2582
  let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
2542
2583
  return this.context.memoryLimit.use(a), i.join(n);
2543
2584
  }
2544
- function Ii(e, t, n) {
2585
+ function Vi(e, t, n) {
2545
2586
  let r = l(e);
2546
2587
  return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
2547
2588
  }
2548
- function Li(e, t, n) {
2589
+ function Hi(e, t, n) {
2549
2590
  let r = l(e), i = l(t), a = l(n);
2550
2591
  this.context.memoryLimit.use(r.length + i.length + a.length);
2551
2592
  let o = r.lastIndexOf(i);
2552
2593
  return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
2553
2594
  }
2554
- function Ri(e, t = 50, n = "...") {
2595
+ function Ui(e, t = 50, n = "...") {
2555
2596
  let r = l(e);
2556
- return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
2597
+ return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t || u(r, 0, t) >= r.length ? e : r.slice(0, u(r, 0, Math.max(t - d(n), 0))) + n;
2557
2598
  }
2558
- function zi(e, t = 15, n = "...") {
2599
+ function Wi(e, t = 15, n = "...") {
2559
2600
  let r = l(e);
2560
2601
  n = l(n), this.context.memoryLimit.use(r.length + n.length);
2561
2602
  let i = r.trimStart().split(/\s+/);
@@ -2563,112 +2604,116 @@ function zi(e, t = 15, n = "...") {
2563
2604
  let a = i.slice(0, t).join(" ");
2564
2605
  return i.length >= t && (a += n), a;
2565
2606
  }
2566
- function Bi(e) {
2607
+ function Gi(e) {
2567
2608
  let t = l(e);
2568
2609
  return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
2569
2610
  }
2570
- function Vi(e, t) {
2611
+ function Ki(e, t) {
2571
2612
  let n = l(e);
2572
2613
  if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
2573
2614
  switch (t) {
2574
- case "cjk": return (e.match(_i) || []).length + (e.match(vi) || []).length;
2575
- case "auto": return _i.test(e) ? e.match(_i).length + (e.match(vi) || []).length : e.split(/\s+/).length;
2615
+ case "cjk": return (e.match(Si) || []).length + (e.match(Ci) || []).length;
2616
+ case "auto": return Si.test(e) ? e.match(Si).length + (e.match(Ci) || []).length : e.split(/\s+/).length;
2576
2617
  default: return e.split(/\s+/).length;
2577
2618
  }
2578
2619
  }
2579
- function Hi(e, t = "and") {
2620
+ function qi(e, t = "and") {
2621
+ let n = m(e);
2580
2622
  t = l(t);
2581
- let n = t.length + e.length * 2;
2582
- for (let t = 0; t < e.length; t++) n += l(e[t]).length;
2583
- switch (this.context.memoryLimit.use(n), e.length) {
2623
+ let r = t.length + n.length * 2;
2624
+ for (let e = 0; e < n.length; e++) r += l(n[e]).length;
2625
+ switch (this.context.memoryLimit.use(r), n.length) {
2584
2626
  case 0: return "";
2585
- case 1: return e[0];
2586
- case 2: return `${e[0]} ${t} ${e[1]}`;
2587
- default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
2627
+ case 1: return n[0];
2628
+ case 2: return `${n[0]} ${t} ${n[1]}`;
2629
+ default: return `${n.slice(0, -1).join(", ")}, ${t} ${n[n.length - 1]}`;
2588
2630
  }
2589
2631
  }
2590
- var Ui = /*#__PURE__*/ Object.freeze({
2632
+ var Ji = /*#__PURE__*/ Object.freeze({
2591
2633
  __proto__: null,
2592
- append: yi,
2593
- prepend: bi,
2594
- lstrip: Ci,
2595
- downcase: wi,
2596
- upcase: Ti,
2597
- remove: Ei,
2598
- remove_first: Di,
2599
- remove_last: Oi,
2600
- rstrip: ki,
2601
- split: Ai,
2602
- strip: ji,
2603
- strip_newlines: Mi,
2604
- squish: Ni,
2605
- capitalize: Pi,
2606
- replace: Fi,
2607
- replace_first: Ii,
2608
- replace_last: Li,
2609
- truncate: Ri,
2610
- truncatewords: zi,
2611
- normalize_whitespace: Bi,
2612
- number_of_words: Vi,
2613
- array_to_sentence_string: Hi
2634
+ append: wi,
2635
+ prepend: Ti,
2636
+ lstrip: Oi,
2637
+ downcase: ki,
2638
+ upcase: Ai,
2639
+ remove: ji,
2640
+ remove_first: Mi,
2641
+ remove_last: Ni,
2642
+ rstrip: Pi,
2643
+ split: Fi,
2644
+ strip: Ii,
2645
+ strip_newlines: Li,
2646
+ squish: Ri,
2647
+ capitalize: zi,
2648
+ replace: Bi,
2649
+ replace_first: Vi,
2650
+ replace_last: Hi,
2651
+ truncate: Ui,
2652
+ truncatewords: Wi,
2653
+ normalize_whitespace: Gi,
2654
+ number_of_words: Ki,
2655
+ array_to_sentence_string: qi
2614
2656
  });
2615
- function Wi(e) {
2657
+ function Yi(e) {
2616
2658
  let t = new TextEncoder().encode(e), n = "";
2617
2659
  for (let e = 0; e < t.length; e += 32768) n += String.fromCharCode(...t.subarray(e, e + 32768));
2618
2660
  return btoa(n);
2619
2661
  }
2620
- function Gi(e) {
2662
+ function Xi(e) {
2621
2663
  return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
2622
2664
  }
2623
- function Ki(e) {
2665
+ function Zi(e) {
2624
2666
  if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
2625
2667
  let t = l(e);
2626
- return this.context.memoryLimit.use(t.length), Wi(t);
2668
+ return this.context.memoryLimit.use(t.length), Yi(t);
2627
2669
  }
2628
- function qi(e) {
2670
+ function Qi(e) {
2629
2671
  let t = l(e);
2630
- return this.context.memoryLimit.use(t.length), Gi(t);
2672
+ return this.context.memoryLimit.use(t.length), w($i(t), "invalid base64 provided to base64_decode"), Xi(t);
2631
2673
  }
2632
- var Ji = /*#__PURE__*/ Object.freeze({
2674
+ function $i(e) {
2675
+ return e = e.replace(/[\t\n\f\r ]/g, ""), e.length % 4 == 0 && (e = e.replace(/==?$/, "")), e.length % 4 != 1 && /^[A-Za-z0-9+/]*$/.test(e);
2676
+ }
2677
+ var ea = /*#__PURE__*/ Object.freeze({
2633
2678
  __proto__: null,
2634
- base64_encode: Ki,
2635
- base64_decode: qi
2679
+ base64_encode: Zi,
2680
+ base64_decode: Qi
2636
2681
  });
2637
- function Yi(e) {
2682
+ function ta(e) {
2638
2683
  let t = new Uint8Array(e), n = "";
2639
2684
  for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
2640
2685
  return n;
2641
2686
  }
2642
- function Xi(e) {
2643
- return D(this, void 0, void 0, function* () {
2687
+ function na(e) {
2688
+ return E(this, void 0, void 0, function* () {
2644
2689
  let t = new TextEncoder().encode(e);
2645
- return Yi(yield crypto.subtle.digest("SHA-256", t));
2690
+ return ta(yield crypto.subtle.digest("SHA-256", t));
2646
2691
  });
2647
2692
  }
2648
- function Zi(e, t) {
2649
- return D(this, void 0, void 0, function* () {
2693
+ function ra(e, t) {
2694
+ return E(this, void 0, void 0, function* () {
2650
2695
  let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
2651
2696
  name: "HMAC",
2652
2697
  hash: "SHA-256"
2653
2698
  }, !1, ["sign"]);
2654
- return Yi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2699
+ return ta(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2655
2700
  });
2656
2701
  }
2657
- function Qi(e) {
2702
+ function ia(e) {
2658
2703
  let t = l(e);
2659
- return this.context.memoryLimit.use(t.length), Xi(t);
2704
+ return this.context.memoryLimit.use(t.length), na(t);
2660
2705
  }
2661
- function $i(e, t) {
2706
+ function aa(e, t) {
2662
2707
  let n = l(e), r = l(t);
2663
- return this.context.memoryLimit.use(n.length + r.length), Zi(n, r);
2708
+ return this.context.memoryLimit.use(n.length + r.length), ra(n, r);
2664
2709
  }
2665
- var ea = /*#__PURE__*/ Object.freeze({
2710
+ var oa = /*#__PURE__*/ Object.freeze({
2666
2711
  __proto__: null,
2667
- sha256: Qi,
2668
- hmac_sha256: $i
2669
- }), ta = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Sn), gr), Tr), ci), gi), Ui), Ji), ea), mn), na = class extends R {
2712
+ sha256: ia,
2713
+ hmac_sha256: aa
2714
+ }), sa = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, wn), xr), Ar), pi), xi), Ji), ea), oa), hn), ca = class extends L {
2670
2715
  constructor(e, t, n) {
2671
- 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 B(this.tokenizer.readFilteredValue(), this.liquid);
2716
+ 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);
2672
2717
  }
2673
2718
  *render(e) {
2674
2719
  e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
@@ -2679,27 +2724,27 @@ var ea = /*#__PURE__*/ Object.freeze({
2679
2724
  *localScope() {
2680
2725
  yield this.identifier;
2681
2726
  }
2682
- }, ra = [
2727
+ }, la = [
2683
2728
  "offset",
2684
2729
  "limit",
2685
2730
  "reversed"
2686
- ], ia = class extends R {
2731
+ ], ua = class extends L {
2687
2732
  constructor(e, t, n, r) {
2688
2733
  super(e, t, n);
2689
2734
  let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
2690
2735
  if (!i.size() || a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
2691
- this.variable = i.content, this.collection = o, this.hash = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2736
+ this.variable = i.content, this.collection = o, this.hash = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2692
2737
  let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:else", (e) => {
2693
- Ne(e.args), s = this.elseTemplates;
2738
+ Fe(e.args), s = this.elseTemplates;
2694
2739
  }).on("tag:endfor", (e) => {
2695
- Ne(e.args), c.stop();
2740
+ Fe(e.args), c.stop();
2696
2741
  }).on("template", (e) => s.push(e)).on("end", () => {
2697
2742
  throw Error(`tag ${e.getText()} not closed`);
2698
2743
  });
2699
2744
  c.start();
2700
2745
  }
2701
2746
  *render(e, t) {
2702
- let n = this.liquid.renderer, r = d(yield j(this.collection, e));
2747
+ let n = this.liquid.renderer, r = p(yield j(this.collection, e));
2703
2748
  if (!r.length) {
2704
2749
  yield n.renderTemplates(this.elseTemplates, e, t);
2705
2750
  return;
@@ -2707,8 +2752,8 @@ var ea = /*#__PURE__*/ Object.freeze({
2707
2752
  let i = "continue-" + this.variable + "-" + this.collection.getText();
2708
2753
  e.push(Z({ continue: e.getRegister(i, {}) }));
2709
2754
  let a = yield this.hash.render(e);
2710
- e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => ra.includes(e)) : ra.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? oa(e, a.offset) : t === "limit" ? sa(e, a.limit) : aa(e), r), e.setRegister(i, (a.offset || 0) + r.length);
2711
- let o = Z({ forloop: new Le(r.length, this.collection.getText(), this.variable) });
2755
+ e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => la.includes(e)) : la.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? fa(e, a.offset) : t === "limit" ? pa(e, a.limit) : da(e), r), e.setRegister(i, (a.offset || 0) + r.length);
2756
+ let o = Z({ forloop: new ze(r.length, this.collection.getText(), this.variable) });
2712
2757
  e.push(o);
2713
2758
  for (let i of r) {
2714
2759
  if (o[this.variable] = i, e.continueCalled = e.breakCalled = !1, yield n.renderTemplates(this.templates, e, t), e.breakCalled) break;
@@ -2728,20 +2773,20 @@ var ea = /*#__PURE__*/ Object.freeze({
2728
2773
  return [this.variable, "forloop"];
2729
2774
  }
2730
2775
  };
2731
- function aa(e) {
2776
+ function da(e) {
2732
2777
  return [...e].reverse();
2733
2778
  }
2734
- function oa(e, t) {
2779
+ function fa(e, t) {
2735
2780
  return e.slice(t);
2736
2781
  }
2737
- function sa(e, t) {
2782
+ function pa(e, t) {
2738
2783
  return e.slice(0, t);
2739
2784
  }
2740
- var ca = class extends R {
2785
+ var ma = class extends L {
2741
2786
  constructor(e, t, n, r) {
2742
2787
  for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
2743
2788
  let e = t.shift();
2744
- if (J(e) && e.name === "endcapture") return;
2789
+ if (q(e) && e.name === "endcapture") return;
2745
2790
  this.templates.push(r.parseToken(e, t));
2746
2791
  }
2747
2792
  throw Error(`tag ${e.getText()} not closed`);
@@ -2761,9 +2806,9 @@ var ca = class extends R {
2761
2806
  *localScope() {
2762
2807
  yield this.identifier;
2763
2808
  }
2764
- }, la = class extends R {
2809
+ }, ha = class extends L {
2765
2810
  constructor(e, t, n, r) {
2766
- super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new B(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2811
+ super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new z(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2767
2812
  let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
2768
2813
  if (a > 0) return;
2769
2814
  i = [];
@@ -2783,8 +2828,8 @@ var ca = class extends R {
2783
2828
  o.start();
2784
2829
  }
2785
2830
  *render(e, t) {
2786
- let n = this.liquid.renderer, r = yield p(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2787
- for (let a of this.branches) for (let o of a.values) if (yield N(r, yield j(o, e, e.opts.lenientIf))) {
2831
+ let n = this.liquid.renderer, r = yield h(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2832
+ for (let a of this.branches) for (let o of a.values) if (yield P(r, yield j(o, e, e.opts.lenientIf))) {
2788
2833
  yield n.renderTemplates(a.templates, e, t), i = !0;
2789
2834
  break;
2790
2835
  }
@@ -2797,20 +2842,20 @@ var ca = class extends R {
2797
2842
  let e = this.branches.flatMap((e) => e.templates);
2798
2843
  return this.elseTemplates && e.push(...this.elseTemplates), e;
2799
2844
  }
2800
- }, ua = class extends R {
2845
+ }, ga = class extends L {
2801
2846
  constructor(e, t, n) {
2802
2847
  for (super(e, t, n); t.length;) {
2803
2848
  let e = t.shift();
2804
- if (J(e) && e.name === "endcomment") return;
2849
+ if (q(e) && e.name === "endcomment") return;
2805
2850
  }
2806
2851
  throw Error(`tag ${e.getText()} not closed`);
2807
2852
  }
2808
2853
  render() {}
2809
- }, da = class extends R {
2854
+ }, _a = class extends L {
2810
2855
  constructor(e, t, n, r) {
2811
2856
  super(e, t, n);
2812
2857
  let i = this.tokenizer;
2813
- for (this.file = fa(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2858
+ for (this.file = va(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2814
2859
  i.skipBlank();
2815
2860
  let e = i.p, t = i.readIdentifier();
2816
2861
  if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
@@ -2829,19 +2874,19 @@ var ca = class extends R {
2829
2874
  i.p = e;
2830
2875
  break;
2831
2876
  }
2832
- this.hash = new z(i, n.options.keyValueSeparator);
2877
+ this.hash = new R(i, n.options.keyValueSeparator);
2833
2878
  }
2834
2879
  *render(e, t) {
2835
- let { liquid: n, hash: r } = this, i = yield ma(this.file, e, n);
2880
+ let { liquid: n, hash: r } = this, i = yield ba(this.file, e, n);
2836
2881
  w(i, () => `illegal file path "${i}"`);
2837
2882
  let a = e.spawn(), o = a.bottom();
2838
- if (E(o, yield r.render(e)), this.with) {
2883
+ if (Je(o, yield r.render(e)), this.with) {
2839
2884
  let { value: t, alias: n } = this.with;
2840
2885
  o[n || i] = yield j(t, e);
2841
2886
  }
2842
2887
  if (this.forBinding) {
2843
- let { value: r, alias: s } = this.forBinding, c = d(yield j(r, e));
2844
- o.forloop = new Le(c.length, r.getText(), s);
2888
+ let { value: r, alias: s } = this.forBinding, c = p(yield j(r, e));
2889
+ o.forloop = new ze(c.length, r.getText(), s);
2845
2890
  for (let e of c) {
2846
2891
  o[s] = e;
2847
2892
  let r = yield n._parsePartialFile(i, a.sync, this.currentFile);
@@ -2885,30 +2930,30 @@ var ca = class extends R {
2885
2930
  }
2886
2931
  }
2887
2932
  };
2888
- function fa(e, t, n) {
2933
+ function va(e, t, n) {
2889
2934
  if (t.options.dynamicPartials) {
2890
2935
  let t = e.readValue();
2891
- return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Yn(t) ? pa(n.parse(Gt(t))) : t;
2936
+ return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Qn(t) ? ya(n.parse(qt(t))) : t;
2892
2937
  }
2893
- let r = [...e.readFileNameTemplate(t.options)], i = pa(n.parseTokens(r));
2938
+ let r = [...e.readFileNameTemplate(t.options)], i = ya(n.parseTokens(r));
2894
2939
  return i === "none" ? void 0 : i;
2895
2940
  }
2896
- function pa(e) {
2897
- return e.length === 1 && qn(e[0].token) ? e[0].token.getContent() : e;
2941
+ function ya(e) {
2942
+ return e.length === 1 && Xn(e[0].token) ? e[0].token.getContent() : e;
2898
2943
  }
2899
- function* ma(e, t, n) {
2944
+ function* ba(e, t, n) {
2900
2945
  return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield j(e, t);
2901
2946
  }
2902
- var ha = class extends R {
2947
+ var xa = class extends L {
2903
2948
  constructor(e, t, n, r) {
2904
2949
  super(e, t, n);
2905
2950
  let { tokenizer: i } = e;
2906
- this.file = fa(i, this.liquid, r), this.currentFile = e.file;
2951
+ this.file = va(i, this.liquid, r), this.currentFile = e.file;
2907
2952
  let a = i.p;
2908
- i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new z(i, n.options.jekyllInclude || n.options.keyValueSeparator);
2953
+ 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);
2909
2954
  }
2910
2955
  *render(e, t) {
2911
- let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield ma(this.file, e, n);
2956
+ let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield ba(this.file, e, n);
2912
2957
  w(o, () => `illegal file path "${o}"`);
2913
2958
  let s = e.saveRegister("blocks", "blockMode");
2914
2959
  e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
@@ -2933,59 +2978,65 @@ var ha = class extends R {
2933
2978
  *arguments() {
2934
2979
  yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
2935
2980
  }
2936
- }, ga = class extends R {
2981
+ }, Sa = class extends L {
2937
2982
  constructor(e, t, n) {
2938
2983
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2939
2984
  }
2940
2985
  render(e, t) {
2941
2986
  let n = e.environments;
2942
- m(n[this.variable]) || (n[this.variable] = 0), t.write(l(--n[this.variable]));
2987
+ g(n[this.variable]) || (n[this.variable] = 0), t.write(l(--n[this.variable]));
2943
2988
  }
2944
2989
  *localScope() {
2945
2990
  yield this.identifier;
2946
2991
  }
2947
- }, _a = class extends R {
2992
+ }, Ca = class extends L {
2948
2993
  constructor(e, t, n) {
2949
2994
  super(e, t, n), this.candidates = [];
2950
- let r = this.tokenizer.readValue();
2951
- for (this.tokenizer.skipBlank(), r && (this.tokenizer.peek() === ":" ? (this.group = r, this.tokenizer.advance()) : this.candidates.push(r)); !this.tokenizer.end();) {
2952
- let e = this.tokenizer.readValue();
2953
- e && this.candidates.push(e), this.tokenizer.readTo(",");
2995
+ let r = this.tokenizer.p, i = this.tokenizer.readValue();
2996
+ for (this.tokenizer.skipBlank(), i && (this.tokenizer.peek() === ":" ? (this.group = i, this.tokenizer.advance()) : this.tokenizer.p = r); !this.tokenizer.end();) {
2997
+ let e = this.tokenizer.readFilteredValue();
2998
+ this.candidates.push(e), this.tokenizer.readTo(",");
2954
2999
  }
2955
3000
  this.tokenizer.assert(this.candidates.length, () => `empty candidates: "${e.getText()}"`);
2956
3001
  }
2957
3002
  *render(e, t) {
2958
- let n = `cycle:${yield j(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
3003
+ let n = `cycle:${yield j(this.group, e)}:` + this.candidates.map((e) => e.getText()).join(","), r = e.getRegister("cycle", {}), i = r[n];
2959
3004
  i === void 0 && (i = r[n] = 0);
2960
- let a = this.candidates[i];
2961
- return i = (i + 1) % this.candidates.length, r[n] = i, yield j(a, e);
3005
+ let a = new z(this.candidates[i], this.liquid);
3006
+ i = (i + 1) % this.candidates.length, r[n] = i;
3007
+ let o = yield h(yield a.value(e, !1)), s = this.liquid.options.outputEscape;
3008
+ return s && !a.filters[a.filters.length - 1]?.raw && (o = yield s.call({
3009
+ context: e,
3010
+ token: this.token,
3011
+ liquid: this.liquid
3012
+ }, o)), o;
2962
3013
  }
2963
3014
  *arguments() {
2964
3015
  yield* this.candidates, this.group && (yield this.group);
2965
3016
  }
2966
- }, va = class extends R {
3017
+ }, wa = class extends L {
2967
3018
  constructor(e, t, n, r) {
2968
3019
  super(e, t, n), this.branches = [];
2969
3020
  let i = [];
2970
3021
  r.parseStream(t).on("start", () => this.branches.push({
2971
- value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3022
+ value: new z(e.tokenizer.readFilteredValue(), this.liquid),
2972
3023
  templates: i = []
2973
3024
  })).on("tag:elsif", (e) => {
2974
3025
  w(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2975
- value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3026
+ value: new z(e.tokenizer.readFilteredValue(), this.liquid),
2976
3027
  templates: i = []
2977
3028
  });
2978
3029
  }).on("tag:else", (e) => {
2979
- Ne(e.args), w(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
3030
+ Fe(e.args), w(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
2980
3031
  }).on("tag:endif", function(e) {
2981
- Ne(e.args), this.stop();
3032
+ Fe(e.args), this.stop();
2982
3033
  }).on("template", (e) => i.push(e)).on("end", () => {
2983
3034
  throw Error(`tag ${e.getText()} not closed`);
2984
3035
  }).start();
2985
3036
  }
2986
3037
  *render(e, t) {
2987
3038
  let n = this.liquid.renderer;
2988
- for (let { value: r, templates: i } of this.branches) if (M(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
3039
+ for (let { value: r, templates: i } of this.branches) if (M(yield h(yield r.value(e, e.opts.lenientIf)), e)) {
2989
3040
  yield n.renderTemplates(i, e, t);
2990
3041
  return;
2991
3042
  }
@@ -2998,22 +3049,22 @@ var ha = class extends R {
2998
3049
  arguments() {
2999
3050
  return this.branches.map((e) => e.value);
3000
3051
  }
3001
- }, ya = class extends R {
3052
+ }, Ta = class extends L {
3002
3053
  constructor(e, t, n) {
3003
3054
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
3004
3055
  }
3005
3056
  render(e, t) {
3006
3057
  let n = e.environments;
3007
- m(n[this.variable]) || (n[this.variable] = 0);
3058
+ g(n[this.variable]) || (n[this.variable] = 0);
3008
3059
  let r = n[this.variable];
3009
3060
  n[this.variable]++, t.write(l(r));
3010
3061
  }
3011
3062
  *localScope() {
3012
3063
  yield this.identifier;
3013
3064
  }
3014
- }, ba = class extends R {
3065
+ }, Ea = class extends L {
3015
3066
  constructor(e, t, n, r) {
3016
- super(e, t, n), this.file = fa(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
3067
+ super(e, t, n), this.file = va(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
3017
3068
  }
3018
3069
  *render(e, t) {
3019
3070
  let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
@@ -3021,7 +3072,7 @@ var ha = class extends R {
3021
3072
  e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
3022
3073
  return;
3023
3074
  }
3024
- let o = yield ma(this.file, e, n);
3075
+ let o = yield ba(this.file, e, n);
3025
3076
  w(o, () => `illegal file path "${o}"`);
3026
3077
  let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
3027
3078
  e.setRegister("blockMode", $.STORE);
@@ -3043,13 +3094,13 @@ var ha = class extends R {
3043
3094
  scope: Object.keys(this.args.hash)
3044
3095
  };
3045
3096
  }
3046
- }, xa = class extends R {
3097
+ }, Da = class extends L {
3047
3098
  constructor(e, t, n, r) {
3048
3099
  super(e, t, n), this.templates = [];
3049
3100
  let i = /\w+/.exec(e.args);
3050
3101
  for (this.block = i ? i[0] : ""; t.length;) {
3051
3102
  let e = t.shift();
3052
- if (J(e) && e.name === "endblock") return;
3103
+ if (q(e) && e.name === "endblock") return;
3053
3104
  let n = r.parseToken(e, t);
3054
3105
  this.templates.push(n);
3055
3106
  }
@@ -3057,7 +3108,7 @@ var ha = class extends R {
3057
3108
  }
3058
3109
  *render(e, t) {
3059
3110
  let n = this.getBlockRender(e);
3060
- e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new Ve(), t);
3111
+ e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new Ue(), t);
3061
3112
  }
3062
3113
  getBlockRender(e) {
3063
3114
  let t = this, { liquid: n, templates: r } = this, i = e.getRegister("blocks", {})[this.block], a = function* (i, a) {
@@ -3065,7 +3116,7 @@ var ha = class extends R {
3065
3116
  if (o.includes(t)) throw Error("block tag cannot be nested");
3066
3117
  o.push(t), e.push(Z({ block: i })), yield n.renderer.renderTemplates(r, e, a), e.pop(), o.pop();
3067
3118
  };
3068
- return i ? (e, t) => i(new Ve((t) => a(e, t)), t) : a;
3119
+ return i ? (e, t) => i(new Ue((t) => a(e, t)), t) : a;
3069
3120
  }
3070
3121
  *children() {
3071
3122
  return this.templates;
@@ -3073,11 +3124,11 @@ var ha = class extends R {
3073
3124
  blockScope() {
3074
3125
  return ["block"];
3075
3126
  }
3076
- }, Sa = class extends R {
3127
+ }, Oa = class extends L {
3077
3128
  constructor(e, t, n) {
3078
3129
  for (super(e, t, n), this.tokens = []; t.length;) {
3079
3130
  let e = t.shift();
3080
- if (J(e) && e.name === "endraw") return;
3131
+ if (q(e) && e.name === "endraw") return;
3081
3132
  this.tokens.push(e);
3082
3133
  }
3083
3134
  throw Error(`tag ${e.getText()} not closed`);
@@ -3085,7 +3136,7 @@ var ha = class extends R {
3085
3136
  render() {
3086
3137
  return this.tokens.map((e) => e.getText()).join("");
3087
3138
  }
3088
- }, Ca = class extends Le {
3139
+ }, ka = class extends ze {
3089
3140
  constructor(e, t, n, r) {
3090
3141
  super(e, n, r), this.length = e, this.cols = t;
3091
3142
  }
@@ -3104,153 +3155,157 @@ var ha = class extends R {
3104
3155
  col_last() {
3105
3156
  return this.col() === this.cols;
3106
3157
  }
3107
- }, wa = {
3108
- assign: na,
3109
- for: ia,
3110
- capture: ca,
3111
- case: la,
3112
- comment: ua,
3113
- include: ha,
3114
- render: da,
3115
- decrement: ga,
3116
- increment: ya,
3117
- cycle: _a,
3118
- if: va,
3119
- layout: ba,
3120
- block: xa,
3121
- raw: Sa,
3122
- tablerow: class extends R {
3123
- constructor(e, t, n, r) {
3124
- super(e, t, n);
3125
- let i = this.tokenizer.readIdentifier();
3126
- this.tokenizer.skipBlank();
3127
- let a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
3128
- if (a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
3129
- this.variable = i.content, this.collection = o, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
3130
- let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (e) => s.push(e)).on("end", () => {
3131
- throw Error(`tag ${e.getText()} not closed`);
3132
- });
3133
- c.start();
3134
- }
3135
- *render(e, t) {
3136
- let n = d(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0;
3137
- n = n.slice(i, i + (r.limit === void 0 ? n.length : r.limit));
3138
- let a = r.cols || n.length, o = this.liquid.renderer, s = new Ca(n.length, a, this.collection.getText(), this.variable), c = Z({ tablerowloop: s });
3139
- e.push(c);
3140
- 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>");
3141
- n.length && t.write("</tr>"), e.pop();
3142
- }
3143
- *children() {
3144
- return this.templates;
3145
- }
3146
- *arguments() {
3147
- yield this.collection;
3148
- for (let e of Object.values(this.args.hash)) Y(e) && (yield e);
3149
- }
3150
- blockScope() {
3151
- return [this.variable, "tablerowloop"];
3152
- }
3153
- },
3154
- unless: class extends R {
3155
- constructor(e, t, n, r) {
3156
- super(e, t, n), this.branches = [], this.elseTemplates = [];
3157
- let i = [], a = 0;
3158
- r.parseStream(t).on("start", () => this.branches.push({
3159
- value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3160
- test: Jt,
3158
+ }, Aa = class extends L {
3159
+ constructor(e, t, n, r) {
3160
+ super(e, t, n);
3161
+ let i = this.tokenizer.readIdentifier();
3162
+ this.tokenizer.skipBlank();
3163
+ let a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
3164
+ if (a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
3165
+ this.variable = i.content, this.collection = o, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
3166
+ let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (e) => s.push(e)).on("end", () => {
3167
+ throw Error(`tag ${e.getText()} not closed`);
3168
+ });
3169
+ c.start();
3170
+ }
3171
+ *render(e, t) {
3172
+ let n = p(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
3173
+ n = n.slice(i, i + a);
3174
+ let o = r.cols || n.length, s = this.liquid.renderer, c = new ka(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
3175
+ e.push(l);
3176
+ for (let r = 0; r < n.length; r++, c.next()) l[this.variable] = n[r], c.col0() === 0 && (c.row() !== 1 && t.write("</tr>"), t.write(`<tr class="row${c.row()}">`)), t.write(`<td class="col${c.col()}">`), yield s.renderTemplates(this.templates, e, t), t.write("</td>");
3177
+ n.length && t.write("</tr>"), e.pop();
3178
+ }
3179
+ *children() {
3180
+ return this.templates;
3181
+ }
3182
+ *arguments() {
3183
+ yield this.collection;
3184
+ for (let e of Object.values(this.args.hash)) Y(e) && (yield e);
3185
+ }
3186
+ blockScope() {
3187
+ return [this.variable, "tablerowloop"];
3188
+ }
3189
+ }, ja = class extends L {
3190
+ constructor(e, t, n, r) {
3191
+ super(e, t, n), this.branches = [], this.elseTemplates = [];
3192
+ let i = [], a = 0;
3193
+ r.parseStream(t).on("start", () => this.branches.push({
3194
+ value: new z(e.tokenizer.readFilteredValue(), this.liquid),
3195
+ test: N,
3196
+ templates: i = []
3197
+ })).on("tag:elsif", (e) => {
3198
+ a > 0 ? i = [] : this.branches.push({
3199
+ value: new z(e.tokenizer.readFilteredValue(), this.liquid),
3200
+ test: M,
3161
3201
  templates: i = []
3162
- })).on("tag:elsif", (e) => {
3163
- a > 0 ? i = [] : this.branches.push({
3164
- value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3165
- test: M,
3166
- templates: i = []
3167
- });
3168
- }).on("tag:else", () => {
3169
- a++, i = this.elseTemplates;
3170
- }).on("tag:endunless", function() {
3171
- this.stop();
3172
- }).on("template", (e) => {
3173
- (i !== this.elseTemplates || a === 1) && i.push(e);
3174
- }).on("end", () => {
3175
- throw Error(`tag ${e.getText()} not closed`);
3176
- }).start();
3177
- }
3178
- *render(e, t) {
3179
- let n = this.liquid.renderer;
3180
- for (let { value: r, test: i, templates: a } of this.branches) if (i(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
3181
- yield n.renderTemplates(a, e, t);
3182
- return;
3183
- }
3184
- yield n.renderTemplates(this.elseTemplates, e, t);
3185
- }
3186
- *children() {
3187
- let e = this.branches.flatMap((e) => e.templates);
3188
- return this.elseTemplates && e.push(...this.elseTemplates), e;
3189
- }
3190
- arguments() {
3191
- return this.branches.map((e) => e.value);
3192
- }
3193
- },
3194
- break: class extends R {
3195
- render(e, t) {
3196
- e.breakCalled = !0;
3197
- }
3198
- },
3199
- continue: class extends R {
3200
- render(e, t) {
3201
- e.continueCalled = !0;
3202
- }
3203
- },
3204
- echo: class extends R {
3205
- constructor(e, t, n) {
3206
- super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new B(this.tokenizer.readFilteredValue(), this.liquid));
3207
- }
3208
- *render(e, t) {
3209
- if (!this.value) return;
3210
- let n = yield p(yield this.value.value(e, !1));
3211
- t.write(n);
3212
- }
3213
- *arguments() {
3214
- this.value && (yield this.value);
3215
- }
3216
- },
3217
- liquid: class extends R {
3218
- constructor(e, t, n, r) {
3219
- super(e, t, n);
3220
- let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
3221
- this.templates = r.parseTokens(i);
3222
- }
3223
- *render(e, t) {
3224
- yield this.liquid.renderer.renderTemplates(this.templates, e, t);
3225
- }
3226
- *children() {
3227
- return this.templates;
3228
- }
3229
- },
3230
- "#": class extends R {
3231
- constructor(e, t, n) {
3232
- if (super(e, t, n), e.args.search(/\n\s*[^#\s]/g) !== -1) throw Error("every line of an inline comment must start with a '#' character");
3202
+ });
3203
+ }).on("tag:else", () => {
3204
+ a++, i = this.elseTemplates;
3205
+ }).on("tag:endunless", function() {
3206
+ this.stop();
3207
+ }).on("template", (e) => {
3208
+ (i !== this.elseTemplates || a === 1) && i.push(e);
3209
+ }).on("end", () => {
3210
+ throw Error(`tag ${e.getText()} not closed`);
3211
+ }).start();
3212
+ }
3213
+ *render(e, t) {
3214
+ let n = this.liquid.renderer;
3215
+ for (let { value: r, test: i, templates: a } of this.branches) if (i(yield h(yield r.value(e, e.opts.lenientIf)), e)) {
3216
+ yield n.renderTemplates(a, e, t);
3217
+ return;
3233
3218
  }
3234
- render() {}
3219
+ yield n.renderTemplates(this.elseTemplates, e, t);
3220
+ }
3221
+ *children() {
3222
+ let e = this.branches.flatMap((e) => e.templates);
3223
+ return this.elseTemplates && e.push(...this.elseTemplates), e;
3235
3224
  }
3236
- }, Ta = class e {
3225
+ arguments() {
3226
+ return this.branches.map((e) => e.value);
3227
+ }
3228
+ }, Ma = class extends L {
3229
+ render(e, t) {
3230
+ e.breakCalled = !0;
3231
+ }
3232
+ }, Na = class extends L {
3233
+ render(e, t) {
3234
+ e.continueCalled = !0;
3235
+ }
3236
+ }, Pa = class extends L {
3237
+ constructor(e, t, n) {
3238
+ super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new z(this.tokenizer.readFilteredValue(), this.liquid));
3239
+ }
3240
+ *render(e, t) {
3241
+ if (!this.value) return;
3242
+ let n = yield h(yield this.value.value(e, !1)), r = this.liquid.options.outputEscape;
3243
+ r && !this.value.filters[this.value.filters.length - 1]?.raw && (n = yield r.call({
3244
+ context: e,
3245
+ token: this.token,
3246
+ liquid: this.liquid
3247
+ }, n)), t.write(n);
3248
+ }
3249
+ *arguments() {
3250
+ this.value && (yield this.value);
3251
+ }
3252
+ }, Fa = class extends L {
3253
+ constructor(e, t, n, r) {
3254
+ super(e, t, n);
3255
+ let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
3256
+ this.templates = r.parseTokens(i);
3257
+ }
3258
+ *render(e, t) {
3259
+ yield this.liquid.renderer.renderTemplates(this.templates, e, t);
3260
+ }
3261
+ *children() {
3262
+ return this.templates;
3263
+ }
3264
+ }, Ia = class extends L {
3265
+ constructor(e, t, n) {
3266
+ if (super(e, t, n), e.args.search(/\n\s*[^#\s]/g) !== -1) throw Error("every line of an inline comment must start with a '#' character");
3267
+ }
3268
+ render() {}
3269
+ }, La = {
3270
+ assign: ca,
3271
+ for: ua,
3272
+ capture: ma,
3273
+ case: ha,
3274
+ comment: ga,
3275
+ include: xa,
3276
+ render: _a,
3277
+ decrement: Sa,
3278
+ increment: Ta,
3279
+ cycle: Ca,
3280
+ if: wa,
3281
+ layout: Ea,
3282
+ block: Da,
3283
+ raw: Oa,
3284
+ tablerow: Aa,
3285
+ unless: ja,
3286
+ break: Ma,
3287
+ continue: Na,
3288
+ echo: Pa,
3289
+ liquid: Fa,
3290
+ "#": Ia
3291
+ }, Ra = class e {
3237
3292
  constructor(e = {}) {
3238
- this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = wn(e), this.parser = new K(this), ae(wa, (e, t) => this.registerTag(t, e)), ae(ta, (e, t) => this.registerFilter(t, e));
3293
+ this.renderer = new Bt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = En(e), this.parser = new G(this), ae(La, (e, t) => this.registerTag(t, e)), ae(sa, (e, t) => this.registerFilter(t, e));
3239
3294
  }
3240
3295
  parse(e, t) {
3241
- return new K(this).parse(e, t);
3296
+ return new G(this).parse(e, t);
3242
3297
  }
3243
3298
  _render(e, t, n) {
3244
3299
  let r = t instanceof Q ? t : new Q(t, this.options, n, { liquid: this });
3245
3300
  return this.renderer.renderTemplates(e, r);
3246
3301
  }
3247
3302
  render(e, t, n) {
3248
- return D(this, void 0, void 0, function* () {
3249
- return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3303
+ return E(this, void 0, void 0, function* () {
3304
+ return D(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3250
3305
  });
3251
3306
  }
3252
3307
  renderSync(e, t, n) {
3253
- return k(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3308
+ return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3254
3309
  }
3255
3310
  renderToNodeStream(e, t, n = {}) {
3256
3311
  let r = new Q(t, this.options, n, { liquid: this });
@@ -3261,59 +3316,59 @@ var ha = class extends R {
3261
3316
  return this._render(r, t, n);
3262
3317
  }
3263
3318
  parseAndRender(e, t, n) {
3264
- return D(this, void 0, void 0, function* () {
3265
- return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3319
+ return E(this, void 0, void 0, function* () {
3320
+ return D(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3266
3321
  });
3267
3322
  }
3268
3323
  parseAndRenderSync(e, t, n) {
3269
- return k(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3324
+ return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3270
3325
  }
3271
3326
  _parsePartialFile(e, t, n) {
3272
- return new K(this).parseFile(e, t, G.Partials, n);
3327
+ return new G(this).parseFile(e, t, W.Partials, n);
3273
3328
  }
3274
3329
  _parseLayoutFile(e, t, n) {
3275
- return new K(this).parseFile(e, t, G.Layouts, n);
3330
+ return new G(this).parseFile(e, t, W.Layouts, n);
3276
3331
  }
3277
3332
  _parseFile(e, t, n, r) {
3278
- return new K(this).parseFile(e, t, n, r);
3333
+ return new G(this).parseFile(e, t, n, r);
3279
3334
  }
3280
3335
  parseFile(e, t) {
3281
- return D(this, void 0, void 0, function* () {
3282
- return O(new K(this).parseFile(e, !1, t));
3336
+ return E(this, void 0, void 0, function* () {
3337
+ return D(new G(this).parseFile(e, !1, t));
3283
3338
  });
3284
3339
  }
3285
3340
  parseFileSync(e, t) {
3286
- return k(new K(this).parseFile(e, !0, t));
3341
+ return O(new G(this).parseFile(e, !0, t));
3287
3342
  }
3288
3343
  *_renderFile(e, t, n) {
3289
3344
  let r = yield this._parseFile(e, n.sync, n.lookupType);
3290
3345
  return yield this._render(r, t, n);
3291
3346
  }
3292
3347
  renderFile(e, t, n) {
3293
- return D(this, void 0, void 0, function* () {
3294
- return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3348
+ return E(this, void 0, void 0, function* () {
3349
+ return D(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3295
3350
  });
3296
3351
  }
3297
3352
  renderFileSync(e, t, n) {
3298
- return k(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3353
+ return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3299
3354
  }
3300
3355
  renderFileToNodeStream(e, t, n) {
3301
- return D(this, void 0, void 0, function* () {
3356
+ return E(this, void 0, void 0, function* () {
3302
3357
  let r = yield this.parseFile(e);
3303
3358
  return this.renderToNodeStream(r, t, n);
3304
3359
  });
3305
3360
  }
3306
3361
  _evalValue(e, t) {
3307
- let n = new B(e, this), r = t instanceof Q ? t : new Q(t, this.options, {}, { liquid: this });
3362
+ let n = new z(e, this), r = t instanceof Q ? t : new Q(t, this.options, {}, { liquid: this });
3308
3363
  return n.value(r);
3309
3364
  }
3310
3365
  evalValue(e, t) {
3311
- return D(this, void 0, void 0, function* () {
3312
- return O(this._evalValue(e, t));
3366
+ return E(this, void 0, void 0, function* () {
3367
+ return D(this._evalValue(e, t));
3313
3368
  });
3314
3369
  }
3315
3370
  evalValueSync(e, t) {
3316
- return k(this._evalValue(e, t));
3371
+ return O(this._evalValue(e, t));
3317
3372
  }
3318
3373
  registerFilter(e, t) {
3319
3374
  this.filters[e] = t;
@@ -3322,7 +3377,7 @@ var ha = class extends R {
3322
3377
  delete this.filters[e];
3323
3378
  }
3324
3379
  registerTag(e, t) {
3325
- this.tags[e] = o(t) ? t : jn(t);
3380
+ this.tags[e] = o(t) ? t : Pn(t);
3326
3381
  }
3327
3382
  plugin(t) {
3328
3383
  return t.call(this, e);
@@ -3332,91 +3387,88 @@ var ha = class extends R {
3332
3387
  return function(n, r, i) {
3333
3388
  if (t) {
3334
3389
  t = !1;
3335
- let n = I(this.root);
3390
+ let n = On(this.root);
3336
3391
  e.options.root.unshift(...n), e.options.layouts.unshift(...n), e.options.partials.unshift(...n);
3337
3392
  }
3338
3393
  e.renderFile(n, r).then((e) => i(null, e), i);
3339
3394
  };
3340
3395
  }
3341
3396
  analyze(e, t = {}) {
3342
- return D(this, void 0, void 0, function* () {
3343
- return H(e, t);
3397
+ return E(this, void 0, void 0, function* () {
3398
+ return V(e, t);
3344
3399
  });
3345
3400
  }
3346
3401
  analyzeSync(e, t = {}) {
3347
- return U(e, t);
3402
+ return H(e, t);
3348
3403
  }
3349
3404
  parseAndAnalyze(e, t, n = {}) {
3350
- return D(this, void 0, void 0, function* () {
3351
- return H(this.parse(e, t), n);
3405
+ return E(this, void 0, void 0, function* () {
3406
+ return V(this.parse(e, t), n);
3352
3407
  });
3353
3408
  }
3354
3409
  parseAndAnalyzeSync(e, t, n = {}) {
3355
- return U(this.parse(e, t), n);
3410
+ return H(this.parse(e, t), n);
3356
3411
  }
3357
3412
  variables(e, t = {}) {
3358
- return D(this, void 0, void 0, function* () {
3359
- let n = yield H(a(e) ? this.parse(e) : e, t);
3413
+ return E(this, void 0, void 0, function* () {
3414
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3360
3415
  return Object.keys(n.variables);
3361
3416
  });
3362
3417
  }
3363
3418
  variablesSync(e, t = {}) {
3364
- let n = U(a(e) ? this.parse(e) : e, t);
3419
+ let n = H(a(e) ? this.parse(e) : e, t);
3365
3420
  return Object.keys(n.variables);
3366
3421
  }
3367
3422
  fullVariables(e, t = {}) {
3368
- return D(this, void 0, void 0, function* () {
3369
- let n = yield H(a(e) ? this.parse(e) : e, t);
3423
+ return E(this, void 0, void 0, function* () {
3424
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3370
3425
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3371
3426
  });
3372
3427
  }
3373
3428
  fullVariablesSync(e, t = {}) {
3374
- let n = U(a(e) ? this.parse(e) : e, t);
3429
+ let n = H(a(e) ? this.parse(e) : e, t);
3375
3430
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3376
3431
  }
3377
3432
  variableSegments(e, t = {}) {
3378
- return D(this, void 0, void 0, function* () {
3379
- let n = yield H(a(e) ? this.parse(e) : e, t);
3380
- return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3433
+ return E(this, void 0, void 0, function* () {
3434
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3435
+ return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3381
3436
  });
3382
3437
  }
3383
3438
  variableSegmentsSync(e, t = {}) {
3384
- let n = U(a(e) ? this.parse(e) : e, t);
3385
- return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3439
+ let n = H(a(e) ? this.parse(e) : e, t);
3440
+ return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3386
3441
  }
3387
3442
  globalVariables(e, t = {}) {
3388
- return D(this, void 0, void 0, function* () {
3389
- let n = yield H(a(e) ? this.parse(e) : e, t);
3443
+ return E(this, void 0, void 0, function* () {
3444
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3390
3445
  return Object.keys(n.globals);
3391
3446
  });
3392
3447
  }
3393
3448
  globalVariablesSync(e, t = {}) {
3394
- let n = U(a(e) ? this.parse(e) : e, t);
3449
+ let n = H(a(e) ? this.parse(e) : e, t);
3395
3450
  return Object.keys(n.globals);
3396
3451
  }
3397
3452
  globalFullVariables(e, t = {}) {
3398
- return D(this, void 0, void 0, function* () {
3399
- let n = yield H(a(e) ? this.parse(e) : e, t);
3453
+ return E(this, void 0, void 0, function* () {
3454
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3400
3455
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3401
3456
  });
3402
3457
  }
3403
3458
  globalFullVariablesSync(e, t = {}) {
3404
- let n = U(a(e) ? this.parse(e) : e, t);
3459
+ let n = H(a(e) ? this.parse(e) : e, t);
3405
3460
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3406
3461
  }
3407
3462
  globalVariableSegments(e, t = {}) {
3408
- return D(this, void 0, void 0, function* () {
3409
- let n = yield H(a(e) ? this.parse(e) : e, t);
3410
- return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3463
+ return E(this, void 0, void 0, function* () {
3464
+ let n = yield V(a(e) ? this.parse(e) : e, t);
3465
+ return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3411
3466
  });
3412
3467
  }
3413
3468
  globalVariableSegmentsSync(e, t = {}) {
3414
- let n = U(a(e) ? this.parse(e) : e, t);
3415
- return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3469
+ let n = H(a(e) ? this.parse(e) : e, t);
3470
+ return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3416
3471
  }
3417
- };
3472
+ }, za = "[VI]{version}[/VI]";
3418
3473
  /* istanbul ignore file */
3419
- //#endregion
3420
- export { Ta as Liquid };
3421
-
3422
- //# sourceMappingURL=liquid.browser-Bbt17cVz.js.map
3474
+ export { Te as AssertionError, ca as AssignTag, Da as BlockTag, Ma as BreakTag, ma as CaptureTag, ha as CaseTag, ga as CommentTag, Q as Context, Na as ContinueTag, Ca as CycleTag, Sa as DecrementTag, t as Drop, Pa as EchoTag, Ut as Expression, Ht as Filter, ua as ForTag, R as Hash, wa as IfTag, xa as IncludeTag, Ta as IncrementTag, Ia as InlineCommentTag, Ea as LayoutTag, Ra as Liquid, x as LiquidError, Fa as LiquidTag, W as LookupType, Fn as Output, be as ParseError, Mn as ParseStream, G as Parser, Oa as RawTag, xe as RenderError, _a as RenderTag, Aa as TablerowTag, L as Tag, _t as TagToken, e as Token, K as TokenKind, ye as TokenizationError, I as Tokenizer, ir as TypeGuards, Ce as UndefinedVariableError, ja as UnlessTag, z as Value, B as Variable, V as analyze, H as analyzeSync, w as assert, qe as createTrie, Xt as defaultOperators, F as defaultOptions, qt as evalQuotedToken, j as evalToken, Gt as evalTokenValue, sa as filters, N as isFalsy, M as isTruthy, La as tags, D as toPromise, h as toValue, O as toValueSync, za as version };