@templatical/editor 0.43.2 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +1 -1
  2. package/dist/{AiChatSidebar-DTtMEXNR.js → AiChatSidebar-BUR5Jshu.js} +8 -8
  3. package/dist/{AiFeatureMenu-DFj-_S9b.js → AiFeatureMenu-CgfLFHJw.js} +4 -4
  4. package/dist/{BlockIssueBadge-CyLmqjLl.js → BlockIssueBadge-CWZEwMXX.js} +2 -2
  5. package/dist/{BlockPreviewCanvas-C6F66f3k.js → BlockPreviewCanvas-2vVu55yN.js} +3 -3
  6. package/dist/{CloudHeaderExtras-Z4K6OMn0.js → CloudHeaderExtras-BZ62q1aS.js} +2 -2
  7. package/dist/{CloudPanels-DOJ2Vske.js → CloudPanels-sv4aCKKE.js} +4 -4
  8. package/dist/{CollaboratorBar-BCkl3dKY.js → CollaboratorBar-CSEFL7uC.js} +2 -2
  9. package/dist/{CommentsPanel-DPMi6-rb.js → CommentsPanel-CYMHfFcn.js} +1 -1
  10. package/dist/{CommentsSidebar-C1mQcyh3.js → CommentsSidebar-uvQyCMUe.js} +10 -10
  11. package/dist/{CountdownToolbar-DKmzpk__.js → CountdownToolbar-C052mx2P.js} +3 -3
  12. package/dist/{DesignReferenceSidebar-CGRzOOb8.js → DesignReferenceSidebar-ZKJ7y7-G.js} +6 -6
  13. package/dist/{IssuesPanel-CsdxjjRm.js → IssuesPanel-DAlNiJX_.js} +5 -5
  14. package/dist/{LogicTagInsertButton-BX4jOUQy.js → LogicTagInsertButton-DMUfVsPr.js} +6 -6
  15. package/dist/{MediaEditModal-Bm8uOKBx.js → MediaEditModal-Cmd9tQXZ.js} +1 -1
  16. package/dist/{MediaPanels-BNWtEntu.js → MediaPanels-DoBhG5gg.js} +1 -1
  17. package/dist/{MergeTagInput-Mj8CFfX1.js → MergeTagInput-DoQWMSW4.js} +1 -1
  18. package/dist/{MergeTagModeToggle-CinojvpV.js → MergeTagModeToggle-DOHixe4G.js} +4 -4
  19. package/dist/{ParagraphEditor-DdOteRjD.js → ParagraphEditor-C_p6yKLK.js} +23 -23
  20. package/dist/{RestoreVersionDialog-B-i0wPjh.js → RestoreVersionDialog-CKHeCPG2.js} +3 -3
  21. package/dist/{RichTextEditorContent-CDtKOWsh.js → RichTextEditorContent-BedBVHXS.js} +4 -4
  22. package/dist/{SaveBlockDialog-DTcGPDMT.js → SaveBlockDialog-q3_fjb9t.js} +8 -8
  23. package/dist/{SavedBlocksBrowserModal-BA5yXQi0.js → SavedBlocksBrowserModal-C4J-_cW8.js} +9 -9
  24. package/dist/{SavedBlocksPanels-mfSALJqB.js → SavedBlocksPanels-DBoqC6df.js} +1 -1
  25. package/dist/{SavedBlocksPickBar-BOjduGI4.js → SavedBlocksPickBar-Pq2bjpB_.js} +2 -2
  26. package/dist/{TemplateScoringPanel-Byz-ajjf.js → TemplateScoringPanel-DXsyp0_A.js} +11 -11
  27. package/dist/{TemplateSettings-Bf5rfsU8.js → TemplateSettings-Bh10NFIN.js} +6 -6
  28. package/dist/{TestEmailModal-DJo2yFLh.js → TestEmailModal-BYCKpH7g.js} +7 -7
  29. package/dist/{TestEmailPanel-CXIFWfDm.js → TestEmailPanel-lUXAFsT5.js} +1 -1
  30. package/dist/{TitleEditor-BDtokkQF.js → TitleEditor-CWPxXUp2.js} +9 -9
  31. package/dist/{ToggleSwitch-BCYZvP1e.js → ToggleSwitch-D7GLaT8s.js} +1 -1
  32. package/dist/{Toolbar-XOtJ_N58.js → Toolbar-CWxqqBHE.js} +29 -29
  33. package/dist/{TplModal-C3mzMXof.js → TplModal-D6lqrKls.js} +1 -1
  34. package/dist/{VersionHistoryMenu-DRoFz15y.js → VersionHistoryMenu-fLrx-Lvi.js} +5 -5
  35. package/dist/{VersionHistoryPanels-CeF0JnXI.js → VersionHistoryPanels-C3XhpQO_.js} +1 -1
  36. package/dist/{VersionPreviewBanner-DQvIEKUU.js → VersionPreviewBanner-CWuxq_bb.js} +1 -1
  37. package/dist/{WrapperBlock-DZwp4G7P.js → WrapperBlock-ox8TMS_p.js} +1 -1
  38. package/dist/{blockTypeIcons-CAPoy6X7.js → blockTypeIcons-DEvNVvBj.js} +2 -2
  39. package/dist/bundle-stats.json +6 -6
  40. package/dist/{ca--zGWn9AU.js → ca-DSwai-th.js} +1 -4
  41. package/dist/cdn/chunks/{AiChatSidebar-DW1uRkKE.js → AiChatSidebar-Cvp9beXR.js} +3 -3
  42. package/dist/cdn/chunks/{AiChatSidebar-DW1uRkKE.js.map → AiChatSidebar-Cvp9beXR.js.map} +1 -1
  43. package/dist/cdn/chunks/{AiFeatureMenu-CHsgD78N.js → AiFeatureMenu-vOJtwdmT.js} +3 -3
  44. package/dist/cdn/chunks/{AiFeatureMenu-CHsgD78N.js.map → AiFeatureMenu-vOJtwdmT.js.map} +1 -1
  45. package/dist/cdn/chunks/{BlockIssueBadge-CIqu8JnG.js → BlockIssueBadge-CKIrYROg.js} +2 -2
  46. package/dist/cdn/chunks/{BlockIssueBadge-CIqu8JnG.js.map → BlockIssueBadge-CKIrYROg.js.map} +1 -1
  47. package/dist/cdn/chunks/{BlockPreviewCanvas-Dtea66SI.js → BlockPreviewCanvas-CB27Joyn.js} +4 -4
  48. package/dist/cdn/chunks/{BlockPreviewCanvas-Dtea66SI.js.map → BlockPreviewCanvas-CB27Joyn.js.map} +1 -1
  49. package/dist/cdn/chunks/{CloudHeaderExtras-Kjj78__m.js → CloudHeaderExtras-9tKrhPm6.js} +3 -3
  50. package/dist/cdn/chunks/{CloudHeaderExtras-Kjj78__m.js.map → CloudHeaderExtras-9tKrhPm6.js.map} +1 -1
  51. package/dist/cdn/chunks/{CloudPanels-DARXXD0q.js → CloudPanels-DTQ7zbEN.js} +4 -4
  52. package/dist/cdn/chunks/{CloudPanels-DARXXD0q.js.map → CloudPanels-DTQ7zbEN.js.map} +1 -1
  53. package/dist/cdn/chunks/{CollaboratorBar-C7O9mQJ_.js → CollaboratorBar-BKTkVMbz.js} +3 -3
  54. package/dist/cdn/chunks/{CollaboratorBar-C7O9mQJ_.js.map → CollaboratorBar-BKTkVMbz.js.map} +1 -1
  55. package/dist/cdn/chunks/{CommentsPanel-KH5_JS7_.js → CommentsPanel-BjHRj_Yw.js} +2 -2
  56. package/dist/cdn/chunks/{CommentsPanel-KH5_JS7_.js.map → CommentsPanel-BjHRj_Yw.js.map} +1 -1
  57. package/dist/cdn/chunks/{CommentsSidebar-ucrNvgAQ.js → CommentsSidebar-CpCfqSq4.js} +2 -2
  58. package/dist/cdn/chunks/{CommentsSidebar-ucrNvgAQ.js.map → CommentsSidebar-CpCfqSq4.js.map} +1 -1
  59. package/dist/cdn/chunks/{CountdownToolbar-DVInzkj9.js → CountdownToolbar-C9QpHQcv.js} +4 -4
  60. package/dist/cdn/chunks/{CountdownToolbar-DVInzkj9.js.map → CountdownToolbar-C9QpHQcv.js.map} +1 -1
  61. package/dist/cdn/chunks/{DesignReferenceSidebar-pleljkEJ.js → DesignReferenceSidebar-BO0xz1wC.js} +3 -3
  62. package/dist/cdn/chunks/{DesignReferenceSidebar-pleljkEJ.js.map → DesignReferenceSidebar-BO0xz1wC.js.map} +1 -1
  63. package/dist/cdn/chunks/{IssuesPanel-CPcQIUni.js → IssuesPanel--62qud8w.js} +2 -2
  64. package/dist/cdn/chunks/{IssuesPanel-CPcQIUni.js.map → IssuesPanel--62qud8w.js.map} +1 -1
  65. package/dist/cdn/chunks/{LogicTagInsertButton-DSrW9v0x.js → LogicTagInsertButton-gc8ICURV.js} +5 -5
  66. package/dist/cdn/chunks/{LogicTagInsertButton-DSrW9v0x.js.map → LogicTagInsertButton-gc8ICURV.js.map} +1 -1
  67. package/dist/cdn/chunks/{MediaEditModal-BHp7euCZ.js → MediaEditModal-BuDXKwx4.js} +2 -2
  68. package/dist/cdn/chunks/{MediaEditModal-BHp7euCZ.js.map → MediaEditModal-BuDXKwx4.js.map} +1 -1
  69. package/dist/cdn/chunks/{MediaPanels-CGIRlO48.js → MediaPanels-xFpaxFRH.js} +2 -2
  70. package/dist/cdn/chunks/{MediaPanels-CGIRlO48.js.map → MediaPanels-xFpaxFRH.js.map} +1 -1
  71. package/dist/cdn/chunks/{MergeTagInput-BSFofWuc.js → MergeTagInput-DsPKWbWr.js} +2 -2
  72. package/dist/cdn/chunks/{MergeTagInput-BSFofWuc.js.map → MergeTagInput-DsPKWbWr.js.map} +1 -1
  73. package/dist/cdn/chunks/{MergeTagModeToggle-D7KlTFZV.js → MergeTagModeToggle-DU0WqgVH.js} +3 -3
  74. package/dist/cdn/chunks/{MergeTagModeToggle-D7KlTFZV.js.map → MergeTagModeToggle-DU0WqgVH.js.map} +1 -1
  75. package/dist/cdn/chunks/{ParagraphEditor-CokXagL1.js → ParagraphEditor-BSDGOsja.js} +23 -23
  76. package/dist/cdn/chunks/{ParagraphEditor-CokXagL1.js.map → ParagraphEditor-BSDGOsja.js.map} +1 -1
  77. package/dist/cdn/chunks/{RestoreVersionDialog-C-XEncAM.js → RestoreVersionDialog-DLe0Co57.js} +3 -3
  78. package/dist/cdn/chunks/{RestoreVersionDialog-C-XEncAM.js.map → RestoreVersionDialog-DLe0Co57.js.map} +1 -1
  79. package/dist/cdn/chunks/{RichTextEditorContent-DS_2UsJX.js → RichTextEditorContent-Dkcts8Vh.js} +4 -4
  80. package/dist/cdn/chunks/{RichTextEditorContent-DS_2UsJX.js.map → RichTextEditorContent-Dkcts8Vh.js.map} +1 -1
  81. package/dist/cdn/chunks/{SaveBlockDialog-D8OAKF_k.js → SaveBlockDialog-DQzaED8U.js} +7 -7
  82. package/dist/cdn/chunks/{SaveBlockDialog-D8OAKF_k.js.map → SaveBlockDialog-DQzaED8U.js.map} +1 -1
  83. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B6GN_llD.js → SavedBlocksBrowserModal-D3JF-Gx-.js} +6 -6
  84. package/dist/cdn/chunks/{SavedBlocksBrowserModal-B6GN_llD.js.map → SavedBlocksBrowserModal-D3JF-Gx-.js.map} +1 -1
  85. package/dist/cdn/chunks/{SavedBlocksPanels-hRCREVxS.js → SavedBlocksPanels-Cxbgby24.js} +2 -2
  86. package/dist/cdn/chunks/{SavedBlocksPanels-hRCREVxS.js.map → SavedBlocksPanels-Cxbgby24.js.map} +1 -1
  87. package/dist/cdn/chunks/{SavedBlocksPickBar-C5YrK0iB.js → SavedBlocksPickBar-DEL0r3Bv.js} +3 -3
  88. package/dist/cdn/chunks/{SavedBlocksPickBar-C5YrK0iB.js.map → SavedBlocksPickBar-DEL0r3Bv.js.map} +1 -1
  89. package/dist/cdn/chunks/{TemplateScoringPanel-DXyQjcdU.js → TemplateScoringPanel-BBRHCNcR.js} +2 -2
  90. package/dist/cdn/chunks/{TemplateScoringPanel-DXyQjcdU.js.map → TemplateScoringPanel-BBRHCNcR.js.map} +1 -1
  91. package/dist/cdn/chunks/{TemplateSettings-da14bXlk.js → TemplateSettings-vsFOU0oA.js} +5 -5
  92. package/dist/cdn/chunks/{TemplateSettings-da14bXlk.js.map → TemplateSettings-vsFOU0oA.js.map} +1 -1
  93. package/dist/cdn/chunks/{TestEmailModal-Dl_cAyj-.js → TestEmailModal-B7Dr2eFa.js} +7 -7
  94. package/dist/cdn/chunks/{TestEmailModal-Dl_cAyj-.js.map → TestEmailModal-B7Dr2eFa.js.map} +1 -1
  95. package/dist/cdn/chunks/{TestEmailPanel-CVZGOKaQ.js → TestEmailPanel-C3PTYDbT.js} +2 -2
  96. package/dist/cdn/chunks/{TestEmailPanel-CVZGOKaQ.js.map → TestEmailPanel-C3PTYDbT.js.map} +1 -1
  97. package/dist/cdn/chunks/{TitleEditor-DO8OdG_w.js → TitleEditor-gHTla_4I.js} +8 -8
  98. package/dist/cdn/chunks/{TitleEditor-DO8OdG_w.js.map → TitleEditor-gHTla_4I.js.map} +1 -1
  99. package/dist/cdn/chunks/{ToggleSwitch-D5Wi6Env.js → ToggleSwitch-DoUNcLPP.js} +2 -2
  100. package/dist/cdn/chunks/{ToggleSwitch-D5Wi6Env.js.map → ToggleSwitch-DoUNcLPP.js.map} +1 -1
  101. package/dist/cdn/chunks/{Toolbar-CXDE8xM-.js → Toolbar-CnfNUkOY.js} +17 -17
  102. package/dist/cdn/chunks/{Toolbar-CXDE8xM-.js.map → Toolbar-CnfNUkOY.js.map} +1 -1
  103. package/dist/cdn/chunks/{TplModal-CFi-Psf7.js → TplModal-BVUBOEQL.js} +2 -2
  104. package/dist/cdn/chunks/{TplModal-CFi-Psf7.js.map → TplModal-BVUBOEQL.js.map} +1 -1
  105. package/dist/cdn/chunks/{VersionHistoryMenu-1bfCr14E.js → VersionHistoryMenu-Cp3EHO_P.js} +2 -2
  106. package/dist/cdn/chunks/{VersionHistoryMenu-1bfCr14E.js.map → VersionHistoryMenu-Cp3EHO_P.js.map} +1 -1
  107. package/dist/cdn/chunks/{VersionHistoryPanels-DbgbyAdW.js → VersionHistoryPanels-Dcdy7ySA.js} +2 -2
  108. package/dist/cdn/chunks/{VersionHistoryPanels-DbgbyAdW.js.map → VersionHistoryPanels-Dcdy7ySA.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionPreviewBanner-BaOTRIrm.js → VersionPreviewBanner-BgkroXnG.js} +2 -2
  110. package/dist/cdn/chunks/{VersionPreviewBanner-BaOTRIrm.js.map → VersionPreviewBanner-BgkroXnG.js.map} +1 -1
  111. package/dist/cdn/chunks/{WrapperBlock-BYNfYvl3.js → WrapperBlock-23nAzweL.js} +2 -2
  112. package/dist/cdn/chunks/{WrapperBlock-BYNfYvl3.js.map → WrapperBlock-23nAzweL.js.map} +1 -1
  113. package/dist/cdn/chunks/{blockTypeIcons-B_IAjnTD.js → blockTypeIcons-BMZi7sdX.js} +2 -2
  114. package/dist/cdn/chunks/{blockTypeIcons-B_IAjnTD.js.map → blockTypeIcons-BMZi7sdX.js.map} +1 -1
  115. package/dist/cdn/chunks/{ca--zGWn9AU.js → ca-DSwai-th.js} +2 -5
  116. package/dist/cdn/chunks/ca-DSwai-th.js.map +1 -0
  117. package/dist/cdn/chunks/{cloud-De-eh1u6.js → cloud-DLQU5l0Z.js} +2 -2
  118. package/dist/cdn/chunks/{cloud-De-eh1u6.js.map → cloud-DLQU5l0Z.js.map} +1 -1
  119. package/dist/cdn/chunks/{createCloudRuntime-DsaUaWvr.js → createCloudRuntime-Mnx8kV2W.js} +3 -3
  120. package/dist/cdn/chunks/{createCloudRuntime-DsaUaWvr.js.map → createCloudRuntime-Mnx8kV2W.js.map} +1 -1
  121. package/dist/cdn/chunks/{de-BRNLKcDl.js → de-DOhKuphf.js} +2 -5
  122. package/dist/cdn/chunks/de-DOhKuphf.js.map +1 -0
  123. package/dist/cdn/chunks/dist-BRZhN8qJ.js.map +1 -1
  124. package/dist/cdn/chunks/dist-CXB2_kBa.js.map +1 -1
  125. package/dist/cdn/chunks/draggable-IB4x6w2O.js.map +1 -1
  126. package/dist/cdn/chunks/{editor-modal-BDOfw3l0.js → editor-modal-B7NNAFI5.js} +4 -4
  127. package/dist/cdn/chunks/{editor-modal-BDOfw3l0.js.map → editor-modal-B7NNAFI5.js.map} +1 -1
  128. package/dist/cdn/chunks/{en-JJjqHMjy.js → en-BE28ZcUF.js} +2 -5
  129. package/dist/cdn/chunks/en-BE28ZcUF.js.map +1 -0
  130. package/dist/cdn/chunks/en-C3n0qWte.js +2 -0
  131. package/dist/cdn/chunks/{es-BIh8BxV9.js → es-oQI-dfx2.js} +2 -5
  132. package/dist/cdn/chunks/es-oQI-dfx2.js.map +1 -0
  133. package/dist/cdn/chunks/{extensions-1hJBHnGv.js → extensions-ClmkNA8R.js} +5 -5
  134. package/dist/cdn/chunks/{extensions-1hJBHnGv.js.map → extensions-ClmkNA8R.js.map} +1 -1
  135. package/dist/cdn/chunks/{fr-C5VUZogP.js → fr-rzLdCMSG.js} +2 -5
  136. package/dist/cdn/chunks/fr-rzLdCMSG.js.map +1 -0
  137. package/dist/cdn/chunks/htmlparser-ClUZ6waR.js.map +1 -1
  138. package/dist/cdn/chunks/{icons-BrAyaJ0T.js → icons-BjvraR-Y.js} +35 -35
  139. package/dist/cdn/chunks/{icons-BrAyaJ0T.js.map → icons-BjvraR-Y.js.map} +1 -1
  140. package/dist/{ja-x5JYxaCW.js → cdn/chunks/ja-dyFc6Ghz.js} +3 -4
  141. package/dist/cdn/chunks/ja-dyFc6Ghz.js.map +1 -0
  142. package/dist/cdn/chunks/{liquid.browser-BypTT2oc.js → liquid.browser-DXPjcePu.js} +758 -719
  143. package/dist/cdn/chunks/liquid.browser-DXPjcePu.js.map +1 -0
  144. package/dist/cdn/chunks/{nl-UXxFyXV6.js → nl-BcQhRqKR.js} +2 -5
  145. package/dist/cdn/chunks/nl-BcQhRqKR.js.map +1 -0
  146. package/dist/cdn/chunks/{preRenderCustomBlocks-h4ZFBKbD.js → preRenderCustomBlocks-Bg3rIgGJ.js} +2 -2
  147. package/dist/cdn/chunks/{preRenderCustomBlocks-h4ZFBKbD.js.map → preRenderCustomBlocks-Bg3rIgGJ.js.map} +1 -1
  148. package/dist/cdn/chunks/{pt-BR-DHm3SP6W.js → pt-BR-UombhTMO.js} +2 -5
  149. package/dist/cdn/chunks/pt-BR-UombhTMO.js.map +1 -0
  150. package/dist/cdn/chunks/pusher-BbIHJKf3.js.map +1 -1
  151. package/dist/cdn/chunks/{socialIcons-ZOCwCCyn.js → socialIcons-CnUJBZTO.js} +2 -2
  152. package/dist/cdn/chunks/socialIcons-CnUJBZTO.js.map +1 -0
  153. package/dist/cdn/chunks/{src-fZSLjhjy.js → src-B5-VKcRQ.js} +2 -2
  154. package/dist/cdn/chunks/{src-fZSLjhjy.js.map → src-B5-VKcRQ.js.map} +1 -1
  155. package/dist/cdn/chunks/{src-D5ceT_Y4.js → src-BmKDV_BK.js} +4 -4
  156. package/dist/cdn/chunks/{src-D5ceT_Y4.js.map → src-BmKDV_BK.js.map} +1 -1
  157. package/dist/cdn/chunks/{src-BR3I3gOW.js → src-QIGNPFkl.js} +6 -8
  158. package/dist/cdn/chunks/src-QIGNPFkl.js.map +1 -0
  159. package/dist/cdn/chunks/{tiptap-D1u8JIUW.js → tiptap-02G9FGkl.js} +3726 -3552
  160. package/dist/cdn/chunks/tiptap-02G9FGkl.js.map +1 -0
  161. package/dist/cdn/chunks/{useEditorCore-BTKqlRIg.js → useEditorCore-DjD7fJpq.js} +19 -19
  162. package/dist/cdn/chunks/{useEditorCore-BTKqlRIg.js.map → useEditorCore-DjD7fJpq.js.map} +1 -1
  163. package/dist/cdn/chunks/{useLogicTag-J_i_hvZg.js → useLogicTag-D6lWY0bD.js} +2 -2
  164. package/dist/cdn/chunks/{useLogicTag-J_i_hvZg.js.map → useLogicTag-D6lWY0bD.js.map} +1 -1
  165. package/dist/cdn/chunks/{useMergeTag-C5MyHYxJ.js → useMergeTag-2iW-BKWW.js} +2 -2
  166. package/dist/cdn/chunks/{useMergeTag-C5MyHYxJ.js.map → useMergeTag-2iW-BKWW.js.map} +1 -1
  167. package/dist/cdn/editor.css +1 -1
  168. package/dist/cdn/editor.js +467 -484
  169. package/dist/cdn/editor.js.map +1 -1
  170. package/dist/{check-CA6fvSIp.js → check-DNyj-E0y.js} +1 -1
  171. package/dist/{chevron-down-DYGJgpqJ.js → chevron-down-BYnhkMsA.js} +1 -1
  172. package/dist/{chevron-right-Dm5_X4j6.js → chevron-right-D9HGBqJo.js} +1 -1
  173. package/dist/{chevron-up-Ds9ormyq.js → chevron-up-BnIR1-ma.js} +1 -1
  174. package/dist/{circle-alert-BYXE0olE.js → circle-alert-B6xl1B_M.js} +1 -1
  175. package/dist/{clock-Ch1-h0sb.js → clock-Cs5Wd3dW.js} +1 -1
  176. package/dist/{cloud-AO_X8T9g.js → cloud-BNEL7bxL.js} +1 -1
  177. package/dist/{copy-DLNyaPza.js → copy-6uKc-WBk.js} +1 -1
  178. package/dist/{createCloudRuntime-D641nhri.js → createCloudRuntime-CaZapQZ6.js} +2 -2
  179. package/dist/{createLucideIcon-BrPnbRQT.js → createLucideIcon-BVcoovvP.js} +5 -5
  180. package/dist/{de-BRNLKcDl.js → de-DOhKuphf.js} +1 -4
  181. package/dist/{dist-CxmLZQso.js → dist-8By0p8ah.js} +5 -5
  182. package/dist/{dist-W_ERo6c_.js → dist-BYg1EL5g.js} +5 -5
  183. package/dist/{dist-C2Ge44fD.js → dist-BgSLW3Hn.js} +1704 -1303
  184. package/dist/{dist-B0dkvy7z.js → dist-CWc7nIkA.js} +5 -5
  185. package/dist/{dist-CIxmOOSG.js → dist-Ceew_u40.js} +448 -699
  186. package/dist/{dist-BwoEME8p.js → dist-CmwBvyW0.js} +172 -171
  187. package/dist/{dist-CJ7RZARo.js → dist-Czzst9ng.js} +302 -279
  188. package/dist/dist-D2m55Lvs.js +5 -0
  189. package/dist/{dist-p-LkiWIQ.js → dist-D4HP93ZF.js} +13 -13
  190. package/dist/{dist-BPWuzECC.js → dist-DdSWMtEP.js} +6 -6
  191. package/dist/{dist-DRmafAUz.js → dist-DmQckB4p.js} +29 -29
  192. package/dist/dist-Dw2_11LA.js +5 -0
  193. package/dist/{dist-iLUVPysa.js → dist-HjILVdTA.js} +5 -7
  194. package/dist/{editor-modal-Cl5GFWTQ.js → editor-modal-Co-rZGaf.js} +16 -16
  195. package/dist/en-B-xoKkWi.js +2 -0
  196. package/dist/{en-JJjqHMjy.js → en-BE28ZcUF.js} +1 -4
  197. package/dist/{es-BIh8BxV9.js → es-oQI-dfx2.js} +1 -4
  198. package/dist/{extensions-AKHJ0lax.js → extensions-DXSI8Dyj.js} +63 -63
  199. package/dist/{eye-_7xKFxQh.js → eye-Nbtw_q05.js} +1 -1
  200. package/dist/{fr-C5VUZogP.js → fr-rzLdCMSG.js} +1 -4
  201. package/dist/{image-up-Ck-xPOGS.js → image-up-C1jC7NzQ.js} +1 -1
  202. package/dist/index.d.ts +2434 -374
  203. package/dist/{info-CBBNLK_i.js → info-ClH66pKN.js} +1 -1
  204. package/dist/{cdn/chunks/ja-x5JYxaCW.js → ja-dyFc6Ghz.js} +1 -6
  205. package/dist/{link-BA_V9Nns.js → link-y47GNW0o.js} +1 -1
  206. package/dist/{liquid.browser-wPG0n4Cs.js → liquid.browser-Cs4gOjeX.js} +757 -718
  207. package/dist/{list-BTujzSSo.js → list-DiLMlMaE.js} +1 -1
  208. package/dist/{loader-circle-B5OQFRUF.js → loader-circle-BRdCPW5h.js} +1 -1
  209. package/dist/{message-circle-DWXr27lZ.js → message-circle-CNgIpVJv.js} +1 -1
  210. package/dist/{nl-UXxFyXV6.js → nl-BcQhRqKR.js} +1 -4
  211. package/dist/{package-DXW9QTU3.js → package-B9OWk-Kp.js} +1 -1
  212. package/dist/{pencil-QmONZtjF.js → pencil-BDnjo24u.js} +1 -1
  213. package/dist/{plus-XxHKE_GT.js → plus-BMgjN7lI.js} +1 -1
  214. package/dist/{preRenderCustomBlocks-CTstI3Q-.js → preRenderCustomBlocks-C_PIxBp7.js} +1 -1
  215. package/dist/{pt-BR-DHm3SP6W.js → pt-BR-UombhTMO.js} +1 -4
  216. package/dist/{refresh-cw-DhXU8dCo.js → refresh-cw-CR5lenxl.js} +1 -1
  217. package/dist/{search-CpFaMrnL.js → search-CxRUiOSF.js} +1 -1
  218. package/dist/{send-CFK3e6tQ.js → send-Bu2RysGL.js} +1 -1
  219. package/dist/{shield-check-ndwpOTik.js → shield-check-Cg8f4LB0.js} +1 -1
  220. package/dist/{smartphone-DndMh9W6.js → smartphone-CHf-8lHp.js} +1 -1
  221. package/dist/{socialIcons-D43BLoTu.js → socialIcons-D1gkHc_i.js} +2 -2
  222. package/dist/{sparkles-c1M5lwAQ.js → sparkles-_DQGv4ub.js} +1 -1
  223. package/dist/style.css +1 -1
  224. package/dist/templatical-editor.js +578 -595
  225. package/dist/{text-align-start-DOtBufPq.js → text-align-start-PHo-Ep5i.js} +13 -13
  226. package/dist/{trash-DmaPdiUk.js → trash-BxIzHAri.js} +1 -1
  227. package/dist/{triangle-alert-DqvxsSNL.js → triangle-alert-fcb2KoA-.js} +1 -1
  228. package/dist/{upload-CO_hogFv.js → upload-BxBtMPMv.js} +1 -1
  229. package/dist/{useEditorCore-0K8joh4X.js → useEditorCore-iuKC8yr5.js} +23 -23
  230. package/dist/{useLogicTag-BaH8gey0.js → useLogicTag-wqfdwYYR.js} +1 -1
  231. package/dist/{useMergeTag-Cyad1yBE.js → useMergeTag-D3XDE_58.js} +1 -1
  232. package/dist/{useScrollToBlock-BU5A9eS9.js → useScrollToBlock-DA_aIJXS.js} +1 -1
  233. package/dist/{x-BCop_VsL.js → x-DrZO5tt0.js} +1 -1
  234. package/package.json +30 -26
  235. package/dist/cdn/chunks/ca--zGWn9AU.js.map +0 -1
  236. package/dist/cdn/chunks/de-BRNLKcDl.js.map +0 -1
  237. package/dist/cdn/chunks/en-DxpXHoxJ.js +0 -2
  238. package/dist/cdn/chunks/en-JJjqHMjy.js.map +0 -1
  239. package/dist/cdn/chunks/es-BIh8BxV9.js.map +0 -1
  240. package/dist/cdn/chunks/fr-C5VUZogP.js.map +0 -1
  241. package/dist/cdn/chunks/ja-x5JYxaCW.js.map +0 -1
  242. package/dist/cdn/chunks/liquid.browser-BypTT2oc.js.map +0 -1
  243. package/dist/cdn/chunks/nl-UXxFyXV6.js.map +0 -1
  244. package/dist/cdn/chunks/pt-BR-DHm3SP6W.js.map +0 -1
  245. package/dist/cdn/chunks/socialIcons-ZOCwCCyn.js.map +0 -1
  246. package/dist/cdn/chunks/src-BR3I3gOW.js.map +0 -1
  247. package/dist/cdn/chunks/tiptap-D1u8JIUW.js.map +0 -1
  248. package/dist/dist-BUHovM4k.js +0 -5
  249. package/dist/dist-DdOAotfz.js +0 -5
  250. package/dist/en-CdCFaV2V.js +0 -2
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/liquidjs@10.29.0/node_modules/liquidjs/dist/liquid.browser.mjs
1
+ //#region ../../node_modules/.pnpm/liquidjs@10.30.0/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;
@@ -36,7 +36,7 @@ function u(e, t, n) {
36
36
  if (t < 0 && (t = e.length + t), !n || i.call(e, t)) return e[t];
37
37
  }
