@templatical/editor 0.52.1 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AiAltTextPopover-NMJqQKvD.js +106 -0
- package/dist/{AiAltTextReview-9ySsXOTU.js → AiAltTextReview-Ci4zHwRc.js} +68 -66
- package/dist/AiChatPanel-DdhtfsmO.js +561 -0
- package/dist/{AiPanels-DqT4PgQ0.js → AiPanels-HBx7xoJR.js} +6 -6
- package/dist/{AiRewriteMenu-28agTycW.js → AiRewriteMenu-DPzSekZt.js} +76 -105
- package/dist/BlockIssueBadge-eIXZJ9M3.js +33 -0
- package/dist/BlockPreviewCanvas-DO-2TP_6.js +140 -0
- package/dist/{CloudHeaderExtras-QI82yF54.js → CloudHeaderExtras-XpjJjn3o.js} +4 -4
- package/dist/{CloudPanels-BKJaLkUN.js → CloudPanels-i2kZdrdP.js} +53 -53
- package/dist/CollaborationNotices-DANsjl7c.js +65 -0
- package/dist/{CollaboratorBar-CXQqN3VP.js → CollaboratorBar-CbbAA0m1.js} +24 -24
- package/dist/CommentsPanel-CYW3LWis.js +16 -0
- package/dist/CommentsSidebar-CcF4ISMi.js +526 -0
- package/dist/{CountdownBlock-CU2yTWtF.js → CountdownBlock-BMezkFbJ.js} +15 -15
- package/dist/CountdownToolbar-D3Lv74kU.js +258 -0
- package/dist/IssuesPanel-BMAG9042.js +371 -0
- package/dist/LanguageMenu-FlP_Jbup.js +403 -0
- package/dist/{LoadingTrack-DM4g6j7b.js → LoadingTrack-BG8cg9xi.js} +2 -2
- package/dist/LocaleNotices-DAnVszWu.js +46 -0
- package/dist/LogicTagInsertButton-BjYs-UQX.js +1096 -0
- package/dist/{MediaEditModal-Dy08GEwE.js → MediaEditModal-LnG-cF_S.js} +451 -451
- package/dist/{MediaPanels-BgEp7iCp.js → MediaPanels-C2r5fiFo.js} +4 -4
- package/dist/{MergeTagInput-B9dtUthD.js → MergeTagInput-BsnogCeY.js} +30 -30
- package/dist/{MergeTagModeToggle-DxujhYJ4.js → MergeTagModeToggle-DiufIQ-_.js} +49 -49
- package/dist/MergeTagTextarea-BweI-Xsi.js +126 -0
- package/dist/ParagraphEditor-qgBp5yIB.js +825 -0
- package/dist/{RestoreVersionDialog-C4s_JYCx.js → RestoreVersionDialog-DdYUrFiK.js} +23 -23
- package/dist/{RichTextEditorContent-o6HmE8GR.js → RichTextEditorContent-C5MAzx3E.js} +47 -47
- package/dist/{SaveBlockDialog-CWLrly6l.js → SaveBlockDialog-eK6fjtTy.js} +86 -86
- package/dist/{cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js → SavedBlocksBrowserModal-D2QHd2Yp.js} +135 -132
- package/dist/{SavedBlocksPanels-BE1N9rNZ.js → SavedBlocksPanels-Cl61f4Mf.js} +9 -9
- package/dist/{SavedBlocksPickBar-Dwl94xhP.js → SavedBlocksPickBar-CXP2dkeB.js} +15 -15
- package/dist/TemplateSettings-BKJrdZcH.js +294 -0
- package/dist/TestEmailModal-DQotJg6g.js +212 -0
- package/dist/{TestEmailPanel-DaFjP9QK.js → TestEmailPanel-CwiTzJsh.js} +4 -4
- package/dist/TitleEditor-CzSvsPAn.js +202 -0
- package/dist/ToggleSwitch-R3wCCYE6.js +43 -0
- package/dist/Toolbar-Cd75ci5W.js +3711 -0
- package/dist/{TplModal-DLMssVlt.js → TplModal-ZoXu40T9.js} +17 -17
- package/dist/{VersionHistoryMenu-BkbYUs0Q.js → VersionHistoryMenu-BvhN-Ofk.js} +39 -39
- package/dist/{VersionHistoryPanels-DP7HaYWv.js → VersionHistoryPanels-DPWMnYbd.js} +5 -5
- package/dist/VersionPreviewBanner-CuJnasxH.js +37 -0
- package/dist/WrapperBlock-D4fPwO0t.js +44 -0
- package/dist/{blockTypeIcons-BHjlPnPf.js → blockTypeIcons-BXMxu86H.js} +7 -7
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-CD-Kt1qz.js → ca-DOuIxWRv.js} +114 -2
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js +107 -0
- package/dist/cdn/chunks/AiAltTextPopover-ByZ0FEqI.js.map +1 -0
- package/dist/cdn/chunks/{AiAltTextReview-BGLLSKLm.js → AiAltTextReview-Dtm3A2cD.js} +70 -68
- package/dist/cdn/chunks/AiAltTextReview-Dtm3A2cD.js.map +1 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js +487 -0
- package/dist/cdn/chunks/AiChatPanel-DciEt27y.js.map +1 -0
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js → AiPanels-BV5D1itk.js} +11 -11
- package/dist/cdn/chunks/{AiPanels-0wBarZSH.js.map → AiPanels-BV5D1itk.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-qf-cfEpy.js → AiRewriteMenu-D3jkh6Xb.js} +79 -79
- package/dist/cdn/chunks/AiRewriteMenu-D3jkh6Xb.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-DyEgBZtR.js.map +1 -0
- package/dist/cdn/chunks/BlockPreviewCanvas-RQFilqXC.js +142 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-DGBh6mqe.js.map → BlockPreviewCanvas-RQFilqXC.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js → CloudHeaderExtras-BtqdN777.js} +4 -4
- package/dist/cdn/chunks/{CloudHeaderExtras-BMNK_F9p.js.map → CloudHeaderExtras-BtqdN777.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js → CloudPanels-BSJ-Z5Hw.js} +45 -45
- package/dist/cdn/chunks/{CloudPanels-JMWIoVWh.js.map → CloudPanels-BSJ-Z5Hw.js.map} +1 -1
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js +67 -0
- package/dist/cdn/chunks/CollaborationNotices-BS7xrlPE.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js → CollaboratorBar-Bc9914Az.js} +17 -17
- package/dist/cdn/chunks/{CollaboratorBar-CXByAoUz.js.map → CollaboratorBar-Bc9914Az.js.map} +1 -1
- package/dist/cdn/chunks/CommentsPanel-DbR9phAk.js +18 -0
- package/dist/cdn/chunks/{CommentsPanel-DoJnKLXI.js.map → CommentsPanel-DbR9phAk.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js +496 -0
- package/dist/cdn/chunks/CommentsSidebar-BD4--XP2.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js → CountdownBlock-CjMhMhnv.js} +22 -22
- package/dist/cdn/chunks/{CountdownBlock-BqRw147R.js.map → CountdownBlock-CjMhMhnv.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js +260 -0
- package/dist/cdn/chunks/CountdownToolbar-DxwYBw-d.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-C7LfxaAY.js → IssuesPanel-CUmI4HMm.js} +133 -121
- package/dist/cdn/chunks/IssuesPanel-CUmI4HMm.js.map +1 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js +359 -0
- package/dist/cdn/chunks/LanguageMenu-3ydCozQJ.js.map +1 -0
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js → LoadingTrack-DUYcDHOV.js} +2 -2
- package/dist/cdn/chunks/{LoadingTrack-CZuLTazv.js.map → LoadingTrack-DUYcDHOV.js.map} +1 -1
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js +47 -0
- package/dist/cdn/chunks/LocaleNotices-BfoH6gST.js.map +1 -0
- package/dist/{LogicTagInsertButton-CfscnwCn.js → cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js} +422 -449
- package/dist/cdn/chunks/LogicTagInsertButton-5Z3fFzjc.js.map +1 -0
- package/dist/cdn/chunks/{MediaEditModal-Cpcod6_U.js → MediaEditModal-DDCIwr9U.js} +421 -421
- package/dist/cdn/chunks/MediaEditModal-DDCIwr9U.js.map +1 -0
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js → MediaPanels-Dz79oy8P.js} +5 -5
- package/dist/cdn/chunks/{MediaPanels-BIdcW_1f.js.map → MediaPanels-Dz79oy8P.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js → MergeTagInput-CIWy-cXf.js} +28 -28
- package/dist/cdn/chunks/{MergeTagInput-BvWg8o5E.js.map → MergeTagInput-CIWy-cXf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-BgKEVUtV.js → MergeTagModeToggle-BrP5GR-x.js} +52 -52
- package/dist/cdn/chunks/MergeTagModeToggle-BrP5GR-x.js.map +1 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js +128 -0
- package/dist/cdn/chunks/MergeTagTextarea-D3nNDlhV.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js +660 -0
- package/dist/cdn/chunks/ParagraphEditor-DDolH_Pf.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js → RestoreVersionDialog-Crj1DBqC.js} +22 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CjOdD2xj.js.map → RestoreVersionDialog-Crj1DBqC.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js → RichTextEditorContent-rCCqFlwJ.js} +44 -44
- package/dist/cdn/chunks/{RichTextEditorContent-DNjR_sNN.js.map → RichTextEditorContent-rCCqFlwJ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js → SaveBlockDialog-C34RW1aM.js} +77 -77
- package/dist/cdn/chunks/{SaveBlockDialog-CUhpawq0.js.map → SaveBlockDialog-C34RW1aM.js.map} +1 -1
- package/dist/{SavedBlocksBrowserModal-CE8n4EBS.js → cdn/chunks/SavedBlocksBrowserModal-CJnwWPT-.js} +103 -106
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-BPYcRoGa.js.map → SavedBlocksBrowserModal-CJnwWPT-.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js → SavedBlocksPanels-CA2PqXIH.js} +9 -9
- package/dist/cdn/chunks/{SavedBlocksPanels-C6--Bc81.js.map → SavedBlocksPanels-CA2PqXIH.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js → SavedBlocksPickBar-Dj3ortee.js} +16 -16
- package/dist/cdn/chunks/{SavedBlocksPickBar-DUavxpbU.js.map → SavedBlocksPickBar-Dj3ortee.js.map} +1 -1
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js +266 -0
- package/dist/cdn/chunks/TemplateSettings-sW0ZlDl1.js.map +1 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js +212 -0
- package/dist/cdn/chunks/TestEmailModal-BXeCtTjU.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js → TestEmailPanel-CpZcpB9D.js} +5 -5
- package/dist/cdn/chunks/{TestEmailPanel-CcUpEpAn.js.map → TestEmailPanel-CpZcpB9D.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js +202 -0
- package/dist/cdn/chunks/TitleEditor-Bv3SmSO6.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js +45 -0
- package/dist/cdn/chunks/ToggleSwitch-BSkySwA1.js.map +1 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js +3626 -0
- package/dist/cdn/chunks/Toolbar-BJKpJ2Mg.js.map +1 -0
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js → TplModal-DDDUDMYC.js} +20 -20
- package/dist/cdn/chunks/{TplModal-CFPDgbwQ.js.map → TplModal-DDDUDMYC.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js → VersionHistoryMenu-DSElv3Sv.js} +33 -33
- package/dist/cdn/chunks/{VersionHistoryMenu-BYlLRvRJ.js.map → VersionHistoryMenu-DSElv3Sv.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js → VersionHistoryPanels-H2nuik1l.js} +6 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-C6SOVoiT.js.map → VersionHistoryPanels-H2nuik1l.js.map} +1 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js +39 -0
- package/dist/cdn/chunks/VersionPreviewBanner-Whwxh55w.js.map +1 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js +46 -0
- package/dist/cdn/chunks/WrapperBlock-jTqsuLnS.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js → blockTypeIcons-DMgLcuI8.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-D7FW7Ypo.js.map → blockTypeIcons-DMgLcuI8.js.map} +1 -1
- package/dist/{ca-CD-Kt1qz.js → cdn/chunks/ca-DOuIxWRv.js} +116 -0
- package/dist/cdn/chunks/ca-DOuIxWRv.js.map +1 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js +3039 -0
- package/dist/cdn/chunks/composables-D0UYam2P.js.map +1 -0
- package/dist/cdn/chunks/{createCloudRuntime-Cth2JCEh.js → createCloudRuntime-BdsclY8_.js} +75 -73
- package/dist/cdn/chunks/createCloudRuntime-BdsclY8_.js.map +1 -0
- package/dist/{de-CeFJ6wbM.js → cdn/chunks/de-DaOUfYBX.js} +116 -0
- package/dist/cdn/chunks/de-DaOUfYBX.js.map +1 -0
- package/dist/cdn/chunks/{dist-8ym3y-pH.js → dist-BzXULHvI.js} +48 -48
- package/dist/cdn/chunks/{dist-8ym3y-pH.js.map → dist-BzXULHvI.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BMzNabtD.js → dist-DqGgijFI.js} +114 -114
- package/dist/cdn/chunks/{dist-BMzNabtD.js.map → dist-DqGgijFI.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-Du8AUMFT.js → draggable-DepKdldn.js} +1491 -1486
- package/dist/cdn/chunks/draggable-DepKdldn.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js → editor-modal-CPbgthOv.js} +781 -781
- package/dist/cdn/chunks/{editor-modal-CyCe560f.js.map → editor-modal-CPbgthOv.js.map} +1 -1
- package/dist/{en-D14i5nFh.js → cdn/chunks/en-C0pHHMiR.js} +116 -0
- package/dist/cdn/chunks/en-C0pHHMiR.js.map +1 -0
- package/dist/cdn/chunks/en-IYVryJRl.js +1 -0
- package/dist/{es-zDacbMhs.js → cdn/chunks/es-CxyEKr6n.js} +116 -0
- package/dist/cdn/chunks/es-CxyEKr6n.js.map +1 -0
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js → extensions-Uh9vuFfK.js} +59 -59
- package/dist/cdn/chunks/{extensions-CFF2KWy-.js.map → extensions-Uh9vuFfK.js.map} +1 -1
- package/dist/{fr-CSgYtjOd.js → cdn/chunks/fr-CYbamiI6.js} +116 -0
- package/dist/cdn/chunks/fr-CYbamiI6.js.map +1 -0
- package/dist/cdn/chunks/{icons-okSPsLOa.js → icons-CSSMtbGK.js} +150 -109
- package/dist/cdn/chunks/icons-CSSMtbGK.js.map +1 -0
- package/dist/{ja-B7H3ID8O.js → cdn/chunks/ja-DfaIAoGI.js} +116 -0
- package/dist/cdn/chunks/ja-DfaIAoGI.js.map +1 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js +11 -0
- package/dist/cdn/chunks/keys-CoQtCqNv.js.map +1 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js +12 -0
- package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +1 -0
- package/dist/{nl-176ySmc5.js → cdn/chunks/nl-DkrB-VKZ.js} +116 -0
- package/dist/cdn/chunks/nl-DkrB-VKZ.js.map +1 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js +290 -0
- package/dist/cdn/chunks/normalizeMergeTagMarkup-oGhwVscw.js.map +1 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js +16 -0
- package/dist/cdn/chunks/noticeTones-D7BPu-Le.js.map +1 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js +17 -0
- package/dist/cdn/chunks/plural-CyxrJXL1.js.map +1 -0
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js → preRenderCustomBlocks-C8k7tw98.js} +5 -5
- package/dist/cdn/chunks/{preRenderCustomBlocks-BcXIz7oJ.js.map → preRenderCustomBlocks-C8k7tw98.js.map} +1 -1
- package/dist/{pt-BR-dDlTwX18.js → cdn/chunks/pt-BR-CY5Ye7eP.js} +116 -0
- package/dist/cdn/chunks/pt-BR-CY5Ye7eP.js.map +1 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js +61 -0
- package/dist/cdn/chunks/sanitizeHtml-DYklmvgX.js.map +1 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js +2638 -0
- package/dist/cdn/chunks/socialIcons-BAiuHyJs.js.map +1 -0
- package/dist/cdn/chunks/src-CACM3o--.js +2606 -0
- package/dist/cdn/chunks/src-CACM3o--.js.map +1 -0
- package/dist/cdn/chunks/{src-C7bkofBL.js → src-Ddpm4HsS.js} +222 -256
- package/dist/cdn/chunks/src-Ddpm4HsS.js.map +1 -0
- package/dist/cdn/chunks/{src-DEd87i_U.js → src-DheBmnvF.js} +635 -478
- package/dist/cdn/chunks/src-DheBmnvF.js.map +1 -0
- package/dist/{styleConstants-B8xVRiwX.js → cdn/chunks/styleConstants-CgiNKdnc.js} +7 -5
- package/dist/cdn/chunks/styleConstants-CgiNKdnc.js.map +1 -0
- package/dist/cdn/chunks/templateSettingsFields-cjlP-jdw.js.map +1 -1
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js → tiptap-Dipw_zOQ.js} +40 -40
- package/dist/cdn/chunks/{tiptap-CbiTlECY.js.map → tiptap-Dipw_zOQ.js.map} +1 -1
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js → useCloudI18n-Cc5NZqiI.js} +3 -3
- package/dist/cdn/chunks/{useCloudI18n-DY8_-ETE.js.map → useCloudI18n-Cc5NZqiI.js.map} +1 -1
- package/dist/cdn/chunks/useEditorRoot-D_LuZ_hE.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-vjZJwKrV.js.map → useEditorRoot-D_LuZ_hE.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js → useI18n-BnJYydPv.js} +3 -3
- package/dist/cdn/chunks/{useI18n-D8pY4LTq.js.map → useI18n-BnJYydPv.js.map} +1 -1
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js +33 -0
- package/dist/cdn/chunks/useLocalizedDisplay-yXbRKNrs.js.map +1 -0
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js → useLogicTag-B7RpqVFQ.js} +5 -5
- package/dist/cdn/chunks/{useLogicTag-DBJDtpKA.js.map → useLogicTag-B7RpqVFQ.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js → useMergeTag-C-32ETjj.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-B-aG--s1.js.map → useMergeTag-C-32ETjj.js.map} +1 -1
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js +78 -0
- package/dist/cdn/chunks/usePopoverPosition-BWAXWeBv.js.map +1 -0
- package/dist/cdn/chunks/{useScrollToBlock-vjQ0fe-L.js → useScrollToBlock-Ct1AwLD-.js} +5 -5
- package/dist/cdn/chunks/useScrollToBlock-Ct1AwLD-.js.map +1 -0
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js → withCurrentFont-D33ZXoWp.js} +2 -2
- package/dist/cdn/chunks/{withCurrentFont-hZTvYBHO.js.map → withCurrentFont-D33ZXoWp.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +2190 -1496
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BZ8o0eet.js → check-ChQ0l8EQ.js} +1 -1
- package/dist/{chevron-down-DfAAfILv.js → chevron-down-Bh6cp6PI.js} +1 -1
- package/dist/{chevron-right-Bk4mGdr7.js → chevron-right-LUgdqdoW.js} +1 -1
- package/dist/{chevron-up-MhUf_azW.js → chevron-up-XsDeJxQN.js} +1 -1
- package/dist/{circle-alert-CShJwVFv.js → circle-alert-lODfDsrj.js} +1 -1
- package/dist/{clock-CTfD6OCt.js → clock-DrqFEZkT.js} +1 -1
- package/dist/composables-BOP3ERRP.js +4517 -0
- package/dist/{createCloudRuntime-DCgO4A1r.js → createCloudRuntime-DGV5a5Af.js} +54 -52
- package/dist/{createLucideIcon-CvhTA2KG.js → createLucideIcon-Dw5e5gVE.js} +11 -11
- package/dist/{cdn/chunks/de-CeFJ6wbM.js → de-DaOUfYBX.js} +114 -2
- package/dist/{dist-ByCWA2Tv.js → dist-0alKVRc_.js} +101 -101
- package/dist/{dist-Cy8I5scI.js → dist-54VCNoC0.js} +2 -2
- package/dist/dist-6DU0me3E.js +4 -0
- package/dist/{dist-p3wymUDt.js → dist-B8dY8drK.js} +2 -2
- package/dist/{dist-Dd5MU2Ev.js → dist-B9a7iVye.js} +2 -2
- package/dist/{dist-V7W1UhVr.js → dist-BWflWcpW.js} +2 -2
- package/dist/{dist-D6fZec6r.js → dist-C3hu_C3w.js} +2 -2
- package/dist/{dist-CVy-7PHQ.js → dist-CX7skkvG.js} +48 -48
- package/dist/dist-CcOn7WCo.js +4 -0
- package/dist/dist-Cdkm20M6.js +2542 -0
- package/dist/{dist-BS5uKktL.js → dist-ChOb5XHW.js} +2 -2
- package/dist/{dist-BF5zEHop.js → dist-DZ3X-uB8.js} +2 -2
- package/dist/{dist-CWSG7Kj0.js → dist-D_XrUEET.js} +5 -5
- package/dist/{dist-txQLT2sF.js → dist-TAv500j6.js} +2 -2
- package/dist/{dist-D6cMdrfG.js → dist-fqSers8_.js} +55 -55
- package/dist/{editor-modal-zaZHcmlO.js → editor-modal-B_2EAOjN.js} +953 -952
- package/dist/{cdn/chunks/en-D14i5nFh.js → en-C0pHHMiR.js} +114 -2
- package/dist/en-DTtwco2Q.js +1 -0
- package/dist/{cdn/chunks/es-zDacbMhs.js → es-CxyEKr6n.js} +114 -2
- package/dist/{extensions-fo_c-vqf.js → extensions-DOLZkLzV.js} +173 -173
- package/dist/{eye-7W4t5e0Q.js → eye-DChfk0gi.js} +1 -1
- package/dist/{cdn/chunks/fr-CSgYtjOd.js → fr-CYbamiI6.js} +114 -2
- package/dist/{image-BDiRFzSd.js → image--Hj2by1G.js} +1 -1
- package/dist/index.d.ts +182 -14
- package/dist/{info-Cxi3-Kh9.js → info-BbXgy82f.js} +1 -1
- package/dist/{cdn/chunks/ja-B7H3ID8O.js → ja-DfaIAoGI.js} +114 -2
- package/dist/keys-BCqskl51.js +9 -0
- package/dist/languageName-DEEOhDWI.js +10 -0
- package/dist/{link-ju_2Cmir.js → link-C2_8yJno.js} +1 -1
- package/dist/{list-DYZJf0aZ.js → list-DLGs2n0V.js} +1 -1
- package/dist/{loader-circle-BZRD0a4I.js → loader-circle-BbDItE_O.js} +1 -1
- package/dist/{message-circle-DuEw4Zfx.js → message-circle-NAModq0p.js} +1 -1
- package/dist/{cdn/chunks/nl-176ySmc5.js → nl-DkrB-VKZ.js} +114 -2
- package/dist/normalizeMergeTagMarkup-CUCo7B5X.js +288 -0
- package/dist/noticeTones-D7BPu-Le.js +14 -0
- package/dist/{package-CePMr2kK.js → package-BuzsfRyH.js} +1 -1
- package/dist/{pencil-D3aFCL7c.js → pencil-BTUUECH4.js} +1 -1
- package/dist/plural-CyxrJXL1.js +15 -0
- package/dist/plus-Dm7DN65T.js +13 -0
- package/dist/{preRenderCustomBlocks--_xc0XK3.js → preRenderCustomBlocks-Bs3N9no-.js} +4 -4
- package/dist/{cdn/chunks/pt-BR-dDlTwX18.js → pt-BR-CY5Ye7eP.js} +114 -2
- package/dist/{refresh-cw-xnro7_Sk.js → refresh-cw-xMURqGWi.js} +2 -12
- package/dist/rotate-ccw-DqVcEIn5.js +13 -0
- package/dist/{runtime-dom.esm-bundler-BURR-bj5.js → runtime-dom.esm-bundler-DlHp8xgy.js} +154 -154
- package/dist/sanitizeHtml-mKgNUdME.js +962 -0
- package/dist/{search-CDrstRBv.js → search-Cfr3W44N.js} +1 -1
- package/dist/{send-DROkPOaX.js → send-CH1SrvyB.js} +1 -1
- package/dist/{smartphone-Bx6u_tjn.js → smartphone-pAkvzjdI.js} +1 -1
- package/dist/socialIcons-Dqr4DJOz.js +2705 -0
- package/dist/{sparkles-CdaTtvoz.js → sparkles-CRO0cCnp.js} +1 -1
- package/dist/{square-BbCROH_f.js → square-CaQWMntx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{cdn/chunks/styleConstants-B8xVRiwX.js → styleConstants-CgiNKdnc.js} +5 -7
- package/dist/templatical-editor.js +2438 -1752
- package/dist/{text-align-start-CGacJ9Vw.js → text-align-start-BQ39AaRK.js} +1 -1
- package/dist/{trash-DxCd7zIy.js → trash-BL5gEFHN.js} +1 -1
- package/dist/{triangle-alert-7_oaitpf.js → triangle-alert-BYbKu7zZ.js} +1 -1
- package/dist/{upload-DuFEOi_0.js → upload-BhmL4Vqx.js} +1 -1
- package/dist/{useCloudI18n-DEMmUKuO.js → useCloudI18n-Dh2iydo1.js} +4 -4
- package/dist/useEditorRoot-DY3mgcHm.js +7 -0
- package/dist/{useI18n-BBrHTdu8.js → useI18n-CgtvtF4C.js} +4 -4
- package/dist/useLocalizedDisplay-DNNwDRxL.js +31 -0
- package/dist/{useLogicTag-ZPC39rfH.js → useLogicTag-BXXXQQmi.js} +4 -4
- package/dist/{useMergeTag-BQ4qqWpQ.js → useMergeTag-C9Okr87y.js} +5 -5
- package/dist/usePopoverPosition-VDQjyX_A.js +76 -0
- package/dist/{useScrollToBlock-BSyAV4pk.js → useScrollToBlock-C0Kapxdh.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-CnEeTfhs.js → vue.runtime.esm-bundler-BJXc_Mri.js} +1373 -1368
- package/dist/withCurrentFont-DJiQqZzL.js +18 -0
- package/dist/{x-BpfG7v9g.js → x-B7NZYzhx.js} +1 -1
- package/package.json +20 -20
- package/dist/AiAltTextPopover-DawbUywc.js +0 -105
- package/dist/AiChatPanel-CupPhmsN.js +0 -548
- package/dist/BlockIssueBadge-BxpDy3u-.js +0 -33
- package/dist/BlockPreviewCanvas-B-4bmJ3t.js +0 -140
- package/dist/CollaborationNotices-CTw4JThq.js +0 -75
- package/dist/CommentsPanel-DwwFuh1h.js +0 -16
- package/dist/CommentsSidebar-9ZfiC2DO.js +0 -500
- package/dist/CountdownToolbar-BqoYzf_6.js +0 -197
- package/dist/IssuesPanel-4ykrf1ax.js +0 -359
- package/dist/MergeTagTextarea-CPFEjJZd.js +0 -69
- package/dist/ParagraphEditor-CWXfurGh.js +0 -796
- package/dist/TemplateSettings-CS0f1Ues.js +0 -236
- package/dist/TestEmailModal-DBD0X5nV.js +0 -209
- package/dist/TitleEditor-DSqtle77.js +0 -198
- package/dist/ToggleSwitch-JykPyD_8.js +0 -36
- package/dist/Toolbar-BZPFfKrf.js +0 -3145
- package/dist/VersionPreviewBanner-DECaBwLq.js +0 -37
- package/dist/WrapperBlock-BsJv_Fiw.js +0 -44
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js +0 -106
- package/dist/cdn/chunks/AiAltTextPopover-SEEjkd-I.js.map +0 -1
- package/dist/cdn/chunks/AiAltTextReview-BGLLSKLm.js.map +0 -1
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js +0 -474
- package/dist/cdn/chunks/AiChatPanel-DKDAaBNi.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +0 -34
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +0 -1
- package/dist/cdn/chunks/BlockPreviewCanvas-DGBh6mqe.js +0 -142
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js +0 -77
- package/dist/cdn/chunks/CollaborationNotices-Bsf1rGW9.js.map +0 -1
- package/dist/cdn/chunks/CommentsPanel-DoJnKLXI.js +0 -18
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js +0 -470
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js +0 -199
- package/dist/cdn/chunks/CountdownToolbar-xobieKoU.js.map +0 -1
- package/dist/cdn/chunks/IssuesPanel-C7LfxaAY.js.map +0 -1
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js +0 -1051
- package/dist/cdn/chunks/LogicTagInsertButton-BIi05UQu.js.map +0 -1
- package/dist/cdn/chunks/MediaEditModal-Cpcod6_U.js.map +0 -1
- package/dist/cdn/chunks/MergeTagModeToggle-BgKEVUtV.js.map +0 -1
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js +0 -71
- package/dist/cdn/chunks/MergeTagTextarea-tBz8McZf.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js +0 -631
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +0 -1
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js +0 -208
- package/dist/cdn/chunks/TemplateSettings-CKtI-dof.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js +0 -209
- package/dist/cdn/chunks/TestEmailModal-CDQTgESD.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js +0 -198
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js +0 -38
- package/dist/cdn/chunks/ToggleSwitch-J7Vwhvha.js.map +0 -1
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js +0 -3061
- package/dist/cdn/chunks/Toolbar-CdpsvNOR.js.map +0 -1
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js +0 -39
- package/dist/cdn/chunks/VersionPreviewBanner-Dvg0ZfAW.js.map +0 -1
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js +0 -46
- package/dist/cdn/chunks/WrapperBlock-C7Md56IT.js.map +0 -1
- package/dist/cdn/chunks/ca-CD-Kt1qz.js.map +0 -1
- package/dist/cdn/chunks/createCloudRuntime-Cth2JCEh.js.map +0 -1
- package/dist/cdn/chunks/de-CeFJ6wbM.js.map +0 -1
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +0 -1
- package/dist/cdn/chunks/en-D14i5nFh.js.map +0 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +0 -1
- package/dist/cdn/chunks/es-zDacbMhs.js.map +0 -1
- package/dist/cdn/chunks/fr-CSgYtjOd.js.map +0 -1
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +0 -1
- package/dist/cdn/chunks/ja-B7H3ID8O.js.map +0 -1
- package/dist/cdn/chunks/keys-CUj6UA38.js +0 -11
- package/dist/cdn/chunks/keys-CUj6UA38.js.map +0 -1
- package/dist/cdn/chunks/nl-176ySmc5.js.map +0 -1
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js +0 -198
- package/dist/cdn/chunks/normalizeMergeTagMarkup-C_KlfSW4.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-dDlTwX18.js.map +0 -1
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +0 -72
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +0 -1
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js +0 -2008
- package/dist/cdn/chunks/socialIcons-jsTDmkbb.js.map +0 -1
- package/dist/cdn/chunks/src-C7bkofBL.js.map +0 -1
- package/dist/cdn/chunks/src-DEd87i_U.js.map +0 -1
- package/dist/cdn/chunks/src-DwWrYnUj.js +0 -1404
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-B8xVRiwX.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +0 -2582
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +0 -9
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js +0 -70
- package/dist/cdn/chunks/usePopoverPosition-DSMtmu2W.js.map +0 -1
- package/dist/cdn/chunks/useScrollToBlock-vjQ0fe-L.js.map +0 -1
- package/dist/dist-CKi_npZM.js +0 -1344
- package/dist/dist-DyFArF_G.js +0 -4
- package/dist/dist-pA3ooG6N.js +0 -4
- package/dist/en-Db76vJbY.js +0 -1
- package/dist/keys-BgRERHzu.js +0 -9
- package/dist/normalizeMergeTagMarkup-CELnOlgK.js +0 -196
- package/dist/sanitizeHtml-BzfzpYJY.js +0 -942
- package/dist/socialIcons-D7MGsg0d.js +0 -2075
- package/dist/useEditorCore-BSo2sSID.js +0 -4059
- package/dist/useEditorRoot-BMcoCLBx.js +0 -7
- package/dist/usePopoverPosition-DV1PxL66.js +0 -68
- package/dist/withCurrentFont-B22FXAF5.js +0 -18
|
@@ -1,942 +0,0 @@
|
|
|
1
|
-
import { d as e, lt as t } from "./dist-CKi_npZM.js";
|
|
2
|
-
// ../../node_modules/.pnpm/dompurify@3.4.17/node_modules/dompurify/dist/purify.es.mjs
|
|
3
|
-
function n(e, t) {
|
|
4
|
-
this.v = e, this.k = t;
|
|
5
|
-
}
|
|
6
|
-
function r(e, t) {
|
|
7
|
-
(t == null || t > e.length) && (t = e.length);
|
|
8
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9
|
-
return r;
|
|
10
|
-
}
|
|
11
|
-
function i(e) {
|
|
12
|
-
if (Array.isArray(e)) return e;
|
|
13
|
-
}
|
|
14
|
-
function a(e, t) {
|
|
15
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
16
|
-
if (n != null) {
|
|
17
|
-
var r, i, a, o, s = [], c = !0, l = !1;
|
|
18
|
-
try {
|
|
19
|
-
if (a = (n = n.call(e)).next, t === 0) {
|
|
20
|
-
if (Object(n) !== n) return;
|
|
21
|
-
c = !1;
|
|
22
|
-
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
23
|
-
} catch (e) {
|
|
24
|
-
l = !0, i = e;
|
|
25
|
-
} finally {
|
|
26
|
-
try {
|
|
27
|
-
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
28
|
-
} finally {
|
|
29
|
-
if (l) throw i;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return s;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function o() {
|
|
36
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
37
|
-
}
|
|
38
|
-
function s(e, t) {
|
|
39
|
-
return i(e) || a(e, t) || c(e, t) || o();
|
|
40
|
-
}
|
|
41
|
-
function c(e, t) {
|
|
42
|
-
if (e) {
|
|
43
|
-
if (typeof e == "string") return r(e, t);
|
|
44
|
-
var n = {}.toString.call(e).slice(8, -1);
|
|
45
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(e, t) : void 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function l(e) {
|
|
49
|
-
var t, r;
|
|
50
|
-
function i(t, r) {
|
|
51
|
-
try {
|
|
52
|
-
var o = e[t](r), s = o.value, c = s instanceof n;
|
|
53
|
-
Promise.resolve(c ? s.v : s).then(function(n) {
|
|
54
|
-
if (c) {
|
|
55
|
-
var r = t === "return" && s.k ? t : "next";
|
|
56
|
-
if (!s.k || n.done) return i(r, n);
|
|
57
|
-
n = e[r](n).value;
|
|
58
|
-
}
|
|
59
|
-
a(!!o.done, n);
|
|
60
|
-
}, function(e) {
|
|
61
|
-
i("throw", e);
|
|
62
|
-
});
|
|
63
|
-
} catch (e) {
|
|
64
|
-
a(2, e);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function a(e, n) {
|
|
68
|
-
e === 2 ? t.reject(n) : t.resolve({
|
|
69
|
-
value: n,
|
|
70
|
-
done: e
|
|
71
|
-
}), (t = t.next) ? i(t.key, t.arg) : r = null;
|
|
72
|
-
}
|
|
73
|
-
this._invoke = function(e, n) {
|
|
74
|
-
return new Promise(function(a, o) {
|
|
75
|
-
var s = {
|
|
76
|
-
key: e,
|
|
77
|
-
arg: n,
|
|
78
|
-
resolve: a,
|
|
79
|
-
reject: o,
|
|
80
|
-
next: null
|
|
81
|
-
};
|
|
82
|
-
r ? r = r.next = s : (t = r = s, i(e, n));
|
|
83
|
-
});
|
|
84
|
-
}, typeof e.return != "function" && (this.return = void 0);
|
|
85
|
-
}
|
|
86
|
-
l.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
87
|
-
return this;
|
|
88
|
-
}, l.prototype.next = function(e) {
|
|
89
|
-
return this._invoke("next", e);
|
|
90
|
-
}, l.prototype.throw = function(e) {
|
|
91
|
-
return this._invoke("throw", e);
|
|
92
|
-
}, l.prototype.return = function(e) {
|
|
93
|
-
return this._invoke("return", e);
|
|
94
|
-
};
|
|
95
|
-
var u = Object.entries, d = Object.setPrototypeOf, f = Object.isFrozen, ee = Object.getPrototypeOf, te = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, ne = Object.create, re = typeof Reflect < "u" && Reflect, ie = re.apply, h = re.construct;
|
|
96
|
-
p ||= function(e) {
|
|
97
|
-
return e;
|
|
98
|
-
}, m ||= function(e) {
|
|
99
|
-
return e;
|
|
100
|
-
}, ie ||= function(e, t) {
|
|
101
|
-
var n = [...arguments].slice(2);
|
|
102
|
-
return e.apply(t, n);
|
|
103
|
-
}, h ||= function(e) {
|
|
104
|
-
return new e(...[...arguments].slice(1));
|
|
105
|
-
};
|
|
106
|
-
var g = w(Array.prototype.forEach);
|
|
107
|
-
Array.prototype.indexOf;
|
|
108
|
-
var ae = w(Array.prototype.lastIndexOf), oe = w(Array.prototype.pop), se = w(Array.prototype.push), ce = w(Array.prototype.slice), le = w(Array.prototype.splice), ue = Array.isArray, de = T(Set), fe = w(Set.prototype.add), pe = w(Set.prototype.has), _ = w(String.prototype.toLowerCase), me = w(String.prototype.toString), he = w(String.prototype.match), ge = w(String.prototype.replace), _e = w(String.prototype.indexOf), ve = w(String.prototype.trim), v = w(Number.prototype.toString), ye = w(Boolean.prototype.toString), be = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), y = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), b = w(Object.prototype.hasOwnProperty), x = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = T(TypeError);
|
|
109
|
-
function w(e) {
|
|
110
|
-
return function(t) {
|
|
111
|
-
t instanceof RegExp && (t.lastIndex = 0);
|
|
112
|
-
var n = [...arguments].slice(1);
|
|
113
|
-
return ie(e, t, n);
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function T(e) {
|
|
117
|
-
return function() {
|
|
118
|
-
return h(e, [...arguments]);
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function E(e, t) {
|
|
122
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _;
|
|
123
|
-
if (d && d(e, null), !ue(t)) return e;
|
|
124
|
-
let r = t.length;
|
|
125
|
-
for (; r--;) {
|
|
126
|
-
let i = t[r];
|
|
127
|
-
if (typeof i == "string") {
|
|
128
|
-
let e = n(i);
|
|
129
|
-
e !== i && (f(t) || (t[r] = e), i = e);
|
|
130
|
-
}
|
|
131
|
-
e[i] = !0;
|
|
132
|
-
}
|
|
133
|
-
return e;
|
|
134
|
-
}
|
|
135
|
-
function D(e) {
|
|
136
|
-
for (let t = 0; t < e.length; t++) b(e, t) || (e[t] = null);
|
|
137
|
-
return e;
|
|
138
|
-
}
|
|
139
|
-
function O(e) {
|
|
140
|
-
let t = ne(null);
|
|
141
|
-
for (let r of u(e)) {
|
|
142
|
-
var n = s(r, 2);
|
|
143
|
-
let i = n[0], a = n[1];
|
|
144
|
-
b(e, i) && (t[i] = ue(a) ? D(a) : a && typeof a == "object" && a.constructor === Object ? O(a) : a);
|
|
145
|
-
}
|
|
146
|
-
return t;
|
|
147
|
-
}
|
|
148
|
-
function xe(e) {
|
|
149
|
-
switch (typeof e) {
|
|
150
|
-
case "string": return e;
|
|
151
|
-
case "number": return v(e);
|
|
152
|
-
case "boolean": return ye(e);
|
|
153
|
-
case "bigint": return be ? be(e) : "0";
|
|
154
|
-
case "symbol": return y ? y(e) : "Symbol()";
|
|
155
|
-
case "undefined": return x(e);
|
|
156
|
-
case "function":
|
|
157
|
-
case "object": {
|
|
158
|
-
if (e === null) return x(e);
|
|
159
|
-
let t = e, n = k(t, "toString");
|
|
160
|
-
if (typeof n == "function") {
|
|
161
|
-
let e = n(t);
|
|
162
|
-
return typeof e == "string" ? e : x(e);
|
|
163
|
-
}
|
|
164
|
-
return x(e);
|
|
165
|
-
}
|
|
166
|
-
default: return x(e);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function k(e, t) {
|
|
170
|
-
for (; e !== null;) {
|
|
171
|
-
let n = te(e, t);
|
|
172
|
-
if (n) {
|
|
173
|
-
if (n.get) return w(n.get);
|
|
174
|
-
if (typeof n.value == "function") return w(n.value);
|
|
175
|
-
}
|
|
176
|
-
e = ee(e);
|
|
177
|
-
}
|
|
178
|
-
function n() {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
return n;
|
|
182
|
-
}
|
|
183
|
-
function Se(e, t) {
|
|
184
|
-
for (; e !== null;) {
|
|
185
|
-
let n = te(e, t);
|
|
186
|
-
if (n) return n.get ? w(n.get) : null;
|
|
187
|
-
e = ee(e);
|
|
188
|
-
}
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
function Ce(e) {
|
|
192
|
-
try {
|
|
193
|
-
return S(e, ""), !0;
|
|
194
|
-
} catch {
|
|
195
|
-
return !1;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
var we = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Te = p(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Ee = p([
|
|
199
|
-
"feBlend",
|
|
200
|
-
"feColorMatrix",
|
|
201
|
-
"feComponentTransfer",
|
|
202
|
-
"feComposite",
|
|
203
|
-
"feConvolveMatrix",
|
|
204
|
-
"feDiffuseLighting",
|
|
205
|
-
"feDisplacementMap",
|
|
206
|
-
"feDistantLight",
|
|
207
|
-
"feDropShadow",
|
|
208
|
-
"feFlood",
|
|
209
|
-
"feFuncA",
|
|
210
|
-
"feFuncB",
|
|
211
|
-
"feFuncG",
|
|
212
|
-
"feFuncR",
|
|
213
|
-
"feGaussianBlur",
|
|
214
|
-
"feImage",
|
|
215
|
-
"feMerge",
|
|
216
|
-
"feMergeNode",
|
|
217
|
-
"feMorphology",
|
|
218
|
-
"feOffset",
|
|
219
|
-
"fePointLight",
|
|
220
|
-
"feSpecularLighting",
|
|
221
|
-
"feSpotLight",
|
|
222
|
-
"feTile",
|
|
223
|
-
"feTurbulence"
|
|
224
|
-
]), De = p([
|
|
225
|
-
"animate",
|
|
226
|
-
"color-profile",
|
|
227
|
-
"cursor",
|
|
228
|
-
"discard",
|
|
229
|
-
"font-face",
|
|
230
|
-
"font-face-format",
|
|
231
|
-
"font-face-name",
|
|
232
|
-
"font-face-src",
|
|
233
|
-
"font-face-uri",
|
|
234
|
-
"foreignobject",
|
|
235
|
-
"hatch",
|
|
236
|
-
"hatchpath",
|
|
237
|
-
"mesh",
|
|
238
|
-
"meshgradient",
|
|
239
|
-
"meshpatch",
|
|
240
|
-
"meshrow",
|
|
241
|
-
"missing-glyph",
|
|
242
|
-
"script",
|
|
243
|
-
"set",
|
|
244
|
-
"solidcolor",
|
|
245
|
-
"unknown",
|
|
246
|
-
"use"
|
|
247
|
-
]), Oe = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), ke = p([
|
|
248
|
-
"maction",
|
|
249
|
-
"maligngroup",
|
|
250
|
-
"malignmark",
|
|
251
|
-
"mlongdiv",
|
|
252
|
-
"mscarries",
|
|
253
|
-
"mscarry",
|
|
254
|
-
"msgroup",
|
|
255
|
-
"mstack",
|
|
256
|
-
"msline",
|
|
257
|
-
"msrow",
|
|
258
|
-
"semantics",
|
|
259
|
-
"annotation",
|
|
260
|
-
"annotation-xml",
|
|
261
|
-
"mprescripts",
|
|
262
|
-
"none"
|
|
263
|
-
]), Ae = p(["#text"]), je = p(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Me = p(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ne = p(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Pe = p([
|
|
264
|
-
"xlink:href",
|
|
265
|
-
"xml:id",
|
|
266
|
-
"xlink:title",
|
|
267
|
-
"xml:space",
|
|
268
|
-
"xmlns:xlink"
|
|
269
|
-
]), Fe = m(/{{[\w\W]*|^[\w\W]*}}/g), Ie = m(/<%[\w\W]*|^[\w\W]*%>/g), Le = m(/\${[\w\W]*/g), Re = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), ze = m(/^aria-[\-\w]+$/), Be = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ve = m(/^(?:\w+script|data):/i), He = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ue = m(/^html$/i), We = m(/^[a-z][.\w]*(-[.\w]+)+$/i), Ge = m(/<[/\w!]/g), Ke = m(/<[/\w]/g), qe = m(/<\/no(script|embed|frames)/i), Je = m(/\/>/i), A = {
|
|
270
|
-
element: 1,
|
|
271
|
-
attribute: 2,
|
|
272
|
-
text: 3,
|
|
273
|
-
cdataSection: 4,
|
|
274
|
-
entityReference: 5,
|
|
275
|
-
entityNode: 6,
|
|
276
|
-
processingInstruction: 7,
|
|
277
|
-
comment: 8,
|
|
278
|
-
document: 9,
|
|
279
|
-
documentType: 10,
|
|
280
|
-
documentFragment: 11,
|
|
281
|
-
notation: 12
|
|
282
|
-
}, Ye = p(E({}, [
|
|
283
|
-
"style",
|
|
284
|
-
"script",
|
|
285
|
-
"xmp",
|
|
286
|
-
"iframe",
|
|
287
|
-
"noembed",
|
|
288
|
-
"noframes",
|
|
289
|
-
"plaintext",
|
|
290
|
-
"noscript"
|
|
291
|
-
])), Xe = function() {
|
|
292
|
-
return typeof window > "u" ? null : window;
|
|
293
|
-
}, Ze = function(e, t) {
|
|
294
|
-
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
295
|
-
let n = null, r = "data-tt-policy-suffix";
|
|
296
|
-
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
297
|
-
let i = "dompurify" + (n ? "#" + n : "");
|
|
298
|
-
try {
|
|
299
|
-
return e.createPolicy(i, {
|
|
300
|
-
createHTML(e) {
|
|
301
|
-
return e;
|
|
302
|
-
},
|
|
303
|
-
createScriptURL(e) {
|
|
304
|
-
return e;
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
} catch {
|
|
308
|
-
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
309
|
-
}
|
|
310
|
-
}, Qe = function() {
|
|
311
|
-
return {
|
|
312
|
-
afterSanitizeAttributes: [],
|
|
313
|
-
afterSanitizeElements: [],
|
|
314
|
-
afterSanitizeShadowDOM: [],
|
|
315
|
-
beforeSanitizeAttributes: [],
|
|
316
|
-
beforeSanitizeElements: [],
|
|
317
|
-
beforeSanitizeShadowDOM: [],
|
|
318
|
-
uponSanitizeAttribute: [],
|
|
319
|
-
uponSanitizeElement: [],
|
|
320
|
-
uponSanitizeShadowNode: []
|
|
321
|
-
};
|
|
322
|
-
}, j = function(e, t, n, r) {
|
|
323
|
-
return b(e, t) && ue(e[t]) ? E(r.base ? O(r.base) : {}, e[t], r.transform) : n;
|
|
324
|
-
}, $e = function(e, t, n) {
|
|
325
|
-
let r = b(e, t) ? e[t] : void 0;
|
|
326
|
-
return r && typeof r == "object" ? O(r) : n();
|
|
327
|
-
};
|
|
328
|
-
function et() {
|
|
329
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => et(e);
|
|
330
|
-
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== A.document || !e.Element) return t.isSupported = !1, t;
|
|
331
|
-
let n = e.document, r = n, i = r.currentScript;
|
|
332
|
-
e.DocumentFragment;
|
|
333
|
-
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
334
|
-
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
335
|
-
let l = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = k(f, "cloneNode"), te = k(f, "remove"), re = k(f, "removeAttributeNode"), ie = k(f, "nextSibling"), h = k(f, "childNodes"), v = k(f, "parentNode"), ye = k(f, "shadowRoot"), be = k(f, "attributes"), y = o && o.prototype ? k(o.prototype, "nodeType") : null, x = o && o.prototype ? k(o.prototype, "nodeName") : null, w = o && o.prototype ? k(o.prototype, "ownerDocument") : null, T = function(e) {
|
|
336
|
-
return y ? y(e) : e.nodeType;
|
|
337
|
-
}, D = function(e) {
|
|
338
|
-
return x ? x(e) : e.nodeName;
|
|
339
|
-
}, M = Se(f, "namespaceURI"), tt = function(e) {
|
|
340
|
-
return M ? M(e) : e.namespaceURI;
|
|
341
|
-
};
|
|
342
|
-
if (typeof a == "function") {
|
|
343
|
-
let e = n.createElement("template");
|
|
344
|
-
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
345
|
-
}
|
|
346
|
-
let N, P = "", nt, rt = !1, F = 0, it = function() {
|
|
347
|
-
if (F > 0) throw C("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
348
|
-
}, I = function(e) {
|
|
349
|
-
it(), F++;
|
|
350
|
-
try {
|
|
351
|
-
return N.createHTML(e);
|
|
352
|
-
} finally {
|
|
353
|
-
F--;
|
|
354
|
-
}
|
|
355
|
-
}, at = function(e) {
|
|
356
|
-
it(), F++;
|
|
357
|
-
try {
|
|
358
|
-
return N.createScriptURL(e);
|
|
359
|
-
} finally {
|
|
360
|
-
F--;
|
|
361
|
-
}
|
|
362
|
-
}, ot = function() {
|
|
363
|
-
return rt ||= (nt = Ze(d, i), !0), nt;
|
|
364
|
-
}, st = n, ct = st.implementation, lt = st.createNodeIterator, ut = st.createDocumentFragment, dt = st.getElementsByTagName, ft = r.importNode, L = Qe();
|
|
365
|
-
t.isSupported = typeof u == "function" && typeof v == "function" && ct && ct.createHTMLDocument !== void 0;
|
|
366
|
-
let pt = Fe, mt = Ie, ht = Le, gt = Re, _t = ze, vt = Ve, yt = He, bt = We, xt = Be, R = null, St = E({}, [
|
|
367
|
-
...we,
|
|
368
|
-
...Te,
|
|
369
|
-
...Ee,
|
|
370
|
-
...Oe,
|
|
371
|
-
...Ae
|
|
372
|
-
]), z = null, Ct = E({}, [
|
|
373
|
-
...je,
|
|
374
|
-
...Me,
|
|
375
|
-
...Ne,
|
|
376
|
-
...Pe
|
|
377
|
-
]), B = Object.seal(ne(null, {
|
|
378
|
-
tagNameCheck: {
|
|
379
|
-
writable: !0,
|
|
380
|
-
configurable: !1,
|
|
381
|
-
enumerable: !0,
|
|
382
|
-
value: null
|
|
383
|
-
},
|
|
384
|
-
attributeNameCheck: {
|
|
385
|
-
writable: !0,
|
|
386
|
-
configurable: !1,
|
|
387
|
-
enumerable: !0,
|
|
388
|
-
value: null
|
|
389
|
-
},
|
|
390
|
-
allowCustomizedBuiltInElements: {
|
|
391
|
-
writable: !0,
|
|
392
|
-
configurable: !1,
|
|
393
|
-
enumerable: !0,
|
|
394
|
-
value: !1
|
|
395
|
-
}
|
|
396
|
-
})), wt = null, Tt = null, V = Object.seal(ne(null, {
|
|
397
|
-
tagCheck: {
|
|
398
|
-
writable: !0,
|
|
399
|
-
configurable: !1,
|
|
400
|
-
enumerable: !0,
|
|
401
|
-
value: null
|
|
402
|
-
},
|
|
403
|
-
attributeCheck: {
|
|
404
|
-
writable: !0,
|
|
405
|
-
configurable: !1,
|
|
406
|
-
enumerable: !0,
|
|
407
|
-
value: null
|
|
408
|
-
}
|
|
409
|
-
})), Et = !0, Dt = !0, Ot = !1, kt = !0, H = !1, U = !0, W = !1, At = !1, jt = null, Mt = null, Nt = !1, G = !1, Pt = !1, Ft = !1, It = !0, Lt = !1, Rt = "user-content-", zt = !0, Bt = !1, K = null, Vt = {}, q = null, Ht = E({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ut = null, Wt = E({}, [
|
|
410
|
-
"audio",
|
|
411
|
-
"video",
|
|
412
|
-
"img",
|
|
413
|
-
"source",
|
|
414
|
-
"image",
|
|
415
|
-
"track"
|
|
416
|
-
]), Gt = null, Kt = E({}, [
|
|
417
|
-
"alt",
|
|
418
|
-
"class",
|
|
419
|
-
"for",
|
|
420
|
-
"id",
|
|
421
|
-
"label",
|
|
422
|
-
"name",
|
|
423
|
-
"pattern",
|
|
424
|
-
"placeholder",
|
|
425
|
-
"role",
|
|
426
|
-
"summary",
|
|
427
|
-
"title",
|
|
428
|
-
"value",
|
|
429
|
-
"style",
|
|
430
|
-
"xmlns"
|
|
431
|
-
]), qt = "http://www.w3.org/1998/Math/MathML", Jt = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Yt = J, Xt = !1, Zt = null, Qt = E({}, [
|
|
432
|
-
qt,
|
|
433
|
-
Jt,
|
|
434
|
-
J
|
|
435
|
-
], me), $t = p([
|
|
436
|
-
"mi",
|
|
437
|
-
"mo",
|
|
438
|
-
"mn",
|
|
439
|
-
"ms",
|
|
440
|
-
"mtext"
|
|
441
|
-
]), en = E({}, $t), tn = p(["annotation-xml"]), nn = E({}, tn), rn = E({}, [
|
|
442
|
-
"title",
|
|
443
|
-
"style",
|
|
444
|
-
"font",
|
|
445
|
-
"a",
|
|
446
|
-
"script"
|
|
447
|
-
]), an = null, on = ["application/xhtml+xml", "text/html"], Y = null, sn = null, cn = n.createElement("form"), ln = function(e) {
|
|
448
|
-
return e instanceof RegExp || e instanceof Function;
|
|
449
|
-
}, un = function() {
|
|
450
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
451
|
-
if (sn && sn === e) return;
|
|
452
|
-
e && typeof e == "object" || (e = {}), e = O(e), an = on.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = an === "application/xhtml+xml" ? me : _, R = j(e, "ALLOWED_TAGS", St, { transform: Y }), z = j(e, "ALLOWED_ATTR", Ct, { transform: Y }), Zt = j(e, "ALLOWED_NAMESPACES", Qt, { transform: me }), Gt = j(e, "ADD_URI_SAFE_ATTR", Kt, {
|
|
453
|
-
transform: Y,
|
|
454
|
-
base: Kt
|
|
455
|
-
}), Ut = j(e, "ADD_DATA_URI_TAGS", Wt, {
|
|
456
|
-
transform: Y,
|
|
457
|
-
base: Wt
|
|
458
|
-
}), q = j(e, "FORBID_CONTENTS", Ht, { transform: Y }), wt = j(e, "FORBID_TAGS", O({}), { transform: Y }), Tt = j(e, "FORBID_ATTR", O({}), { transform: Y }), Vt = b(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? O(e.USE_PROFILES) : e.USE_PROFILES : !1, Et = e.ALLOW_ARIA_ATTR !== !1, Dt = e.ALLOW_DATA_ATTR !== !1, Ot = e.ALLOW_UNKNOWN_PROTOCOLS || !1, kt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, U = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, G = e.RETURN_DOM || !1, Pt = e.RETURN_DOM_FRAGMENT || !1, Ft = e.RETURN_TRUSTED_TYPE || !1, Nt = e.FORCE_BODY || !1, It = e.SANITIZE_DOM !== !1, Lt = e.SANITIZE_NAMED_PROPS || !1, zt = e.KEEP_CONTENT !== !1, Bt = e.IN_PLACE || !1, xt = Ce(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Be, Yt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, en = $e(e, "MATHML_TEXT_INTEGRATION_POINTS", () => E({}, $t)), nn = $e(e, "HTML_INTEGRATION_POINTS", () => E({}, tn));
|
|
459
|
-
let t = $e(e, "CUSTOM_ELEMENT_HANDLING", () => ne(null));
|
|
460
|
-
if (B = ne(null), b(t, "tagNameCheck") && ln(t.tagNameCheck) && (B.tagNameCheck = t.tagNameCheck), b(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (B.attributeNameCheck = t.attributeNameCheck), b(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(B), H && (Dt = !1), Pt && (G = !0), Vt && (R = E({}, Ae), z = ne(null), Vt.html === !0 && (E(R, we), E(z, je)), Vt.svg === !0 && (E(R, Te), E(z, Me), E(z, Pe)), Vt.svgFilters === !0 && (E(R, Ee), E(z, Me), E(z, Pe)), Vt.mathMl === !0 && (E(R, Oe), E(z, Ne), E(z, Pe))), V.tagCheck = null, V.attributeCheck = null, b(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : ue(e.ADD_TAGS) && (R === St && (R = O(R)), E(R, e.ADD_TAGS, Y))), b(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : ue(e.ADD_ATTR) && (z === Ct && (z = O(z)), E(z, e.ADD_ATTR, Y))), b(e, "ADD_FORBID_CONTENTS") && ue(e.ADD_FORBID_CONTENTS) && (q === Ht && (q = O(q)), E(q, e.ADD_FORBID_CONTENTS, Y)), zt && (R["#text"] = !0), W && E(R, [
|
|
461
|
-
"html",
|
|
462
|
-
"head",
|
|
463
|
-
"body"
|
|
464
|
-
]), R.table && (E(R, ["tbody"]), delete wt.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
465
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
466
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
467
|
-
let t = N;
|
|
468
|
-
N = e.TRUSTED_TYPES_POLICY;
|
|
469
|
-
try {
|
|
470
|
-
P = I("");
|
|
471
|
-
} catch (e) {
|
|
472
|
-
throw N = t, e;
|
|
473
|
-
}
|
|
474
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (N = void 0, P = "") : (N === void 0 && (N = ot()), N && typeof P == "string" && (P = I("")));
|
|
475
|
-
p && p(e), sn = e;
|
|
476
|
-
}, dn = E({}, [
|
|
477
|
-
...Te,
|
|
478
|
-
...Ee,
|
|
479
|
-
...De
|
|
480
|
-
]), fn = E({}, [...Oe, ...ke]), pn = function(e, t, n) {
|
|
481
|
-
return t.namespaceURI === J ? e === "svg" : t.namespaceURI === qt ? e === "svg" && (n === "annotation-xml" || en[n]) : !!dn[e];
|
|
482
|
-
}, mn = function(e, t, n) {
|
|
483
|
-
return t.namespaceURI === J ? e === "math" : t.namespaceURI === Jt ? e === "math" && nn[n] : !!fn[e];
|
|
484
|
-
}, hn = function(e, t, n) {
|
|
485
|
-
return t.namespaceURI === Jt && !nn[n] || t.namespaceURI === qt && !en[n] ? !1 : !fn[e] && (rn[e] || !dn[e]);
|
|
486
|
-
}, gn = function(e) {
|
|
487
|
-
let t = tt(e), n = _(D(e)), r = v(e), i, a;
|
|
488
|
-
return r && T(r) === A.element ? (i = { namespaceURI: tt(r) }, a = _(D(r))) : (i = { namespaceURI: Yt }, a = "template"), Zt[t] ? t === Jt ? pn(n, i, a) : t === qt ? mn(n, i, a) : t === J ? hn(n, i, a) : !!(an === "application/xhtml+xml" && Zt[t]) : !1;
|
|
489
|
-
}, X = function(e) {
|
|
490
|
-
se(t.removed, { element: e });
|
|
491
|
-
try {
|
|
492
|
-
v(e).removeChild(e);
|
|
493
|
-
} catch {
|
|
494
|
-
if (te(e), !v(e)) throw C("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
495
|
-
}
|
|
496
|
-
}, _n = function(e, t, n) {
|
|
497
|
-
try {
|
|
498
|
-
re(e, t);
|
|
499
|
-
} catch {
|
|
500
|
-
try {
|
|
501
|
-
e.removeAttribute(n);
|
|
502
|
-
} catch {}
|
|
503
|
-
}
|
|
504
|
-
}, vn = function(e) {
|
|
505
|
-
xn(e);
|
|
506
|
-
let t = h(e);
|
|
507
|
-
t && g(ce(t), (e) => {
|
|
508
|
-
try {
|
|
509
|
-
te(e);
|
|
510
|
-
} catch {}
|
|
511
|
-
});
|
|
512
|
-
let n = T(e) === A.element ? be(e) : null;
|
|
513
|
-
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
514
|
-
let r = n[t], i = r && r.name;
|
|
515
|
-
typeof i == "string" && _n(e, r, i);
|
|
516
|
-
}
|
|
517
|
-
}, Z = function(e, n, r) {
|
|
518
|
-
if (!r) try {
|
|
519
|
-
r = n.getAttributeNode(e);
|
|
520
|
-
} catch {
|
|
521
|
-
r = null;
|
|
522
|
-
}
|
|
523
|
-
se(t.removed, {
|
|
524
|
-
attribute: r || null,
|
|
525
|
-
from: n
|
|
526
|
-
});
|
|
527
|
-
try {
|
|
528
|
-
r ? re(n, r) : n.removeAttribute(e);
|
|
529
|
-
} catch {
|
|
530
|
-
try {
|
|
531
|
-
n.removeAttribute(e);
|
|
532
|
-
} catch {}
|
|
533
|
-
}
|
|
534
|
-
if (e === "is") {
|
|
535
|
-
if (G || Pt) try {
|
|
536
|
-
X(n);
|
|
537
|
-
} catch {}
|
|
538
|
-
else try {
|
|
539
|
-
n.setAttribute(e, "");
|
|
540
|
-
} catch {}
|
|
541
|
-
}
|
|
542
|
-
}, yn = function(e) {
|
|
543
|
-
let t = be(e);
|
|
544
|
-
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
545
|
-
let r = t[n], i = r && r.name;
|
|
546
|
-
typeof i != "string" || z[Y(i)] || _n(e, r, i);
|
|
547
|
-
}
|
|
548
|
-
}, bn = function(e, t) {
|
|
549
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
550
|
-
for (; r.length > 0;) {
|
|
551
|
-
let e = r.pop();
|
|
552
|
-
if (t(e) === !1) continue;
|
|
553
|
-
if (n && T(e) === A.element) {
|
|
554
|
-
let t = ye(e);
|
|
555
|
-
Q(t) && r.push(t);
|
|
556
|
-
}
|
|
557
|
-
let i = h(e);
|
|
558
|
-
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
559
|
-
}
|
|
560
|
-
}, xn = function(e) {
|
|
561
|
-
bn(e, (e) => {
|
|
562
|
-
T(e) === A.element && yn(e);
|
|
563
|
-
});
|
|
564
|
-
}, Sn = function(e) {
|
|
565
|
-
let t = [];
|
|
566
|
-
return bn(e, (e) => {
|
|
567
|
-
t.push(e);
|
|
568
|
-
}, !0), t;
|
|
569
|
-
}, Cn = function(e, t) {
|
|
570
|
-
let n = de();
|
|
571
|
-
g(Sn(e), (e) => {
|
|
572
|
-
T(e) === A.element && fe(n, e);
|
|
573
|
-
}), g(t, (e) => {
|
|
574
|
-
T(e) === A.element && !pe(n, e) && yn(e);
|
|
575
|
-
});
|
|
576
|
-
}, wn = function(e, n) {
|
|
577
|
-
let r = !1;
|
|
578
|
-
return g(t.removed, (t) => {
|
|
579
|
-
t.element && (r ||= t.element === e, xn(t.element));
|
|
580
|
-
}), Cn(e, n), r;
|
|
581
|
-
}, Tn = function(e, t) {
|
|
582
|
-
let n = K, r = null, i = () => (r || (r = de(), g(t, (e) => {
|
|
583
|
-
fe(r, e);
|
|
584
|
-
})), r);
|
|
585
|
-
for (let t = 0;; t++) {
|
|
586
|
-
let r = Sn(e), a = [e], o = !1;
|
|
587
|
-
if (g(r, (e) => {
|
|
588
|
-
T(e) === A.documentFragment ? se(a, e) : !o && !pe(n, e) && (o = pe(i(), e));
|
|
589
|
-
}), !o) return;
|
|
590
|
-
if (t >= 8) throw C("the tree kept changing during in-place sanitization; refusing to return it");
|
|
591
|
-
g(a, (t, n) => {
|
|
592
|
-
En(t, n > 0, e, i());
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
}, En = function(e, t, n, r) {
|
|
596
|
-
let i = jn(e), a;
|
|
597
|
-
for (; a = i.nextNode();) pe(r, a) && !pe(K, a) && (t && $(L.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
|
|
598
|
-
}, Dn = function(e) {
|
|
599
|
-
K && fe(K, e);
|
|
600
|
-
}, On = function(e, t) {
|
|
601
|
-
return U ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
602
|
-
}, kn = function(e) {
|
|
603
|
-
U && bn(e, (e) => {
|
|
604
|
-
let t = T(e);
|
|
605
|
-
if (t === A.processingInstruction || t === A.comment && S(Ke, e.data)) {
|
|
606
|
-
try {
|
|
607
|
-
te(e);
|
|
608
|
-
} catch {}
|
|
609
|
-
return !1;
|
|
610
|
-
}
|
|
611
|
-
if (t === A.element) {
|
|
612
|
-
let t = e, n = Y(D(e));
|
|
613
|
-
try {
|
|
614
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
|
|
615
|
-
} catch {}
|
|
616
|
-
}
|
|
617
|
-
return !0;
|
|
618
|
-
});
|
|
619
|
-
}, An = function(e) {
|
|
620
|
-
let t = null, r = null;
|
|
621
|
-
if (Nt) e = "<remove></remove>" + e;
|
|
622
|
-
else {
|
|
623
|
-
let t = he(e, /^[\r\n\t ]+/);
|
|
624
|
-
r = t && t[0];
|
|
625
|
-
}
|
|
626
|
-
an === "application/xhtml+xml" && Yt === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
627
|
-
let i = N ? I(e) : e;
|
|
628
|
-
if (Yt === J) try {
|
|
629
|
-
t = new l().parseFromString(i, an);
|
|
630
|
-
} catch {}
|
|
631
|
-
if (!t || !t.documentElement) {
|
|
632
|
-
t = ct.createDocument(Yt, "template", null);
|
|
633
|
-
try {
|
|
634
|
-
t.documentElement.innerHTML = Xt ? P : i;
|
|
635
|
-
} catch {}
|
|
636
|
-
}
|
|
637
|
-
let a = t.body || t.documentElement;
|
|
638
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Yt === J ? dt.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
|
|
639
|
-
}, jn = function(e) {
|
|
640
|
-
let t = w ? w(e) : e.ownerDocument;
|
|
641
|
-
return lt.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
642
|
-
}, Mn = function(e) {
|
|
643
|
-
return e = ge(e, pt, " "), e = ge(e, mt, " "), e = ge(e, ht, " "), e;
|
|
644
|
-
}, Nn = function(e) {
|
|
645
|
-
Pn(e);
|
|
646
|
-
let t = e.querySelectorAll?.call(e, "template");
|
|
647
|
-
t && g(t, (e) => {
|
|
648
|
-
Q(e.content) && Nn(e.content);
|
|
649
|
-
});
|
|
650
|
-
}, Pn = function(e) {
|
|
651
|
-
e.normalize();
|
|
652
|
-
let t = w ? w(e) : e.ownerDocument, n = lt.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
653
|
-
for (; r;) r.data = Mn(r.data), r = n.nextNode();
|
|
654
|
-
}, Fn = function(e) {
|
|
655
|
-
let t = x ? x(e) : null;
|
|
656
|
-
return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== be(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== y(e) || e.childNodes !== h(e);
|
|
657
|
-
}, Q = function(e) {
|
|
658
|
-
if (!y || typeof e != "object" || !e) return !1;
|
|
659
|
-
try {
|
|
660
|
-
return y(e) === A.documentFragment;
|
|
661
|
-
} catch {
|
|
662
|
-
return !1;
|
|
663
|
-
}
|
|
664
|
-
}, In = function(e) {
|
|
665
|
-
if (!y || typeof e != "object" || !e) return !1;
|
|
666
|
-
try {
|
|
667
|
-
return typeof y(e) == "number";
|
|
668
|
-
} catch {
|
|
669
|
-
return !1;
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
function $(e, n, r) {
|
|
673
|
-
e.length !== 0 && g(e, (e) => {
|
|
674
|
-
e.call(t, n, r, sn);
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
let Ln = function(e, t) {
|
|
678
|
-
return !!(U && e.hasChildNodes() && !In(e.firstElementChild) && S(Ge, e.textContent) && S(Ge, e.innerHTML) || U && Ye[t] && T(e) === A.element && tt(e) === J && (In(e.firstElementChild) || typeof e.textContent == "string" && S(Ge, e.textContent)) || e.nodeType === A.processingInstruction || U && e.nodeType === A.comment && S(Ke, e.data));
|
|
679
|
-
}, Rn = function(e, t) {
|
|
680
|
-
return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
681
|
-
}, zn = function(e, t, n) {
|
|
682
|
-
if (!wt[t] && Gn(t) && Rn(B.tagNameCheck, t)) return !1;
|
|
683
|
-
if (zt && !q[t] && !q[_(t)]) {
|
|
684
|
-
let t = v(e), r = h(e);
|
|
685
|
-
if (r && t) {
|
|
686
|
-
let i = r.length;
|
|
687
|
-
for (let a = i - 1; a >= 0; --a) {
|
|
688
|
-
let i = e === n ? ee(r[a], !0) : r[a];
|
|
689
|
-
t.insertBefore(i, ie(e));
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
return X(e), !0;
|
|
694
|
-
}, Bn = function(e, t, n, r) {
|
|
695
|
-
return e.length === 0 ? t : t === n || t === r ? O(t) : t;
|
|
696
|
-
}, Vn = function(e, t) {
|
|
697
|
-
return e === t || v(e) !== null ? !1 : (Bt && xn(e), !0);
|
|
698
|
-
}, Hn = function(e, n) {
|
|
699
|
-
if (Dn(e), $(L.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
700
|
-
if (Fn(e)) return X(e), !0;
|
|
701
|
-
let r = Y(D(e));
|
|
702
|
-
if (R = Bn(L.uponSanitizeElement, R, St, jt), $(L.uponSanitizeElement, e, {
|
|
703
|
-
tagName: r,
|
|
704
|
-
allowedTags: R
|
|
705
|
-
}), Vn(e, n)) return !0;
|
|
706
|
-
if (Ln(e, r)) return X(e), !0;
|
|
707
|
-
if (wt[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !R[r]) {
|
|
708
|
-
let t = zn(e, r, n);
|
|
709
|
-
return t === !1 && ($(L.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
710
|
-
}
|
|
711
|
-
if (T(e) === A.element && !gn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(qe, e.innerHTML)) return X(e), !0;
|
|
712
|
-
if (H && e.nodeType === A.text) {
|
|
713
|
-
let n = Mn(e.textContent);
|
|
714
|
-
e.textContent !== n && (se(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
715
|
-
}
|
|
716
|
-
return $(L.afterSanitizeElements, e, null), Vn(e, n);
|
|
717
|
-
}, Un = function(e, t, r) {
|
|
718
|
-
if (Tt[t] || On(t, e) || It && (t === "id" || t === "name") && (r in n || r in cn)) return !1;
|
|
719
|
-
let i = z[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
|
|
720
|
-
return Dt && S(gt, t) || Et && S(_t, t) ? !0 : i ? Gt[t] || S(xt, ge(r, yt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && _e(r, "data:") === 0 && Ut[e] || Ot && !S(vt, ge(r, yt, "")) ? !0 : !r : Gn(e) && Rn(B.tagNameCheck, e) && Rn(B.attributeNameCheck, t, e) || t === "is" && B.allowCustomizedBuiltInElements && Rn(B.tagNameCheck, r);
|
|
721
|
-
}, Wn = E({}, [
|
|
722
|
-
"annotation-xml",
|
|
723
|
-
"color-profile",
|
|
724
|
-
"font-face",
|
|
725
|
-
"font-face-format",
|
|
726
|
-
"font-face-name",
|
|
727
|
-
"font-face-src",
|
|
728
|
-
"font-face-uri",
|
|
729
|
-
"missing-glyph"
|
|
730
|
-
]), Gn = function(e) {
|
|
731
|
-
return !Wn[_(e)] && S(bt, e);
|
|
732
|
-
}, Kn = function(e, t, n, r) {
|
|
733
|
-
if (N && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
|
|
734
|
-
case "TrustedHTML": return I(r);
|
|
735
|
-
case "TrustedScriptURL": return at(r);
|
|
736
|
-
}
|
|
737
|
-
return r;
|
|
738
|
-
}, qn = function(e, t, n, r) {
|
|
739
|
-
try {
|
|
740
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (X(e), !1);
|
|
741
|
-
} catch {
|
|
742
|
-
return Z(t, e), !1;
|
|
743
|
-
}
|
|
744
|
-
}, Jn = function(e, t) {
|
|
745
|
-
return U && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : _(e) === "attributename" && he(t, "href") !== null;
|
|
746
|
-
}, Yn = function(e, n) {
|
|
747
|
-
if ($(L.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
748
|
-
let r = e.attributes;
|
|
749
|
-
if (!r || Fn(e)) return;
|
|
750
|
-
z = Bn(L.uponSanitizeAttribute, z, Ct, Mt);
|
|
751
|
-
let i = {
|
|
752
|
-
attrName: "",
|
|
753
|
-
attrValue: "",
|
|
754
|
-
keepAttr: !0,
|
|
755
|
-
allowedAttributes: z,
|
|
756
|
-
forceKeepAttr: void 0
|
|
757
|
-
}, a = r.length, o = Y(e.nodeName);
|
|
758
|
-
for (; a--;) {
|
|
759
|
-
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = Y(s), d = l, f = s === "value" ? d : ve(d), ee = !1;
|
|
760
|
-
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(L.uponSanitizeAttribute, e, i), f = i.attrValue, Lt && (u === "id" || u === "name") && _e(f, Rt) !== 0 && (Z(s, e, n), f = Rt + f, ee = !0), Jn(s, f) ? Z(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !kt && S(Je, f) ? Z(s, e, n) : (H && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && oe(t.removed)) : Z(s, e, n)) : Z(s, e, n));
|
|
761
|
-
}
|
|
762
|
-
$(L.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
763
|
-
}, Xn = function(e) {
|
|
764
|
-
let t = null, n = jn(e);
|
|
765
|
-
for ($(L.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(L.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), T(t) === A.element) {
|
|
766
|
-
let e = ye(t);
|
|
767
|
-
Q(e) && (Zn(e), Xn(e));
|
|
768
|
-
}
|
|
769
|
-
H && Pn(e), $(L.afterSanitizeShadowDOM, e, null);
|
|
770
|
-
}, Zn = function(e) {
|
|
771
|
-
let t = [{
|
|
772
|
-
node: e,
|
|
773
|
-
shadow: null
|
|
774
|
-
}];
|
|
775
|
-
for (; t.length > 0;) {
|
|
776
|
-
let e = t.pop();
|
|
777
|
-
if (e.shadow) {
|
|
778
|
-
Xn(e.shadow);
|
|
779
|
-
continue;
|
|
780
|
-
}
|
|
781
|
-
let n = e.node, r = T(n) === A.element, i = h(n);
|
|
782
|
-
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
783
|
-
node: i[e],
|
|
784
|
-
shadow: null
|
|
785
|
-
});
|
|
786
|
-
if (r) {
|
|
787
|
-
let e = x ? x(n) : null;
|
|
788
|
-
if (typeof e == "string" && Y(e) === "template") {
|
|
789
|
-
let e = n.content;
|
|
790
|
-
Q(e) && t.push({
|
|
791
|
-
node: e,
|
|
792
|
-
shadow: null
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
if (r) {
|
|
797
|
-
let e = ye(n);
|
|
798
|
-
Q(e) && t.push({
|
|
799
|
-
node: null,
|
|
800
|
-
shadow: e
|
|
801
|
-
}, {
|
|
802
|
-
node: e,
|
|
803
|
-
shadow: null
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
return t.sanitize = function(e) {
|
|
809
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
810
|
-
if (Xt = !e, Xt && (e = "<!-->"), typeof e != "string" && !In(e) && (e = xe(e), typeof e != "string")) throw C("dirty is not a string, aborting");
|
|
811
|
-
if (!t.isSupported) return e;
|
|
812
|
-
At ? (R = jt, z = Mt) : un(n), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (R = O(R)), L.uponSanitizeAttribute.length > 0 && (z = O(z)), t.removed = [];
|
|
813
|
-
let c = Bt && typeof e != "string" && In(e), l = [], u = K;
|
|
814
|
-
if (c) {
|
|
815
|
-
kn(e);
|
|
816
|
-
let t = D(e);
|
|
817
|
-
if (typeof t == "string") {
|
|
818
|
-
let n = Y(t);
|
|
819
|
-
if (!R[n] || wt[n]) throw vn(e), C("root node is forbidden and cannot be sanitized in-place");
|
|
820
|
-
}
|
|
821
|
-
if (Fn(e)) throw vn(e), C("root node is clobbered and cannot be sanitized in-place");
|
|
822
|
-
l = Sn(e), K = de();
|
|
823
|
-
} else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === A.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
824
|
-
else {
|
|
825
|
-
if (!G && !H && !W && e.indexOf("<") === -1) return N && Ft ? I(e) : e;
|
|
826
|
-
if (i = An(e), !i) return G ? null : Ft ? P : "";
|
|
827
|
-
}
|
|
828
|
-
i && Nt && X(i.firstChild);
|
|
829
|
-
let d = c ? e : i;
|
|
830
|
-
try {
|
|
831
|
-
c && Zn(e);
|
|
832
|
-
let t = jn(d);
|
|
833
|
-
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
|
|
834
|
-
c && Tn(e, l);
|
|
835
|
-
} catch (t) {
|
|
836
|
-
throw c && (vn(e), wn(e, l)), t;
|
|
837
|
-
} finally {
|
|
838
|
-
K = u;
|
|
839
|
-
}
|
|
840
|
-
if (c) {
|
|
841
|
-
if (wn(e, l)) throw C("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
842
|
-
return H && Nn(e), e;
|
|
843
|
-
}
|
|
844
|
-
if (G) {
|
|
845
|
-
if (H && Nn(i), Pt) for (s = ut.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
846
|
-
else s = i;
|
|
847
|
-
return (z.shadowroot || z.shadowrootmode) && (s = ft.call(r, s, !0)), s;
|
|
848
|
-
}
|
|
849
|
-
let f = W ? i.outerHTML : i.innerHTML;
|
|
850
|
-
return W && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(Ue, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), H && (f = Mn(f)), N && Ft ? I(f) : f;
|
|
851
|
-
}, t.setConfig = function() {
|
|
852
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
853
|
-
un(e), At = !0, jt = R, Mt = z;
|
|
854
|
-
}, t.clearConfig = function() {
|
|
855
|
-
sn = null, At = !1, jt = null, Mt = null, N = nt, P = "";
|
|
856
|
-
}, t.isValidAttribute = function(e, t, n) {
|
|
857
|
-
sn || un({});
|
|
858
|
-
let r = Y(e), i = Y(t);
|
|
859
|
-
return typeof n == "string" && (Jn(t, n) || !kt && S(Je, n)) ? !1 : Un(r, i, n);
|
|
860
|
-
}, t.addHook = function(e, t) {
|
|
861
|
-
typeof t == "function" && b(L, e) && se(L[e], t);
|
|
862
|
-
}, t.removeHook = function(e, t) {
|
|
863
|
-
if (b(L, e)) {
|
|
864
|
-
if (t !== void 0) {
|
|
865
|
-
let n = ae(L[e], t);
|
|
866
|
-
return n === -1 ? void 0 : le(L[e], n, 1)[0];
|
|
867
|
-
}
|
|
868
|
-
return oe(L[e]);
|
|
869
|
-
}
|
|
870
|
-
}, t.removeHooks = function(e) {
|
|
871
|
-
b(L, e) && (L[e] = []);
|
|
872
|
-
}, t.removeAllHooks = function() {
|
|
873
|
-
L = Qe();
|
|
874
|
-
}, t;
|
|
875
|
-
}
|
|
876
|
-
var M = et(), tt = /* @__PURE__ */ new Set([
|
|
877
|
-
"href",
|
|
878
|
-
"xlink:href",
|
|
879
|
-
"background",
|
|
880
|
-
"poster",
|
|
881
|
-
"src"
|
|
882
|
-
]), N = [
|
|
883
|
-
"srcdoc",
|
|
884
|
-
"ping",
|
|
885
|
-
"formaction",
|
|
886
|
-
"action"
|
|
887
|
-
], P = RegExp(`^(?:(?:${e.join("|")}):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"), nt = [
|
|
888
|
-
"style",
|
|
889
|
-
"form",
|
|
890
|
-
"iframe",
|
|
891
|
-
"object",
|
|
892
|
-
"embed",
|
|
893
|
-
"link",
|
|
894
|
-
"meta",
|
|
895
|
-
"base",
|
|
896
|
-
"noscript",
|
|
897
|
-
"template",
|
|
898
|
-
"script"
|
|
899
|
-
], rt = {
|
|
900
|
-
FORBID_TAGS: nt,
|
|
901
|
-
ADD_FORBID_CONTENTS: nt,
|
|
902
|
-
FORBID_ATTR: N,
|
|
903
|
-
ALLOWED_URI_REGEXP: P,
|
|
904
|
-
ADD_ATTR: ["target"]
|
|
905
|
-
}, F = {
|
|
906
|
-
USE_PROFILES: {
|
|
907
|
-
svg: !0,
|
|
908
|
-
svgFilters: !0
|
|
909
|
-
},
|
|
910
|
-
FORBID_TAGS: [
|
|
911
|
-
"script",
|
|
912
|
-
"foreignObject",
|
|
913
|
-
"animate",
|
|
914
|
-
"set",
|
|
915
|
-
"animateMotion",
|
|
916
|
-
"animateTransform"
|
|
917
|
-
],
|
|
918
|
-
ADD_FORBID_CONTENTS: [
|
|
919
|
-
"script",
|
|
920
|
-
"foreignObject",
|
|
921
|
-
"animate",
|
|
922
|
-
"set",
|
|
923
|
-
"animateMotion",
|
|
924
|
-
"animateTransform"
|
|
925
|
-
],
|
|
926
|
-
FORBID_ATTR: N,
|
|
927
|
-
ALLOWED_URI_REGEXP: P
|
|
928
|
-
};
|
|
929
|
-
M.isSupported && M.addHook("uponSanitizeAttribute", (e, n) => {
|
|
930
|
-
let r = n.attrName.toLowerCase();
|
|
931
|
-
r === "contenteditable" ? e.getAttribute(n.attrName) === "false" ? n.forceKeepAttr = !0 : n.keepAttr = !1 : (r.startsWith("on") || r === "srcdoc" || tt.has(r) && !t(n.attrValue, r)) && (n.keepAttr = !1);
|
|
932
|
-
});
|
|
933
|
-
function it(e) {
|
|
934
|
-
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
935
|
-
}
|
|
936
|
-
function I(e) {
|
|
937
|
-
return M.isSupported ? M.sanitize(e, rt) : it(e);
|
|
938
|
-
}
|
|
939
|
-
function at(e) {
|
|
940
|
-
return M.isSupported ? M.sanitize(e, F) : it(e);
|
|
941
|
-
}
|
|
942
|
-
export { at as n, I as t };
|