@luzmo/lucero 1.0.3-alpha.7 → 1.0.3-alpha.8
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 -1
- package/components/accordion-BHBIfsLU.cjs +43 -0
- package/components/{accordion-BDchhAjE.js → accordion-DC7cjb1c.js} +4 -4
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +1 -1
- package/components/action-bar-BSMX042X.cjs +39 -0
- package/components/{action-bar-BO65QnWi.js → action-bar-Dn4IDXEF.js} +6 -6
- package/components/action-button/index.cjs +1 -1
- package/components/action-button/index.js +1 -1
- package/components/action-button-Cr_QN4On.cjs +22 -0
- package/components/{action-button-CfpJ8ybz.js → action-button-DC-ZFZTm.js} +3 -3
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-CH8FTW0i.cjs +20 -0
- package/components/{action-group-BQ-fyPYS.js → action-group-DYKpp-mz.js} +3 -3
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/{action-menu-CBSyW4O8.js → action-menu-BlR6cLpi.js} +8 -8
- package/components/{action-menu-CnkzFDHK.cjs → action-menu-C1C1Gx39.cjs} +2 -2
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +1 -1
- package/components/{avatar-79Zd9NiA.js → avatar-CyY_ZSD0.js} +4 -4
- package/components/avatar-PulwjkMI.cjs +24 -0
- package/components/badge/index.cjs +1 -1
- package/components/badge/index.js +1 -1
- package/components/badge-D1Ry32wi.cjs +23 -0
- package/components/{badge-2zAt91bn.js → badge-D6p2hPj8.js} +3 -3
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +2 -2
- package/components/button-C5hcfigl.cjs +20 -0
- package/components/{button-CPh-7eos.js → button-D1a4B85S.js} +5 -5
- package/components/{button-base-CgZijING.js → button-base-CzTYjZND.js} +4 -4
- package/components/{button-base-UZcvbkXl.cjs → button-base-Dj2qQqwO.cjs} +2 -2
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +1 -1
- package/components/{button-group-DaANSInm.js → button-group-BiQxYcQ2.js} +2 -2
- package/components/button-group-DIz5TZvc.cjs +18 -0
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -1
- package/components/{calendar-Ck40E6VN.js → calendar-BNRjXf9B.js} +4 -4
- package/components/calendar-BWArK3rh.cjs +142 -0
- package/components/chat-message/index.cjs +1 -1
- package/components/chat-message/index.js +1 -1
- package/components/chat-message-CNE-mGuP.cjs +149 -0
- package/components/{chat-message-BDTAV-Ph.js → chat-message-DJgocVNj.js} +501 -679
- package/components/chat-message-group/index.cjs +1 -1
- package/components/chat-message-group/index.js +1 -1
- package/components/{chat-message-group-D7vdn2gG.js → chat-message-group-B4U2MzHx.js} +2 -2
- package/components/chat-message-group-COmhCN-R.cjs +24 -0
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +1 -1
- package/components/{checkbox-DrbacuOs.js → checkbox-CPS-tR_i.js} +3 -3
- package/components/checkbox-DFwDrIdY.cjs +25 -0
- package/components/{checkbox-mixin-ClK1paqU.js → checkbox-mixin-C5sLMo5L.js} +1 -1
- package/components/{checkbox-mixin-PEFpw1Ep.cjs → checkbox-mixin-D4HeLrMj.cjs} +2 -2
- package/components/{rolldown-runtime-DWNI8pZO.cjs → chunk-D-qHiVGv.cjs} +1 -1
- package/components/{close-button-BG--crbw.js → close-button-MgaJT7yO.js} +4 -4
- package/components/close-button-_EXjp6_m.cjs +18 -0
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +1 -1
- package/components/color-area-C3Y2d5cu.cjs +80 -0
- package/components/{color-area-CAM3uysY.js → color-area-mWOctRNt.js} +6 -6
- package/components/color-controller-DueaXfnX.cjs +18 -0
- package/components/color-field/index.cjs +1 -1
- package/components/color-field/index.js +1 -1
- package/components/{color-field-Bq0IEitn.js → color-field-CxdIoSq6.js} +3 -3
- package/components/{color-field-IpL7Z89G.cjs → color-field-D7_7z2A2.cjs} +2 -2
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +1 -1
- package/components/{color-handle-DioEcX1V.js → color-handle-BOusOFFx.js} +2 -2
- package/components/color-handle-Cka48yPY.cjs +24 -0
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-loupe-DMk8uWZW.cjs +56 -0
- package/components/{color-loupe-ZcCecT0r.js → color-loupe-bEzi2P0y.js} +1 -1
- package/components/color-menu/index.cjs +1 -1
- package/components/color-menu/index.js +1 -1
- package/components/color-menu-BAKmi_EI.cjs +89 -0
- package/components/{color-menu-DtYUtPee.js → color-menu-Cryp_5Gh.js} +9 -9
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +1 -1
- package/components/color-palette-349EkPMg.cjs +18 -0
- package/components/{color-palette-FQyIMSwP.js → color-palette-BAdaNySC.js} +3 -3
- package/components/color-palette-group/index.cjs +1 -1
- package/components/color-palette-group/index.js +1 -1
- package/components/color-palette-group-BvP09zmT.cjs +28 -0
- package/components/{color-palette-group-o6bnF-Ir.js → color-palette-group-D8Mavsd2.js} +3 -3
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.js +1 -1
- package/components/{color-picker-CajJUS1c.cjs → color-picker-DL7rqWnW.cjs} +2 -2
- package/components/{color-picker-WCIGRufq.js → color-picker-DgjqWiVd.js} +6 -6
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -1
- package/components/color-slider-DxjJ72ue.cjs +57 -0
- package/components/{color-slider-BZ3G8Zgn.js → color-slider-ihAIFt5p.js} +5 -6
- package/components/{condition-attribute-with-id-Cw92IbcP.cjs → condition-attribute-with-id-DauPaLSS.cjs} +1 -1
- package/components/date-range-picker/index.cjs +1 -1
- package/components/date-range-picker/index.js +1 -1
- package/components/date-range-picker-DdY9hGsU.cjs +180 -0
- package/components/{date-range-picker-B2cRO9e5.js → date-range-picker-DocjwZKA.js} +10 -10
- package/components/date-time-picker/index.cjs +1 -1
- package/components/date-time-picker/index.js +1 -1
- package/components/{date-time-picker-CStBWop1.js → date-time-picker-CPbIj4TN.js} +11 -11
- package/components/date-time-picker-DdujhIkd.cjs +105 -0
- package/components/decorate-B2wePfNm.cjs +18 -0
- package/components/{decorate-CkCg3wfh.js → decorate-aGxJUVxg.js} +1 -1
- package/components/{dependency-manger-BSaHw9ju.cjs → dependency-manger-CHy9t__e.cjs} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +1 -1
- package/components/divider-Dn8XqbB6.cjs +18 -0
- package/components/{divider-CGbT-CL8.js → divider-cU0lVwOp.js} +3 -3
- package/components/{divider.module-BV6tmpOY.cjs → divider.module-CL60P_z8.cjs} +1 -1
- package/components/{element-resolution-BjaAlqwX.cjs → element-resolution-C0aiOB0Y.cjs} +1 -1
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-EZzkXa2e.js → field-group-C7ROsWq3.js} +2 -2
- package/components/{field-group-aWhlzhoj.cjs → field-group-OcI5Lgu7.cjs} +2 -2
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/field-label-BCl6R1uO.cjs +25 -0
- package/components/{field-label-B9S41b7c.js → field-label-CtGCEmdp.js} +5 -5
- package/components/{focus-group-DVPa1zxz.js → focus-group-BshI1RpM.js} +1 -1
- package/components/focus-group-SF8Kj7iB.cjs +18 -0
- package/components/focus-visible-B0NNezGc.cjs +18 -0
- package/components/{focus-visible-Bt2uDmuM.js → focus-visible-CrooVCUu.js} +2 -2
- package/components/{focusable-DuP0-Kuy.js → focusable-BmS8IzhH.js} +2 -2
- package/components/focusable-CupEoHmn.cjs +18 -0
- package/components/{focusable-selectors-DJqGLTJo.cjs → focusable-selectors-5n5liBn0.cjs} +1 -1
- package/components/{get-label-from-slot-TV4APBYs.cjs → get-label-from-slot-LO_DZP60.cjs} +1 -1
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +1 -1
- package/components/icon-B7hKwn_q.cjs +18 -0
- package/components/{icon-M3agnqx7.js → icon-CwBAE1eU.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +67 -67
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +1 -1
- package/components/{infield-button-CMcy_QGt.js → infield-button-BvKsbtKr.js} +3 -3
- package/components/infield-button-D5cuBWE5.cjs +22 -0
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -1
- package/components/{label-B1HYQ4Pp.js → label-ClJE2esm.js} +1 -1
- package/components/label-CqolZbJo.cjs +18 -0
- package/components/{language-resolution-BUeKpSce.cjs → language-resolution-BYemISJC.cjs} +1 -1
- package/components/{like-anchor-BX4PSB3d.cjs → like-anchor-BZJXts_H.cjs} +2 -2
- package/components/{like-anchor-DXCaEv7O.js → like-anchor-DeOXX-MX.js} +1 -1
- package/components/{manage-help-text-DwfUBgHK.js → manage-help-text-CF0xBh0F.js} +2 -2
- package/components/{manage-help-text-D20THJ3U.cjs → manage-help-text-D9VbYRf_.cjs} +2 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.d.ts +6 -4
- package/components/menu/index.js +1 -1
- package/components/{menu-qMByaBwZ.js → menu-Cdz2FEB7.js} +12 -12
- package/components/{menu-BS_hemfn.cjs → menu-DFKS4sRU.cjs} +4 -4
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +1 -1
- package/components/{multi-language-field-DqAlPXww.js → multi-language-field-BzY75rOY.js} +4 -4
- package/components/{multi-language-field-B7dnlCK9.cjs → multi-language-field-DmoMyCBH.cjs} +2 -2
- package/components/number-field/index.cjs +1 -1
- package/components/number-field/index.js +1 -1
- package/components/number-field-BmWODnnR.cjs +57 -0
- package/components/{number-field-B6BiDw0B.js → number-field-DrJURvoW.js} +7 -7
- package/components/observe-slot-presence-Dx8hzNzK.cjs +18 -0
- package/components/observe-slot-text-BhTcGuHY.cjs +18 -0
- package/components/{observe-slot-text-97nX6NyX.js → observe-slot-text-Ddf1OC6F.js} +1 -1
- package/components/options/index.cjs +1 -1
- package/components/options/index.js +1 -1
- package/components/{options-BV5E4ygY.js → options-BGwKMvng.js} +8 -8
- package/components/{options-Cq9Gx9UR.cjs → options-CKi3VkNR.cjs} +2 -2
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +3 -3
- package/components/{overlay-CO_JAhWD.cjs → overlay-BGI4wOGe.cjs} +2 -2
- package/components/{overlay-DpBGFUBW.js → overlay-BbQuYBxp.js} +8 -9
- package/components/overlay-DU_p8MNs.cjs +47 -0
- package/components/{overlay-DR9oYpb5.js → overlay-mdk7-NOt.js} +3 -3
- package/components/{pending-state-BeG7qBDP.js → pending-state-DFcNf5rd.js} +1 -1
- package/components/{pending-state-a527YMWV.cjs → pending-state-DIeF18qg.cjs} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +1 -1
- package/components/picker-CssPvvau.cjs +123 -0
- package/components/{picker-D5AyIL5x.js → picker-DOiM_cUu.js} +9 -9
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +1 -1
- package/components/{picker-button-Bg1oKrx4.js → picker-button-VAxzuhhg.js} +5 -5
- package/components/picker-button-adl1JO5u.cjs +37 -0
- package/components/platform-B7Sk7Qon.cjs +18 -0
- package/components/{platform-Ce9pNsR9.js → platform-D4V_cOJF.js} +2 -2
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/{popover-CFawf-z9.js → popover-DyC9xGhX.js} +3 -3
- package/components/popover-dgL04x6P.cjs +30 -0
- package/components/progress-bar/index.cjs +1 -1
- package/components/progress-bar/index.js +1 -1
- package/components/progress-bar-BR28tISC.cjs +31 -0
- package/components/{progress-bar-BU_h5i27.js → progress-bar-DHgFRml1.js} +3 -3
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-BVToDWX8.js → progress-circle-Cg_ua9Ff.js} +3 -3
- package/components/progress-circle-DuzwUiGN.cjs +33 -0
- package/components/progress-steps/index.cjs +1 -1
- package/components/progress-steps/index.js +1 -1
- package/components/{progress-steps-9unA0ptN.js → progress-steps-Da8aZWx3.js} +2 -2
- package/components/progress-steps-WriXaZpE.cjs +96 -0
- package/components/prompt-box/index.cjs +1 -1
- package/components/prompt-box/index.js +1 -1
- package/components/{prompt-box-DG4G19Vq.cjs → prompt-box-6Z5LIjCF.cjs} +3 -3
- package/components/{prompt-box-B1eJoNNC.js → prompt-box-Bj0qIPOy.js} +13 -13
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +1 -1
- package/components/{radio-DhrwxuSB.js → radio-BzEPGUmQ.js} +5 -5
- package/components/radio-d-2GUbYE.cjs +22 -0
- package/components/{random-id-BcUJAxUZ.cjs → random-id-B51lUxUB.cjs} +1 -1
- package/components/{random-id-CiMDyX7v.js → random-id-Dd4boCPV.js} +1 -1
- package/components/{roving-tabindex-BoPao4td.cjs → roving-tabindex-B7x5ePUB.cjs} +1 -1
- package/components/{roving-tabindex-pomAn3z-.js → roving-tabindex-BP6mQbXf.js} +1 -1
- package/components/{scaled-indicator-DLJIztx0.cjs → scaled-indicator-DF45Sc3W.cjs} +2 -2
- package/components/search/index.cjs +1 -1
- package/components/search/index.js +1 -1
- package/components/search-CCvT87FX.cjs +47 -0
- package/components/{search-DJa1-_UC.js → search-Dtff2EzC.js} +4 -4
- package/components/segments-factory-CHo9oQw7.cjs +18 -0
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +1 -1
- package/components/{select-CzZZmuWl.js → select-C2gh8zRr.js} +10 -10
- package/components/select-qAKOLhmQ.cjs +158 -0
- package/components/{sized-mixin-DzQTebN-.js → sized-mixin-DaBoZkVS.js} +1 -1
- package/components/sized-mixin-StFA4y0J.cjs +18 -0
- package/components/skeleton-loader/index.cjs +1 -1
- package/components/skeleton-loader/index.js +1 -1
- package/components/skeleton-loader-B8NgELvX.cjs +18 -0
- package/components/{skeleton-loader-C0LH3prK.js → skeleton-loader-C1XG3m_u.js} +1 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +1 -1
- package/components/{slider-BLaYicz8.js → slider-3QBnq0S8.js} +2 -2
- package/components/slider-uXRKcOz5.cjs +18 -0
- package/components/{slottable-request-event-C6eb7Ch3.cjs → slottable-request-event-gAcEQan2.cjs} +1 -1
- package/components/status-light/index.cjs +1 -1
- package/components/status-light/index.js +1 -1
- package/components/{status-light-BlfBJpqa.js → status-light-Bf8jGu4G.js} +2 -2
- package/components/status-light-CBaAFRUc.cjs +21 -0
- package/components/{strategies-Dbb3w-JB.js → strategies-DhxJGIZT.js} +1 -1
- package/components/{strategies-CPWEHFe1.cjs → strategies-kuvLVIKO.cjs} +1 -1
- package/components/streaming-listener-BnDW38lt.cjs +18 -0
- package/components/swatch/index.cjs +1 -1
- package/components/swatch/index.js +1 -1
- package/components/{swatch-C2ty27bJ.js → swatch-BLuV-hlF.js} +4 -4
- package/components/{swatch-DcUK5qDv.cjs → swatch-G70JUe6I.cjs} +2 -2
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +1 -1
- package/components/{switch-B10exYOk.js → switch-C5g5t5x2.js} +4 -4
- package/components/switch-COhz9ka9.cjs +22 -0
- package/components/tabs/index.cjs +1 -1
- package/components/tabs/index.js +1 -1
- package/components/{tabs-C07QGZbj.cjs → tabs-CTKkW-L8.cjs} +2 -2
- package/components/{tabs-CqYK2mFY.js → tabs-DYpbsO58.js} +11 -11
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +1 -1
- package/components/{tags-DrDRVcwq.js → tags-CBL5oFEo.js} +6 -6
- package/components/tags-CndS4S2k.cjs +47 -0
- package/components/text-field/index.cjs +1 -1
- package/components/text-field/index.js +2 -2
- package/components/text-field-A4Obzs4l.cjs +21 -0
- package/components/{text-field-C9_95TpH.js → text-field-BoGAvXvh.js} +3 -3
- package/components/{text-field-DItC9-FS.js → text-field-Cs8HYRYL.js} +5 -5
- package/components/{text-field-BG6dB1fv.cjs → text-field-FJr8ZUhI.cjs} +2 -2
- package/components/{text-field.module-DDRcQM7Y.cjs → text-field.module-D5oDP7MB.cjs} +1 -1
- package/components/toast/index.cjs +1 -1
- package/components/toast/index.js +1 -1
- package/components/{toast-B2rcl_2b.js → toast-Bd0fleYT.js} +3 -3
- package/components/toast-NZ0Z1lz9.cjs +51 -0
- package/components/tooltip/index.cjs +1 -1
- package/components/tooltip/index.js +1 -1
- package/components/tooltip-6y-g7e9V.cjs +45 -0
- package/components/{tooltip-Byl1h4nN.js → tooltip-CVSSKlDP.js} +4 -4
- package/components/top-nav/index.cjs +1 -1
- package/components/top-nav/index.js +1 -1
- package/components/{top-nav-D3Iqfth0.js → top-nav-CMVB3G_v.js} +6 -6
- package/components/top-nav-bekRXHUk.cjs +45 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +7 -7
- package/components/{voice-recorder-B1tBrGTV.cjs → voice-recorder-BUtmSvPO.cjs} +1 -1
- package/custom-elements.json +1 -1
- package/package.json +1 -1
- package/components/accordion-CW7xAsId.cjs +0 -43
- package/components/action-bar-CSf3qi0f.cjs +0 -39
- package/components/action-button-CMRoRRWo.cjs +0 -22
- package/components/action-group-D1G30Iir.cjs +0 -20
- package/components/avatar-BRfwsoBh.cjs +0 -24
- package/components/badge-BjusWIAn.cjs +0 -23
- package/components/button-D7RUI_x1.cjs +0 -20
- package/components/button-group-6M8M-TUI.cjs +0 -18
- package/components/calendar-9tmSkAp2.cjs +0 -142
- package/components/chat-message-SBnm0ITB.cjs +0 -150
- package/components/chat-message-group-CzCwyW7F.cjs +0 -24
- package/components/checkbox-C-HC6f2c.cjs +0 -25
- package/components/close-button-BQUJeFCq.cjs +0 -18
- package/components/color-area-B5OHLqtm.cjs +0 -80
- package/components/color-controller-DZe3_BMD.cjs +0 -18
- package/components/color-handle-BwV3Nia5.cjs +0 -24
- package/components/color-loupe-C_C2hy-m.cjs +0 -56
- package/components/color-menu-CBpuPimx.cjs +0 -89
- package/components/color-palette-C6G0Tdla.cjs +0 -18
- package/components/color-palette-group-B4r4tPfY.cjs +0 -28
- package/components/color-slider-CVSEpLOP.cjs +0 -57
- package/components/date-range-picker-nnN0b_N4.cjs +0 -180
- package/components/date-time-picker-Cj4n6nG-.cjs +0 -105
- package/components/decorate-Dq34MBGe.cjs +0 -18
- package/components/divider-wana0uPI.cjs +0 -18
- package/components/field-label-C5vdJ1ys.cjs +0 -25
- package/components/focus-group-C8lOjbi9.cjs +0 -18
- package/components/focus-visible-eQdwUM9k.cjs +0 -18
- package/components/focusable-DTxxQ3yJ.cjs +0 -18
- package/components/icon-xwNfYSkj.cjs +0 -18
- package/components/infield-button-DKlrlNuX.cjs +0 -22
- package/components/label-DPG13Ib0.cjs +0 -18
- package/components/number-field-BEBoSI-_.cjs +0 -57
- package/components/observe-slot-presence-CS8pMePk.cjs +0 -18
- package/components/observe-slot-text-DzUSxLpj.cjs +0 -18
- package/components/overlay-duS52Rsb.cjs +0 -47
- package/components/picker-D_lZ-gXW.cjs +0 -123
- package/components/picker-button-COrTSUL5.cjs +0 -37
- package/components/platform-BAjeJp2W.cjs +0 -18
- package/components/popover-R-fdNBvR.cjs +0 -30
- package/components/progress-bar-DHmthnzp.cjs +0 -31
- package/components/progress-circle-DyApSKdm.cjs +0 -33
- package/components/progress-steps-BgRH7KAn.cjs +0 -96
- package/components/radio-Ch4iR6e1.cjs +0 -22
- package/components/search-COpGXyHi.cjs +0 -47
- package/components/segments-factory-DtPyN5sh.cjs +0 -18
- package/components/select-DV38y5iI.cjs +0 -158
- package/components/sized-mixin-BT7cv-fT.cjs +0 -18
- package/components/skeleton-loader-Cm50Ztzk.cjs +0 -18
- package/components/slider-CfZ2IRgC.cjs +0 -18
- package/components/status-light-Bu0G8-lH.cjs +0 -21
- package/components/streaming-listener-Bfyk6Fsx.cjs +0 -18
- package/components/switch-BKDJ3dZ9.cjs +0 -22
- package/components/tags-CX8xqWyH.cjs +0 -47
- package/components/text-field-D0Z0K_7q.cjs +0 -21
- package/components/toast-BzIN9rHc.cjs +0 -51
- package/components/tooltip-Sm0pruxL.cjs +0 -45
- package/components/top-nav-Dqa5pB4f.cjs +0 -45
- /package/components/{color-controller-Rg_Zl0sT.js → color-controller-G2_v2xSl.js} +0 -0
- /package/components/{condition-attribute-with-id-BdnTdWKz.js → condition-attribute-with-id-Duo51HZ7.js} +0 -0
- /package/components/{dependency-manger-wHEXoU92.js → dependency-manger-DMrulWcJ.js} +0 -0
- /package/components/{divider.module-CPEKsaqR.js → divider.module-C65RfSUa.js} +0 -0
- /package/components/{element-resolution-gap51AVo.js → element-resolution-Bs1x89vU.js} +0 -0
- /package/components/{focusable-selectors-BWpiuXz5.js → focusable-selectors-Bg60_Kra.js} +0 -0
- /package/components/{get-label-from-slot-Bo9mqYCZ.js → get-label-from-slot-5vVnfSgN.js} +0 -0
- /package/components/{language-resolution-DR30FsWE.js → language-resolution-BpfGTC29.js} +0 -0
- /package/components/{observe-slot-presence-BKY6n06-.js → observe-slot-presence-BCqd3VSd.js} +0 -0
- /package/components/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CAFD8bLK.js} +0 -0
- /package/components/{scaled-indicator-C-TupV4L.js → scaled-indicator-BoLeYSgL.js} +0 -0
- /package/components/{segments-factory-BCRi1NKb.js → segments-factory-D0IveW-q.js} +0 -0
- /package/components/{slottable-request-event-MRSZbgTu.js → slottable-request-event-DZ2Z_BLk.js} +0 -0
- /package/components/{streaming-listener-CtcMpYfS.js → streaming-listener-2NcP7ys7.js} +0 -0
- /package/components/{text-field.module-BrBqDht3.js → text-field.module-Btsve-VN.js} +0 -0
- /package/components/{voice-recorder-CTg3kRxx.js → voice-recorder-477xPHRU.js} +0 -0
|
@@ -15,147 +15,104 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import { n as e, t } from "./decorate-
|
|
19
|
-
import { n } from "./sized-mixin-
|
|
20
|
-
import { t as r } from "./language-resolution-
|
|
18
|
+
import { n as e, t } from "./decorate-aGxJUVxg.js";
|
|
19
|
+
import { n } from "./sized-mixin-DaBoZkVS.js";
|
|
20
|
+
import { t as r } from "./language-resolution-BpfGTC29.js";
|
|
21
21
|
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
22
22
|
import { property as s, state as c } from "lit/decorators.js";
|
|
23
23
|
import { classMap as l } from "lit/directives/class-map.js";
|
|
24
24
|
import { unsafeHTML as u } from "lit/directives/unsafe-html.js";
|
|
25
25
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
29
|
-
return r;
|
|
30
|
-
}
|
|
31
|
-
function ee(e) {
|
|
32
|
-
if (Array.isArray(e)) return e;
|
|
33
|
-
}
|
|
34
|
-
function te(e, t) {
|
|
35
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
36
|
-
if (n != null) {
|
|
37
|
-
var r, i, a, o, s = [], c = !0, l = !1;
|
|
38
|
-
try {
|
|
39
|
-
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
40
|
-
} catch (e) {
|
|
41
|
-
l = !0, i = e;
|
|
42
|
-
} finally {
|
|
43
|
-
try {
|
|
44
|
-
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
45
|
-
} finally {
|
|
46
|
-
if (l) throw i;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return s;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function ne() {
|
|
53
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
54
|
-
}
|
|
55
|
-
function re(e, t) {
|
|
56
|
-
return ee(e) || te(e, t) || f(e, t) || ne();
|
|
57
|
-
}
|
|
58
|
-
function f(e, t) {
|
|
59
|
-
if (e) {
|
|
60
|
-
if (typeof e == "string") return d(e, t);
|
|
61
|
-
var n = {}.toString.call(e).slice(8, -1);
|
|
62
|
-
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) ? d(e, t) : void 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
var ie = Object.entries, ae = Object.setPrototypeOf, oe = Object.isFrozen, p = Object.getPrototypeOf, m = Object.getOwnPropertyDescriptor, h = Object.freeze, g = Object.seal, se = Object.create, _ = typeof Reflect < "u" && Reflect, v = _.apply, ce = _.construct;
|
|
66
|
-
h ||= function(e) {
|
|
26
|
+
var { entries: d, setPrototypeOf: ee, isFrozen: te, getPrototypeOf: f, getOwnPropertyDescriptor: ne } = Object, { freeze: p, seal: m, create: re } = Object, { apply: ie, construct: ae } = typeof Reflect < "u" && Reflect;
|
|
27
|
+
p ||= function(e) {
|
|
67
28
|
return e;
|
|
68
|
-
},
|
|
29
|
+
}, m ||= function(e) {
|
|
69
30
|
return e;
|
|
70
|
-
},
|
|
31
|
+
}, ie ||= function(e, t) {
|
|
71
32
|
var n = [...arguments].slice(2);
|
|
72
33
|
return e.apply(t, n);
|
|
73
|
-
},
|
|
34
|
+
}, ae ||= function(e) {
|
|
74
35
|
return new e(...[...arguments].slice(1));
|
|
75
36
|
};
|
|
76
|
-
var
|
|
77
|
-
function
|
|
37
|
+
var oe = x(Array.prototype.forEach), se = x(Array.prototype.lastIndexOf), ce = x(Array.prototype.pop), le = x(Array.prototype.push), ue = x(Array.prototype.splice), h = Array.isArray, de = x(String.prototype.toLowerCase), fe = x(String.prototype.toString), pe = x(String.prototype.match), me = x(String.prototype.replace), he = x(String.prototype.indexOf), ge = x(String.prototype.trim), _e = x(Number.prototype.toString), ve = x(Boolean.prototype.toString), g = typeof BigInt > "u" ? null : x(BigInt.prototype.toString), _ = typeof Symbol > "u" ? null : x(Symbol.prototype.toString), v = x(Object.prototype.hasOwnProperty), y = x(Object.prototype.toString), b = x(RegExp.prototype.test), ye = be(TypeError);
|
|
38
|
+
function x(e) {
|
|
78
39
|
return function(t) {
|
|
79
40
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
80
41
|
var n = [...arguments].slice(1);
|
|
81
|
-
return
|
|
42
|
+
return ie(e, t, n);
|
|
82
43
|
};
|
|
83
44
|
}
|
|
84
|
-
function
|
|
45
|
+
function be(e) {
|
|
85
46
|
return function() {
|
|
86
|
-
return
|
|
47
|
+
return ae(e, [...arguments]);
|
|
87
48
|
};
|
|
88
49
|
}
|
|
89
|
-
function
|
|
90
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
91
|
-
if (
|
|
50
|
+
function S(e, t) {
|
|
51
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : de;
|
|
52
|
+
if (ee && ee(e, null), !h(t)) return e;
|
|
92
53
|
let r = t.length;
|
|
93
54
|
for (; r--;) {
|
|
94
55
|
let i = t[r];
|
|
95
56
|
if (typeof i == "string") {
|
|
96
57
|
let e = n(i);
|
|
97
|
-
e !== i && (
|
|
58
|
+
e !== i && (te(t) || (t[r] = e), i = e);
|
|
98
59
|
}
|
|
99
60
|
e[i] = !0;
|
|
100
61
|
}
|
|
101
62
|
return e;
|
|
102
63
|
}
|
|
103
|
-
function
|
|
104
|
-
for (let t = 0; t < e.length; t++)
|
|
64
|
+
function xe(e) {
|
|
65
|
+
for (let t = 0; t < e.length; t++) v(e, t) || (e[t] = null);
|
|
105
66
|
return e;
|
|
106
67
|
}
|
|
107
|
-
function
|
|
108
|
-
let t =
|
|
109
|
-
for (let r of
|
|
110
|
-
var n = re(r, 2);
|
|
111
|
-
let i = n[0], a = n[1];
|
|
112
|
-
x(e, i) && (y(a) ? t[i] = Ee(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = T(a) : t[i] = a);
|
|
113
|
-
}
|
|
68
|
+
function C(e) {
|
|
69
|
+
let t = re(null);
|
|
70
|
+
for (let [n, r] of d(e)) v(e, n) && (h(r) ? t[n] = xe(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = C(r) : t[n] = r);
|
|
114
71
|
return t;
|
|
115
72
|
}
|
|
116
|
-
function
|
|
73
|
+
function Se(e) {
|
|
117
74
|
switch (typeof e) {
|
|
118
75
|
case "string": return e;
|
|
119
|
-
case "number": return
|
|
120
|
-
case "boolean": return
|
|
121
|
-
case "bigint": return
|
|
122
|
-
case "symbol": return
|
|
123
|
-
case "undefined": return
|
|
76
|
+
case "number": return _e(e);
|
|
77
|
+
case "boolean": return ve(e);
|
|
78
|
+
case "bigint": return g ? g(e) : "0";
|
|
79
|
+
case "symbol": return _ ? _(e) : "Symbol()";
|
|
80
|
+
case "undefined": return y(e);
|
|
124
81
|
case "function":
|
|
125
82
|
case "object": {
|
|
126
|
-
if (e === null) return
|
|
127
|
-
let t = e, n =
|
|
83
|
+
if (e === null) return y(e);
|
|
84
|
+
let t = e, n = Ce(t, "toString");
|
|
128
85
|
if (typeof n == "function") {
|
|
129
86
|
let e = n(t);
|
|
130
|
-
return typeof e == "string" ? e :
|
|
87
|
+
return typeof e == "string" ? e : y(e);
|
|
131
88
|
}
|
|
132
|
-
return
|
|
89
|
+
return y(e);
|
|
133
90
|
}
|
|
134
|
-
default: return
|
|
91
|
+
default: return y(e);
|
|
135
92
|
}
|
|
136
93
|
}
|
|
137
|
-
function
|
|
94
|
+
function Ce(e, t) {
|
|
138
95
|
for (; e !== null;) {
|
|
139
|
-
let n =
|
|
96
|
+
let n = ne(e, t);
|
|
140
97
|
if (n) {
|
|
141
|
-
if (n.get) return
|
|
142
|
-
if (typeof n.value == "function") return
|
|
98
|
+
if (n.get) return x(n.get);
|
|
99
|
+
if (typeof n.value == "function") return x(n.value);
|
|
143
100
|
}
|
|
144
|
-
e =
|
|
101
|
+
e = f(e);
|
|
145
102
|
}
|
|
146
103
|
function n() {
|
|
147
104
|
return null;
|
|
148
105
|
}
|
|
149
106
|
return n;
|
|
150
107
|
}
|
|
151
|
-
function
|
|
108
|
+
function we(e) {
|
|
152
109
|
try {
|
|
153
|
-
return
|
|
110
|
+
return b(e, ""), !0;
|
|
154
111
|
} catch {
|
|
155
112
|
return !1;
|
|
156
113
|
}
|
|
157
114
|
}
|
|
158
|
-
var
|
|
115
|
+
var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ee = p(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), De = p([
|
|
159
116
|
"feBlend",
|
|
160
117
|
"feColorMatrix",
|
|
161
118
|
"feComponentTransfer",
|
|
@@ -181,7 +138,7 @@ var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
181
138
|
"feSpotLight",
|
|
182
139
|
"feTile",
|
|
183
140
|
"feTurbulence"
|
|
184
|
-
]),
|
|
141
|
+
]), Oe = p([
|
|
185
142
|
"animate",
|
|
186
143
|
"color-profile",
|
|
187
144
|
"cursor",
|
|
@@ -204,7 +161,7 @@ var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
204
161
|
"solidcolor",
|
|
205
162
|
"unknown",
|
|
206
163
|
"use"
|
|
207
|
-
]),
|
|
164
|
+
]), ke = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ae = p([
|
|
208
165
|
"maction",
|
|
209
166
|
"maligngroup",
|
|
210
167
|
"malignmark",
|
|
@@ -220,28 +177,33 @@ var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
220
177
|
"annotation-xml",
|
|
221
178
|
"mprescripts",
|
|
222
179
|
"none"
|
|
223
|
-
]),
|
|
180
|
+
]), je = p(["#text"]), Me = p(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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(".")), Ne = p(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.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.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-rendering.textlength.type.u1.u2.unicode.values.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(".")), Pe = p(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Fe = p([
|
|
224
181
|
"xlink:href",
|
|
225
182
|
"xml:id",
|
|
226
183
|
"xlink:title",
|
|
227
184
|
"xml:space",
|
|
228
185
|
"xmlns:xlink"
|
|
229
|
-
]),
|
|
186
|
+
]), Ie = m(/\{\{[\w\W]*|[\w\W]*\}\}/gm), w = m(/<%[\w\W]*|[\w\W]*%>/gm), Le = m(/\$\{[\w\W]*/gm), Re = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), ze = m(/^aria-[\-\w]+$/), Be = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ve = m(/^(?:\w+script|data):/i), He = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ue = m(/^html$/i), We = m(/^[a-z][.\w]*(-[.\w]+)+$/i), Ge = /* @__PURE__ */ Object.freeze({
|
|
187
|
+
__proto__: null,
|
|
188
|
+
ARIA_ATTR: ze,
|
|
189
|
+
ATTR_WHITESPACE: He,
|
|
190
|
+
CUSTOM_ELEMENT: We,
|
|
191
|
+
DATA_ATTR: Re,
|
|
192
|
+
DOCTYPE_NAME: Ue,
|
|
193
|
+
ERB_EXPR: w,
|
|
194
|
+
IS_ALLOWED_URI: Be,
|
|
195
|
+
IS_SCRIPT_OR_DATA: Ve,
|
|
196
|
+
MUSTACHE_EXPR: Ie,
|
|
197
|
+
TMPLIT_EXPR: Le
|
|
198
|
+
}), Ke = {
|
|
230
199
|
element: 1,
|
|
231
|
-
attribute: 2,
|
|
232
200
|
text: 3,
|
|
233
|
-
|
|
234
|
-
entityReference: 5,
|
|
235
|
-
entityNode: 6,
|
|
236
|
-
processingInstruction: 7,
|
|
201
|
+
progressingInstruction: 7,
|
|
237
202
|
comment: 8,
|
|
238
|
-
document: 9
|
|
239
|
-
|
|
240
|
-
documentFragment: 11,
|
|
241
|
-
notation: 12
|
|
242
|
-
}, et = function() {
|
|
203
|
+
document: 9
|
|
204
|
+
}, qe = function() {
|
|
243
205
|
return typeof window > "u" ? null : window;
|
|
244
|
-
},
|
|
206
|
+
}, Je = function(e, t) {
|
|
245
207
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
246
208
|
let n = null, r = "data-tt-policy-suffix";
|
|
247
209
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -258,7 +220,7 @@ var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
258
220
|
} catch {
|
|
259
221
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
260
222
|
}
|
|
261
|
-
},
|
|
223
|
+
}, Ye = function() {
|
|
262
224
|
return {
|
|
263
225
|
afterSanitizeAttributes: [],
|
|
264
226
|
afterSanitizeElements: [],
|
|
@@ -270,53 +232,29 @@ var ke = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
270
232
|
uponSanitizeElement: [],
|
|
271
233
|
uponSanitizeShadowNode: []
|
|
272
234
|
};
|
|
273
|
-
}, O = function(e, t, n, r) {
|
|
274
|
-
return x(e, t) && y(e[t]) ? w(r.base ? T(r.base) : {}, e[t], r.transform) : n;
|
|
275
235
|
};
|
|
276
|
-
function
|
|
277
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
278
|
-
if (t.version = "3.4.
|
|
279
|
-
let n = e
|
|
280
|
-
|
|
281
|
-
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
282
|
-
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
283
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = E(d, "cloneNode"), te = E(d, "remove"), ne = E(d, "nextSibling"), re = E(d, "childNodes"), f = E(d, "parentNode"), ae = E(d, "shadowRoot"), oe = E(d, "attributes"), p = o && o.prototype ? E(o.prototype, "nodeType") : null, m = o && o.prototype ? E(o.prototype, "nodeName") : null;
|
|
284
|
-
if (typeof a == "function") {
|
|
236
|
+
function Xe() {
|
|
237
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qe(), t = (e) => Xe(e);
|
|
238
|
+
if (t.version = "3.4.1", t.removed = [], !e || !e.document || e.document.nodeType !== Ke.document || !e.Element) return t.isSupported = !1, t;
|
|
239
|
+
let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: ee, DOMParser: te, trustedTypes: f } = e, ne = c.prototype, m = Ce(ne, "cloneNode"), ie = Ce(ne, "remove"), ae = Ce(ne, "nextSibling"), _e = Ce(ne, "childNodes"), ve = Ce(ne, "parentNode");
|
|
240
|
+
if (typeof o == "function") {
|
|
285
241
|
let e = n.createElement("template");
|
|
286
242
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
287
243
|
}
|
|
288
|
-
let
|
|
289
|
-
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
} finally {
|
|
295
|
-
xe--;
|
|
296
|
-
}
|
|
297
|
-
}, Ce = function(e) {
|
|
298
|
-
Se(), xe++;
|
|
299
|
-
try {
|
|
300
|
-
return _.createScriptURL(e);
|
|
301
|
-
} finally {
|
|
302
|
-
xe--;
|
|
303
|
-
}
|
|
304
|
-
}, C = function() {
|
|
305
|
-
return be ||= (ce = tt(u, i), !0), ce;
|
|
306
|
-
}, Te = n, Ee = Te.implementation, it = Te.createNodeIterator, at = Te.createDocumentFragment, k = Te.getElementsByTagName, ot = r.importNode, A = nt();
|
|
307
|
-
t.isSupported = typeof ie == "function" && typeof f == "function" && Ee && Ee.createHTMLDocument !== void 0;
|
|
308
|
-
let st = Be, j = Ve, ct = He, M = Ue, lt = We, ut = Ke, dt = qe, ft = Ye, pt = Ge, N = null, mt = w({}, [
|
|
244
|
+
let g, _ = "", { implementation: y, createNodeIterator: x, createDocumentFragment: be, getElementsByTagName: xe } = n, { importNode: Ie } = r, w = Ye();
|
|
245
|
+
t.isSupported = typeof d == "function" && typeof ve == "function" && y && y.createHTMLDocument !== void 0;
|
|
246
|
+
let { MUSTACHE_EXPR: Le, ERB_EXPR: Re, TMPLIT_EXPR: ze, DATA_ATTR: Ve, ARIA_ATTR: He, IS_SCRIPT_OR_DATA: We, ATTR_WHITESPACE: Ze, CUSTOM_ELEMENT: Qe } = Ge, { IS_ALLOWED_URI: T } = Ge, E = null, D = S({}, [
|
|
247
|
+
...Te,
|
|
248
|
+
...Ee,
|
|
249
|
+
...De,
|
|
309
250
|
...ke,
|
|
310
|
-
...
|
|
311
|
-
|
|
251
|
+
...je
|
|
252
|
+
]), O = null, $e = S({}, [
|
|
253
|
+
...Me,
|
|
312
254
|
...Ne,
|
|
255
|
+
...Pe,
|
|
313
256
|
...Fe
|
|
314
|
-
]),
|
|
315
|
-
...Ie,
|
|
316
|
-
...Le,
|
|
317
|
-
...Re,
|
|
318
|
-
...ze
|
|
319
|
-
]), F = Object.seal(se(null, {
|
|
257
|
+
]), k = Object.seal(re(null, {
|
|
320
258
|
tagNameCheck: {
|
|
321
259
|
writable: !0,
|
|
322
260
|
configurable: !1,
|
|
@@ -335,7 +273,7 @@ function rt() {
|
|
|
335
273
|
enumerable: !0,
|
|
336
274
|
value: !1
|
|
337
275
|
}
|
|
338
|
-
})),
|
|
276
|
+
})), et = null, tt = null, A = Object.seal(re(null, {
|
|
339
277
|
tagCheck: {
|
|
340
278
|
writable: !0,
|
|
341
279
|
configurable: !1,
|
|
@@ -348,14 +286,40 @@ function rt() {
|
|
|
348
286
|
enumerable: !0,
|
|
349
287
|
value: null
|
|
350
288
|
}
|
|
351
|
-
})),
|
|
289
|
+
})), j = !0, nt = !0, rt = !1, it = !0, M = !1, at = !0, N = !1, ot = !1, st = !1, P = !1, ct = !1, F = !1, lt = !0, ut = !1, dt = "user-content-", ft = !0, I = !1, L = {}, R = null, pt = S({}, [
|
|
290
|
+
"annotation-xml",
|
|
291
|
+
"audio",
|
|
292
|
+
"colgroup",
|
|
293
|
+
"desc",
|
|
294
|
+
"foreignobject",
|
|
295
|
+
"head",
|
|
296
|
+
"iframe",
|
|
297
|
+
"math",
|
|
298
|
+
"mi",
|
|
299
|
+
"mn",
|
|
300
|
+
"mo",
|
|
301
|
+
"ms",
|
|
302
|
+
"mtext",
|
|
303
|
+
"noembed",
|
|
304
|
+
"noframes",
|
|
305
|
+
"noscript",
|
|
306
|
+
"plaintext",
|
|
307
|
+
"script",
|
|
308
|
+
"style",
|
|
309
|
+
"svg",
|
|
310
|
+
"template",
|
|
311
|
+
"thead",
|
|
312
|
+
"title",
|
|
313
|
+
"video",
|
|
314
|
+
"xmp"
|
|
315
|
+
]), mt = null, ht = S({}, [
|
|
352
316
|
"audio",
|
|
353
317
|
"video",
|
|
354
318
|
"img",
|
|
355
319
|
"source",
|
|
356
320
|
"image",
|
|
357
321
|
"track"
|
|
358
|
-
]),
|
|
322
|
+
]), gt = null, z = S({}, [
|
|
359
323
|
"alt",
|
|
360
324
|
"class",
|
|
361
325
|
"for",
|
|
@@ -370,249 +334,152 @@ function rt() {
|
|
|
370
334
|
"value",
|
|
371
335
|
"style",
|
|
372
336
|
"xmlns"
|
|
373
|
-
]),
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
],
|
|
337
|
+
]), B = "http://www.w3.org/1998/Math/MathML", V = "http://www.w3.org/2000/svg", H = "http://www.w3.org/1999/xhtml", U = H, _t = !1, vt = null, yt = S({}, [
|
|
338
|
+
B,
|
|
339
|
+
V,
|
|
340
|
+
H
|
|
341
|
+
], fe), bt = S({}, [
|
|
378
342
|
"mi",
|
|
379
343
|
"mo",
|
|
380
344
|
"mn",
|
|
381
345
|
"ms",
|
|
382
346
|
"mtext"
|
|
383
|
-
]),
|
|
347
|
+
]), xt = S({}, ["annotation-xml"]), St = S({}, [
|
|
384
348
|
"title",
|
|
385
349
|
"style",
|
|
386
350
|
"font",
|
|
387
351
|
"a",
|
|
388
352
|
"script"
|
|
389
|
-
]),
|
|
353
|
+
]), Ct = null, wt = ["application/xhtml+xml", "text/html"], W = null, Tt = null, Et = n.createElement("form"), Dt = function(e) {
|
|
390
354
|
return e instanceof RegExp || e instanceof Function;
|
|
391
|
-
},
|
|
355
|
+
}, Ot = function() {
|
|
392
356
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
393
|
-
if (
|
|
394
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
let t =
|
|
402
|
-
if (
|
|
357
|
+
if (Tt && Tt === e) return;
|
|
358
|
+
(!e || typeof e != "object") && (e = {}), e = C(e), Ct = wt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, W = Ct === "application/xhtml+xml" ? fe : de, E = v(e, "ALLOWED_TAGS") && h(e.ALLOWED_TAGS) ? S({}, e.ALLOWED_TAGS, W) : D, O = v(e, "ALLOWED_ATTR") && h(e.ALLOWED_ATTR) ? S({}, e.ALLOWED_ATTR, W) : $e, vt = v(e, "ALLOWED_NAMESPACES") && h(e.ALLOWED_NAMESPACES) ? S({}, e.ALLOWED_NAMESPACES, fe) : yt, gt = v(e, "ADD_URI_SAFE_ATTR") && h(e.ADD_URI_SAFE_ATTR) ? S(C(z), e.ADD_URI_SAFE_ATTR, W) : z, mt = v(e, "ADD_DATA_URI_TAGS") && h(e.ADD_DATA_URI_TAGS) ? S(C(ht), e.ADD_DATA_URI_TAGS, W) : ht, R = v(e, "FORBID_CONTENTS") && h(e.FORBID_CONTENTS) ? S({}, e.FORBID_CONTENTS, W) : pt, et = v(e, "FORBID_TAGS") && h(e.FORBID_TAGS) ? S({}, e.FORBID_TAGS, W) : C({}), tt = v(e, "FORBID_ATTR") && h(e.FORBID_ATTR) ? S({}, e.FORBID_ATTR, W) : C({}), L = v(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? C(e.USE_PROFILES) : e.USE_PROFILES : !1, j = e.ALLOW_ARIA_ATTR !== !1, nt = e.ALLOW_DATA_ATTR !== !1, rt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, it = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, M = e.SAFE_FOR_TEMPLATES || !1, at = e.SAFE_FOR_XML !== !1, N = e.WHOLE_DOCUMENT || !1, P = e.RETURN_DOM || !1, ct = e.RETURN_DOM_FRAGMENT || !1, F = e.RETURN_TRUSTED_TYPE || !1, st = e.FORCE_BODY || !1, lt = e.SANITIZE_DOM !== !1, ut = e.SANITIZE_NAMED_PROPS || !1, ft = e.KEEP_CONTENT !== !1, I = e.IN_PLACE || !1, T = we(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Be, U = typeof e.NAMESPACE == "string" ? e.NAMESPACE : H, bt = v(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? C(e.MATHML_TEXT_INTEGRATION_POINTS) : S({}, [
|
|
359
|
+
"mi",
|
|
360
|
+
"mo",
|
|
361
|
+
"mn",
|
|
362
|
+
"ms",
|
|
363
|
+
"mtext"
|
|
364
|
+
]), xt = v(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? C(e.HTML_INTEGRATION_POINTS) : S({}, ["annotation-xml"]);
|
|
365
|
+
let t = v(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? C(e.CUSTOM_ELEMENT_HANDLING) : re(null);
|
|
366
|
+
if (k = re(null), v(t, "tagNameCheck") && Dt(t.tagNameCheck) && (k.tagNameCheck = t.tagNameCheck), v(t, "attributeNameCheck") && Dt(t.attributeNameCheck) && (k.attributeNameCheck = t.attributeNameCheck), v(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (k.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), M && (nt = !1), ct && (P = !0), L && (E = S({}, je), O = re(null), L.html === !0 && (S(E, Te), S(O, Me)), L.svg === !0 && (S(E, Ee), S(O, Ne), S(O, Fe)), L.svgFilters === !0 && (S(E, De), S(O, Ne), S(O, Fe)), L.mathMl === !0 && (S(E, ke), S(O, Pe), S(O, Fe))), A.tagCheck = null, A.attributeCheck = null, v(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? A.tagCheck = e.ADD_TAGS : h(e.ADD_TAGS) && (E === D && (E = C(E)), S(E, e.ADD_TAGS, W))), v(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? A.attributeCheck = e.ADD_ATTR : h(e.ADD_ATTR) && (O === $e && (O = C(O)), S(O, e.ADD_ATTR, W))), v(e, "ADD_URI_SAFE_ATTR") && h(e.ADD_URI_SAFE_ATTR) && S(gt, e.ADD_URI_SAFE_ATTR, W), v(e, "FORBID_CONTENTS") && h(e.FORBID_CONTENTS) && (R === pt && (R = C(R)), S(R, e.FORBID_CONTENTS, W)), v(e, "ADD_FORBID_CONTENTS") && h(e.ADD_FORBID_CONTENTS) && (R === pt && (R = C(R)), S(R, e.ADD_FORBID_CONTENTS, W)), ft && (E["#text"] = !0), N && S(E, [
|
|
403
367
|
"html",
|
|
404
368
|
"head",
|
|
405
369
|
"body"
|
|
406
|
-
]),
|
|
407
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
408
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}, tn = w({}, [
|
|
419
|
-
...Ae,
|
|
420
|
-
...je,
|
|
421
|
-
...Me
|
|
422
|
-
]), nn = w({}, [...Ne, ...Pe]), rn = function(e, t, n) {
|
|
423
|
-
return t.namespaceURI === U ? e === "svg" : t.namespaceURI === Rt ? e === "svg" && (n === "annotation-xml" || Gt[n]) : !!tn[e];
|
|
424
|
-
}, an = function(e, t, n) {
|
|
425
|
-
return t.namespaceURI === U ? e === "math" : t.namespaceURI === zt ? e === "math" && qt[n] : !!nn[e];
|
|
426
|
-
}, on = function(e, t, n) {
|
|
427
|
-
return t.namespaceURI === zt && !qt[n] || t.namespaceURI === Rt && !Gt[n] ? !1 : !nn[e] && (Jt[e] || !tn[e]);
|
|
428
|
-
}, G = function(e) {
|
|
429
|
-
let t = f(e);
|
|
370
|
+
]), E.table && (S(E, ["tbody"]), delete et.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
371
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw ye("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
372
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw ye("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
373
|
+
g = e.TRUSTED_TYPES_POLICY, _ = g.createHTML("");
|
|
374
|
+
} else g === void 0 && (g = Je(f, i)), g !== null && typeof _ == "string" && (_ = g.createHTML(""));
|
|
375
|
+
p && p(e), Tt = e;
|
|
376
|
+
}, kt = S({}, [
|
|
377
|
+
...Ee,
|
|
378
|
+
...De,
|
|
379
|
+
...Oe
|
|
380
|
+
]), At = S({}, [...ke, ...Ae]), jt = function(e) {
|
|
381
|
+
let t = ve(e);
|
|
430
382
|
(!t || !t.tagName) && (t = {
|
|
431
|
-
namespaceURI:
|
|
383
|
+
namespaceURI: U,
|
|
432
384
|
tagName: "template"
|
|
433
385
|
});
|
|
434
|
-
let n =
|
|
435
|
-
return
|
|
436
|
-
},
|
|
437
|
-
|
|
386
|
+
let n = de(e.tagName), r = de(t.tagName);
|
|
387
|
+
return vt[e.namespaceURI] ? e.namespaceURI === V ? t.namespaceURI === H ? n === "svg" : t.namespaceURI === B ? n === "svg" && (r === "annotation-xml" || bt[r]) : !!kt[n] : e.namespaceURI === B ? t.namespaceURI === H ? n === "math" : t.namespaceURI === V ? n === "math" && xt[r] : !!At[n] : e.namespaceURI === H ? t.namespaceURI === V && !xt[r] || t.namespaceURI === B && !bt[r] ? !1 : !At[n] && (St[n] || !kt[n]) : !!(Ct === "application/xhtml+xml" && vt[e.namespaceURI]) : !1;
|
|
388
|
+
}, G = function(e) {
|
|
389
|
+
le(t.removed, { element: e });
|
|
438
390
|
try {
|
|
439
|
-
|
|
391
|
+
ve(e).removeChild(e);
|
|
440
392
|
} catch {
|
|
441
|
-
|
|
442
|
-
}
|
|
443
|
-
}, sn = function(e) {
|
|
444
|
-
ln(e);
|
|
445
|
-
let t = re(e);
|
|
446
|
-
if (t) {
|
|
447
|
-
let e = [];
|
|
448
|
-
le(t, (t) => {
|
|
449
|
-
fe(e, t);
|
|
450
|
-
}), le(e, (e) => {
|
|
451
|
-
try {
|
|
452
|
-
te(e);
|
|
453
|
-
} catch {}
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
let n = oe(e);
|
|
457
|
-
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
458
|
-
let r = n[t], i = r && r.name;
|
|
459
|
-
if (typeof i == "string") try {
|
|
460
|
-
e.removeAttribute(i);
|
|
461
|
-
} catch {}
|
|
393
|
+
ie(e);
|
|
462
394
|
}
|
|
463
|
-
},
|
|
395
|
+
}, K = function(e, n) {
|
|
464
396
|
try {
|
|
465
|
-
|
|
397
|
+
le(t.removed, {
|
|
466
398
|
attribute: n.getAttributeNode(e),
|
|
467
399
|
from: n
|
|
468
400
|
});
|
|
469
401
|
} catch {
|
|
470
|
-
|
|
402
|
+
le(t.removed, {
|
|
471
403
|
attribute: null,
|
|
472
404
|
from: n
|
|
473
405
|
});
|
|
474
406
|
}
|
|
475
|
-
if (n.removeAttribute(e), e === "is") if (
|
|
476
|
-
|
|
407
|
+
if (n.removeAttribute(e), e === "is") if (P || ct) try {
|
|
408
|
+
G(n);
|
|
477
409
|
} catch {}
|
|
478
410
|
else try {
|
|
479
411
|
n.setAttribute(e, "");
|
|
480
412
|
} catch {}
|
|
481
|
-
},
|
|
482
|
-
let t = oe(e);
|
|
483
|
-
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
484
|
-
let r = t[n], i = r && r.name;
|
|
485
|
-
if (!(typeof i != "string" || P[W(i)])) try {
|
|
486
|
-
e.removeAttribute(i);
|
|
487
|
-
} catch {}
|
|
488
|
-
}
|
|
489
|
-
}, ln = function(e) {
|
|
490
|
-
let t = [e];
|
|
491
|
-
for (; t.length > 0;) {
|
|
492
|
-
let e = t.pop();
|
|
493
|
-
(p ? p(e) : e.nodeType) === D.element && cn(e);
|
|
494
|
-
let n = re(e);
|
|
495
|
-
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
496
|
-
}
|
|
497
|
-
}, un = function(e) {
|
|
498
|
-
if (!R) return;
|
|
499
|
-
let t = [e];
|
|
500
|
-
for (; t.length > 0;) {
|
|
501
|
-
let e = t.pop(), n = p ? p(e) : e.nodeType;
|
|
502
|
-
if (n === D.processingInstruction || n === D.comment && S(Ze, e.data)) {
|
|
503
|
-
try {
|
|
504
|
-
te(e);
|
|
505
|
-
} catch {}
|
|
506
|
-
continue;
|
|
507
|
-
}
|
|
508
|
-
if (n === D.element) {
|
|
509
|
-
let t = e, n = W(m ? m(e) : e.nodeName);
|
|
510
|
-
try {
|
|
511
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
|
|
512
|
-
} catch {}
|
|
513
|
-
}
|
|
514
|
-
let r = re(e);
|
|
515
|
-
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
516
|
-
}
|
|
517
|
-
}, dn = function(e) {
|
|
413
|
+
}, Mt = function(e) {
|
|
518
414
|
let t = null, r = null;
|
|
519
|
-
if (
|
|
415
|
+
if (st) e = "<remove></remove>" + e;
|
|
520
416
|
else {
|
|
521
|
-
let t =
|
|
417
|
+
let t = pe(e, /^[\r\n\t ]+/);
|
|
522
418
|
r = t && t[0];
|
|
523
419
|
}
|
|
524
|
-
|
|
525
|
-
let i =
|
|
526
|
-
if (
|
|
527
|
-
t = new
|
|
420
|
+
Ct === "application/xhtml+xml" && U === H && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
421
|
+
let i = g ? g.createHTML(e) : e;
|
|
422
|
+
if (U === H) try {
|
|
423
|
+
t = new te().parseFromString(i, Ct);
|
|
528
424
|
} catch {}
|
|
529
425
|
if (!t || !t.documentElement) {
|
|
530
|
-
t =
|
|
426
|
+
t = y.createDocument(U, "template", null);
|
|
531
427
|
try {
|
|
532
|
-
t.documentElement.innerHTML =
|
|
428
|
+
t.documentElement.innerHTML = _t ? _ : i;
|
|
533
429
|
} catch {}
|
|
534
430
|
}
|
|
535
431
|
let a = t.body || t.documentElement;
|
|
536
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
537
|
-
},
|
|
538
|
-
return
|
|
539
|
-
},
|
|
540
|
-
return e
|
|
541
|
-
},
|
|
542
|
-
e
|
|
543
|
-
let t = it.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
|
|
544
|
-
for (; n;) n.data = pn(n.data), n = t.nextNode();
|
|
545
|
-
let r = e.querySelectorAll?.call(e, "template");
|
|
546
|
-
r && le(r, (e) => {
|
|
547
|
-
Y(e.content) && J(e.content);
|
|
548
|
-
});
|
|
549
|
-
}, mn = function(e) {
|
|
550
|
-
let t = m ? m(e) : null;
|
|
551
|
-
return typeof t != "string" || W(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.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== p(e) || e.childNodes !== re(e);
|
|
552
|
-
}, Y = function(e) {
|
|
553
|
-
if (!p || typeof e != "object" || !e) return !1;
|
|
554
|
-
try {
|
|
555
|
-
return p(e) === D.documentFragment;
|
|
556
|
-
} catch {
|
|
557
|
-
return !1;
|
|
558
|
-
}
|
|
559
|
-
}, X = function(e) {
|
|
560
|
-
if (!p || typeof e != "object" || !e) return !1;
|
|
561
|
-
try {
|
|
562
|
-
return typeof p(e) == "number";
|
|
563
|
-
} catch {
|
|
564
|
-
return !1;
|
|
565
|
-
}
|
|
432
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), U === H ? xe.call(t, N ? "html" : "body")[0] : N ? t.documentElement : a;
|
|
433
|
+
}, Nt = function(e) {
|
|
434
|
+
return x.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
|
|
435
|
+
}, Pt = function(e) {
|
|
436
|
+
return e instanceof ee && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
|
|
437
|
+
}, Ft = function(e) {
|
|
438
|
+
return typeof s == "function" && e instanceof s;
|
|
566
439
|
};
|
|
567
|
-
function
|
|
568
|
-
|
|
569
|
-
e.call(t, n, r,
|
|
440
|
+
function q(e, n, r) {
|
|
441
|
+
oe(e, (e) => {
|
|
442
|
+
e.call(t, n, r, Tt);
|
|
570
443
|
});
|
|
571
444
|
}
|
|
572
|
-
let
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
if (
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
445
|
+
let It = function(e) {
|
|
446
|
+
let n = null;
|
|
447
|
+
if (q(w.beforeSanitizeElements, e, null), Pt(e)) return G(e), !0;
|
|
448
|
+
let r = W(e.nodeName);
|
|
449
|
+
if (q(w.uponSanitizeElement, e, {
|
|
450
|
+
tagName: r,
|
|
451
|
+
allowedTags: E
|
|
452
|
+
}), at && e.hasChildNodes() && !Ft(e.firstElementChild) && b(/<[/\w!]/g, e.innerHTML) && b(/<[/\w!]/g, e.textContent) || at && e.namespaceURI === H && r === "style" && Ft(e.firstElementChild) || e.nodeType === Ke.progressingInstruction || at && e.nodeType === Ke.comment && b(/<[/\w]/g, e.data)) return G(e), !0;
|
|
453
|
+
if (et[r] || !(A.tagCheck instanceof Function && A.tagCheck(r)) && !E[r]) {
|
|
454
|
+
if (!et[r] && zt(r) && (k.tagNameCheck instanceof RegExp && b(k.tagNameCheck, r) || k.tagNameCheck instanceof Function && k.tagNameCheck(r))) return !1;
|
|
455
|
+
if (ft && !R[r]) {
|
|
456
|
+
let t = ve(e) || e.parentNode, n = _e(e) || e.childNodes;
|
|
457
|
+
if (n && t) {
|
|
458
|
+
let r = n.length;
|
|
459
|
+
for (let i = r - 1; i >= 0; --i) {
|
|
460
|
+
let r = m(n[i], !0);
|
|
461
|
+
t.insertBefore(r, ae(e));
|
|
462
|
+
}
|
|
583
463
|
}
|
|
584
464
|
}
|
|
465
|
+
return G(e), !0;
|
|
585
466
|
}
|
|
586
|
-
return
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
}
|
|
600
|
-
if ((p ? p(e) : e.nodeType) === D.element && !G(e) || (r === "noscript" || r === "noembed" || r === "noframes") && S(Qe, e.innerHTML)) return K(e), !0;
|
|
601
|
-
if (L && e.nodeType === D.text) {
|
|
602
|
-
let n = pn(e.textContent);
|
|
603
|
-
e.textContent !== n && (fe(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
604
|
-
}
|
|
605
|
-
return Z(A.afterSanitizeElements, e, null), !1;
|
|
606
|
-
}, $ = function(e, t, r) {
|
|
607
|
-
if (_t[t] || R && t === "patchsrc" || R && t === "for" && e !== "label" && e !== "output" || kt && (t === "id" || t === "name") && (r in n || r in Qt)) return !1;
|
|
608
|
-
let i = P[t] || I.attributeCheck instanceof Function && I.attributeCheck(t, e);
|
|
609
|
-
if (!(yt && S(M, t)) && !(vt && S(lt, t))) {
|
|
610
|
-
if (!i) {
|
|
611
|
-
if (!(vn(e) && (F.tagNameCheck instanceof RegExp && S(F.tagNameCheck, e) || F.tagNameCheck instanceof Function && F.tagNameCheck(e)) && (F.attributeNameCheck instanceof RegExp && S(F.attributeNameCheck, t) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(t, e)) || t === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && S(F.tagNameCheck, r) || F.tagNameCheck instanceof Function && F.tagNameCheck(r)))) return !1;
|
|
612
|
-
} else if (!It[t] && !S(pt, _e(r, dt, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ve(r, "data:") === 0 && Pt[e]) && !(bt && !S(ut, _e(r, dt, ""))) && r) return !1;
|
|
467
|
+
return e instanceof c && !jt(e) || (r === "noscript" || r === "noembed" || r === "noframes") && b(/<\/no(script|embed|frames)/i, e.innerHTML) ? (G(e), !0) : (M && e.nodeType === Ke.text && (n = e.textContent, oe([
|
|
468
|
+
Le,
|
|
469
|
+
Re,
|
|
470
|
+
ze
|
|
471
|
+
], (e) => {
|
|
472
|
+
n = me(n, e, " ");
|
|
473
|
+
}), e.textContent !== n && (le(t.removed, { element: e.cloneNode() }), e.textContent = n)), q(w.afterSanitizeElements, e, null), !1);
|
|
474
|
+
}, Lt = function(e, t, r) {
|
|
475
|
+
if (tt[t] || lt && (t === "id" || t === "name") && (r in n || r in Et)) return !1;
|
|
476
|
+
if (!(nt && !tt[t] && b(Ve, t)) && !(j && b(He, t)) && !(A.attributeCheck instanceof Function && A.attributeCheck(t, e))) {
|
|
477
|
+
if (!O[t] || tt[t]) {
|
|
478
|
+
if (!(zt(e) && (k.tagNameCheck instanceof RegExp && b(k.tagNameCheck, e) || k.tagNameCheck instanceof Function && k.tagNameCheck(e)) && (k.attributeNameCheck instanceof RegExp && b(k.attributeNameCheck, t) || k.attributeNameCheck instanceof Function && k.attributeNameCheck(t, e)) || t === "is" && k.allowCustomizedBuiltInElements && (k.tagNameCheck instanceof RegExp && b(k.tagNameCheck, r) || k.tagNameCheck instanceof Function && k.tagNameCheck(r)))) return !1;
|
|
479
|
+
} else if (!gt[t] && !b(T, me(r, Ze, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && he(r, "data:") === 0 && mt[e]) && !(rt && !b(We, me(r, Ze, ""))) && r) return !1;
|
|
613
480
|
}
|
|
614
481
|
return !0;
|
|
615
|
-
},
|
|
482
|
+
}, Rt = S({}, [
|
|
616
483
|
"annotation-xml",
|
|
617
484
|
"color-profile",
|
|
618
485
|
"font-face",
|
|
@@ -621,175 +488,137 @@ function rt() {
|
|
|
621
488
|
"font-face-src",
|
|
622
489
|
"font-face-uri",
|
|
623
490
|
"missing-glyph"
|
|
624
|
-
]),
|
|
625
|
-
return !
|
|
626
|
-
},
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
return r;
|
|
632
|
-
}, bn = function(e, n, r, i) {
|
|
633
|
-
try {
|
|
634
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), mn(e) ? K(e) : de(t.removed);
|
|
635
|
-
} catch {
|
|
636
|
-
q(n, e);
|
|
637
|
-
}
|
|
638
|
-
}, xn = function(e) {
|
|
639
|
-
Z(A.beforeSanitizeAttributes, e, null);
|
|
640
|
-
let t = e.attributes;
|
|
641
|
-
if (!t || mn(e)) return;
|
|
642
|
-
let n = {
|
|
491
|
+
]), zt = function(e) {
|
|
492
|
+
return !Rt[de(e)] && b(Qe, e);
|
|
493
|
+
}, Bt = function(e) {
|
|
494
|
+
q(w.beforeSanitizeAttributes, e, null);
|
|
495
|
+
let { attributes: n } = e;
|
|
496
|
+
if (!n || Pt(e)) return;
|
|
497
|
+
let r = {
|
|
643
498
|
attrName: "",
|
|
644
499
|
attrValue: "",
|
|
645
500
|
keepAttr: !0,
|
|
646
|
-
allowedAttributes:
|
|
501
|
+
allowedAttributes: O,
|
|
647
502
|
forceKeepAttr: void 0
|
|
648
|
-
},
|
|
649
|
-
for (;
|
|
650
|
-
let
|
|
651
|
-
if (
|
|
652
|
-
|
|
503
|
+
}, i = n.length;
|
|
504
|
+
for (; i--;) {
|
|
505
|
+
let { name: a, namespaceURI: o, value: s } = n[i], c = W(a), l = s, u = a === "value" ? l : ge(l);
|
|
506
|
+
if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, q(w.uponSanitizeAttribute, e, r), u = r.attrValue, ut && (c === "id" || c === "name") && he(u, dt) !== 0 && (K(a, e), u = dt + u), at && b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, u)) {
|
|
507
|
+
K(a, e);
|
|
653
508
|
continue;
|
|
654
509
|
}
|
|
655
|
-
if (
|
|
656
|
-
|
|
510
|
+
if (c === "attributename" && pe(u, "href")) {
|
|
511
|
+
K(a, e);
|
|
657
512
|
continue;
|
|
658
513
|
}
|
|
659
|
-
if (
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}
|
|
664
|
-
if (!xt && S($e, d)) {
|
|
665
|
-
q(o, e);
|
|
666
|
-
continue;
|
|
667
|
-
}
|
|
668
|
-
if (L && (d = pn(d)), !$(i, l, d)) {
|
|
669
|
-
q(o, e);
|
|
670
|
-
continue;
|
|
671
|
-
}
|
|
672
|
-
d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
|
|
514
|
+
if (r.forceKeepAttr) continue;
|
|
515
|
+
if (!r.keepAttr) {
|
|
516
|
+
K(a, e);
|
|
517
|
+
continue;
|
|
673
518
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
}, Sn = function(e) {
|
|
677
|
-
let t = null, n = fn(e);
|
|
678
|
-
for (Z(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if (Z(A.uponSanitizeShadowNode, t, null), gn(t, e), xn(t), Y(t.content) && Sn(t.content), (p ? p(t) : t.nodeType) === D.element) {
|
|
679
|
-
let e = ae(t);
|
|
680
|
-
Y(e) && (Cn(e), Sn(e));
|
|
681
|
-
}
|
|
682
|
-
Z(A.afterSanitizeShadowDOM, e, null);
|
|
683
|
-
}, Cn = function(e) {
|
|
684
|
-
let t = [{
|
|
685
|
-
node: e,
|
|
686
|
-
shadow: null
|
|
687
|
-
}];
|
|
688
|
-
for (; t.length > 0;) {
|
|
689
|
-
let e = t.pop();
|
|
690
|
-
if (e.shadow) {
|
|
691
|
-
Sn(e.shadow);
|
|
519
|
+
if (!it && b(/\/>/i, u)) {
|
|
520
|
+
K(a, e);
|
|
692
521
|
continue;
|
|
693
522
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
523
|
+
M && oe([
|
|
524
|
+
Le,
|
|
525
|
+
Re,
|
|
526
|
+
ze
|
|
527
|
+
], (e) => {
|
|
528
|
+
u = me(u, e, " ");
|
|
698
529
|
});
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
Y(e) && t.push({
|
|
704
|
-
node: e,
|
|
705
|
-
shadow: null
|
|
706
|
-
});
|
|
707
|
-
}
|
|
530
|
+
let d = W(e.nodeName);
|
|
531
|
+
if (!Lt(d, c, u)) {
|
|
532
|
+
K(a, e);
|
|
533
|
+
continue;
|
|
708
534
|
}
|
|
709
|
-
if (
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
535
|
+
if (g && typeof f == "object" && typeof f.getAttributeType == "function" && !o) switch (f.getAttributeType(d, c)) {
|
|
536
|
+
case "TrustedHTML":
|
|
537
|
+
u = g.createHTML(u);
|
|
538
|
+
break;
|
|
539
|
+
case "TrustedScriptURL":
|
|
540
|
+
u = g.createScriptURL(u);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
if (u !== l) try {
|
|
544
|
+
o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Pt(e) ? G(e) : ce(t.removed);
|
|
545
|
+
} catch {
|
|
546
|
+
K(a, e);
|
|
718
547
|
}
|
|
719
548
|
}
|
|
549
|
+
q(w.afterSanitizeAttributes, e, null);
|
|
550
|
+
}, Vt = function(e) {
|
|
551
|
+
let t = null, n = Nt(e);
|
|
552
|
+
for (q(w.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) q(w.uponSanitizeShadowNode, t, null), It(t), Bt(t), t.content instanceof a && Vt(t.content);
|
|
553
|
+
q(w.afterSanitizeShadowDOM, e, null);
|
|
720
554
|
};
|
|
721
555
|
return t.sanitize = function(e) {
|
|
722
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null,
|
|
723
|
-
if (
|
|
556
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
|
|
557
|
+
if (_t = !e, _t && (e = "<!-->"), typeof e != "string" && !Ft(e) && (e = Se(e), typeof e != "string")) throw ye("dirty is not a string, aborting");
|
|
724
558
|
if (!t.isSupported) return e;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
if (c) {
|
|
728
|
-
un(e);
|
|
729
|
-
let t = m ? m(e) : e.nodeName;
|
|
559
|
+
if (ot || Ot(n), t.removed = [], typeof e == "string" && (I = !1), I) {
|
|
560
|
+
let t = e.nodeName;
|
|
730
561
|
if (typeof t == "string") {
|
|
731
|
-
let
|
|
732
|
-
if (!
|
|
562
|
+
let e = W(t);
|
|
563
|
+
if (!E[e] || et[e]) throw ye("root node is forbidden and cannot be sanitized in-place");
|
|
733
564
|
}
|
|
734
|
-
|
|
735
|
-
try {
|
|
736
|
-
Cn(e);
|
|
737
|
-
} catch (t) {
|
|
738
|
-
throw sn(e), t;
|
|
739
|
-
}
|
|
740
|
-
} else if (X(e)) i = dn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === D.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
|
|
565
|
+
} else if (e instanceof s) i = Mt("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === Ke.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
|
|
741
566
|
else {
|
|
742
|
-
if (!
|
|
743
|
-
if (i =
|
|
744
|
-
}
|
|
745
|
-
i && Tt && K(i.firstChild);
|
|
746
|
-
let l = c ? e : i, u = fn(l);
|
|
747
|
-
try {
|
|
748
|
-
for (; o = u.nextNode();) gn(o, l), xn(o), Y(o.content) && Sn(o.content);
|
|
749
|
-
} catch (n) {
|
|
750
|
-
throw c && (sn(e), le(t.removed, (e) => {
|
|
751
|
-
e.element && ln(e.element);
|
|
752
|
-
})), n;
|
|
567
|
+
if (!P && !M && !N && e.indexOf("<") === -1) return g && F ? g.createHTML(e) : e;
|
|
568
|
+
if (i = Mt(e), !i) return P ? null : F ? _ : "";
|
|
753
569
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
if (
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
570
|
+
i && st && G(i.firstChild);
|
|
571
|
+
let u = Nt(I ? e : i);
|
|
572
|
+
for (; c = u.nextNode();) It(c), Bt(c), c.content instanceof a && Vt(c.content);
|
|
573
|
+
if (I) return e;
|
|
574
|
+
if (P) {
|
|
575
|
+
if (M) {
|
|
576
|
+
i.normalize();
|
|
577
|
+
let e = i.innerHTML;
|
|
578
|
+
oe([
|
|
579
|
+
Le,
|
|
580
|
+
Re,
|
|
581
|
+
ze
|
|
582
|
+
], (t) => {
|
|
583
|
+
e = me(e, t, " ");
|
|
584
|
+
}), i.innerHTML = e;
|
|
585
|
+
}
|
|
586
|
+
if (ct) for (l = be.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
|
|
587
|
+
else l = i;
|
|
588
|
+
return (O.shadowroot || O.shadowrootmode) && (l = Ie.call(r, l, !0)), l;
|
|
761
589
|
}
|
|
762
|
-
let d =
|
|
763
|
-
return
|
|
590
|
+
let d = N ? i.outerHTML : i.innerHTML;
|
|
591
|
+
return N && E["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && b(Ue, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), M && oe([
|
|
592
|
+
Le,
|
|
593
|
+
Re,
|
|
594
|
+
ze
|
|
595
|
+
], (e) => {
|
|
596
|
+
d = me(d, e, " ");
|
|
597
|
+
}), g && F ? g.createHTML(d) : d;
|
|
764
598
|
}, t.setConfig = function() {
|
|
765
|
-
|
|
766
|
-
en(e), St = !0, Ct = N, wt = P;
|
|
599
|
+
Ot(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), ot = !0;
|
|
767
600
|
}, t.clearConfig = function() {
|
|
768
|
-
|
|
601
|
+
Tt = null, ot = !1;
|
|
769
602
|
}, t.isValidAttribute = function(e, t, n) {
|
|
770
|
-
|
|
771
|
-
let r = W(e), i = W(t);
|
|
772
|
-
return $(r, i, n);
|
|
603
|
+
return Tt || Ot({}), Lt(W(e), W(t), n);
|
|
773
604
|
}, t.addHook = function(e, t) {
|
|
774
|
-
typeof t == "function" &&
|
|
605
|
+
typeof t == "function" && le(w[e], t);
|
|
775
606
|
}, t.removeHook = function(e, t) {
|
|
776
|
-
if (
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
return n === -1 ? void 0 : pe(A[e], n, 1)[0];
|
|
780
|
-
}
|
|
781
|
-
return de(A[e]);
|
|
607
|
+
if (t !== void 0) {
|
|
608
|
+
let n = se(w[e], t);
|
|
609
|
+
return n === -1 ? void 0 : ue(w[e], n, 1)[0];
|
|
782
610
|
}
|
|
611
|
+
return ce(w[e]);
|
|
783
612
|
}, t.removeHooks = function(e) {
|
|
784
|
-
|
|
613
|
+
w[e] = [];
|
|
785
614
|
}, t.removeAllHooks = function() {
|
|
786
|
-
|
|
615
|
+
w = Ye();
|
|
787
616
|
}, t;
|
|
788
617
|
}
|
|
789
|
-
var
|
|
618
|
+
var Ze = Xe();
|
|
790
619
|
//#endregion
|
|
791
620
|
//#region node_modules/marked/lib/marked.esm.js
|
|
792
|
-
function
|
|
621
|
+
function Qe() {
|
|
793
622
|
return {
|
|
794
623
|
async: !1,
|
|
795
624
|
breaks: !1,
|
|
@@ -803,35 +632,28 @@ function at() {
|
|
|
803
632
|
walkTokens: null
|
|
804
633
|
};
|
|
805
634
|
}
|
|
806
|
-
var
|
|
807
|
-
function
|
|
808
|
-
|
|
635
|
+
var T = Qe();
|
|
636
|
+
function E(e) {
|
|
637
|
+
T = e;
|
|
809
638
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
812
|
-
let t = [];
|
|
813
|
-
return (n) => {
|
|
814
|
-
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
815
|
-
return i || (i = e(r), t[r] = i), i;
|
|
816
|
-
};
|
|
817
|
-
}
|
|
818
|
-
function j(e, t = "") {
|
|
639
|
+
var D = { exec: () => null };
|
|
640
|
+
function O(e, t = "") {
|
|
819
641
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
820
642
|
replace: (e, t) => {
|
|
821
643
|
let i = typeof t == "string" ? t : t.source;
|
|
822
|
-
return i = i.replace(
|
|
644
|
+
return i = i.replace(k.caret, "$1"), n = n.replace(e, i), r;
|
|
823
645
|
},
|
|
824
646
|
getRegex: () => new RegExp(n, t)
|
|
825
647
|
};
|
|
826
648
|
return r;
|
|
827
649
|
}
|
|
828
|
-
var
|
|
650
|
+
var $e = ((e = "") => {
|
|
829
651
|
try {
|
|
830
652
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
831
653
|
} catch {
|
|
832
654
|
return !1;
|
|
833
655
|
}
|
|
834
|
-
})(),
|
|
656
|
+
})(), k = {
|
|
835
657
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
836
658
|
outputLinkReplace: /\\([\[\]])/g,
|
|
837
659
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -882,121 +704,121 @@ var ct = ((e = "") => {
|
|
|
882
704
|
notSpaceStart: /^\S*/,
|
|
883
705
|
endingNewline: /\n$/,
|
|
884
706
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
885
|
-
nextBulletRegex:
|
|
886
|
-
hrRegex:
|
|
887
|
-
fencesBeginRegex:
|
|
888
|
-
headingBeginRegex:
|
|
889
|
-
htmlBeginRegex:
|
|
890
|
-
blockquoteBeginRegex:
|
|
891
|
-
},
|
|
892
|
-
blockquote:
|
|
893
|
-
code:
|
|
894
|
-
def:
|
|
895
|
-
fences:
|
|
896
|
-
heading:
|
|
897
|
-
hr:
|
|
898
|
-
html:
|
|
899
|
-
lheading:
|
|
900
|
-
list:
|
|
901
|
-
newline:
|
|
902
|
-
paragraph:
|
|
903
|
-
table:
|
|
904
|
-
text:
|
|
905
|
-
},
|
|
906
|
-
...
|
|
907
|
-
lheading:
|
|
908
|
-
table:
|
|
909
|
-
paragraph:
|
|
910
|
-
},
|
|
911
|
-
...
|
|
912
|
-
html:
|
|
707
|
+
nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
708
|
+
hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
709
|
+
fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
|
|
710
|
+
headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
|
|
711
|
+
htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i"),
|
|
712
|
+
blockquoteBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}>`)
|
|
713
|
+
}, et = /^(?:[ \t]*(?:\n|$))+/, tt = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, A = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, j = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, nt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, rt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, it = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, M = O(it).replace(/bull/g, rt).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(), at = O(it).replace(/bull/g, rt).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]+)*)/, ot = /^[^\n]+/, st = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, P = O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", st).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ct = O(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, rt).getRegex(), F = "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", lt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ut = O("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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", lt).replace("tag", F).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dt = O(N).replace("hr", j).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", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", F).getRegex(), ft = {
|
|
714
|
+
blockquote: O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", dt).getRegex(),
|
|
715
|
+
code: tt,
|
|
716
|
+
def: P,
|
|
717
|
+
fences: A,
|
|
718
|
+
heading: nt,
|
|
719
|
+
hr: j,
|
|
720
|
+
html: ut,
|
|
721
|
+
lheading: M,
|
|
722
|
+
list: ct,
|
|
723
|
+
newline: et,
|
|
724
|
+
paragraph: dt,
|
|
725
|
+
table: D,
|
|
726
|
+
text: ot
|
|
727
|
+
}, I = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", j).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", F).getRegex(), L = {
|
|
728
|
+
...ft,
|
|
729
|
+
lheading: at,
|
|
730
|
+
table: I,
|
|
731
|
+
paragraph: O(N).replace("hr", j).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", I).replace("blockquote", " {0,3}>").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", F).getRegex()
|
|
732
|
+
}, R = {
|
|
733
|
+
...ft,
|
|
734
|
+
html: O("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", lt).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(),
|
|
913
735
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
914
736
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
915
|
-
fences:
|
|
737
|
+
fences: D,
|
|
916
738
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
917
|
-
paragraph:
|
|
918
|
-
},
|
|
919
|
-
_backpedal:
|
|
920
|
-
anyPunctuation:
|
|
921
|
-
autolink:
|
|
922
|
-
blockSkip:
|
|
923
|
-
br:
|
|
924
|
-
code:
|
|
925
|
-
del:
|
|
926
|
-
delLDelim:
|
|
927
|
-
delRDelim:
|
|
928
|
-
emStrongLDelim:
|
|
929
|
-
emStrongRDelimAst:
|
|
930
|
-
emStrongRDelimUnd:
|
|
931
|
-
escape:
|
|
932
|
-
link:
|
|
933
|
-
nolink:
|
|
934
|
-
punctuation:
|
|
935
|
-
reflink:
|
|
936
|
-
reflinkSearch:
|
|
937
|
-
tag:
|
|
938
|
-
text:
|
|
939
|
-
url:
|
|
940
|
-
},
|
|
941
|
-
...
|
|
942
|
-
link:
|
|
943
|
-
reflink:
|
|
944
|
-
},
|
|
945
|
-
...
|
|
946
|
-
emStrongRDelimAst:
|
|
947
|
-
emStrongLDelim:
|
|
948
|
-
delLDelim:
|
|
949
|
-
delRDelim:
|
|
950
|
-
url:
|
|
739
|
+
paragraph: O(N).replace("hr", j).replace("heading", " *#{1,6} *[^\n]").replace("lheading", M).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
740
|
+
}, pt = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, mt = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ht = /^( {2,}|\\)\n(?!\s*$)/, gt = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, z = /[\p{P}\p{S}]/u, B = /[\s\p{P}\p{S}]/u, V = /[^\s\p{P}\p{S}]/u, H = O(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, B).getRegex(), U = /(?!~)[\p{P}\p{S}]/u, _t = /(?!~)[\s\p{P}\p{S}]/u, vt = /(?:[^\s\p{P}\p{S}]|~)/u, yt = O(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", $e ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), bt = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, xt = O(bt, "u").replace(/punct/g, z).getRegex(), St = O(bt, "u").replace(/punct/g, U).getRegex(), Ct = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", wt = O(Ct, "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), W = O(Ct, "gu").replace(/notPunctSpace/g, vt).replace(/punctSpace/g, _t).replace(/punct/g, U).getRegex(), Tt = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Et = O(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, z).getRegex(), Dt = O("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, V).replace(/punctSpace/g, B).replace(/punct/g, z).getRegex(), Ot = O(/\\(punct)/, "gu").replace(/punct/g, z).getRegex(), kt = O(/^<(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(), At = O(lt).replace("(?:-->|$)", "-->").getRegex(), jt = O("^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", At).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), G = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, K = O(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", G).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Mt = O(/^!?\[(label)\]\[(ref)\]/).replace("label", G).replace("ref", st).getRegex(), Nt = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", st).getRegex(), Pt = O("reflink|nolink(?!\\()", "g").replace("reflink", Mt).replace("nolink", Nt).getRegex(), Ft = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, q = {
|
|
741
|
+
_backpedal: D,
|
|
742
|
+
anyPunctuation: Ot,
|
|
743
|
+
autolink: kt,
|
|
744
|
+
blockSkip: yt,
|
|
745
|
+
br: ht,
|
|
746
|
+
code: mt,
|
|
747
|
+
del: D,
|
|
748
|
+
delLDelim: D,
|
|
749
|
+
delRDelim: D,
|
|
750
|
+
emStrongLDelim: xt,
|
|
751
|
+
emStrongRDelimAst: wt,
|
|
752
|
+
emStrongRDelimUnd: Tt,
|
|
753
|
+
escape: pt,
|
|
754
|
+
link: K,
|
|
755
|
+
nolink: Nt,
|
|
756
|
+
punctuation: H,
|
|
757
|
+
reflink: Mt,
|
|
758
|
+
reflinkSearch: Pt,
|
|
759
|
+
tag: jt,
|
|
760
|
+
text: gt,
|
|
761
|
+
url: D
|
|
762
|
+
}, It = {
|
|
763
|
+
...q,
|
|
764
|
+
link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", G).getRegex(),
|
|
765
|
+
reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", G).getRegex()
|
|
766
|
+
}, Lt = {
|
|
767
|
+
...q,
|
|
768
|
+
emStrongRDelimAst: W,
|
|
769
|
+
emStrongLDelim: St,
|
|
770
|
+
delLDelim: Et,
|
|
771
|
+
delRDelim: Dt,
|
|
772
|
+
url: O(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ft).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
951
773
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
952
774
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
953
|
-
text:
|
|
954
|
-
},
|
|
955
|
-
...
|
|
956
|
-
br:
|
|
957
|
-
text:
|
|
958
|
-
},
|
|
959
|
-
normal:
|
|
960
|
-
gfm:
|
|
961
|
-
pedantic:
|
|
962
|
-
},
|
|
963
|
-
normal:
|
|
964
|
-
gfm:
|
|
965
|
-
breaks:
|
|
966
|
-
pedantic:
|
|
967
|
-
},
|
|
775
|
+
text: O(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ft).getRegex()
|
|
776
|
+
}, Rt = {
|
|
777
|
+
...Lt,
|
|
778
|
+
br: O(ht).replace("{2,}", "*").getRegex(),
|
|
779
|
+
text: O(Lt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
780
|
+
}, zt = {
|
|
781
|
+
normal: ft,
|
|
782
|
+
gfm: L,
|
|
783
|
+
pedantic: R
|
|
784
|
+
}, Bt = {
|
|
785
|
+
normal: q,
|
|
786
|
+
gfm: Lt,
|
|
787
|
+
breaks: Rt,
|
|
788
|
+
pedantic: It
|
|
789
|
+
}, Vt = {
|
|
968
790
|
"&": "&",
|
|
969
791
|
"<": "<",
|
|
970
792
|
">": ">",
|
|
971
793
|
"\"": """,
|
|
972
794
|
"'": "'"
|
|
973
|
-
},
|
|
974
|
-
function
|
|
795
|
+
}, Ht = (e) => Vt[e];
|
|
796
|
+
function J(e, t) {
|
|
975
797
|
if (t) {
|
|
976
|
-
if (
|
|
977
|
-
} else if (
|
|
798
|
+
if (k.escapeTest.test(e)) return e.replace(k.escapeReplace, Ht);
|
|
799
|
+
} else if (k.escapeTestNoEncode.test(e)) return e.replace(k.escapeReplaceNoEncode, Ht);
|
|
978
800
|
return e;
|
|
979
801
|
}
|
|
980
|
-
function
|
|
802
|
+
function Ut(e) {
|
|
981
803
|
try {
|
|
982
|
-
e = encodeURI(e).replace(
|
|
804
|
+
e = encodeURI(e).replace(k.percentDecode, "%");
|
|
983
805
|
} catch {
|
|
984
806
|
return null;
|
|
985
807
|
}
|
|
986
808
|
return e;
|
|
987
809
|
}
|
|
988
|
-
function
|
|
989
|
-
let n = e.replace(
|
|
810
|
+
function Wt(e, t) {
|
|
811
|
+
let n = e.replace(k.findPipe, (e, t, n) => {
|
|
990
812
|
let r = !1, i = t;
|
|
991
813
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
992
814
|
return r ? "|" : " |";
|
|
993
|
-
}).split(
|
|
815
|
+
}).split(k.splitPipe), r = 0;
|
|
994
816
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
995
817
|
else for (; n.length < t;) n.push("");
|
|
996
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
818
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(k.slashPipe, "|");
|
|
997
819
|
return n;
|
|
998
820
|
}
|
|
999
|
-
function
|
|
821
|
+
function Y(e, t, n) {
|
|
1000
822
|
let r = e.length;
|
|
1001
823
|
if (r === 0) return "";
|
|
1002
824
|
let i = 0;
|
|
@@ -1008,12 +830,12 @@ function q(e, t, n) {
|
|
|
1008
830
|
}
|
|
1009
831
|
return e.slice(0, r - i);
|
|
1010
832
|
}
|
|
1011
|
-
function
|
|
833
|
+
function Gt(e) {
|
|
1012
834
|
let t = e.split("\n"), n = t.length - 1;
|
|
1013
|
-
for (; n >= 0 &&
|
|
835
|
+
for (; n >= 0 && k.blankLine.test(t[n]);) n--;
|
|
1014
836
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
1015
837
|
}
|
|
1016
|
-
function
|
|
838
|
+
function Kt(e, t) {
|
|
1017
839
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
1018
840
|
let n = 0;
|
|
1019
841
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -1021,7 +843,7 @@ function ln(e, t) {
|
|
|
1021
843
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
1022
844
|
return n > 0 ? -2 : -1;
|
|
1023
845
|
}
|
|
1024
|
-
function
|
|
846
|
+
function qt(e, t = 0) {
|
|
1025
847
|
let n = t, r = "";
|
|
1026
848
|
for (let t of e) if (t === " ") {
|
|
1027
849
|
let e = 4 - n % 4;
|
|
@@ -1029,7 +851,7 @@ function un(e, t = 0) {
|
|
|
1029
851
|
} else r += t, n++;
|
|
1030
852
|
return r;
|
|
1031
853
|
}
|
|
1032
|
-
function
|
|
854
|
+
function Jt(e, t, n, r, i) {
|
|
1033
855
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
1034
856
|
r.state.inLink = !0;
|
|
1035
857
|
let c = {
|
|
@@ -1042,7 +864,7 @@ function dn(e, t, n, r, i) {
|
|
|
1042
864
|
};
|
|
1043
865
|
return r.state.inLink = !1, c;
|
|
1044
866
|
}
|
|
1045
|
-
function
|
|
867
|
+
function Yt(e, t, n) {
|
|
1046
868
|
let r = e.match(n.other.indentCodeCompensation);
|
|
1047
869
|
if (r === null) return t;
|
|
1048
870
|
let i = r[1];
|
|
@@ -1053,12 +875,12 @@ function fn(e, t, n) {
|
|
|
1053
875
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
1054
876
|
}).join("\n");
|
|
1055
877
|
}
|
|
1056
|
-
var
|
|
878
|
+
var Xt = class {
|
|
1057
879
|
options;
|
|
1058
880
|
rules;
|
|
1059
881
|
lexer;
|
|
1060
882
|
constructor(e) {
|
|
1061
|
-
this.options = e ||
|
|
883
|
+
this.options = e || T;
|
|
1062
884
|
}
|
|
1063
885
|
space(e) {
|
|
1064
886
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -1070,7 +892,7 @@ var pn = class {
|
|
|
1070
892
|
code(e) {
|
|
1071
893
|
let t = this.rules.block.code.exec(e);
|
|
1072
894
|
if (t) {
|
|
1073
|
-
let e = this.options.pedantic ? t[0] :
|
|
895
|
+
let e = this.options.pedantic ? t[0] : Gt(t[0]);
|
|
1074
896
|
return {
|
|
1075
897
|
type: "code",
|
|
1076
898
|
raw: e,
|
|
@@ -1082,7 +904,7 @@ var pn = class {
|
|
|
1082
904
|
fences(e) {
|
|
1083
905
|
let t = this.rules.block.fences.exec(e);
|
|
1084
906
|
if (t) {
|
|
1085
|
-
let e = t[0], n =
|
|
907
|
+
let e = t[0], n = Yt(e, t[3] || "", this.rules);
|
|
1086
908
|
return {
|
|
1087
909
|
type: "code",
|
|
1088
910
|
raw: e,
|
|
@@ -1096,12 +918,12 @@ var pn = class {
|
|
|
1096
918
|
if (t) {
|
|
1097
919
|
let e = t[2].trim();
|
|
1098
920
|
if (this.rules.other.endingHash.test(e)) {
|
|
1099
|
-
let t =
|
|
921
|
+
let t = Y(e, "#");
|
|
1100
922
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
1101
923
|
}
|
|
1102
924
|
return {
|
|
1103
925
|
type: "heading",
|
|
1104
|
-
raw:
|
|
926
|
+
raw: Y(t[0], "\n"),
|
|
1105
927
|
depth: t[1].length,
|
|
1106
928
|
text: e,
|
|
1107
929
|
tokens: this.lexer.inline(e)
|
|
@@ -1112,13 +934,13 @@ var pn = class {
|
|
|
1112
934
|
let t = this.rules.block.hr.exec(e);
|
|
1113
935
|
if (t) return {
|
|
1114
936
|
type: "hr",
|
|
1115
|
-
raw:
|
|
937
|
+
raw: Y(t[0], "\n")
|
|
1116
938
|
};
|
|
1117
939
|
}
|
|
1118
940
|
blockquote(e) {
|
|
1119
941
|
let t = this.rules.block.blockquote.exec(e);
|
|
1120
942
|
if (t) {
|
|
1121
|
-
let e =
|
|
943
|
+
let e = Y(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
1122
944
|
for (; e.length > 0;) {
|
|
1123
945
|
let t = !1, a = [], o;
|
|
1124
946
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -1168,18 +990,18 @@ ${c}` : c;
|
|
|
1168
990
|
let n = !1, r = "", s = "";
|
|
1169
991
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
1170
992
|
r = t[0], e = e.substring(r.length);
|
|
1171
|
-
let c =
|
|
993
|
+
let c = qt(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
1172
994
|
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) {
|
|
1173
995
|
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), ee = this.rules.other.blockquoteBeginRegex(d);
|
|
1174
996
|
for (; e;) {
|
|
1175
|
-
let te = e.split("\n", 1)[0],
|
|
1176
|
-
if (l = te, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "),
|
|
1177
|
-
if (
|
|
997
|
+
let te = e.split("\n", 1)[0], f;
|
|
998
|
+
if (l = te, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), f = l) : f = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || ee.test(l) || t.test(l) || n.test(l)) break;
|
|
999
|
+
if (f.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + f.slice(d);
|
|
1178
1000
|
else {
|
|
1179
1001
|
if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
|
|
1180
1002
|
s += "\n" + l;
|
|
1181
1003
|
}
|
|
1182
|
-
u = !l.trim(), r += te + "\n", e = e.substring(te.length + 1), c =
|
|
1004
|
+
u = !l.trim(), r += te + "\n", e = e.substring(te.length + 1), c = f.slice(d);
|
|
1183
1005
|
}
|
|
1184
1006
|
}
|
|
1185
1007
|
i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
|
|
@@ -1196,29 +1018,29 @@ ${c}` : c;
|
|
|
1196
1018
|
else return;
|
|
1197
1019
|
i.raw = i.raw.trimEnd();
|
|
1198
1020
|
for (let e of i.items) {
|
|
1199
|
-
this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, [])
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1021
|
+
if (this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []), e.task) {
|
|
1022
|
+
if (e.text = e.text.replace(this.rules.other.listReplaceTask, ""), e.tokens[0]?.type === "text" || e.tokens[0]?.type === "paragraph") {
|
|
1023
|
+
e.tokens[0].raw = e.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), e.tokens[0].text = e.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
|
|
1024
|
+
for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
|
|
1025
|
+
this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1206
1028
|
}
|
|
1207
|
-
let
|
|
1208
|
-
if (
|
|
1209
|
-
let
|
|
1029
|
+
let t = this.rules.other.listTaskCheckbox.exec(e.raw);
|
|
1030
|
+
if (t) {
|
|
1031
|
+
let n = {
|
|
1210
1032
|
type: "checkbox",
|
|
1211
|
-
raw:
|
|
1212
|
-
checked:
|
|
1033
|
+
raw: t[0] + " ",
|
|
1034
|
+
checked: t[0] !== "[ ]"
|
|
1213
1035
|
};
|
|
1214
|
-
e.checked =
|
|
1036
|
+
e.checked = n.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = n.raw + e.tokens[0].raw, e.tokens[0].text = n.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(n)) : e.tokens.unshift({
|
|
1215
1037
|
type: "paragraph",
|
|
1216
|
-
raw:
|
|
1217
|
-
text:
|
|
1218
|
-
tokens: [
|
|
1219
|
-
}) : e.tokens.unshift(
|
|
1038
|
+
raw: n.raw,
|
|
1039
|
+
text: n.raw,
|
|
1040
|
+
tokens: [n]
|
|
1041
|
+
}) : e.tokens.unshift(n);
|
|
1220
1042
|
}
|
|
1221
|
-
}
|
|
1043
|
+
}
|
|
1222
1044
|
if (!i.loose) {
|
|
1223
1045
|
let t = e.tokens.filter((e) => e.type === "space");
|
|
1224
1046
|
i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
|
|
@@ -1234,7 +1056,7 @@ ${c}` : c;
|
|
|
1234
1056
|
html(e) {
|
|
1235
1057
|
let t = this.rules.block.html.exec(e);
|
|
1236
1058
|
if (t) {
|
|
1237
|
-
let e =
|
|
1059
|
+
let e = Gt(t[0]);
|
|
1238
1060
|
return {
|
|
1239
1061
|
type: "html",
|
|
1240
1062
|
block: !0,
|
|
@@ -1251,7 +1073,7 @@ ${c}` : c;
|
|
|
1251
1073
|
return {
|
|
1252
1074
|
type: "def",
|
|
1253
1075
|
tag: e,
|
|
1254
|
-
raw:
|
|
1076
|
+
raw: Y(t[0], "\n"),
|
|
1255
1077
|
href: n,
|
|
1256
1078
|
title: r
|
|
1257
1079
|
};
|
|
@@ -1260,9 +1082,9 @@ ${c}` : c;
|
|
|
1260
1082
|
table(e) {
|
|
1261
1083
|
let t = this.rules.block.table.exec(e);
|
|
1262
1084
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
1263
|
-
let n =
|
|
1085
|
+
let n = Wt(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 = {
|
|
1264
1086
|
type: "table",
|
|
1265
|
-
raw:
|
|
1087
|
+
raw: Y(t[0], "\n"),
|
|
1266
1088
|
header: [],
|
|
1267
1089
|
align: [],
|
|
1268
1090
|
rows: []
|
|
@@ -1275,7 +1097,7 @@ ${c}` : c;
|
|
|
1275
1097
|
header: !0,
|
|
1276
1098
|
align: a.align[e]
|
|
1277
1099
|
});
|
|
1278
|
-
for (let e of i) a.rows.push(
|
|
1100
|
+
for (let e of i) a.rows.push(Wt(e, a.header.length).map((e, t) => ({
|
|
1279
1101
|
text: e,
|
|
1280
1102
|
tokens: this.lexer.inline(e),
|
|
1281
1103
|
header: !1,
|
|
@@ -1290,7 +1112,7 @@ ${c}` : c;
|
|
|
1290
1112
|
let e = t[1].trim();
|
|
1291
1113
|
return {
|
|
1292
1114
|
type: "heading",
|
|
1293
|
-
raw:
|
|
1115
|
+
raw: Y(t[0], "\n"),
|
|
1294
1116
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
1295
1117
|
text: e,
|
|
1296
1118
|
tokens: this.lexer.inline(e)
|
|
@@ -1343,10 +1165,10 @@ ${c}` : c;
|
|
|
1343
1165
|
let e = t[2].trim();
|
|
1344
1166
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
1345
1167
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
1346
|
-
let t =
|
|
1168
|
+
let t = Y(e.slice(0, -1), "\\");
|
|
1347
1169
|
if ((e.length - t.length) % 2 == 0) return;
|
|
1348
1170
|
} else {
|
|
1349
|
-
let e =
|
|
1171
|
+
let e = Kt(t[2], "()");
|
|
1350
1172
|
if (e === -2) return;
|
|
1351
1173
|
if (e > -1) {
|
|
1352
1174
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -1358,7 +1180,7 @@ ${c}` : c;
|
|
|
1358
1180
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
1359
1181
|
e && (n = e[1], r = e[3]);
|
|
1360
1182
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
1361
|
-
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)),
|
|
1183
|
+
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)), Jt(t, {
|
|
1362
1184
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1363
1185
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1364
1186
|
}, t[0], this.lexer, this.rules);
|
|
@@ -1376,7 +1198,7 @@ ${c}` : c;
|
|
|
1376
1198
|
text: e
|
|
1377
1199
|
};
|
|
1378
1200
|
}
|
|
1379
|
-
return
|
|
1201
|
+
return Jt(n, e, n[0], this.lexer, this.rules);
|
|
1380
1202
|
}
|
|
1381
1203
|
}
|
|
1382
1204
|
emStrong(e, t, n = "") {
|
|
@@ -1508,29 +1330,29 @@ ${c}` : c;
|
|
|
1508
1330
|
};
|
|
1509
1331
|
}
|
|
1510
1332
|
}
|
|
1511
|
-
},
|
|
1333
|
+
}, X = class e {
|
|
1512
1334
|
tokens;
|
|
1513
1335
|
options;
|
|
1514
1336
|
state;
|
|
1515
1337
|
inlineQueue;
|
|
1516
1338
|
tokenizer;
|
|
1517
1339
|
constructor(e) {
|
|
1518
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
1340
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new Xt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1519
1341
|
inLink: !1,
|
|
1520
1342
|
inRawBlock: !1,
|
|
1521
1343
|
top: !0
|
|
1522
1344
|
};
|
|
1523
1345
|
let t = {
|
|
1524
|
-
other:
|
|
1525
|
-
block:
|
|
1526
|
-
inline:
|
|
1346
|
+
other: k,
|
|
1347
|
+
block: zt.normal,
|
|
1348
|
+
inline: Bt.normal
|
|
1527
1349
|
};
|
|
1528
|
-
this.options.pedantic ? (t.block =
|
|
1350
|
+
this.options.pedantic ? (t.block = zt.pedantic, t.inline = Bt.pedantic) : this.options.gfm && (t.block = zt.gfm, this.options.breaks ? t.inline = Bt.breaks : t.inline = Bt.gfm), this.tokenizer.rules = t;
|
|
1529
1351
|
}
|
|
1530
1352
|
static get rules() {
|
|
1531
1353
|
return {
|
|
1532
|
-
block:
|
|
1533
|
-
inline:
|
|
1354
|
+
block: zt,
|
|
1355
|
+
inline: Bt
|
|
1534
1356
|
};
|
|
1535
1357
|
}
|
|
1536
1358
|
static lex(t, n) {
|
|
@@ -1540,7 +1362,7 @@ ${c}` : c;
|
|
|
1540
1362
|
return new e(n).inlineTokens(t);
|
|
1541
1363
|
}
|
|
1542
1364
|
lex(e) {
|
|
1543
|
-
e = e.replace(
|
|
1365
|
+
e = e.replace(k.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
1544
1366
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
1545
1367
|
let t = this.inlineQueue[e];
|
|
1546
1368
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -1548,7 +1370,7 @@ ${c}` : c;
|
|
|
1548
1370
|
return this.inlineQueue = [], this.tokens;
|
|
1549
1371
|
}
|
|
1550
1372
|
blockTokens(e, t = [], n = !1) {
|
|
1551
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
1373
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(k.tabCharGlobal, " ").replace(k.spaceLine, ""));
|
|
1552
1374
|
let r = Infinity;
|
|
1553
1375
|
for (; e;) {
|
|
1554
1376
|
if (e.length < r) r = e.length;
|
|
@@ -1730,18 +1552,18 @@ ${c}` : c;
|
|
|
1730
1552
|
if (this.options.silent) console.error(t);
|
|
1731
1553
|
else throw Error(t);
|
|
1732
1554
|
}
|
|
1733
|
-
},
|
|
1555
|
+
}, Zt = class {
|
|
1734
1556
|
options;
|
|
1735
1557
|
parser;
|
|
1736
1558
|
constructor(e) {
|
|
1737
|
-
this.options = e ||
|
|
1559
|
+
this.options = e || T;
|
|
1738
1560
|
}
|
|
1739
1561
|
space(e) {
|
|
1740
1562
|
return "";
|
|
1741
1563
|
}
|
|
1742
1564
|
code({ text: e, lang: t, escaped: n }) {
|
|
1743
|
-
let r = (t || "").match(
|
|
1744
|
-
return r ? "<pre><code class=\"language-" +
|
|
1565
|
+
let r = (t || "").match(k.notSpaceStart)?.[0], i = e.replace(k.endingNewline, "") + "\n";
|
|
1566
|
+
return r ? "<pre><code class=\"language-" + J(r) + "\">" + (n ? i : J(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : J(i, !0)) + "</code></pre>\n";
|
|
1745
1567
|
}
|
|
1746
1568
|
blockquote({ tokens: e }) {
|
|
1747
1569
|
return `<blockquote>
|
|
@@ -1811,7 +1633,7 @@ ${e}</tr>
|
|
|
1811
1633
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1812
1634
|
}
|
|
1813
1635
|
codespan({ text: e }) {
|
|
1814
|
-
return `<code>${
|
|
1636
|
+
return `<code>${J(e, !0)}</code>`;
|
|
1815
1637
|
}
|
|
1816
1638
|
br(e) {
|
|
1817
1639
|
return "<br>";
|
|
@@ -1820,24 +1642,24 @@ ${e}</tr>
|
|
|
1820
1642
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1821
1643
|
}
|
|
1822
1644
|
link({ href: e, title: t, tokens: n }) {
|
|
1823
|
-
let r = this.parser.parseInline(n), i =
|
|
1645
|
+
let r = this.parser.parseInline(n), i = Ut(e);
|
|
1824
1646
|
if (i === null) return r;
|
|
1825
1647
|
e = i;
|
|
1826
1648
|
let a = "<a href=\"" + e + "\"";
|
|
1827
|
-
return t && (a += " title=\"" +
|
|
1649
|
+
return t && (a += " title=\"" + J(t) + "\""), a += ">" + r + "</a>", a;
|
|
1828
1650
|
}
|
|
1829
1651
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1830
1652
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1831
|
-
let i =
|
|
1832
|
-
if (i === null) return
|
|
1653
|
+
let i = Ut(e);
|
|
1654
|
+
if (i === null) return J(n);
|
|
1833
1655
|
e = i;
|
|
1834
|
-
let a = `<img src="${e}" alt="${
|
|
1835
|
-
return t && (a += ` title="${
|
|
1656
|
+
let a = `<img src="${e}" alt="${J(n)}"`;
|
|
1657
|
+
return t && (a += ` title="${J(t)}"`), a += ">", a;
|
|
1836
1658
|
}
|
|
1837
1659
|
text(e) {
|
|
1838
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
1660
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : J(e.text);
|
|
1839
1661
|
}
|
|
1840
|
-
},
|
|
1662
|
+
}, Qt = class {
|
|
1841
1663
|
strong({ text: e }) {
|
|
1842
1664
|
return e;
|
|
1843
1665
|
}
|
|
@@ -1868,12 +1690,12 @@ ${e}</tr>
|
|
|
1868
1690
|
checkbox({ raw: e }) {
|
|
1869
1691
|
return e;
|
|
1870
1692
|
}
|
|
1871
|
-
},
|
|
1693
|
+
}, Z = class e {
|
|
1872
1694
|
options;
|
|
1873
1695
|
renderer;
|
|
1874
1696
|
textRenderer;
|
|
1875
1697
|
constructor(e) {
|
|
1876
|
-
this.options = e ||
|
|
1698
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new Zt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Qt();
|
|
1877
1699
|
}
|
|
1878
1700
|
static parse(t, n) {
|
|
1879
1701
|
return new e(n).parse(t);
|
|
@@ -2019,19 +1841,19 @@ ${e}</tr>
|
|
|
2019
1841
|
}
|
|
2020
1842
|
return n;
|
|
2021
1843
|
}
|
|
2022
|
-
},
|
|
1844
|
+
}, $t = class {
|
|
2023
1845
|
options;
|
|
2024
1846
|
block;
|
|
2025
1847
|
constructor(e) {
|
|
2026
|
-
this.options = e ||
|
|
1848
|
+
this.options = e || T;
|
|
2027
1849
|
}
|
|
2028
|
-
static passThroughHooks =
|
|
1850
|
+
static passThroughHooks = new Set([
|
|
2029
1851
|
"preprocess",
|
|
2030
1852
|
"postprocess",
|
|
2031
1853
|
"processAllTokens",
|
|
2032
1854
|
"emStrongMask"
|
|
2033
1855
|
]);
|
|
2034
|
-
static passThroughHooksRespectAsync =
|
|
1856
|
+
static passThroughHooksRespectAsync = new Set([
|
|
2035
1857
|
"preprocess",
|
|
2036
1858
|
"postprocess",
|
|
2037
1859
|
"processAllTokens"
|
|
@@ -2049,22 +1871,22 @@ ${e}</tr>
|
|
|
2049
1871
|
return e;
|
|
2050
1872
|
}
|
|
2051
1873
|
provideLexer(e = this.block) {
|
|
2052
|
-
return e ?
|
|
1874
|
+
return e ? X.lex : X.lexInline;
|
|
2053
1875
|
}
|
|
2054
1876
|
provideParser(e = this.block) {
|
|
2055
|
-
return e ?
|
|
1877
|
+
return e ? Z.parse : Z.parseInline;
|
|
2056
1878
|
}
|
|
2057
|
-
},
|
|
2058
|
-
defaults =
|
|
1879
|
+
}, en = new class {
|
|
1880
|
+
defaults = Qe();
|
|
2059
1881
|
options = this.setOptions;
|
|
2060
1882
|
parse = this.parseMarkdown(!0);
|
|
2061
1883
|
parseInline = this.parseMarkdown(!1);
|
|
2062
|
-
Parser =
|
|
2063
|
-
Renderer =
|
|
2064
|
-
TextRenderer =
|
|
2065
|
-
Lexer =
|
|
2066
|
-
Tokenizer =
|
|
2067
|
-
Hooks =
|
|
1884
|
+
Parser = Z;
|
|
1885
|
+
Renderer = Zt;
|
|
1886
|
+
TextRenderer = Qt;
|
|
1887
|
+
Lexer = X;
|
|
1888
|
+
Tokenizer = Xt;
|
|
1889
|
+
Hooks = $t;
|
|
2068
1890
|
constructor(...e) {
|
|
2069
1891
|
this.use(...e);
|
|
2070
1892
|
}
|
|
@@ -2115,7 +1937,7 @@ ${e}</tr>
|
|
|
2115
1937
|
}
|
|
2116
1938
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
2117
1939
|
}), n.extensions = t), e.renderer) {
|
|
2118
|
-
let t = this.defaults.renderer || new
|
|
1940
|
+
let t = this.defaults.renderer || new Zt(this.defaults);
|
|
2119
1941
|
for (let n in e.renderer) {
|
|
2120
1942
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
2121
1943
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -2128,7 +1950,7 @@ ${e}</tr>
|
|
|
2128
1950
|
n.renderer = t;
|
|
2129
1951
|
}
|
|
2130
1952
|
if (e.tokenizer) {
|
|
2131
|
-
let t = this.defaults.tokenizer || new
|
|
1953
|
+
let t = this.defaults.tokenizer || new Xt(this.defaults);
|
|
2132
1954
|
for (let n in e.tokenizer) {
|
|
2133
1955
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
2134
1956
|
if ([
|
|
@@ -2145,13 +1967,13 @@ ${e}</tr>
|
|
|
2145
1967
|
n.tokenizer = t;
|
|
2146
1968
|
}
|
|
2147
1969
|
if (e.hooks) {
|
|
2148
|
-
let t = this.defaults.hooks || new
|
|
1970
|
+
let t = this.defaults.hooks || new $t();
|
|
2149
1971
|
for (let n in e.hooks) {
|
|
2150
1972
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
2151
1973
|
if (["options", "block"].includes(n)) continue;
|
|
2152
1974
|
let r = n, i = e.hooks[r], a = t[r];
|
|
2153
|
-
|
|
2154
|
-
if (this.defaults.async &&
|
|
1975
|
+
$t.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
1976
|
+
if (this.defaults.async && $t.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
2155
1977
|
let n = await i.call(t, e);
|
|
2156
1978
|
return a.call(t, n);
|
|
2157
1979
|
})();
|
|
@@ -2188,10 +2010,10 @@ ${e}</tr>
|
|
|
2188
2010
|
}, this;
|
|
2189
2011
|
}
|
|
2190
2012
|
lexer(e, t) {
|
|
2191
|
-
return
|
|
2013
|
+
return X.lex(e, t ?? this.defaults);
|
|
2192
2014
|
}
|
|
2193
2015
|
parser(e, t) {
|
|
2194
|
-
return
|
|
2016
|
+
return Z.parse(e, t ?? this.defaults);
|
|
2195
2017
|
}
|
|
2196
2018
|
parseMarkdown(e) {
|
|
2197
2019
|
return (t, n) => {
|
|
@@ -2203,16 +2025,16 @@ ${e}</tr>
|
|
|
2203
2025
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
2204
2026
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
2205
2027
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
2206
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
2028
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? X.lex : X.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
2207
2029
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
2208
|
-
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ?
|
|
2030
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Z.parse : Z.parseInline)(a, i);
|
|
2209
2031
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
2210
2032
|
})().catch(a);
|
|
2211
2033
|
try {
|
|
2212
2034
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
2213
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
2035
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? X.lex : X.lexInline)(t, i);
|
|
2214
2036
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
2215
|
-
let r = (i.hooks ? i.hooks.provideParser(e) : e ?
|
|
2037
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? Z.parse : Z.parseInline)(n, i);
|
|
2216
2038
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
2217
2039
|
} catch (e) {
|
|
2218
2040
|
return a(e);
|
|
@@ -2222,7 +2044,7 @@ ${e}</tr>
|
|
|
2222
2044
|
onError(e, t) {
|
|
2223
2045
|
return (n) => {
|
|
2224
2046
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
2225
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
2047
|
+
let e = "<p>An error occurred:</p><pre>" + J(n.message + "", !0) + "</pre>";
|
|
2226
2048
|
return t ? Promise.resolve(e) : e;
|
|
2227
2049
|
}
|
|
2228
2050
|
if (t) return Promise.reject(n);
|
|
@@ -2231,18 +2053,18 @@ ${e}</tr>
|
|
|
2231
2053
|
}
|
|
2232
2054
|
}();
|
|
2233
2055
|
function Q(e, t) {
|
|
2234
|
-
return
|
|
2056
|
+
return en.parse(e, t);
|
|
2235
2057
|
}
|
|
2236
2058
|
Q.options = Q.setOptions = function(e) {
|
|
2237
|
-
return
|
|
2238
|
-
}, Q.getDefaults =
|
|
2239
|
-
return
|
|
2059
|
+
return en.setOptions(e), Q.defaults = en.defaults, E(Q.defaults), Q;
|
|
2060
|
+
}, Q.getDefaults = Qe, Q.defaults = T, Q.use = function(...e) {
|
|
2061
|
+
return en.use(...e), Q.defaults = en.defaults, E(Q.defaults), Q;
|
|
2240
2062
|
}, Q.walkTokens = function(e, t) {
|
|
2241
|
-
return
|
|
2242
|
-
}, Q.parseInline =
|
|
2063
|
+
return en.walkTokens(e, t);
|
|
2064
|
+
}, Q.parseInline = en.parseInline, Q.Parser = Z, Q.parser = Z.parse, Q.Renderer = Zt, Q.TextRenderer = Qt, Q.Lexer = X, Q.lexer = X.lex, Q.Tokenizer = Xt, Q.Hooks = $t, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, Z.parse, X.lex;
|
|
2243
2065
|
//#endregion
|
|
2244
2066
|
//#region src/components/chat-message/chat-message.module.scss?inline
|
|
2245
|
-
var gn = ":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 rgba(var(--luzmo-border-color-rgb), .05);--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}", $ = class extends n(e, {
|
|
2067
|
+
var tn = ":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 rgba(var(--luzmo-border-color-rgb), .05);--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}", $ = class extends n(e, {
|
|
2246
2068
|
validSizes: [
|
|
2247
2069
|
"xs",
|
|
2248
2070
|
"s",
|
|
@@ -2270,7 +2092,7 @@ var gn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2270
2092
|
this.defaultSlotObserver.disconnect(), super.disconnectedCallback();
|
|
2271
2093
|
}
|
|
2272
2094
|
static get styles() {
|
|
2273
|
-
return [o(
|
|
2095
|
+
return [o(tn)];
|
|
2274
2096
|
}
|
|
2275
2097
|
_handleAvatarSlotChange(e) {
|
|
2276
2098
|
let t = e.target;
|
|
@@ -2296,7 +2118,7 @@ var gn = ":host{width:100%;font-family:var(--luzmo-chat-message-font-family,var(
|
|
|
2296
2118
|
let e = [...this.childNodes].filter((e) => e.nodeType !== Node.ELEMENT_NODE || !e.hasAttribute("slot"));
|
|
2297
2119
|
if (e.some((e) => e.nodeType === Node.ELEMENT_NODE)) return;
|
|
2298
2120
|
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();
|
|
2299
|
-
if (t) return
|
|
2121
|
+
if (t) return Ze.sanitize(Q.parse(t, {
|
|
2300
2122
|
gfm: !0,
|
|
2301
2123
|
async: !1
|
|
2302
2124
|
}), { USE_PROFILES: { html: !0 } });
|