38
38
  function d(e) {
39
- return e = p(e), g(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : se(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
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]]) : [];
40
40
  }
41
41
  function f(e) {
42
42
  return e = p(e), h(e) ? [] : g(e) ? e : [e];
@@ -66,7 +66,7 @@ function re(e) {
66
66
  return e && m(e.length);
67
67
  }
68
68
  function ie(e) {
69
- return se(e) && Symbol.iterator in e;
69
+ return _(e) && Symbol.iterator in e;
70
70
  }
71
71
  function ae(e, t) {
72
72
  e ||= {};
@@ -76,59 +76,59 @@ function ae(e, t) {
76
76
  function oe(e) {
77
77
  return e[e.length - 1];
78
78
  }
79
- function se(e) {
79
+ function _(e) {
80
80
  let t = typeof e;
81
81
  return e !== null && (t === "object" || t === "function");
82
82
  }
83
- function ce(e, t, n = 1) {
83
+ function se(e, t, n = 1) {
84
84
  let r = [];
85
85
  for (let i = e; i < t; i += n) r.push(i);
86
86
  return r;
87
87
  }
88
- function _(e, t, n = " ") {
89
- return ue(e, t, n, (e, t) => t + e);
88
+ function v(e, t, n = " ") {
89
+ return le(e, t, n, (e, t) => t + e);
90
90
  }
91
- function le(e, t, n = " ") {
92
- return ue(e, t, n, (e, t) => e + t);
91
+ function ce(e, t, n = " ") {
92
+ return le(e, t, n, (e, t) => e + t);
93
93
  }
94
- function ue(e, t, n, r) {
94
+ function le(e, t, n, r) {
95
95
  e = String(e);
96
96
  let i = t - e.length;
97
97
  return i <= 0 ? e : r(e, n.repeat(i));
98
98
  }
99
- function de(e) {
99
+ function ue(e) {
100
100
  return e;
101
101
  }
102
- function fe(e) {
102
+ function de(e) {
103
103
  return [...e].some((e) => e >= "a" && e <= "z") ? e.toUpperCase() : e.toLowerCase();
104
104
  }
105
- function pe(e, t) {
105
+ function fe(e, t) {
106
106
  return e.length > t ? e.slice(0, t - 3) + "..." : e;
107
107
  }
108
- function me(e, t) {
108
+ function pe(e, t) {
109
109
  return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || e < t ? -1 : +(e > t);
110
110
  }
111
- function he(e, t) {
111
+ function me(e, t) {
112
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);
113
113
  }
114
- function ge(e) {
114
+ function he(e) {
115
115
  return function(...t) {
116
116
  return e.call(this, ...t.map(p));
117
117
  };
118
118
  }
119
- function v(e) {
119
+ function y(e) {
120
120
  return function(...t) {
121
121
  return e.call(this, ...t.map(ee));
122
122
  };
123
123
  }
124
- function* y(e) {
124
+ function* b(e) {
125
125
  let t = /* @__PURE__ */ new Set();
126
126
  for (let n of e) {
127
127
  let e = JSON.stringify(n);
128
128
  t.has(e) || (t.add(e), yield n);
129
129
  }
130
130
  }
131
- var _e = "__liquidClass__", b = class extends Error {
131
+ var ge = "__liquidClass__", x = class extends Error {
132
132
  constructor(e, t) {
133
133
  super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", {
134
134
  value: e,
@@ -136,36 +136,36 @@ var _e = "__liquidClass__", b = class extends Error {
136
136
  }), Object.defineProperty(this, "token", {
137
137
  value: t,
138
138
  enumerable: !1
139
- }), Object.defineProperty(this, _e, {
139
+ }), Object.defineProperty(this, ge, {
140
140
  value: "LiquidError",
141
141
  enumerable: !1
142
142
  });
143
143
  }
144
144
  update() {
145
145
  Object.defineProperty(this, "context", {
146
- value: Te(this.token),
146
+ value: we(this.token),
147
147
  enumerable: !1
148
- }), this.message = Ee(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
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);
149
149
  }
150
150
  static is(e) {
151
- return e?.[_e] === "LiquidError";
151
+ return e?.[ge] === "LiquidError";
152
152
  }
153
- }, ve = class extends b {
153
+ }, _e = class extends x {
154
154
  constructor(e, t) {
155
155
  super(e, t), this.name = "TokenizationError", super.update();
156
156
  }
157
- }, ye = class extends b {
157
+ }, ve = class extends x {
158
158
  constructor(e, t) {
159
159
  super(e, t), this.name = "ParseError", this.message = e.message, super.update();
160
160
  }
161
- }, be = class extends b {
161
+ }, ye = class extends x {
162
162
  constructor(e, t) {
163
163
  super(e, t.token), this.name = "RenderError", this.message = e.message, super.update();
164
164
  }
165
165
  static is(e) {
166
166
  return e.name === "RenderError";
167
167
  }
168
- }, xe = class extends b {
168
+ }, be = class extends x {
169
169
  constructor(e) {
170
170
  super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
171
171
  let t = e.length > 1 ? "s" : "";
@@ -174,32 +174,32 @@ var _e = "__liquidClass__", b = class extends Error {
174
174
  static is(e) {
175
175
  return e.name === "LiquidErrors";
176
176
  }
177
- }, Se = class extends b {
177
+ }, xe = class extends x {
178
178
  constructor(e, t) {
179
179
  super(e, t), this.name = "UndefinedVariableError", this.message = e.message, super.update();
180
180
  }
181
- }, Ce = class extends Error {
181
+ }, Se = class extends Error {
182
182
  constructor(e) {
183
183
  super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
184
184
  }
185
- }, we = class extends Error {
185
+ }, Ce = class extends Error {
186
186
  constructor(e) {
187
187
  super(e), this.name = "AssertionError", this.message = e + "";
188
188
  }
189
189
  };
190
- function Te(e) {
190
+ function we(e) {
191
191
  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 ce(i, a + 1).map((e) => {
193
- let i = `${e === t ? ">> " : " "}${_(String(e), String(a).length)}| `, o = e === t ? "\n" + _("^", n + i.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) : "";
194
194
  return i += r[e - 1], i += o, i;
195
195
  }).join("\n");
196
196
  }
197
- function Ee(e, t) {
197
+ function Te(e, t) {
198
198
  t.file && (e += `, file:${t.file}`);
199
199
  let [n, r] = t.getPosition();
200
200
  return e += `, line:${n}, col:${r}`, e;
201
201
  }
202
- var x = [
202
+ var S = [
203
203
  0,
204
204
  0,
205
205
  0,
@@ -328,21 +328,21 @@ var x = [
328
328
  0,
329
329
  0,
330
330
  0
331
- ], De = 1, S = 4, Oe = 8, ke = 16, Ae = 32, je = 64, Me = 128;
332
- function Ne(e) {
331
+ ], Ee = 1, C = 4, De = 8, Oe = 16, ke = 32, Ae = 64, je = 128;
332
+ function Me(e) {
333
333
  let t = e.charCodeAt(0);
334
- return t >= 128 ? !x[t] : !!(x[t] & De);
334
+ return t >= 128 ? !S[t] : !!(S[t] & Ee);
335
335
  }
336
- x[160] = x[5760] = x[6158] = x[8192] = x[8193] = x[8194] = x[8195] = x[8196] = x[8197] = x[8198] = x[8199] = x[8200] = x[8201] = x[8202] = x[8232] = x[8233] = x[8239] = x[8287] = x[12288] = S, x[8220] = x[8221] = Me;
337
- function C(e, t) {
338
- if (!e) throw new we(typeof t == "function" ? t() : t || `expect ${e} to be true`);
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;
337
+ function w(e, t) {
338
+ if (!e) throw new Ce(typeof t == "function" ? t() : t || `expect ${e} to be true`);
339
339
  }
340
- function Pe(e, t = `unexpected ${JSON.stringify(e)}`) {
341
- C(!e, t);
340
+ function Ne(e, t = `unexpected ${JSON.stringify(e)}`) {
341
+ w(!e, t);
342
342
  }
343
- var Fe = class extends t {
344
- equals(e) {
345
- return h(p(e));
343
+ var Pe = class extends t {
344
+ *equals(e) {
345
+ return h(yield p(e));
346
346
  }
347
347
  gt() {
348
348
  return !1;
@@ -359,9 +359,9 @@ var Fe = class extends t {
359
359
  valueOf() {
360
360
  return null;
361
361
  }
362
- }, Ie = class e extends t {
363
- equals(t) {
364
- return t instanceof e ? !1 : (t = p(t), a(t) || g(t) ? t.length === 0 : se(t) ? Object.keys(t).length === 0 : !1);
362
+ }, Fe = class e extends t {
363
+ *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);
365
365
  }
366
366
  gt() {
367
367
  return !1;
@@ -381,14 +381,14 @@ var Fe = class extends t {
381
381
  static is(t) {
382
382
  return t instanceof e;
383
383
  }
384
- }, Le = class e extends Ie {
385
- equals(e) {
386
- return e === !1 || h(p(e)) ? !0 : a(e) ? /^\s*$/.test(e) : super.equals(e);
384
+ }, Ie = class e extends Fe {
385
+ *equals(e) {
386
+ return e === !1 || h(yield p(e)) ? !0 : a(e) ? /^\s*$/.test(e) : yield super.equals(e);
387
387
  }
388
388
  static is(t) {
389
389
  return t instanceof e;
390
390
  }
391
- }, Re = class extends t {
391
+ }, Le = class extends t {
392
392
  constructor(e, t, n) {
393
393
  super(), this.i = 0, this.length = e, this.name = `${n}-${t}`;
394
394
  }
@@ -416,65 +416,65 @@ var Fe = class extends t {
416
416
  valueOf() {
417
417
  return JSON.stringify(this);
418
418
  }
419
- }, ze = class {
419
+ }, Re = class {
420
420
  constructor() {
421
421
  this.buffer = "";
422
422
  }
423
423
  write(e) {
424
424
  this.buffer += l(e);
425
425
  }
426
- }, Be = class {
426
+ }, ze = class {
427
427
  constructor() {
428
428
  throw this.buffer = "", this.stream = null, Error("streaming not supported in browser");
429
429
  }
430
- }, Ve = class {
430
+ }, Be = class {
431
431
  constructor() {
432
432
  this.buffer = "";
433
433
  }
434
434
  write(e) {
435
435
  e = p(e), this.buffer = typeof e != "string" && this.buffer === "" ? e : l(this.buffer) + l(e);
436
436
  }
437
- }, He = class extends t {
437
+ }, Ve = class extends t {
438
438
  constructor(e = () => "") {
439
439
  super(), this.superBlockRender = e;
440
440
  }
441
441
  *super() {
442
- let e = new ze();
442
+ let e = new Re();
443
443
  return yield this.superBlockRender(e), e.buffer;
444
444
  }
445
445
  };
446
- function w(e) {
446
+ function T(e) {
447
447
  return e && o(e.equals) && o(e.gt) && o(e.geq) && o(e.lt) && o(e.leq);
448
448
  }
449
- var Ue = new Fe(), We = {
449
+ var He = new Pe(), Ue = {
450
450
  true: !0,
451
451
  false: !1,
452
- nil: Ue,
453
- null: Ue,
454
- empty: new Ie(),
455
- blank: new Le()
456
- }, Ge = /* @__PURE__ */ new WeakMap();
457
- function Ke(e) {
458
- let t = Ge.get(e);
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);
459
459
  if (t) return t;
460
460
  let n = {};
461
461
  for (let [t, r] of Object.entries(e)) {
462
462
  let e = n;
463
463
  for (let n = 0; n < t.length; n++) {
464
464
  let r = t[n];
465
- e[r] = e[r] || {}, n === t.length - 1 && Ne(t[n]) && (e[r].needBoundary = !0), e = e[r];
465
+ e[r] = e[r] || {}, n === t.length - 1 && Me(t[n]) && (e[r].needBoundary = !0), e = e[r];
466
466
  }
467
467
  e.data = r, e.end = !0;
468
468
  }
469
- return Ge.set(e, n), n;
469
+ return We.set(e, n), n;
470
470
  }
471
- var qe = function() {
472
- return qe = Object.assign || function(e) {
471
+ var E = function() {
472
+ return E = Object.assign || function(e) {
473
473
  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
474
  return e;
475
- }, qe.apply(this, arguments);
475
+ }, E.apply(this, arguments);
476
476
  };
477
- function T(e, t, n, r) {
477
+ function D(e, t, n, r) {
478
478
  function i(e) {
479
479
  return e instanceof n ? e : new n(function(t) {
480
480
  t(e);
@@ -501,19 +501,19 @@ function T(e, t, n, r) {
501
501
  c((r = r.apply(e, t || [])).next());
502
502
  });
503
503
  }
504
- function Je(e, t) {
504
+ function Ke(e, t) {
505
505
  let n = t || e;
506
506
  return (t, ...r) => t ? n(...r) : e(...r);
507
507
  }
508
- function E(e) {
509
- return T(this, void 0, void 0, function* () {
508
+ function O(e) {
509
+ return D(this, void 0, void 0, function* () {
510
510
  if (!c(e)) return e;
511
511
  let t, n = !1, r = "next";
512
512
  do {
513
513
  let i = e[r](t);
514
514
  n = !!i.done, t = i.value, r = "next";
515
515
  try {
516
- c(t) && (t = E(t)), s(t) && (t = yield t);
516
+ c(t) && (t = O(t)), s(t) && (t = yield t);
517
517
  } catch (e) {
518
518
  r = "throw", t = e;
519
519
  }
@@ -521,24 +521,24 @@ function E(e) {
521
521
  return t;
522
522
  });
523
523
  }
524
- function D(e) {
524
+ function k(e) {
525
525
  if (!c(e)) return e;
526
526
  let t, n = !1, r = "next";
527
527
  do {
528
528
  let i = e[r](t);
529
529
  if (n = !!i.done, t = i.value, r = "next", c(t)) try {
530
- t = D(t);
530
+ t = k(t);
531
531
  } catch (e) {
532
532
  r = "throw", t = e;
533
533
  }
534
534
  } while (!n);
535
535
  return t;
536
536
  }
537
- var Ye = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
538
- function Xe(e) {
537
+ var qe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
538
+ function Je(e) {
539
539
  return [
540
540
  31,
541
- $e(e) ? 29 : 28,
541
+ Ze(e) ? 29 : 28,
542
542
  31,
543
543
  30,
544
544
  31,
@@ -551,20 +551,20 @@ function Xe(e) {
551
551
  31
552
552
  ];
553
553
  }
554
- function Ze(e) {
554
+ function Ye(e) {
555
555
  let t = 0;
556
- for (let n = 0; n < e.getMonth(); ++n) t += Xe(e)[n];
556
+ for (let n = 0; n < e.getMonth(); ++n) t += Je(e)[n];
557
557
  return t + e.getDate();
558
558
  }
559
- function Qe(e, t) {
560
- let n = Ze(e) + (t - e.getDay()), r = 7 - new Date(e.getFullYear(), 0, 1).getDay() + t;
561
- return String(Math.floor((n - r) / 7) + 1);
559
+ function Xe(e, t) {
560
+ let n = (e.getDay() - t + 7) % 7;
561
+ return String(Math.floor((Ye(e) - 1 - n + 7) / 7));
562
562
  }
563
- function $e(e) {
563
+ function Ze(e) {
564
564
  let t = e.getFullYear();
565
565
  return !!(!(t & 3) && (t % 100 || t % 400 == 0 && t));
566
566
  }
567
- function et(e) {
567
+ function Qe(e) {
568
568
  let t = e.getDate();
569
569
  if ([
570
570
  11,
@@ -578,10 +578,11 @@ function et(e) {
578
578
  default: return "th";
579
579
  }
580
580
  }
581
- function tt(e) {
582
- return parseInt(e.getFullYear().toString().substring(0, 2), 10);
581
+ function $e(e) {
582
+ return Math.floor(e.getFullYear() / 100);
583
583
  }
584
- var nt = {
584
+ var et = {
585
+ C: 2,
585
586
  d: 2,
586
587
  e: 2,
587
588
  H: 2,
@@ -594,24 +595,25 @@ var nt = {
594
595
  M: 2,
595
596
  S: 2,
596
597
  U: 2,
597
- W: 2
598
- }, rt = /* @__PURE__ */ new Set("aAbBceklpP");
599
- function it(e, t) {
598
+ W: 2,
599
+ y: 2
600
+ }, tt = /* @__PURE__ */ new Set("aAbBceklpP");
601
+ function nt(e, t) {
600
602
  let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
601
- return (e.getTimezoneOffset() > 0 ? "-" : "+") + _(r, 2, "0") + (t.flags[":"] ? ":" : "") + _(i, 2, "0");
603
+ return (e.getTimezoneOffset() > 0 ? "-" : "+") + v(r, 2, "0") + (t.flags[":"] ? ":" : "") + v(i, 2, "0");
602
604
  }
603
- var at = {
605
+ var rt = {
604
606
  a: (e) => e.getShortWeekdayName(),
605
607
  A: (e) => e.getLongWeekdayName(),
606
608
  b: (e) => e.getShortMonthName(),
607
609
  B: (e) => e.getLongMonthName(),
608
610
  c: (e) => e.toLocaleString(),
609
- C: (e) => tt(e),
611
+ C: (e) => $e(e),
610
612
  d: (e) => e.getDate(),
611
613
  e: (e) => e.getDate(),
612
614
  H: (e) => e.getHours(),
613
615
  I: (e) => String(e.getHours() % 12 || 12),
614
- j: (e) => Ze(e),
616
+ j: (e) => Ye(e),
615
617
  k: (e) => e.getHours(),
616
618
  l: (e) => String(e.getHours() % 12 || 12),
617
619
  L: (e) => e.getMilliseconds(),
@@ -619,36 +621,36 @@ var at = {
619
621
  M: (e) => e.getMinutes(),
620
622
  N: (e, t) => {
621
623
  var n;
622
- let r = Number(t.width) || 9, i = _(String(e.getMilliseconds()), 3, "0").slice(0, r);
623
- return (n = t.memoryLimit) == null || n.use(r - i.length), le(i, r, "0");
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");
624
626
  },
625
627
  p: (e) => e.getHours() < 12 ? "AM" : "PM",
626
628
  P: (e) => e.getHours() < 12 ? "am" : "pm",
627
- q: (e) => et(e),
629
+ q: (e) => Qe(e),
628
630
  s: (e) => Math.floor(e.dateValue() / 1e3),
629
631
  S: (e) => e.getSeconds(),
630
632
  u: (e) => e.getDay() || 7,
631
- U: (e) => Qe(e, 0),
633
+ U: (e) => Xe(e, 0),
632
634
  w: (e) => e.getDay(),
633
- W: (e) => Qe(e, 1),
635
+ W: (e) => Xe(e, 1),
634
636
  x: (e) => e.toLocaleDateString(),
635
637
  X: (e) => e.toLocaleTimeString(),
636
- y: (e) => e.getFullYear().toString().slice(2, 4),
638
+ y: (e) => (e.getFullYear() % 100 + 100) % 100,
637
639
  Y: (e) => e.getFullYear(),
638
- z: it,
639
- Z: (e, t) => e.getTimeZoneName() || it(e, t),
640
+ z: nt,
641
+ Z: (e, t) => e.getTimeZoneName() || nt(e, t),
640
642
  t: () => " ",
641
643
  n: () => "\n",
642
644
  "%": () => "%"
643
645
  };
644
- at.h = at.b;
645
- function O(e, t, n) {
646
+ rt.h = rt.b;
647
+ function it(e, t, n) {
646
648
  let r = "", i = t, a;
647
- for (; a = Ye.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += ot(e, a, n);
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);
648
650
  return r + i;
649
651
  }
650
- function ot(e, t, n) {
651
- let [r, i = "", a, o, s] = t, c = at[s];
652
+ function at(e, t, n) {
653
+ let [r, i = "", a, o, s] = t, c = rt[s];
652
654
  if (!c) return r;
653
655
  let l = {};
654
656
  for (let e of i) l[e] = !0;
@@ -657,13 +659,13 @@ function ot(e, t, n) {
657
659
  width: a,
658
660
  modifier: o,
659
661
  memoryLimit: n
660
- })), d = rt.has(s) ? " " : "0", f = Number(a) || nt[s] || 0;
661
- return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), _(u, f, d);
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);
662
664
  }
663
- function st() {
665
+ function ot() {
664
666
  return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
665
667
  }
666
- var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
668
+ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
667
669
  "January",
668
670
  "February",
669
671
  "March",
@@ -676,7 +678,7 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
676
678
  "October",
677
679
  "November",
678
680
  "December"
679
- ], dt = ut.map((e) => e.slice(0, 3)), ft = [
681
+ ], ut = lt.map((e) => e.slice(0, 3)), dt = [
680
682
  "Sunday",
681
683
  "Monday",
682
684
  "Tuesday",
@@ -684,10 +686,10 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
684
686
  "Thursday",
685
687
  "Friday",
686
688
  "Saturday"
687
- ], pt = ft.map((e) => e.slice(0, 3)), k = class e {
689
+ ], ft = dt.map((e) => e.slice(0, 3)), A = class e {
688
690
  constructor(t, n, r) {
689
- this.locale = n, this.DateTimeFormat = st(), 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 : "";
690
- let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * ct, o = this.date.getTime() + i;
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;
691
693
  this.displayDate = new Date(o);
692
694
  }
693
695
  getTime() {
@@ -737,16 +739,16 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
737
739
  if (this.DateTimeFormat) return this.DateTimeFormat().resolvedOptions().timeZone;
738
740
  }
739
741
  getLongMonthName() {
740
- return this.format({ month: "long" }) ?? ut[this.getMonth()];
742
+ return this.format({ month: "long" }) ?? lt[this.getMonth()];
741
743
  }
742
744
  getShortMonthName() {
743
- return this.format({ month: "short" }) ?? dt[this.getMonth()];
745
+ return this.format({ month: "short" }) ?? ut[this.getMonth()];
744
746
  }
745
747
  getLongWeekdayName() {
746
- return this.format({ weekday: "long" }) ?? ft[this.displayDate.getDay()];
748
+ return this.format({ weekday: "long" }) ?? dt[this.displayDate.getDay()];
747
749
  }
748
750
  getShortWeekdayName() {
749
- return this.format({ weekday: "short" }) ?? pt[this.displayDate.getDay()];
751
+ return this.format({ weekday: "short" }) ?? ft[this.displayDate.getDay()];
750
752
  }
751
753
  valid() {
752
754
  return !isNaN(this.getTime());
@@ -755,7 +757,7 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
755
757
  return this.DateTimeFormat && this.DateTimeFormat(this.locale, e).format(this.displayDate);
756
758
  }
757
759
  static createDateFixedToTimezone(t, n) {
758
- let r = t.match(lt);
760
+ let r = t.match(ct);
759
761
  if (r && r[1] === "Z") return new e(+new Date(t), n, 0);
760
762
  if (r && r[2] && r[3] && r[4]) {
761
763
  let [, , i, a, o] = r, s = (i === "+" ? -1 : 1) * (parseInt(a, 10) * 60 + parseInt(o, 10));
@@ -767,57 +769,57 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
767
769
  let n = t.toLocaleString("en-US", { timeZone: e }), r = t.toLocaleString("en-US", { timeZone: "UTC" }), i = new Date(n);
768
770
  return (+new Date(r) - i) / 6e4;
769
771
  }
770
- }, mt = class {
772
+ }, pt = class {
771
773
  constructor(e, t) {
772
774
  this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
773
775
  }
774
776
  use(e) {
775
- +e > 0 && (C(this.base + +e <= this.limit, this.message), this.base += +e);
777
+ +e > 0 && (w(this.base + +e <= this.limit, this.message), this.base += +e);
776
778
  }
777
779
  check(e) {
778
- +e > 0 && C(+e <= this.limit, this.message);
780
+ +e > 0 && w(+e <= this.limit, this.message);
779
781
  }
780
- }, ht = class extends e {
782
+ }, mt = class extends e {
781
783
  constructor(e, [t, n], r, i, a, o, s, c) {
782
784
  super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
783
785
  let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
784
- for (; d < f && x[r.charCodeAt(d)] & S;) d++;
785
- for (; f > d && x[r.charCodeAt(f - 1)] & S;) f--;
786
+ for (; d < f && S[r.charCodeAt(d)] & C;) d++;
787
+ for (; f > d && S[r.charCodeAt(f - 1)] & C;) f--;
786
788
  this.contentRange = [d, f], this.trimLeft = l || o, this.trimRight = u || s;
787
789
  }
788
790
  get content() {
789
791
  return this.input.slice(this.contentRange[0], this.contentRange[1]);
790
792
  }
791
- }, gt = class extends ht {
793
+ }, ht = class extends mt {
792
794
  constructor(e, t, n, r, i) {
793
795
  let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
794
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]);
795
797
  }
796
- }, _t = class extends ht {
798
+ }, gt = class extends mt {
797
799
  constructor(e, t, n, r, i) {
798
800
  let { trimOutputLeft: a, trimOutputRight: o, outputDelimiterLeft: s, outputDelimiterRight: c } = r, l = [t + s.length, n - c.length];
799
801
  super(q.Output, l, e, t, n, a, o, i);
800
802
  }
801
- }, vt = class extends e {
803
+ }, _t = class extends e {
802
804
  constructor(e, t, n, r) {
803
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;
804
806
  }
805
807
  getContent() {
806
808
  return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
807
809
  }
808
- }, yt = class extends e {
810
+ }, vt = class extends e {
809
811
  constructor(e, t, n, r) {
810
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());
811
813
  }
812
- }, bt = class extends e {
814
+ }, yt = class extends e {
813
815
  constructor(e, t, n, r) {
814
816
  super(q.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
815
817
  }
816
- }, xt = class extends e {
818
+ }, bt = class extends e {
817
819
  constructor(e, t, n, r) {
818
- 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 = We[this.literal];
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];
819
821
  }
820
- }, St = {
822
+ }, xt = {
821
823
  "==": 2,
822
824
  "!=": 2,
823
825
  ">": 2,
@@ -828,7 +830,7 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
828
830
  not: 1,
829
831
  and: 0,
830
832
  or: 0
831
- }, Ct = {
833
+ }, St = {
832
834
  "==": 0,
833
835
  "!=": 0,
834
836
  ">": 0,
@@ -839,26 +841,26 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
839
841
  not: 1,
840
842
  and: 0,
841
843
  or: 0
842
- }, wt = class extends e {
844
+ }, Ct = class extends e {
843
845
  constructor(e, t, n, r) {
844
846
  super(q.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
845
847
  }
846
848
  getPrecedence() {
847
- return this.operator in St ? St[this.operator] : 1;
849
+ return this.operator in xt ? xt[this.operator] : 1;
848
850
  }
849
- }, Tt = class extends e {
851
+ }, wt = class extends e {
850
852
  constructor(e, t, n, r, i, a) {
851
853
  super(q.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
852
854
  }
853
- }, Et = class extends e {
855
+ }, Tt = class extends e {
854
856
  constructor(e, t, n, r, i, a) {
855
857
  super(q.Filter, n, r, i, a), this.name = e, this.args = t;
856
858
  }
857
- }, Dt = class extends e {
859
+ }, Et = class extends e {
858
860
  constructor(e, t, n, r, i, a) {
859
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;
860
862
  }
861
- }, Ot = /[\da-fA-F]/, kt = /[0-7]/, At = {
863
+ }, Dt = /[\da-fA-F]/, Ot = /[0-7]/, kt = {
862
864
  b: "\b",
863
865
  f: "\f",
864
866
  n: "\n",
@@ -866,200 +868,226 @@ var ct = 6e4, lt = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, ut = [
866
868
  t: " ",
867
869
  v: "\v"
868
870
  };
869
- function jt(e) {
871
+ function At(e) {
870
872
  let t = e.charCodeAt(0);
871
873
  return t >= 97 ? t - 87 : t >= 65 ? t - 55 : t - 48;
872
874
  }
873
- function Mt(e) {
875
+ function jt(e) {
874
876
  let t = "";
875
877
  for (let n = 1; n < e.length - 1; n++) {
876
878
  if (e[n] !== "\\") {
877
879
  t += e[n];
878
880
  continue;
879
881
  }
880
- if (At[e[n + 1]] !== void 0) t += At[e[++n]];
882
+ if (kt[e[n + 1]] !== void 0) t += kt[e[++n]];
881
883
  else if (e[n + 1] === "u") {
882
884
  let r = 0, i = n + 2;
883
- for (; i <= n + 5 && Ot.test(e[i]);) r = r * 16 + jt(e[i++]);
885
+ for (; i <= n + 5 && Dt.test(e[i]);) r = r * 16 + At(e[i++]);
884
886
  n = i - 1, t += String.fromCharCode(r);
885
- } else if (!kt.test(e[n + 1])) t += e[++n];
887
+ } else if (!Ot.test(e[n + 1])) t += e[++n];
886
888
  else {
887
889
  let r = n + 1, i = 0;
888
- for (; r <= n + 3 && kt.test(e[r]);) i = i * 8 + jt(e[r++]);
890
+ for (; r <= n + 3 && Ot.test(e[r]);) i = i * 8 + At(e[r++]);
889
891
  n = r - 1, t += String.fromCharCode(i);
890
892
  }
891
893
  }
892
894
  return t;
893
895
  }
894
- var Nt = class extends e {
896
+ var Mt = class extends e {
895
897
  constructor(e, t, n, r) {
896
- super(q.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Mt(this.getText());
898
+ super(q.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = jt(this.getText());
897
899
  }
898
- }, Pt = class extends e {
900
+ }, Nt = class extends e {
899
901
  constructor(e, t, n, r, i, a) {
900
902
  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;
901
903
  }
902
- }, Ft = class extends ht {
904
+ }, Pt = class extends mt {
903
905
  constructor(e, t, n, r, i) {
904
906
  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();
905
907
  }
906
908
  get args() {
907
909
  return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
908
910
  }
909
- }, It = class extends e {
911
+ }, Ft = class extends e {
910
912
  constructor(e, t, n, r, i, a) {
911
913
  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;
912
914
  }
913
- }, Lt = { now: () => Date.now() };
914
- function Rt() {
915
- return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Lt;
915
+ }, It = { now: () => Date.now() };
916
+ function Lt() {
917
+ return typeof global == "object" && global.performance || typeof window == "object" && window.performance || It;
916
918
  }
917
- var zt = class {
919
+ var Rt = class {
918
920
  renderTemplatesToNodeStream(e, t) {
919
- let n = new Be();
920
- return Promise.resolve().then(() => E(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
921
+ let n = new ze();
922
+ return Promise.resolve().then(() => O(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
921
923
  }
922
924
  *renderTemplates(e, t, n) {
923
- n ||= t.opts.keepOutputType ? new Ve() : new ze(), t.renderLimit.check(Rt().now());
925
+ n ||= t.opts.keepOutputType ? new Be() : new Re(), t.renderLimit.check(Lt().now());
924
926
  let r = [];
925
927
  for (let i of e) {
926
- t.renderLimit.check(Rt().now());
928
+ t.renderLimit.check(Lt().now());
927
929
  try {
928
930
  let e = yield i.render(t, n);
929
931
  if (e && n.write(e), t.breakCalled || t.continueCalled) break;
930
932
  } catch (e) {
931
- let n = b.is(e) ? e : new be(e, i);
933
+ let n = x.is(e) ? e : new ye(e, i);
932
934
  if (t.opts.catchAllErrors) r.push(n);
933
935
  else throw n;
934
936
  }
935
937
  }
936
- if (r.length) throw new xe(r);
938
+ if (r.length) throw new be(r);
937
939
  return n.buffer;
938
940
  }
939
941
  };
940
- function Bt(e) {
942
+ function zt(e) {
941
943
  return g(e);
942
944
  }
943
- var Vt = class {
945
+ var Bt = class {
944
946
  constructor(e, t, n) {
945
- 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;
947
+ 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;
946
948
  }
947
949
  *render(e, t) {
948
950
  let n = [];
949
- for (let e of this.args) Bt(e) ? n.push([e[0], yield A(e[1], t)]) : n.push(yield A(e, t));
951
+ for (let e of this.args) zt(e) ? n.push([e[0], yield j(e[1], t)]) : n.push(yield j(e, t));
950
952
  return yield this.handler.apply({
951
953
  context: t,
952
954
  token: this.token,
953
955
  liquid: this.liquid
954
956
  }, [e, ...n]);
955
957
  }
956
- }, Ht = class {
958
+ }, Vt = class {
957
959
  constructor(e) {
958
960
  this.postfix = [...qt(e)];
959
961
  }
960
962
  *evaluate(e, t) {
961
- C(e, "unable to evaluate: context not defined");
963
+ w(e, "unable to evaluate: context not defined");
962
964
  let n = [];
963
- for (let r of this.postfix) if (Gn(r)) {
965
+ for (let r of this.postfix) if (Kn(r)) {
964
966
  let t = n.pop(), i;
965
- if (Ct[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
967
+ if (St[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
966
968
  else {
967
969
  let a = n.pop();
968
970
  i = yield e.opts.operators[r.operator](a, t, e);
969
971
  }
970
972
  n.push(i);
971
- } else n.push(yield A(r, e, t));
973
+ } else n.push(yield j(r, e, t));
972
974
  return n[0];
973
975
  }
974
976
  valid() {
975
977
  return !!this.postfix.length;
976
978
  }
977
979
  };
978
- function* A(e, t, n = !1) {
980
+ function* j(e, t, n = !1) {
979
981
  if (e) {
980
982
  if ("content" in e) return e.content;
981
- if (Xn(e)) return yield Wt(e, t, n);
982
- if (Qn(e)) return yield Kt(e, t);
983
- if ($n(e)) return yield Ut(e, t, n);
983
+ if (Zn(e)) return yield Wt(e, t, n);
984
+ if ($n(e)) return yield Kt(e, t);
985
+ if (er(e)) return yield Ht(e, t, n);
984
986
  }
985
987
  }
986
- function* Ut(e, t, n) {
987
- C(t.liquid, "FilteredValueToken evaluation requires liquid instance in context"), n ||= t.opts.lenientIf && e.filters.length > 0 && e.filters[0].name === "default";
988
+ function* Ht(e, t, n) {
989
+ w(t.liquid, "FilteredValueToken evaluation requires liquid instance in context"), n ||= t.opts.lenientIf && e.filters.length > 0 && e.filters[0].name === "default";
988
990
  let r = yield e.initial.evaluate(t, n);
989
991
  for (let n of e.filters) {
990
992
  let e = t.liquid.filters[n.name];
991
- C(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Vt(n, e, t.liquid).render(r, t);
993
+ w(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Bt(n, e, t.liquid).render(r, t);
992
994
  }
993
995
  return r;
994
996
  }
997
+ function* Ut(e, t, n = !1) {
998
+ return yield p(yield j(e, t, n));
999
+ }
995
1000
  function* Wt(e, t, n) {
996
1001
  let r = [];
997
- for (let n of e.props) r.push(yield A(n, t, !1));
1002
+ for (let n of e.props) r.push(yield Ut(n, t, !1));
998
1003
  try {
999
1004
  if (e.variable) {
1000
- let i = yield A(e.variable, t, n);
1005
+ let i = yield j(e.variable, t, n);
1001
1006
  return yield t._getFromScope(i, r);
1002
1007
  }
1003
1008
  return yield t._get(r);
1004
1009
  } catch (t) {
1005
1010
  if (n && t.name === "InternalUndefinedVariableError") return null;
1006
- throw new Se(t, e);
1011
+ throw new xe(t, e);
1007
1012
  }
1008
1013
  }
1009
1014
  function Gt(e) {
1010
1015
  return e.content;
1011
1016
  }
1012
1017
  function* Kt(e, t) {
1013
- let n = yield A(e.lhs, t), r = yield A(e.rhs, t);
1014
- return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
1018
+ let n = yield Ut(e.lhs, t), r = yield Ut(e.rhs, t);
1019
+ return t.memoryLimit.use(r - n + 1), se(+n, +r + 1);
1015
1020
  }
1016
1021
  function* qt(e) {
1017
1022
  let t = [];
1018
- for (let n of e) if (Gn(n)) {
1023
+ for (let n of e) if (Kn(n)) {
1019
1024
  for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
1020
1025
  t.push(n);
1021
1026
  } else yield n;
1022
1027
  for (; t.length;) yield t.pop();
1023
1028
  }
1024
- function j(e, t) {
1025
- return !M(e, t);
1026
- }
1027
1029
  function M(e, t) {
1030
+ return !Jt(e, t);
1031
+ }
1032
+ function Jt(e, t) {
1028
1033
  return e = p(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
1029
1034
  }
1030
- var Jt = {
1031
- "==": N,
1032
- "!=": (e, t) => !N(e, t),
1033
- ">": (e, t) => w(e) ? e.gt(t) : w(t) ? t.lt(e) : p(e) > p(t),
1034
- "<": (e, t) => w(e) ? e.lt(t) : w(t) ? t.gt(e) : p(e) < p(t),
1035
- ">=": (e, t) => w(e) ? e.geq(t) : w(t) ? t.leq(e) : p(e) >= p(t),
1036
- "<=": (e, t) => w(e) ? e.leq(t) : w(t) ? t.geq(e) : p(e) <= p(t),
1037
- contains: (e, t) => (e = p(e), g(e) ? e.some((e) => N(e, t)) : o(e?.indexOf) ? e.indexOf(p(t)) > -1 : !1),
1038
- not: (e, t) => M(p(e), t),
1039
- and: (e, t, n) => j(p(e), n) && j(p(t), n),
1040
- or: (e, t, n) => j(p(e), n) || j(p(t), n)
1035
+ var Yt = {
1036
+ "==": function* (e, t) {
1037
+ return yield N(e, t);
1038
+ },
1039
+ "!=": function* (e, t) {
1040
+ return !(yield N(e, t));
1041
+ },
1042
+ ">": function* (e, t) {
1043
+ return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield p(e)) > (yield p(t));
1044
+ },
1045
+ "<": function* (e, t) {
1046
+ return T(e) ? yield e.lt(t) : T(t) ? yield t.gt(e) : (yield p(e)) < (yield p(t));
1047
+ },
1048
+ ">=": function* (e, t) {
1049
+ return T(e) ? yield e.geq(t) : T(t) ? yield t.leq(e) : (yield p(e)) >= (yield p(t));
1050
+ },
1051
+ "<=": function* (e, t) {
1052
+ return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield p(e)) <= (yield p(t));
1053
+ },
1054
+ contains: function* (e, t) {
1055
+ return e = yield p(e), g(e) ? yield Zt(e, t) : o(e?.indexOf) ? e.indexOf(yield p(t)) > -1 : !1;
1056
+ },
1057
+ not: function* (e, t) {
1058
+ return Jt(yield p(e), t);
1059
+ },
1060
+ and: function* (e, t, n) {
1061
+ return M(yield p(e), n) && M(yield p(t), n);
1062
+ },
1063
+ or: function* (e, t, n) {
1064
+ return M(yield p(e), n) || M(yield p(t), n);
1065
+ }
1041
1066
  };
1042
- function N(e, t) {
1043
- return w(e) ? e.equals(t) : w(t) ? t.equals(e) : (e = p(e), t = p(t), g(e) ? g(t) && Yt(e, t) : e === t);
1067
+ function* N(e, t) {
1068
+ 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);
1044
1069
  }
1045
- function Yt(e, t) {
1046
- return e.length === t.length && !e.some((e, n) => !N(e, t[n]));
1070
+ function* Xt(e, t) {
1071
+ if (e.length !== t.length) return !1;
1072
+ for (let n = 0; n < e.length; n++) if (!(yield N(e[n], t[n]))) return !1;
1073
+ return !0;
1047
1074
  }
1048
- function Xt(e, t) {
1049
- return e.some((e) => N(e, t));
1075
+ function* Zt(e, t) {
1076
+ for (let n of e) if (yield N(n, t)) return !0;
1077
+ return !1;
1050
1078
  }
1051
- var Zt = class {
1079
+ var Qt = class {
1052
1080
  constructor(e, t, n, r) {
1053
1081
  this.key = e, this.value = t, this.next = n, this.prev = r;
1054
1082
  }
1055
- }, Qt = class {
1083
+ }, $t = class {
1056
1084
  constructor(e, t = 0) {
1057
- this.limit = e, this.size = t, this.cache = {}, this.head = new Zt("HEAD", null, null, null), this.tail = new Zt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
1085
+ 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;
1058
1086
  }
1059
1087
  write(e, t) {
1060
1088
  if (this.cache[e]) this.cache[e].value = t;
1061
1089
  else {
1062
- let n = new Zt(e, t, this.head.next, this.head);
1090
+ let n = new Qt(e, t, this.head.next, this.head);
1063
1091
  this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
1064
1092
  }
1065
1093
  }
@@ -1079,7 +1107,7 @@ var Zt = class {
1079
1107
  this.size > this.limit && this.remove(this.tail.prev.key);
1080
1108
  }
1081
1109
  };
1082
- function $t(e, t) {
1110
+ function en(e, t) {
1083
1111
  let n = document.createElement("base");
1084
1112
  n.href = e;
1085
1113
  let r = document.getElementsByTagName("head")[0];
@@ -1089,14 +1117,14 @@ function $t(e, t) {
1089
1117
  let a = i.href;
1090
1118
  return r.removeChild(n), a;
1091
1119
  }
1092
- function en(e, t, n) {
1093
- return e.length && oe(e) !== "/" && (e += "/"), $t(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1120
+ function tn(e, t, n) {
1121
+ return e.length && oe(e) !== "/" && (e += "/"), en(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1094
1122
  let i = r.split("/").pop();
1095
1123
  return /\.\w+$/.test(i) ? e : t + r + n;
1096
1124
  });
1097
1125
  }
1098
- function tn(e) {
1099
- return T(this, void 0, void 0, function* () {
1126
+ function nn(e) {
1127
+ return D(this, void 0, void 0, function* () {
1100
1128
  return new Promise((t, n) => {
1101
1129
  let r = new XMLHttpRequest();
1102
1130
  r.onload = () => {
@@ -1107,70 +1135,70 @@ function tn(e) {
1107
1135
  });
1108
1136
  });
1109
1137
  }
1110
- function nn(e) {
1138
+ function rn(e) {
1111
1139
  let t = new XMLHttpRequest();
1112
1140
  if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
1113
1141
  return t.responseText;
1114
1142
  }
1115
- function rn(e) {
1116
- return T(this, void 0, void 0, function* () {
1143
+ function an(e) {
1144
+ return D(this, void 0, void 0, function* () {
1117
1145
  return !0;
1118
1146
  });
1119
1147
  }
1120
- function an(e) {
1148
+ function on(e) {
1121
1149
  return !0;
1122
1150
  }
1123
- function on(e) {
1124
- return $t(e, ".");
1151
+ function sn(e) {
1152
+ return en(e, ".");
1125
1153
  }
1126
- var sn = /*#__PURE__*/ Object.freeze({
1154
+ var cn = /*#__PURE__*/ Object.freeze({
1127
1155
  __proto__: null,
1128
- resolve: en,
1129
- readFile: tn,
1130
- readFileSync: nn,
1131
- exists: rn,
1132
- existsSync: an,
1133
- dirname: on,
1156
+ resolve: tn,
1157
+ readFile: nn,
1158
+ readFileSync: rn,
1159
+ exists: an,
1160
+ existsSync: on,
1161
+ dirname: sn,
1134
1162
  sep: "/"
1135
1163
  });
1136
- function cn(e, t) {
1164
+ function ln(e, t) {
1137
1165
  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);
1138
1166
  }
1139
- function ln(e, t, ...n) {
1140
- return e = p(e), g(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : M(e, this.context) ? t : e;
1167
+ function un(e, t, ...n) {
1168
+ 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;
1141
1169
  }
1142
- function un(e, t = 0) {
1170
+ function dn(e, t = 0) {
1143
1171
  let n = this.context.memoryLimit;
1144
- return JSON.stringify(e, (e, t) => (cn(n, t), t), t);
1172
+ return JSON.stringify(e, (e, t) => (ln(n, t), t), t);
1145
1173
  }
1146
- function dn(e, t = 0) {
1174
+ function fn(e, t = 0) {
1147
1175
  let n = this.context.memoryLimit, r = [];
1148
1176
  return JSON.stringify(e, function(e, t) {
1149
- if (typeof t != "object" || !t) return cn(n, t), t;
1177
+ if (typeof t != "object" || !t) return ln(n, t), t;
1150
1178
  for (; r.length > 0 && r[r.length - 1] !== this;) r.pop();
1151
- return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), cn(n, t), t);
1179
+ return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), ln(n, t), t);
1152
1180
  }, t);
1153
1181
  }
1154
- function fn(e) {
1182
+ function pn(e) {
1155
1183
  return Number(e);
1156
1184
  }
1157
- var pn = {
1158
- default: ln,
1185
+ var mn = {
1186
+ default: un,
1159
1187
  raw: {
1160
1188
  raw: !0,
1161
- handler: de
1189
+ handler: ue
1162
1190
  },
1163
- jsonify: un,
1164
- to_integer: fn,
1165
- json: un,
1166
- inspect: dn
1167
- }, mn = {
1191
+ jsonify: dn,
1192
+ to_integer: pn,
1193
+ json: dn,
1194
+ inspect: fn
1195
+ }, hn = {
1168
1196
  "&": "&amp;",
1169
1197
  "<": "&lt;",
1170
1198
  ">": "&gt;",
1171
1199
  "\"": "&#34;",
1172
1200
  "'": "&#39;"
1173
- }, hn = {
1201
+ }, gn = {
1174
1202
  "&amp;": "&",
1175
1203
  "&lt;": "<",
1176
1204
  "&gt;": ">",
@@ -1178,22 +1206,22 @@ var pn = {
1178
1206
  "&#39;": "'"
1179
1207
  };
1180
1208
  function P(e) {
1181
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => mn[e]);
1182
- }
1183
- function gn(e) {
1184
- return P.call(this, e);
1209
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => hn[e]);
1185
1210
  }
1186
1211
  function _n(e) {
1187
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => hn[e]);
1212
+ return P.call(this, e);
1188
1213
  }
1189
1214
  function vn(e) {
1190
- return P.call(this, _n.call(this, e));
1215
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => gn[e]);
1191
1216
  }
1192
1217
  function yn(e) {
1218
+ return P.call(this, vn.call(this, e));
1219
+ }
1220
+ function bn(e) {
1193
1221
  let t = l(e);
1194
1222
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "<br />\n");
1195
1223
  }
1196
- function bn(e) {
1224
+ function xn(e) {
1197
1225
  let t = l(e);
1198
1226
  this.context.memoryLimit.use(t.length);
1199
1227
  let n = /* @__PURE__ */ new Map([
@@ -1219,19 +1247,19 @@ function bn(e) {
1219
1247
  }
1220
1248
  return r;
1221
1249
  }
1222
- var xn = /*#__PURE__*/ Object.freeze({
1250
+ var Sn = /*#__PURE__*/ Object.freeze({
1223
1251
  __proto__: null,
1224
1252
  escape: P,
1225
- xml_escape: gn,
1226
- escape_once: vn,
1227
- newline_to_br: yn,
1228
- strip_html: bn
1229
- }), Sn = class {
1253
+ xml_escape: _n,
1254
+ escape_once: yn,
1255
+ newline_to_br: bn,
1256
+ strip_html: xn
1257
+ }), Cn = class {
1230
1258
  constructor(e) {
1231
1259
  this.mapping = e, this.sep = "/";
1232
1260
  }
1233
1261
  exists(e) {
1234
- return T(this, void 0, void 0, function* () {
1262
+ return D(this, void 0, void 0, function* () {
1235
1263
  return this.existsSync(e);
1236
1264
  });
1237
1265
  }
@@ -1239,7 +1267,7 @@ var xn = /*#__PURE__*/ Object.freeze({
1239
1267
  return !h(this.mapping[e]);
1240
1268
  }
1241
1269
  readFile(e) {
1242
- return T(this, void 0, void 0, function* () {
1270
+ return D(this, void 0, void 0, function* () {
1243
1271
  return this.readFileSync(e);
1244
1272
  });
1245
1273
  }
@@ -1268,7 +1296,7 @@ var xn = /*#__PURE__*/ Object.freeze({
1268
1296
  keyValueSeparator: ":",
1269
1297
  cache: void 0,
1270
1298
  extname: "",
1271
- fs: sn,
1299
+ fs: cn,
1272
1300
  dynamicPartials: !0,
1273
1301
  jsTruthy: !1,
1274
1302
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -1289,50 +1317,50 @@ var xn = /*#__PURE__*/ Object.freeze({
1289
1317
  lenientIf: !1,
1290
1318
  globals: {},
1291
1319
  keepOutputType: !1,
1292
- operators: Jt,
1320
+ operators: Yt,
1293
1321
  groupedExpressions: !1,
1294
1322
  memoryLimit: Infinity,
1295
1323
  parseLimit: Infinity,
1296
1324
  renderLimit: Infinity
1297
1325
  };
1298
- function Cn(e) {
1326
+ function wn(e) {
1299
1327
  if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
1300
1328
  let t;
1301
- t = typeof e.cache == "number" ? e.cache > 0 ? new Qt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new Qt(1024) : void 0, e.cache = t;
1329
+ 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;
1302
1330
  }
1303
- 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 && wn(e.outputEscape), e.locale || (e.locale = st()?.().resolvedOptions().locale ?? "en-US"), e.templates && (e.fs = new Sn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
1331
+ 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;
1304
1332
  }
1305
- function wn(e) {
1306
- return e === "escape" ? P : e === "json" ? pn.json : (C(o(e), "`outputEscape` need to be of type string or function"), e);
1333
+ function Tn(e) {
1334
+ return e === "escape" ? P : e === "json" ? mn.json : (w(o(e), "`outputEscape` need to be of type string or function"), e);
1307
1335
  }
1308
1336
  function I(e) {
1309
1337
  let t = [];
1310
1338
  return g(e) && (t = e), a(e) && (t = [e]), t;
1311
1339
  }
1312
- function Tn(e, t) {
1340
+ function En(e, t) {
1313
1341
  let n = !1;
1314
1342
  for (let r = 0; r < e.length; r++) {
1315
1343
  let i = e[r];
1316
- Wn(i) && (!n && i.trimLeft && En(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && Dn(e[r + 1], t.greedy));
1344
+ 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));
1317
1345
  }
1318
1346
  }
1319
- function En(e, t) {
1320
- if (!e || !Kn(e)) return;
1321
- let n = t ? S : ke;
1322
- for (; x[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
1323
- }
1324
1347
  function Dn(e, t) {
1325
- if (!e || !Kn(e)) return;
1326
- let n = t ? S : ke;
1327
- for (; x[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
1348
+ if (!e || !qn(e)) return;
1349
+ let n = t ? C : Oe;
1350
+ for (; S[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
1351
+ }
1352
+ function On(e, t) {
1353
+ if (!e || !qn(e)) return;
1354
+ let n = t ? C : Oe;
1355
+ for (; S[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
1328
1356
  e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
1329
1357
  }
1330
1358
  var L = class {
1331
1359
  constructor(e, t = F.operators, n, r, i = !1) {
1332
- this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = Ke(t), this.literalTrie = Ke(We), this.groupedExpressions = i;
1360
+ 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;
1333
1361
  }
1334
1362
  readExpression() {
1335
- return new Ht(this.readExpressionTokens());
1363
+ return new Vt(this.readExpressionTokens());
1336
1364
  }
1337
1365
  *readExpressionTokens() {
1338
1366
  for (; this.p < this.N;) {
@@ -1352,16 +1380,16 @@ var L = class {
1352
1380
  readOperator() {
1353
1381
  this.skipBlank();
1354
1382
  let e = this.matchTrie(this.opTrie);
1355
- if (e !== -1) return new wt(this.input, this.p, this.p = e, this.file);
1383
+ if (e !== -1) return new Ct(this.input, this.p, this.p = e, this.file);
1356
1384
  }
1357
1385
  matchTrie(e) {
1358
1386
  let t = e, n = this.p, r;
1359
1387
  for (; t[this.input[n]] && n < this.N;) t = t[this.input[n++]], t.end && (r = t);
1360
- return !r || r.needBoundary && Ne(this.peek(n - this.p)) ? -1 : n;
1388
+ return !r || r.needBoundary && Me(this.peek(n - this.p)) ? -1 : n;
1361
1389
  }
1362
1390
  readFilteredValue() {
1363
1391
  let e = this.p, t = this.readExpression();
1364
- return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new It(t, this.readFilters(), this.input, e, this.p, this.file);
1392
+ return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new Ft(t, this.readFilters(), this.input, e, this.p, this.file);
1365
1393
  }
1366
1394
  readFilters() {
1367
1395
  let e = [];
@@ -1383,7 +1411,7 @@ var L = class {
1383
1411
  e && t.push(e), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|" || this.peek() === ")", () => `unexpected character ${this.snapshot()}`);
1384
1412
  } while (this.peek() === ",");
1385
1413
  else if (!(this.peek() === "|" || this.peek() === ")" || this.end())) throw this.error("expected \":\" after filter name");
1386
- return new Et(e.getText(), t, this.input, e.begin, this.p, this.file);
1414
+ return new Tt(e.getText(), t, this.input, e.begin, this.p, this.file);
1387
1415
  }
1388
1416
  readFilterArg() {
1389
1417
  let e = this.readValue();
@@ -1399,7 +1427,7 @@ var L = class {
1399
1427
  let n = this.readTopLevelToken(e);
1400
1428
  t.push(n);
1401
1429
  }
1402
- return Tn(t, e), t;
1430
+ return En(t, e), t;
1403
1431
  }
1404
1432
  readTopLevelToken(e) {
1405
1433
  let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
@@ -1408,17 +1436,17 @@ var L = class {
1408
1436
  readHTMLToken(e) {
1409
1437
  let t = this.p;
1410
1438
  for (; this.p < this.N && !e.some((e) => this.match(e));) ++this.p;
1411
- return new vt(this.input, t, this.p, this.file);
1439
+ return new _t(this.input, t, this.p, this.file);
1412
1440
  }
1413
1441
  readTagToken(e) {
1414
1442
  let { file: t, input: n } = this, r = this.p;
1415
1443
  if (this.readToDelimiter(e.tagDelimiterRight) === -1) throw this.error(`tag ${this.snapshot(r)} not closed`, r);
1416
- let i = new gt(n, r, this.p, e, t);
1444
+ let i = new ht(n, r, this.p, e, t);
1417
1445
  return i.name === "raw" && (this.rawBeginAt = r), i;
1418
1446
  }
1419
1447
  readToDelimiter(e, t = !1) {
1420
1448
  for (this.skipBlank(); this.p < this.N;) {
1421
- if (t && this.peekType() & Oe) {
1449
+ if (t && this.peekType() & De) {
1422
1450
  this.readQuoted();
1423
1451
  continue;
1424
1452
  }
@@ -1429,7 +1457,7 @@ var L = class {
1429
1457
  readOutputToken(e = F) {
1430
1458
  let { file: t, input: n } = this, { outputDelimiterRight: r } = e, i = this.p;
1431
1459
  if (this.readToDelimiter(r, !0) === -1) throw this.error(`output ${this.snapshot(i)} not closed`, i);
1432
- return new _t(n, i, this.p, e, t);
1460
+ return new gt(n, i, this.p, e, t);
1433
1461
  }
1434
1462
  readEndrawOrRawContent(e) {
1435
1463
  let { tagDelimiterLeft: t, tagDelimiterRight: n } = e, r = this.p, i = this.readTo(t) - t.length;
@@ -1441,7 +1469,7 @@ var L = class {
1441
1469
  for (; this.p <= this.N;) {
1442
1470
  if (this.rmatch(n)) {
1443
1471
  let t = this.p;
1444
- return r === i ? (this.rawBeginAt = -1, new gt(this.input, r, t, e, this.file)) : (this.p = i, new vt(this.input, r, i, this.file));
1472
+ 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));
1445
1473
  }
1446
1474
  if (this.rmatch(t)) break;
1447
1475
  this.p++;
@@ -1462,16 +1490,16 @@ var L = class {
1462
1490
  let t = this.p;
1463
1491
  this.readToDelimiter("\n");
1464
1492
  let n = this.p;
1465
- return new Ft(this.input, t, n, e, this.file);
1493
+ return new Pt(this.input, t, n, e, this.file);
1466
1494
  }
1467
1495
  error(e, t = this.p) {
1468
- return new ve(e, new bt(this.input, t, this.N, this.file));
1496
+ return new _e(e, new yt(this.input, t, this.N, this.file));
1469
1497
  }
1470
1498
  assert(e, t, n) {
1471
1499
  if (!e) throw this.error(typeof t == "function" ? t() : t, n);
1472
1500
  }
1473
1501
  snapshot(e = this.p) {
1474
- return JSON.stringify(pe(this.input.slice(e, this.N), 32));
1502
+ return JSON.stringify(fe(this.input.slice(e, this.N), 32));
1475
1503
  }
1476
1504
  readWord() {
1477
1505
  return this.readIdentifier();
@@ -1479,8 +1507,8 @@ var L = class {
1479
1507
  readIdentifier() {
1480
1508
  this.skipBlank();
1481
1509
  let e = this.p;
1482
- for (; !this.end() && Ne(this.peek());) ++this.p;
1483
- return new bt(this.input, e, this.p, this.file);
1510
+ for (; !this.end() && Me(this.peek());) ++this.p;
1511
+ return new yt(this.input, e, this.p, this.file);
1484
1512
  }
1485
1513
  readNonEmptyIdentifier() {
1486
1514
  let e = this.readIdentifier();
@@ -1504,7 +1532,7 @@ var L = class {
1504
1532
  let r;
1505
1533
  this.skipBlank();
1506
1534
  let i = a(e) ? e : e ? "=" : ":";
1507
- return this.peek() === i && (++this.p, r = this.readValue()), new Dt(this.input, t, this.p, n, r, this.file);
1535
+ return this.peek() === i && (++this.p, r = this.readValue()), new Et(this.input, t, this.p, n, r, this.file);
1508
1536
  }
1509
1537
  remaining() {
1510
1538
  return this.input.slice(this.p, this.N);
@@ -1527,19 +1555,19 @@ var L = class {
1527
1555
  let e = this.p, t = this.readLiteral() || this.readQuoted() || this.readNumber();
1528
1556
  !t && this.peek() === "(" && (t = this.readGroupOrRange());
1529
1557
  let n = this.readProperties(!t);
1530
- return n.length ? new Tt(t, n, this.input, e, this.p) : t;
1558
+ return n.length ? new wt(t, n, this.input, e, this.p) : t;
1531
1559
  }
1532
1560
  readScopeValue() {
1533
1561
  this.skipBlank();
1534
1562
  let e = this.p, t = this.readProperties();
1535
- if (t.length) return new Tt(void 0, t, this.input, e, this.p);
1563
+ if (t.length) return new wt(void 0, t, this.input, e, this.p);
1536
1564
  }
1537
1565
  readProperties(e = !0) {
1538
1566
  let t = [];
1539
1567
  for (;;) {
1540
1568
  if (this.peek() === "[") {
1541
1569
  this.p++;
1542
- let e = this.readValue() || new bt(this.input, this.p, this.p, this.file);
1570
+ let e = this.readValue() || new yt(this.input, this.p, this.p, this.file);
1543
1571
  this.assert(this.readTo("]") !== -1, "[ not closed"), t.push(e);
1544
1572
  continue;
1545
1573
  }
@@ -1564,13 +1592,13 @@ var L = class {
1564
1592
  readNumber() {
1565
1593
  this.skipBlank();
1566
1594
  let e = !1, t = !1, n = 0;
1567
- for (this.peekType() & je && n++; this.p + n <= this.N;) if (this.peekType(n) & Ae) t = !0, n++;
1595
+ for (this.peekType() & Ae && n++; this.p + n <= this.N;) if (this.peekType(n) & ke) t = !0, n++;
1568
1596
  else if (this.peek(n) === "." && this.peek(n + 1) !== ".") {
1569
1597
  if (e || !t) return;
1570
1598
  e = !0, n++;
1571
1599
  } else break;
1572
- if (t && !Ne(this.peek(n))) {
1573
- let e = new yt(this.input, this.p, this.p + n, this.file);
1600
+ if (t && !Me(this.peek(n))) {
1601
+ let e = new vt(this.input, this.p, this.p + n, this.file);
1574
1602
  return this.advance(n), e;
1575
1603
  }
1576
1604
  }
@@ -1578,7 +1606,7 @@ var L = class {
1578
1606
  this.skipBlank();
1579
1607
  let e = this.matchTrie(this.literalTrie);
1580
1608
  if (e === -1) return;
1581
- let t = new xt(this.input, this.p, e, this.file);
1609
+ let t = new bt(this.input, this.p, e, this.file);
1582
1610
  return this.p = e, t;
1583
1611
  }
1584
1612
  readGroupOrRange() {
@@ -1590,13 +1618,13 @@ var L = class {
1590
1618
  if (this.skipBlank(), this.peek() === "." && this.peek(1) === ".") {
1591
1619
  this.p += 2;
1592
1620
  let n = this.readValueOrThrow();
1593
- return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Pt(this.input, e, this.p, t, n, this.file);
1621
+ return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Nt(this.input, e, this.p, t, n, this.file);
1594
1622
  }
1595
1623
  if (this.groupedExpressions) {
1596
- let n = new Ht([t, ...this.readExpressionTokens()]);
1624
+ let n = new Vt([t, ...this.readExpressionTokens()]);
1597
1625
  this.assert(n.valid(), () => `invalid value expression: ${this.snapshot()}`);
1598
1626
  let r = this.readFilters();
1599
- return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new It(n, r, this.input, e, this.p, this.file);
1627
+ return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new Ft(n, r, this.input, e, this.p, this.file);
1600
1628
  }
1601
1629
  throw this.error("invalid range syntax");
1602
1630
  }
@@ -1607,11 +1635,11 @@ var L = class {
1607
1635
  readQuoted() {
1608
1636
  this.skipBlank();
1609
1637
  let e = this.p;
1610
- if (!(this.peekType() & Oe)) return;
1638
+ if (!(this.peekType() & De)) return;
1611
1639
  ++this.p;
1612
1640
  let t = !1;
1613
1641
  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);
1614
- return new Nt(this.input, e, this.p, this.file);
1642
+ return new Mt(this.input, e, this.p, this.file);
1615
1643
  }
1616
1644
  *readFileNameTemplate(e) {
1617
1645
  let { outputDelimiterLeft: t } = e, n = [
@@ -1633,15 +1661,15 @@ var L = class {
1633
1661
  return !0;
1634
1662
  }
1635
1663
  peekType(e = 0) {
1636
- return this.p + e >= this.N ? 0 : x[this.input.charCodeAt(this.p + e)];
1664
+ return this.p + e >= this.N ? 0 : S[this.input.charCodeAt(this.p + e)];
1637
1665
  }
1638
1666
  peek(e = 0) {
1639
1667
  return this.p + e >= this.N ? "" : this.input[this.p + e];
1640
1668
  }
1641
1669
  skipBlank() {
1642
- for (; this.peekType() & S;) ++this.p;
1670
+ for (; this.peekType() & C;) ++this.p;
1643
1671
  }
1644
- }, On = class {
1672
+ }, kn = class {
1645
1673
  constructor(e, t) {
1646
1674
  this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
1647
1675
  }
@@ -1665,11 +1693,11 @@ var L = class {
1665
1693
  stop() {
1666
1694
  return this.stopRequested = !0, this;
1667
1695
  }
1668
- }, kn = class {
1696
+ }, An = class {
1669
1697
  constructor(e) {
1670
1698
  this.token = e;
1671
1699
  }
1672
- }, R = class extends kn {
1700
+ }, R = class extends An {
1673
1701
  constructor(e, t, n) {
1674
1702
  super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
1675
1703
  }
@@ -1681,11 +1709,11 @@ var L = class {
1681
1709
  }
1682
1710
  *render(e) {
1683
1711
  let t = {};
1684
- for (let n of Object.keys(this.hash)) t[n] = this.hash[n] === void 0 ? !0 : yield A(this.hash[n], e);
1712
+ for (let n of Object.keys(this.hash)) t[n] = this.hash[n] === void 0 ? !0 : yield j(this.hash[n], e);
1685
1713
  return t;
1686
1714
  }
1687
1715
  };
1688
- function An(e) {
1716
+ function jn(e) {
1689
1717
  return class extends R {
1690
1718
  constructor(t, n, r) {
1691
1719
  super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
@@ -1700,7 +1728,7 @@ var B = class {
1700
1728
  constructor(e, t) {
1701
1729
  this.filters = [];
1702
1730
  let n = typeof e == "string" ? new L(e, t.options.operators, void 0, void 0, t.options.groupedExpressions).readFilteredValue() : e;
1703
- this.initial = n.initial, this.filters = n.filters.map((e) => new Vt(e, this.getFilter(t, e.name), t));
1731
+ this.initial = n.initial, this.filters = n.filters.map((e) => new Bt(e, this.getFilter(t, e.name), t));
1704
1732
  }
1705
1733
  *value(e, t) {
1706
1734
  t ||= e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
@@ -1710,27 +1738,27 @@ var B = class {
1710
1738
  }
1711
1739
  getFilter(e, t) {
1712
1740
  let n = e.filters[t];
1713
- return C(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
1741
+ return w(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
1714
1742
  }
1715
- }, jn = class extends kn {
1743
+ }, Mn = class extends An {
1716
1744
  constructor(e, t) {
1717
1745
  super(e);
1718
1746
  let n = new L(e.input, t.options.operators, e.file, e.contentRange, t.options.groupedExpressions);
1719
1747
  this.value = new B(n.readFilteredValue(), t);
1720
1748
  let r = this.value.filters, i = t.options.outputEscape;
1721
1749
  if (!r[r.length - 1]?.raw && i) {
1722
- let e = new Et(toString.call(i), [], "", 0, 0);
1723
- r.push(new Vt(e, i, t));
1750
+ let e = new Tt(toString.call(i), [], "", 0, 0);
1751
+ r.push(new Bt(e, i, t));
1724
1752
  }
1725
1753
  }
1726
1754
  *render(e, t) {
1727
- let n = yield this.value.value(e, !1);
1755
+ let n = yield p(yield this.value.value(e, !1));
1728
1756
  t.write(n);
1729
1757
  }
1730
1758
  *arguments() {
1731
1759
  yield this.value;
1732
1760
  }
1733
- }, Mn = class extends kn {
1761
+ }, Nn = class extends An {
1734
1762
  constructor(e) {
1735
1763
  super(e), this.str = e.getContent();
1736
1764
  }
@@ -1742,7 +1770,7 @@ var B = class {
1742
1770
  this.segments = e, this.location = t;
1743
1771
  }
1744
1772
  toString() {
1745
- return Hn(this.segments, !0);
1773
+ return Un(this.segments, !0);
1746
1774
  }
1747
1775
  toArray() {
1748
1776
  function* t(...n) {
@@ -1750,16 +1778,16 @@ var B = class {
1750
1778
  }
1751
1779
  return Array.from(t(...this.segments));
1752
1780
  }
1753
- }, Nn = class {
1781
+ }, Pn = class {
1754
1782
  constructor() {
1755
1783
  this.map = /* @__PURE__ */ new Map();
1756
1784
  }
1757
1785
  get(e) {
1758
- let t = Hn([e.segments[0]]);
1786
+ let t = Un([e.segments[0]]);
1759
1787
  return this.map.has(t) || this.map.set(t, []), this.map.get(t);
1760
1788
  }
1761
1789
  has(e) {
1762
- return this.map.has(Hn([e.segments[0]]));
1790
+ return this.map.has(Un([e.segments[0]]));
1763
1791
  }
1764
1792
  push(e) {
1765
1793
  this.get(e).push(e);
@@ -1767,9 +1795,9 @@ var B = class {
1767
1795
  asObject() {
1768
1796
  return Object.fromEntries(this.map);
1769
1797
  }
1770
- }, Pn = { partials: !0 };
1771
- function* Fn(e, t, n) {
1772
- let r = new Nn(), i = new Nn(), o = new Nn(), s = new In(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1798
+ }, Fn = { partials: !0 };
1799
+ function* In(e, t, n) {
1800
+ let r = new Pn(), i = new Pn(), o = new Pn(), s = new Ln(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1773
1801
  function l(e, t) {
1774
1802
  r.push(e);
1775
1803
  let n = t.alias(e);
@@ -1783,7 +1811,7 @@ function* Fn(e, t, n) {
1783
1811
  for (let n of e.segments) n instanceof V && l(n, t);
1784
1812
  }
1785
1813
  function* u(e, r) {
1786
- if (e.arguments) for (let t of e.arguments()) for (let e of Ln(t)) l(e, r);
1814
+ if (e.arguments) for (let t of e.arguments()) for (let e of Rn(t)) l(e, r);
1787
1815
  if (e.localScope) for (let t of e.localScope()) {
1788
1816
  r.add(t.content), r.deleteAlias(t.content);
1789
1817
  let [e, n] = t.getPosition();
@@ -1801,12 +1829,12 @@ function* Fn(e, t, n) {
1801
1829
  return;
1802
1830
  }
1803
1831
  if (c.has(i.name)) return;
1804
- let o = /* @__PURE__ */ new Set(), s = i.isolated ? new In(o) : r.push(o);
1832
+ let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Ln(o) : r.push(o);
1805
1833
  for (let e of i.scope) if (a(e)) o.add(e);
1806
1834
  else {
1807
1835
  let [t, n] = e;
1808
1836
  o.add(t);
1809
- let r = Array.from(Ln(n));
1837
+ let r = Array.from(Rn(n));
1810
1838
  r.length && s.setAlias(t, r[0].segments);
1811
1839
  }
1812
1840
  for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
@@ -1826,12 +1854,12 @@ function* Fn(e, t, n) {
1826
1854
  };
1827
1855
  }
1828
1856
  function H(e, t = {}) {
1829
- return E(Fn(e, Object.assign(Object.assign({}, Pn), t).partials, !1));
1857
+ return O(In(e, Object.assign(Object.assign({}, Fn), t).partials, !1));
1830
1858
  }
1831
1859
  function U(e, t = {}) {
1832
- return D(Fn(e, Object.assign(Object.assign({}, Pn), t).partials, !0));
1860
+ return k(In(e, Object.assign(Object.assign({}, Fn), t).partials, !0));
1833
1861
  }
1834
- var In = class {
1862
+ var Ln = class {
1835
1863
  constructor(e) {
1836
1864
  this.stack = [{
1837
1865
  names: e,
@@ -1873,26 +1901,26 @@ var In = class {
1873
1901
  }
1874
1902
  }
1875
1903
  };
1876
- function* Ln(e) {
1877
- Y(e) ? yield* W(e) : e instanceof B && (yield* Rn(e));
1878
- }
1879
1904
  function* Rn(e) {
1905
+ Y(e) ? yield* W(e) : e instanceof B && (yield* zn(e));
1906
+ }
1907
+ function* zn(e) {
1880
1908
  for (let t of e.initial.postfix) Y(t) && (yield* W(t));
1881
- for (let t of e.filters) for (let e of t.args) Bt(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
1909
+ 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));
1882
1910
  }
1883
1911
  function* W(e) {
1884
- Qn(e) ? (yield* W(e.lhs), yield* W(e.rhs)) : $n(e) ? yield* zn(e) : Xn(e) && (yield Bn(e));
1912
+ $n(e) ? (yield* W(e.lhs), yield* W(e.rhs)) : er(e) ? yield* Bn(e) : Zn(e) && (yield Vn(e));
1885
1913
  }
1886
- function* zn(e) {
1887
- if ($n(e)) {
1914
+ function* Bn(e) {
1915
+ if (er(e)) {
1888
1916
  for (let t of e.initial.postfix) Y(t) && (yield* W(t));
1889
- for (let t of e.filters) for (let e of t.args) Bt(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
1917
+ 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));
1890
1918
  }
1891
1919
  }
1892
- function Bn(e) {
1920
+ function Vn(e) {
1893
1921
  let t = [], n = e.file, r = e.props[0];
1894
- n ||= r.file, Jn(r) || Yn(r) || Zn(r) ? t.push(r.content) : Xn(r) && t.push(...Bn(r).segments);
1895
- for (let r of e.props.slice(1)) n ||= r.file, Jn(r) || Yn(r) || Zn(r) ? t.push(r.content) : Xn(r) && t.push(Bn(r));
1922
+ n ||= r.file, Yn(r) || Xn(r) || Qn(r) ? t.push(r.content) : Zn(r) && t.push(...Vn(r).segments);
1923
+ 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));
1896
1924
  let [i, a] = e.getPosition();
1897
1925
  return new V(t, {
1898
1926
  row: i,
@@ -1900,22 +1928,22 @@ function Bn(e) {
1900
1928
  file: n
1901
1929
  });
1902
1930
  }
1903
- var Vn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1904
- function Hn(e, t = !1) {
1931
+ var Hn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1932
+ function Un(e, t = !1) {
1905
1933
  let n = [], r = e[0];
1906
- a(r) && (!t || r.match(Vn) ? n.push(`${r}`) : n.push(`['${r}']`));
1907
- for (let t of e.slice(1)) t instanceof V ? n.push(`[${Hn(t.segments)}]`) : a(t) ? t.match(Vn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
1934
+ a(r) && (!t || r.match(Hn) ? n.push(`${r}`) : n.push(`['${r}']`));
1935
+ 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}]`);
1908
1936
  return n.join("");
1909
1937
  }
1910
1938
  var G;
1911
1939
  (function(e) {
1912
1940
  e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
1913
1941
  })(G ||= {});
1914
- var Un = class {
1942
+ var Wn = class {
1915
1943
  constructor(e) {
1916
1944
  if (this.options = e, e.relativeReference) {
1917
1945
  let t = e.fs.sep;
1918
- C(t, "`fs.sep` is required for relative reference");
1946
+ w(t, "`fs.sep` is required for relative reference");
1919
1947
  let n = [
1920
1948
  "." + t,
1921
1949
  ".." + t,
@@ -1925,9 +1953,9 @@ var Un = class {
1925
1953
  this.shouldLoadRelative = (e) => n.some((t) => e.startsWith(t));
1926
1954
  } else this.shouldLoadRelative = (e) => !1;
1927
1955
  let t = e.fs;
1928
- this.contains = Je(t.contains?.bind(t) || (() => T(this, void 0, void 0, function* () {
1956
+ this.contains = Ke(t.contains?.bind(t) || (() => D(this, void 0, void 0, function* () {
1929
1957
  return !0;
1930
- })), t.containsSync?.bind(t) || (() => !0)), this.exists = Je(t.exists?.bind(t) || (() => T(this, void 0, void 0, function* () {
1958
+ })), t.containsSync?.bind(t) || (() => !0)), this.exists = Ke(t.exists?.bind(t) || (() => D(this, void 0, void 0, function* () {
1931
1959
  return !1;
1932
1960
  })), t.existsSync?.bind(t));
1933
1961
  }
@@ -1954,7 +1982,7 @@ var Un = class {
1954
1982
  }
1955
1983
  dirname(e) {
1956
1984
  let t = this.options.fs;
1957
- return C(t.dirname, "`fs.dirname` is required for relative reference"), t.dirname(e);
1985
+ return w(t.dirname, "`fs.dirname` is required for relative reference"), t.dirname(e);
1958
1986
  }
1959
1987
  lookupError(e, t) {
1960
1988
  let n = /* @__PURE__ */ Error("ENOENT");
@@ -1962,7 +1990,7 @@ var Un = class {
1962
1990
  }
1963
1991
  }, K = class {
1964
1992
  constructor(e) {
1965
- 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 Un(this.liquid.options), this.parseLimit = new mt("parse length", e.options.parseLimit), this.readFile = Je(this.fs.readFile?.bind(this.fs) || (() => T(this, void 0, void 0, function* () {
1993
+ 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* () {
1966
1994
  throw Error("readFile not implemented");
1967
1995
  })), this.fs.readFileSync?.bind(this.fs));
1968
1996
  }
@@ -1979,27 +2007,27 @@ var Un = class {
1979
2007
  if (this.liquid.options.catchAllErrors) r.push(e);
1980
2008
  else throw e;
1981
2009
  }
1982
- if (r.length) throw new xe(r);
2010
+ if (r.length) throw new be(r);
1983
2011
  return n;
1984
2012
  }
1985
2013
  parseToken(e, t) {
1986
2014
  try {
1987
2015
  if (J(e)) {
1988
2016
  let n = this.liquid.tags[e.name];
1989
- return C(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
2017
+ return w(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
1990
2018
  }
1991
- return qn(e) ? new jn(e, this.liquid) : new Mn(e);
2019
+ return Jn(e) ? new Mn(e, this.liquid) : new Nn(e);
1992
2020
  } catch (t) {
1993
- throw b.is(t) ? t : new ye(t, e);
2021
+ throw x.is(t) ? t : new ve(t, e);
1994
2022
  }
1995
2023
  }
1996
2024
  parseStream(e) {
1997
- return new On(e, (e, t) => this.parseToken(e, t));
2025
+ return new kn(e, (e, t) => this.parseToken(e, t));
1998
2026
  }
1999
2027
  *_parseFileCached(e, t, n = G.Root, r) {
2000
2028
  let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
2001
2029
  if (o) return o;
2002
- let s = this._parseFile(e, t, n, r), c = t ? yield s : E(s);
2030
+ let s = this._parseFile(e, t, n, r), c = t ? yield s : O(s);
2003
2031
  i.write(a, c);
2004
2032
  try {
2005
2033
  return yield c;
@@ -2015,37 +2043,37 @@ var Un = class {
2015
2043
  (function(e) {
2016
2044
  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";
2017
2045
  })(q ||= {});
2018
- function Wn(e) {
2046
+ function Gn(e) {
2019
2047
  return !!(X(e) & q.Delimited);
2020
2048
  }
2021
- function Gn(e) {
2049
+ function Kn(e) {
2022
2050
  return X(e) === q.Operator;
2023
2051
  }
2024
- function Kn(e) {
2052
+ function qn(e) {
2025
2053
  return X(e) === q.HTML;
2026
2054
  }
2027
- function qn(e) {
2055
+ function Jn(e) {
2028
2056
  return X(e) === q.Output;
2029
2057
  }
2030
2058
  function J(e) {
2031
2059
  return X(e) === q.Tag;
2032
2060
  }
2033
- function Jn(e) {
2061
+ function Yn(e) {
2034
2062
  return X(e) === q.Quoted;
2035
2063
  }
2036
- function Yn(e) {
2064
+ function Xn(e) {
2037
2065
  return X(e) === q.Number;
2038
2066
  }
2039
- function Xn(e) {
2067
+ function Zn(e) {
2040
2068
  return X(e) === q.PropertyAccess;
2041
2069
  }
2042
- function Zn(e) {
2070
+ function Qn(e) {
2043
2071
  return X(e) === q.Word;
2044
2072
  }
2045
- function Qn(e) {
2073
+ function $n(e) {
2046
2074
  return X(e) === q.Range;
2047
2075
  }
2048
- function $n(e) {
2076
+ function er(e) {
2049
2077
  return X(e) === q.FilteredValue;
2050
2078
  }
2051
2079
  function Y(e) {
@@ -2060,7 +2088,7 @@ function Z(e) {
2060
2088
  }
2061
2089
  var Q = class e {
2062
2090
  constructor(e = {}, t = F, n = {}, { memoryLimit: r, renderLimit: i, liquid: a } = {}) {
2063
- 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 mt("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new mt("template render", Rt().now() + (n.renderLimit ?? t.renderLimit)), this.liquid = a;
2091
+ 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;
2064
2092
  }
2065
2093
  getRegister(e, t = void 0) {
2066
2094
  return this.registers[e] = this.registers[e] || t;
@@ -2079,24 +2107,24 @@ var Q = class e {
2079
2107
  this.globals,
2080
2108
  this.environments,
2081
2109
  ...this.scopes
2082
- ].reduce((e, t) => qe(e, t), {});
2110
+ ].reduce((e, t) => E(e, t), {});
2083
2111
  }
2084
2112
  get(e) {
2085
2113
  return this.getSync(e);
2086
2114
  }
2087
2115
  getSync(e) {
2088
- return D(this._get(e));
2116
+ return k(this._get(e));
2089
2117
  }
2090
2118
  *_get(e) {
2091
2119
  let t = this.findScope(e[0]);
2092
2120
  return yield this._getFromScope(t, e);
2093
2121
  }
2094
2122
  getFromScope(e, t) {
2095
- return D(this._getFromScope(e, t));
2123
+ return k(this._getFromScope(e, t));
2096
2124
  }
2097
2125
  *_getFromScope(e, t, n = this.strictVariables) {
2098
2126
  a(t) && (t = t.split("."));
2099
- for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new Ce(t.slice(0, r + 1).join("."));
2127
+ 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("."));
2100
2128
  return e;
2101
2129
  }
2102
2130
  push(e) {
@@ -2130,20 +2158,20 @@ var Q = class e {
2130
2158
  readProperty(e, n) {
2131
2159
  if (e = te(e), n = p(n), h(e)) return e;
2132
2160
  if (g(e) && m(n)) return u(e, n, this.ownPropertyOnly);
2133
- let r = er(e, n, this.ownPropertyOnly);
2134
- return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? rr(e) : n === "first" ? tr(e, this.ownPropertyOnly) : n === "last" ? nr(e, this.ownPropertyOnly) : r;
2161
+ let r = tr(e, n, this.ownPropertyOnly);
2162
+ 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;
2135
2163
  }
2136
2164
  };
2137
- function er(e, n, r) {
2165
+ function tr(e, n, r) {
2138
2166
  if (!r || i.call(e, n) || e instanceof t) return e[n];
2139
2167
  }
2140
- function tr(e, t) {
2141
- return g(e) ? u(e, 0, t) : er(e, "first", t);
2142
- }
2143
2168
  function nr(e, t) {
2144
- return g(e) ? u(e, -1, t) : er(e, "last", t);
2169
+ return g(e) ? u(e, 0, t) : tr(e, "first", t);
2170
+ }
2171
+ function rr(e, t) {
2172
+ return g(e) ? u(e, -1, t) : tr(e, "last", t);
2145
2173
  }
2146
- function rr(e) {
2174
+ function ir(e) {
2147
2175
  if (i.call(e, "size") || e.size !== void 0) return e.size;
2148
2176
  if (g(e) || a(e)) return e.length;
2149
2177
  if (typeof e == "object") return Object.keys(e).length;
@@ -2152,80 +2180,80 @@ var $;
2152
2180
  (function(e) {
2153
2181
  e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
2154
2182
  })($ ||= {});
2155
- var ir = v(Math.abs), ar = v(Math.max), or = v(Math.min), sr = v(Math.ceil), cr = v((e, t, n = !1) => n ? Math.floor(e / t) : e / t), lr = v(Math.floor), ur = v((e, t) => e - t), dr = v((e, t) => e + t), fr = v((e, t) => (e % t + t) % t), pr = v((e, t) => e * t);
2156
- function mr(e, t = 0) {
2183
+ 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);
2184
+ function hr(e, t = 0) {
2157
2185
  e = ee(e), t = ee(t);
2158
2186
  let n = 10 ** t, r = e * n * (1 + 2 ** -52);
2159
2187
  return Math.round(r) / n;
2160
2188
  }
2161
- var hr = /*#__PURE__*/ Object.freeze({
2189
+ var gr = /*#__PURE__*/ Object.freeze({
2162
2190
  __proto__: null,
2163
- abs: ir,
2164
- at_least: ar,
2165
- at_most: or,
2166
- ceil: sr,
2167
- divided_by: cr,
2168
- floor: lr,
2169
- minus: ur,
2170
- plus: dr,
2171
- modulo: fr,
2172
- times: pr,
2173
- round: mr
2174
- }), gr = (e) => decodeURIComponent(l(e)).replace(/\+/g, " "), _r = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), vr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), yr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), br = /[^\p{M}\p{L}\p{Nd}]+/gu, xr = {
2191
+ abs: ar,
2192
+ at_least: or,
2193
+ at_most: sr,
2194
+ ceil: cr,
2195
+ divided_by: lr,
2196
+ floor: ur,
2197
+ minus: dr,
2198
+ plus: fr,
2199
+ modulo: pr,
2200
+ times: mr,
2201
+ round: hr
2202
+ }), _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 = {
2175
2203
  raw: /\s+/g,
2176
- default: br,
2204
+ default: xr,
2177
2205
  pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
2178
2206
  ascii: /[^A-Za-z0-9]+/g,
2179
- latin: br,
2207
+ latin: xr,
2180
2208
  none: null
2181
2209
  };
2182
- function Sr(e, t = "default", n = !1) {
2210
+ function Cr(e, t = "default", n = !1) {
2183
2211
  e = l(e);
2184
- let r = xr[t];
2185
- return r && (t === "latin" && (e = Cr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2212
+ let r = Sr[t];
2213
+ return r && (t === "latin" && (e = wr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2186
2214
  }
2187
- function Cr(e) {
2215
+ function wr(e) {
2188
2216
  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");
2189
2217
  }
2190
- var wr = /*#__PURE__*/ Object.freeze({
2218
+ var Tr = /*#__PURE__*/ Object.freeze({
2191
2219
  __proto__: null,
2192
- url_decode: gr,
2193
- url_encode: _r,
2194
- cgi_escape: vr,
2195
- uri_escape: yr,
2196
- slugify: Sr
2197
- }), Tr = ge(function(e, t) {
2220
+ url_decode: _r,
2221
+ url_encode: vr,
2222
+ cgi_escape: yr,
2223
+ uri_escape: br,
2224
+ slugify: Cr
2225
+ }), Er = he(function(e, t) {
2198
2226
  let n = f(e), r = h(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
2199
2227
  for (let e = 0; e < n.length; e++) i += String(n[e]).length;
2200
2228
  return this.context.memoryLimit.use(i), Array.prototype.join.call(n, r);
2201
- }), Er = ge(function(e) {
2229
+ }), Dr = he(function(e) {
2202
2230
  return re(e) ? u(e, -1, this.context.ownPropertyOnly) : "";
2203
- }), Dr = ge(function(e) {
2231
+ }), Or = he(function(e) {
2204
2232
  return re(e) ? u(e, 0, this.context.ownPropertyOnly) : "";
2205
- }), Or = ge(function(e) {
2233
+ }), kr = he(function(e) {
2206
2234
  let t = f(e);
2207
2235
  return this.context.memoryLimit.use(t.length), [...t].reverse();
2208
2236
  });
2209
- function* kr(e, t, n) {
2237
+ function* Ar(e, t, n) {
2210
2238
  let r = [], i = f(e);
2211
2239
  this.context.memoryLimit.use(i.length);
2212
2240
  for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
2213
2241
  return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
2214
2242
  }
2215
- function* Ar(e, t) {
2216
- return yield* kr.call(this, e, t, me);
2217
- }
2218
2243
  function* jr(e, t) {
2219
- return yield* kr.call(this, e, t, he);
2244
+ return yield* Ar.call(this, e, t, pe);
2245
+ }
2246
+ function* Mr(e, t) {
2247
+ return yield* Ar.call(this, e, t, me);
2220
2248
  }
2221
- var Mr = (e) => e && e.length || 0;
2222
- function* Nr(e, t) {
2249
+ var Nr = (e) => e && e.length || 0;
2250
+ function* Pr(e, t) {
2223
2251
  let n = [], r = f(e);
2224
2252
  this.context.memoryLimit.use(r.length);
2225
2253
  for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
2226
2254
  return n;
2227
2255
  }
2228
- function* Pr(e, t) {
2256
+ function* Fr(e, t) {
2229
2257
  let n = 0, r = f(e);
2230
2258
  for (let e of r) {
2231
2259
  let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
@@ -2233,50 +2261,51 @@ function* Pr(e, t) {
2233
2261
  }
2234
2262
  return n;
2235
2263
  }
2236
- function Fr(e) {
2264
+ function Ir(e) {
2237
2265
  let t = f(e);
2238
2266
  return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !h(p(e)));
2239
2267
  }
2240
- function Ir(e, t = []) {
2268
+ function Lr(e, t = []) {
2241
2269
  let n = f(e), r = f(t);
2242
2270
  return this.context.memoryLimit.use(n.length + r.length), Array.prototype.concat.call(n, r);
2243
2271
  }
2244
- function Lr(e, t) {
2245
- return Ir.call(this, e, [t]);
2246
- }
2247
2272
  function Rr(e, t) {
2273
+ return Lr.call(this, e, [t]);
2274
+ }
2275
+ function zr(e, t) {
2248
2276
  let n = f(e);
2249
2277
  this.context.memoryLimit.use(n.length);
2250
2278
  let r = [...n];
2251
2279
  return r.unshift(t), r;
2252
2280
  }
2253
- function zr(e) {
2281
+ function Br(e) {
2254
2282
  let t = f(e);
2255
2283
  this.context.memoryLimit.use(t.length);
2256
2284
  let n = [...t];
2257
2285
  return n.pop(), n;
2258
2286
  }
2259
- function Br(e) {
2287
+ function Vr(e) {
2260
2288
  let t = f(e);
2261
2289
  this.context.memoryLimit.use(t.length);
2262
2290
  let n = [...t];
2263
2291
  return n.shift(), n;
2264
2292
  }
2265
- function Vr(e, t, n = 1) {
2293
+ function Hr(e, t, n = 1) {
2266
2294
  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)));
2267
2295
  }
2268
- function Hr(e) {
2269
- return this.context.opts.jekyllWhere ? (t) => Ie.is(e) ? N(t, e) : g(t) ? Xt(t, e) : N(t, e) : e === void 0 ? (e) => j(e, this.context) : (t) => N(t, e);
2296
+ function* Ur(e, t) {
2297
+ 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);
2270
2298
  }
2271
- function* Ur(e, t, n, r) {
2272
- let i = [];
2299
+ function* Wr(e, t, n, r) {
2273
2300
  t = f(t), this.context.memoryLimit.use(t.length);
2274
- let a = new L(l(n)).readScopeValue();
2275
- for (let e of t) i.push(yield A(a, this.context.spawn(e)));
2276
- let o = Hr.call(this, r);
2277
- return Array.prototype.filter.call(t, (t, n) => o(i[n]) === e);
2301
+ let i = new L(l(n)).readScopeValue(), a = [];
2302
+ for (let n of t) {
2303
+ let t = yield j(i, this.context.spawn(n));
2304
+ (yield Ur.call(this, t, r)) === e && a.push(n);
2305
+ }
2306
+ return a;
2278
2307
  }
2279
- function* Wr(e, t, n, r) {
2308
+ function* Gr(e, t, n, r) {
2280
2309
  let i = [], a = new B(l(r), this.liquid), o = f(t);
2281
2310
  this.context.memoryLimit.use(o.length);
2282
2311
  for (let t of o) {
@@ -2286,25 +2315,25 @@ function* Wr(e, t, n, r) {
2286
2315
  }
2287
2316
  return i;
2288
2317
  }
2289
- function* Gr(e, t, n) {
2290
- return yield* Ur.call(this, !0, e, t, n);
2291
- }
2292
2318
  function* Kr(e, t, n) {
2293
- return yield* Ur.call(this, !1, e, t, n);
2319
+ return yield* Wr.call(this, !0, e, t, n);
2294
2320
  }
2295
2321
  function* qr(e, t, n) {
2296
- return yield* Wr.call(this, !0, e, t, n);
2322
+ return yield* Wr.call(this, !1, e, t, n);
2297
2323
  }
2298
2324
  function* Jr(e, t, n) {
2299
- return yield* Wr.call(this, !1, e, t, n);
2325
+ return yield* Gr.call(this, !0, e, t, n);
2300
2326
  }
2301
- function* Yr(e, t) {
2327
+ function* Yr(e, t, n) {
2328
+ return yield* Gr.call(this, !1, e, t, n);
2329
+ }
2330
+ function* Xr(e, t) {
2302
2331
  let n = /* @__PURE__ */ new Map();
2303
2332
  e = d(e);
2304
2333
  let r = new L(l(t)).readScopeValue();
2305
2334
  this.context.memoryLimit.use(e.length);
2306
2335
  for (let t of e) {
2307
- let e = yield A(r, this.context.spawn(t));
2336
+ let e = yield j(r, this.context.spawn(t));
2308
2337
  n.has(e) || n.set(e, []), n.get(e).push(t);
2309
2338
  }
2310
2339
  return [...n.entries()].map(([e, t]) => ({
@@ -2312,7 +2341,7 @@ function* Yr(e, t) {
2312
2341
  items: t
2313
2342
  }));
2314
2343
  }
2315
- function* Xr(e, t, n) {
2344
+ function* Zr(e, t, n) {
2316
2345
  let r = /* @__PURE__ */ new Map(), i = new B(l(n), this.liquid);
2317
2346
  e = d(e), this.context.memoryLimit.use(e.length);
2318
2347
  for (let n of e) {
@@ -2325,11 +2354,14 @@ function* Xr(e, t, n) {
2325
2354
  items: t
2326
2355
  }));
2327
2356
  }
2328
- function* Zr(e, t, n) {
2329
- let r = new L(l(t)).readScopeValue(), i = f(e), a = Hr.call(this, n);
2330
- for (let e = 0; e < i.length; e++) if (a(yield A(r, this.context.spawn(i[e])))) return [e, i[e]];
2331
- }
2332
2357
  function* Qr(e, t, n) {
2358
+ let r = new L(l(t)).readScopeValue(), i = f(e);
2359
+ for (let e = 0; e < i.length; e++) {
2360
+ let t = yield j(r, this.context.spawn(i[e]));
2361
+ if (yield Ur.call(this, t, n)) return [e, i[e]];
2362
+ }
2363
+ }
2364
+ function* $r(e, t, n) {
2333
2365
  let r = new B(l(n), this.liquid), i = f(e);
2334
2366
  for (let e = 0; e < i.length; e++) {
2335
2367
  this.context.push({ [t]: i[e] });
@@ -2337,231 +2369,236 @@ function* Qr(e, t, n) {
2337
2369
  if (this.context.pop(), n) return [e, i[e]];
2338
2370
  }
2339
2371
  }
2340
- function* $r(e, t, n) {
2341
- return !!(yield* Zr.call(this, e, t, n));
2342
- }
2343
2372
  function* ei(e, t, n) {
2344
2373
  return !!(yield* Qr.call(this, e, t, n));
2345
2374
  }
2346
2375
  function* ti(e, t, n) {
2347
- let r = yield* Zr.call(this, e, t, n);
2348
- return r ? r[0] : void 0;
2376
+ return !!(yield* $r.call(this, e, t, n));
2349
2377
  }
2350
2378
  function* ni(e, t, n) {
2351
2379
  let r = yield* Qr.call(this, e, t, n);
2352
2380
  return r ? r[0] : void 0;
2353
2381
  }
2354
2382
  function* ri(e, t, n) {
2355
- let r = yield* Zr.call(this, e, t, n);
2356
- return r ? r[1] : void 0;
2383
+ let r = yield* $r.call(this, e, t, n);
2384
+ return r ? r[0] : void 0;
2357
2385
  }
2358
2386
  function* ii(e, t, n) {
2359
2387
  let r = yield* Qr.call(this, e, t, n);
2360
2388
  return r ? r[1] : void 0;
2361
2389
  }
2362
- function ai(e) {
2390
+ function* ai(e, t, n) {
2391
+ let r = yield* $r.call(this, e, t, n);
2392
+ return r ? r[1] : void 0;
2393
+ }
2394
+ function oi(e) {
2363
2395
  return e = f(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
2364
2396
  }
2365
- function oi(e, t = 1) {
2397
+ function si(e, t = 1) {
2366
2398
  if (e = p(e), h(e)) return [];
2367
2399
  g(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
2368
2400
  let n = [...e].sort(() => Math.random() - .5);
2369
2401
  return t === 1 ? n[0] : n.slice(0, t);
2370
2402
  }
2371
- var si = /*#__PURE__*/ Object.freeze({
2403
+ var ci = /*#__PURE__*/ Object.freeze({
2372
2404
  __proto__: null,
2373
- join: Tr,
2374
- last: Er,
2375
- first: Dr,
2376
- reverse: Or,
2377
- sort: Ar,
2378
- sort_natural: jr,
2379
- size: Mr,
2380
- map: Nr,
2381
- sum: Pr,
2382
- compact: Fr,
2383
- concat: Ir,
2384
- push: Lr,
2385
- unshift: Rr,
2386
- pop: zr,
2387
- shift: Br,
2388
- slice: Vr,
2389
- where: Gr,
2390
- reject: Kr,
2391
- where_exp: qr,
2392
- reject_exp: Jr,
2393
- group_by: Yr,
2394
- group_by_exp: Xr,
2395
- has: $r,
2396
- has_exp: ei,
2397
- find_index: ti,
2398
- find_index_exp: ni,
2399
- find: ri,
2400
- find_exp: ii,
2401
- uniq: ai,
2402
- sample: oi
2405
+ join: Er,
2406
+ last: Dr,
2407
+ first: Or,
2408
+ reverse: kr,
2409
+ sort: jr,
2410
+ sort_natural: Mr,
2411
+ size: Nr,
2412
+ map: Pr,
2413
+ sum: Fr,
2414
+ compact: Ir,
2415
+ concat: Lr,
2416
+ push: Rr,
2417
+ unshift: zr,
2418
+ pop: Br,
2419
+ shift: Vr,
2420
+ slice: Hr,
2421
+ where: Kr,
2422
+ reject: qr,
2423
+ where_exp: Jr,
2424
+ reject_exp: Yr,
2425
+ group_by: Xr,
2426
+ group_by_exp: Zr,
2427
+ has: ei,
2428
+ has_exp: ti,
2429
+ find_index: ni,
2430
+ find_index_exp: ri,
2431
+ find: ii,
2432
+ find_exp: ai,
2433
+ uniq: oi,
2434
+ sample: si
2403
2435
  });
2404
- function ci(e, t, n) {
2436
+ function li(e, t, n) {
2405
2437
  let r = (e?.length ?? 0) + (n?.length ?? 0);
2406
2438
  this.context.memoryLimit.use(r);
2407
- let i = mi(e, this.context.opts, n);
2408
- return i ? (t = p(t), t = h(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), O(i, t, this.context.memoryLimit)) : e;
2409
- }
2410
- function li(e) {
2411
- return ci.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2439
+ let i = hi(e, this.context.opts, n);
2440
+ 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;
2412
2441
  }
2413
2442
  function ui(e) {
2414
- return ci.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2443
+ return li.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2415
2444
  }
2416
- function di(e, t, n) {
2417
- return pi.call(this, e, "%b", t, n);
2445
+ function di(e) {
2446
+ return li.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2418
2447
  }
2419
2448
  function fi(e, t, n) {
2420
- return pi.call(this, e, "%B", t, n);
2449
+ return mi.call(this, e, "%b", t, n);
2450
+ }
2451
+ function pi(e, t, n) {
2452
+ return mi.call(this, e, "%B", t, n);
2421
2453
  }
2422
- function pi(e, t, n, r) {
2423
- let i = mi(e, this.context.opts);
2454
+ function mi(e, t, n, r) {
2455
+ let i = hi(e, this.context.opts);
2424
2456
  if (!i) return e;
2425
2457
  let a = this.context.memoryLimit;
2426
2458
  if (n === "ordinal") {
2427
2459
  let e = i.getDate();
2428
- return r === "US" ? O(i, `${t} ${e}%q, %Y`, a) : O(i, `${e}%q ${t} %Y`, a);
2460
+ return r === "US" ? it(i, `${t} ${e}%q, %Y`, a) : it(i, `${e}%q ${t} %Y`, a);
2429
2461
  }
2430
- return O(i, `%d ${t} %Y`, a);
2462
+ return it(i, `%d ${t} %Y`, a);
2431
2463
  }
2432
- function mi(e, t, n) {
2464
+ function hi(e, t, n) {
2433
2465
  let r, i = n ?? t.timezoneOffset, o = t.locale;
2434
- if (e = p(e), !h(e)) return r = e === "now" || e === "today" ? new k(Date.now(), o, i) : m(e) ? new k(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new k(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? k.createDateFixedToTimezone(e, o) : new k(e, o, i) : new k(e, o, i), r.valid() ? r : void 0;
2466
+ 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;
2435
2467
  }
2436
- var hi = /*#__PURE__*/ Object.freeze({
2468
+ var gi = /*#__PURE__*/ Object.freeze({
2437
2469
  __proto__: null,
2438
- date: ci,
2439
- date_to_xmlschema: li,
2440
- date_to_rfc822: ui,
2441
- date_to_string: di,
2442
- date_to_long_string: fi
2443
- }), gi = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, _i = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2444
- function vi(e, t) {
2445
- C(arguments.length === 2, "append expect 2 arguments");
2470
+ date: li,
2471
+ date_to_xmlschema: ui,
2472
+ date_to_rfc822: di,
2473
+ date_to_string: fi,
2474
+ date_to_long_string: pi
2475
+ }), _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;
2476
+ function yi(e, t) {
2477
+ w(arguments.length === 2, "append expect 2 arguments");
2446
2478
  let n = l(e), r = l(t);
2447
2479
  return this.context.memoryLimit.use(n.length + r.length), n + r;
2448
2480
  }
2449
- function yi(e, t) {
2450
- C(arguments.length === 2, "prepend expect 2 arguments");
2481
+ function bi(e, t) {
2482
+ w(arguments.length === 2, "prepend expect 2 arguments");
2451
2483
  let n = l(e), r = l(t);
2452
2484
  return this.context.memoryLimit.use(n.length + r.length), r + n;
2453
2485
  }
2454
- function bi(e, t) {
2455
- let n = l(e);
2456
- if (this.context.memoryLimit.use(n.length), t) {
2457
- t = l(t), this.context.memoryLimit.use(t.length);
2458
- for (let e = 0, r = new Set(t); e < n.length; e++) if (!r.has(n[e])) return n.slice(e);
2459
- return "";
2486
+ function xi(e, t) {
2487
+ let n = 0;
2488
+ for (let r of e) {
2489
+ if (!t.has(r)) break;
2490
+ n += r.length;
2460
2491
  }
2461
- return n.trimStart();
2492
+ return n;
2462
2493
  }
2463
- function xi(e) {
2494
+ function Si(e, t, n = 0) {
2495
+ let r = e.length;
2496
+ for (; r > n;) {
2497
+ let i = r - n >= 2 && e.codePointAt(r - 2) > 65535 ? 2 : 1;
2498
+ if (!t.has(e.slice(r - i, r))) break;
2499
+ r -= i;
2500
+ }
2501
+ return r;
2502
+ }
2503
+ function Ci(e, t) {
2504
+ let n = l(e);
2505
+ 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();
2506
+ }
2507
+ function wi(e) {
2464
2508
  let t = l(e);
2465
2509
  return this.context.memoryLimit.use(t.length), t.toLowerCase();
2466
2510
  }
2467
- function Si(e) {
2511
+ function Ti(e) {
2468
2512
  let t = l(e);
2469
2513
  return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
2470
2514
  }
2471
- function Ci(e, t) {
2515
+ function Ei(e, t) {
2472
2516
  let n = l(e);
2473
2517
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
2474
2518
  }
2475
- function wi(e, t) {
2519
+ function Di(e, t) {
2476
2520
  let n = l(e);
2477
2521
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
2478
2522
  }
2479
- function Ti(e, t) {
2523
+ function Oi(e, t) {
2480
2524
  let n = l(e), r = l(t);
2481
2525
  this.context.memoryLimit.use(n.length + r.length);
2482
2526
  let i = n.lastIndexOf(r);
2483
2527
  return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
2484
2528
  }
2485
- function Ei(e, t) {
2486
- if (e = l(e), this.context.memoryLimit.use(e.length), t) {
2487
- t = l(t), this.context.memoryLimit.use(t.length);
2488
- for (let n = e.length - 1, r = new Set(t); n >= 0; n--) if (!r.has(e[n])) return e.slice(0, n + 1);
2489
- return "";
2490
- }
2491
- return e.trimEnd();
2529
+ function ki(e, t) {
2530
+ 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();
2492
2531
  }
2493
- function Di(e, t) {
2532
+ function Ai(e, t) {
2494
2533
  let n = l(e);
2495
2534
  this.context.memoryLimit.use(n.length);
2496
2535
  let r = n.split(l(t));
2497
2536
  for (; r.length && r[r.length - 1] === "";) r.pop();
2498
2537
  return r;
2499
2538
  }
2500
- function Oi(e, t) {
2539
+ function ji(e, t) {
2501
2540
  let n = l(e);
2502
2541
  if (this.context.memoryLimit.use(n.length), t) {
2503
2542
  let e = new Set(l(t));
2504
2543
  this.context.memoryLimit.use(e.size);
2505
- let r = 0, i = n.length - 1;
2506
- for (; e.has(n[r]);) r++;
2507
- for (; i >= r && e.has(n[i]);) i--;
2508
- return n.slice(r, i + 1);
2544
+ let r = xi(n, e);
2545
+ return n.slice(r, Si(n, e, r));
2509
2546
  }
2510
2547
  return n.trim();
2511
2548
  }
2512
- function ki(e) {
2549
+ function Mi(e) {
2513
2550
  let t = l(e);
2514
2551
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
2515
2552
  }
2516
- function Ai(e) {
2553
+ function Ni(e) {
2517
2554
  let t = l(e);
2518
2555
  return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ").trim();
2519
2556
  }
2520
- function ji(e) {
2557
+ function Pi(e) {
2521
2558
  return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
2522
2559
  }
2523
- function Mi(e, t, n) {
2560
+ function Fi(e, t, n) {
2524
2561
  let r = l(e);
2525
2562
  t = l(t), n = l(n);
2526
2563
  let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
2527
2564
  return this.context.memoryLimit.use(a), i.join(n);
2528
2565
  }
2529
- function Ni(e, t, n) {
2566
+ function Ii(e, t, n) {
2530
2567
  let r = l(e);
2531
2568
  return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
2532
2569
  }
2533
- function Pi(e, t, n) {
2570
+ function Li(e, t, n) {
2534
2571
  let r = l(e), i = l(t), a = l(n);
2535
2572
  this.context.memoryLimit.use(r.length + i.length + a.length);
2536
2573
  let o = r.lastIndexOf(i);
2537
2574
  return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
2538
2575
  }
2539
- function Fi(e, t = 50, n = "...") {
2576
+ function Ri(e, t = 50, n = "...") {
2540
2577
  let r = l(e);
2541
2578
  return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
2542
2579
  }
2543
- function Ii(e, t = 15, n = "...") {
2580
+ function zi(e, t = 15, n = "...") {
2544
2581
  let r = l(e);
2545
2582
  n = l(n), this.context.memoryLimit.use(r.length + n.length);
2546
- let i = r.split(/\s+/);
2583
+ let i = r.trimStart().split(/\s+/);
2547
2584
  t <= 0 && (t = 1);
2548
2585
  let a = i.slice(0, t).join(" ");
2549
2586
  return i.length >= t && (a += n), a;
2550
2587
  }
2551
- function Li(e) {
2588
+ function Bi(e) {
2552
2589
  let t = l(e);
2553
2590
  return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
2554
2591
  }
2555
- function Ri(e, t) {
2592
+ function Vi(e, t) {
2556
2593
  let n = l(e);
2557
2594
  if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
2558
2595
  switch (t) {
2559
- case "cjk": return (e.match(gi) || []).length + (e.match(_i) || []).length;
2560
- case "auto": return gi.test(e) ? e.match(gi).length + (e.match(_i) || []).length : e.split(/\s+/).length;
2596
+ case "cjk": return (e.match(_i) || []).length + (e.match(vi) || []).length;
2597
+ case "auto": return _i.test(e) ? e.match(_i).length + (e.match(vi) || []).length : e.split(/\s+/).length;
2561
2598
  default: return e.split(/\s+/).length;
2562
2599
  }
2563
2600
  }
2564
- function zi(e, t = "and") {
2601
+ function Hi(e, t = "and") {
2565
2602
  t = l(t);
2566
2603
  let n = t.length + e.length * 2;
2567
2604
  for (let t = 0; t < e.length; t++) n += l(e[t]).length;
@@ -2572,84 +2609,86 @@ function zi(e, t = "and") {
2572
2609
  default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
2573
2610
  }
2574
2611
  }
2575
- var Bi = /*#__PURE__*/ Object.freeze({
2612
+ var Ui = /*#__PURE__*/ Object.freeze({
2576
2613
  __proto__: null,
2577
- append: vi,
2578
- prepend: yi,
2579
- lstrip: bi,
2580
- downcase: xi,
2581
- upcase: Si,
2582
- remove: Ci,
2583
- remove_first: wi,
2584
- remove_last: Ti,
2585
- rstrip: Ei,
2586
- split: Di,
2587
- strip: Oi,
2588
- strip_newlines: ki,
2589
- squish: Ai,
2590
- capitalize: ji,
2591
- replace: Mi,
2592
- replace_first: Ni,
2593
- replace_last: Pi,
2594
- truncate: Fi,
2595
- truncatewords: Ii,
2596
- normalize_whitespace: Li,
2597
- number_of_words: Ri,
2598
- array_to_sentence_string: zi
2614
+ append: yi,
2615
+ prepend: bi,
2616
+ lstrip: Ci,
2617
+ downcase: wi,
2618
+ upcase: Ti,
2619
+ remove: Ei,
2620
+ remove_first: Di,
2621
+ remove_last: Oi,
2622
+ rstrip: ki,
2623
+ split: Ai,
2624
+ strip: ji,
2625
+ strip_newlines: Mi,
2626
+ squish: Ni,
2627
+ capitalize: Pi,
2628
+ replace: Fi,
2629
+ replace_first: Ii,
2630
+ replace_last: Li,
2631
+ truncate: Ri,
2632
+ truncatewords: zi,
2633
+ normalize_whitespace: Bi,
2634
+ number_of_words: Vi,
2635
+ array_to_sentence_string: Hi
2599
2636
  });
2600
- function Vi(e) {
2601
- return btoa(String.fromCharCode(...new TextEncoder().encode(e)));
2637
+ function Wi(e) {
2638
+ let t = new TextEncoder().encode(e), n = "";
2639
+ for (let e = 0; e < t.length; e += 32768) n += String.fromCharCode(...t.subarray(e, e + 32768));
2640
+ return btoa(n);
2602
2641
  }
2603
- function Hi(e) {
2642
+ function Gi(e) {
2604
2643
  return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
2605
2644
  }
2606
- function Ui(e) {
2645
+ function Ki(e) {
2607
2646
  if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
2608
2647
  let t = l(e);
2609
- return this.context.memoryLimit.use(t.length), Vi(t);
2648
+ return this.context.memoryLimit.use(t.length), Wi(t);
2610
2649
  }
2611
- function Wi(e) {
2650
+ function qi(e) {
2612
2651
  let t = l(e);
2613
- return this.context.memoryLimit.use(t.length), Hi(t);
2652
+ return this.context.memoryLimit.use(t.length), Gi(t);
2614
2653
  }
2615
- var Gi = /*#__PURE__*/ Object.freeze({
2654
+ var Ji = /*#__PURE__*/ Object.freeze({
2616
2655
  __proto__: null,
2617
- base64_encode: Ui,
2618
- base64_decode: Wi
2656
+ base64_encode: Ki,
2657
+ base64_decode: qi
2619
2658
  });
2620
- function Ki(e) {
2659
+ function Yi(e) {
2621
2660
  let t = new Uint8Array(e), n = "";
2622
2661
  for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
2623
2662
  return n;
2624
2663
  }
2625
- function qi(e) {
2626
- return T(this, void 0, void 0, function* () {
2664
+ function Xi(e) {
2665
+ return D(this, void 0, void 0, function* () {
2627
2666
  let t = new TextEncoder().encode(e);
2628
- return Ki(yield crypto.subtle.digest("SHA-256", t));
2667
+ return Yi(yield crypto.subtle.digest("SHA-256", t));
2629
2668
  });
2630
2669
  }
2631
- function Ji(e, t) {
2632
- return T(this, void 0, void 0, function* () {
2670
+ function Zi(e, t) {
2671
+ return D(this, void 0, void 0, function* () {
2633
2672
  let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
2634
2673
  name: "HMAC",
2635
2674
  hash: "SHA-256"
2636
2675
  }, !1, ["sign"]);
2637
- return Ki(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2676
+ return Yi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2638
2677
  });
2639
2678
  }
2640
- function Yi(e) {
2679
+ function Qi(e) {
2641
2680
  let t = l(e);
2642
- return this.context.memoryLimit.use(t.length), qi(t);
2681
+ return this.context.memoryLimit.use(t.length), Xi(t);
2643
2682
  }
2644
- function Xi(e, t) {
2683
+ function $i(e, t) {
2645
2684
  let n = l(e), r = l(t);
2646
- return this.context.memoryLimit.use(n.length + r.length), Ji(n, r);
2685
+ return this.context.memoryLimit.use(n.length + r.length), Zi(n, r);
2647
2686
  }
2648
- var Zi = /*#__PURE__*/ Object.freeze({
2687
+ var ea = /*#__PURE__*/ Object.freeze({
2649
2688
  __proto__: null,
2650
- sha256: Yi,
2651
- hmac_sha256: Xi
2652
- }), Qi = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, xn), hr), wr), si), hi), Bi), Gi), Zi), pn), $i = class extends R {
2689
+ sha256: Qi,
2690
+ hmac_sha256: $i
2691
+ }), 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 {
2653
2692
  constructor(e, t, n) {
2654
2693
  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);
2655
2694
  }
@@ -2662,27 +2701,27 @@ var Zi = /*#__PURE__*/ Object.freeze({
2662
2701
  *localScope() {
2663
2702
  yield this.identifier;
2664
2703
  }
2665
- }, ea = [
2704
+ }, ra = [
2666
2705
  "offset",
2667
2706
  "limit",
2668
2707
  "reversed"
2669
- ], ta = class extends R {
2708
+ ], ia = class extends R {
2670
2709
  constructor(e, t, n, r) {
2671
2710
  super(e, t, n);
2672
2711
  let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
2673
2712
  if (!i.size() || a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
2674
2713
  this.variable = i.content, this.collection = o, this.hash = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2675
2714
  let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:else", (e) => {
2676
- Pe(e.args), s = this.elseTemplates;
2715
+ Ne(e.args), s = this.elseTemplates;
2677
2716
  }).on("tag:endfor", (e) => {
2678
- Pe(e.args), c.stop();
2717
+ Ne(e.args), c.stop();
2679
2718
  }).on("template", (e) => s.push(e)).on("end", () => {
2680
2719
  throw Error(`tag ${e.getText()} not closed`);
2681
2720
  });
2682
2721
  c.start();
2683
2722
  }
2684
2723
  *render(e, t) {
2685
- let n = this.liquid.renderer, r = d(yield A(this.collection, e));
2724
+ let n = this.liquid.renderer, r = d(yield j(this.collection, e));
2686
2725
  if (!r.length) {
2687
2726
  yield n.renderTemplates(this.elseTemplates, e, t);
2688
2727
  return;
@@ -2690,8 +2729,8 @@ var Zi = /*#__PURE__*/ Object.freeze({
2690
2729
  let i = "continue-" + this.variable + "-" + this.collection.getText();
2691
2730
  e.push(Z({ continue: e.getRegister(i, {}) }));
2692
2731
  let a = yield this.hash.render(e);
2693
- e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => ea.includes(e)) : ea.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? ra(e, a.offset) : t === "limit" ? ia(e, a.limit) : na(e), r), e.setRegister(i, (a.offset || 0) + r.length);
2694
- let o = Z({ forloop: new Re(r.length, this.collection.getText(), this.variable) });
2732
+ 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);
2733
+ let o = Z({ forloop: new Le(r.length, this.collection.getText(), this.variable) });
2695
2734
  e.push(o);
2696
2735
  for (let i of r) {
2697
2736
  if (o[this.variable] = i, e.continueCalled = e.breakCalled = !1, yield n.renderTemplates(this.templates, e, t), e.breakCalled) break;
@@ -2711,16 +2750,16 @@ var Zi = /*#__PURE__*/ Object.freeze({
2711
2750
  return [this.variable, "forloop"];
2712
2751
  }
2713
2752
  };
2714
- function na(e) {
2753
+ function aa(e) {
2715
2754
  return [...e].reverse();
2716
2755
  }
2717
- function ra(e, t) {
2756
+ function oa(e, t) {
2718
2757
  return e.slice(t);
2719
2758
  }
2720
- function ia(e, t) {
2759
+ function sa(e, t) {
2721
2760
  return e.slice(0, t);
2722
2761
  }
2723
- var aa = class extends R {
2762
+ var ca = class extends R {
2724
2763
  constructor(e, t, n, r) {
2725
2764
  for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
2726
2765
  let e = t.shift();
@@ -2744,7 +2783,7 @@ var aa = class extends R {
2744
2783
  *localScope() {
2745
2784
  yield this.identifier;
2746
2785
  }
2747
- }, oa = class extends R {
2786
+ }, la = class extends R {
2748
2787
  constructor(e, t, n, r) {
2749
2788
  super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new B(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2750
2789
  let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
@@ -2766,8 +2805,8 @@ var aa = class extends R {
2766
2805
  o.start();
2767
2806
  }
2768
2807
  *render(e, t) {
2769
- let n = this.liquid.renderer, r = p(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2770
- for (let a of this.branches) for (let o of a.values) if (N(r, yield A(o, e, e.opts.lenientIf))) {
2808
+ let n = this.liquid.renderer, r = yield p(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2809
+ for (let a of this.branches) for (let o of a.values) if (yield N(r, yield j(o, e, e.opts.lenientIf))) {
2771
2810
  yield n.renderTemplates(a.templates, e, t), i = !0;
2772
2811
  break;
2773
2812
  }
@@ -2780,7 +2819,7 @@ var aa = class extends R {
2780
2819
  let e = this.branches.flatMap((e) => e.templates);
2781
2820
  return this.elseTemplates && e.push(...this.elseTemplates), e;
2782
2821
  }
2783
- }, sa = class extends R {
2822
+ }, ua = class extends R {
2784
2823
  constructor(e, t, n) {
2785
2824
  for (super(e, t, n); t.length;) {
2786
2825
  let e = t.shift();
@@ -2789,11 +2828,11 @@ var aa = class extends R {
2789
2828
  throw Error(`tag ${e.getText()} not closed`);
2790
2829
  }
2791
2830
  render() {}
2792
- }, ca = class extends R {
2831
+ }, da = class extends R {
2793
2832
  constructor(e, t, n, r) {
2794
2833
  super(e, t, n);
2795
2834
  let i = this.tokenizer;
2796
- for (this.file = la(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2835
+ for (this.file = fa(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2797
2836
  i.skipBlank();
2798
2837
  let e = i.p, t = i.readIdentifier();
2799
2838
  if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
@@ -2815,16 +2854,16 @@ var aa = class extends R {
2815
2854
  this.hash = new z(i, n.options.keyValueSeparator);
2816
2855
  }
2817
2856
  *render(e, t) {
2818
- let { liquid: n, hash: r } = this, i = yield da(this.file, e, n);
2819
- C(i, () => `illegal file path "${i}"`);
2857
+ let { liquid: n, hash: r } = this, i = yield ma(this.file, e, n);
2858
+ w(i, () => `illegal file path "${i}"`);
2820
2859
  let a = e.spawn(), o = a.bottom();
2821
- if (qe(o, yield r.render(e)), this.with) {
2860
+ if (E(o, yield r.render(e)), this.with) {
2822
2861
  let { value: t, alias: n } = this.with;
2823
- o[n || i] = yield A(t, e);
2862
+ o[n || i] = yield j(t, e);
2824
2863
  }
2825
2864
  if (this.forBinding) {
2826
- let { value: r, alias: s } = this.forBinding, c = d(yield A(r, e));
2827
- o.forloop = new Re(c.length, r.getText(), s);
2865
+ let { value: r, alias: s } = this.forBinding, c = d(yield j(r, e));
2866
+ o.forloop = new Le(c.length, r.getText(), s);
2828
2867
  for (let e of c) {
2829
2868
  o[s] = e;
2830
2869
  let r = yield n._parsePartialFile(i, a.sync, this.currentFile);
@@ -2868,35 +2907,35 @@ var aa = class extends R {
2868
2907
  }
2869
2908
  }
2870
2909
  };
2871
- function la(e, t, n) {
2910
+ function fa(e, t, n) {
2872
2911
  if (t.options.dynamicPartials) {
2873
2912
  let t = e.readValue();
2874
- return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Jn(t) ? ua(n.parse(Gt(t))) : t;
2913
+ return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Yn(t) ? pa(n.parse(Gt(t))) : t;
2875
2914
  }
2876
- let r = [...e.readFileNameTemplate(t.options)], i = ua(n.parseTokens(r));
2915
+ let r = [...e.readFileNameTemplate(t.options)], i = pa(n.parseTokens(r));
2877
2916
  return i === "none" ? void 0 : i;
2878
2917
  }
2879
- function ua(e) {
2880
- return e.length === 1 && Kn(e[0].token) ? e[0].token.getContent() : e;
2918
+ function pa(e) {
2919
+ return e.length === 1 && qn(e[0].token) ? e[0].token.getContent() : e;
2881
2920
  }
2882
- function* da(e, t, n) {
2883
- return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield A(e, t);
2921
+ function* ma(e, t, n) {
2922
+ return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield j(e, t);
2884
2923
  }
2885
- var fa = class extends R {
2924
+ var ha = class extends R {
2886
2925
  constructor(e, t, n, r) {
2887
2926
  super(e, t, n);
2888
2927
  let { tokenizer: i } = e;
2889
- this.file = la(i, this.liquid, r), this.currentFile = e.file;
2928
+ this.file = fa(i, this.liquid, r), this.currentFile = e.file;
2890
2929
  let a = i.p;
2891
2930
  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);
2892
2931
  }
2893
2932
  *render(e, t) {
2894
- let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield da(this.file, e, n);
2895
- C(o, () => `illegal file path "${o}"`);
2933
+ let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield ma(this.file, e, n);
2934
+ w(o, () => `illegal file path "${o}"`);
2896
2935
  let s = e.saveRegister("blocks", "blockMode");
2897
2936
  e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
2898
2937
  let c = Z(yield r.render(e));
2899
- i && (c[o] = yield A(i, e));
2938
+ i && (c[o] = yield j(i, e));
2900
2939
  let l = yield n._parsePartialFile(o, e.sync, this.currentFile);
2901
2940
  e.push(e.opts.jekyllInclude ? Z({ include: c }) : c), yield a.renderTemplates(l, e, t), e.pop(), e.restoreRegister(s);
2902
2941
  }
@@ -2916,7 +2955,7 @@ var fa = class extends R {
2916
2955
  *arguments() {
2917
2956
  yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
2918
2957
  }
2919
- }, pa = class extends R {
2958
+ }, ga = class extends R {
2920
2959
  constructor(e, t, n) {
2921
2960
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2922
2961
  }
@@ -2927,7 +2966,7 @@ var fa = class extends R {
2927
2966
  *localScope() {
2928
2967
  yield this.identifier;
2929
2968
  }
2930
- }, ma = class extends R {
2969
+ }, _a = class extends R {
2931
2970
  constructor(e, t, n) {
2932
2971
  super(e, t, n), this.candidates = [];
2933
2972
  let r = this.tokenizer.readValue();
@@ -2938,15 +2977,15 @@ var fa = class extends R {
2938
2977
  this.tokenizer.assert(this.candidates.length, () => `empty candidates: "${e.getText()}"`);
2939
2978
  }
2940
2979
  *render(e, t) {
2941
- let n = `cycle:${yield A(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
2980
+ let n = `cycle:${yield j(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
2942
2981
  i === void 0 && (i = r[n] = 0);
2943
2982
  let a = this.candidates[i];
2944
- return i = (i + 1) % this.candidates.length, r[n] = i, yield A(a, e);
2983
+ return i = (i + 1) % this.candidates.length, r[n] = i, yield j(a, e);
2945
2984
  }
2946
2985
  *arguments() {
2947
2986
  yield* this.candidates, this.group && (yield this.group);
2948
2987
  }
2949
- }, ha = class extends R {
2988
+ }, va = class extends R {
2950
2989
  constructor(e, t, n, r) {
2951
2990
  super(e, t, n), this.branches = [];
2952
2991
  let i = [];
@@ -2954,21 +2993,21 @@ var fa = class extends R {
2954
2993
  value: new B(e.tokenizer.readFilteredValue(), this.liquid),
2955
2994
  templates: i = []
2956
2995
  })).on("tag:elsif", (e) => {
2957
- C(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2996
+ w(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2958
2997
  value: new B(e.tokenizer.readFilteredValue(), this.liquid),
2959
2998
  templates: i = []
2960
2999
  });
2961
3000
  }).on("tag:else", (e) => {
2962
- Pe(e.args), C(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
3001
+ Ne(e.args), w(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
2963
3002
  }).on("tag:endif", function(e) {
2964
- Pe(e.args), this.stop();
3003
+ Ne(e.args), this.stop();
2965
3004
  }).on("template", (e) => i.push(e)).on("end", () => {
2966
3005
  throw Error(`tag ${e.getText()} not closed`);
2967
3006
  }).start();
2968
3007
  }
2969
3008
  *render(e, t) {
2970
3009
  let n = this.liquid.renderer;
2971
- for (let { value: r, templates: i } of this.branches) if (j(yield r.value(e, e.opts.lenientIf), e)) {
3010
+ for (let { value: r, templates: i } of this.branches) if (M(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
2972
3011
  yield n.renderTemplates(i, e, t);
2973
3012
  return;
2974
3013
  }
@@ -2981,7 +3020,7 @@ var fa = class extends R {
2981
3020
  arguments() {
2982
3021
  return this.branches.map((e) => e.value);
2983
3022
  }
2984
- }, ga = class extends R {
3023
+ }, ya = class extends R {
2985
3024
  constructor(e, t, n) {
2986
3025
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2987
3026
  }
@@ -2994,9 +3033,9 @@ var fa = class extends R {
2994
3033
  *localScope() {
2995
3034
  yield this.identifier;
2996
3035
  }
2997
- }, _a = class extends R {
3036
+ }, ba = class extends R {
2998
3037
  constructor(e, t, n, r) {
2999
- super(e, t, n), this.file = la(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
3038
+ 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);
3000
3039
  }
3001
3040
  *render(e, t) {
3002
3041
  let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
@@ -3004,8 +3043,8 @@ var fa = class extends R {
3004
3043
  e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
3005
3044
  return;
3006
3045
  }
3007
- let o = yield da(this.file, e, n);
3008
- C(o, () => `illegal file path "${o}"`);
3046
+ let o = yield ma(this.file, e, n);
3047
+ w(o, () => `illegal file path "${o}"`);
3009
3048
  let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
3010
3049
  e.setRegister("blockMode", $.STORE);
3011
3050
  let c = yield a.renderTemplates(this.templates, e), l = e.getRegister("blocks", {});
@@ -3026,7 +3065,7 @@ var fa = class extends R {
3026
3065
  scope: Object.keys(this.args.hash)
3027
3066
  };
3028
3067
  }
3029
- }, va = class extends R {
3068
+ }, xa = class extends R {
3030
3069
  constructor(e, t, n, r) {
3031
3070
  super(e, t, n), this.templates = [];
3032
3071
  let i = /\w+/.exec(e.args);
@@ -3040,7 +3079,7 @@ var fa = class extends R {
3040
3079
  }
3041
3080
  *render(e, t) {
3042
3081
  let n = this.getBlockRender(e);
3043
- e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new He(), t);
3082
+ e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new Ve(), t);
3044
3083
  }
3045
3084
  getBlockRender(e) {
3046
3085
  let t = this, { liquid: n, templates: r } = this, i = e.getRegister("blocks", {})[this.block], a = function* (i, a) {
@@ -3048,7 +3087,7 @@ var fa = class extends R {
3048
3087
  if (o.includes(t)) throw Error("block tag cannot be nested");
3049
3088
  o.push(t), e.push(Z({ block: i })), yield n.renderer.renderTemplates(r, e, a), e.pop(), o.pop();
3050
3089
  };
3051
- return i ? (e, t) => i(new He((t) => a(e, t)), t) : a;
3090
+ return i ? (e, t) => i(new Ve((t) => a(e, t)), t) : a;
3052
3091
  }
3053
3092
  *children() {
3054
3093
  return this.templates;
@@ -3056,7 +3095,7 @@ var fa = class extends R {
3056
3095
  blockScope() {
3057
3096
  return ["block"];
3058
3097
  }
3059
- }, ya = class extends R {
3098
+ }, Sa = class extends R {
3060
3099
  constructor(e, t, n) {
3061
3100
  for (super(e, t, n), this.tokens = []; t.length;) {
3062
3101
  let e = t.shift();
@@ -3068,7 +3107,7 @@ var fa = class extends R {
3068
3107
  render() {
3069
3108
  return this.tokens.map((e) => e.getText()).join("");
3070
3109
  }
3071
- }, ba = class extends Re {
3110
+ }, Ca = class extends Le {
3072
3111
  constructor(e, t, n, r) {
3073
3112
  super(e, n, r), this.length = e, this.cols = t;
3074
3113
  }
@@ -3087,21 +3126,21 @@ var fa = class extends R {
3087
3126
  col_last() {
3088
3127
  return this.col() === this.cols;
3089
3128
  }
3090
- }, xa = {
3091
- assign: $i,
3092
- for: ta,
3093
- capture: aa,
3094
- case: oa,
3095
- comment: sa,
3096
- include: fa,
3097
- render: ca,
3098
- decrement: pa,
3099
- increment: ga,
3100
- cycle: ma,
3101
- if: ha,
3102
- layout: _a,
3103
- block: va,
3104
- raw: ya,
3129
+ }, wa = {
3130
+ assign: na,
3131
+ for: ia,
3132
+ capture: ca,
3133
+ case: la,
3134
+ comment: ua,
3135
+ include: ha,
3136
+ render: da,
3137
+ decrement: ga,
3138
+ increment: ya,
3139
+ cycle: _a,
3140
+ if: va,
3141
+ layout: ba,
3142
+ block: xa,
3143
+ raw: Sa,
3105
3144
  tablerow: class extends R {
3106
3145
  constructor(e, t, n, r) {
3107
3146
  super(e, t, n);
@@ -3116,9 +3155,9 @@ var fa = class extends R {
3116
3155
  c.start();
3117
3156
  }
3118
3157
  *render(e, t) {
3119
- let n = d(yield A(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
3158
+ let n = d(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
3120
3159
  n = n.slice(i, i + a);
3121
- let o = r.cols || n.length, s = this.liquid.renderer, c = new ba(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
3160
+ let o = r.cols || n.length, s = this.liquid.renderer, c = new Ca(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
3122
3161
  e.push(l);
3123
3162
  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>");
3124
3163
  n.length && t.write("</tr>"), e.pop();
@@ -3140,7 +3179,7 @@ var fa = class extends R {
3140
3179
  let i = [], a = 0;
3141
3180
  r.parseStream(t).on("start", () => this.branches.push({
3142
3181
  value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3143
- test: M,
3182
+ test: Jt,
3144
3183
  templates: i = []
3145
3184
  })).on("tag:elsif", (e) => {
3146
3185
  if (a > 0) {
@@ -3149,7 +3188,7 @@ var fa = class extends R {
3149
3188
  }
3150
3189
  this.branches.push({
3151
3190
  value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3152
- test: j,
3191
+ test: M,
3153
3192
  templates: i = []
3154
3193
  });
3155
3194
  }).on("tag:else", () => {
@@ -3164,7 +3203,7 @@ var fa = class extends R {
3164
3203
  }
3165
3204
  *render(e, t) {
3166
3205
  let n = this.liquid.renderer;
3167
- for (let { value: r, test: i, templates: a } of this.branches) if (i(yield r.value(e, e.opts.lenientIf), e)) {
3206
+ for (let { value: r, test: i, templates: a } of this.branches) if (i(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
3168
3207
  yield n.renderTemplates(a, e, t);
3169
3208
  return;
3170
3209
  }
@@ -3194,7 +3233,7 @@ var fa = class extends R {
3194
3233
  }
3195
3234
  *render(e, t) {
3196
3235
  if (!this.value) return;
3197
- let n = yield this.value.value(e, !1);
3236
+ let n = yield p(yield this.value.value(e, !1));
3198
3237
  t.write(n);
3199
3238
  }
3200
3239
  *arguments() {
@@ -3220,9 +3259,9 @@ var fa = class extends R {
3220
3259
  }
3221
3260
  render() {}
3222
3261
  }
3223
- }, Sa = class e {
3262
+ }, Ta = class e {
3224
3263
  constructor(e = {}) {
3225
- this.renderer = new zt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = Cn(e), this.parser = new K(this), ae(xa, (e, t) => this.registerTag(t, e)), ae(Qi, (e, t) => this.registerFilter(t, e));
3264
+ 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));
3226
3265
  }
3227
3266
  parse(e, t) {
3228
3267
  return new K(this).parse(e, t);
@@ -3232,12 +3271,12 @@ var fa = class extends R {
3232
3271
  return this.renderer.renderTemplates(e, r);
3233
3272
  }
3234
3273
  render(e, t, n) {
3235
- return T(this, void 0, void 0, function* () {
3236
- return E(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3274
+ return D(this, void 0, void 0, function* () {
3275
+ return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3237
3276
  });
3238
3277
  }
3239
3278
  renderSync(e, t, n) {
3240
- return D(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3279
+ return k(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3241
3280
  }
3242
3281
  renderToNodeStream(e, t, n = {}) {
3243
3282
  let r = new Q(t, this.options, n, { liquid: this });
@@ -3248,12 +3287,12 @@ var fa = class extends R {
3248
3287
  return this._render(r, t, n);
3249
3288
  }
3250
3289
  parseAndRender(e, t, n) {
3251
- return T(this, void 0, void 0, function* () {
3252
- return E(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3290
+ return D(this, void 0, void 0, function* () {
3291
+ return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3253
3292
  });
3254
3293
  }
3255
3294
  parseAndRenderSync(e, t, n) {
3256
- return D(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3295
+ return k(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3257
3296
  }
3258
3297
  _parsePartialFile(e, t, n) {
3259
3298
  return new K(this).parseFile(e, t, G.Partials, n);
@@ -3265,27 +3304,27 @@ var fa = class extends R {
3265
3304
  return new K(this).parseFile(e, t, n, r);
3266
3305
  }
3267
3306
  parseFile(e, t) {
3268
- return T(this, void 0, void 0, function* () {
3269
- return E(new K(this).parseFile(e, !1, t));
3307
+ return D(this, void 0, void 0, function* () {
3308
+ return O(new K(this).parseFile(e, !1, t));
3270
3309
  });
3271
3310
  }
3272
3311
  parseFileSync(e, t) {
3273
- return D(new K(this).parseFile(e, !0, t));
3312
+ return k(new K(this).parseFile(e, !0, t));
3274
3313
  }
3275
3314
  *_renderFile(e, t, n) {
3276
3315
  let r = yield this._parseFile(e, n.sync, n.lookupType);
3277
3316
  return yield this._render(r, t, n);
3278
3317
  }
3279
3318
  renderFile(e, t, n) {
3280
- return T(this, void 0, void 0, function* () {
3281
- return E(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3319
+ return D(this, void 0, void 0, function* () {
3320
+ return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3282
3321
  });
3283
3322
  }
3284
3323
  renderFileSync(e, t, n) {
3285
- return D(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3324
+ return k(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3286
3325
  }
3287
3326
  renderFileToNodeStream(e, t, n) {
3288
- return T(this, void 0, void 0, function* () {
3327
+ return D(this, void 0, void 0, function* () {
3289
3328
  let r = yield this.parseFile(e);
3290
3329
  return this.renderToNodeStream(r, t, n);
3291
3330
  });
@@ -3295,12 +3334,12 @@ var fa = class extends R {
3295
3334
  return n.value(r);
3296
3335
  }
3297
3336
  evalValue(e, t) {
3298
- return T(this, void 0, void 0, function* () {
3299
- return E(this._evalValue(e, t));
3337
+ return D(this, void 0, void 0, function* () {
3338
+ return O(this._evalValue(e, t));
3300
3339
  });
3301
3340
  }
3302
3341
  evalValueSync(e, t) {
3303
- return D(this._evalValue(e, t));
3342
+ return k(this._evalValue(e, t));
3304
3343
  }
3305
3344
  registerFilter(e, t) {
3306
3345
  this.filters[e] = t;
@@ -3309,7 +3348,7 @@ var fa = class extends R {
3309
3348
  delete this.filters[e];
3310
3349
  }
3311
3350
  registerTag(e, t) {
3312
- this.tags[e] = o(t) ? t : An(t);
3351
+ this.tags[e] = o(t) ? t : jn(t);
3313
3352
  }
3314
3353
  plugin(t) {
3315
3354
  return t.call(this, e);
@@ -3326,7 +3365,7 @@ var fa = class extends R {
3326
3365
  };
3327
3366
  }
3328
3367
  analyze(e, t = {}) {
3329
- return T(this, void 0, void 0, function* () {
3368
+ return D(this, void 0, void 0, function* () {
3330
3369
  return H(e, t);
3331
3370
  });
3332
3371
  }
@@ -3334,7 +3373,7 @@ var fa = class extends R {
3334
3373
  return U(e, t);
3335
3374
  }
3336
3375
  parseAndAnalyze(e, t, n = {}) {
3337
- return T(this, void 0, void 0, function* () {
3376
+ return D(this, void 0, void 0, function* () {
3338
3377
  return H(this.parse(e, t), n);
3339
3378
  });
3340
3379
  }
@@ -3342,7 +3381,7 @@ var fa = class extends R {
3342
3381
  return U(this.parse(e, t), n);
3343
3382
  }
3344
3383
  variables(e, t = {}) {
3345
- return T(this, void 0, void 0, function* () {
3384
+ return D(this, void 0, void 0, function* () {
3346
3385
  let n = yield H(a(e) ? this.parse(e) : e, t);
3347
3386
  return Object.keys(n.variables);
3348
3387
  });
@@ -3352,7 +3391,7 @@ var fa = class extends R {
3352
3391
  return Object.keys(n.variables);
3353
3392
  }
3354
3393
  fullVariables(e, t = {}) {
3355
- return T(this, void 0, void 0, function* () {
3394
+ return D(this, void 0, void 0, function* () {
3356
3395
  let n = yield H(a(e) ? this.parse(e) : e, t);
3357
3396
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3358
3397
  });
@@ -3362,17 +3401,17 @@ var fa = class extends R {
3362
3401
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3363
3402
  }
3364
3403
  variableSegments(e, t = {}) {
3365
- return T(this, void 0, void 0, function* () {
3404
+ return D(this, void 0, void 0, function* () {
3366
3405
  let n = yield H(a(e) ? this.parse(e) : e, t);
3367
- return Array.from(y(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3406
+ return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3368
3407
  });
3369
3408
  }
3370
3409
  variableSegmentsSync(e, t = {}) {
3371
3410
  let n = U(a(e) ? this.parse(e) : e, t);
3372
- return Array.from(y(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3411
+ return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3373
3412
  }
3374
3413
  globalVariables(e, t = {}) {
3375
- return T(this, void 0, void 0, function* () {
3414
+ return D(this, void 0, void 0, function* () {
3376
3415
  let n = yield H(a(e) ? this.parse(e) : e, t);
3377
3416
  return Object.keys(n.globals);
3378
3417
  });
@@ -3382,7 +3421,7 @@ var fa = class extends R {
3382
3421
  return Object.keys(n.globals);
3383
3422
  }
3384
3423
  globalFullVariables(e, t = {}) {
3385
- return T(this, void 0, void 0, function* () {
3424
+ return D(this, void 0, void 0, function* () {
3386
3425
  let n = yield H(a(e) ? this.parse(e) : e, t);
3387
3426
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3388
3427
  });
@@ -3392,16 +3431,16 @@ var fa = class extends R {
3392
3431
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3393
3432
  }
3394
3433
  globalVariableSegments(e, t = {}) {
3395
- return T(this, void 0, void 0, function* () {
3434
+ return D(this, void 0, void 0, function* () {
3396
3435
  let n = yield H(a(e) ? this.parse(e) : e, t);
3397
- return Array.from(y(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3436
+ return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3398
3437
  });
3399
3438
  }
3400
3439
  globalVariableSegmentsSync(e, t = {}) {
3401
3440
  let n = U(a(e) ? this.parse(e) : e, t);
3402
- return Array.from(y(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3441
+ return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3403
3442
  }
3404
3443
  };
3405
3444
  /* istanbul ignore file */
3406
3445
  //#endregion
3407
- export { Sa as Liquid };
3446
+ export { Ta as Liquid };