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