@templatical/editor 0.60.2 → 0.60.4
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/{AiChatPanel-DPoq2Til.js → AiChatPanel-CjUnhJGB.js} +8 -8
- package/dist/{AiPanels-UdfhAzzu.js → AiPanels-DwI9KjjI.js} +1 -1
- package/dist/{AiRewriteMenu-Boor11-X.js → AiRewriteMenu-Bh1cIX8F.js} +6 -6
- package/dist/{BlockIssueBadge-DQ_6NI4p.js → BlockIssueBadge-Bug5iqcK.js} +2 -2
- package/dist/{BlockPreviewCanvas-Bnkex45Y.js → BlockPreviewCanvas-C_N6f_FS.js} +3 -3
- package/dist/{CloudPanels-CJ-UuA_Y.js → CloudPanels-BS49EsuN.js} +3 -3
- package/dist/{CollaborationNotices-PqWv0q8W.js → CollaborationNotices-BM35YG72.js} +1 -1
- package/dist/{CollaboratorBar-p-_PWqXW.js → CollaboratorBar-DMsEOndt.js} +1 -1
- package/dist/{CommentsPanel-BUo-YhSX.js → CommentsPanel-BSLk23YP.js} +1 -1
- package/dist/{CommentsSidebar-D_Pz7FPz.js → CommentsSidebar-L-DgP_kM.js} +10 -10
- package/dist/{CountdownToolbar-BQdhVNaK.js → CountdownToolbar-B6erqTbz.js} +3 -3
- package/dist/{IssuesPanel-C7mBrK6a.js → IssuesPanel-CeCvUfa7.js} +8 -8
- package/dist/{LanguageMenu-S7L270RN.js → LanguageMenu-DsfCHdVi.js} +8 -8
- package/dist/{LocaleNotices-CAvDAawJ.js → LocaleNotices-BxR3xcLl.js} +2 -2
- package/dist/{LogicTagInsertButton-Clc3JTg_.js → LogicTagInsertButton-BzEZUTRZ.js} +3 -3
- package/dist/{MediaEditModal-YXOL0d_y.js → MediaEditModal-Bg-7RojG.js} +1 -1
- package/dist/{MediaPanels-VCv5epgs.js → MediaPanels-E9gLZ1Qb.js} +1 -1
- package/dist/{MergeTagInput-B5a9noTB.js → MergeTagInput-By2FSStk.js} +1 -1
- package/dist/{MergeTagModeToggle-D1r2aH5x.js → MergeTagModeToggle-DtjOZhoD.js} +3 -3
- package/dist/{MergeTagTextarea-CA9dPfMH.js → MergeTagTextarea-q6eeDD2l.js} +2 -2
- package/dist/{ParagraphEditor-CGUGIhJo.js → ParagraphEditor-25SNi_8O.js} +23 -23
- package/dist/{RestoreVersionDialog-P6pwVWGs.js → RestoreVersionDialog-BXtCxJF1.js} +3 -3
- package/dist/{RichTextEditorContent-gnRxu4-L.js → RichTextEditorContent-B1p7Ykq8.js} +4 -4
- package/dist/{SaveBlockDialog-SSD-GEXA.js → SaveBlockDialog-k1lxEBVW.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-Cs6zBFlE.js → SavedBlocksBrowserModal-CV-8mDPj.js} +9 -9
- package/dist/{SavedBlocksPanels-JJAFQOQO.js → SavedBlocksPanels-9nZj1jG_.js} +1 -1
- package/dist/{SavedBlocksPickBar-DMOHjX7S.js → SavedBlocksPickBar-Dy6NN9tm.js} +2 -2
- package/dist/{TemplateSettings-DsaSsCC8.js → TemplateSettings-DWxdUdM5.js} +6 -6
- package/dist/{TestEmailModal-Cbt5u2GF.js → TestEmailModal-BAkkZTaZ.js} +7 -7
- package/dist/{TestEmailPanel-BQNerB-E.js → TestEmailPanel-ccT2E3em.js} +1 -1
- package/dist/{TitleEditor-BuctoHHf.js → TitleEditor-B19dYnER.js} +9 -9
- package/dist/{Toolbar-Br0W6NE0.js → Toolbar-DxlZq_36.js} +27 -27
- package/dist/{TplModal-DJMLN1_R.js → TplModal-Bp2qPmQw.js} +1 -1
- package/dist/{VersionHistoryMenu-D-RCk3oB.js → VersionHistoryMenu-B3-xJ7GO.js} +5 -5
- package/dist/{VersionHistoryPanels-DvrD5VaM.js → VersionHistoryPanels-wAVDmhnP.js} +1 -1
- package/dist/{VersionPreviewBanner-DMg2sw3V.js → VersionPreviewBanner-DLAB4ZbS.js} +1 -1
- package/dist/{WrapperBlock-Cp0Mo8HA.js → WrapperBlock-DHnD6Exl.js} +2 -2
- package/dist/{blockTypeIcons-BePGuX0b.js → blockTypeIcons-C691ZY1l.js} +3 -3
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js → AiChatPanel-DTYmFRwb.js} +4 -4
- package/dist/cdn/chunks/{AiChatPanel-cIT2haLo.js.map → AiChatPanel-DTYmFRwb.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js → AiPanels-BW9ze-6O.js} +2 -2
- package/dist/cdn/chunks/{AiPanels-B4GG8w3J.js.map → AiPanels-BW9ze-6O.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js → AiRewriteMenu-B9b92d0R.js} +4 -4
- package/dist/cdn/chunks/{AiRewriteMenu-DIcUZQdv.js.map → AiRewriteMenu-B9b92d0R.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js → BlockIssueBadge-fYeNnepj.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-C50pmOMZ.js.map → BlockIssueBadge-fYeNnepj.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js → BlockPreviewCanvas-CLid1x0c.js} +4 -4
- package/dist/cdn/chunks/{BlockPreviewCanvas-CyY5_via.js.map → BlockPreviewCanvas-CLid1x0c.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js → CloudPanels-D4dslsyk.js} +3 -3
- package/dist/cdn/chunks/{CloudPanels-Cmf0SHez.js.map → CloudPanels-D4dslsyk.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js → CollaborationNotices-COkmBmps.js} +2 -2
- package/dist/cdn/chunks/{CollaborationNotices-CTmjjbHv.js.map → CollaborationNotices-COkmBmps.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js → CollaboratorBar-BSzI8YIU.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-CzHjawjF.js.map → CollaboratorBar-BSzI8YIU.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js → CommentsPanel-BynxXJ-F.js} +2 -2
- package/dist/cdn/chunks/{CommentsPanel-Dh0_eRBe.js.map → CommentsPanel-BynxXJ-F.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js → CommentsSidebar-C81N5Hwr.js} +2 -2
- package/dist/cdn/chunks/{CommentsSidebar-JxZ-O2mY.js.map → CommentsSidebar-C81N5Hwr.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js → CountdownToolbar-f1aqEba0.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-D16RWxkh.js.map → CountdownToolbar-f1aqEba0.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js → IssuesPanel-DgxiS3hF.js} +2 -2
- package/dist/cdn/chunks/{IssuesPanel-BtAn12hl.js.map → IssuesPanel-DgxiS3hF.js.map} +1 -1
- package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js → LanguageMenu-CJp7XdfG.js} +3 -3
- package/dist/cdn/chunks/{LanguageMenu-BBv0oBs-.js.map → LanguageMenu-CJp7XdfG.js.map} +1 -1
- package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js → LocaleNotices-D5vZzcUj.js} +2 -2
- package/dist/cdn/chunks/{LocaleNotices-CzrNKR-N.js.map → LocaleNotices-D5vZzcUj.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js → LogicTagInsertButton-DGg1Wvhp.js} +2 -2
- package/dist/cdn/chunks/{LogicTagInsertButton-B4wuPoMa.js.map → LogicTagInsertButton-DGg1Wvhp.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js → MediaEditModal-BQO6ggJK.js} +2 -2
- package/dist/cdn/chunks/{MediaEditModal-DJ2wxInt.js.map → MediaEditModal-BQO6ggJK.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js → MediaPanels-Ciahwsyt.js} +2 -2
- package/dist/cdn/chunks/{MediaPanels-BJawNjr9.js.map → MediaPanels-Ciahwsyt.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js → MergeTagInput-BVfTwujW.js} +2 -2
- package/dist/cdn/chunks/{MergeTagInput-DZD-p4nR.js.map → MergeTagInput-BVfTwujW.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js → MergeTagModeToggle-BoI0C1Y6.js} +2 -2
- package/dist/cdn/chunks/{MergeTagModeToggle-DGuJCgqO.js.map → MergeTagModeToggle-BoI0C1Y6.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js → MergeTagTextarea-DMXZgGUF.js} +3 -3
- package/dist/cdn/chunks/{MergeTagTextarea-BRiaRBr_.js.map → MergeTagTextarea-DMXZgGUF.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js → ParagraphEditor-Ce7_Ix0K.js} +24 -24
- package/dist/cdn/chunks/{ParagraphEditor-Dc0fJ53q.js.map → ParagraphEditor-Ce7_Ix0K.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js → RestoreVersionDialog-JmMLhN6G.js} +3 -3
- package/dist/cdn/chunks/{RestoreVersionDialog-CNTMRqG2.js.map → RestoreVersionDialog-JmMLhN6G.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js → RichTextEditorContent-D3ihUF8v.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CtV0Q0SO.js.map → RichTextEditorContent-D3ihUF8v.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js → SaveBlockDialog-B-2amBN5.js} +6 -6
- package/dist/cdn/chunks/{SaveBlockDialog-CQpCQtGe.js.map → SaveBlockDialog-B-2amBN5.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js → SavedBlocksBrowserModal-BR6fQ222.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-C-npOfe-.js.map → SavedBlocksBrowserModal-BR6fQ222.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js → SavedBlocksPanels-DVNNshfr.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-Bab-1ZgZ.js.map → SavedBlocksPanels-DVNNshfr.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js → SavedBlocksPickBar-BfxLHLQV.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-DDcxSRxT.js.map → SavedBlocksPickBar-BfxLHLQV.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js → TemplateSettings-TMFrRV2c.js} +4 -4
- package/dist/cdn/chunks/{TemplateSettings--_ZfbhnU.js.map → TemplateSettings-TMFrRV2c.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js → TestEmailModal-tTU35BKZ.js} +6 -6
- package/dist/cdn/chunks/{TestEmailModal-B-07GUK1.js.map → TestEmailModal-tTU35BKZ.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js → TestEmailPanel-BNJBVwx0.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-Rk6ZxlY6.js.map → TestEmailPanel-BNJBVwx0.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js → TitleEditor-BbscL_C1.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-I7wLUm-M.js.map → TitleEditor-BbscL_C1.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-czJfutfE.js → Toolbar-BxzyS69X.js} +16 -16
- package/dist/cdn/chunks/{Toolbar-czJfutfE.js.map → Toolbar-BxzyS69X.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CUF6ldtn.js → TplModal-Bzhc_l8y.js} +2 -2
- package/dist/cdn/chunks/{TplModal-CUF6ldtn.js.map → TplModal-Bzhc_l8y.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js → VersionHistoryMenu-DTDO48HI.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryMenu-CVGlUPwS.js.map → VersionHistoryMenu-DTDO48HI.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js → VersionHistoryPanels-Bbb1xUJs.js} +2 -2
- package/dist/cdn/chunks/{VersionHistoryPanels-CPGokA56.js.map → VersionHistoryPanels-Bbb1xUJs.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js → VersionPreviewBanner-C1H_fYAr.js} +2 -2
- package/dist/cdn/chunks/{VersionPreviewBanner-5RFz4AQx.js.map → VersionPreviewBanner-C1H_fYAr.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js → WrapperBlock-BboijK5T.js} +3 -3
- package/dist/cdn/chunks/{WrapperBlock-BOLiH6jD.js.map → WrapperBlock-BboijK5T.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js → blockTypeIcons-ZKw-Eiu0.js} +2 -2
- package/dist/cdn/chunks/{blockTypeIcons-BOonB9gK.js.map → blockTypeIcons-ZKw-Eiu0.js.map} +1 -1
- package/dist/cdn/chunks/{composables-A-9pkE2t.js → composables-C77dGo-I.js} +7 -7
- package/dist/cdn/chunks/{composables-A-9pkE2t.js.map → composables-C77dGo-I.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-BflADeuH.js +850 -0
- package/dist/cdn/chunks/dompurify-BflADeuH.js.map +1 -0
- package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js → editor-modal-BlSmX9Ch.js} +4 -4
- package/dist/cdn/chunks/{editor-modal-BVM_0uoL.js.map → editor-modal-BlSmX9Ch.js.map} +1 -1
- package/dist/cdn/chunks/en-jObtIVCp.js +1 -0
- package/dist/cdn/chunks/{extensions-BPZirXpF.js → extensions-Bq9nXmBP.js} +3 -3
- package/dist/cdn/chunks/{extensions-BPZirXpF.js.map → extensions-Bq9nXmBP.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CWEBTtbR.js → icons-DdVB-5WO.js} +28 -28
- package/dist/cdn/chunks/{icons-CWEBTtbR.js.map → icons-DdVB-5WO.js.map} +1 -1
- package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js → sanitizeHtml-Plkmw1Qt.js} +2 -2
- package/dist/cdn/chunks/{sanitizeHtml-Db0S2JVP.js.map → sanitizeHtml-Plkmw1Qt.js.map} +1 -1
- package/dist/cdn/chunks/{socialIcons-DMelHF3p.js → socialIcons-CSe4YJ52.js} +2 -2
- package/dist/cdn/chunks/{socialIcons-DMelHF3p.js.map → socialIcons-CSe4YJ52.js.map} +1 -1
- package/dist/cdn/chunks/{src-CCQf19hy.js → src-1MSPRtI8.js} +105 -104
- package/dist/cdn/chunks/src-1MSPRtI8.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-D9amDW4u.js → tiptap-DDhueoan.js} +3061 -3050
- package/dist/cdn/chunks/tiptap-DDhueoan.js.map +1 -0
- package/dist/cdn/editor.js +16 -16
- package/dist/{check-C82yyyf1.js → check-8ZykoWzl.js} +1 -1
- package/dist/{chevron-down-BaBVjNbM.js → chevron-down-D_CUJHwi.js} +1 -1
- package/dist/{chevron-right-DkS-bw8X.js → chevron-right-B2WYkQtG.js} +1 -1
- package/dist/{chevron-up-C1KzUIK4.js → chevron-up-L-H27use.js} +1 -1
- package/dist/{circle-exclamation-point-DsmqtTUQ.js → circle-exclamation-point-BCx1tR91.js} +1 -1
- package/dist/{clock-dpIs7vo0.js → clock-DOOnNINY.js} +1 -1
- package/dist/{composables-CT0_xtqC.js → composables-Bu_OmyjT.js} +13 -13
- package/dist/{createLucideIcon-BSam2AUu.js → createLucideIcon-BKeRiObH.js} +5 -5
- package/dist/{dist-BNrGwgev.js → dist-B1bGGOA0.js} +2 -2
- package/dist/{dist-BPVNNdTv.js → dist-C3ZVR_pd.js} +2 -2
- package/dist/{dist-C7YLw60i.js → dist-C8aVVj28.js} +2 -2
- package/dist/dist-CTzstDyz.js +4 -0
- package/dist/{dist-DoWk1r7z.js → dist-CcxrHURm.js} +1882 -1869
- package/dist/{dist-CuRjmtWu.js → dist-D41-1sSL.js} +6 -6
- package/dist/{dist-fDsB6dCL.js → dist-DRJhbfT9.js} +2 -2
- package/dist/{dist-COvAA64n.js → dist-DkQutATU.js} +2 -2
- package/dist/{dist-DG_AWt8v.js → dist-DyrUc7rM.js} +2 -2
- package/dist/{dist-DYtuc3jc.js → dist-p_84-Inl.js} +2 -2
- package/dist/{dist-CBnAqr27.js → dist-tG9_FTOs.js} +2 -2
- package/dist/dist-zQ8L1LNg.js +4 -0
- package/dist/{editor-modal-odubnc9x.js → editor-modal-CRtEWHbQ.js} +15 -15
- package/dist/en-CMswCXqE.js +1 -0
- package/dist/{extensions-C7OLgMEj.js → extensions-zHf8YFRw.js} +4 -4
- package/dist/{eye-CxCHEszj.js → eye-BjZOVab7.js} +1 -1
- package/dist/{image-DvXPzqNd.js → image-g47lDP0J.js} +1 -1
- package/dist/{info-2KHWaZ2L.js → info-DXij4QjB.js} +1 -1
- package/dist/{link-_OmrcJMv.js → link-BFJF0mWz.js} +1 -1
- package/dist/{list-Dekd7JE8.js → list-Cso9vnLq.js} +1 -1
- package/dist/{loader-circle-D_hT5mFS.js → loader-circle-uLY01591.js} +1 -1
- package/dist/{message-circle-DDbiG-jz.js → message-circle-amY03UMa.js} +1 -1
- package/dist/{package-cORUe57D.js → package-DnjoSQa1.js} +1 -1
- package/dist/{pencil-D67H4fxq.js → pencil-D1HBG4pb.js} +1 -1
- package/dist/{plus-BpTZAx28.js → plus-PzFvtj-Z.js} +1 -1
- package/dist/{refresh-cw-B4T0IFwI.js → refresh-cw-BPDv-S-4.js} +1 -1
- package/dist/{rotate-ccw-BDQgjpuo.js → rotate-ccw-DQZVEj1V.js} +1 -1
- package/dist/sanitizeHtml-DxmFirMi.js +945 -0
- package/dist/{search-Dp9pkaVt.js → search-BUBeKVdD.js} +1 -1
- package/dist/{send-DO9GhgCH.js → send-BJEuoIc2.js} +1 -1
- package/dist/{smartphone-CPW3I3hV.js → smartphone-DZ5xyNU4.js} +1 -1
- package/dist/{socialIcons-DXOO2y7u.js → socialIcons-mWE33bOn.js} +3 -3
- package/dist/{sparkles-CIBjNfij.js → sparkles-zWGR8hrs.js} +1 -1
- package/dist/{square-3W65qrrH.js → square--3H462TJ.js} +1 -1
- package/dist/templatical-editor.js +30 -30
- package/dist/{text-align-start-Bs70tpRU.js → text-align-start-B5Dx2Ylg.js} +13 -13
- package/dist/{trash-CTzhAm1o.js → trash-CJsobpw0.js} +1 -1
- package/dist/{triangle-exclamation-point-D_13CuJY.js → triangle-exclamation-point-Bi7ZKTZU.js} +1 -1
- package/dist/{upload-DFxkP9MI.js → upload-DZ_-FNJ4.js} +1 -1
- package/dist/{useScrollToBlock-194ePl4q.js → useScrollToBlock-eZXiGa8o.js} +1 -1
- package/dist/{x-D7L8mLHJ.js → x-CuyPLm0U.js} +1 -1
- package/package.json +23 -23
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +0 -872
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +0 -1
- package/dist/cdn/chunks/en-DlDEofnd.js +0 -1
- package/dist/cdn/chunks/src-CCQf19hy.js.map +0 -1
- package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +0 -1
- package/dist/dist-AyAOL8Bj.js +0 -4
- package/dist/dist-DkPTWQuO.js +0 -4
- package/dist/en-CAImT1hl.js +0 -1
- package/dist/sanitizeHtml-Ru5_-IbM.js +0 -973
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
import { Dt as e, d as t, f as n, h as r } from "./dist-DX_IQgcU.js";
|
|
2
|
+
import { t as i } from "./createLucideIcon-BKeRiObH.js";
|
|
3
|
+
var a = i({
|
|
4
|
+
name: "languages",
|
|
5
|
+
size: 24,
|
|
6
|
+
node: [
|
|
7
|
+
["path", {
|
|
8
|
+
d: "m5 8 6 6",
|
|
9
|
+
key: "1wu5hv"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "m4 14 6-6 2-3",
|
|
13
|
+
key: "1k1g8d"
|
|
14
|
+
}],
|
|
15
|
+
["path", {
|
|
16
|
+
d: "M2 5h12",
|
|
17
|
+
key: "or177f"
|
|
18
|
+
}],
|
|
19
|
+
["path", {
|
|
20
|
+
d: "M7 2h1",
|
|
21
|
+
key: "1t2jsx"
|
|
22
|
+
}],
|
|
23
|
+
["path", {
|
|
24
|
+
d: "m22 22-5-10-5 10",
|
|
25
|
+
key: "don7ne"
|
|
26
|
+
}],
|
|
27
|
+
["path", {
|
|
28
|
+
d: "M14 18h6",
|
|
29
|
+
key: "1m8k6r"
|
|
30
|
+
}]
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
// ../../node_modules/.pnpm/dompurify@3.4.18/node_modules/dompurify/dist/purify.es.mjs
|
|
34
|
+
function o(e, t) {
|
|
35
|
+
this.v = e, this.k = t;
|
|
36
|
+
}
|
|
37
|
+
function s(e, t) {
|
|
38
|
+
(t == null || t > e.length) && (t = e.length);
|
|
39
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
40
|
+
return r;
|
|
41
|
+
}
|
|
42
|
+
function c(e) {
|
|
43
|
+
if (Array.isArray(e)) return e;
|
|
44
|
+
}
|
|
45
|
+
function l(e, t) {
|
|
46
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
47
|
+
if (n != null) {
|
|
48
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
49
|
+
try {
|
|
50
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
51
|
+
if (Object(n) !== n) return;
|
|
52
|
+
c = !1;
|
|
53
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
54
|
+
} catch (e) {
|
|
55
|
+
l = !0, i = e;
|
|
56
|
+
} finally {
|
|
57
|
+
try {
|
|
58
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
59
|
+
} finally {
|
|
60
|
+
if (l) throw i;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return s;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function u() {
|
|
67
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
+
}
|
|
69
|
+
function d(e, t) {
|
|
70
|
+
return c(e) || l(e, t) || f(e, t) || u();
|
|
71
|
+
}
|
|
72
|
+
function f(e, t) {
|
|
73
|
+
if (e) {
|
|
74
|
+
if (typeof e == "string") return s(e, t);
|
|
75
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
76
|
+
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) ? s(e, t) : void 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function p(e) {
|
|
80
|
+
var t, n;
|
|
81
|
+
function r(t, n) {
|
|
82
|
+
try {
|
|
83
|
+
var a = e[t](n), s = a.value, c = s instanceof o;
|
|
84
|
+
Promise.resolve(c ? s.v : s).then(function(n) {
|
|
85
|
+
if (c) {
|
|
86
|
+
var o = t === "return" && s.k ? t : "next";
|
|
87
|
+
if (!s.k || n.done) return r(o, n);
|
|
88
|
+
n = e[o](n).value;
|
|
89
|
+
}
|
|
90
|
+
i(!!a.done, n);
|
|
91
|
+
}, function(e) {
|
|
92
|
+
r("throw", e);
|
|
93
|
+
});
|
|
94
|
+
} catch (e) {
|
|
95
|
+
i(2, e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function i(e, i) {
|
|
99
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
100
|
+
value: i,
|
|
101
|
+
done: e
|
|
102
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
103
|
+
}
|
|
104
|
+
this._invoke = function(e, i) {
|
|
105
|
+
return new Promise(function(a, o) {
|
|
106
|
+
var s = {
|
|
107
|
+
key: e,
|
|
108
|
+
arg: i,
|
|
109
|
+
resolve: a,
|
|
110
|
+
reject: o,
|
|
111
|
+
next: null
|
|
112
|
+
};
|
|
113
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
114
|
+
});
|
|
115
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
116
|
+
}
|
|
117
|
+
p.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
118
|
+
return this;
|
|
119
|
+
}, p.prototype.next = function(e) {
|
|
120
|
+
return this._invoke("next", e);
|
|
121
|
+
}, p.prototype.throw = function(e) {
|
|
122
|
+
return this._invoke("throw", e);
|
|
123
|
+
}, p.prototype.return = function(e) {
|
|
124
|
+
return this._invoke("return", e);
|
|
125
|
+
};
|
|
126
|
+
var ee = Object.entries, te = Object.keys, ne = Object.setPrototypeOf, re = Object.isFrozen, m = Object.getPrototypeOf, ie = Object.getOwnPropertyDescriptor, h = Object.freeze, g = Object.seal, _ = Object.create, ae = typeof Reflect < "u" && Reflect, v = ae.apply, y = ae.construct;
|
|
127
|
+
h ||= function(e) {
|
|
128
|
+
return e;
|
|
129
|
+
}, g ||= function(e) {
|
|
130
|
+
return e;
|
|
131
|
+
}, v ||= function(e, t) {
|
|
132
|
+
var n = [...arguments].slice(2);
|
|
133
|
+
return e.apply(t, n);
|
|
134
|
+
}, y ||= function(e) {
|
|
135
|
+
return new e(...[...arguments].slice(1));
|
|
136
|
+
};
|
|
137
|
+
var b = k(Array.prototype.forEach), oe = k(Array.prototype.lastIndexOf), se = k(Array.prototype.pop), ce = k(Array.prototype.push), le = k(Array.prototype.slice), ue = k(Array.prototype.splice), de = Array.isArray, fe = Se(Set), pe = k(Set.prototype.add), me = k(Set.prototype.has), x = k(String.prototype.toLowerCase), he = k(String.prototype.toString), ge = k(String.prototype.match), _e = k(String.prototype.replace), ve = k(String.prototype.indexOf), ye = k(String.prototype.trim), be = k(Number.prototype.toString), S = k(Boolean.prototype.toString), C = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), xe = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), w = k(Object.prototype.hasOwnProperty), T = k(Object.prototype.toString), E = RegExp.prototype.test, D = function(e, t) {
|
|
138
|
+
return e instanceof RegExp && (e.lastIndex = 0), v(E, e, [t]);
|
|
139
|
+
}, O = Se(TypeError);
|
|
140
|
+
function k(e) {
|
|
141
|
+
return function(t) {
|
|
142
|
+
var n = [...arguments].slice(1);
|
|
143
|
+
return v(e, t, n);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function Se(e) {
|
|
147
|
+
return function() {
|
|
148
|
+
return y(e, [...arguments]);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function A(e, t) {
|
|
152
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : x;
|
|
153
|
+
if (ne && ne(e, null), !de(t)) return e;
|
|
154
|
+
let r = t.length;
|
|
155
|
+
for (; r--;) {
|
|
156
|
+
let i = t[r];
|
|
157
|
+
if (typeof i == "string") {
|
|
158
|
+
let e = n(i);
|
|
159
|
+
e !== i && (re(t) || (t[r] = e), i = e);
|
|
160
|
+
}
|
|
161
|
+
e[i] = !0;
|
|
162
|
+
}
|
|
163
|
+
return e;
|
|
164
|
+
}
|
|
165
|
+
function Ce(e) {
|
|
166
|
+
for (let t = 0; t < e.length; t++) w(e, t) || (e[t] = null);
|
|
167
|
+
return e;
|
|
168
|
+
}
|
|
169
|
+
function we(e) {
|
|
170
|
+
let t = _(null);
|
|
171
|
+
for (let r of ee(e)) {
|
|
172
|
+
var n = d(r, 2);
|
|
173
|
+
let i = n[0], a = n[1];
|
|
174
|
+
w(e, i) && (t[i] = de(a) ? Ce(a) : a && typeof a == "object" && a.constructor === Object ? we(a) : a);
|
|
175
|
+
}
|
|
176
|
+
return t;
|
|
177
|
+
}
|
|
178
|
+
function Te(e) {
|
|
179
|
+
let t = _(null), n = te(e), r = n.length;
|
|
180
|
+
for (; r--;) t[n[r]] = e[n[r]];
|
|
181
|
+
return t;
|
|
182
|
+
}
|
|
183
|
+
function Ee(e) {
|
|
184
|
+
switch (typeof e) {
|
|
185
|
+
case "string": return e;
|
|
186
|
+
case "number": return be(e);
|
|
187
|
+
case "boolean": return S(e);
|
|
188
|
+
case "bigint": return C ? C(e) : "0";
|
|
189
|
+
case "symbol": return xe ? xe(e) : "Symbol()";
|
|
190
|
+
case "undefined": return T(e);
|
|
191
|
+
case "function":
|
|
192
|
+
case "object": {
|
|
193
|
+
if (e === null) return T(e);
|
|
194
|
+
let t = e, n = j(t, "toString");
|
|
195
|
+
if (typeof n == "function") {
|
|
196
|
+
let e = n(t);
|
|
197
|
+
return typeof e == "string" ? e : T(e);
|
|
198
|
+
}
|
|
199
|
+
return T(e);
|
|
200
|
+
}
|
|
201
|
+
default: return T(e);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function j(e, t) {
|
|
205
|
+
for (; e !== null;) {
|
|
206
|
+
let n = ie(e, t);
|
|
207
|
+
if (n) {
|
|
208
|
+
if (n.get) return k(n.get);
|
|
209
|
+
if (typeof n.value == "function") return k(n.value);
|
|
210
|
+
}
|
|
211
|
+
e = m(e);
|
|
212
|
+
}
|
|
213
|
+
function n() {
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
return n;
|
|
217
|
+
}
|
|
218
|
+
function De(e, t) {
|
|
219
|
+
for (; e !== null;) {
|
|
220
|
+
let n = ie(e, t);
|
|
221
|
+
if (n) return n.get ? k(n.get) : null;
|
|
222
|
+
e = m(e);
|
|
223
|
+
}
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
function Oe(e) {
|
|
227
|
+
if (!e) return !1;
|
|
228
|
+
try {
|
|
229
|
+
return D(e, ""), !0;
|
|
230
|
+
} catch {
|
|
231
|
+
return !1;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
var ke = h(/* @__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(".")), Ae = h(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.filter.font.g.glyph.glyphref.hkern.image.line.lineargradient.marker.mask.metadata.mpath.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), je = h([
|
|
235
|
+
"feBlend",
|
|
236
|
+
"feColorMatrix",
|
|
237
|
+
"feComponentTransfer",
|
|
238
|
+
"feComposite",
|
|
239
|
+
"feConvolveMatrix",
|
|
240
|
+
"feDiffuseLighting",
|
|
241
|
+
"feDisplacementMap",
|
|
242
|
+
"feDistantLight",
|
|
243
|
+
"feDropShadow",
|
|
244
|
+
"feFlood",
|
|
245
|
+
"feFuncA",
|
|
246
|
+
"feFuncB",
|
|
247
|
+
"feFuncG",
|
|
248
|
+
"feFuncR",
|
|
249
|
+
"feGaussianBlur",
|
|
250
|
+
"feImage",
|
|
251
|
+
"feMerge",
|
|
252
|
+
"feMergeNode",
|
|
253
|
+
"feMorphology",
|
|
254
|
+
"feOffset",
|
|
255
|
+
"fePointLight",
|
|
256
|
+
"feSpecularLighting",
|
|
257
|
+
"feSpotLight",
|
|
258
|
+
"feTile",
|
|
259
|
+
"feTurbulence"
|
|
260
|
+
]), Me = h([
|
|
261
|
+
"animate",
|
|
262
|
+
"color-profile",
|
|
263
|
+
"cursor",
|
|
264
|
+
"discard",
|
|
265
|
+
"font-face",
|
|
266
|
+
"font-face-format",
|
|
267
|
+
"font-face-name",
|
|
268
|
+
"font-face-src",
|
|
269
|
+
"font-face-uri",
|
|
270
|
+
"foreignobject",
|
|
271
|
+
"hatch",
|
|
272
|
+
"hatchpath",
|
|
273
|
+
"mesh",
|
|
274
|
+
"meshgradient",
|
|
275
|
+
"meshpatch",
|
|
276
|
+
"meshrow",
|
|
277
|
+
"missing-glyph",
|
|
278
|
+
"script",
|
|
279
|
+
"set",
|
|
280
|
+
"solidcolor",
|
|
281
|
+
"unknown",
|
|
282
|
+
"use"
|
|
283
|
+
]), Ne = h(/* @__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(".")), Pe = h([
|
|
284
|
+
"maction",
|
|
285
|
+
"maligngroup",
|
|
286
|
+
"malignmark",
|
|
287
|
+
"mlongdiv",
|
|
288
|
+
"mscarries",
|
|
289
|
+
"mscarry",
|
|
290
|
+
"msgroup",
|
|
291
|
+
"mstack",
|
|
292
|
+
"msline",
|
|
293
|
+
"msrow",
|
|
294
|
+
"semantics",
|
|
295
|
+
"annotation",
|
|
296
|
+
"annotation-xml",
|
|
297
|
+
"mprescripts",
|
|
298
|
+
"none"
|
|
299
|
+
]), Fe = h(["#text"]), Ie = h(/* @__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(".")), Le = h(/* @__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(".")), Re = h(/* @__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(".")), ze = h([
|
|
300
|
+
"xlink:href",
|
|
301
|
+
"xml:id",
|
|
302
|
+
"xlink:title",
|
|
303
|
+
"xml:space",
|
|
304
|
+
"xmlns:xlink"
|
|
305
|
+
]), Be = g(/{{[\w\W]*|^[\w\W]*}}/g), Ve = g(/<%[\w\W]*|^[\w\W]*%>/g), He = g(/\${[\w\W]*/g), Ue = g(/{{|}}|\${|<%|%>|<%|%>/), We = g(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ge = g(/^aria-[\-\w]+$/), Ke = g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), qe = g(/^(?:\w+script|data):/i), Je = g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ye = g(/^html$/i), Xe = g(/^[a-z][.\w]*(-[.\w]+)+$/i), Ze = g(/<[/\w!]/g), Qe = g(/<[/\w]/g), $e = g(/<\/no(script|embed|frames)/i), et = g(/\/>/i), tt = g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i), nt = g(/^[\r\n\t ]+/), M = {
|
|
306
|
+
element: 1,
|
|
307
|
+
text: 3,
|
|
308
|
+
processingInstruction: 7,
|
|
309
|
+
comment: 8,
|
|
310
|
+
document: 9,
|
|
311
|
+
documentFragment: 11
|
|
312
|
+
}, rt = h(A({}, [
|
|
313
|
+
"style",
|
|
314
|
+
"script",
|
|
315
|
+
"xmp",
|
|
316
|
+
"iframe",
|
|
317
|
+
"noembed",
|
|
318
|
+
"noframes",
|
|
319
|
+
"plaintext",
|
|
320
|
+
"noscript"
|
|
321
|
+
])), it = function() {
|
|
322
|
+
return typeof window > "u" ? null : window;
|
|
323
|
+
}, at = function(e, t) {
|
|
324
|
+
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
325
|
+
let n = null, r = "data-tt-policy-suffix";
|
|
326
|
+
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
327
|
+
let i = "dompurify" + (n ? "#" + n : "");
|
|
328
|
+
try {
|
|
329
|
+
return e.createPolicy(i, {
|
|
330
|
+
createHTML(e) {
|
|
331
|
+
return e;
|
|
332
|
+
},
|
|
333
|
+
createScriptURL(e) {
|
|
334
|
+
return e;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
} catch {
|
|
338
|
+
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
339
|
+
}
|
|
340
|
+
}, ot = function() {
|
|
341
|
+
return {
|
|
342
|
+
afterSanitizeAttributes: [],
|
|
343
|
+
afterSanitizeElements: [],
|
|
344
|
+
afterSanitizeShadowDOM: [],
|
|
345
|
+
beforeSanitizeAttributes: [],
|
|
346
|
+
beforeSanitizeElements: [],
|
|
347
|
+
beforeSanitizeShadowDOM: [],
|
|
348
|
+
uponSanitizeAttribute: [],
|
|
349
|
+
uponSanitizeElement: [],
|
|
350
|
+
uponSanitizeShadowNode: []
|
|
351
|
+
};
|
|
352
|
+
}, N = function(e, t, n, r) {
|
|
353
|
+
return w(e, t) && de(e[t]) ? A(r.base ? Te(r.base) : {}, e[t], r.transform) : n;
|
|
354
|
+
}, st = function(e, t, n) {
|
|
355
|
+
let r = w(e, t) ? e[t] : void 0;
|
|
356
|
+
return r && typeof r == "object" ? we(r) : n;
|
|
357
|
+
};
|
|
358
|
+
function ct() {
|
|
359
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it(), t = (e) => ct(e);
|
|
360
|
+
if (t.version = "3.4.18", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
|
|
361
|
+
let n = e.document, r = n, i = r.currentScript, a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter, l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = j(d, "cloneNode"), p = j(d, "remove"), te = j(d, "removeAttributeNode"), ne = j(d, "nextSibling"), re = j(d, "childNodes"), m = j(d, "parentNode"), ie = j(d, "shadowRoot"), ae = j(d, "attributes"), v = o && o.prototype ? j(o.prototype, "nodeType") : null, y = o && o.prototype ? j(o.prototype, "nodeName") : null, be = o && o.prototype ? j(o.prototype, "ownerDocument") : null, S = function(e) {
|
|
362
|
+
return v ? v(e) : e.nodeType;
|
|
363
|
+
}, C = function(e) {
|
|
364
|
+
return y ? y(e) : e.nodeName;
|
|
365
|
+
}, xe = De(d, "namespaceURI"), T = function(e) {
|
|
366
|
+
return xe ? xe(e) : e.namespaceURI;
|
|
367
|
+
};
|
|
368
|
+
if (typeof a == "function") {
|
|
369
|
+
let e = n.createElement("template");
|
|
370
|
+
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
371
|
+
}
|
|
372
|
+
let E, k = "", Se, Ce = !1, P = 0, lt = function() {
|
|
373
|
+
if (P > 0) throw O("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.");
|
|
374
|
+
}, F = function(e) {
|
|
375
|
+
lt(), P++;
|
|
376
|
+
try {
|
|
377
|
+
return E.createHTML(e);
|
|
378
|
+
} finally {
|
|
379
|
+
P--;
|
|
380
|
+
}
|
|
381
|
+
}, ut = function(e) {
|
|
382
|
+
return E && Vt ? F(e) : e;
|
|
383
|
+
}, dt = function(e) {
|
|
384
|
+
lt(), P++;
|
|
385
|
+
try {
|
|
386
|
+
return E.createScriptURL(e);
|
|
387
|
+
} finally {
|
|
388
|
+
P--;
|
|
389
|
+
}
|
|
390
|
+
}, ft = function() {
|
|
391
|
+
return Ce ||= (Se = at(u, i), !0), Se;
|
|
392
|
+
}, pt = n, mt = pt.implementation, ht = pt.createNodeIterator, gt = pt.createDocumentFragment, _t = pt.getElementsByTagName, vt = r.importNode, I = ot();
|
|
393
|
+
t.isSupported = typeof ee == "function" && typeof m == "function" && mt && mt.createHTMLDocument !== void 0;
|
|
394
|
+
let yt = Be, bt = Ve, xt = He, St = We, Ct = Ge, wt = qe, Tt = Je, Et = Xe, Dt = Ke, L = null, Ot = A({}, [
|
|
395
|
+
...ke,
|
|
396
|
+
...Ae,
|
|
397
|
+
...je,
|
|
398
|
+
...Ne,
|
|
399
|
+
...Fe
|
|
400
|
+
]), R = null, kt = A({}, [
|
|
401
|
+
...Ie,
|
|
402
|
+
...Le,
|
|
403
|
+
...Re,
|
|
404
|
+
...ze
|
|
405
|
+
]), z = null, At = null, jt = null, B = Object.seal(_(null, {
|
|
406
|
+
tagCheck: {
|
|
407
|
+
writable: !0,
|
|
408
|
+
configurable: !1,
|
|
409
|
+
enumerable: !0,
|
|
410
|
+
value: null
|
|
411
|
+
},
|
|
412
|
+
attributeCheck: {
|
|
413
|
+
writable: !0,
|
|
414
|
+
configurable: !1,
|
|
415
|
+
enumerable: !0,
|
|
416
|
+
value: null
|
|
417
|
+
}
|
|
418
|
+
})), Mt = !0, Nt = !0, Pt = !1, Ft = !0, V = !1, H = !0, U = !1, It = !1, Lt = null, Rt = null, zt = !1, W = !1, Bt = !1, Vt = !1, Ht = !0, Ut = !1, Wt = "user-content-", Gt = !0, Kt = !1, G = null, K = !1, q = null, qt = A({}, /* @__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(".")), Jt = null, Yt = A({}, [
|
|
419
|
+
"audio",
|
|
420
|
+
"video",
|
|
421
|
+
"img",
|
|
422
|
+
"source",
|
|
423
|
+
"image",
|
|
424
|
+
"track"
|
|
425
|
+
]), Xt = null, Zt = A({}, [
|
|
426
|
+
"alt",
|
|
427
|
+
"class",
|
|
428
|
+
"for",
|
|
429
|
+
"id",
|
|
430
|
+
"label",
|
|
431
|
+
"name",
|
|
432
|
+
"pattern",
|
|
433
|
+
"placeholder",
|
|
434
|
+
"role",
|
|
435
|
+
"summary",
|
|
436
|
+
"title",
|
|
437
|
+
"value",
|
|
438
|
+
"style",
|
|
439
|
+
"xmlns"
|
|
440
|
+
]), Qt = "http://www.w3.org/1998/Math/MathML", $t = "http://www.w3.org/2000/svg", J = "http://www.w3.org/1999/xhtml", Y = J, en = !1, tn = null, nn = A({}, [
|
|
441
|
+
Qt,
|
|
442
|
+
$t,
|
|
443
|
+
J
|
|
444
|
+
], he), rn = h(A({}, [
|
|
445
|
+
"mi",
|
|
446
|
+
"mo",
|
|
447
|
+
"mn",
|
|
448
|
+
"ms",
|
|
449
|
+
"mtext"
|
|
450
|
+
])), an = null, on = h(A({}, ["annotation-xml"])), sn = null, cn = h(_(null)), ln = A({}, [
|
|
451
|
+
"title",
|
|
452
|
+
"style",
|
|
453
|
+
"font",
|
|
454
|
+
"a",
|
|
455
|
+
"script"
|
|
456
|
+
]), un = null, dn = ["application/xhtml+xml", "text/html"], X = null, fn = null, pn = n.createElement("form"), mn = function(e) {
|
|
457
|
+
return e instanceof RegExp || e instanceof Function;
|
|
458
|
+
}, hn = function() {
|
|
459
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
460
|
+
e && typeof e == "object" || (e = {}), e = we(e), un = dn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = un === "application/xhtml+xml" ? he : x, L = N(e, "ALLOWED_TAGS", Ot, { transform: X }), R = N(e, "ALLOWED_ATTR", kt, { transform: X }), tn = N(e, "ALLOWED_NAMESPACES", nn, { transform: he }), Xt = N(e, "ADD_URI_SAFE_ATTR", Zt, {
|
|
461
|
+
transform: X,
|
|
462
|
+
base: Zt
|
|
463
|
+
}), Jt = N(e, "ADD_DATA_URI_TAGS", Yt, {
|
|
464
|
+
transform: X,
|
|
465
|
+
base: Yt
|
|
466
|
+
}), q = N(e, "FORBID_CONTENTS", qt, { transform: X }), At = N(e, "FORBID_TAGS", _(null), { transform: X }), jt = N(e, "FORBID_ATTR", _(null), { transform: X }), K = w(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? we(e.USE_PROFILES) : e.USE_PROFILES : !1, Mt = e.ALLOW_ARIA_ATTR !== !1, Nt = e.ALLOW_DATA_ATTR !== !1, Pt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Ft = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, Bt = e.RETURN_DOM_FRAGMENT || !1, Vt = e.RETURN_TRUSTED_TYPE || !1, zt = e.FORCE_BODY || !1, Ht = e.SANITIZE_DOM !== !1, Ut = e.SANITIZE_NAMED_PROPS || !1, Gt = e.KEEP_CONTENT !== !1, Kt = e.IN_PLACE || !1, Dt = Oe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ke, Y = typeof e.NAMESPACE == "string" ? e.NAMESPACE : J, an = st(e, "MATHML_TEXT_INTEGRATION_POINTS", rn), sn = st(e, "HTML_INTEGRATION_POINTS", on);
|
|
467
|
+
let t = st(e, "CUSTOM_ELEMENT_HANDLING", cn);
|
|
468
|
+
if (z = _(null), w(t, "tagNameCheck") && mn(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), w(t, "attributeNameCheck") && mn(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), w(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), g(z), V && (Nt = !1), Bt && (W = !0), K && ((w(e, "ALLOWED_TAGS") || w(e, "ALLOWED_ATTR")) && typeof console < "u" && typeof console.warn == "function" && console.warn("DOMPurify: USE_PROFILES overrides ALLOWED_TAGS and ALLOWED_ATTR. Do not use these options together."), L = A({}, Fe), R = _(null), K.html === !0 && (A(L, ke), A(R, Ie)), K.svg === !0 && (A(L, Ae), A(R, Le), A(R, ze)), K.svgFilters === !0 && (A(L, je), A(R, Le), A(R, ze)), K.mathMl === !0 && (A(L, Ne), A(R, Re), A(R, ze))), B.tagCheck = null, B.attributeCheck = null, w(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? B.tagCheck = e.ADD_TAGS : de(e.ADD_TAGS) && (L === Ot && (L = Te(L)), A(L, e.ADD_TAGS, X))), w(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? B.attributeCheck = e.ADD_ATTR : de(e.ADD_ATTR) && (R === kt && (R = Te(R)), A(R, e.ADD_ATTR, X))), w(e, "ADD_FORBID_CONTENTS") && de(e.ADD_FORBID_CONTENTS) && (q === qt && (q = Te(q)), A(q, e.ADD_FORBID_CONTENTS, X)), Gt && (L["#text"] = !0), U && A(L, [
|
|
469
|
+
"html",
|
|
470
|
+
"head",
|
|
471
|
+
"body"
|
|
472
|
+
]), L.table && (L.tbody = !0, delete At.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
473
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
474
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
475
|
+
let t = E;
|
|
476
|
+
E = e.TRUSTED_TYPES_POLICY;
|
|
477
|
+
try {
|
|
478
|
+
k = F("");
|
|
479
|
+
} catch (e) {
|
|
480
|
+
throw E = t, e;
|
|
481
|
+
}
|
|
482
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (E = void 0, k = "") : (E === void 0 && (E = ft()), E && typeof k == "string" && (k = F("")));
|
|
483
|
+
fn = h(e);
|
|
484
|
+
}, gn = A({}, [
|
|
485
|
+
...Ae,
|
|
486
|
+
...je,
|
|
487
|
+
...Me
|
|
488
|
+
]), _n = A({}, [...Ne, ...Pe]), vn = function(e, t, n) {
|
|
489
|
+
return t === J ? e === "svg" : t === Qt ? e === "svg" && (n === "annotation-xml" || an[n]) : !!gn[e];
|
|
490
|
+
}, yn = function(e, t, n) {
|
|
491
|
+
return t === J ? e === "math" : t === $t ? e === "math" && sn[n] : !!_n[e];
|
|
492
|
+
}, bn = function(e, t, n) {
|
|
493
|
+
return t === $t && !sn[n] || t === Qt && !an[n] ? !1 : !_n[e] && (ln[e] || !gn[e]);
|
|
494
|
+
}, xn = function(e) {
|
|
495
|
+
let t = T(e), n = x(C(e)), r = m(e), i = Y, a = "template";
|
|
496
|
+
return r && S(r) === M.element && (i = T(r), a = x(C(r))), tn[t] ? t === $t ? vn(n, i, a) : t === Qt ? yn(n, i, a) : t === J ? bn(n, i, a) : un === "application/xhtml+xml" : !1;
|
|
497
|
+
}, Z = function(e) {
|
|
498
|
+
ce(t.removed, { element: e });
|
|
499
|
+
try {
|
|
500
|
+
m(e).removeChild(e);
|
|
501
|
+
} catch {
|
|
502
|
+
if (p(e), !m(e)) throw O("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
503
|
+
}
|
|
504
|
+
}, Sn = function(e, t, n) {
|
|
505
|
+
try {
|
|
506
|
+
te(e, t);
|
|
507
|
+
} catch {
|
|
508
|
+
try {
|
|
509
|
+
e.removeAttribute(n);
|
|
510
|
+
} catch {}
|
|
511
|
+
}
|
|
512
|
+
}, Cn = function(e) {
|
|
513
|
+
En(e);
|
|
514
|
+
let t = re(e);
|
|
515
|
+
t && b(le(t), (e) => {
|
|
516
|
+
try {
|
|
517
|
+
p(e);
|
|
518
|
+
} catch {}
|
|
519
|
+
}), S(e) === M.element && wn(e, !1);
|
|
520
|
+
}, Q = function(e, n, r) {
|
|
521
|
+
if (!r) try {
|
|
522
|
+
r = n.getAttributeNode(e);
|
|
523
|
+
} catch {
|
|
524
|
+
r = null;
|
|
525
|
+
}
|
|
526
|
+
if (ce(t.removed, {
|
|
527
|
+
attribute: r || null,
|
|
528
|
+
from: n
|
|
529
|
+
}), r) Sn(n, r, e);
|
|
530
|
+
else try {
|
|
531
|
+
n.removeAttribute(e);
|
|
532
|
+
} catch {}
|
|
533
|
+
if (e === "is") {
|
|
534
|
+
if (W || Bt) try {
|
|
535
|
+
Z(n);
|
|
536
|
+
} catch {}
|
|
537
|
+
else try {
|
|
538
|
+
n.setAttribute(e, "");
|
|
539
|
+
} catch {}
|
|
540
|
+
}
|
|
541
|
+
}, wn = function(e, t) {
|
|
542
|
+
let n = ae(e);
|
|
543
|
+
if (n) for (let r = n.length - 1; r >= 0; --r) {
|
|
544
|
+
let i = n[r], a = i && i.name;
|
|
545
|
+
typeof a == "string" && !(t && R[X(a)]) && Sn(e, i, a);
|
|
546
|
+
}
|
|
547
|
+
}, Tn = function(e, t) {
|
|
548
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
549
|
+
for (; r.length > 0;) {
|
|
550
|
+
let e = r.pop();
|
|
551
|
+
if (t(e) === !1) continue;
|
|
552
|
+
if (n && S(e) === M.element) {
|
|
553
|
+
let t = ie(e);
|
|
554
|
+
Hn(t) && r.push(t);
|
|
555
|
+
}
|
|
556
|
+
let i = re(e);
|
|
557
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
558
|
+
}
|
|
559
|
+
}, En = function(e) {
|
|
560
|
+
Tn(e, (e) => {
|
|
561
|
+
S(e) === M.element && wn(e, !0);
|
|
562
|
+
});
|
|
563
|
+
}, Dn = function(e) {
|
|
564
|
+
let t = [];
|
|
565
|
+
return Tn(e, (e) => {
|
|
566
|
+
t.push(e);
|
|
567
|
+
}, !0), t;
|
|
568
|
+
}, On = function(e, t) {
|
|
569
|
+
let n = fe();
|
|
570
|
+
b(Dn(e), (e) => {
|
|
571
|
+
S(e) === M.element && pe(n, e);
|
|
572
|
+
}), b(t, (e) => {
|
|
573
|
+
S(e) === M.element && !me(n, e) && wn(e, !0);
|
|
574
|
+
});
|
|
575
|
+
}, kn = function(e, n) {
|
|
576
|
+
let r = !1;
|
|
577
|
+
return b(t.removed, (t) => {
|
|
578
|
+
t.element && (r ||= t.element === e, En(t.element));
|
|
579
|
+
}), On(e, n), r;
|
|
580
|
+
}, An = function(e, t) {
|
|
581
|
+
let n = G, r = null, i = () => (r || (r = fe(), b(t, (e) => {
|
|
582
|
+
pe(r, e);
|
|
583
|
+
})), r);
|
|
584
|
+
for (let t = 0;; t++) {
|
|
585
|
+
let r = Dn(e), a = [e], o = !1;
|
|
586
|
+
if (b(r, (e) => {
|
|
587
|
+
S(e) === M.documentFragment ? ce(a, e) : !o && !me(n, e) && (o = me(i(), e));
|
|
588
|
+
}), !o) return;
|
|
589
|
+
if (t >= 8) throw O("the tree kept changing during in-place sanitization; refusing to return it");
|
|
590
|
+
b(a, (t, n) => {
|
|
591
|
+
jn(t, n > 0, e, i());
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}, jn = function(e, t, n, r) {
|
|
595
|
+
let i = In(e), a;
|
|
596
|
+
for (; a = i.nextNode();) me(r, a) && !me(G, a) && (t && $(I.uponSanitizeShadowNode, a, null), rr(a, n));
|
|
597
|
+
}, Mn = function(e) {
|
|
598
|
+
G && pe(G, e);
|
|
599
|
+
}, Nn = function(e, t) {
|
|
600
|
+
return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
601
|
+
}, Pn = function(e) {
|
|
602
|
+
H && Tn(e, (e) => {
|
|
603
|
+
let t = S(e);
|
|
604
|
+
if (t === M.processingInstruction || t === M.comment && D(Qe, e.data)) {
|
|
605
|
+
try {
|
|
606
|
+
p(e);
|
|
607
|
+
} catch {}
|
|
608
|
+
return !1;
|
|
609
|
+
}
|
|
610
|
+
if (t === M.element) {
|
|
611
|
+
let t = e, n = X(C(e));
|
|
612
|
+
try {
|
|
613
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Nn("for", n) && t.removeAttribute("for");
|
|
614
|
+
} catch {}
|
|
615
|
+
}
|
|
616
|
+
return !0;
|
|
617
|
+
});
|
|
618
|
+
}, Fn = function(e) {
|
|
619
|
+
let t = null, r = null;
|
|
620
|
+
if (zt) e = "<remove></remove>" + e;
|
|
621
|
+
else {
|
|
622
|
+
let t = ge(e, nt);
|
|
623
|
+
r = t && t[0];
|
|
624
|
+
}
|
|
625
|
+
un === "application/xhtml+xml" && Y === J && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
626
|
+
let i = E ? F(e) : e;
|
|
627
|
+
if (Y === J) try {
|
|
628
|
+
t = new l().parseFromString(i, un);
|
|
629
|
+
} catch {}
|
|
630
|
+
if (!t || !t.documentElement) {
|
|
631
|
+
t = mt.createDocument(Y, "template", null);
|
|
632
|
+
try {
|
|
633
|
+
t.documentElement.innerHTML = en ? k : i;
|
|
634
|
+
} catch {}
|
|
635
|
+
}
|
|
636
|
+
let a = t.body || t.documentElement;
|
|
637
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Y === J ? _t.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
|
|
638
|
+
}, In = function(e) {
|
|
639
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = be ? be(e) : e.ownerDocument;
|
|
640
|
+
return ht.call(n || e, e, (t ? 0 : c.SHOW_ELEMENT) | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
641
|
+
}, Ln = function(e) {
|
|
642
|
+
return e = _e(e, yt, " "), e = _e(e, bt, " "), e = _e(e, xt, " "), e;
|
|
643
|
+
}, Rn = function(e) {
|
|
644
|
+
zn(e);
|
|
645
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
646
|
+
t && b(t, (e) => {
|
|
647
|
+
Hn(e.content) && Rn(e.content);
|
|
648
|
+
});
|
|
649
|
+
}, zn = function(e) {
|
|
650
|
+
e.normalize();
|
|
651
|
+
let t = In(e, !0), n = t.nextNode();
|
|
652
|
+
for (; n;) n.data = Ln(n.data), n = t.nextNode();
|
|
653
|
+
}, Bn = function(e) {
|
|
654
|
+
let t = y ? y(e) : null;
|
|
655
|
+
return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ae(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 !== v(e) || e.childNodes !== re(e);
|
|
656
|
+
}, Vn = function(e) {
|
|
657
|
+
if (!v || typeof e != "object" || !e) return null;
|
|
658
|
+
try {
|
|
659
|
+
let t = v(e);
|
|
660
|
+
return typeof t == "number" ? t : null;
|
|
661
|
+
} catch {
|
|
662
|
+
return null;
|
|
663
|
+
}
|
|
664
|
+
}, Hn = function(e) {
|
|
665
|
+
return Vn(e) === M.documentFragment;
|
|
666
|
+
}, Un = function(e) {
|
|
667
|
+
return Vn(e) !== null;
|
|
668
|
+
};
|
|
669
|
+
function $(e, n, r) {
|
|
670
|
+
e.length !== 0 && b(e, (e) => {
|
|
671
|
+
e.call(t, n, r, fn);
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
let Wn = function(e, t, n) {
|
|
675
|
+
return !!(H && n === M.element && e.hasChildNodes() && !Un(e.firstElementChild) && D(Ze, e.textContent) && D(Ze, e.innerHTML) || H && rt[t] && n === M.element && T(e) === J && (Un(e.firstElementChild) || typeof e.textContent == "string" && D(Ze, e.textContent)) || n === M.processingInstruction || H && n === M.comment && D(Qe, e.data));
|
|
676
|
+
}, Gn = function(e, t) {
|
|
677
|
+
return e instanceof RegExp ? D(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
678
|
+
}, Kn = function(e, t, n) {
|
|
679
|
+
if (!At[t] && Qn(t) && Gn(z.tagNameCheck, t)) return !1;
|
|
680
|
+
if (Gt && !q[t] && !q[x(t)]) {
|
|
681
|
+
let t = m(e), r = re(e);
|
|
682
|
+
if (r && t) {
|
|
683
|
+
let i = r.length;
|
|
684
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
685
|
+
let i = e === n ? f(r[a], !0) : r[a];
|
|
686
|
+
t.insertBefore(i, ne(e));
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return Z(e), !0;
|
|
691
|
+
}, qn = function(e, t, n, r) {
|
|
692
|
+
return e.length === 0 ? t : t === n || t === r ? Te(t) : t;
|
|
693
|
+
}, Jn = function(e, t) {
|
|
694
|
+
return e === t || m(e) !== null ? !1 : (Kt && En(e), !0);
|
|
695
|
+
}, Yn = function(e, n) {
|
|
696
|
+
if (Mn(e), $(I.beforeSanitizeElements, e, null), Jn(e, n)) return !0;
|
|
697
|
+
if (Bn(e)) return Z(e), !0;
|
|
698
|
+
let r = X(C(e)), i = S(e);
|
|
699
|
+
if (L = qn(I.uponSanitizeElement, L, Ot, Lt), $(I.uponSanitizeElement, e, {
|
|
700
|
+
tagName: r,
|
|
701
|
+
allowedTags: L
|
|
702
|
+
}), Jn(e, n)) return !0;
|
|
703
|
+
if (Wn(e, r, i)) return Z(e), !0;
|
|
704
|
+
if (At[r] || !(B.tagCheck instanceof Function && B.tagCheck(r)) && !L[r]) {
|
|
705
|
+
let t = Kn(e, r, n);
|
|
706
|
+
return t === !1 && ($(I.afterSanitizeElements, e, null), Jn(e, n)) ? !0 : t;
|
|
707
|
+
}
|
|
708
|
+
if (i === M.element && !xn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D($e, e.innerHTML)) return Z(e), !0;
|
|
709
|
+
if (V && i === M.text) {
|
|
710
|
+
let n = e.textContent, r = Ln(n);
|
|
711
|
+
n !== r && (ce(t.removed, { element: e.cloneNode() }), e.textContent = r);
|
|
712
|
+
}
|
|
713
|
+
return $(I.afterSanitizeElements, e, null), Jn(e, n);
|
|
714
|
+
}, Xn = function(e, t, r) {
|
|
715
|
+
if (jt[t] || Nn(t, e) || Ht && (t === "id" || t === "name") && (r in n || r in pn)) return !1;
|
|
716
|
+
let i = R[t] || B.attributeCheck instanceof Function && B.attributeCheck(t, e);
|
|
717
|
+
if (Nt && D(St, t) || Mt && D(Ct, t)) return !0;
|
|
718
|
+
if (!i) return Qn(e) && Gn(z.tagNameCheck, e) && Gn(z.attributeNameCheck, t, e) || t === "is" && z.allowCustomizedBuiltInElements && Gn(z.tagNameCheck, r);
|
|
719
|
+
if (Xt[t]) return !0;
|
|
720
|
+
let a = _e(r, Tt, "");
|
|
721
|
+
return D(Dt, a) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ve(r, "data:") === 0 && Jt[e] || Pt && !D(wt, a) ? !0 : !r;
|
|
722
|
+
}, Zn = A({}, [
|
|
723
|
+
"annotation-xml",
|
|
724
|
+
"color-profile",
|
|
725
|
+
"font-face",
|
|
726
|
+
"font-face-format",
|
|
727
|
+
"font-face-name",
|
|
728
|
+
"font-face-src",
|
|
729
|
+
"font-face-uri",
|
|
730
|
+
"missing-glyph"
|
|
731
|
+
]), Qn = function(e) {
|
|
732
|
+
return !Zn[x(e)] && D(Et, e);
|
|
733
|
+
}, $n = function(e, t, n, r) {
|
|
734
|
+
if (E && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
735
|
+
case "TrustedHTML": return F(r);
|
|
736
|
+
case "TrustedScriptURL": return dt(r);
|
|
737
|
+
}
|
|
738
|
+
return r;
|
|
739
|
+
}, er = function(e, t, n, r) {
|
|
740
|
+
try {
|
|
741
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Bn(e) || (Z(e), !1);
|
|
742
|
+
} catch {
|
|
743
|
+
return Q(t, e), !1;
|
|
744
|
+
}
|
|
745
|
+
}, tr = function(e, t) {
|
|
746
|
+
return H && D(tt, t) ? !0 : x(e) === "attributename" && ve(t, "href") !== -1;
|
|
747
|
+
}, nr = function(e, n) {
|
|
748
|
+
if ($(I.beforeSanitizeAttributes, e, null), Jn(e, n)) return;
|
|
749
|
+
let r = e.attributes;
|
|
750
|
+
if (!r || Bn(e)) return;
|
|
751
|
+
R = qn(I.uponSanitizeAttribute, R, kt, Rt);
|
|
752
|
+
let i = {
|
|
753
|
+
attrName: "",
|
|
754
|
+
attrValue: "",
|
|
755
|
+
keepAttr: !0,
|
|
756
|
+
allowedAttributes: R,
|
|
757
|
+
forceKeepAttr: void 0
|
|
758
|
+
}, a = r.length, o = X(C(e));
|
|
759
|
+
for (; a--;) {
|
|
760
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : ye(d), p = !1;
|
|
761
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(I.uponSanitizeAttribute, e, i), f = i.attrValue, Ut && (u === "id" || u === "name") && ve(f, Wt) !== 0 && (Q(s, e, n), f = Wt + f, p = !0), tr(s, f) ? Q(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Ft && D(et, f) ? Q(s, e, n) : (V && (f = Ln(f)), Xn(o, u, f) ? (f = $n(o, u, c, f), f !== d && er(e, s, c, f) && p && se(t.removed)) : Q(s, e, n)) : Q(s, e, n));
|
|
762
|
+
}
|
|
763
|
+
$(I.afterSanitizeAttributes, e, null), Jn(e, n);
|
|
764
|
+
}, rr = function(e, t) {
|
|
765
|
+
Yn(e, t), nr(e, t), Hn(e.content) && ir(e.content);
|
|
766
|
+
}, ir = function(e) {
|
|
767
|
+
let t = null, n = In(e);
|
|
768
|
+
for ($(I.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(I.uponSanitizeShadowNode, t, null), rr(t, e), S(t) === M.element) {
|
|
769
|
+
let e = ie(t);
|
|
770
|
+
Hn(e) && (ar(e), ir(e));
|
|
771
|
+
}
|
|
772
|
+
V && zn(e), $(I.afterSanitizeShadowDOM, e, null);
|
|
773
|
+
}, ar = function(e) {
|
|
774
|
+
let t = [{
|
|
775
|
+
node: e,
|
|
776
|
+
shadow: null
|
|
777
|
+
}];
|
|
778
|
+
for (; t.length > 0;) {
|
|
779
|
+
let e = t.pop();
|
|
780
|
+
if (e.shadow) {
|
|
781
|
+
ir(e.shadow);
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
let n = e.node, r = S(n) === M.element, i = re(n);
|
|
785
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
786
|
+
node: i[e],
|
|
787
|
+
shadow: null
|
|
788
|
+
});
|
|
789
|
+
if (r) {
|
|
790
|
+
let e = y ? y(n) : null;
|
|
791
|
+
if (typeof e == "string" && X(e) === "template") {
|
|
792
|
+
let e = n.content;
|
|
793
|
+
Hn(e) && t.push({
|
|
794
|
+
node: e,
|
|
795
|
+
shadow: null
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
if (r) {
|
|
800
|
+
let e = ie(n);
|
|
801
|
+
Hn(e) && t.push({
|
|
802
|
+
node: null,
|
|
803
|
+
shadow: e
|
|
804
|
+
}, {
|
|
805
|
+
node: e,
|
|
806
|
+
shadow: null
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
};
|
|
811
|
+
return t.sanitize = function(e) {
|
|
812
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
813
|
+
if (en = !e, en && (e = "<!-->"), typeof e != "string" && !Un(e) && (e = Ee(e), typeof e != "string")) throw O("dirty is not a string, aborting");
|
|
814
|
+
if (!t.isSupported) return e;
|
|
815
|
+
It ? (L = Lt, R = Rt) : hn(n), t.removed = [];
|
|
816
|
+
let c = Kt && typeof e != "string" && Un(e), l = [], u = G;
|
|
817
|
+
if (c) {
|
|
818
|
+
Pn(e);
|
|
819
|
+
let t = C(e);
|
|
820
|
+
if (typeof t == "string") {
|
|
821
|
+
let n = X(t);
|
|
822
|
+
if (!L[n] || At[n]) throw Cn(e), O("root node is forbidden and cannot be sanitized in-place");
|
|
823
|
+
}
|
|
824
|
+
if (Bn(e)) throw Cn(e), O("root node is clobbered and cannot be sanitized in-place");
|
|
825
|
+
l = Dn(e), G = fe();
|
|
826
|
+
} else if (Un(e)) i = Fn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), ar(i);
|
|
827
|
+
else {
|
|
828
|
+
if (!W && !V && !U && e.indexOf("<") === -1) return ut(e);
|
|
829
|
+
if (i = Fn(e), !i) return W ? null : Vt ? k : "";
|
|
830
|
+
}
|
|
831
|
+
i && zt && Z(i.firstChild);
|
|
832
|
+
let d = c ? e : i;
|
|
833
|
+
try {
|
|
834
|
+
c && ar(e);
|
|
835
|
+
let t = In(d);
|
|
836
|
+
for (; o = t.nextNode();) rr(o, d);
|
|
837
|
+
c && An(e, l);
|
|
838
|
+
} catch (t) {
|
|
839
|
+
throw c && (Cn(e), kn(e, l)), t;
|
|
840
|
+
} finally {
|
|
841
|
+
G = u;
|
|
842
|
+
}
|
|
843
|
+
if (c) {
|
|
844
|
+
if (kn(e, l)) throw O("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
845
|
+
return V && Rn(e), e;
|
|
846
|
+
}
|
|
847
|
+
if (W) {
|
|
848
|
+
if (V && Rn(i), Bt) for (s = gt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
849
|
+
else s = i;
|
|
850
|
+
return (R.shadowroot || R.shadowrootmode) && (s = vt.call(r, s, !0)), s;
|
|
851
|
+
}
|
|
852
|
+
let f = () => U ? i.outerHTML : i.innerHTML, p = f();
|
|
853
|
+
return V && D(Ue, p) && (zn(i), p = f()), U && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(Ye, i.ownerDocument.doctype.name) && (p = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + p), ut(p);
|
|
854
|
+
}, t.setConfig = function() {
|
|
855
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
856
|
+
hn(e), It = !0, Lt = L, Rt = R;
|
|
857
|
+
}, t.clearConfig = function() {
|
|
858
|
+
fn = null, It = !1, Lt = null, Rt = null, E = Se, k = "";
|
|
859
|
+
}, t.isValidAttribute = function(e, t, n) {
|
|
860
|
+
fn || hn({});
|
|
861
|
+
let r = X(e), i = X(t);
|
|
862
|
+
return typeof n == "string" && (tr(t, n) || !Ft && D(et, n)) ? !1 : Xn(r, i, n);
|
|
863
|
+
}, t.addHook = function(e, t) {
|
|
864
|
+
typeof t == "function" && w(I, e) && ce(I[e], t);
|
|
865
|
+
}, t.removeHook = function(e, t) {
|
|
866
|
+
if (w(I, e)) {
|
|
867
|
+
if (t !== void 0) {
|
|
868
|
+
let n = oe(I[e], t);
|
|
869
|
+
return n === -1 ? void 0 : ue(I[e], n, 1)[0];
|
|
870
|
+
}
|
|
871
|
+
return se(I[e]);
|
|
872
|
+
}
|
|
873
|
+
}, t.removeHooks = function(e) {
|
|
874
|
+
w(I, e) && (I[e] = []);
|
|
875
|
+
}, t.removeAllHooks = function() {
|
|
876
|
+
I = ot();
|
|
877
|
+
}, t;
|
|
878
|
+
}
|
|
879
|
+
var P = ct(), lt = new Set(n), F = [...t], ut = RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))`, "i"), dt = [
|
|
880
|
+
"style",
|
|
881
|
+
"form",
|
|
882
|
+
"iframe",
|
|
883
|
+
"object",
|
|
884
|
+
"embed",
|
|
885
|
+
"link",
|
|
886
|
+
"meta",
|
|
887
|
+
"base",
|
|
888
|
+
"noscript",
|
|
889
|
+
"template",
|
|
890
|
+
"script"
|
|
891
|
+
], ft = {
|
|
892
|
+
FORBID_TAGS: dt,
|
|
893
|
+
ADD_FORBID_CONTENTS: dt,
|
|
894
|
+
FORBID_ATTR: F,
|
|
895
|
+
ALLOWED_URI_REGEXP: ut,
|
|
896
|
+
ADD_ATTR: ["target"],
|
|
897
|
+
CANVAS_LINKS: !0
|
|
898
|
+
}, pt = {
|
|
899
|
+
...ft,
|
|
900
|
+
CANVAS_LINKS: !1
|
|
901
|
+
}, mt = {
|
|
902
|
+
USE_PROFILES: {
|
|
903
|
+
svg: !0,
|
|
904
|
+
svgFilters: !0
|
|
905
|
+
},
|
|
906
|
+
FORBID_TAGS: [
|
|
907
|
+
"script",
|
|
908
|
+
"foreignObject",
|
|
909
|
+
"animate",
|
|
910
|
+
"set",
|
|
911
|
+
"animateMotion",
|
|
912
|
+
"animateTransform"
|
|
913
|
+
],
|
|
914
|
+
ADD_FORBID_CONTENTS: [
|
|
915
|
+
"script",
|
|
916
|
+
"foreignObject",
|
|
917
|
+
"animate",
|
|
918
|
+
"set",
|
|
919
|
+
"animateMotion",
|
|
920
|
+
"animateTransform"
|
|
921
|
+
],
|
|
922
|
+
FORBID_ATTR: F,
|
|
923
|
+
ALLOWED_URI_REGEXP: ut
|
|
924
|
+
};
|
|
925
|
+
P.isSupported && (P.addHook("uponSanitizeAttribute", (t, n) => {
|
|
926
|
+
let r = n.attrName.toLowerCase();
|
|
927
|
+
r === "contenteditable" ? t.getAttribute(n.attrName) === "false" ? n.forceKeepAttr = !0 : n.keepAttr = !1 : (r.startsWith("on") || r === "srcdoc" || lt.has(r) && !e(n.attrValue, r)) && (n.keepAttr = !1);
|
|
928
|
+
}), P.addHook("afterSanitizeAttributes", (e, t, n) => {
|
|
929
|
+
if (!n.CANVAS_LINKS || e.namespaceURI !== "http://www.w3.org/1999/xhtml" || e.nodeName.toLowerCase() !== "a" || e.getAttribute("target")?.toLowerCase() !== "_blank") return;
|
|
930
|
+
let r = (e.getAttribute("rel") ?? "").split(/\s+/).filter((e) => e && e.toLowerCase() !== "opener");
|
|
931
|
+
r.some((e) => e.toLowerCase() === "noopener") || r.push("noopener"), e.setAttribute("rel", r.join(" "));
|
|
932
|
+
}));
|
|
933
|
+
function ht(e) {
|
|
934
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
935
|
+
}
|
|
936
|
+
function gt(e) {
|
|
937
|
+
return P.isSupported ? P.sanitize(e, ft) : ht(e);
|
|
938
|
+
}
|
|
939
|
+
function _t(e) {
|
|
940
|
+
return P.isSupported ? P.sanitize(e, pt) : ht(e);
|
|
941
|
+
}
|
|
942
|
+
function vt(e) {
|
|
943
|
+
return P.isSupported ? P.sanitize(e, mt) : ht(e);
|
|
944
|
+
}
|
|
945
|
+
export { a as i, _t as n, vt as r, gt as t };
|