@luzmo/lucero 2.5.1 → 2.5.2
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/components/accordion/index.cjs +1 -1
- package/components/accordion/index.js +1 -2
- package/components/{accordion-ciplqKwM.js → accordion-BJLsCC-2.js} +7 -8
- package/components/{accordion-BK0LfhmL.cjs → accordion-OQ0RoC_7.cjs} +1 -1
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -2
- package/components/{action-bar-BZBIeGo7.js → action-bar-B-Y-gJ8B.js} +9 -17
- package/components/{action-bar-DAqG_7VG.cjs → action-bar-Dyt2tyjr.cjs} +1 -1
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -2
- package/components/{action-button-DU95RNNi.js → action-button-BB3ZZFNN.js} +6 -8
- package/components/{action-button-B4_uvHiN.cjs → action-button-CL4ZlryE.cjs} +1 -1
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -2
- package/components/{action-group-oo7YV0EW.cjs → action-group-Doll-3Bf.cjs} +1 -1
- package/components/{action-group-DSiruuF0.js → action-group-HECoPCas.js} +7 -9
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -2
- package/components/{action-menu-C_vyFNJt.cjs → action-menu-BW-XpCVO.cjs} +1 -1
- package/components/{action-menu-B6nNYwlL.js → action-menu-LnXQ7reF.js} +11 -13
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -2
- package/components/{avatar-CwSyYAKV.js → avatar-CVRQDsx6.js} +7 -9
- package/components/{avatar-DHS5UGTJ.cjs → avatar-DFzJbtId.cjs} +1 -1
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -2
- package/components/{badge-Bp-1d70q.js → badge-BSfzmBRf.js} +6 -8
- package/components/{badge-CNeUkS4b.cjs → badge-DzElGOcl.cjs} +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/{button-B1V_2tHk.cjs → button-BGEWdRbY.cjs} +2 -2
- package/components/{button-QXavBh1X.js → button-CpaltgRZ.js} +12 -13
- package/components/{button-base-DiPzVpp4.js → button-base-BzakIKd0.js} +12 -35
- package/components/{button-base-DiNxrttk.cjs → button-base-CpK2ktvQ.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -2
- package/components/{button-group-Du7R4SxZ.cjs → button-group-C23OtGC0.cjs} +1 -1
- package/components/{button-group-Duf-Igst.js → button-group-DMsT6N0P.js} +4 -6
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -2
- package/components/{calendar-CLGqcox8.cjs → calendar-BqyGW8gU.cjs} +3 -3
- package/components/{calendar-BNGwCJsG.js → calendar-D4x5gp_0.js} +14 -33
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -2
- package/components/{chat-message-D6U-sprD.js → chat-message-5gP_qbiz.js} +665 -654
- package/components/chat-message-Dn5GKsSD.cjs +148 -0
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -2
- package/components/{chat-message-group-k9lo-ZqD.js → chat-message-group-Bp4mshBY.js} +18 -18
- package/components/{chat-message-group-CvxdX3jt.cjs → chat-message-group-CJddlS85.cjs} +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -2
- package/components/checkbox-CVi4GMoo.cjs +25 -0
- package/components/{checkbox-CydI9yXG.js → checkbox-CvRvgRzh.js} +7 -13
- package/components/{checkbox-mixin-jqmrh48O.js → checkbox-mixin-BIuvxtEt.js} +2 -3
- package/components/{checkbox-mixin-rFRXqyrK.cjs → checkbox-mixin-DAdnTm-F.cjs} +1 -1
- package/components/{close-button-Dlvtf9lB.js → close-button-7zS6PUzh.js} +5 -6
- package/components/{close-button-BAELImQY.cjs → close-button-B06i2hJn.cjs} +1 -1
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +1 -2
- package/components/{color-area-CmKlQG1i.cjs → color-area-D1fRozE0.cjs} +1 -1
- package/components/{color-area-lbg8wwZG.js → color-area-qlEAp8ZN.js} +10 -20
- package/components/color-controller-BpdydwTO.cjs +18 -0
- package/components/{color-controller-Rg_Zl0sT.js → color-controller-CauSxC_r.js} +1 -2
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -2
- package/components/{color-field-BH9x46k_.cjs → color-field-CN8shDl_.cjs} +1 -1
- package/components/{color-field-C9S-Fv46.js → color-field-CVyDNZ4b.js} +5 -7
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +1 -2
- package/components/{color-handle-2iFLp9FN.cjs → color-handle-BE0Z1gTU.cjs} +1 -1
- package/components/{color-handle-BEDQ1RcS.js → color-handle-Dc0uLgkf.js} +4 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -2
- package/components/{color-loupe-6NcLbFco.cjs → color-loupe-2X1bCYU9.cjs} +1 -1
- package/components/{color-loupe-CqHyyvjQ.js → color-loupe-Bu37Uwk6.js} +3 -5
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -2
- package/components/{color-menu-qJK_clDq.js → color-menu-BxFQnH79.js} +12 -14
- package/components/{color-menu-BYTgxLQG.cjs → color-menu-Cus3S-Re.cjs} +1 -1
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -2
- package/components/{color-palette-x6W09EBL.cjs → color-palette-D5NZDz5I.cjs} +1 -1
- package/components/{color-palette-CqiO5ohz.js → color-palette-UU7Feiwh.js} +7 -8
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -2
- package/components/{color-palette-group-zByrO_qb.js → color-palette-group-CwmC9iR1.js} +5 -7
- package/components/{color-palette-group-D4k_7pW6.cjs → color-palette-group-DhGh0Db8.cjs} +1 -1
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -2
- package/components/{color-picker-BAikpqUT.cjs → color-picker-BTT1O-76.cjs} +1 -1
- package/components/{color-picker-CSuAPo5X.js → color-picker-orFSIqoZ.js} +9 -11
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -2
- package/components/{color-slider-CMW8gJ0Z.cjs → color-slider-9Ck28Qdk.cjs} +1 -1
- package/components/{color-slider-0JzdSRTy.js → color-slider-X1EArAnx.js} +8 -14
- package/components/{condition-attribute-with-id-BdnTdWKz.js → condition-attribute-with-id-v1wjKZc3.js} +1 -2
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -2
- package/components/{date-range-picker-5SDPe2fQ.js → date-range-picker-CoCz3uDz.js} +28 -29
- package/components/{date-range-picker-CLfEEYkE.cjs → date-range-picker-DyJdcFiA.cjs} +3 -3
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -2
- package/components/{date-time-picker-DXTksnPd.cjs → date-time-picker-CEEeMXGn.cjs} +3 -3
- package/components/{date-time-picker-s3xujamC.js → date-time-picker-CsgO17tA.js} +23 -36
- package/components/{decorate-CkCg3wfh.js → decorate-CpKsOs9z.js} +18 -19
- package/components/{decorate-Dq34MBGe.cjs → decorate-SO02l0A6.cjs} +1 -1
- package/components/{dependency-manger-wHEXoU92.js → dependency-manger-BneVBZQi.js} +1 -2
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -2
- package/components/{divider-Cz5nyvP9.js → divider-Bt0NIqfu.js} +5 -7
- package/components/{divider-BcE8D-pH.cjs → divider-fWGUxO6A.cjs} +1 -1
- package/components/{divider.module-CPEKsaqR.js → divider.module-B_GRUJ4d.js} +1 -2
- package/components/{element-resolution-gap51AVo.js → element-resolution-BYvcpZwK.js} +1 -2
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +2 -3
- package/components/{field-group-Dd5xYczm.cjs → field-group-B8mhEhNJ.cjs} +1 -1
- package/components/{field-group-C_kRq7pJ.js → field-group-CdDcdMO1.js} +3 -4
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -2
- package/components/{field-label-C0vfY1b6.cjs → field-label-B3IsGUTv.cjs} +2 -2
- package/components/{field-label-C28wWqC5.js → field-label-DOUnHwwh.js} +9 -15
- package/components/focus-group-C0ncbmUD.cjs +18 -0
- package/components/{focus-group-DVPa1zxz.js → focus-group-lQqPbdDl.js} +5 -7
- package/components/{focus-visible-DNHNlrty.cjs → focus-visible-BQAhwoxi.cjs} +1 -1
- package/components/{focus-visible-Bt2uDmuM.js → focus-visible-D6TRtUd7.js} +2 -3
- package/components/focusable-BIHTrJd6.cjs +18 -0
- package/components/{focusable-selectors-BWpiuXz5.js → focusable-selectors-BDNeWxbe.js} +1 -2
- package/components/{focusable-DuP0-Kuy.js → focusable-xjv79E40.js} +9 -17
- package/components/{get-label-from-slot-Bo9mqYCZ.js → get-label-from-slot-Bw5crGFw.js} +1 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +1 -2
- package/components/{icon-zOPAWCdx.cjs → icon-BlbMP3mJ.cjs} +1 -1
- package/components/{icon-CsJZMhIm.js → icon-DADJww_a.js} +4 -7
- package/components/index.cjs +1 -1
- package/components/index.js +71 -71
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +1 -2
- package/components/{infield-button-DiE8R6ol.js → infield-button-CeE_JxR6.js} +5 -7
- package/components/{infield-button-kilVRjwB.cjs → infield-button-uD1GqTLW.cjs} +1 -1
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -2
- package/components/{label-e6Y13vrS.js → label-D1v4e6mN.js} +3 -5
- package/components/{label-B3zs6OX0.cjs → label-uuwIy_Ge.cjs} +1 -1
- package/components/{language-resolution-BaKYDD1a.js → language-resolution-7rc0khIK.js} +3 -4
- package/components/{language-resolution-CSjktYg5.cjs → language-resolution-B7D3hQ6_.cjs} +1 -1
- package/components/{like-anchor-DXCaEv7O.js → like-anchor-DcFv8rEo.js} +2 -3
- package/components/{like-anchor-BX4PSB3d.cjs → like-anchor-De9STeWr.cjs} +1 -1
- package/components/{manage-help-text-ByLb0QYX.js → manage-help-text-CFUaqINN.js} +4 -6
- package/components/{match-media-C5X2OZiD.js → match-media-UNh23w4s.js} +1 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -2
- package/components/menu-BKwt6rnv.cjs +108 -0
- package/components/{menu-fdJseu1y.js → menu-L5qYivn6.js} +43 -67
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -2
- package/components/{multi-language-field-vJMK-osi.js → multi-language-field-NY2XwK2M.js} +6 -8
- package/components/{multi-language-field-BndVikur.cjs → multi-language-field-djoM4Okc.cjs} +1 -1
- package/components/notice/index.cjs +1 -1
- package/components/notice/index.js +1 -2
- package/components/{notice-CQI5kFRd.js → notice-CrLVNmqL.js} +6 -8
- package/components/{notice-CQFyo6OE.cjs → notice-f0p0TiGw.cjs} +1 -1
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -2
- package/components/{number-field-xxXgR70l.cjs → number-field-Ceeli_mh.cjs} +2 -2
- package/components/{number-field-DAOy_AvQ.js → number-field-D9UqpqpW.js} +12 -20
- package/components/{observe-slot-presence-BKY6n06-.js → observe-slot-presence-t2N_C6Ud.js} +1 -2
- package/components/{observe-slot-text-CvL-2ey3.cjs → observe-slot-text-BqwCIv2a.cjs} +1 -1
- package/components/{observe-slot-text-Db8Kx3P-.js → observe-slot-text-Dzkb_VqN.js} +2 -3
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -2
- package/components/{options-D_ifU0DH.js → options-BHDesKbF.js} +20 -31
- package/components/{options-CP9V2CSJ.cjs → options-Dk1uFeUT.cjs} +5 -5
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +2 -2
- package/components/overlay-DAOyrYJL.cjs +102 -0
- package/components/{overlay-DpHIYJtd.js → overlay-D_Xfq92b.js} +62 -118
- package/components/{pending-state-CGHvTtKR.cjs → pending-state-A6NrvaQj.cjs} +1 -1
- package/components/{pending-state-D_b45qvi.js → pending-state-BuYmUP6G.js} +2 -3
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -3
- package/components/{picker-Czkf6auL.js → picker-C5eX5WBl.js} +24 -40
- package/components/{picker-C1tD-4ac.cjs → picker-CQCAt4Mx.cjs} +4 -4
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -2
- package/components/{picker-button-B8Jbf9jK.cjs → picker-button-BWDfzx38.cjs} +2 -2
- package/components/{picker-button-CJQJshbo.js → picker-button-BhfY9gyk.js} +11 -12
- package/components/{platform-Ce9pNsR9.js → platform-CDW-WdXN.js} +1 -2
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -2
- package/components/{popover-BsdqkvKI.cjs → popover-CFzz83f8.cjs} +1 -1
- package/components/{popover-DC8tkee-.js → popover-CWrRLzOL.js} +4 -6
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -2
- package/components/{progress-bar-CrodWzcc.cjs → progress-bar-9Qg0PYAq.cjs} +2 -2
- package/components/{progress-bar-D4iFHkp7.js → progress-bar-D6wIZV5l.js} +16 -22
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -2
- package/components/{progress-circle-bO_VAX3N.cjs → progress-circle-C_9UZs2Y.cjs} +1 -1
- package/components/{progress-circle-By6qUQYe.js → progress-circle-DcGKwBTC.js} +5 -7
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -2
- package/components/progress-steps/progress-steps-model.d.ts +5 -0
- package/components/progress-steps/progress-steps.d.ts +4 -3
- package/components/progress-steps-5MhpnGKv.cjs +98 -0
- package/components/{progress-steps-CXJEaaUg.js → progress-steps-Byem5ieS.js} +43 -51
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -2
- package/components/{prompt-box-CA8bsoZP.js → prompt-box-CrtFGmjm.js} +80 -112
- package/components/{prompt-box-DyODaKXV.cjs → prompt-box-D7owyhfG.cjs} +15 -15
- package/components/question-box/index.cjs +1 -1
- package/components/question-box/index.js +1 -2
- package/components/{question-box-DSwTpxAW.js → question-box-BJYYLghb.js} +40 -86
- package/components/{question-box-cBeVshAq.cjs → question-box-ym1eakXA.cjs} +3 -3
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -2
- package/components/{radio-B6hX9Klr.js → radio-CyxICbLM.js} +9 -15
- package/components/{radio-CRTfoEX_.cjs → radio-Dd-GgUMm.cjs} +2 -2
- package/components/{random-id-CiMDyX7v.js → random-id-CO3s9i3n.js} +1 -2
- package/components/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/components/{roving-tabindex-pomAn3z-.js → roving-tabindex-BKMkfzY0.js} +2 -3
- package/components/{roving-tabindex-BoPao4td.cjs → roving-tabindex-BUFR8hPH.cjs} +1 -1
- package/components/{scaled-indicator-C-TupV4L.js → scaled-indicator-CsfzvTDr.js} +1 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -2
- package/components/{search-CFTOvmWA.js → search-C5uFmm6S.js} +7 -9
- package/components/{search-DJ6KwOam.cjs → search-DiCwSHFf.cjs} +1 -1
- package/components/segments-factory-BFgL5o9K.cjs +18 -0
- package/components/{segments-factory-BCRi1NKb.js → segments-factory-B_IBjpdp.js} +5 -12
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -2
- package/components/{select-CKMCEJf7.cjs → select-2Fvb7tpj.cjs} +6 -6
- package/components/{select-B86uAHme.js → select-HqF3tcHz.js} +31 -56
- package/components/{sized-mixin-DzQTebN-.js → sized-mixin-BmxIAuoH.js} +2 -3
- package/components/{sized-mixin-BT7cv-fT.cjs → sized-mixin-CSajkMro.cjs} +1 -1
- package/components/skeleton-loader/index.cjs +1 -1
- package/components/skeleton-loader/index.js +1 -2
- package/components/{skeleton-loader-CNcwCh4V.cjs → skeleton-loader-CEca0cqz.cjs} +1 -1
- package/components/{skeleton-loader-BeCsYADg.js → skeleton-loader-tin9y3xc.js} +3 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -2
- package/components/{slider-C_8pSK4N.cjs → slider-C1AdDTfB.cjs} +2 -2
- package/components/{slider-Bsl8Xrme.js → slider-Ch7OgTdj.js} +13 -26
- package/components/{slottable-request-event-MRSZbgTu.js → slottable-request-event-24jJOhbh.js} +1 -2
- package/components/split-view/index.cjs +1 -1
- package/components/split-view/index.js +1 -2
- package/components/{split-view-CDwHDmII.js → split-view-DDwpoN2O.js} +8 -11
- package/components/{split-view-BwCFYey6.cjs → split-view-DNVlr5VD.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -2
- package/components/{status-light-COApWq-B.cjs → status-light-Do6z53mM.cjs} +1 -1
- package/components/{status-light-B1T3aGJs.js → status-light-DqHhhZed.js} +5 -7
- package/components/strategies-C6hzAW86.cjs +18 -0
- package/components/{strategies-COS7mShJ.js → strategies-DgPG-vNk.js} +6 -13
- package/components/{streaming-listener-CtcMpYfS.js → streaming-listener-B6mDl4pZ.js} +1 -2
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -2
- package/components/{swatch-Bj2FARl1.js → swatch-BBVsuSAV.js} +25 -44
- package/components/{swatch-CQ0inIHK.cjs → swatch-DiNMN-SZ.cjs} +3 -3
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -2
- package/components/{switch-CpG-hSWY.js → switch-BBtewLDD.js} +6 -8
- package/components/{switch-qwpYXVnO.cjs → switch-DMhCYTgq.cjs} +1 -1
- package/components/table/index.cjs +1 -1
- package/components/table/index.js +1 -2
- package/components/{table-Bcq2K21l.cjs → table-CLMLGloR.cjs} +11 -11
- package/components/{table-BckZkgeh.js → table-DlOWqm5C.js} +47 -103
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -2
- package/components/{tabs-CMU8X4ho.cjs → tabs-B0WHKMuF.cjs} +2 -2
- package/components/{tabs-D8U2PxcE.js → tabs-Dkt0B_-A.js} +17 -22
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -2
- package/components/{tags-ZzY_q4TH.js → tags-Be4yrNPw.js} +9 -11
- package/components/{tags-D8F1o4UZ.cjs → tags-CHDNXpxh.cjs} +1 -1
- package/components/{template-property-DNDi7lQv.js → template-property-Bks4Db5C.js} +1 -2
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/{text-field-3fDtTQkR.cjs → text-field-BVl-HWzb.cjs} +1 -1
- package/components/{text-field-CmyqQxq0.js → text-field-D49lAD7L.js} +4 -5
- package/components/{text-field-CbN4nydd.cjs → text-field-DCcOZSvY.cjs} +1 -1
- package/components/{text-field-CmSym2QK.js → text-field-DpvP_tCP.js} +7 -10
- package/components/{text-field.module-BHhBReKL.js → text-field.module-hEHhPVFf.js} +1 -2
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -2
- package/components/{toast-DRrGgznK.cjs → toast-B6yesIcI.cjs} +1 -1
- package/components/{toast-KwHx-agn.js → toast-CXZUVaYz.js} +5 -7
- package/components/tokens.js +1 -2
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -2
- package/components/{tooltip-DjOW52n2.cjs → tooltip-BE01O3Sg.cjs} +1 -1
- package/components/{tooltip-xTa9Q5JW.js → tooltip-g2jd5Wsv.js} +19 -24
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -2
- package/components/{top-nav-81IKEGjR.cjs → top-nav-B0E1K_zf.cjs} +1 -1
- package/components/{top-nav-CXjnpdFR.js → top-nav-DiUCsUpZ.js} +9 -11
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -8
- package/components/{voice-recorder-CTg3kRxx.js → voice-recorder-BXY_l_78.js} +1 -2
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/standalone/accordion.js +6 -2
- package/standalone/action-bar.js +1 -1
- package/standalone/action-button.js +1 -1
- package/standalone/action-group.js +1 -1
- package/standalone/action-menu.js +1 -1
- package/standalone/avatar.js +1 -1
- package/standalone/badge.js +1 -1
- package/standalone/button-group.js +1 -1
- package/standalone/button.js +1 -1
- package/standalone/calendar.js +1 -1
- package/standalone/chat-message-group.js +1 -1
- package/standalone/chat-message.js +31 -31
- package/standalone/checkbox.js +1 -1
- package/standalone/chunks/NumberFormatter-COykocAS.js +2 -0
- package/standalone/chunks/NumberParser--1Rm0Yk7.js +2 -0
- package/standalone/chunks/{action-button-BJGE_BDu.js → action-button-0d4u0dWv.js} +1 -1
- package/standalone/chunks/{action-group-DTxf-0tP.js → action-group-DlClwXLO.js} +5 -1
- package/standalone/chunks/async-directive-ByLzVnWY.js +2 -0
- package/standalone/chunks/async-directive-DNgXlN7F.js +2 -0
- package/standalone/chunks/{badge-SNXdnyCZ.js → badge-DPFbBRCY.js} +1 -1
- package/standalone/chunks/{button-DTL9dD2r.js → button-Bgc3zdEa.js} +1 -1
- package/standalone/chunks/{button-DHan4NJY.js → button-BhSe7abg.js} +1 -1
- package/standalone/chunks/button-base-DLYrzCSm.js +9 -0
- package/standalone/chunks/calendar-BxARYymw.js +122 -0
- package/standalone/chunks/checkbox-Cl6YBcGA.js +9 -0
- package/standalone/chunks/{checkbox-mixin-BAQWmwps.js → checkbox-mixin-HnfmivU3.js} +1 -1
- package/standalone/chunks/class-map-E9JVium5.js +2 -0
- package/standalone/chunks/{clear-button-3zpCVxG5.js → clear-button-B4r_oxfc.js} +1 -1
- package/standalone/chunks/{close-button-C96dazyi.js → close-button-DVCeu3_f.js} +1 -1
- package/standalone/chunks/{color-area-Cj8oPsIF.js → color-area-BCI2oMGd.js} +3 -1
- package/standalone/chunks/color-controller-BlFueK6Y.js +2 -0
- package/standalone/chunks/{color-field-BFvUGE4L.js → color-field-BaVvupq0.js} +1 -1
- package/standalone/chunks/{color-handle-BHrAxEG2.js → color-handle-BLQiuRSS.js} +1 -1
- package/standalone/chunks/{color-loupe-C34cms5t.js → color-loupe-_dC69K1Z.js} +1 -1
- package/standalone/chunks/{color-menu-BIKuitbH.js → color-menu-BDZh85nX.js} +1 -1
- package/standalone/chunks/color-slider-Bipcekrc.js +49 -0
- package/standalone/chunks/{directive-helpers-Bu8icI7Y.js → directive-helpers-DM8VtBpR.js} +1 -1
- package/standalone/chunks/{divider-Bf9Drp2z.js → divider-vAjIOfo1.js} +1 -1
- package/standalone/chunks/{field-group-D8EjgC6F.js → field-group-C1oDgW9m.js} +1 -1
- package/standalone/chunks/{field-label-VWHDlW9_.js → field-label-Djcst_hn.js} +2 -2
- package/standalone/chunks/flow-CL5kBpdV.js +2 -0
- package/standalone/chunks/focus-group-xdTxdfaB.js +4 -0
- package/standalone/chunks/{icon-BypO7M7G.js → icon-6P1RsbD1.js} +1 -1
- package/standalone/chunks/{infield-button-D03MpU_s.js → infield-button-B8EkjwP9.js} +1 -1
- package/standalone/chunks/keyed-DYJaQjip.js +2 -0
- package/standalone/chunks/{language-resolution-BWHk9A73.js → language-resolution-BwIkGyuH.js} +1 -1
- package/standalone/chunks/lit-DWANyjiY.js +3 -0
- package/standalone/chunks/lucero-runtime-DMlHjBe_.js +18 -0
- package/standalone/chunks/{luzmo-icons-B-pCv-xg.js → luzmo-icons-vtQE0BSI.js} +1 -1
- package/standalone/chunks/{manage-help-text-Cl9OJ2xf.js → manage-help-text-DO3PkWgh.js} +1 -1
- package/standalone/chunks/menu-CefrRBIS.js +100 -0
- package/standalone/chunks/{number-field-B6BDXkL7.js → number-field-Dc4nBa6l.js} +2 -2
- package/standalone/chunks/observe-slot-presence-BxmG6A0m.js +2 -0
- package/standalone/chunks/options-rb_zaAJ6.js +89 -0
- package/standalone/chunks/overlay-CgQMEmrM.js +122 -0
- package/standalone/chunks/{pending-state-DxeRqe6Q.js → pending-state-DnTXKvtm.js} +1 -1
- package/standalone/chunks/{picker-jZI5AjVJ.js → picker-HoERLlkx.js} +4 -4
- package/standalone/chunks/{picker-button-BZWqDoNQ.js → picker-button-DbamPU-T.js} +2 -2
- package/standalone/chunks/platform-wNs7qaiE.js +10 -0
- package/standalone/chunks/{popover-BsB3dmQe.js → popover-Ca-FBqiU.js} +1 -1
- package/standalone/chunks/{progress-circle-CEx1b5Sv.js → progress-circle-CFtVq9Ou.js} +1 -1
- package/standalone/chunks/property-BsDbx7Z2.js +2 -0
- package/standalone/chunks/{radio-2vHhfmHw.js → radio-BJ3RhyUD.js} +2 -2
- package/standalone/chunks/random-id-0GBXy8EY.js +2 -0
- package/standalone/chunks/repeat-CtNle5_O.js +2 -0
- package/standalone/chunks/{roving-tabindex-CB4xC55P.js → roving-tabindex-CivopiNn.js} +1 -1
- package/standalone/chunks/scaled-indicator-Do5uhz24.js +10 -0
- package/standalone/chunks/segments-factory-B6oGyosS.js +2 -0
- package/standalone/chunks/{skeleton-loader-BxYcRRJr.js → skeleton-loader-CymPdQl3.js} +1 -1
- package/standalone/chunks/strategies-yujlVHBS.js +4 -0
- package/standalone/chunks/streaming-listener-DbMoHlSj.js +8 -0
- package/standalone/chunks/style-map-DmBaq1-c.js +2 -0
- package/standalone/chunks/{swatch-CGR_GWqO.js → swatch-DivHeYOK.js} +4 -4
- package/standalone/chunks/{template-property-Dn64faHO.js → template-property-CyrkVY0Q.js} +1 -1
- package/standalone/chunks/{text-field-4OKvLOXG.js → text-field-D5ncaa2n.js} +1 -1
- package/standalone/chunks/{text-field-C2oROxum.js → text-field-DXzpM1Qn.js} +1 -1
- package/standalone/chunks/{tooltip-DB6jRVyB.js → tooltip-B-j8PrNl.js} +13 -1
- package/standalone/chunks/{unsafe-html-BPQaWy0v.js → unsafe-html-BeDipvu3.js} +1 -1
- package/standalone/clear-button.js +1 -1
- package/standalone/close-button.js +1 -1
- package/standalone/color-area.js +1 -1
- package/standalone/color-field.js +1 -1
- package/standalone/color-handle.js +1 -1
- package/standalone/color-loupe.js +1 -1
- package/standalone/color-menu.js +1 -1
- package/standalone/color-palette-group.js +1 -1
- package/standalone/color-palette.js +1 -1
- package/standalone/color-picker.js +1 -1
- package/standalone/color-slider.js +1 -1
- package/standalone/date-range-picker.js +3 -3
- package/standalone/date-time-picker.js +3 -3
- package/standalone/divider.js +1 -1
- package/standalone/field-group.js +1 -1
- package/standalone/field-label.js +1 -1
- package/standalone/icon.js +1 -1
- package/standalone/infield-button.js +1 -1
- package/standalone/label.js +1 -1
- package/standalone/lit.js +1 -1
- package/standalone/manifest.json +65 -66
- package/standalone/menu.js +1 -1
- package/standalone/multi-language-field.js +1 -1
- package/standalone/notice.js +1 -1
- package/standalone/number-field.js +1 -1
- package/standalone/options.js +1 -1
- package/standalone/overlay.js +1 -1
- package/standalone/picker-button.js +1 -1
- package/standalone/picker.js +1 -1
- package/standalone/popover.js +1 -1
- package/standalone/progress-bar.js +2 -2
- package/standalone/progress-circle.js +1 -1
- package/standalone/progress-steps.js +10 -10
- package/standalone/prompt-box.js +17 -17
- package/standalone/question-box.js +3 -3
- package/standalone/radio.js +1 -1
- package/standalone/search.js +1 -1
- package/standalone/select.js +6 -6
- package/standalone/skeleton-loader.js +1 -1
- package/standalone/slider.js +2 -2
- package/standalone/split-view.js +1 -1
- package/standalone/status-light.js +1 -1
- package/standalone/swatch.js +1 -1
- package/standalone/switch.js +1 -1
- package/standalone/table.js +22 -22
- package/standalone/tabs.js +2 -2
- package/standalone/tags.js +1 -1
- package/standalone/text-field.js +1 -1
- package/standalone/toast.js +1 -1
- package/standalone/tooltip.js +1 -1
- package/standalone/top-nav.js +1 -1
- package/standalone/utils.js +1 -1
- package/components/chat-message-BDfomRm-.cjs +0 -148
- package/components/checkbox-JCvBro0K.cjs +0 -25
- package/components/color-controller-DbyPc33Y.cjs +0 -18
- package/components/focus-group-C8lOjbi9.cjs +0 -18
- package/components/focusable-B6h03pAe.cjs +0 -18
- package/components/menu-CrhA2iPZ.cjs +0 -108
- package/components/overlay-Dn7EbA_W.cjs +0 -102
- package/components/progress-steps-Dqh53oC1.cjs +0 -98
- package/components/segments-factory-DtPyN5sh.cjs +0 -18
- package/components/strategies-Bb7zEjrU.cjs +0 -18
- package/standalone/chunks/NumberFormatter-DMCfW685.js +0 -2
- package/standalone/chunks/NumberParser-r_jv94LA.js +0 -2
- package/standalone/chunks/async-directive-BA2_dM-5.js +0 -2
- package/standalone/chunks/async-directive-CPdA0BOw.js +0 -2
- package/standalone/chunks/button-base-C7jeeyLp.js +0 -9
- package/standalone/chunks/calendar-BOzu003d.js +0 -122
- package/standalone/chunks/checkbox-DQ4wPgG_.js +0 -9
- package/standalone/chunks/class-map-CxQ0PcQP.js +0 -2
- package/standalone/chunks/color-controller-fJNWRHVI.js +0 -2
- package/standalone/chunks/color-slider-CAqvxsgS.js +0 -41
- package/standalone/chunks/flow-aCcJ5kgi.js +0 -2
- package/standalone/chunks/focus-group-Cl6MLy-C.js +0 -2
- package/standalone/chunks/keyed-CNWmQd2J.js +0 -2
- package/standalone/chunks/lit-BN_lRQbJ.js +0 -3
- package/standalone/chunks/lucero-runtime-DGJ9-isg.js +0 -16
- package/standalone/chunks/menu-DSMoQt1w.js +0 -92
- package/standalone/chunks/observe-slot-presence-DWPtw22K.js +0 -2
- package/standalone/chunks/options-CkmITqgV.js +0 -89
- package/standalone/chunks/overlay-C4ir0iyC.js +0 -31
- package/standalone/chunks/overlay-C_XW8yry.js +0 -57
- package/standalone/chunks/platform-BfrBbd97.js +0 -2
- package/standalone/chunks/property-CLXrnTGx.js +0 -2
- package/standalone/chunks/random-id-CeLe5NEk.js +0 -2
- package/standalone/chunks/repeat-CZdNcszA.js +0 -2
- package/standalone/chunks/scaled-indicator-k-1JmS0b.js +0 -10
- package/standalone/chunks/segments-factory-Da9ojsLC.js +0 -2
- package/standalone/chunks/strategies-C-vW4MlK.js +0 -2
- package/standalone/chunks/streaming-listener-DFczLm8I.js +0 -2
- package/standalone/chunks/style-map-D4QeV3m0.js +0 -2
|
@@ -16,28 +16,34 @@
|
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
18
|
import "./tokens.js";
|
|
19
|
-
import { n as e, t } from "./decorate-
|
|
20
|
-
import { n } from "./sized-mixin-
|
|
21
|
-
import { t as r } from "./language-resolution-
|
|
19
|
+
import { n as e, t } from "./decorate-CpKsOs9z.js";
|
|
20
|
+
import { n } from "./sized-mixin-BmxIAuoH.js";
|
|
21
|
+
import { t as r } from "./language-resolution-7rc0khIK.js";
|
|
22
22
|
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
23
23
|
import { property as s, state as c } from "lit/decorators.js";
|
|
24
24
|
import { classMap as l } from "lit/directives/class-map.js";
|
|
25
25
|
import { unsafeHTML as u } from "lit/directives/unsafe-html.js";
|
|
26
|
-
|
|
26
|
+
// node_modules/dompurify/dist/purify.es.mjs
|
|
27
27
|
function d(e, t) {
|
|
28
|
+
this.v = e, this.k = t;
|
|
29
|
+
}
|
|
30
|
+
function f(e, t) {
|
|
28
31
|
(t == null || t > e.length) && (t = e.length);
|
|
29
32
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
30
33
|
return r;
|
|
31
34
|
}
|
|
32
|
-
function
|
|
35
|
+
function p(e) {
|
|
33
36
|
if (Array.isArray(e)) return e;
|
|
34
37
|
}
|
|
35
|
-
function
|
|
38
|
+
function ee(e, t) {
|
|
36
39
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
37
40
|
if (n != null) {
|
|
38
41
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
39
42
|
try {
|
|
40
|
-
if (a = (n = n.call(e)).next, t
|
|
43
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
44
|
+
if (Object(n) !== n) return;
|
|
45
|
+
c = !1;
|
|
46
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
41
47
|
} catch (e) {
|
|
42
48
|
l = !0, i = e;
|
|
43
49
|
} finally {
|
|
@@ -50,113 +56,170 @@ function p(e, t) {
|
|
|
50
56
|
return s;
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
|
-
function
|
|
59
|
+
function te() {
|
|
54
60
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
55
61
|
}
|
|
56
|
-
function te(e, t) {
|
|
57
|
-
return f(e) || p(e, t) || ne(e, t) || ee();
|
|
58
|
-
}
|
|
59
62
|
function ne(e, t) {
|
|
63
|
+
return p(e) || ee(e, t) || re(e, t) || te();
|
|
64
|
+
}
|
|
65
|
+
function re(e, t) {
|
|
60
66
|
if (e) {
|
|
61
|
-
if (typeof e == "string") return
|
|
67
|
+
if (typeof e == "string") return f(e, t);
|
|
62
68
|
var n = {}.toString.call(e).slice(8, -1);
|
|
63
|
-
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) ?
|
|
69
|
+
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) ? f(e, t) : void 0;
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
function ie(e) {
|
|
73
|
+
var t, n;
|
|
74
|
+
function r(t, n) {
|
|
75
|
+
try {
|
|
76
|
+
var a = e[t](n), o = a.value, s = o instanceof d;
|
|
77
|
+
Promise.resolve(s ? o.v : o).then(function(n) {
|
|
78
|
+
if (s) {
|
|
79
|
+
var c = t === "return" && o.k ? t : "next";
|
|
80
|
+
if (!o.k || n.done) return r(c, n);
|
|
81
|
+
n = e[c](n).value;
|
|
82
|
+
}
|
|
83
|
+
i(!!a.done, n);
|
|
84
|
+
}, function(e) {
|
|
85
|
+
r("throw", e);
|
|
86
|
+
});
|
|
87
|
+
} catch (e) {
|
|
88
|
+
i(2, e);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function i(e, i) {
|
|
92
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
93
|
+
value: i,
|
|
94
|
+
done: e
|
|
95
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
96
|
+
}
|
|
97
|
+
this._invoke = function(e, i) {
|
|
98
|
+
return new Promise(function(a, o) {
|
|
99
|
+
var s = {
|
|
100
|
+
key: e,
|
|
101
|
+
arg: i,
|
|
102
|
+
resolve: a,
|
|
103
|
+
reject: o,
|
|
104
|
+
next: null
|
|
105
|
+
};
|
|
106
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
107
|
+
});
|
|
108
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
109
|
+
}
|
|
110
|
+
ie.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
111
|
+
return this;
|
|
112
|
+
}, ie.prototype.next = function(e) {
|
|
113
|
+
return this._invoke("next", e);
|
|
114
|
+
}, ie.prototype.throw = function(e) {
|
|
115
|
+
return this._invoke("throw", e);
|
|
116
|
+
}, ie.prototype.return = function(e) {
|
|
117
|
+
return this._invoke("return", e);
|
|
118
|
+
};
|
|
119
|
+
var ae = Object.entries, oe = Object.setPrototypeOf, se = Object.isFrozen, m = Object.getPrototypeOf, ce = Object.getOwnPropertyDescriptor, h = Object.freeze, g = Object.seal, le = Object.create, _ = typeof Reflect < "u" && Reflect, ue = _.apply, de = _.construct;
|
|
120
|
+
h ||= function(e) {
|
|
68
121
|
return e;
|
|
69
|
-
},
|
|
122
|
+
}, g ||= function(e) {
|
|
70
123
|
return e;
|
|
71
|
-
},
|
|
124
|
+
}, ue ||= function(e, t) {
|
|
72
125
|
var n = [...arguments].slice(2);
|
|
73
126
|
return e.apply(t, n);
|
|
74
|
-
},
|
|
127
|
+
}, de ||= function(e) {
|
|
75
128
|
return new e(...[...arguments].slice(1));
|
|
76
129
|
};
|
|
77
|
-
var
|
|
78
|
-
|
|
130
|
+
var v = w(Array.prototype.forEach);
|
|
131
|
+
Array.prototype.indexOf;
|
|
132
|
+
var fe = w(Array.prototype.lastIndexOf), pe = w(Array.prototype.pop), me = w(Array.prototype.push), he = w(Array.prototype.slice), ge = w(Array.prototype.splice), _e = Array.isArray, ve = Ae(Set), ye = w(Set.prototype.add), be = w(Set.prototype.has), xe = w(String.prototype.toLowerCase), Se = w(String.prototype.toString), Ce = w(String.prototype.match), we = w(String.prototype.replace), Te = w(String.prototype.indexOf), Ee = w(String.prototype.trim), De = w(Number.prototype.toString), y = w(Boolean.prototype.toString), b = typeof BigInt > "u" ? null : w(BigInt.prototype.toString), Oe = typeof Symbol > "u" ? null : w(Symbol.prototype.toString), x = w(Object.prototype.hasOwnProperty), ke = w(Object.prototype.toString), S = w(RegExp.prototype.test), C = Ae(TypeError);
|
|
133
|
+
function w(e) {
|
|
79
134
|
return function(t) {
|
|
80
135
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
81
136
|
var n = [...arguments].slice(1);
|
|
82
|
-
return
|
|
137
|
+
return ue(e, t, n);
|
|
83
138
|
};
|
|
84
139
|
}
|
|
85
|
-
function
|
|
140
|
+
function Ae(e) {
|
|
86
141
|
return function() {
|
|
87
|
-
return
|
|
142
|
+
return de(e, [...arguments]);
|
|
88
143
|
};
|
|
89
144
|
}
|
|
90
|
-
function
|
|
91
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
92
|
-
if (
|
|
145
|
+
function T(e, t) {
|
|
146
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : xe;
|
|
147
|
+
if (oe && oe(e, null), !_e(t)) return e;
|
|
93
148
|
let r = t.length;
|
|
94
149
|
for (; r--;) {
|
|
95
150
|
let i = t[r];
|
|
96
151
|
if (typeof i == "string") {
|
|
97
152
|
let e = n(i);
|
|
98
|
-
e !== i && (
|
|
153
|
+
e !== i && (se(t) || (t[r] = e), i = e);
|
|
99
154
|
}
|
|
100
155
|
e[i] = !0;
|
|
101
156
|
}
|
|
102
157
|
return e;
|
|
103
158
|
}
|
|
104
|
-
function
|
|
105
|
-
for (let t = 0; t < e.length; t++)
|
|
159
|
+
function je(e) {
|
|
160
|
+
for (let t = 0; t < e.length; t++) x(e, t) || (e[t] = null);
|
|
106
161
|
return e;
|
|
107
162
|
}
|
|
108
|
-
function
|
|
109
|
-
let t =
|
|
110
|
-
for (let r of
|
|
111
|
-
var n =
|
|
163
|
+
function E(e) {
|
|
164
|
+
let t = le(null);
|
|
165
|
+
for (let r of ae(e)) {
|
|
166
|
+
var n = ne(r, 2);
|
|
112
167
|
let i = n[0], a = n[1];
|
|
113
|
-
|
|
168
|
+
x(e, i) && (t[i] = _e(a) ? je(a) : a && typeof a == "object" && a.constructor === Object ? E(a) : a);
|
|
114
169
|
}
|
|
115
170
|
return t;
|
|
116
171
|
}
|
|
117
|
-
function
|
|
172
|
+
function Me(e) {
|
|
118
173
|
switch (typeof e) {
|
|
119
174
|
case "string": return e;
|
|
120
|
-
case "number": return
|
|
121
|
-
case "boolean": return
|
|
122
|
-
case "bigint": return
|
|
123
|
-
case "symbol": return
|
|
124
|
-
case "undefined": return
|
|
175
|
+
case "number": return De(e);
|
|
176
|
+
case "boolean": return y(e);
|
|
177
|
+
case "bigint": return b ? b(e) : "0";
|
|
178
|
+
case "symbol": return Oe ? Oe(e) : "Symbol()";
|
|
179
|
+
case "undefined": return ke(e);
|
|
125
180
|
case "function":
|
|
126
181
|
case "object": {
|
|
127
|
-
if (e === null) return
|
|
128
|
-
let t = e, n =
|
|
182
|
+
if (e === null) return ke(e);
|
|
183
|
+
let t = e, n = D(t, "toString");
|
|
129
184
|
if (typeof n == "function") {
|
|
130
185
|
let e = n(t);
|
|
131
|
-
return typeof e == "string" ? e :
|
|
186
|
+
return typeof e == "string" ? e : ke(e);
|
|
132
187
|
}
|
|
133
|
-
return
|
|
188
|
+
return ke(e);
|
|
134
189
|
}
|
|
135
|
-
default: return
|
|
190
|
+
default: return ke(e);
|
|
136
191
|
}
|
|
137
192
|
}
|
|
138
|
-
function
|
|
193
|
+
function D(e, t) {
|
|
139
194
|
for (; e !== null;) {
|
|
140
|
-
let n =
|
|
195
|
+
let n = ce(e, t);
|
|
141
196
|
if (n) {
|
|
142
|
-
if (n.get) return
|
|
143
|
-
if (typeof n.value == "function") return
|
|
197
|
+
if (n.get) return w(n.get);
|
|
198
|
+
if (typeof n.value == "function") return w(n.value);
|
|
144
199
|
}
|
|
145
|
-
e =
|
|
200
|
+
e = m(e);
|
|
146
201
|
}
|
|
147
202
|
function n() {
|
|
148
203
|
return null;
|
|
149
204
|
}
|
|
150
205
|
return n;
|
|
151
206
|
}
|
|
152
|
-
function
|
|
207
|
+
function Ne(e, t) {
|
|
208
|
+
for (; e !== null;) {
|
|
209
|
+
let n = ce(e, t);
|
|
210
|
+
if (n) return n.get ? w(n.get) : null;
|
|
211
|
+
e = m(e);
|
|
212
|
+
}
|
|
213
|
+
return null;
|
|
214
|
+
}
|
|
215
|
+
function Pe(e) {
|
|
153
216
|
try {
|
|
154
|
-
return
|
|
217
|
+
return S(e, ""), !0;
|
|
155
218
|
} catch {
|
|
156
219
|
return !1;
|
|
157
220
|
}
|
|
158
221
|
}
|
|
159
|
-
var
|
|
222
|
+
var Fe = 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(".")), Ie = h(/* @__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(".")), Le = h([
|
|
160
223
|
"feBlend",
|
|
161
224
|
"feColorMatrix",
|
|
162
225
|
"feComponentTransfer",
|
|
@@ -182,7 +245,7 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
182
245
|
"feSpotLight",
|
|
183
246
|
"feTile",
|
|
184
247
|
"feTurbulence"
|
|
185
|
-
]),
|
|
248
|
+
]), Re = h([
|
|
186
249
|
"animate",
|
|
187
250
|
"color-profile",
|
|
188
251
|
"cursor",
|
|
@@ -205,7 +268,7 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
205
268
|
"solidcolor",
|
|
206
269
|
"unknown",
|
|
207
270
|
"use"
|
|
208
|
-
]),
|
|
271
|
+
]), ze = 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(".")), Be = h([
|
|
209
272
|
"maction",
|
|
210
273
|
"maligngroup",
|
|
211
274
|
"malignmark",
|
|
@@ -221,13 +284,13 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
221
284
|
"annotation-xml",
|
|
222
285
|
"mprescripts",
|
|
223
286
|
"none"
|
|
224
|
-
]),
|
|
287
|
+
]), Ve = h(["#text"]), He = 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(".")), Ue = 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(".")), We = 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(".")), Ge = h([
|
|
225
288
|
"xlink:href",
|
|
226
289
|
"xml:id",
|
|
227
290
|
"xlink:title",
|
|
228
291
|
"xml:space",
|
|
229
292
|
"xmlns:xlink"
|
|
230
|
-
]),
|
|
293
|
+
]), Ke = g(/{{[\w\W]*|^[\w\W]*}}/g), qe = g(/<%[\w\W]*|^[\w\W]*%>/g), Je = g(/\${[\w\W]*/g), Ye = g(/^data-[\-\w.\u00B7-\uFFFF]+$/), Xe = g(/^aria-[\-\w]+$/), Ze = g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Qe = g(/^(?:\w+script|data):/i), $e = g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), et = g(/^html$/i), tt = g(/^[a-z][.\w]*(-[.\w]+)+$/i), nt = g(/<[/\w!]/g), rt = g(/<[/\w]/g), it = g(/<\/no(script|embed|frames)/i), at = g(/\/>/i), O = {
|
|
231
294
|
element: 1,
|
|
232
295
|
attribute: 2,
|
|
233
296
|
text: 3,
|
|
@@ -240,7 +303,7 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
240
303
|
documentType: 10,
|
|
241
304
|
documentFragment: 11,
|
|
242
305
|
notation: 12
|
|
243
|
-
},
|
|
306
|
+
}, ot = h(T({}, [
|
|
244
307
|
"style",
|
|
245
308
|
"script",
|
|
246
309
|
"xmp",
|
|
@@ -249,14 +312,9 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
249
312
|
"noframes",
|
|
250
313
|
"plaintext",
|
|
251
314
|
"noscript"
|
|
252
|
-
]
|
|
253
|
-
let e = {};
|
|
254
|
-
return ue(tt, (t) => {
|
|
255
|
-
e[t] = _(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
256
|
-
}), g(e);
|
|
257
|
-
}(), it = function() {
|
|
315
|
+
])), st = function() {
|
|
258
316
|
return typeof window > "u" ? null : window;
|
|
259
|
-
},
|
|
317
|
+
}, ct = function(e, t) {
|
|
260
318
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
261
319
|
let n = null, r = "data-tt-policy-suffix";
|
|
262
320
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -273,7 +331,7 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
273
331
|
} catch {
|
|
274
332
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
275
333
|
}
|
|
276
|
-
},
|
|
334
|
+
}, lt = function() {
|
|
277
335
|
return {
|
|
278
336
|
afterSanitizeAttributes: [],
|
|
279
337
|
afterSanitizeElements: [],
|
|
@@ -285,60 +343,62 @@ var Ae = g(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
285
343
|
uponSanitizeElement: [],
|
|
286
344
|
uponSanitizeShadowNode: []
|
|
287
345
|
};
|
|
288
|
-
},
|
|
289
|
-
return
|
|
290
|
-
},
|
|
291
|
-
let r =
|
|
292
|
-
return r && typeof r == "object" ?
|
|
346
|
+
}, ut = function(e, t, n, r) {
|
|
347
|
+
return x(e, t) && _e(e[t]) ? T(r.base ? E(r.base) : {}, e[t], r.transform) : n;
|
|
348
|
+
}, dt = function(e, t, n) {
|
|
349
|
+
let r = x(e, t) ? e[t] : void 0;
|
|
350
|
+
return r && typeof r == "object" ? E(r) : n();
|
|
293
351
|
};
|
|
294
|
-
function
|
|
295
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
296
|
-
if (t.version = "3.4.
|
|
352
|
+
function ft() {
|
|
353
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : st(), t = (e) => ft(e);
|
|
354
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== O.document || !e.Element) return t.isSupported = !1, t;
|
|
297
355
|
let n = e.document, r = n, i = r.currentScript;
|
|
298
356
|
e.DocumentFragment;
|
|
299
357
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
300
358
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
301
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f =
|
|
302
|
-
return
|
|
303
|
-
},
|
|
304
|
-
return
|
|
359
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = D(d, "cloneNode"), p = D(d, "remove"), ee = D(d, "removeAttributeNode"), te = D(d, "nextSibling"), ne = D(d, "childNodes"), re = D(d, "parentNode"), ie = D(d, "shadowRoot"), oe = D(d, "attributes"), se = o && o.prototype ? D(o.prototype, "nodeType") : null, m = o && o.prototype ? D(o.prototype, "nodeName") : null, ce = o && o.prototype ? D(o.prototype, "ownerDocument") : null, _ = function(e) {
|
|
360
|
+
return se ? se(e) : e.nodeType;
|
|
361
|
+
}, ue = function(e) {
|
|
362
|
+
return m ? m(e) : e.nodeName;
|
|
363
|
+
}, de = Ne(d, "namespaceURI"), De = function(e) {
|
|
364
|
+
return de ? de(e) : e.namespaceURI;
|
|
305
365
|
};
|
|
306
366
|
if (typeof a == "function") {
|
|
307
367
|
let e = n.createElement("template");
|
|
308
368
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
309
369
|
}
|
|
310
|
-
let
|
|
311
|
-
if (
|
|
312
|
-
},
|
|
313
|
-
|
|
370
|
+
let y, b = "", Oe, ke = !1, w = 0, Ae = function() {
|
|
371
|
+
if (w > 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.");
|
|
372
|
+
}, je = function(e) {
|
|
373
|
+
Ae(), w++;
|
|
314
374
|
try {
|
|
315
|
-
return
|
|
375
|
+
return y.createHTML(e);
|
|
316
376
|
} finally {
|
|
317
|
-
|
|
377
|
+
w--;
|
|
318
378
|
}
|
|
319
|
-
},
|
|
320
|
-
|
|
379
|
+
}, pt = function(e) {
|
|
380
|
+
Ae(), w++;
|
|
321
381
|
try {
|
|
322
|
-
return
|
|
382
|
+
return y.createScriptURL(e);
|
|
323
383
|
} finally {
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
return
|
|
328
|
-
},
|
|
329
|
-
t.isSupported = typeof
|
|
330
|
-
let
|
|
331
|
-
...
|
|
332
|
-
...
|
|
333
|
-
...Me,
|
|
334
|
-
...Pe,
|
|
335
|
-
...Ie
|
|
336
|
-
]), M = null, wt = C({}, [
|
|
384
|
+
w--;
|
|
385
|
+
}
|
|
386
|
+
}, mt = function() {
|
|
387
|
+
return ke ||= (Oe = ct(u, i), !0), Oe;
|
|
388
|
+
}, k = n, ht = k.implementation, A = k.createNodeIterator, gt = k.createDocumentFragment, j = k.getElementsByTagName, _t = r.importNode, M = lt();
|
|
389
|
+
t.isSupported = typeof ae == "function" && typeof re == "function" && ht && ht.createHTMLDocument !== void 0;
|
|
390
|
+
let vt = Ke, yt = qe, bt = Je, xt = Ye, St = Xe, Ct = Qe, wt = $e, Tt = tt, Et = Ze, N = null, Dt = T({}, [
|
|
391
|
+
...Fe,
|
|
392
|
+
...Ie,
|
|
337
393
|
...Le,
|
|
338
|
-
...Re,
|
|
339
394
|
...ze,
|
|
340
|
-
...
|
|
341
|
-
]),
|
|
395
|
+
...Ve
|
|
396
|
+
]), P = null, Ot = T({}, [
|
|
397
|
+
...He,
|
|
398
|
+
...Ue,
|
|
399
|
+
...We,
|
|
400
|
+
...Ge
|
|
401
|
+
]), F = Object.seal(le(null, {
|
|
342
402
|
tagNameCheck: {
|
|
343
403
|
writable: !0,
|
|
344
404
|
configurable: !1,
|
|
@@ -357,7 +417,7 @@ function lt() {
|
|
|
357
417
|
enumerable: !0,
|
|
358
418
|
value: !1
|
|
359
419
|
}
|
|
360
|
-
})),
|
|
420
|
+
})), I = null, kt = null, L = Object.seal(le(null, {
|
|
361
421
|
tagCheck: {
|
|
362
422
|
writable: !0,
|
|
363
423
|
configurable: !1,
|
|
@@ -370,14 +430,14 @@ function lt() {
|
|
|
370
430
|
enumerable: !0,
|
|
371
431
|
value: null
|
|
372
432
|
}
|
|
373
|
-
})),
|
|
433
|
+
})), At = !0, jt = !0, Mt = !1, Nt = !0, R = !1, Pt = !0, Ft = !1, It = !1, Lt = null, Rt = null, zt = !1, z = !1, Bt = !1, Vt = !1, Ht = !0, Ut = !1, Wt = "user-content-", Gt = !0, Kt = !1, B = null, qt = {}, Jt = null, Yt = T({}, /* @__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(".")), Xt = null, Zt = T({}, [
|
|
374
434
|
"audio",
|
|
375
435
|
"video",
|
|
376
436
|
"img",
|
|
377
437
|
"source",
|
|
378
438
|
"image",
|
|
379
439
|
"track"
|
|
380
|
-
]),
|
|
440
|
+
]), Qt = null, $t = T({}, [
|
|
381
441
|
"alt",
|
|
382
442
|
"class",
|
|
383
443
|
"for",
|
|
@@ -392,77 +452,72 @@ function lt() {
|
|
|
392
452
|
"value",
|
|
393
453
|
"style",
|
|
394
454
|
"xmlns"
|
|
395
|
-
]),
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
],
|
|
455
|
+
]), en = "http://www.w3.org/1998/Math/MathML", tn = "http://www.w3.org/2000/svg", V = "http://www.w3.org/1999/xhtml", nn = V, rn = !1, an = null, on = T({}, [
|
|
456
|
+
en,
|
|
457
|
+
tn,
|
|
458
|
+
V
|
|
459
|
+
], Se), sn = h([
|
|
400
460
|
"mi",
|
|
401
461
|
"mo",
|
|
402
462
|
"mn",
|
|
403
463
|
"ms",
|
|
404
464
|
"mtext"
|
|
405
|
-
]),
|
|
465
|
+
]), cn = T({}, sn), ln = h(["annotation-xml"]), un = T({}, ln), dn = T({}, [
|
|
406
466
|
"title",
|
|
407
467
|
"style",
|
|
408
468
|
"font",
|
|
409
469
|
"a",
|
|
410
470
|
"script"
|
|
411
|
-
]),
|
|
471
|
+
]), fn = null, pn = ["application/xhtml+xml", "text/html"], H = null, U = null, mn = n.createElement("form"), hn = function(e) {
|
|
412
472
|
return e instanceof RegExp || e instanceof Function;
|
|
413
|
-
},
|
|
473
|
+
}, gn = function() {
|
|
414
474
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
415
|
-
if (
|
|
416
|
-
|
|
417
|
-
transform:
|
|
418
|
-
base:
|
|
419
|
-
}),
|
|
420
|
-
transform:
|
|
421
|
-
base:
|
|
422
|
-
}),
|
|
423
|
-
let t =
|
|
424
|
-
if (
|
|
475
|
+
if (U && U === e) return;
|
|
476
|
+
e && typeof e == "object" || (e = {}), e = E(e), fn = pn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, H = fn === "application/xhtml+xml" ? Se : xe, N = ut(e, "ALLOWED_TAGS", Dt, { transform: H }), P = ut(e, "ALLOWED_ATTR", Ot, { transform: H }), an = ut(e, "ALLOWED_NAMESPACES", on, { transform: Se }), Qt = ut(e, "ADD_URI_SAFE_ATTR", $t, {
|
|
477
|
+
transform: H,
|
|
478
|
+
base: $t
|
|
479
|
+
}), Xt = ut(e, "ADD_DATA_URI_TAGS", Zt, {
|
|
480
|
+
transform: H,
|
|
481
|
+
base: Zt
|
|
482
|
+
}), Jt = ut(e, "FORBID_CONTENTS", Yt, { transform: H }), I = ut(e, "FORBID_TAGS", E({}), { transform: H }), kt = ut(e, "FORBID_ATTR", E({}), { transform: H }), qt = x(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? E(e.USE_PROFILES) : e.USE_PROFILES : !1, At = e.ALLOW_ARIA_ATTR !== !1, jt = e.ALLOW_DATA_ATTR !== !1, Mt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Nt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = e.SAFE_FOR_TEMPLATES || !1, Pt = e.SAFE_FOR_XML !== !1, Ft = e.WHOLE_DOCUMENT || !1, z = 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, Et = Pe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Ze, nn = typeof e.NAMESPACE == "string" ? e.NAMESPACE : V, cn = dt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => T({}, sn)), un = dt(e, "HTML_INTEGRATION_POINTS", () => T({}, ln));
|
|
483
|
+
let t = dt(e, "CUSTOM_ELEMENT_HANDLING", () => le(null));
|
|
484
|
+
if (F = le(null), x(t, "tagNameCheck") && hn(t.tagNameCheck) && (F.tagNameCheck = t.tagNameCheck), x(t, "attributeNameCheck") && hn(t.attributeNameCheck) && (F.attributeNameCheck = t.attributeNameCheck), x(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), g(F), R && (jt = !1), Bt && (z = !0), qt && (N = T({}, Ve), P = le(null), qt.html === !0 && (T(N, Fe), T(P, He)), qt.svg === !0 && (T(N, Ie), T(P, Ue), T(P, Ge)), qt.svgFilters === !0 && (T(N, Le), T(P, Ue), T(P, Ge)), qt.mathMl === !0 && (T(N, ze), T(P, We), T(P, Ge))), L.tagCheck = null, L.attributeCheck = null, x(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? L.tagCheck = e.ADD_TAGS : _e(e.ADD_TAGS) && (N === Dt && (N = E(N)), T(N, e.ADD_TAGS, H))), x(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? L.attributeCheck = e.ADD_ATTR : _e(e.ADD_ATTR) && (P === Ot && (P = E(P)), T(P, e.ADD_ATTR, H))), x(e, "ADD_FORBID_CONTENTS") && _e(e.ADD_FORBID_CONTENTS) && (Jt === Yt && (Jt = E(Jt)), T(Jt, e.ADD_FORBID_CONTENTS, H)), Gt && (N["#text"] = !0), Ft && T(N, [
|
|
425
485
|
"html",
|
|
426
486
|
"head",
|
|
427
487
|
"body"
|
|
428
|
-
]),
|
|
429
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
430
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
431
|
-
let t =
|
|
432
|
-
|
|
488
|
+
]), N.table && (T(N, ["tbody"]), delete I.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
489
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
490
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw C("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
491
|
+
let t = y;
|
|
492
|
+
y = e.TRUSTED_TYPES_POLICY;
|
|
433
493
|
try {
|
|
434
|
-
|
|
494
|
+
b = je("");
|
|
435
495
|
} catch (e) {
|
|
436
|
-
throw
|
|
496
|
+
throw y = t, e;
|
|
437
497
|
}
|
|
438
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
...
|
|
442
|
-
...
|
|
443
|
-
...
|
|
444
|
-
]),
|
|
445
|
-
return t.namespaceURI ===
|
|
446
|
-
},
|
|
447
|
-
return t.namespaceURI ===
|
|
448
|
-
},
|
|
449
|
-
return t.namespaceURI ===
|
|
450
|
-
},
|
|
451
|
-
let t =
|
|
452
|
-
(
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
});
|
|
456
|
-
let n = ge(e.tagName), r = ge(t.tagName);
|
|
457
|
-
return Qt[e.namespaceURI] ? e.namespaceURI === Yt ? U(n, t, r) : e.namespaceURI === Jt ? pn(n, t, r) : e.namespaceURI === B ? mn(n, t, r) : !!(on === "application/xhtml+xml" && Qt[e.namespaceURI]) : !1;
|
|
458
|
-
}, G = function(e) {
|
|
459
|
-
pe(t.removed, { element: e });
|
|
498
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, b = "") : (y === void 0 && (y = mt()), y && typeof b == "string" && (b = je("")));
|
|
499
|
+
h && h(e), U = e;
|
|
500
|
+
}, W = T({}, [
|
|
501
|
+
...Ie,
|
|
502
|
+
...Le,
|
|
503
|
+
...Re
|
|
504
|
+
]), _n = T({}, [...ze, ...Be]), vn = function(e, t, n) {
|
|
505
|
+
return t.namespaceURI === V ? e === "svg" : t.namespaceURI === en ? e === "svg" && (n === "annotation-xml" || cn[n]) : !!W[e];
|
|
506
|
+
}, G = function(e, t, n) {
|
|
507
|
+
return t.namespaceURI === V ? e === "math" : t.namespaceURI === tn ? e === "math" && un[n] : !!_n[e];
|
|
508
|
+
}, yn = function(e, t, n) {
|
|
509
|
+
return t.namespaceURI === tn && !un[n] || t.namespaceURI === en && !cn[n] ? !1 : !_n[e] && (dn[e] || !W[e]);
|
|
510
|
+
}, bn = function(e) {
|
|
511
|
+
let t = De(e), n = xe(ue(e)), r = re(e), i, a;
|
|
512
|
+
return r && _(r) === O.element ? (i = { namespaceURI: De(r) }, a = xe(ue(r))) : (i = { namespaceURI: nn }, a = "template"), an[t] ? t === tn ? vn(n, i, a) : t === en ? G(n, i, a) : t === V ? yn(n, i, a) : !!(fn === "application/xhtml+xml" && an[t]) : !1;
|
|
513
|
+
}, xn = function(e) {
|
|
514
|
+
me(t.removed, { element: e });
|
|
460
515
|
try {
|
|
461
|
-
|
|
516
|
+
re(e).removeChild(e);
|
|
462
517
|
} catch {
|
|
463
|
-
if (p(e), !
|
|
518
|
+
if (p(e), !re(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");
|
|
464
519
|
}
|
|
465
|
-
},
|
|
520
|
+
}, Sn = function(e, t, n) {
|
|
466
521
|
try {
|
|
467
522
|
ee(e, t);
|
|
468
523
|
} catch {
|
|
@@ -470,23 +525,18 @@ function lt() {
|
|
|
470
525
|
e.removeAttribute(n);
|
|
471
526
|
} catch {}
|
|
472
527
|
}
|
|
473
|
-
},
|
|
474
|
-
|
|
528
|
+
}, Cn = function(e) {
|
|
529
|
+
Tn(e);
|
|
475
530
|
let t = ne(e);
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
p(e);
|
|
483
|
-
} catch {}
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
let n = ae(e);
|
|
531
|
+
t && v(he(t), (e) => {
|
|
532
|
+
try {
|
|
533
|
+
p(e);
|
|
534
|
+
} catch {}
|
|
535
|
+
});
|
|
536
|
+
let n = _(e) === O.element ? oe(e) : null;
|
|
487
537
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
488
538
|
let r = n[t], i = r && r.name;
|
|
489
|
-
typeof i == "string" &&
|
|
539
|
+
typeof i == "string" && Sn(e, r, i);
|
|
490
540
|
}
|
|
491
541
|
}, K = function(e, n, r) {
|
|
492
542
|
if (!r) try {
|
|
@@ -494,7 +544,7 @@ function lt() {
|
|
|
494
544
|
} catch {
|
|
495
545
|
r = null;
|
|
496
546
|
}
|
|
497
|
-
|
|
547
|
+
me(t.removed, {
|
|
498
548
|
attribute: r || null,
|
|
499
549
|
from: n
|
|
500
550
|
});
|
|
@@ -505,112 +555,157 @@ function lt() {
|
|
|
505
555
|
n.removeAttribute(e);
|
|
506
556
|
} catch {}
|
|
507
557
|
}
|
|
508
|
-
if (e === "is")
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
558
|
+
if (e === "is") {
|
|
559
|
+
if (z || Bt) try {
|
|
560
|
+
xn(n);
|
|
561
|
+
} catch {}
|
|
562
|
+
else try {
|
|
563
|
+
n.setAttribute(e, "");
|
|
564
|
+
} catch {}
|
|
565
|
+
}
|
|
566
|
+
}, q = function(e) {
|
|
567
|
+
let t = oe(e);
|
|
516
568
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
517
569
|
let r = t[n], i = r && r.name;
|
|
518
|
-
typeof i != "string" ||
|
|
570
|
+
typeof i != "string" || P[H(i)] || Sn(e, r, i);
|
|
571
|
+
}
|
|
572
|
+
}, wn = function(e, t) {
|
|
573
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
574
|
+
for (; r.length > 0;) {
|
|
575
|
+
let e = r.pop();
|
|
576
|
+
if (t(e) === !1) continue;
|
|
577
|
+
if (n && _(e) === O.element) {
|
|
578
|
+
let t = ie(e);
|
|
579
|
+
Q(t) && r.push(t);
|
|
580
|
+
}
|
|
581
|
+
let i = ne(e);
|
|
582
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
583
|
+
}
|
|
584
|
+
}, Tn = function(e) {
|
|
585
|
+
wn(e, (e) => {
|
|
586
|
+
_(e) === O.element && q(e);
|
|
587
|
+
});
|
|
588
|
+
}, J = function(e) {
|
|
589
|
+
let t = [];
|
|
590
|
+
return wn(e, (e) => {
|
|
591
|
+
t.push(e);
|
|
592
|
+
}, !0), t;
|
|
593
|
+
}, En = function(e, t) {
|
|
594
|
+
let n = ve();
|
|
595
|
+
v(J(e), (e) => {
|
|
596
|
+
_(e) === O.element && ye(n, e);
|
|
597
|
+
}), v(t, (e) => {
|
|
598
|
+
_(e) === O.element && !be(n, e) && q(e);
|
|
599
|
+
});
|
|
600
|
+
}, Y = function(e, n) {
|
|
601
|
+
let r = !1;
|
|
602
|
+
return v(t.removed, (t) => {
|
|
603
|
+
t.element && (r ||= t.element === e, Tn(t.element));
|
|
604
|
+
}), En(e, n), r;
|
|
605
|
+
}, X = function(e, t) {
|
|
606
|
+
let n = B, r = null, i = () => (r || (r = ve(), v(t, (e) => {
|
|
607
|
+
ye(r, e);
|
|
608
|
+
})), r);
|
|
609
|
+
for (let t = 0;; t++) {
|
|
610
|
+
let r = J(e), a = [e], o = !1;
|
|
611
|
+
if (v(r, (e) => {
|
|
612
|
+
_(e) === O.documentFragment ? me(a, e) : !o && !be(n, e) && (o = be(i(), e));
|
|
613
|
+
}), !o) return;
|
|
614
|
+
if (t >= 8) throw C("the tree kept changing during in-place sanitization; refusing to return it");
|
|
615
|
+
v(a, (t, n) => {
|
|
616
|
+
Dn(t, n > 0, e, i());
|
|
617
|
+
});
|
|
519
618
|
}
|
|
520
|
-
},
|
|
521
|
-
let
|
|
522
|
-
for (; t.
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
if (!I) return;
|
|
532
|
-
let t = [e];
|
|
533
|
-
for (; t.length > 0;) {
|
|
534
|
-
let e = t.pop(), n = le(e);
|
|
535
|
-
if (n === E.processingInstruction || n === E.comment && x(Qe, e.data)) {
|
|
619
|
+
}, Dn = function(e, t, n, r) {
|
|
620
|
+
let i = jn(e), a;
|
|
621
|
+
for (; a = i.nextNode();) be(r, a) && !be(B, a) && (t && $(M.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Q(a.content) && Xn(a.content));
|
|
622
|
+
}, Z = function(e) {
|
|
623
|
+
B && ye(B, e);
|
|
624
|
+
}, On = function(e, t) {
|
|
625
|
+
return Pt ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
626
|
+
}, kn = function(e) {
|
|
627
|
+
Pt && wn(e, (e) => {
|
|
628
|
+
let t = _(e);
|
|
629
|
+
if (t === O.processingInstruction || t === O.comment && S(rt, e.data)) {
|
|
536
630
|
try {
|
|
537
631
|
p(e);
|
|
538
632
|
} catch {}
|
|
539
|
-
|
|
633
|
+
return !1;
|
|
540
634
|
}
|
|
541
|
-
if (
|
|
542
|
-
let t = e, n =
|
|
635
|
+
if (t === O.element) {
|
|
636
|
+
let t = e, n = H(ue(e));
|
|
543
637
|
try {
|
|
544
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
638
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && On("for", n) && t.removeAttribute("for");
|
|
545
639
|
} catch {}
|
|
546
640
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}, bn = function(e) {
|
|
641
|
+
return !0;
|
|
642
|
+
});
|
|
643
|
+
}, An = function(e) {
|
|
551
644
|
let t = null, r = null;
|
|
552
|
-
if (
|
|
645
|
+
if (zt) e = "<remove></remove>" + e;
|
|
553
646
|
else {
|
|
554
|
-
let t =
|
|
647
|
+
let t = Ce(e, /^[\r\n\t ]+/);
|
|
555
648
|
r = t && t[0];
|
|
556
649
|
}
|
|
557
|
-
|
|
558
|
-
let i =
|
|
559
|
-
if (
|
|
560
|
-
t = new l().parseFromString(i,
|
|
650
|
+
fn === "application/xhtml+xml" && nn === V && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
651
|
+
let i = y ? je(e) : e;
|
|
652
|
+
if (nn === V) try {
|
|
653
|
+
t = new l().parseFromString(i, fn);
|
|
561
654
|
} catch {}
|
|
562
655
|
if (!t || !t.documentElement) {
|
|
563
|
-
t =
|
|
656
|
+
t = ht.createDocument(nn, "template", null);
|
|
564
657
|
try {
|
|
565
|
-
t.documentElement.innerHTML =
|
|
658
|
+
t.documentElement.innerHTML = rn ? b : i;
|
|
566
659
|
} catch {}
|
|
567
660
|
}
|
|
568
661
|
let a = t.body || t.documentElement;
|
|
569
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
570
|
-
},
|
|
662
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), nn === V ? j.call(t, Ft ? "html" : "body")[0] : Ft ? t.documentElement : a;
|
|
663
|
+
}, jn = function(e) {
|
|
571
664
|
let t = ce ? ce(e) : e.ownerDocument;
|
|
572
|
-
return
|
|
573
|
-
},
|
|
574
|
-
return e =
|
|
575
|
-
},
|
|
576
|
-
e
|
|
577
|
-
let t =
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
i && ue(i, (e) => {
|
|
581
|
-
xn(e.content) && X(e.content);
|
|
665
|
+
return A.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
666
|
+
}, Mn = function(e) {
|
|
667
|
+
return e = we(e, vt, " "), e = we(e, yt, " "), e = we(e, bt, " "), e;
|
|
668
|
+
}, Nn = function(e) {
|
|
669
|
+
Pn(e);
|
|
670
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
671
|
+
t && v(t, (e) => {
|
|
672
|
+
Q(e.content) && Nn(e.content);
|
|
582
673
|
});
|
|
583
|
-
},
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
674
|
+
}, Pn = function(e) {
|
|
675
|
+
e.normalize();
|
|
676
|
+
let t = ce ? ce(e) : e.ownerDocument, n = A.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
677
|
+
for (; r;) r.data = Mn(r.data), r = n.nextNode();
|
|
678
|
+
}, Fn = function(e) {
|
|
679
|
+
let t = m ? m(e) : null;
|
|
680
|
+
return typeof t != "string" || H(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== oe(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 !== se(e) || e.childNodes !== ne(e);
|
|
681
|
+
}, Q = function(e) {
|
|
682
|
+
if (!se || typeof e != "object" || !e) return !1;
|
|
588
683
|
try {
|
|
589
|
-
return
|
|
684
|
+
return se(e) === O.documentFragment;
|
|
590
685
|
} catch {
|
|
591
686
|
return !1;
|
|
592
687
|
}
|
|
593
|
-
},
|
|
594
|
-
if (!
|
|
688
|
+
}, In = function(e) {
|
|
689
|
+
if (!se || typeof e != "object" || !e) return !1;
|
|
595
690
|
try {
|
|
596
|
-
return typeof
|
|
691
|
+
return typeof se(e) == "number";
|
|
597
692
|
} catch {
|
|
598
693
|
return !1;
|
|
599
694
|
}
|
|
600
695
|
};
|
|
601
696
|
function $(e, n, r) {
|
|
602
|
-
e.length !== 0 &&
|
|
603
|
-
e.call(t, n, r,
|
|
697
|
+
e.length !== 0 && v(e, (e) => {
|
|
698
|
+
e.call(t, n, r, U);
|
|
604
699
|
});
|
|
605
700
|
}
|
|
606
|
-
let
|
|
607
|
-
return !!(
|
|
608
|
-
},
|
|
609
|
-
return e instanceof RegExp ?
|
|
610
|
-
},
|
|
611
|
-
if (!
|
|
612
|
-
if (
|
|
613
|
-
let t =
|
|
701
|
+
let Ln = function(e, t) {
|
|
702
|
+
return !!(Pt && e.hasChildNodes() && !In(e.firstElementChild) && S(nt, e.textContent) && S(nt, e.innerHTML) || Pt && ot[t] && _(e) === O.element && De(e) === V && (In(e.firstElementChild) || typeof e.textContent == "string" && S(nt, e.textContent)) || e.nodeType === O.processingInstruction || Pt && e.nodeType === O.comment && S(rt, e.data));
|
|
703
|
+
}, Rn = function(e, t) {
|
|
704
|
+
return e instanceof RegExp ? S(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
705
|
+
}, zn = function(e, t, n) {
|
|
706
|
+
if (!I[t] && Gn(t) && Rn(F.tagNameCheck, t)) return !1;
|
|
707
|
+
if (Gt && !Jt[t] && !Jt[xe(t)]) {
|
|
708
|
+
let t = re(e), r = ne(e);
|
|
614
709
|
if (r && t) {
|
|
615
710
|
let i = r.length;
|
|
616
711
|
for (let a = i - 1; a >= 0; --a) {
|
|
@@ -619,35 +714,35 @@ function lt() {
|
|
|
619
714
|
}
|
|
620
715
|
}
|
|
621
716
|
}
|
|
622
|
-
return
|
|
623
|
-
},
|
|
624
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
625
|
-
},
|
|
626
|
-
return e === t ||
|
|
627
|
-
},
|
|
628
|
-
if ($(
|
|
629
|
-
if (
|
|
630
|
-
let r =
|
|
631
|
-
if (
|
|
717
|
+
return xn(e), !0;
|
|
718
|
+
}, Bn = function(e, t, n, r) {
|
|
719
|
+
return e.length === 0 ? t : t === n || t === r ? E(t) : t;
|
|
720
|
+
}, Vn = function(e, t) {
|
|
721
|
+
return e === t || re(e) !== null ? !1 : (Kt && Tn(e), !0);
|
|
722
|
+
}, Hn = function(e, n) {
|
|
723
|
+
if (Z(e), $(M.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
724
|
+
if (Fn(e)) return xn(e), !0;
|
|
725
|
+
let r = H(ue(e));
|
|
726
|
+
if (N = Bn(M.uponSanitizeElement, N, Dt, Lt), $(M.uponSanitizeElement, e, {
|
|
632
727
|
tagName: r,
|
|
633
|
-
allowedTags:
|
|
634
|
-
}),
|
|
635
|
-
if (
|
|
636
|
-
if (
|
|
637
|
-
let t =
|
|
638
|
-
return t === !1 && $(
|
|
639
|
-
}
|
|
640
|
-
if (
|
|
641
|
-
if (
|
|
642
|
-
let n =
|
|
643
|
-
e.textContent !== n && (
|
|
644
|
-
}
|
|
645
|
-
return $(
|
|
646
|
-
},
|
|
647
|
-
if (
|
|
648
|
-
let i =
|
|
649
|
-
return
|
|
650
|
-
},
|
|
728
|
+
allowedTags: N
|
|
729
|
+
}), Vn(e, n)) return !0;
|
|
730
|
+
if (Ln(e, r)) return xn(e), !0;
|
|
731
|
+
if (I[r] || !(L.tagCheck instanceof Function && L.tagCheck(r)) && !N[r]) {
|
|
732
|
+
let t = zn(e, r, n);
|
|
733
|
+
return t === !1 && ($(M.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
734
|
+
}
|
|
735
|
+
if (_(e) === O.element && !bn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(it, e.innerHTML)) return xn(e), !0;
|
|
736
|
+
if (R && e.nodeType === O.text) {
|
|
737
|
+
let n = Mn(e.textContent);
|
|
738
|
+
e.textContent !== n && (me(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
739
|
+
}
|
|
740
|
+
return $(M.afterSanitizeElements, e, null), Vn(e, n);
|
|
741
|
+
}, Un = function(e, t, r) {
|
|
742
|
+
if (kt[t] || On(t, e) || Ht && (t === "id" || t === "name") && (r in n || r in mn)) return !1;
|
|
743
|
+
let i = P[t] || L.attributeCheck instanceof Function && L.attributeCheck(t, e);
|
|
744
|
+
return jt && S(xt, t) || At && S(St, t) ? !0 : i ? Qt[t] || S(Et, we(r, wt, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Te(r, "data:") === 0 && Xt[e] || Mt && !S(Ct, we(r, wt, "")) ? !0 : !r : Gn(e) && Rn(F.tagNameCheck, e) && Rn(F.attributeNameCheck, t, e) || t === "is" && F.allowCustomizedBuiltInElements && Rn(F.tagNameCheck, r);
|
|
745
|
+
}, Wn = T({}, [
|
|
651
746
|
"annotation-xml",
|
|
652
747
|
"color-profile",
|
|
653
748
|
"font-face",
|
|
@@ -656,67 +751,47 @@ function lt() {
|
|
|
656
751
|
"font-face-src",
|
|
657
752
|
"font-face-uri",
|
|
658
753
|
"missing-glyph"
|
|
659
|
-
]),
|
|
660
|
-
return !
|
|
661
|
-
},
|
|
662
|
-
if (
|
|
663
|
-
case "TrustedHTML": return
|
|
664
|
-
case "TrustedScriptURL": return
|
|
754
|
+
]), Gn = function(e) {
|
|
755
|
+
return !Wn[xe(e)] && S(Tt, e);
|
|
756
|
+
}, Kn = function(e, t, n, r) {
|
|
757
|
+
if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
758
|
+
case "TrustedHTML": return je(r);
|
|
759
|
+
case "TrustedScriptURL": return pt(r);
|
|
665
760
|
}
|
|
666
761
|
return r;
|
|
667
|
-
},
|
|
762
|
+
}, qn = function(e, t, n, r) {
|
|
668
763
|
try {
|
|
669
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r),
|
|
764
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Fn(e) || (xn(e), !1);
|
|
670
765
|
} catch {
|
|
671
766
|
return K(t, e), !1;
|
|
672
767
|
}
|
|
673
|
-
},
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
if (
|
|
677
|
-
|
|
678
|
-
|
|
768
|
+
}, Jn = function(e, t) {
|
|
769
|
+
return Pt && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : xe(e) === "attributename" && Ce(t, "href") !== null;
|
|
770
|
+
}, Yn = function(e, n) {
|
|
771
|
+
if ($(M.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
772
|
+
let r = e.attributes;
|
|
773
|
+
if (!r || Fn(e)) return;
|
|
774
|
+
P = Bn(M.uponSanitizeAttribute, P, Ot, Rt);
|
|
775
|
+
let i = {
|
|
679
776
|
attrName: "",
|
|
680
777
|
attrValue: "",
|
|
681
778
|
keepAttr: !0,
|
|
682
|
-
allowedAttributes:
|
|
779
|
+
allowedAttributes: P,
|
|
683
780
|
forceKeepAttr: void 0
|
|
684
|
-
},
|
|
685
|
-
for (;
|
|
686
|
-
let
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
continue;
|
|
694
|
-
}
|
|
695
|
-
if (!r.forceKeepAttr) {
|
|
696
|
-
if (!r.keepAttr) {
|
|
697
|
-
K(s, e, o);
|
|
698
|
-
continue;
|
|
699
|
-
}
|
|
700
|
-
if (!At && x(et, f)) {
|
|
701
|
-
K(s, e, o);
|
|
702
|
-
continue;
|
|
703
|
-
}
|
|
704
|
-
if (F && (f = Y(f)), !On(a, u, f)) {
|
|
705
|
-
K(s, e, o);
|
|
706
|
-
continue;
|
|
707
|
-
}
|
|
708
|
-
f = jn(a, u, c, f), f !== d && Mn(e, s, c, f) && p && fe(t.removed);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
$(k.afterSanitizeAttributes, e, null);
|
|
712
|
-
}, Pn = function(e) {
|
|
713
|
-
let t = null, n = J(e);
|
|
714
|
-
for ($(k.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(k.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t), xn(t.content) && Pn(t.content), le(t) === E.element) {
|
|
781
|
+
}, a = r.length, o = H(e.nodeName);
|
|
782
|
+
for (; a--;) {
|
|
783
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = H(s), d = l, f = s === "value" ? d : Ee(d), p = !1;
|
|
784
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, i), f = i.attrValue, Ut && (u === "id" || u === "name") && Te(f, Wt) !== 0 && (K(s, e, n), f = Wt + f, p = !0), Jn(s, f) ? K(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Nt && S(at, f) ? K(s, e, n) : (R && (f = Mn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && pe(t.removed)) : K(s, e, n)) : K(s, e, n));
|
|
785
|
+
}
|
|
786
|
+
$(M.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
787
|
+
}, Xn = function(e) {
|
|
788
|
+
let t = null, n = jn(e);
|
|
789
|
+
for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(M.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Q(t.content) && Xn(t.content), _(t) === O.element) {
|
|
715
790
|
let e = ie(t);
|
|
716
|
-
|
|
791
|
+
Q(e) && (Zn(e), Xn(e));
|
|
717
792
|
}
|
|
718
|
-
$(
|
|
719
|
-
},
|
|
793
|
+
R && Pn(e), $(M.afterSanitizeShadowDOM, e, null);
|
|
794
|
+
}, Zn = function(e) {
|
|
720
795
|
let t = [{
|
|
721
796
|
node: e,
|
|
722
797
|
shadow: null
|
|
@@ -724,19 +799,19 @@ function lt() {
|
|
|
724
799
|
for (; t.length > 0;) {
|
|
725
800
|
let e = t.pop();
|
|
726
801
|
if (e.shadow) {
|
|
727
|
-
|
|
802
|
+
Xn(e.shadow);
|
|
728
803
|
continue;
|
|
729
804
|
}
|
|
730
|
-
let n = e.node, r =
|
|
805
|
+
let n = e.node, r = _(n) === O.element, i = ne(n);
|
|
731
806
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
732
807
|
node: i[e],
|
|
733
808
|
shadow: null
|
|
734
809
|
});
|
|
735
810
|
if (r) {
|
|
736
|
-
let e =
|
|
737
|
-
if (typeof e == "string" &&
|
|
811
|
+
let e = m ? m(n) : null;
|
|
812
|
+
if (typeof e == "string" && H(e) === "template") {
|
|
738
813
|
let e = n.content;
|
|
739
|
-
|
|
814
|
+
Q(e) && t.push({
|
|
740
815
|
node: e,
|
|
741
816
|
shadow: null
|
|
742
817
|
});
|
|
@@ -744,7 +819,7 @@ function lt() {
|
|
|
744
819
|
}
|
|
745
820
|
if (r) {
|
|
746
821
|
let e = ie(n);
|
|
747
|
-
|
|
822
|
+
Q(e) && t.push({
|
|
748
823
|
node: null,
|
|
749
824
|
shadow: e
|
|
750
825
|
}, {
|
|
@@ -756,77 +831,75 @@ function lt() {
|
|
|
756
831
|
};
|
|
757
832
|
return t.sanitize = function(e) {
|
|
758
833
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
759
|
-
if (
|
|
834
|
+
if (rn = !e, rn && (e = "<!-->"), typeof e != "string" && !In(e) && (e = Me(e), typeof e != "string")) throw C("dirty is not a string, aborting");
|
|
760
835
|
if (!t.isSupported) return e;
|
|
761
|
-
|
|
762
|
-
let c =
|
|
836
|
+
It ? (N = Lt, P = Rt) : gn(n), (M.uponSanitizeElement.length > 0 || M.uponSanitizeAttribute.length > 0) && (N = E(N)), M.uponSanitizeAttribute.length > 0 && (P = E(P)), t.removed = [];
|
|
837
|
+
let c = Kt && typeof e != "string" && In(e), l = [], u = B;
|
|
763
838
|
if (c) {
|
|
764
|
-
|
|
765
|
-
let t =
|
|
839
|
+
kn(e);
|
|
840
|
+
let t = ue(e);
|
|
766
841
|
if (typeof t == "string") {
|
|
767
|
-
let n =
|
|
768
|
-
if (!
|
|
769
|
-
}
|
|
770
|
-
if (Z(e)) throw gn(e), Te("root node is clobbered and cannot be sanitized in-place");
|
|
771
|
-
try {
|
|
772
|
-
Fn(e);
|
|
773
|
-
} catch (t) {
|
|
774
|
-
throw gn(e), t;
|
|
842
|
+
let n = H(t);
|
|
843
|
+
if (!N[n] || I[n]) throw Cn(e), C("root node is forbidden and cannot be sanitized in-place");
|
|
775
844
|
}
|
|
776
|
-
|
|
845
|
+
if (Fn(e)) throw Cn(e), C("root node is clobbered and cannot be sanitized in-place");
|
|
846
|
+
l = J(e), B = ve();
|
|
847
|
+
} else if (In(e)) i = An("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === O.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
777
848
|
else {
|
|
778
|
-
if (!
|
|
779
|
-
if (i =
|
|
849
|
+
if (!z && !R && !Ft && e.indexOf("<") === -1) return y && Vt ? je(e) : e;
|
|
850
|
+
if (i = An(e), !i) return z ? null : Vt ? b : "";
|
|
780
851
|
}
|
|
781
|
-
i &&
|
|
782
|
-
let
|
|
852
|
+
i && zt && xn(i.firstChild);
|
|
853
|
+
let d = c ? e : i;
|
|
783
854
|
try {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
855
|
+
c && Zn(e);
|
|
856
|
+
let t = jn(d);
|
|
857
|
+
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Q(o.content) && Xn(o.content);
|
|
858
|
+
c && X(e, l);
|
|
859
|
+
} catch (t) {
|
|
860
|
+
throw c && (Cn(e), Y(e, l)), t;
|
|
861
|
+
} finally {
|
|
862
|
+
B = u;
|
|
863
|
+
}
|
|
864
|
+
if (c) {
|
|
865
|
+
if (Y(e, l)) throw C("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
866
|
+
return R && Nn(e), e;
|
|
867
|
+
}
|
|
868
|
+
if (z) {
|
|
869
|
+
if (R && Nn(i), Bt) for (s = gt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
796
870
|
else s = i;
|
|
797
|
-
return (
|
|
871
|
+
return (P.shadowroot || P.shadowrootmode) && (s = _t.call(r, s, !0)), s;
|
|
798
872
|
}
|
|
799
|
-
let
|
|
800
|
-
return
|
|
873
|
+
let f = Ft ? i.outerHTML : i.innerHTML;
|
|
874
|
+
return Ft && N["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && S(et, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), R && (f = Mn(f)), y && Vt ? je(f) : f;
|
|
801
875
|
}, t.setConfig = function() {
|
|
802
876
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
803
|
-
|
|
877
|
+
gn(e), It = !0, Lt = N, Rt = P;
|
|
804
878
|
}, t.clearConfig = function() {
|
|
805
|
-
|
|
879
|
+
U = null, It = !1, Lt = null, Rt = null, y = Oe, b = "";
|
|
806
880
|
}, t.isValidAttribute = function(e, t, n) {
|
|
807
|
-
|
|
808
|
-
let r =
|
|
809
|
-
return
|
|
881
|
+
U || gn({});
|
|
882
|
+
let r = H(e), i = H(t);
|
|
883
|
+
return typeof n == "string" && (Jn(t, n) || !Nt && S(at, n)) ? !1 : Un(r, i, n);
|
|
810
884
|
}, t.addHook = function(e, t) {
|
|
811
|
-
typeof t == "function" &&
|
|
885
|
+
typeof t == "function" && x(M, e) && me(M[e], t);
|
|
812
886
|
}, t.removeHook = function(e, t) {
|
|
813
|
-
if (
|
|
887
|
+
if (x(M, e)) {
|
|
814
888
|
if (t !== void 0) {
|
|
815
|
-
let n =
|
|
816
|
-
return n === -1 ? void 0 :
|
|
889
|
+
let n = fe(M[e], t);
|
|
890
|
+
return n === -1 ? void 0 : ge(M[e], n, 1)[0];
|
|
817
891
|
}
|
|
818
|
-
return
|
|
892
|
+
return pe(M[e]);
|
|
819
893
|
}
|
|
820
894
|
}, t.removeHooks = function(e) {
|
|
821
|
-
|
|
895
|
+
x(M, e) && (M[e] = []);
|
|
822
896
|
}, t.removeAllHooks = function() {
|
|
823
|
-
|
|
897
|
+
M = lt();
|
|
824
898
|
}, t;
|
|
825
899
|
}
|
|
826
|
-
var
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
function dt() {
|
|
900
|
+
var pt = ft();
|
|
901
|
+
// node_modules/marked/lib/marked.esm.js
|
|
902
|
+
function mt() {
|
|
830
903
|
return {
|
|
831
904
|
async: !1,
|
|
832
905
|
breaks: !1,
|
|
@@ -840,35 +913,35 @@ function dt() {
|
|
|
840
913
|
walkTokens: null
|
|
841
914
|
};
|
|
842
915
|
}
|
|
843
|
-
var
|
|
844
|
-
function
|
|
845
|
-
|
|
916
|
+
var k = mt();
|
|
917
|
+
function ht(e) {
|
|
918
|
+
k = e;
|
|
846
919
|
}
|
|
847
|
-
var
|
|
848
|
-
function
|
|
920
|
+
var A = { exec: () => null };
|
|
921
|
+
function gt(e) {
|
|
849
922
|
let t = [];
|
|
850
923
|
return (n) => {
|
|
851
924
|
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
852
925
|
return i || (i = e(r), t[r] = i), i;
|
|
853
926
|
};
|
|
854
927
|
}
|
|
855
|
-
function
|
|
928
|
+
function j(e, t = "") {
|
|
856
929
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
857
930
|
replace: (e, t) => {
|
|
858
931
|
let i = typeof t == "string" ? t : t.source;
|
|
859
|
-
return i = i.replace(
|
|
932
|
+
return i = i.replace(M.caret, "$1"), n = n.replace(e, i), r;
|
|
860
933
|
},
|
|
861
934
|
getRegex: () => new RegExp(n, t)
|
|
862
935
|
};
|
|
863
936
|
return r;
|
|
864
937
|
}
|
|
865
|
-
var
|
|
938
|
+
var _t = ((e = "") => {
|
|
866
939
|
try {
|
|
867
940
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
868
941
|
} catch {
|
|
869
942
|
return !1;
|
|
870
943
|
}
|
|
871
|
-
})(),
|
|
944
|
+
})(), M = {
|
|
872
945
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
873
946
|
outputLinkReplace: /\\([\[\]])/g,
|
|
874
947
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -919,121 +992,123 @@ var k = ((e = "") => {
|
|
|
919
992
|
notSpaceStart: /^\S*/,
|
|
920
993
|
endingNewline: /\n$/,
|
|
921
994
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
922
|
-
nextBulletRegex:
|
|
923
|
-
hrRegex:
|
|
924
|
-
fencesBeginRegex:
|
|
925
|
-
headingBeginRegex:
|
|
926
|
-
htmlBeginRegex:
|
|
927
|
-
blockquoteBeginRegex:
|
|
928
|
-
},
|
|
929
|
-
blockquote:
|
|
930
|
-
code:
|
|
931
|
-
def:
|
|
932
|
-
fences:
|
|
933
|
-
heading:
|
|
934
|
-
hr:
|
|
935
|
-
html:
|
|
936
|
-
lheading:
|
|
937
|
-
list:
|
|
938
|
-
newline:
|
|
939
|
-
paragraph:
|
|
940
|
-
table:
|
|
941
|
-
text:
|
|
942
|
-
},
|
|
943
|
-
...
|
|
944
|
-
lheading:
|
|
945
|
-
table:
|
|
946
|
-
paragraph:
|
|
947
|
-
},
|
|
948
|
-
...
|
|
949
|
-
html:
|
|
995
|
+
nextBulletRegex: gt((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
996
|
+
hrRegex: gt((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
997
|
+
fencesBeginRegex: gt((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
998
|
+
headingBeginRegex: gt((e) => RegExp(`^ {0,${e}}#`)),
|
|
999
|
+
htmlBeginRegex: gt((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
1000
|
+
blockquoteBeginRegex: gt((e) => RegExp(`^ {0,${e}}>`))
|
|
1001
|
+
}, vt = /^(?:[ \t]*(?:\n|$))+/, yt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, bt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, xt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, St = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ct = / {0,3}(?:[*+-]|\d{1,9}[.)])/, wt = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Tt = j(wt).replace(/bull/g, Ct).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Et = j(wt).replace(/bull/g, Ct).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), N = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Dt = /^[^\n]+/, P = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ot = j(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", P).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), F = j(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Ct).getRegex(), I = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", kt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, L = j("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", kt).replace("tag", I).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), At = (e) => j(N).replace("hr", xt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), jt = At(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), Mt = At(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), Nt = {
|
|
1002
|
+
blockquote: j(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Mt).getRegex(),
|
|
1003
|
+
code: yt,
|
|
1004
|
+
def: Ot,
|
|
1005
|
+
fences: bt,
|
|
1006
|
+
heading: St,
|
|
1007
|
+
hr: xt,
|
|
1008
|
+
html: L,
|
|
1009
|
+
lheading: Tt,
|
|
1010
|
+
list: F,
|
|
1011
|
+
newline: vt,
|
|
1012
|
+
paragraph: jt,
|
|
1013
|
+
table: A,
|
|
1014
|
+
text: Dt
|
|
1015
|
+
}, R = j("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", xt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex(), Pt = {
|
|
1016
|
+
...Nt,
|
|
1017
|
+
lheading: Et,
|
|
1018
|
+
table: R,
|
|
1019
|
+
paragraph: j(N).replace("hr", xt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", R).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", I).getRegex()
|
|
1020
|
+
}, Ft = {
|
|
1021
|
+
...Nt,
|
|
1022
|
+
html: j("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", kt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
950
1023
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
951
1024
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
952
|
-
fences:
|
|
1025
|
+
fences: A,
|
|
953
1026
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
954
|
-
paragraph:
|
|
955
|
-
},
|
|
956
|
-
_backpedal:
|
|
957
|
-
anyPunctuation:
|
|
958
|
-
autolink:
|
|
959
|
-
blockSkip:
|
|
960
|
-
br:
|
|
961
|
-
code:
|
|
962
|
-
del:
|
|
963
|
-
delLDelim:
|
|
964
|
-
delRDelim:
|
|
965
|
-
emStrongLDelim:
|
|
966
|
-
emStrongRDelimAst:
|
|
967
|
-
emStrongRDelimUnd:
|
|
968
|
-
escape:
|
|
969
|
-
link:
|
|
970
|
-
nolink:
|
|
971
|
-
punctuation:
|
|
972
|
-
reflink:
|
|
973
|
-
reflinkSearch:
|
|
974
|
-
tag:
|
|
975
|
-
text:
|
|
976
|
-
url:
|
|
977
|
-
},
|
|
978
|
-
...
|
|
979
|
-
link:
|
|
980
|
-
reflink:
|
|
981
|
-
},
|
|
982
|
-
...
|
|
983
|
-
emStrongRDelimAst:
|
|
984
|
-
emStrongLDelim:
|
|
985
|
-
delLDelim:
|
|
986
|
-
delRDelim:
|
|
987
|
-
url:
|
|
1027
|
+
paragraph: j(N).replace("hr", xt).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Tt).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
1028
|
+
}, It = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Lt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Rt = /^( {2,}|\\)\n(?!\s*$)/, zt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, Bt = /[\s\p{P}\p{S}]/u, Vt = /[^\s\p{P}\p{S}]/u, Ht = j(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Bt).getRegex(), Ut = /(?!~)[\p{P}\p{S}]/u, Wt = /(?!~)[\s\p{P}\p{S}]/u, Gt = /(?:[^\s\p{P}\p{S}]|~)/u, Kt = j(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", _t ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), B = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, qt = j(B, "u").replace(/punct/g, z).getRegex(), Jt = j(B, "u").replace(/punct/g, Ut).getRegex(), Yt = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xt = j(Yt, "gu").replace(/notPunctSpace/g, Vt).replace(/punctSpace/g, Bt).replace(/punct/g, z).getRegex(), Zt = j(Yt, "gu").replace(/notPunctSpace/g, Gt).replace(/punctSpace/g, Wt).replace(/punct/g, Ut).getRegex(), Qt = j("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Vt).replace(/punctSpace/g, Bt).replace(/punct/g, z).getRegex(), $t = j(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), en = j("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Vt).replace(/punctSpace/g, Bt).replace(/punct/g, z).getRegex(), tn = j(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), V = j(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), nn = j(kt).replace("(?:-->|$)", "-->").getRegex(), rn = j("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", nn).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), an = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, on = j(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", an).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), sn = j(/^!?\[(label)\]\[(ref)\]/).replace("label", an).replace("ref", P).getRegex(), cn = j(/^!?\[(ref)\](?:\[\])?/).replace("ref", P).getRegex(), ln = j("reflink|nolink(?!\\()", "g").replace("reflink", sn).replace("nolink", cn).getRegex(), un = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, dn = {
|
|
1029
|
+
_backpedal: A,
|
|
1030
|
+
anyPunctuation: tn,
|
|
1031
|
+
autolink: V,
|
|
1032
|
+
blockSkip: Kt,
|
|
1033
|
+
br: Rt,
|
|
1034
|
+
code: Lt,
|
|
1035
|
+
del: A,
|
|
1036
|
+
delLDelim: A,
|
|
1037
|
+
delRDelim: A,
|
|
1038
|
+
emStrongLDelim: qt,
|
|
1039
|
+
emStrongRDelimAst: Xt,
|
|
1040
|
+
emStrongRDelimUnd: Qt,
|
|
1041
|
+
escape: It,
|
|
1042
|
+
link: on,
|
|
1043
|
+
nolink: cn,
|
|
1044
|
+
punctuation: Ht,
|
|
1045
|
+
reflink: sn,
|
|
1046
|
+
reflinkSearch: ln,
|
|
1047
|
+
tag: rn,
|
|
1048
|
+
text: zt,
|
|
1049
|
+
url: A
|
|
1050
|
+
}, fn = {
|
|
1051
|
+
...dn,
|
|
1052
|
+
link: j(/^!?\[(label)\]\((.*?)\)/).replace("label", an).getRegex(),
|
|
1053
|
+
reflink: j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", an).getRegex()
|
|
1054
|
+
}, pn = {
|
|
1055
|
+
...dn,
|
|
1056
|
+
emStrongRDelimAst: Zt,
|
|
1057
|
+
emStrongLDelim: Jt,
|
|
1058
|
+
delLDelim: $t,
|
|
1059
|
+
delRDelim: en,
|
|
1060
|
+
url: j(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", un).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
988
1061
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
989
1062
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
990
|
-
text:
|
|
991
|
-
},
|
|
992
|
-
...
|
|
993
|
-
br:
|
|
994
|
-
text:
|
|
995
|
-
},
|
|
996
|
-
normal:
|
|
997
|
-
gfm:
|
|
998
|
-
pedantic:
|
|
999
|
-
},
|
|
1000
|
-
normal:
|
|
1001
|
-
gfm:
|
|
1002
|
-
breaks:
|
|
1003
|
-
pedantic:
|
|
1004
|
-
},
|
|
1063
|
+
text: j(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", un).getRegex()
|
|
1064
|
+
}, H = {
|
|
1065
|
+
...pn,
|
|
1066
|
+
br: j(Rt).replace("{2,}", "*").getRegex(),
|
|
1067
|
+
text: j(pn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
1068
|
+
}, U = {
|
|
1069
|
+
normal: Nt,
|
|
1070
|
+
gfm: Pt,
|
|
1071
|
+
pedantic: Ft
|
|
1072
|
+
}, mn = {
|
|
1073
|
+
normal: dn,
|
|
1074
|
+
gfm: pn,
|
|
1075
|
+
breaks: H,
|
|
1076
|
+
pedantic: fn
|
|
1077
|
+
}, hn = {
|
|
1005
1078
|
"&": "&",
|
|
1006
1079
|
"<": "<",
|
|
1007
1080
|
">": ">",
|
|
1008
1081
|
"\"": """,
|
|
1009
1082
|
"'": "'"
|
|
1010
|
-
},
|
|
1011
|
-
function
|
|
1083
|
+
}, gn = (e) => hn[e];
|
|
1084
|
+
function W(e, t) {
|
|
1012
1085
|
if (t) {
|
|
1013
|
-
if (
|
|
1014
|
-
} else if (
|
|
1086
|
+
if (M.escapeTest.test(e)) return e.replace(M.escapeReplace, gn);
|
|
1087
|
+
} else if (M.escapeTestNoEncode.test(e)) return e.replace(M.escapeReplaceNoEncode, gn);
|
|
1015
1088
|
return e;
|
|
1016
1089
|
}
|
|
1017
|
-
function
|
|
1090
|
+
function _n(e) {
|
|
1018
1091
|
try {
|
|
1019
|
-
e = encodeURI(e).replace(
|
|
1092
|
+
e = encodeURI(e).replace(M.percentDecode, "%");
|
|
1020
1093
|
} catch {
|
|
1021
1094
|
return null;
|
|
1022
1095
|
}
|
|
1023
1096
|
return e;
|
|
1024
1097
|
}
|
|
1025
|
-
function
|
|
1026
|
-
let n = e.replace(
|
|
1098
|
+
function vn(e, t) {
|
|
1099
|
+
let n = e.replace(M.findPipe, (e, t, n) => {
|
|
1027
1100
|
let r = !1, i = t;
|
|
1028
1101
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
1029
1102
|
return r ? "|" : " |";
|
|
1030
|
-
}).split(
|
|
1031
|
-
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t)
|
|
1032
|
-
|
|
1033
|
-
|
|
1103
|
+
}).split(M.splitPipe), r = 0;
|
|
1104
|
+
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
|
|
1105
|
+
if (n.length > t) n.splice(t);
|
|
1106
|
+
else for (; n.length < t;) n.push("");
|
|
1107
|
+
}
|
|
1108
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(M.slashPipe, "|");
|
|
1034
1109
|
return n;
|
|
1035
1110
|
}
|
|
1036
|
-
function
|
|
1111
|
+
function G(e, t, n) {
|
|
1037
1112
|
let r = e.length;
|
|
1038
1113
|
if (r === 0) return "";
|
|
1039
1114
|
let i = 0;
|
|
@@ -1045,12 +1120,12 @@ function W(e, t, n) {
|
|
|
1045
1120
|
}
|
|
1046
1121
|
return e.slice(0, r - i);
|
|
1047
1122
|
}
|
|
1048
|
-
function
|
|
1123
|
+
function yn(e) {
|
|
1049
1124
|
let t = e.split("\n"), n = t.length - 1;
|
|
1050
|
-
for (; n >= 0 &&
|
|
1125
|
+
for (; n >= 0 && M.blankLine.test(t[n]);) n--;
|
|
1051
1126
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
1052
1127
|
}
|
|
1053
|
-
function
|
|
1128
|
+
function bn(e, t) {
|
|
1054
1129
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
1055
1130
|
let n = 0;
|
|
1056
1131
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -1058,7 +1133,7 @@ function hn(e, t) {
|
|
|
1058
1133
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
1059
1134
|
return n > 0 ? -2 : -1;
|
|
1060
1135
|
}
|
|
1061
|
-
function
|
|
1136
|
+
function xn(e, t = 0) {
|
|
1062
1137
|
let n = t, r = "";
|
|
1063
1138
|
for (let t of e) if (t === " ") {
|
|
1064
1139
|
let e = 4 - n % 4;
|
|
@@ -1066,7 +1141,7 @@ function gn(e, t = 0) {
|
|
|
1066
1141
|
} else r += t, n++;
|
|
1067
1142
|
return r;
|
|
1068
1143
|
}
|
|
1069
|
-
function
|
|
1144
|
+
function Sn(e, t, n, r, i) {
|
|
1070
1145
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
1071
1146
|
r.state.inLink = !0;
|
|
1072
1147
|
let c = {
|
|
@@ -1079,7 +1154,7 @@ function K(e, t, n, r, i) {
|
|
|
1079
1154
|
};
|
|
1080
1155
|
return r.state.inLink = !1, c;
|
|
1081
1156
|
}
|
|
1082
|
-
function
|
|
1157
|
+
function Cn(e, t, n) {
|
|
1083
1158
|
let r = e.match(n.other.indentCodeCompensation);
|
|
1084
1159
|
if (r === null) return t;
|
|
1085
1160
|
let i = r[1];
|
|
@@ -1090,12 +1165,12 @@ function _n(e, t, n) {
|
|
|
1090
1165
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
1091
1166
|
}).join("\n");
|
|
1092
1167
|
}
|
|
1093
|
-
var
|
|
1168
|
+
var K = class {
|
|
1094
1169
|
options;
|
|
1095
1170
|
rules;
|
|
1096
1171
|
lexer;
|
|
1097
1172
|
constructor(e) {
|
|
1098
|
-
this.options = e ||
|
|
1173
|
+
this.options = e || k;
|
|
1099
1174
|
}
|
|
1100
1175
|
space(e) {
|
|
1101
1176
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -1107,7 +1182,7 @@ var vn = class {
|
|
|
1107
1182
|
code(e) {
|
|
1108
1183
|
let t = this.rules.block.code.exec(e);
|
|
1109
1184
|
if (t) {
|
|
1110
|
-
let e = this.options.pedantic ? t[0] :
|
|
1185
|
+
let e = this.options.pedantic ? t[0] : yn(t[0]);
|
|
1111
1186
|
return {
|
|
1112
1187
|
type: "code",
|
|
1113
1188
|
raw: e,
|
|
@@ -1119,7 +1194,7 @@ var vn = class {
|
|
|
1119
1194
|
fences(e) {
|
|
1120
1195
|
let t = this.rules.block.fences.exec(e);
|
|
1121
1196
|
if (t) {
|
|
1122
|
-
let e = t[0], n =
|
|
1197
|
+
let e = t[0], n = Cn(e, t[3] || "", this.rules);
|
|
1123
1198
|
return {
|
|
1124
1199
|
type: "code",
|
|
1125
1200
|
raw: e,
|
|
@@ -1133,12 +1208,12 @@ var vn = class {
|
|
|
1133
1208
|
if (t) {
|
|
1134
1209
|
let e = t[2].trim();
|
|
1135
1210
|
if (this.rules.other.endingHash.test(e)) {
|
|
1136
|
-
let t =
|
|
1211
|
+
let t = G(e, "#");
|
|
1137
1212
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
1138
1213
|
}
|
|
1139
1214
|
return {
|
|
1140
1215
|
type: "heading",
|
|
1141
|
-
raw:
|
|
1216
|
+
raw: G(t[0], "\n"),
|
|
1142
1217
|
depth: t[1].length,
|
|
1143
1218
|
text: e,
|
|
1144
1219
|
tokens: this.lexer.inline(e)
|
|
@@ -1149,16 +1224,16 @@ var vn = class {
|
|
|
1149
1224
|
let t = this.rules.block.hr.exec(e);
|
|
1150
1225
|
if (t) return {
|
|
1151
1226
|
type: "hr",
|
|
1152
|
-
raw:
|
|
1227
|
+
raw: G(t[0], "\n")
|
|
1153
1228
|
};
|
|
1154
1229
|
}
|
|
1155
1230
|
blockquote(e) {
|
|
1156
1231
|
let t = this.rules.block.blockquote.exec(e);
|
|
1157
1232
|
if (t) {
|
|
1158
|
-
let e =
|
|
1233
|
+
let e = G(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
1159
1234
|
for (; e.length > 0;) {
|
|
1160
|
-
let t = !1, a = [], o;
|
|
1161
|
-
for (
|
|
1235
|
+
let t = !1, a = [], o = 0;
|
|
1236
|
+
for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
1162
1237
|
else if (!t) a.push(e[o]);
|
|
1163
1238
|
else break;
|
|
1164
1239
|
e = e.slice(o);
|
|
@@ -1174,10 +1249,10 @@ ${c}` : c;
|
|
|
1174
1249
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
|
|
1175
1250
|
i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
|
|
1176
1251
|
break;
|
|
1177
|
-
}
|
|
1252
|
+
}
|
|
1253
|
+
if (u?.type === "list") {
|
|
1178
1254
|
let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
|
|
1179
1255
|
i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
|
|
1180
|
-
continue;
|
|
1181
1256
|
}
|
|
1182
1257
|
}
|
|
1183
1258
|
return {
|
|
@@ -1205,7 +1280,7 @@ ${c}` : c;
|
|
|
1205
1280
|
let n = !1, r = "", s = "";
|
|
1206
1281
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
1207
1282
|
r = t[0], e = e.substring(r.length);
|
|
1208
|
-
let c =
|
|
1283
|
+
let c = xn(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
1209
1284
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
1210
1285
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
1211
1286
|
for (; e;) {
|
|
@@ -1271,7 +1346,7 @@ ${c}` : c;
|
|
|
1271
1346
|
html(e) {
|
|
1272
1347
|
let t = this.rules.block.html.exec(e);
|
|
1273
1348
|
if (t) {
|
|
1274
|
-
let e =
|
|
1349
|
+
let e = yn(t[0]);
|
|
1275
1350
|
return {
|
|
1276
1351
|
type: "html",
|
|
1277
1352
|
block: !0,
|
|
@@ -1288,7 +1363,7 @@ ${c}` : c;
|
|
|
1288
1363
|
return {
|
|
1289
1364
|
type: "def",
|
|
1290
1365
|
tag: e,
|
|
1291
|
-
raw:
|
|
1366
|
+
raw: G(t[0], "\n"),
|
|
1292
1367
|
href: n,
|
|
1293
1368
|
title: r
|
|
1294
1369
|
};
|
|
@@ -1297,9 +1372,9 @@ ${c}` : c;
|
|
|
1297
1372
|
table(e) {
|
|
1298
1373
|
let t = this.rules.block.table.exec(e);
|
|
1299
1374
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
1300
|
-
let n =
|
|
1375
|
+
let n = vn(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
1301
1376
|
type: "table",
|
|
1302
|
-
raw:
|
|
1377
|
+
raw: G(t[0], "\n"),
|
|
1303
1378
|
header: [],
|
|
1304
1379
|
align: [],
|
|
1305
1380
|
rows: []
|
|
@@ -1312,7 +1387,7 @@ ${c}` : c;
|
|
|
1312
1387
|
header: !0,
|
|
1313
1388
|
align: a.align[e]
|
|
1314
1389
|
});
|
|
1315
|
-
for (let e of i) a.rows.push(
|
|
1390
|
+
for (let e of i) a.rows.push(vn(e, a.header.length).map((e, t) => ({
|
|
1316
1391
|
text: e,
|
|
1317
1392
|
tokens: this.lexer.inline(e),
|
|
1318
1393
|
header: !1,
|
|
@@ -1327,7 +1402,7 @@ ${c}` : c;
|
|
|
1327
1402
|
let e = t[1].trim();
|
|
1328
1403
|
return {
|
|
1329
1404
|
type: "heading",
|
|
1330
|
-
raw:
|
|
1405
|
+
raw: G(t[0], "\n"),
|
|
1331
1406
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
1332
1407
|
text: e,
|
|
1333
1408
|
tokens: this.lexer.inline(e)
|
|
@@ -1380,10 +1455,10 @@ ${c}` : c;
|
|
|
1380
1455
|
let e = t[2].trim();
|
|
1381
1456
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
1382
1457
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
1383
|
-
let t =
|
|
1458
|
+
let t = G(e.slice(0, -1), "\\");
|
|
1384
1459
|
if ((e.length - t.length) % 2 == 0) return;
|
|
1385
1460
|
} else {
|
|
1386
|
-
let e =
|
|
1461
|
+
let e = bn(t[2], "()");
|
|
1387
1462
|
if (e === -2) return;
|
|
1388
1463
|
if (e > -1) {
|
|
1389
1464
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -1395,7 +1470,7 @@ ${c}` : c;
|
|
|
1395
1470
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1396
1471
|
e && (n = e[1], r = e[3]);
|
|
1397
1472
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
1398
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
1473
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Sn(t, {
|
|
1399
1474
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1400
1475
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1401
1476
|
}, t[0], this.lexer, this.rules);
|
|
@@ -1413,7 +1488,7 @@ ${c}` : c;
|
|
|
1413
1488
|
text: e
|
|
1414
1489
|
};
|
|
1415
1490
|
}
|
|
1416
|
-
return
|
|
1491
|
+
return Sn(n, e, n[0], this.lexer, this.rules);
|
|
1417
1492
|
}
|
|
1418
1493
|
}
|
|
1419
1494
|
emStrong(e, t, n = "") {
|
|
@@ -1425,7 +1500,8 @@ ${c}` : c;
|
|
|
1425
1500
|
if (a = [...i].length, r[3] || r[4]) {
|
|
1426
1501
|
o += a;
|
|
1427
1502
|
continue;
|
|
1428
|
-
}
|
|
1503
|
+
}
|
|
1504
|
+
if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
|
|
1429
1505
|
s += a;
|
|
1430
1506
|
continue;
|
|
1431
1507
|
}
|
|
@@ -1552,22 +1628,22 @@ ${c}` : c;
|
|
|
1552
1628
|
inlineQueue;
|
|
1553
1629
|
tokenizer;
|
|
1554
1630
|
constructor(e) {
|
|
1555
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
1631
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || k, this.options.tokenizer = this.options.tokenizer || new K(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1556
1632
|
inLink: !1,
|
|
1557
1633
|
inRawBlock: !1,
|
|
1558
1634
|
top: !0
|
|
1559
1635
|
};
|
|
1560
1636
|
let t = {
|
|
1561
|
-
other:
|
|
1562
|
-
block:
|
|
1563
|
-
inline:
|
|
1637
|
+
other: M,
|
|
1638
|
+
block: U.normal,
|
|
1639
|
+
inline: mn.normal
|
|
1564
1640
|
};
|
|
1565
|
-
this.options.pedantic ? (t.block =
|
|
1641
|
+
this.options.pedantic ? (t.block = U.pedantic, t.inline = mn.pedantic) : this.options.gfm && (t.block = U.gfm, t.inline = this.options.breaks ? mn.breaks : mn.gfm), this.tokenizer.rules = t;
|
|
1566
1642
|
}
|
|
1567
1643
|
static get rules() {
|
|
1568
1644
|
return {
|
|
1569
|
-
block:
|
|
1570
|
-
inline:
|
|
1645
|
+
block: U,
|
|
1646
|
+
inline: mn
|
|
1571
1647
|
};
|
|
1572
1648
|
}
|
|
1573
1649
|
static lex(t, n) {
|
|
@@ -1577,7 +1653,7 @@ ${c}` : c;
|
|
|
1577
1653
|
return new e(n).inlineTokens(t);
|
|
1578
1654
|
}
|
|
1579
1655
|
lex(e) {
|
|
1580
|
-
e = e.replace(
|
|
1656
|
+
e = e.replace(M.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
1581
1657
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
1582
1658
|
let t = this.inlineQueue[e];
|
|
1583
1659
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -1585,8 +1661,8 @@ ${c}` : c;
|
|
|
1585
1661
|
return this.inlineQueue = [], this.tokens;
|
|
1586
1662
|
}
|
|
1587
1663
|
blockTokens(e, t = [], n = !1) {
|
|
1588
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
1589
|
-
let r =
|
|
1664
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(M.tabCharGlobal, " ").replace(M.spaceLine, ""));
|
|
1665
|
+
let r = 1 / 0;
|
|
1590
1666
|
for (; e;) {
|
|
1591
1667
|
if (e.length < r) r = e.length;
|
|
1592
1668
|
else {
|
|
@@ -1607,27 +1683,7 @@ ${c}` : c;
|
|
|
1607
1683
|
n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.at(-1).src = n.text) : t.push(i);
|
|
1608
1684
|
continue;
|
|
1609
1685
|
}
|
|
1610
|
-
if (i = this.tokenizer.fences(e)) {
|
|
1611
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1612
|
-
continue;
|
|
1613
|
-
}
|
|
1614
|
-
if (i = this.tokenizer.heading(e)) {
|
|
1615
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1616
|
-
continue;
|
|
1617
|
-
}
|
|
1618
|
-
if (i = this.tokenizer.hr(e)) {
|
|
1619
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1620
|
-
continue;
|
|
1621
|
-
}
|
|
1622
|
-
if (i = this.tokenizer.blockquote(e)) {
|
|
1623
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1624
|
-
continue;
|
|
1625
|
-
}
|
|
1626
|
-
if (i = this.tokenizer.list(e)) {
|
|
1627
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1628
|
-
continue;
|
|
1629
|
-
}
|
|
1630
|
-
if (i = this.tokenizer.html(e)) {
|
|
1686
|
+
if ((i = this.tokenizer.fences(e)) || (i = this.tokenizer.heading(e)) || (i = this.tokenizer.hr(e)) || (i = this.tokenizer.blockquote(e)) || (i = this.tokenizer.list(e)) || (i = this.tokenizer.html(e))) {
|
|
1631
1687
|
e = e.substring(i.raw.length), t.push(i);
|
|
1632
1688
|
continue;
|
|
1633
1689
|
}
|
|
@@ -1640,33 +1696,25 @@ ${c}` : c;
|
|
|
1640
1696
|
}, t.push(i));
|
|
1641
1697
|
continue;
|
|
1642
1698
|
}
|
|
1643
|
-
if (i = this.tokenizer.table(e)) {
|
|
1644
|
-
e = e.substring(i.raw.length), t.push(i);
|
|
1645
|
-
continue;
|
|
1646
|
-
}
|
|
1647
|
-
if (i = this.tokenizer.lheading(e)) {
|
|
1699
|
+
if ((i = this.tokenizer.table(e)) || (i = this.tokenizer.lheading(e))) {
|
|
1648
1700
|
e = e.substring(i.raw.length), t.push(i);
|
|
1649
1701
|
continue;
|
|
1650
1702
|
}
|
|
1651
1703
|
let a = e;
|
|
1652
1704
|
if (this.options.extensions?.startBlock) {
|
|
1653
|
-
let t =
|
|
1705
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
1654
1706
|
this.options.extensions.startBlock.forEach((e) => {
|
|
1655
1707
|
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
1656
|
-
}), t <
|
|
1708
|
+
}), t < 1 / 0 && t >= 0 && (a = e.substring(0, t + 1));
|
|
1657
1709
|
}
|
|
1658
1710
|
if (this.state.top && (i = this.tokenizer.paragraph(a))) {
|
|
1659
1711
|
let r = t.at(-1);
|
|
1660
1712
|
n && r?.type === "paragraph" ? (r.raw += (r.raw.endsWith("\n") ? "" : "\n") + i.raw, r.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = r.text) : t.push(i), n = a.length !== e.length, e = e.substring(i.raw.length);
|
|
1661
|
-
|
|
1662
|
-
}
|
|
1663
|
-
if (i = this.tokenizer.text(e)) {
|
|
1713
|
+
} else if (i = this.tokenizer.text(e)) {
|
|
1664
1714
|
e = e.substring(i.raw.length);
|
|
1665
1715
|
let n = t.at(-1);
|
|
1666
1716
|
n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + i.raw, n.text += "\n" + i.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(i);
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
if (e) {
|
|
1717
|
+
} else if (e) {
|
|
1670
1718
|
this.infiniteLoopError(e.charCodeAt(0));
|
|
1671
1719
|
break;
|
|
1672
1720
|
}
|
|
@@ -1690,7 +1738,7 @@ ${c}` : c;
|
|
|
1690
1738
|
let i;
|
|
1691
1739
|
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) !== null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
1692
1740
|
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
1693
|
-
let a = !1, o = "", s =
|
|
1741
|
+
let a = !1, o = "", s = 1 / 0;
|
|
1694
1742
|
for (; e;) {
|
|
1695
1743
|
if (e.length < s) s = e.length;
|
|
1696
1744
|
else {
|
|
@@ -1700,15 +1748,7 @@ ${c}` : c;
|
|
|
1700
1748
|
a || (o = ""), a = !1;
|
|
1701
1749
|
let r;
|
|
1702
1750
|
if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
1703
|
-
if (r = this.tokenizer.escape(e)) {
|
|
1704
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1705
|
-
continue;
|
|
1706
|
-
}
|
|
1707
|
-
if (r = this.tokenizer.tag(e)) {
|
|
1708
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1709
|
-
continue;
|
|
1710
|
-
}
|
|
1711
|
-
if (r = this.tokenizer.link(e)) {
|
|
1751
|
+
if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
|
|
1712
1752
|
e = e.substring(r.raw.length), t.push(r);
|
|
1713
1753
|
continue;
|
|
1714
1754
|
}
|
|
@@ -1718,44 +1758,22 @@ ${c}` : c;
|
|
|
1718
1758
|
r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
1719
1759
|
continue;
|
|
1720
1760
|
}
|
|
1721
|
-
if (r = this.tokenizer.emStrong(e, n, o)) {
|
|
1722
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1723
|
-
continue;
|
|
1724
|
-
}
|
|
1725
|
-
if (r = this.tokenizer.codespan(e)) {
|
|
1726
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1727
|
-
continue;
|
|
1728
|
-
}
|
|
1729
|
-
if (r = this.tokenizer.br(e)) {
|
|
1730
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1731
|
-
continue;
|
|
1732
|
-
}
|
|
1733
|
-
if (r = this.tokenizer.del(e, n, o)) {
|
|
1734
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1735
|
-
continue;
|
|
1736
|
-
}
|
|
1737
|
-
if (r = this.tokenizer.autolink(e)) {
|
|
1738
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1739
|
-
continue;
|
|
1740
|
-
}
|
|
1741
|
-
if (!this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
1761
|
+
if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e, n, o)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
|
|
1742
1762
|
e = e.substring(r.raw.length), t.push(r);
|
|
1743
1763
|
continue;
|
|
1744
1764
|
}
|
|
1745
1765
|
let i = e;
|
|
1746
1766
|
if (this.options.extensions?.startInline) {
|
|
1747
|
-
let t =
|
|
1767
|
+
let t = 1 / 0, n = e.slice(1), r;
|
|
1748
1768
|
this.options.extensions.startInline.forEach((e) => {
|
|
1749
1769
|
r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
|
|
1750
|
-
}), t <
|
|
1770
|
+
}), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
|
|
1751
1771
|
}
|
|
1752
1772
|
if (r = this.tokenizer.inlineText(i)) {
|
|
1753
1773
|
e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
|
|
1754
1774
|
let n = t.at(-1);
|
|
1755
1775
|
n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
|
|
1756
|
-
|
|
1757
|
-
}
|
|
1758
|
-
if (e) {
|
|
1776
|
+
} else if (e) {
|
|
1759
1777
|
this.infiniteLoopError(e.charCodeAt(0));
|
|
1760
1778
|
break;
|
|
1761
1779
|
}
|
|
@@ -1767,18 +1785,18 @@ ${c}` : c;
|
|
|
1767
1785
|
if (this.options.silent) console.error(t);
|
|
1768
1786
|
else throw Error(t);
|
|
1769
1787
|
}
|
|
1770
|
-
},
|
|
1788
|
+
}, wn = class {
|
|
1771
1789
|
options;
|
|
1772
1790
|
parser;
|
|
1773
1791
|
constructor(e) {
|
|
1774
|
-
this.options = e ||
|
|
1792
|
+
this.options = e || k;
|
|
1775
1793
|
}
|
|
1776
1794
|
space(e) {
|
|
1777
1795
|
return "";
|
|
1778
1796
|
}
|
|
1779
1797
|
code({ text: e, lang: t, escaped: n }) {
|
|
1780
|
-
let r = (t || "").match(
|
|
1781
|
-
return r ? "<pre><code class=\"language-" +
|
|
1798
|
+
let r = (t || "").match(M.notSpaceStart)?.[0], i = e.replace(M.endingNewline, "") + "\n";
|
|
1799
|
+
return r ? "<pre><code class=\"language-" + W(r) + "\">" + (n ? i : W(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : W(i, !0)) + "</code></pre>\n";
|
|
1782
1800
|
}
|
|
1783
1801
|
blockquote({ tokens: e }) {
|
|
1784
1802
|
return `<blockquote>
|
|
@@ -1848,7 +1866,7 @@ ${e}</tr>
|
|
|
1848
1866
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1849
1867
|
}
|
|
1850
1868
|
codespan({ text: e }) {
|
|
1851
|
-
return `<code>${
|
|
1869
|
+
return `<code>${W(e, !0)}</code>`;
|
|
1852
1870
|
}
|
|
1853
1871
|
br(e) {
|
|
1854
1872
|
return "<br>";
|
|
@@ -1857,24 +1875,24 @@ ${e}</tr>
|
|
|
1857
1875
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1858
1876
|
}
|
|
1859
1877
|
link({ href: e, title: t, tokens: n }) {
|
|
1860
|
-
let r = this.parser.parseInline(n), i =
|
|
1878
|
+
let r = this.parser.parseInline(n), i = _n(e);
|
|
1861
1879
|
if (i === null) return r;
|
|
1862
1880
|
e = i;
|
|
1863
1881
|
let a = "<a href=\"" + e + "\"";
|
|
1864
|
-
return t && (a += " title=\"" +
|
|
1882
|
+
return t && (a += " title=\"" + W(t) + "\""), a += ">" + r + "</a>", a;
|
|
1865
1883
|
}
|
|
1866
1884
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1867
1885
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1868
|
-
let i =
|
|
1869
|
-
if (i === null) return
|
|
1886
|
+
let i = _n(e);
|
|
1887
|
+
if (i === null) return W(n);
|
|
1870
1888
|
e = i;
|
|
1871
|
-
let a = `<img src="${e}" alt="${
|
|
1872
|
-
return t && (a += ` title="${
|
|
1889
|
+
let a = `<img src="${e}" alt="${W(n)}"`;
|
|
1890
|
+
return t && (a += ` title="${W(t)}"`), a += ">", a;
|
|
1873
1891
|
}
|
|
1874
1892
|
text(e) {
|
|
1875
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
1893
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : W(e.text);
|
|
1876
1894
|
}
|
|
1877
|
-
},
|
|
1895
|
+
}, Tn = class {
|
|
1878
1896
|
strong({ text: e }) {
|
|
1879
1897
|
return e;
|
|
1880
1898
|
}
|
|
@@ -1910,7 +1928,7 @@ ${e}</tr>
|
|
|
1910
1928
|
renderer;
|
|
1911
1929
|
textRenderer;
|
|
1912
1930
|
constructor(e) {
|
|
1913
|
-
this.options = e ||
|
|
1931
|
+
this.options = e || k, this.options.renderer = this.options.renderer || new wn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Tn();
|
|
1914
1932
|
}
|
|
1915
1933
|
static parse(t, n) {
|
|
1916
1934
|
return new e(n).parse(t);
|
|
@@ -2056,11 +2074,11 @@ ${e}</tr>
|
|
|
2056
2074
|
}
|
|
2057
2075
|
return n;
|
|
2058
2076
|
}
|
|
2059
|
-
},
|
|
2077
|
+
}, En = class {
|
|
2060
2078
|
options;
|
|
2061
2079
|
block;
|
|
2062
2080
|
constructor(e) {
|
|
2063
|
-
this.options = e ||
|
|
2081
|
+
this.options = e || k;
|
|
2064
2082
|
}
|
|
2065
2083
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
2066
2084
|
"preprocess",
|
|
@@ -2091,17 +2109,17 @@ ${e}</tr>
|
|
|
2091
2109
|
provideParser(e = this.block) {
|
|
2092
2110
|
return e ? J.parse : J.parseInline;
|
|
2093
2111
|
}
|
|
2094
|
-
},
|
|
2095
|
-
defaults =
|
|
2112
|
+
}, Y = new class {
|
|
2113
|
+
defaults = mt();
|
|
2096
2114
|
options = this.setOptions;
|
|
2097
2115
|
parse = this.parseMarkdown(!0);
|
|
2098
2116
|
parseInline = this.parseMarkdown(!1);
|
|
2099
2117
|
Parser = J;
|
|
2100
|
-
Renderer =
|
|
2101
|
-
TextRenderer =
|
|
2118
|
+
Renderer = wn;
|
|
2119
|
+
TextRenderer = Tn;
|
|
2102
2120
|
Lexer = q;
|
|
2103
|
-
Tokenizer =
|
|
2104
|
-
Hooks =
|
|
2121
|
+
Tokenizer = K;
|
|
2122
|
+
Hooks = En;
|
|
2105
2123
|
constructor(...e) {
|
|
2106
2124
|
this.use(...e);
|
|
2107
2125
|
}
|
|
@@ -2122,7 +2140,7 @@ ${e}</tr>
|
|
|
2122
2140
|
default: {
|
|
2123
2141
|
let e = r;
|
|
2124
2142
|
this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
|
|
2125
|
-
let i = e[r].flat(
|
|
2143
|
+
let i = e[r].flat(1 / 0);
|
|
2126
2144
|
n = n.concat(this.walkTokens(i, t));
|
|
2127
2145
|
}) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
|
|
2128
2146
|
}
|
|
@@ -2152,7 +2170,7 @@ ${e}</tr>
|
|
|
2152
2170
|
}
|
|
2153
2171
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
2154
2172
|
}), n.extensions = t), e.renderer) {
|
|
2155
|
-
let t = this.defaults.renderer || new
|
|
2173
|
+
let t = this.defaults.renderer || new wn(this.defaults);
|
|
2156
2174
|
for (let n in e.renderer) {
|
|
2157
2175
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
2158
2176
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -2165,7 +2183,7 @@ ${e}</tr>
|
|
|
2165
2183
|
n.renderer = t;
|
|
2166
2184
|
}
|
|
2167
2185
|
if (e.tokenizer) {
|
|
2168
|
-
let t = this.defaults.tokenizer || new
|
|
2186
|
+
let t = this.defaults.tokenizer || new K(this.defaults);
|
|
2169
2187
|
for (let n in e.tokenizer) {
|
|
2170
2188
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
2171
2189
|
if ([
|
|
@@ -2182,19 +2200,19 @@ ${e}</tr>
|
|
|
2182
2200
|
n.tokenizer = t;
|
|
2183
2201
|
}
|
|
2184
2202
|
if (e.hooks) {
|
|
2185
|
-
let t = this.defaults.hooks || new
|
|
2203
|
+
let t = this.defaults.hooks || new En();
|
|
2186
2204
|
for (let n in e.hooks) {
|
|
2187
2205
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
2188
2206
|
if (["options", "block"].includes(n)) continue;
|
|
2189
2207
|
let r = n, i = e.hooks[r], a = t[r];
|
|
2190
|
-
|
|
2191
|
-
if (this.defaults.async &&
|
|
2208
|
+
t[r] = En.passThroughHooks.has(n) ? (e) => {
|
|
2209
|
+
if (this.defaults.async && En.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
2192
2210
|
let n = await i.call(t, e);
|
|
2193
2211
|
return a.call(t, n);
|
|
2194
2212
|
})();
|
|
2195
2213
|
let r = i.call(t, e);
|
|
2196
2214
|
return a.call(t, r);
|
|
2197
|
-
} :
|
|
2215
|
+
} : (...e) => {
|
|
2198
2216
|
if (this.defaults.async) return (async () => {
|
|
2199
2217
|
let n = await i.apply(t, e);
|
|
2200
2218
|
return n === !1 && (n = await a.apply(t, e)), n;
|
|
@@ -2259,7 +2277,7 @@ ${e}</tr>
|
|
|
2259
2277
|
onError(e, t) {
|
|
2260
2278
|
return (n) => {
|
|
2261
2279
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
2262
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
2280
|
+
let e = "<p>An error occurred:</p><pre>" + W(n.message + "", !0) + "</pre>";
|
|
2263
2281
|
return t ? Promise.resolve(e) : e;
|
|
2264
2282
|
}
|
|
2265
2283
|
if (t) return Promise.reject(n);
|
|
@@ -2267,19 +2285,18 @@ ${e}</tr>
|
|
|
2267
2285
|
};
|
|
2268
2286
|
}
|
|
2269
2287
|
}();
|
|
2270
|
-
function
|
|
2271
|
-
return
|
|
2288
|
+
function X(e, t) {
|
|
2289
|
+
return Y.parse(e, t);
|
|
2272
2290
|
}
|
|
2273
|
-
|
|
2274
|
-
return
|
|
2275
|
-
},
|
|
2276
|
-
return
|
|
2277
|
-
},
|
|
2278
|
-
return
|
|
2279
|
-
},
|
|
2280
|
-
|
|
2281
|
-
//#region src/components/chat-message/chat-message.module.scss?inline
|
|
2282
|
-
var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(--chat-message-font-family));font-size:var(--luzmo-chat-message-font-size,var(--chat-message-font-size));line-height:var(--luzmo-chat-message-line-height,var(--chat-message-line-height));color:var(--highcontrast-chat-message-text-color,var(--luzmo-chat-message-text-color,var(--chat-message-text-color)));display:flex}:host([position=left]){justify-content:flex-start}:host([position=right]){justify-content:flex-end}:host([position=middle]){justify-content:center}.container{gap:var(--luzmo-chat-message-message-to-avatar,var(--chat-message-message-to-avatar));max-width:var(--luzmo-chat-message-max-width,var(--chat-message-max-width));width:fit-content;display:flex}:host(:not([data-has-avatar])) .container{gap:0}:host(:not([data-has-avatar])) .avatar-wrapper{display:none}.position-left{flex-direction:row}.position-left .avatar-wrapper{order:0}.position-left .message-wrapper{order:1;align-items:flex-start}.position-left .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius-bottom-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right{flex-direction:row-reverse}.position-right .avatar-wrapper{order:0}.position-right .message-wrapper{order:1;align-items:flex-end}.position-right .header{justify-content:flex-end}.position-right .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius-bottom-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right .actions-outside{justify-content:flex-end}.position-middle .message-wrapper{align-items:center}.position-middle .header,.position-middle .actions-outside{justify-content:center}.avatar-wrapper{margin-top:var(--luzmo-chat-message-avatar-margin-top,var(--chat-message-avatar-margin-top,0));margin-bottom:var(--luzmo-chat-message-avatar-margin-bottom,var(--chat-message-avatar-margin-bottom,0));flex-shrink:0;align-items:flex-start;display:flex}:host([data-in-group]) .avatar-wrapper{min-width:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)));flex-basis:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)))}:host([data-in-group]:not([data-group-square-border])) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important}.avatar-top .avatar-wrapper{align-self:flex-start}.avatar-middle .avatar-wrapper{align-self:center}.avatar-bottom .avatar-wrapper{align-self:flex-end}.avatar-middle .message-wrapper,.avatar-bottom .message-wrapper{position:relative}.avatar-middle .actions-outside,.avatar-bottom .actions-outside{margin-top:var(--luzmo-chat-message-gap,var(--chat-message-gap));position:absolute;top:100%}.avatar-middle.position-left .actions-outside,.avatar-bottom.position-left .actions-outside{left:0}.avatar-middle.position-right .actions-outside,.avatar-bottom.position-right .actions-outside{right:0}.avatar-bottom.position-left .message{--luzmo-chat-message-message-border-radius-bottom-start:0}.avatar-bottom.position-right .message{--luzmo-chat-message-message-border-radius-bottom-end:0}.message-wrapper{gap:var(--luzmo-chat-message-gap,var(--chat-message-gap));flex-direction:column;min-width:0;display:flex}.message{padding:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding)) var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));border-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-width:var(--luzmo-chat-message-message-border-width,var(--chat-message-message-border-width));border-style:solid;border-color:var(--highcontrast-chat-message-message-border-color,var(--luzmo-chat-message-message-border-color,var(--chat-message-message-border-color)));background-color:var(--highcontrast-chat-message-message-background-color,var(--luzmo-chat-message-message-background-color,var(--chat-message-message-background-color)));box-shadow:var(--luzmo-chat-message-message-shadow,var(--chat-message-message-shadow));color:var(--luzmo-chat-message-message-text-color,var(--chat-message-message-text-color));word-wrap:break-word;overflow-wrap:break-word;max-width:100%;position:relative}.message .header,.message .user-name,.message .datetime,.message .actions-inside{color:inherit}.message.squared-top-left{border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-top-right{border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-left{border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-right{border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-left]) .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-left]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.header{align-items:baseline;gap:var(--luzmo-chat-message-header-gap,var(--chat-message-header-gap));margin-bottom:var(--luzmo-chat-message-header-margin-bottom,var(--chat-message-header-margin-bottom));flex-wrap:wrap;display:flex}:host([meta=outside]) .header{margin-bottom:0}.user-name{font-weight:var(--luzmo-chat-message-user-name-font-weight,var(--chat-message-user-name-font-weight));color:var(--luzmo-chat-message-user-name-color,var(--chat-message-user-name-color))}.datetime{font-size:var(--luzmo-chat-message-datetime-font-size,var(--chat-message-datetime-font-size));color:var(--luzmo-chat-message-datetime-color,var(--chat-message-datetime-color));opacity:var(--luzmo-chat-message-datetime-opacity,var(--chat-message-datetime-opacity))}.content{display:block}.markdown-content>*{margin-block:0 var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing))}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4,.markdown-content h5,.markdown-content h6{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top)) var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));font-weight:var(--luzmo-chat-message-markdown-heading-font-weight,var(--chat-message-markdown-heading-font-weight));line-height:var(--luzmo-chat-message-markdown-heading-line-height,var(--chat-message-markdown-heading-line-height))}.markdown-content h1{font-size:1.5em}.markdown-content h2{font-size:1.3em}.markdown-content h3{font-size:1.15em}.markdown-content h4{font-size:1em}.markdown-content h5{font-size:.9em}.markdown-content h6{font-size:.85em}.markdown-content strong{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content em{font-style:italic}.markdown-content del{text-decoration:line-through}.markdown-content a{color:var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));text-underline-offset:.15em;text-decoration:underline}.markdown-content a:hover{text-decoration-thickness:2px}.markdown-content a:focus-visible{outline:var(--luzmo-indicator-width,1px) solid var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));outline-offset:2px;border-radius:var(--luzmo-border-radius-s)}.markdown-content code{font-family:var(--luzmo-chat-message-markdown-code-font-family,var(--chat-message-markdown-code-font-family));font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:var(--luzmo-chat-message-markdown-code-background,var(--chat-message-markdown-code-background));border-radius:var(--luzmo-chat-message-markdown-code-radius,var(--chat-message-markdown-code-radius));padding:.15em .35em}.markdown-content pre{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding:var(--luzmo-chat-message-markdown-pre-padding,var(--chat-message-markdown-pre-padding));background:var(--luzmo-chat-message-markdown-pre-background,var(--chat-message-markdown-pre-background));border-radius:var(--luzmo-chat-message-markdown-pre-radius,var(--chat-message-markdown-pre-radius));white-space:pre;scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background);overflow-x:auto}.markdown-content pre code{font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:0 0;border-radius:0;padding:0}.markdown-content blockquote{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-inline-start:var(--luzmo-spacing-1,2px) solid var(--luzmo-chat-message-markdown-blockquote-border-color,var(--chat-message-markdown-blockquote-border-color));margin-inline:0;padding-inline-start:var(--luzmo-spacing-4)}.markdown-content blockquote>:first-child{margin-top:0}.markdown-content blockquote>:last-child{margin-bottom:0}.markdown-content ul,.markdown-content ol{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent))}.markdown-content li,.markdown-content li>ul,.markdown-content li>ol{margin-block:var(--luzmo-spacing-1)}.markdown-content li.task-list-item{margin-inline-start:calc(-1 * var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent)));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent));list-style:none}.markdown-content li.task-list-item input[type=checkbox]{vertical-align:middle;margin-inline-end:var(--luzmo-spacing-2)}.markdown-content table{width:max-content;max-width:100%;margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-collapse:collapse;display:block;overflow-x:auto}.markdown-content th,.markdown-content td{padding:var(--luzmo-chat-message-markdown-table-cell-padding,var(--chat-message-markdown-table-cell-padding));border:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color));text-align:start}.markdown-content th{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content hr{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top));border:0;border-top:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color))}.markdown-content img{border-radius:var(--luzmo-border-radius);max-width:100%;height:auto}.actions{gap:var(--luzmo-chat-message-actions-gap,var(--chat-message-actions-gap));align-items:center;display:flex}.actions-inside{margin-top:var(--luzmo-chat-message-actions-margin-top,var(--chat-message-actions-margin-top))}.actions-outside{opacity:var(--luzmo-chat-message-actions-opacity,var(--chat-message-actions-opacity));transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out}:host(:hover) .actions-outside,:host(:focus-within) .actions-outside{opacity:var(--luzmo-chat-message-actions-opacity-hover,var(--chat-message-actions-opacity-hover))}::slotted([slot=avatar]){display:block}::slotted([slot=actions]){align-items:center;display:inline-flex}.extra-actions{top:var(--luzmo-chat-message-extra-actions-top,var(--chat-message-extra-actions-top));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right));bottom:var(--luzmo-chat-message-extra-actions-bottom,var(--chat-message-extra-actions-bottom));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left));padding:var(--luzmo-chat-message-extra-actions-vertical-padding,var(--chat-message-extra-actions-vertical-padding)) var(--luzmo-chat-message-extra-actions-horizontal-padding,var(--chat-message-extra-actions-horizontal-padding));opacity:0;pointer-events:none;transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out;z-index:10;position:absolute}:host([position=left]) .extra-actions{left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding)));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m]) .extra-actions{top:calc(-1 * var(--luzmo-spacing-5))}:host([size=m][position=right]) .extra-actions{left:calc(-1 * var(--luzmo-spacing-5));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m][position=middle]) .extra-actions,:host([size=m][position=left]) .extra-actions{right:calc(-1 * var(--luzmo-spacing-5));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), auto)}.extra-actions-wrapper{background-color:var(--luzmo-chat-message-extra-actions-wrapper-background-color,var(--luzmo-background-color));border-radius:var(--luzmo-chat-message-extra-actions-wrapper-border-radius,var(--luzmo-border-radius));border-width:var(--luzmo-chat-message-extra-actions-wrapper-border-width,var(--luzmo-border-width));border-style:var(--luzmo-chat-message-extra-actions-wrapper-border-style,solid);border-color:var(--luzmo-chat-message-extra-actions-wrapper-border,var(--luzmo-border-color));padding:var(--luzmo-chat-message-extra-actions-wrapper-vertical-padding,var(--chat-message-extra-actions-wrapper-vertical-padding)) var(--luzmo-chat-message-extra-actions-wrapper-horizontal-padding,var(--chat-message-extra-actions-wrapper-horizontal-padding));position:var(--luzmo-chat-message-extra-actions-wrapper-position,var(--chat-message-extra-actions-wrapper-position), relative);top:var(--luzmo-chat-message-extra-actions-wrapper-top,var(--chat-message-extra-actions-wrapper-top));right:var(--luzmo-chat-message-extra-actions-wrapper-right,var(--chat-message-extra-actions-wrapper-right));bottom:var(--luzmo-chat-message-extra-actions-wrapper-bottom,var(--chat-message-extra-actions-wrapper-bottom));left:var(--luzmo-chat-message-extra-actions-wrapper-left,var(--chat-message-extra-actions-wrapper-left));align-items:center;display:inline-flex}:host(:hover) .extra-actions,:host(:focus-within) .extra-actions,:host(:active) .extra-actions{opacity:1;pointer-events:auto}::slotted([slot=extra-actions]){align-items:center;display:inline-flex}@media (forced-colors:active){.markdown-content th,.markdown-content td,.markdown-content hr{border-color:canvastext}.markdown-content pre,.markdown-content code{border:1px solid canvastext}.markdown-content pre code{border:0}.markdown-content blockquote{border-inline-start-color:canvastext}.markdown-content a{color:linktext}:host{--highcontrast-chat-message-message-background-color:Canvas;--highcontrast-chat-message-message-border-color:CanvasText;--highcontrast-chat-message-text-color:CanvasText}}:host{--chat-message-message-border-width:var(--luzmo-border-width);--chat-message-message-border-color:var(--luzmo-border-color);--chat-message-message-background-color:var(--luzmo-background-color-highlight);--chat-message-message-shadow:0 1px 2px var(--luzmo-shadow-color);--chat-message-message-text-color:inherit;--chat-message-font-family:var(--luzmo-font-family);--chat-message-font-size:var(--luzmo-font-size);--chat-message-line-height:1.5;--chat-message-text-color:var(--luzmo-font-color);--chat-message-header-gap:var(--luzmo-spacing-2);--chat-message-header-margin-bottom:var(--luzmo-spacing-1);--chat-message-user-name-font-weight:var(--luzmo-font-weight-bold,600);--chat-message-user-name-color:var(--luzmo-font-color);--chat-message-datetime-font-size:.75em;--chat-message-datetime-color:var(--luzmo-font-color-secondary);--chat-message-datetime-opacity:.7;--chat-message-actions-gap:var(--luzmo-spacing-1);--chat-message-actions-margin-top:var(--luzmo-spacing-2);--chat-message-actions-opacity:1;--chat-message-actions-opacity-hover:1;--chat-message-animation-duration:var(--luzmo-animation-duration,.15s);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-3);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-primary-background-color:var(--luzmo-primary);--chat-message-primary-border-color:var(--luzmo-primary);--chat-message-primary-text-color:var(--luzmo-primary-inverse-color);--chat-message-primary-text-color-outline:var(--luzmo-primary);--chat-message-secondary-background-color:var(--luzmo-secondary);--chat-message-secondary-border-color:var(--luzmo-secondary);--chat-message-secondary-text-color:var(--luzmo-secondary-inverse-color);--chat-message-secondary-text-color-outline:var(--luzmo-secondary);--chat-message-markdown-block-spacing:var(--luzmo-spacing-4);--chat-message-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--chat-message-markdown-heading-spacing-top:var(--luzmo-spacing-5);--chat-message-markdown-heading-line-height:1.25;--chat-message-markdown-code-font-family:ui-monospace, sfmono-regular, \"SF Mono\", menlo, consolas, \"Liberation Mono\", monospace;--chat-message-markdown-code-font-size:.875em;--chat-message-markdown-code-background:var(--luzmo-background-color-highlight);--chat-message-markdown-code-radius:var(--luzmo-border-radius-s);--chat-message-markdown-pre-background:var(--luzmo-background-color-highlight);--chat-message-markdown-pre-radius:var(--luzmo-border-radius);--chat-message-markdown-pre-padding:var(--luzmo-spacing-4);--chat-message-markdown-border-color:var(--luzmo-border-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-border-color);--chat-message-markdown-link-color:var(--luzmo-primary);--chat-message-markdown-list-indent:var(--luzmo-spacing-5);--chat-message-markdown-table-cell-padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3)}:host([position=middle]){--chat-message-max-width:90%}:host{--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:var(--luzmo-spacing-4);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-4);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xs]){--chat-message-message-border-radius:var(--luzmo-border-radius);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:11px;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-1);--chat-message-message-to-avatar:var(--luzmo-spacing-3)}:host([size=s]){--chat-message-message-border-radius:var(--luzmo-border-radius-l);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:12px;--chat-message-content-vertical-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-content-horizontal-padding:var(--luzmo-spacing-4);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=l]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:16px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-3);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xl]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:18px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:var(--luzmo-spacing-5);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-5)}:host([treatment=fill]){--chat-message-message-shadow:none}:host([variant=default][treatment=fill]){--chat-message-message-border-width:0}:host([variant=primary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-primary-background-color);--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color)}:host([variant=secondary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-secondary-background-color);--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color)}:host([variant=primary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-primary-down);--chat-message-markdown-pre-background:var(--luzmo-primary-down);--chat-message-markdown-link-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-primary-inverse-color)}:host([variant=secondary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-secondary-down);--chat-message-markdown-pre-background:var(--luzmo-secondary-down);--chat-message-markdown-link-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-secondary-inverse-color)}:host([treatment=outline]){--chat-message-message-background-color:transparent;--chat-message-message-shadow:none}:host([variant=primary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color-outline)}:host([variant=secondary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color-outline)}:host([quiet]){--chat-message-message-background-color:transparent;--chat-message-message-border-color:transparent;--chat-message-message-border-width:0;--chat-message-message-shadow:none;--chat-message-content-vertical-padding:0;--chat-message-content-horizontal-padding:0}:host([quiet][avatar-placement=top]){--chat-message-avatar-margin-top:calc((var(--chat-message-line-height) - 1) / 2 * 1em)}:host([quiet][avatar-placement=bottom]){--chat-message-avatar-margin-bottom:calc((var(--chat-message-line-height) - 1) / 2 * -1em)}:host([quiet][variant=primary]){--chat-message-primary-background-color:transparent;--chat-message-primary-border-color:transparent;--chat-message-primary-text-color:var(--luzmo-primary)}:host([quiet][variant=secondary]){--chat-message-secondary-background-color:transparent;--chat-message-secondary-border-color:transparent;--chat-message-secondary-text-color:var(--luzmo-secondary)}:host{--chat-message-extra-actions-top:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding));--chat-message-extra-actions-right:var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));--chat-message-extra-actions-bottom:auto;--chat-message-extra-actions-left:auto;--chat-message-extra-actions-vertical-padding:0;--chat-message-extra-actions-horizontal-padding:0;--chat-message-extra-actions-wrapper-background-color:var(--luzmo-border-color);--chat-message-extra-actions-wrapper-border-radius:var(--luzmo-border-radius);--chat-message-extra-actions-wrapper-border:none;--chat-message-extra-actions-wrapper-vertical-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-horizontal-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-position:relative;--chat-message-extra-actions-wrapper-top:auto;--chat-message-extra-actions-wrapper-right:auto;--chat-message-extra-actions-wrapper-bottom:auto;--chat-message-extra-actions-wrapper-left:auto}", Q = class extends n(e, {
|
|
2291
|
+
X.options = X.setOptions = function(e) {
|
|
2292
|
+
return Y.setOptions(e), X.defaults = Y.defaults, ht(X.defaults), X;
|
|
2293
|
+
}, X.getDefaults = mt, X.defaults = k, X.use = function(...e) {
|
|
2294
|
+
return Y.use(...e), X.defaults = Y.defaults, ht(X.defaults), X;
|
|
2295
|
+
}, X.walkTokens = function(e, t) {
|
|
2296
|
+
return Y.walkTokens(e, t);
|
|
2297
|
+
}, X.parseInline = Y.parseInline, X.Parser = J, X.parser = J.parse, X.Renderer = wn, X.TextRenderer = Tn, X.Lexer = q, X.lexer = q.lex, X.Tokenizer = K, X.Hooks = En, X.parse = X, X.options, X.setOptions, X.use, X.walkTokens, X.parseInline, J.parse, q.lex;
|
|
2298
|
+
// src/components/chat-message/chat-message.module.scss?inline
|
|
2299
|
+
var Dn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(--chat-message-font-family));font-size:var(--luzmo-chat-message-font-size,var(--chat-message-font-size));line-height:var(--luzmo-chat-message-line-height,var(--chat-message-line-height));color:var(--highcontrast-chat-message-text-color,var(--luzmo-chat-message-text-color,var(--chat-message-text-color)));display:flex}:host([position=left]){justify-content:flex-start}:host([position=right]){justify-content:flex-end}:host([position=middle]){justify-content:center}.container{gap:var(--luzmo-chat-message-message-to-avatar,var(--chat-message-message-to-avatar));max-width:var(--luzmo-chat-message-max-width,var(--chat-message-max-width));width:fit-content;display:flex}:host(:not([data-has-avatar])) .container{gap:0}:host(:not([data-has-avatar])) .avatar-wrapper{display:none}.position-left{flex-direction:row}.position-left .avatar-wrapper{order:0}.position-left .message-wrapper{order:1;align-items:flex-start}.position-left .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius-bottom-start,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right{flex-direction:row-reverse}.position-right .avatar-wrapper{order:0}.position-right .message-wrapper{order:1;align-items:flex-end}.position-right .header{justify-content:flex-end}.position-right .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius-bottom-end,var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius)))}.position-right .actions-outside{justify-content:flex-end}.position-middle .message-wrapper{align-items:center}.position-middle .header,.position-middle .actions-outside{justify-content:center}.avatar-wrapper{margin-top:var(--luzmo-chat-message-avatar-margin-top,var(--chat-message-avatar-margin-top,0));margin-bottom:var(--luzmo-chat-message-avatar-margin-bottom,var(--chat-message-avatar-margin-bottom,0));flex-shrink:0;align-items:flex-start;display:flex}:host([data-in-group]) .avatar-wrapper{min-width:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)));flex-basis:var(--chat-message-avatar-size,var(--luzmo-avatar-size,var(--avatar-size,32px)))}:host([data-in-group]:not([data-group-square-border])) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important;border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius))!important}.avatar-top .avatar-wrapper{align-self:flex-start}.avatar-middle .avatar-wrapper{align-self:center}.avatar-bottom .avatar-wrapper{align-self:flex-end}.avatar-middle .message-wrapper,.avatar-bottom .message-wrapper{position:relative}.avatar-middle .actions-outside,.avatar-bottom .actions-outside{margin-top:var(--luzmo-chat-message-gap,var(--chat-message-gap));position:absolute;top:100%}.avatar-middle.position-left .actions-outside,.avatar-bottom.position-left .actions-outside{left:0}.avatar-middle.position-right .actions-outside,.avatar-bottom.position-right .actions-outside{right:0}.avatar-bottom.position-left .message{--luzmo-chat-message-message-border-radius-bottom-start:0}.avatar-bottom.position-right .message{--luzmo-chat-message-message-border-radius-bottom-end:0}.message-wrapper{gap:var(--luzmo-chat-message-gap,var(--chat-message-gap));flex-direction:column;min-width:0;display:flex}.message{padding:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding)) var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));border-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-width:var(--luzmo-chat-message-message-border-width,var(--chat-message-message-border-width));border-style:solid;border-color:var(--highcontrast-chat-message-message-border-color,var(--luzmo-chat-message-message-border-color,var(--chat-message-message-border-color)));background-color:var(--highcontrast-chat-message-message-background-color,var(--luzmo-chat-message-message-background-color,var(--chat-message-message-background-color)));box-shadow:var(--luzmo-chat-message-message-shadow,var(--chat-message-message-shadow));color:var(--luzmo-chat-message-message-text-color,var(--chat-message-message-text-color));word-wrap:break-word;overflow-wrap:break-word;max-width:100%;position:relative}.message .header,.message .user-name,.message .datetime,.message .actions-inside{color:inherit}.message.squared-top-left{border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-top-right{border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-left{border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.message.squared-bottom-right{border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-left]) .message{border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=top-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-left]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}:host([data-group-square-border=bottom-right]) .message{border-top-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-top-right-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-left-radius:var(--luzmo-chat-message-message-border-radius,var(--chat-message-message-border-radius));border-bottom-right-radius:var(--luzmo-chat-message-squared-border-radius,var(--chat-message-squared-border-radius))!important}.header{align-items:baseline;gap:var(--luzmo-chat-message-header-gap,var(--chat-message-header-gap));margin-bottom:var(--luzmo-chat-message-header-margin-bottom,var(--chat-message-header-margin-bottom));flex-wrap:wrap;display:flex}:host([meta=outside]) .header{margin-bottom:0}.user-name{font-weight:var(--luzmo-chat-message-user-name-font-weight,var(--chat-message-user-name-font-weight));color:var(--luzmo-chat-message-user-name-color,var(--chat-message-user-name-color))}.datetime{font-size:var(--luzmo-chat-message-datetime-font-size,var(--chat-message-datetime-font-size));color:var(--luzmo-chat-message-datetime-color,var(--chat-message-datetime-color));opacity:var(--luzmo-chat-message-datetime-opacity,var(--chat-message-datetime-opacity))}.content{display:block}.markdown-content>*{margin-block:0 var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing))}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content h1,.markdown-content h2,.markdown-content h3,.markdown-content h4,.markdown-content h5,.markdown-content h6{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top)) var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));font-weight:var(--luzmo-chat-message-markdown-heading-font-weight,var(--chat-message-markdown-heading-font-weight));line-height:var(--luzmo-chat-message-markdown-heading-line-height,var(--chat-message-markdown-heading-line-height))}.markdown-content h1{font-size:1.5em}.markdown-content h2{font-size:1.3em}.markdown-content h3{font-size:1.15em}.markdown-content h4{font-size:1em}.markdown-content h5{font-size:.9em}.markdown-content h6{font-size:.85em}.markdown-content strong{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content em{font-style:italic}.markdown-content del{text-decoration:line-through}.markdown-content a{color:var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));text-underline-offset:.15em;text-decoration:underline}.markdown-content a:hover{text-decoration-thickness:2px}.markdown-content a:focus-visible{outline:var(--luzmo-indicator-width,1px) solid var(--luzmo-chat-message-markdown-link-color,var(--chat-message-markdown-link-color));outline-offset:2px;border-radius:var(--luzmo-border-radius-s)}.markdown-content code{font-family:var(--luzmo-chat-message-markdown-code-font-family,var(--chat-message-markdown-code-font-family));font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:var(--luzmo-chat-message-markdown-code-background,var(--chat-message-markdown-code-background));border-radius:var(--luzmo-chat-message-markdown-code-radius,var(--chat-message-markdown-code-radius));padding:.15em .35em}.markdown-content pre{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding:var(--luzmo-chat-message-markdown-pre-padding,var(--chat-message-markdown-pre-padding));background:var(--luzmo-chat-message-markdown-pre-background,var(--chat-message-markdown-pre-background));border-radius:var(--luzmo-chat-message-markdown-pre-radius,var(--chat-message-markdown-pre-radius));white-space:pre;scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background);overflow-x:auto}.markdown-content pre code{font-size:var(--luzmo-chat-message-markdown-code-font-size,var(--chat-message-markdown-code-font-size));background:0 0;border-radius:0;padding:0}.markdown-content blockquote{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-inline-start:var(--luzmo-spacing-1,2px) solid var(--luzmo-chat-message-markdown-blockquote-border-color,var(--chat-message-markdown-blockquote-border-color));margin-inline:0;padding-inline-start:var(--luzmo-spacing-4)}.markdown-content blockquote>:first-child{margin-top:0}.markdown-content blockquote>:last-child{margin-bottom:0}.markdown-content ul,.markdown-content ol{margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent))}.markdown-content li,.markdown-content li>ul,.markdown-content li>ol{margin-block:var(--luzmo-spacing-1)}.markdown-content li.task-list-item{margin-inline-start:calc(-1 * var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent)));padding-inline-start:var(--luzmo-chat-message-markdown-list-indent,var(--chat-message-markdown-list-indent));list-style:none}.markdown-content li.task-list-item input[type=checkbox]{vertical-align:middle;margin-inline-end:var(--luzmo-spacing-2)}.markdown-content table{width:max-content;max-width:100%;margin-block:var(--luzmo-chat-message-markdown-block-spacing,var(--chat-message-markdown-block-spacing));border-collapse:collapse;display:block;overflow-x:auto}.markdown-content th,.markdown-content td{padding:var(--luzmo-chat-message-markdown-table-cell-padding,var(--chat-message-markdown-table-cell-padding));border:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color));text-align:start}.markdown-content th{font-weight:var(--luzmo-font-weight-bold,600)}.markdown-content hr{margin-block:var(--luzmo-chat-message-markdown-heading-spacing-top,var(--chat-message-markdown-heading-spacing-top));border:0;border-top:var(--luzmo-border-width,1px) solid var(--luzmo-chat-message-markdown-border-color,var(--chat-message-markdown-border-color))}.markdown-content img{border-radius:var(--luzmo-border-radius);max-width:100%;height:auto}.actions{gap:var(--luzmo-chat-message-actions-gap,var(--chat-message-actions-gap));align-items:center;display:flex}.actions-inside{margin-top:var(--luzmo-chat-message-actions-margin-top,var(--chat-message-actions-margin-top))}.actions-outside{opacity:var(--luzmo-chat-message-actions-opacity,var(--chat-message-actions-opacity));transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out}:host(:hover) .actions-outside,:host(:focus-within) .actions-outside{opacity:var(--luzmo-chat-message-actions-opacity-hover,var(--chat-message-actions-opacity-hover))}::slotted([slot=avatar]){display:block}::slotted([slot=actions]){align-items:center;display:inline-flex}.extra-actions{top:var(--luzmo-chat-message-extra-actions-top,var(--chat-message-extra-actions-top));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right));bottom:var(--luzmo-chat-message-extra-actions-bottom,var(--chat-message-extra-actions-bottom));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left));padding:var(--luzmo-chat-message-extra-actions-vertical-padding,var(--chat-message-extra-actions-vertical-padding)) var(--luzmo-chat-message-extra-actions-horizontal-padding,var(--chat-message-extra-actions-horizontal-padding));opacity:0;pointer-events:none;transition:opacity var(--luzmo-chat-message-animation-duration,var(--chat-message-animation-duration)) ease-in-out;z-index:10;position:absolute}:host([position=left]) .extra-actions{left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding)));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m]) .extra-actions{top:calc(-1 * var(--luzmo-spacing-5))}:host([size=m][position=right]) .extra-actions{left:calc(-1 * var(--luzmo-spacing-5));right:var(--luzmo-chat-message-extra-actions-right,var(--chat-message-extra-actions-right), auto)}:host([size=m][position=middle]) .extra-actions,:host([size=m][position=left]) .extra-actions{right:calc(-1 * var(--luzmo-spacing-5));left:var(--luzmo-chat-message-extra-actions-left,var(--chat-message-extra-actions-left), auto)}.extra-actions-wrapper{background-color:var(--luzmo-chat-message-extra-actions-wrapper-background-color,var(--luzmo-background-color));border-radius:var(--luzmo-chat-message-extra-actions-wrapper-border-radius,var(--luzmo-border-radius));border-width:var(--luzmo-chat-message-extra-actions-wrapper-border-width,var(--luzmo-border-width));border-style:var(--luzmo-chat-message-extra-actions-wrapper-border-style,solid);border-color:var(--luzmo-chat-message-extra-actions-wrapper-border,var(--luzmo-border-color));padding:var(--luzmo-chat-message-extra-actions-wrapper-vertical-padding,var(--chat-message-extra-actions-wrapper-vertical-padding)) var(--luzmo-chat-message-extra-actions-wrapper-horizontal-padding,var(--chat-message-extra-actions-wrapper-horizontal-padding));position:var(--luzmo-chat-message-extra-actions-wrapper-position,var(--chat-message-extra-actions-wrapper-position), relative);top:var(--luzmo-chat-message-extra-actions-wrapper-top,var(--chat-message-extra-actions-wrapper-top));right:var(--luzmo-chat-message-extra-actions-wrapper-right,var(--chat-message-extra-actions-wrapper-right));bottom:var(--luzmo-chat-message-extra-actions-wrapper-bottom,var(--chat-message-extra-actions-wrapper-bottom));left:var(--luzmo-chat-message-extra-actions-wrapper-left,var(--chat-message-extra-actions-wrapper-left));align-items:center;display:inline-flex}:host(:hover) .extra-actions,:host(:focus-within) .extra-actions,:host(:active) .extra-actions{opacity:1;pointer-events:auto}::slotted([slot=extra-actions]){align-items:center;display:inline-flex}@media (forced-colors:active){.markdown-content th,.markdown-content td,.markdown-content hr{border-color:canvastext}.markdown-content pre,.markdown-content code{border:1px solid canvastext}.markdown-content pre code{border:0}.markdown-content blockquote{border-inline-start-color:canvastext}.markdown-content a{color:linktext}:host{--highcontrast-chat-message-message-background-color:Canvas;--highcontrast-chat-message-message-border-color:CanvasText;--highcontrast-chat-message-text-color:CanvasText}}:host{--chat-message-message-border-width:var(--luzmo-border-width);--chat-message-message-border-color:var(--luzmo-border-color);--chat-message-message-background-color:var(--luzmo-background-color-highlight);--chat-message-message-shadow:0 1px 2px var(--luzmo-shadow-color);--chat-message-message-text-color:inherit;--chat-message-font-family:var(--luzmo-font-family);--chat-message-font-size:var(--luzmo-font-size);--chat-message-line-height:1.5;--chat-message-text-color:var(--luzmo-font-color);--chat-message-header-gap:var(--luzmo-spacing-2);--chat-message-header-margin-bottom:var(--luzmo-spacing-1);--chat-message-user-name-font-weight:var(--luzmo-font-weight-bold,600);--chat-message-user-name-color:var(--luzmo-font-color);--chat-message-datetime-font-size:.75em;--chat-message-datetime-color:var(--luzmo-font-color-secondary);--chat-message-datetime-opacity:.7;--chat-message-actions-gap:var(--luzmo-spacing-1);--chat-message-actions-margin-top:var(--luzmo-spacing-2);--chat-message-actions-opacity:1;--chat-message-actions-opacity-hover:1;--chat-message-animation-duration:var(--luzmo-animation-duration,.15s);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-3);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-primary-background-color:var(--luzmo-primary);--chat-message-primary-border-color:var(--luzmo-primary);--chat-message-primary-text-color:var(--luzmo-primary-inverse-color);--chat-message-primary-text-color-outline:var(--luzmo-primary);--chat-message-secondary-background-color:var(--luzmo-secondary);--chat-message-secondary-border-color:var(--luzmo-secondary);--chat-message-secondary-text-color:var(--luzmo-secondary-inverse-color);--chat-message-secondary-text-color-outline:var(--luzmo-secondary);--chat-message-markdown-block-spacing:var(--luzmo-spacing-4);--chat-message-markdown-heading-font-weight:var(--luzmo-font-weight-bold);--chat-message-markdown-heading-spacing-top:var(--luzmo-spacing-5);--chat-message-markdown-heading-line-height:1.25;--chat-message-markdown-code-font-family:ui-monospace, sfmono-regular, \"SF Mono\", menlo, consolas, \"Liberation Mono\", monospace;--chat-message-markdown-code-font-size:.875em;--chat-message-markdown-code-background:var(--luzmo-background-color-highlight);--chat-message-markdown-code-radius:var(--luzmo-border-radius-s);--chat-message-markdown-pre-background:var(--luzmo-background-color-highlight);--chat-message-markdown-pre-radius:var(--luzmo-border-radius);--chat-message-markdown-pre-padding:var(--luzmo-spacing-4);--chat-message-markdown-border-color:var(--luzmo-border-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-border-color);--chat-message-markdown-link-color:var(--luzmo-primary);--chat-message-markdown-list-indent:var(--luzmo-spacing-5);--chat-message-markdown-table-cell-padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3)}:host([position=middle]){--chat-message-max-width:90%}:host{--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:var(--luzmo-spacing-4);--chat-message-max-width:80%;--chat-message-content-vertical-padding:var(--luzmo-spacing-4);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xs]){--chat-message-message-border-radius:var(--luzmo-border-radius);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:11px;--chat-message-content-vertical-padding:var(--luzmo-spacing-3);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-1);--chat-message-message-to-avatar:var(--luzmo-spacing-3)}:host([size=s]){--chat-message-message-border-radius:var(--luzmo-border-radius-l);--chat-message-squared-border-radius:var(--luzmo-border-radius-xs);--chat-message-font-size:12px;--chat-message-content-vertical-padding:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--chat-message-content-horizontal-padding:var(--luzmo-spacing-4);--chat-message-gap:var(--luzmo-spacing-2);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=l]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:16px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--chat-message-gap:var(--luzmo-spacing-3);--chat-message-message-to-avatar:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1))}:host([size=xl]){--chat-message-message-border-radius:var(--luzmo-border-radius-xl);--chat-message-squared-border-radius:var(--luzmo-border-radius-s);--chat-message-font-size:18px;--chat-message-content-vertical-padding:var(--luzmo-spacing-5);--chat-message-content-horizontal-padding:var(--luzmo-spacing-5);--chat-message-gap:var(--luzmo-spacing-4);--chat-message-message-to-avatar:var(--luzmo-spacing-5)}:host([treatment=fill]){--chat-message-message-shadow:none}:host([variant=default][treatment=fill]){--chat-message-message-border-width:0}:host([variant=primary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-primary-background-color);--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color)}:host([variant=secondary][treatment=fill]){--chat-message-message-background-color:var(--chat-message-secondary-background-color);--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color)}:host([variant=primary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-primary-down);--chat-message-markdown-pre-background:var(--luzmo-primary-down);--chat-message-markdown-link-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-primary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-primary-inverse-color)}:host([variant=secondary][treatment=fill]:not([quiet])){--chat-message-markdown-code-background:var(--luzmo-secondary-down);--chat-message-markdown-pre-background:var(--luzmo-secondary-down);--chat-message-markdown-link-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-border-color:var(--luzmo-secondary-inverse-color);--chat-message-markdown-blockquote-border-color:var(--luzmo-secondary-inverse-color)}:host([treatment=outline]){--chat-message-message-background-color:transparent;--chat-message-message-shadow:none}:host([variant=primary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-primary-border-color);--chat-message-message-text-color:var(--chat-message-primary-text-color-outline)}:host([variant=secondary][treatment=outline]){--chat-message-message-border-color:var(--chat-message-secondary-border-color);--chat-message-message-text-color:var(--chat-message-secondary-text-color-outline)}:host([quiet]){--chat-message-message-background-color:transparent;--chat-message-message-border-color:transparent;--chat-message-message-border-width:0;--chat-message-message-shadow:none;--chat-message-content-vertical-padding:0;--chat-message-content-horizontal-padding:0}:host([quiet][avatar-placement=top]){--chat-message-avatar-margin-top:calc((var(--chat-message-line-height) - 1) / 2 * 1em)}:host([quiet][avatar-placement=bottom]){--chat-message-avatar-margin-bottom:calc((var(--chat-message-line-height) - 1) / 2 * -1em)}:host([quiet][variant=primary]){--chat-message-primary-background-color:transparent;--chat-message-primary-border-color:transparent;--chat-message-primary-text-color:var(--luzmo-primary)}:host([quiet][variant=secondary]){--chat-message-secondary-background-color:transparent;--chat-message-secondary-border-color:transparent;--chat-message-secondary-text-color:var(--luzmo-secondary)}:host{--chat-message-extra-actions-top:var(--luzmo-chat-message-content-vertical-padding,var(--chat-message-content-vertical-padding));--chat-message-extra-actions-right:var(--luzmo-chat-message-content-horizontal-padding,var(--chat-message-content-horizontal-padding));--chat-message-extra-actions-bottom:auto;--chat-message-extra-actions-left:auto;--chat-message-extra-actions-vertical-padding:0;--chat-message-extra-actions-horizontal-padding:0;--chat-message-extra-actions-wrapper-background-color:var(--luzmo-border-color);--chat-message-extra-actions-wrapper-border-radius:var(--luzmo-border-radius);--chat-message-extra-actions-wrapper-border:none;--chat-message-extra-actions-wrapper-vertical-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-horizontal-padding:var(--luzmo-spacing-1);--chat-message-extra-actions-wrapper-position:relative;--chat-message-extra-actions-wrapper-top:auto;--chat-message-extra-actions-wrapper-right:auto;--chat-message-extra-actions-wrapper-bottom:auto;--chat-message-extra-actions-wrapper-left:auto}", Z = class extends n(e, {
|
|
2283
2300
|
validSizes: [
|
|
2284
2301
|
"xs",
|
|
2285
2302
|
"s",
|
|
@@ -2307,7 +2324,7 @@ var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2307
2324
|
this.defaultSlotObserver.disconnect(), super.disconnectedCallback();
|
|
2308
2325
|
}
|
|
2309
2326
|
static get styles() {
|
|
2310
|
-
return [o(
|
|
2327
|
+
return [o(Dn)];
|
|
2311
2328
|
}
|
|
2312
2329
|
_handleAvatarSlotChange(e) {
|
|
2313
2330
|
let t = e.target;
|
|
@@ -2333,7 +2350,7 @@ var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2333
2350
|
let e = [...this.childNodes].filter((e) => e.nodeType !== Node.ELEMENT_NODE || !e.hasAttribute("slot"));
|
|
2334
2351
|
if (e.some((e) => e.nodeType === Node.ELEMENT_NODE)) return;
|
|
2335
2352
|
let t = e.filter((e) => e.nodeType === Node.TEXT_NODE || e.nodeType === Node.CDATA_SECTION_NODE).map((e) => e.textContent || "").join("").replaceAll("\r\n", "\n").replaceAll("\r", "\n").trim();
|
|
2336
|
-
if (t) return
|
|
2353
|
+
if (t) return pt.sanitize(X.parse(t, {
|
|
2337
2354
|
gfm: !0,
|
|
2338
2355
|
async: !1
|
|
2339
2356
|
}), { USE_PROFILES: { html: !0 } });
|
|
@@ -2369,18 +2386,14 @@ var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2369
2386
|
e.topLeft = !0;
|
|
2370
2387
|
break;
|
|
2371
2388
|
case "middle": break;
|
|
2372
|
-
case "bottom":
|
|
2373
|
-
e.bottomLeft = !0;
|
|
2374
|
-
break;
|
|
2389
|
+
case "bottom": e.bottomLeft = !0;
|
|
2375
2390
|
}
|
|
2376
2391
|
else if (this.position === "right") switch (this.avatarPlacement) {
|
|
2377
2392
|
case "top":
|
|
2378
2393
|
e.topRight = !0;
|
|
2379
2394
|
break;
|
|
2380
2395
|
case "middle": break;
|
|
2381
|
-
case "bottom":
|
|
2382
|
-
e.bottomRight = !0;
|
|
2383
|
-
break;
|
|
2396
|
+
case "bottom": e.bottomRight = !0;
|
|
2384
2397
|
}
|
|
2385
2398
|
return e;
|
|
2386
2399
|
}
|
|
@@ -2415,13 +2428,13 @@ var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2415
2428
|
"squared-bottom-left": e.bottomLeft,
|
|
2416
2429
|
"squared-bottom-right": e.bottomRight,
|
|
2417
2430
|
"has-avatar": this._hasAvatar
|
|
2418
|
-
}
|
|
2419
|
-
return i`
|
|
2420
|
-
<div class=${l({
|
|
2431
|
+
}, n = {
|
|
2421
2432
|
container: !0,
|
|
2422
2433
|
[`position-${this.position}`]: !0,
|
|
2423
2434
|
[`avatar-${this.avatarPlacement}`]: !0
|
|
2424
|
-
}
|
|
2435
|
+
};
|
|
2436
|
+
return i`
|
|
2437
|
+
<div class=${l(n)}>
|
|
2425
2438
|
<div class="avatar-wrapper">
|
|
2426
2439
|
<slot
|
|
2427
2440
|
name="avatar"
|
|
@@ -2466,43 +2479,41 @@ var xn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2466
2479
|
`;
|
|
2467
2480
|
}
|
|
2468
2481
|
};
|
|
2469
|
-
|
|
2470
|
-
//#region src/components/chat-message/index.ts
|
|
2482
|
+
// src/components/chat-message/index.ts
|
|
2471
2483
|
t([s({
|
|
2472
2484
|
type: String,
|
|
2473
2485
|
reflect: !0
|
|
2474
|
-
})],
|
|
2486
|
+
})], Z.prototype, "position", void 0), t([s({
|
|
2475
2487
|
type: String,
|
|
2476
2488
|
reflect: !0
|
|
2477
|
-
})],
|
|
2489
|
+
})], Z.prototype, "variant", void 0), t([s({
|
|
2478
2490
|
type: String,
|
|
2479
2491
|
reflect: !0
|
|
2480
|
-
})],
|
|
2492
|
+
})], Z.prototype, "treatment", void 0), t([s({
|
|
2481
2493
|
type: Boolean,
|
|
2482
2494
|
reflect: !0
|
|
2483
|
-
})],
|
|
2495
|
+
})], Z.prototype, "quiet", void 0), t([s({
|
|
2484
2496
|
type: String,
|
|
2485
2497
|
attribute: "name"
|
|
2486
|
-
})],
|
|
2498
|
+
})], Z.prototype, "name", void 0), t([s({
|
|
2487
2499
|
type: String,
|
|
2488
2500
|
attribute: "datetime"
|
|
2489
|
-
})],
|
|
2501
|
+
})], Z.prototype, "datetime", void 0), t([s({
|
|
2490
2502
|
type: Object,
|
|
2491
2503
|
attribute: "datetime-format-options"
|
|
2492
|
-
})],
|
|
2504
|
+
})], Z.prototype, "datetimeFormatOptions", void 0), t([s({
|
|
2493
2505
|
type: String,
|
|
2494
2506
|
attribute: "datetime-language"
|
|
2495
|
-
})],
|
|
2507
|
+
})], Z.prototype, "datetimeLanguage", void 0), t([s({
|
|
2496
2508
|
type: String,
|
|
2497
2509
|
reflect: !0
|
|
2498
|
-
})],
|
|
2510
|
+
})], Z.prototype, "meta", void 0), t([s({
|
|
2499
2511
|
type: String,
|
|
2500
2512
|
reflect: !0,
|
|
2501
2513
|
attribute: "actions"
|
|
2502
|
-
})],
|
|
2514
|
+
})], Z.prototype, "actionsPosition", void 0), t([s({
|
|
2503
2515
|
type: String,
|
|
2504
2516
|
reflect: !0,
|
|
2505
2517
|
attribute: "avatar-placement"
|
|
2506
|
-
})],
|
|
2507
|
-
|
|
2508
|
-
export { Q as t };
|
|
2518
|
+
})], Z.prototype, "avatarPlacement", void 0), t([c()], Z.prototype, "_hasAvatar", void 0), t([c()], Z.prototype, "_hasActions", void 0), t([c()], Z.prototype, "_hasExtraActions", void 0), customElements.get("luzmo-chat-message") || customElements.define("luzmo-chat-message", Z);
|
|
2519
|
+
export { Z as t };
|