@adyen/bento-vue3 1.89.2 → 1.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +403 -298
- package/dist/accordion.js +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-time.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
- package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
- package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
- package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
- package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
- package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
- package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
- package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
- package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
- package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
- package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
- package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
- package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
- package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
- package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
- package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
- package/dist/chunks/card.BzCGCCzH.js +223 -0
- package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
- package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
- package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
- package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
- package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
- package/dist/chunks/chip.DFldnqfz.js +72 -0
- package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
- package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
- package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
- package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
- package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
- package/dist/chunks/copy.CL893i9-.js +114 -0
- package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
- package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
- package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
- package/dist/chunks/country.types.6a7xxZIR.js +26 -0
- package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
- package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
- package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
- package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
- package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
- package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
- package/dist/chunks/date-picker.DPjCROIP.js +238 -0
- package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
- package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
- package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
- package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
- package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
- package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
- package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
- package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
- package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
- package/dist/chunks/error-message.849uzpkq.js +157 -0
- package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
- package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
- package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
- package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
- package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
- package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
- package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
- package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
- package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
- package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
- package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
- package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
- package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
- package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
- package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
- package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
- package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
- package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
- package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
- package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
- package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
- package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
- package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
- package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
- package/dist/chunks/input-time.DeJ8lDio.js +103 -0
- package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
- package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
- package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
- package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
- package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
- package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
- package/dist/chunks/pagination.DL-h8OLF.js +413 -0
- package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
- package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
- package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
- package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
- package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
- package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
- package/dist/chunks/search-bar.DfNwnjes.js +114 -0
- package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
- package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
- package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
- package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
- package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
- package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
- package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
- package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
- package/dist/chunks/step.AsX2jAeL.js +268 -0
- package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
- package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
- package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
- package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
- package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
- package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
- package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
- package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
- package/dist/chunks/textarea.C-sBemuo.js +256 -0
- package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
- package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
- package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
- package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
- package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
- package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
- package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
- package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
- package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
- package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
- package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +3 -3
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +51 -44
- package/dist/draggable-handle.js.map +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +205 -203
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +5 -0
- package/dist/input-time.js.map +1 -0
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
- package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
- package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
- package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
- package/dist/chunks/card.CoxQ_L0w.js +0 -216
- package/dist/chunks/chip.CdgpQyXN.js +0 -65
- package/dist/chunks/copy.C2kQ1PbI.js +0 -107
- package/dist/chunks/country.types.DjpMGz7a.js +0 -19
- package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
- package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
- package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
- package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
- package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
- package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
- package/dist/chunks/error-message.DCgo8q20.js +0 -143
- package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
- package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
- package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
- package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
- package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
- package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
- package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
- package/dist/chunks/step.BlwoLfdw.js +0 -259
- package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
- package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
- package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
- package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Dt, ref as wt, onMounted as rr, watch as me, openBlock as Z, createElementBlock as Ft, toDisplayString as Nt, createBlock as pt, unref as ht, withCtx as Pt, renderSlot as Tt, createElementVNode as $t, computed as xt, normalizeStyle as ir, h as Q, useAttrs as ur, createCommentVNode as Xt, mergeProps as lr, createVNode as Pe, KeepAlive as ar, createTextVNode as Me, normalizeClass as or } from "vue";
|
|
2
2
|
import { B as Oe } from "./typography.B3J6_tYk.js";
|
|
3
|
-
import { B as sr } from "./segmented-control.
|
|
4
|
-
import { B as cr } from "./alert.
|
|
3
|
+
import { B as sr } from "./segmented-control.CQWOO1-J.js";
|
|
4
|
+
import { B as cr } from "./alert.CFWN2E0b.js";
|
|
5
5
|
import { _ as Fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import { B as fr } from "./link.D6D6YGsN.js";
|
|
7
|
-
import { B as hr } from "./checkbox.
|
|
7
|
+
import { B as hr } from "./checkbox.BlAhQl9N.js";
|
|
8
8
|
import { u as pr } from "./index.B875RXHM.js";
|
|
9
9
|
import { u as mr } from "./aria-label.CaUURpnB.js";
|
|
10
10
|
import { g as Re } from "./generate-uid.DBWe4g6T.js";
|
|
11
|
-
import { F as
|
|
11
|
+
import { F as dr, E as gr } from "./error-message.849uzpkq.js";
|
|
12
12
|
import "../assets/rich-text-editor.css";
|
|
13
13
|
const kr = ["disabled"], xr = /* @__PURE__ */ Dt({
|
|
14
14
|
__name: "rich-text-editor-content-area",
|
|
@@ -54,7 +54,7 @@ function tt(t, n) {
|
|
|
54
54
|
return t.length > 0 ? (X(t, t.length, 0, n), t) : n;
|
|
55
55
|
}
|
|
56
56
|
const je = {}.hasOwnProperty;
|
|
57
|
-
function
|
|
57
|
+
function dn(t) {
|
|
58
58
|
const n = {};
|
|
59
59
|
let e = -1;
|
|
60
60
|
for (; ++e < t.length; )
|
|
@@ -86,14 +86,14 @@ function wr(t, n) {
|
|
|
86
86
|
X(t, 0, 0, r);
|
|
87
87
|
}
|
|
88
88
|
const Fr = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, G = bt(/[A-Za-z]/), J = bt(/[\dA-Za-z]/), Sr = bt(/[#-'*+\--9=?A-Z^-~]/);
|
|
89
|
-
function
|
|
89
|
+
function vt(t) {
|
|
90
90
|
return (
|
|
91
91
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
92
92
|
// character DEL
|
|
93
93
|
t !== null && (t < 32 || t === 127)
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const de = bt(/\d/), Cr = bt(/[\dA-Fa-f]/), Ar = bt(/[!-/:-@[-`{-~]/);
|
|
97
97
|
function T(t) {
|
|
98
98
|
return t !== null && t < -2;
|
|
99
99
|
}
|
|
@@ -111,9 +111,9 @@ function bt(t) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const Er = {
|
|
114
|
-
tokenize:
|
|
114
|
+
tokenize: _r,
|
|
115
115
|
partial: !0
|
|
116
|
-
},
|
|
116
|
+
}, gn = {
|
|
117
117
|
tokenize: Br,
|
|
118
118
|
partial: !0
|
|
119
119
|
}, kn = {
|
|
@@ -129,7 +129,7 @@ const Er = {
|
|
|
129
129
|
tokenize: Dr,
|
|
130
130
|
previous: wn
|
|
131
131
|
}, yn = {
|
|
132
|
-
tokenize:
|
|
132
|
+
tokenize: Lr,
|
|
133
133
|
previous: Fn
|
|
134
134
|
}, mt = {
|
|
135
135
|
tokenize: Tr,
|
|
@@ -153,10 +153,10 @@ function Tr(t, n, e) {
|
|
|
153
153
|
let i, l;
|
|
154
154
|
return u;
|
|
155
155
|
function u(o) {
|
|
156
|
-
return !
|
|
156
|
+
return !ge(o) || !Sn.call(r, r.previous) || Se(r.events) ? e(o) : (t.enter("literalAutolink"), t.enter("literalAutolinkEmail"), a(o));
|
|
157
157
|
}
|
|
158
158
|
function a(o) {
|
|
159
|
-
return
|
|
159
|
+
return ge(o) ? (t.consume(o), a) : o === 64 ? (t.consume(o), c) : e(o);
|
|
160
160
|
}
|
|
161
161
|
function c(o) {
|
|
162
162
|
return o === 46 ? t.check(
|
|
@@ -178,7 +178,7 @@ function Dr(t, n, e) {
|
|
|
178
178
|
function i(u) {
|
|
179
179
|
return u !== 87 && u !== 119 || !wn.call(r, r.previous) || Se(r.events) ? e(u) : (t.enter("literalAutolink"), t.enter("literalAutolinkWww"), t.check(
|
|
180
180
|
Er,
|
|
181
|
-
t.attempt(
|
|
181
|
+
t.attempt(gn, t.attempt(kn, l), e),
|
|
182
182
|
e
|
|
183
183
|
)(u));
|
|
184
184
|
}
|
|
@@ -186,7 +186,7 @@ function Dr(t, n, e) {
|
|
|
186
186
|
return t.exit("literalAutolinkWww"), t.exit("literalAutolink"), n(u);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Lr(t, n, e) {
|
|
190
190
|
const r = this;
|
|
191
191
|
let i = "", l = !1;
|
|
192
192
|
return u;
|
|
@@ -207,13 +207,13 @@ function _r(t, n, e) {
|
|
|
207
207
|
return o === 47 ? (t.consume(o), l ? s : (l = !0, c)) : e(o);
|
|
208
208
|
}
|
|
209
209
|
function s(o) {
|
|
210
|
-
return o === null ||
|
|
210
|
+
return o === null || vt(o) || V(o) || St(o) || Qt(o) ? e(o) : t.attempt(gn, t.attempt(kn, f), e)(o);
|
|
211
211
|
}
|
|
212
212
|
function f(o) {
|
|
213
213
|
return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), n(o);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function _r(t, n, e) {
|
|
217
217
|
let r = 0;
|
|
218
218
|
return i;
|
|
219
219
|
function i(u) {
|
|
@@ -281,9 +281,9 @@ function Fn(t) {
|
|
|
281
281
|
return !G(t);
|
|
282
282
|
}
|
|
283
283
|
function Sn(t) {
|
|
284
|
-
return !(t === 47 ||
|
|
284
|
+
return !(t === 47 || ge(t));
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function ge(t) {
|
|
287
287
|
return t === 43 || t === 45 || t === 46 || t === 95 || J(t);
|
|
288
288
|
}
|
|
289
289
|
function Se(t) {
|
|
@@ -301,7 +301,7 @@ function Se(t) {
|
|
|
301
301
|
}
|
|
302
302
|
return t.length > 0 && !e && (t[t.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), e;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Ut(t) {
|
|
305
305
|
if (t === null || V(t) || St(t))
|
|
306
306
|
return 1;
|
|
307
307
|
if (Qt(t))
|
|
@@ -380,7 +380,7 @@ function Rr(t, n) {
|
|
|
380
380
|
return t;
|
|
381
381
|
}
|
|
382
382
|
function jr(t, n) {
|
|
383
|
-
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
383
|
+
const e = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ut(r);
|
|
384
384
|
let l;
|
|
385
385
|
return u;
|
|
386
386
|
function u(c) {
|
|
@@ -389,7 +389,7 @@ function jr(t, n) {
|
|
|
389
389
|
function a(c) {
|
|
390
390
|
if (c === l)
|
|
391
391
|
return t.consume(c), a;
|
|
392
|
-
const s = t.exit("attentionSequence"), f =
|
|
392
|
+
const s = t.exit("attentionSequence"), f = Ut(c), o = !f || f === 2 && i || e.includes(c), p = !i || i === 2 && f || e.includes(r);
|
|
393
393
|
return s._open = !!(l === 42 ? o : o && (i || !p)), s._close = !!(l === 42 ? p : p && (f || !o)), n(c);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
@@ -416,7 +416,7 @@ function qr(t, n, e) {
|
|
|
416
416
|
return h === 58 ? (t.consume(h), r = 0, c) : (h === 43 || h === 45 || h === 46 || J(h)) && r++ < 32 ? (t.consume(h), a) : (r = 0, s(h));
|
|
417
417
|
}
|
|
418
418
|
function c(h) {
|
|
419
|
-
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 ||
|
|
419
|
+
return h === 62 ? (t.exit("autolinkProtocol"), t.enter("autolinkMarker"), t.consume(h), t.exit("autolinkMarker"), t.exit("autolink"), n) : h === null || h === 32 || h === 60 || vt(h) ? e(h) : (t.consume(h), c);
|
|
420
420
|
}
|
|
421
421
|
function s(h) {
|
|
422
422
|
return h === 64 ? (t.consume(h), f) : Sr(h) ? (t.consume(h), s) : e(h);
|
|
@@ -429,8 +429,8 @@ function qr(t, n, e) {
|
|
|
429
429
|
}
|
|
430
430
|
function p(h) {
|
|
431
431
|
if ((h === 45 || J(h)) && r++ < 63) {
|
|
432
|
-
const
|
|
433
|
-
return t.consume(h),
|
|
432
|
+
const g = h === 45 ? p : o;
|
|
433
|
+
return t.consume(h), g;
|
|
434
434
|
}
|
|
435
435
|
return e(h);
|
|
436
436
|
}
|
|
@@ -465,7 +465,7 @@ const Cn = {
|
|
|
465
465
|
continuation: {
|
|
466
466
|
tokenize: $r
|
|
467
467
|
},
|
|
468
|
-
exit:
|
|
468
|
+
exit: vr
|
|
469
469
|
};
|
|
470
470
|
function Nr(t, n, e) {
|
|
471
471
|
const r = this;
|
|
@@ -498,14 +498,14 @@ function $r(t, n, e) {
|
|
|
498
498
|
return t.attempt(Cn, n, e)(u);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function vr(t) {
|
|
502
502
|
t.exit("blockQuote");
|
|
503
503
|
}
|
|
504
504
|
const An = {
|
|
505
505
|
name: "characterEscape",
|
|
506
|
-
tokenize:
|
|
506
|
+
tokenize: Ur
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function Ur(t, n, e) {
|
|
509
509
|
return r;
|
|
510
510
|
function r(l) {
|
|
511
511
|
return t.enter("characterEscape"), t.enter("escapeMarker"), t.consume(l), t.exit("escapeMarker"), i;
|
|
@@ -523,9 +523,9 @@ function Ce(t) {
|
|
|
523
523
|
}
|
|
524
524
|
const En = {
|
|
525
525
|
name: "characterReference",
|
|
526
|
-
tokenize:
|
|
526
|
+
tokenize: Wr
|
|
527
527
|
};
|
|
528
|
-
function
|
|
528
|
+
function Wr(t, n, e) {
|
|
529
529
|
const r = this;
|
|
530
530
|
let i = 0, l, u;
|
|
531
531
|
return a;
|
|
@@ -536,7 +536,7 @@ function vr(t, n, e) {
|
|
|
536
536
|
return o === 35 ? (t.enter("characterReferenceMarkerNumeric"), t.consume(o), t.exit("characterReferenceMarkerNumeric"), s) : (t.enter("characterReferenceValue"), l = 31, u = J, f(o));
|
|
537
537
|
}
|
|
538
538
|
function s(o) {
|
|
539
|
-
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u = Cr, f) : (t.enter("characterReferenceValue"), l = 7, u =
|
|
539
|
+
return o === 88 || o === 120 ? (t.enter("characterReferenceMarkerHexadecimal"), t.consume(o), t.exit("characterReferenceMarkerHexadecimal"), t.enter("characterReferenceValue"), l = 6, u = Cr, f) : (t.enter("characterReferenceValue"), l = 7, u = de, f(o));
|
|
540
540
|
}
|
|
541
541
|
function f(o) {
|
|
542
542
|
if (o === 59 && i) {
|
|
@@ -565,14 +565,14 @@ function Qr(t, n, e) {
|
|
|
565
565
|
return s(y);
|
|
566
566
|
}
|
|
567
567
|
function s(y) {
|
|
568
|
-
const
|
|
569
|
-
return l =
|
|
568
|
+
const L = r.events[r.events.length - 1];
|
|
569
|
+
return l = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, a = y, t.enter("codeFenced"), t.enter("codeFencedFence"), t.enter("codeFencedFenceSequence"), f(y);
|
|
570
570
|
}
|
|
571
571
|
function f(y) {
|
|
572
572
|
return y === a ? (u++, t.consume(y), f) : u < 3 ? e(y) : (t.exit("codeFencedFenceSequence"), B(y) ? P(t, o, "whitespace")(y) : o(y));
|
|
573
573
|
}
|
|
574
574
|
function o(y) {
|
|
575
|
-
return y === null || T(y) ? (t.exit("codeFencedFence"), r.interrupt ? n(y) : t.check(He, w,
|
|
575
|
+
return y === null || T(y) ? (t.exit("codeFencedFence"), r.interrupt ? n(y) : t.check(He, w, _)(y)) : (t.enter("codeFencedFenceInfo"), t.enter("chunkString", {
|
|
576
576
|
contentType: "string"
|
|
577
577
|
}), p(y));
|
|
578
578
|
}
|
|
@@ -582,13 +582,13 @@ function Qr(t, n, e) {
|
|
|
582
582
|
function h(y) {
|
|
583
583
|
return y === null || T(y) ? o(y) : (t.enter("codeFencedFenceMeta"), t.enter("chunkString", {
|
|
584
584
|
contentType: "string"
|
|
585
|
-
}),
|
|
585
|
+
}), g(y));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), o(y)) : y === 96 && y === a ? e(y) : (t.consume(y),
|
|
587
|
+
function g(y) {
|
|
588
|
+
return y === null || T(y) ? (t.exit("chunkString"), t.exit("codeFencedFenceMeta"), o(y)) : y === 96 && y === a ? e(y) : (t.consume(y), g);
|
|
589
589
|
}
|
|
590
590
|
function w(y) {
|
|
591
|
-
return t.attempt(i,
|
|
591
|
+
return t.attempt(i, _, C)(y);
|
|
592
592
|
}
|
|
593
593
|
function C(y) {
|
|
594
594
|
return t.enter("lineEnding"), t.consume(y), t.exit("lineEnding"), b;
|
|
@@ -602,15 +602,15 @@ function Qr(t, n, e) {
|
|
|
602
602
|
)(y) : I(y);
|
|
603
603
|
}
|
|
604
604
|
function I(y) {
|
|
605
|
-
return y === null || T(y) ? t.check(He, w,
|
|
605
|
+
return y === null || T(y) ? t.check(He, w, _)(y) : (t.enter("codeFlowValue"), F(y));
|
|
606
606
|
}
|
|
607
607
|
function F(y) {
|
|
608
608
|
return y === null || T(y) ? (t.exit("codeFlowValue"), I(y)) : (t.consume(y), F);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function _(y) {
|
|
611
611
|
return t.exit("codeFenced"), n(y);
|
|
612
612
|
}
|
|
613
|
-
function z(y,
|
|
613
|
+
function z(y, L, q) {
|
|
614
614
|
let $ = 0;
|
|
615
615
|
return k;
|
|
616
616
|
function k(M) {
|
|
@@ -631,7 +631,7 @@ function Qr(t, n, e) {
|
|
|
631
631
|
return M === a ? ($++, y.consume(M), R) : $ >= u ? (y.exit("codeFencedFenceSequence"), B(M) ? P(y, H, "whitespace")(M) : H(M)) : q(M);
|
|
632
632
|
}
|
|
633
633
|
function H(M) {
|
|
634
|
-
return M === null || T(M) ? (y.exit("codeFencedFence"),
|
|
634
|
+
return M === null || T(M) ? (y.exit("codeFencedFence"), L(M)) : q(M);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
}
|
|
@@ -747,7 +747,7 @@ function ni(t, n) {
|
|
|
747
747
|
const e = t[n][1], r = t[n][2];
|
|
748
748
|
let i = n - 1;
|
|
749
749
|
const l = [], u = e._tokenizer || r.parser[e.contentType](e.start), a = u.events, c = [], s = {};
|
|
750
|
-
let f, o, p = -1, h = e,
|
|
750
|
+
let f, o, p = -1, h = e, g = 0, w = 0;
|
|
751
751
|
const C = [w];
|
|
752
752
|
for (; h; ) {
|
|
753
753
|
for (; t[++i][1] !== h; )
|
|
@@ -762,7 +762,7 @@ function ni(t, n) {
|
|
|
762
762
|
c.unshift([I, I + b.length - 1]), X(t, I, 2, b);
|
|
763
763
|
}
|
|
764
764
|
for (p = -1; ++p < c.length; )
|
|
765
|
-
s[
|
|
765
|
+
s[g + c[p][0]] = g + c[p][1], g += c[p][1] - c[p][0] - 1;
|
|
766
766
|
return s;
|
|
767
767
|
}
|
|
768
768
|
const ri = {
|
|
@@ -818,7 +818,7 @@ function In(t, n, e, r, i, l, u, a, c) {
|
|
|
818
818
|
let f = 0;
|
|
819
819
|
return o;
|
|
820
820
|
function o(b) {
|
|
821
|
-
return b === 60 ? (t.enter(r), t.enter(i), t.enter(l), t.consume(b), t.exit(l), p) : b === null || b === 32 || b === 41 ||
|
|
821
|
+
return b === 60 ? (t.enter(r), t.enter(i), t.enter(l), t.consume(b), t.exit(l), p) : b === null || b === 32 || b === 41 || vt(b) ? e(b) : (t.enter(r), t.enter(u), t.enter(a), t.enter("chunkString", {
|
|
822
822
|
contentType: "string"
|
|
823
823
|
}), w(b));
|
|
824
824
|
}
|
|
@@ -828,13 +828,13 @@ function In(t, n, e, r, i, l, u, a, c) {
|
|
|
828
828
|
}), h(b));
|
|
829
829
|
}
|
|
830
830
|
function h(b) {
|
|
831
|
-
return b === 62 ? (t.exit("chunkString"), t.exit(a), p(b)) : b === null || b === 60 || T(b) ? e(b) : (t.consume(b), b === 92 ?
|
|
831
|
+
return b === 62 ? (t.exit("chunkString"), t.exit(a), p(b)) : b === null || b === 60 || T(b) ? e(b) : (t.consume(b), b === 92 ? g : h);
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function g(b) {
|
|
834
834
|
return b === 60 || b === 62 || b === 92 ? (t.consume(b), h) : h(b);
|
|
835
835
|
}
|
|
836
836
|
function w(b) {
|
|
837
|
-
return !f && (b === null || b === 41 || V(b)) ? (t.exit("chunkString"), t.exit(a), t.exit(u), t.exit(r), n(b)) : f < s && b === 40 ? (t.consume(b), f++, w) : b === 41 ? (t.consume(b), f--, w) : b === null || b === 32 || b === 40 ||
|
|
837
|
+
return !f && (b === null || b === 41 || V(b)) ? (t.exit("chunkString"), t.exit(a), t.exit(u), t.exit(r), n(b)) : f < s && b === 40 ? (t.consume(b), f++, w) : b === 41 ? (t.consume(b), f--, w) : b === null || b === 32 || b === 40 || vt(b) ? e(b) : (t.consume(b), b === 92 ? C : w);
|
|
838
838
|
}
|
|
839
839
|
function C(b) {
|
|
840
840
|
return b === 40 || b === 41 || b === 92 ? (t.consume(b), w) : w(b);
|
|
@@ -993,10 +993,10 @@ function pi(t, n, e) {
|
|
|
993
993
|
}
|
|
994
994
|
const mi = {
|
|
995
995
|
name: "headingAtx",
|
|
996
|
-
tokenize:
|
|
997
|
-
resolve:
|
|
996
|
+
tokenize: gi,
|
|
997
|
+
resolve: di
|
|
998
998
|
};
|
|
999
|
-
function
|
|
999
|
+
function di(t, n) {
|
|
1000
1000
|
let e = t.length - 2, r = 3, i, l;
|
|
1001
1001
|
return t[r][1].type === "whitespace" && (r += 2), e - 2 > r && t[e][1].type === "whitespace" && (e -= 2), t[e][1].type === "atxHeadingSequence" && (r === e - 1 || e - 4 > r && t[e - 2][1].type === "whitespace") && (e -= r + 1 === e ? 2 : 4), e > r && (i = {
|
|
1002
1002
|
type: "atxHeadingText",
|
|
@@ -1014,7 +1014,7 @@ function gi(t, n) {
|
|
|
1014
1014
|
["exit", i, n]
|
|
1015
1015
|
])), t;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function gi(t, n, e) {
|
|
1018
1018
|
let r = 0;
|
|
1019
1019
|
return i;
|
|
1020
1020
|
function i(f) {
|
|
@@ -1121,112 +1121,112 @@ function Fi(t, n, e) {
|
|
|
1121
1121
|
const r = this;
|
|
1122
1122
|
let i, l, u, a, c;
|
|
1123
1123
|
return s;
|
|
1124
|
-
function s(
|
|
1125
|
-
return f(
|
|
1124
|
+
function s(d) {
|
|
1125
|
+
return f(d);
|
|
1126
1126
|
}
|
|
1127
|
-
function f(
|
|
1128
|
-
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(
|
|
1127
|
+
function f(d) {
|
|
1128
|
+
return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(d), o;
|
|
1129
1129
|
}
|
|
1130
|
-
function o(
|
|
1131
|
-
return
|
|
1130
|
+
function o(d) {
|
|
1131
|
+
return d === 33 ? (t.consume(d), p) : d === 47 ? (t.consume(d), l = !0, w) : d === 63 ? (t.consume(d), i = 3, r.interrupt ? n : m) : G(d) ? (t.consume(d), u = String.fromCharCode(d), C) : e(d);
|
|
1132
1132
|
}
|
|
1133
|
-
function p(
|
|
1134
|
-
return
|
|
1133
|
+
function p(d) {
|
|
1134
|
+
return d === 45 ? (t.consume(d), i = 2, h) : d === 91 ? (t.consume(d), i = 5, a = 0, g) : G(d) ? (t.consume(d), i = 4, r.interrupt ? n : m) : e(d);
|
|
1135
1135
|
}
|
|
1136
|
-
function h(
|
|
1137
|
-
return
|
|
1136
|
+
function h(d) {
|
|
1137
|
+
return d === 45 ? (t.consume(d), r.interrupt ? n : m) : e(d);
|
|
1138
1138
|
}
|
|
1139
|
-
function d
|
|
1139
|
+
function g(d) {
|
|
1140
1140
|
const rt = "CDATA[";
|
|
1141
|
-
return
|
|
1141
|
+
return d === rt.charCodeAt(a++) ? (t.consume(d), a === rt.length ? r.interrupt ? n : E : g) : e(d);
|
|
1142
1142
|
}
|
|
1143
|
-
function w(
|
|
1144
|
-
return G(
|
|
1143
|
+
function w(d) {
|
|
1144
|
+
return G(d) ? (t.consume(d), u = String.fromCharCode(d), C) : e(d);
|
|
1145
1145
|
}
|
|
1146
|
-
function C(
|
|
1147
|
-
if (
|
|
1148
|
-
const rt =
|
|
1149
|
-
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(
|
|
1146
|
+
function C(d) {
|
|
1147
|
+
if (d === null || d === 47 || d === 62 || V(d)) {
|
|
1148
|
+
const rt = d === 47, Ct = u.toLowerCase();
|
|
1149
|
+
return !rt && !l && $e.includes(Ct) ? (i = 1, r.interrupt ? n(d) : E(d)) : ki.includes(u.toLowerCase()) ? (i = 6, rt ? (t.consume(d), b) : r.interrupt ? n(d) : E(d)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? e(d) : l ? I(d) : F(d));
|
|
1150
1150
|
}
|
|
1151
|
-
return
|
|
1151
|
+
return d === 45 || J(d) ? (t.consume(d), u += String.fromCharCode(d), C) : e(d);
|
|
1152
1152
|
}
|
|
1153
|
-
function b(
|
|
1154
|
-
return
|
|
1153
|
+
function b(d) {
|
|
1154
|
+
return d === 62 ? (t.consume(d), r.interrupt ? n : E) : e(d);
|
|
1155
1155
|
}
|
|
1156
|
-
function I(
|
|
1157
|
-
return B(
|
|
1156
|
+
function I(d) {
|
|
1157
|
+
return B(d) ? (t.consume(d), I) : k(d);
|
|
1158
1158
|
}
|
|
1159
|
-
function F(
|
|
1160
|
-
return
|
|
1159
|
+
function F(d) {
|
|
1160
|
+
return d === 47 ? (t.consume(d), k) : d === 58 || d === 95 || G(d) ? (t.consume(d), _) : B(d) ? (t.consume(d), F) : k(d);
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1162
|
+
function _(d) {
|
|
1163
|
+
return d === 45 || d === 46 || d === 58 || d === 95 || J(d) ? (t.consume(d), _) : z(d);
|
|
1164
1164
|
}
|
|
1165
|
-
function z(
|
|
1166
|
-
return
|
|
1165
|
+
function z(d) {
|
|
1166
|
+
return d === 61 ? (t.consume(d), y) : B(d) ? (t.consume(d), z) : F(d);
|
|
1167
1167
|
}
|
|
1168
|
-
function y(
|
|
1169
|
-
return
|
|
1168
|
+
function y(d) {
|
|
1169
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? e(d) : d === 34 || d === 39 ? (t.consume(d), c = d, L) : B(d) ? (t.consume(d), y) : q(d);
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return
|
|
1171
|
+
function L(d) {
|
|
1172
|
+
return d === c ? (t.consume(d), c = null, $) : d === null || T(d) ? e(d) : (t.consume(d), L);
|
|
1173
1173
|
}
|
|
1174
|
-
function q(
|
|
1175
|
-
return
|
|
1174
|
+
function q(d) {
|
|
1175
|
+
return d === null || d === 34 || d === 39 || d === 47 || d === 60 || d === 61 || d === 62 || d === 96 || V(d) ? z(d) : (t.consume(d), q);
|
|
1176
1176
|
}
|
|
1177
|
-
function $(
|
|
1178
|
-
return
|
|
1177
|
+
function $(d) {
|
|
1178
|
+
return d === 47 || d === 62 || B(d) ? F(d) : e(d);
|
|
1179
1179
|
}
|
|
1180
|
-
function k(
|
|
1181
|
-
return
|
|
1180
|
+
function k(d) {
|
|
1181
|
+
return d === 62 ? (t.consume(d), A) : e(d);
|
|
1182
1182
|
}
|
|
1183
|
-
function A(
|
|
1184
|
-
return
|
|
1183
|
+
function A(d) {
|
|
1184
|
+
return d === null || T(d) ? E(d) : B(d) ? (t.consume(d), A) : e(d);
|
|
1185
1185
|
}
|
|
1186
|
-
function E(
|
|
1187
|
-
return
|
|
1186
|
+
function E(d) {
|
|
1187
|
+
return d === 45 && i === 2 ? (t.consume(d), W) : d === 60 && i === 1 ? (t.consume(d), v) : d === 62 && i === 4 ? (t.consume(d), nt) : d === 63 && i === 3 ? (t.consume(d), m) : d === 93 && i === 5 ? (t.consume(d), ot) : T(d) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(
|
|
1188
1188
|
bi,
|
|
1189
1189
|
st,
|
|
1190
1190
|
R
|
|
1191
|
-
)(
|
|
1191
|
+
)(d)) : d === null || T(d) ? (t.exit("htmlFlowData"), R(d)) : (t.consume(d), E);
|
|
1192
1192
|
}
|
|
1193
|
-
function R(
|
|
1193
|
+
function R(d) {
|
|
1194
1194
|
return t.check(
|
|
1195
1195
|
yi,
|
|
1196
1196
|
H,
|
|
1197
1197
|
st
|
|
1198
|
-
)(
|
|
1198
|
+
)(d);
|
|
1199
1199
|
}
|
|
1200
|
-
function H(
|
|
1201
|
-
return t.enter("lineEnding"), t.consume(
|
|
1200
|
+
function H(d) {
|
|
1201
|
+
return t.enter("lineEnding"), t.consume(d), t.exit("lineEnding"), M;
|
|
1202
1202
|
}
|
|
1203
|
-
function M(
|
|
1204
|
-
return
|
|
1203
|
+
function M(d) {
|
|
1204
|
+
return d === null || T(d) ? R(d) : (t.enter("htmlFlowData"), E(d));
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return
|
|
1206
|
+
function W(d) {
|
|
1207
|
+
return d === 45 ? (t.consume(d), m) : E(d);
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
1209
|
+
function v(d) {
|
|
1210
|
+
return d === 47 ? (t.consume(d), u = "", et) : E(d);
|
|
1211
1211
|
}
|
|
1212
|
-
function et(
|
|
1213
|
-
if (
|
|
1212
|
+
function et(d) {
|
|
1213
|
+
if (d === 62) {
|
|
1214
1214
|
const rt = u.toLowerCase();
|
|
1215
|
-
return $e.includes(rt) ? (t.consume(
|
|
1215
|
+
return $e.includes(rt) ? (t.consume(d), nt) : E(d);
|
|
1216
1216
|
}
|
|
1217
|
-
return G(
|
|
1217
|
+
return G(d) && u.length < 8 ? (t.consume(d), u += String.fromCharCode(d), et) : E(d);
|
|
1218
1218
|
}
|
|
1219
|
-
function ot(
|
|
1220
|
-
return
|
|
1219
|
+
function ot(d) {
|
|
1220
|
+
return d === 93 ? (t.consume(d), m) : E(d);
|
|
1221
1221
|
}
|
|
1222
|
-
function m(
|
|
1223
|
-
return
|
|
1222
|
+
function m(d) {
|
|
1223
|
+
return d === 62 ? (t.consume(d), nt) : d === 45 && i === 2 ? (t.consume(d), m) : E(d);
|
|
1224
1224
|
}
|
|
1225
|
-
function nt(
|
|
1226
|
-
return
|
|
1225
|
+
function nt(d) {
|
|
1226
|
+
return d === null || T(d) ? (t.exit("htmlFlowData"), st(d)) : (t.consume(d), nt);
|
|
1227
1227
|
}
|
|
1228
|
-
function st(
|
|
1229
|
-
return t.exit("htmlFlow"), n(
|
|
1228
|
+
function st(d) {
|
|
1229
|
+
return t.exit("htmlFlow"), n(d);
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
function Si(t, n, e) {
|
|
@@ -1260,68 +1260,68 @@ function Ei(t, n, e) {
|
|
|
1260
1260
|
return m === 33 ? (t.consume(m), s) : m === 47 ? (t.consume(m), z) : m === 63 ? (t.consume(m), F) : G(m) ? (t.consume(m), q) : e(m);
|
|
1261
1261
|
}
|
|
1262
1262
|
function s(m) {
|
|
1263
|
-
return m === 45 ? (t.consume(m), f) : m === 91 ? (t.consume(m), l = 0,
|
|
1263
|
+
return m === 45 ? (t.consume(m), f) : m === 91 ? (t.consume(m), l = 0, g) : G(m) ? (t.consume(m), I) : e(m);
|
|
1264
1264
|
}
|
|
1265
1265
|
function f(m) {
|
|
1266
1266
|
return m === 45 ? (t.consume(m), h) : e(m);
|
|
1267
1267
|
}
|
|
1268
1268
|
function o(m) {
|
|
1269
|
-
return m === null ? e(m) : m === 45 ? (t.consume(m), p) : T(m) ? (u = o,
|
|
1269
|
+
return m === null ? e(m) : m === 45 ? (t.consume(m), p) : T(m) ? (u = o, v(m)) : (t.consume(m), o);
|
|
1270
1270
|
}
|
|
1271
1271
|
function p(m) {
|
|
1272
1272
|
return m === 45 ? (t.consume(m), h) : o(m);
|
|
1273
1273
|
}
|
|
1274
1274
|
function h(m) {
|
|
1275
|
-
return m === 62 ?
|
|
1275
|
+
return m === 62 ? W(m) : m === 45 ? p(m) : o(m);
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function g(m) {
|
|
1278
1278
|
const nt = "CDATA[";
|
|
1279
|
-
return m === nt.charCodeAt(l++) ? (t.consume(m), l === nt.length ? w :
|
|
1279
|
+
return m === nt.charCodeAt(l++) ? (t.consume(m), l === nt.length ? w : g) : e(m);
|
|
1280
1280
|
}
|
|
1281
1281
|
function w(m) {
|
|
1282
|
-
return m === null ? e(m) : m === 93 ? (t.consume(m), C) : T(m) ? (u = w,
|
|
1282
|
+
return m === null ? e(m) : m === 93 ? (t.consume(m), C) : T(m) ? (u = w, v(m)) : (t.consume(m), w);
|
|
1283
1283
|
}
|
|
1284
1284
|
function C(m) {
|
|
1285
1285
|
return m === 93 ? (t.consume(m), b) : w(m);
|
|
1286
1286
|
}
|
|
1287
1287
|
function b(m) {
|
|
1288
|
-
return m === 62 ?
|
|
1288
|
+
return m === 62 ? W(m) : m === 93 ? (t.consume(m), b) : w(m);
|
|
1289
1289
|
}
|
|
1290
1290
|
function I(m) {
|
|
1291
|
-
return m === null || m === 62 ?
|
|
1291
|
+
return m === null || m === 62 ? W(m) : T(m) ? (u = I, v(m)) : (t.consume(m), I);
|
|
1292
1292
|
}
|
|
1293
1293
|
function F(m) {
|
|
1294
|
-
return m === null ? e(m) : m === 63 ? (t.consume(m),
|
|
1294
|
+
return m === null ? e(m) : m === 63 ? (t.consume(m), _) : T(m) ? (u = F, v(m)) : (t.consume(m), F);
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return m === 62 ?
|
|
1296
|
+
function _(m) {
|
|
1297
|
+
return m === 62 ? W(m) : F(m);
|
|
1298
1298
|
}
|
|
1299
1299
|
function z(m) {
|
|
1300
1300
|
return G(m) ? (t.consume(m), y) : e(m);
|
|
1301
1301
|
}
|
|
1302
1302
|
function y(m) {
|
|
1303
|
-
return m === 45 || J(m) ? (t.consume(m), y) :
|
|
1303
|
+
return m === 45 || J(m) ? (t.consume(m), y) : L(m);
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1306
|
-
return T(m) ? (u =
|
|
1305
|
+
function L(m) {
|
|
1306
|
+
return T(m) ? (u = L, v(m)) : B(m) ? (t.consume(m), L) : W(m);
|
|
1307
1307
|
}
|
|
1308
1308
|
function q(m) {
|
|
1309
1309
|
return m === 45 || J(m) ? (t.consume(m), q) : m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1310
1310
|
}
|
|
1311
1311
|
function $(m) {
|
|
1312
|
-
return m === 47 ? (t.consume(m),
|
|
1312
|
+
return m === 47 ? (t.consume(m), W) : m === 58 || m === 95 || G(m) ? (t.consume(m), k) : T(m) ? (u = $, v(m)) : B(m) ? (t.consume(m), $) : W(m);
|
|
1313
1313
|
}
|
|
1314
1314
|
function k(m) {
|
|
1315
1315
|
return m === 45 || m === 46 || m === 58 || m === 95 || J(m) ? (t.consume(m), k) : A(m);
|
|
1316
1316
|
}
|
|
1317
1317
|
function A(m) {
|
|
1318
|
-
return m === 61 ? (t.consume(m), E) : T(m) ? (u = A,
|
|
1318
|
+
return m === 61 ? (t.consume(m), E) : T(m) ? (u = A, v(m)) : B(m) ? (t.consume(m), A) : $(m);
|
|
1319
1319
|
}
|
|
1320
1320
|
function E(m) {
|
|
1321
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? e(m) : m === 34 || m === 39 ? (t.consume(m), i = m, R) : T(m) ? (u = E,
|
|
1321
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? e(m) : m === 34 || m === 39 ? (t.consume(m), i = m, R) : T(m) ? (u = E, v(m)) : B(m) ? (t.consume(m), E) : (t.consume(m), H);
|
|
1322
1322
|
}
|
|
1323
1323
|
function R(m) {
|
|
1324
|
-
return m === i ? (t.consume(m), i = void 0, M) : m === null ? e(m) : T(m) ? (u = R,
|
|
1324
|
+
return m === i ? (t.consume(m), i = void 0, M) : m === null ? e(m) : T(m) ? (u = R, v(m)) : (t.consume(m), R);
|
|
1325
1325
|
}
|
|
1326
1326
|
function H(m) {
|
|
1327
1327
|
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? e(m) : m === 47 || m === 62 || V(m) ? $(m) : (t.consume(m), H);
|
|
@@ -1329,10 +1329,10 @@ function Ei(t, n, e) {
|
|
|
1329
1329
|
function M(m) {
|
|
1330
1330
|
return m === 47 || m === 62 || V(m) ? $(m) : e(m);
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function W(m) {
|
|
1333
1333
|
return m === 62 ? (t.consume(m), t.exit("htmlTextData"), t.exit("htmlText"), n) : e(m);
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function v(m) {
|
|
1336
1336
|
return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(m), t.exit("lineEnding"), et;
|
|
1337
1337
|
}
|
|
1338
1338
|
function et(m) {
|
|
@@ -1349,8 +1349,8 @@ function Ei(t, n, e) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
const Ae = {
|
|
1351
1351
|
name: "labelEnd",
|
|
1352
|
-
tokenize:
|
|
1353
|
-
resolveTo:
|
|
1352
|
+
tokenize: _i,
|
|
1353
|
+
resolveTo: Li,
|
|
1354
1354
|
resolveAll: Di
|
|
1355
1355
|
}, zi = {
|
|
1356
1356
|
tokenize: Bi
|
|
@@ -1367,7 +1367,7 @@ function Di(t) {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
return t;
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function Li(t, n) {
|
|
1371
1371
|
let e = t.length, r = 0, i, l, u, a;
|
|
1372
1372
|
for (; e--; )
|
|
1373
1373
|
if (i = t[e][1], l) {
|
|
@@ -1410,7 +1410,7 @@ function _i(t, n) {
|
|
|
1410
1410
|
["exit", s, n]
|
|
1411
1411
|
]), a = tt(a, t.slice(u + 1)), a = tt(a, [["exit", c, n]]), X(t, l, t.length, a), t;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function _i(t, n, e) {
|
|
1414
1414
|
const r = this;
|
|
1415
1415
|
let i = r.events.length, l, u;
|
|
1416
1416
|
for (; i--; )
|
|
@@ -1597,28 +1597,28 @@ function Hi(t, n, e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
const Y = {
|
|
1599
1599
|
name: "list",
|
|
1600
|
-
tokenize:
|
|
1600
|
+
tokenize: vi,
|
|
1601
1601
|
continuation: {
|
|
1602
|
-
tokenize:
|
|
1602
|
+
tokenize: Ui
|
|
1603
1603
|
},
|
|
1604
1604
|
exit: Qi
|
|
1605
1605
|
}, Ni = {
|
|
1606
1606
|
tokenize: Zi,
|
|
1607
1607
|
partial: !0
|
|
1608
1608
|
}, $i = {
|
|
1609
|
-
tokenize:
|
|
1609
|
+
tokenize: Wi,
|
|
1610
1610
|
partial: !0
|
|
1611
1611
|
};
|
|
1612
|
-
function
|
|
1612
|
+
function vi(t, n, e) {
|
|
1613
1613
|
const r = this, i = r.events[r.events.length - 1];
|
|
1614
1614
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, u = 0;
|
|
1615
1615
|
return a;
|
|
1616
1616
|
function a(h) {
|
|
1617
|
-
const
|
|
1618
|
-
if (
|
|
1619
|
-
if (r.containerState.type || (r.containerState.type =
|
|
1617
|
+
const g = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
1618
|
+
if (g === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : de(h)) {
|
|
1619
|
+
if (r.containerState.type || (r.containerState.type = g, t.enter(g, {
|
|
1620
1620
|
_container: !0
|
|
1621
|
-
})),
|
|
1621
|
+
})), g === "listUnordered")
|
|
1622
1622
|
return t.enter("listItemPrefix"), h === 42 || h === 45 ? t.check(qt, e, s)(h) : s(h);
|
|
1623
1623
|
if (!r.interrupt || h === 49)
|
|
1624
1624
|
return t.enter("listItemPrefix"), t.enter("listItemValue"), c(h);
|
|
@@ -1626,7 +1626,7 @@ function Ui(t, n, e) {
|
|
|
1626
1626
|
return e(h);
|
|
1627
1627
|
}
|
|
1628
1628
|
function c(h) {
|
|
1629
|
-
return
|
|
1629
|
+
return de(h) && ++u < 10 ? (t.consume(h), c) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (t.exit("listItemValue"), s(h)) : e(h);
|
|
1630
1630
|
}
|
|
1631
1631
|
function s(h) {
|
|
1632
1632
|
return t.enter("listItemMarker"), t.consume(h), t.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, t.check(
|
|
@@ -1650,7 +1650,7 @@ function Ui(t, n, e) {
|
|
|
1650
1650
|
return r.containerState.size = l + r.sliceSerialize(t.exit("listItemPrefix"), !0).length, n(h);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function Ui(t, n, e) {
|
|
1654
1654
|
const r = this;
|
|
1655
1655
|
return r.containerState._closeFlow = void 0, t.check(Ot, i, l);
|
|
1656
1656
|
function i(a) {
|
|
@@ -1673,7 +1673,7 @@ function Wi(t, n, e) {
|
|
|
1673
1673
|
)(a);
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Wi(t, n, e) {
|
|
1677
1677
|
const r = this;
|
|
1678
1678
|
return P(
|
|
1679
1679
|
t,
|
|
@@ -1702,7 +1702,7 @@ function Zi(t, n, e) {
|
|
|
1702
1702
|
return !B(l) && u && u[1].type === "listItemPrefixWhitespace" ? n(l) : e(l);
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
const
|
|
1705
|
+
const ve = {
|
|
1706
1706
|
name: "setextUnderline",
|
|
1707
1707
|
tokenize: Yi,
|
|
1708
1708
|
resolveTo: Gi
|
|
@@ -1886,40 +1886,40 @@ function nu(t, n, e) {
|
|
|
1886
1886
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
1887
1887
|
let l, u = 0, a;
|
|
1888
1888
|
return c;
|
|
1889
|
-
function c(
|
|
1890
|
-
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(
|
|
1889
|
+
function c(g) {
|
|
1890
|
+
return t.enter("gfmFootnoteDefinition")._container = !0, t.enter("gfmFootnoteDefinitionLabel"), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), s;
|
|
1891
1891
|
}
|
|
1892
|
-
function s(
|
|
1893
|
-
return
|
|
1892
|
+
function s(g) {
|
|
1893
|
+
return g === 94 ? (t.enter("gfmFootnoteDefinitionMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionMarker"), t.enter("gfmFootnoteDefinitionLabelString"), t.enter("chunkString").contentType = "string", f) : e(g);
|
|
1894
1894
|
}
|
|
1895
|
-
function f(
|
|
1895
|
+
function f(g) {
|
|
1896
1896
|
if (
|
|
1897
1897
|
// Too long.
|
|
1898
1898
|
u > 999 || // Closing brace with nothing.
|
|
1899
|
-
|
|
1899
|
+
g === 93 && !a || // Space or tab is not supported by GFM for some reason.
|
|
1900
1900
|
// `\n` and `[` not being supported makes sense.
|
|
1901
|
-
|
|
1901
|
+
g === null || g === 91 || V(g)
|
|
1902
1902
|
)
|
|
1903
|
-
return e(
|
|
1904
|
-
if (
|
|
1903
|
+
return e(g);
|
|
1904
|
+
if (g === 93) {
|
|
1905
1905
|
t.exit("chunkString");
|
|
1906
1906
|
const w = t.exit("gfmFootnoteDefinitionLabelString");
|
|
1907
|
-
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(
|
|
1907
|
+
return l = ut(r.sliceSerialize(w)), t.enter("gfmFootnoteDefinitionLabelMarker"), t.consume(g), t.exit("gfmFootnoteDefinitionLabelMarker"), t.exit("gfmFootnoteDefinitionLabel"), p;
|
|
1908
1908
|
}
|
|
1909
|
-
return V(
|
|
1909
|
+
return V(g) || (a = !0), u++, t.consume(g), g === 92 ? o : f;
|
|
1910
1910
|
}
|
|
1911
|
-
function o(
|
|
1912
|
-
return
|
|
1911
|
+
function o(g) {
|
|
1912
|
+
return g === 91 || g === 92 || g === 93 ? (t.consume(g), u++, f) : f(g);
|
|
1913
1913
|
}
|
|
1914
|
-
function p(
|
|
1915
|
-
return
|
|
1914
|
+
function p(g) {
|
|
1915
|
+
return g === 58 ? (t.enter("definitionMarker"), t.consume(g), t.exit("definitionMarker"), i.includes(l) || i.push(l), P(
|
|
1916
1916
|
t,
|
|
1917
1917
|
h,
|
|
1918
1918
|
"gfmFootnoteDefinitionWhitespace"
|
|
1919
|
-
)) : e(
|
|
1919
|
+
)) : e(g);
|
|
1920
1920
|
}
|
|
1921
|
-
function h(
|
|
1922
|
-
return n(
|
|
1921
|
+
function h(g) {
|
|
1922
|
+
return n(g);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
function ru(t, n, e) {
|
|
@@ -2003,16 +2003,16 @@ function lu(t) {
|
|
|
2003
2003
|
const s = this.previous, f = this.events;
|
|
2004
2004
|
let o = 0;
|
|
2005
2005
|
return p;
|
|
2006
|
-
function p(
|
|
2007
|
-
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(
|
|
2006
|
+
function p(g) {
|
|
2007
|
+
return s === 126 && f[f.length - 1][1].type !== "characterEscape" ? c(g) : (u.enter("strikethroughSequenceTemporary"), h(g));
|
|
2008
2008
|
}
|
|
2009
|
-
function h(
|
|
2010
|
-
const w =
|
|
2011
|
-
if (
|
|
2012
|
-
return o > 1 ? c(
|
|
2013
|
-
if (o < 2 && !e) return c(
|
|
2014
|
-
const C = u.exit("strikethroughSequenceTemporary"), b =
|
|
2015
|
-
return C._open = !b || b === 2 && !!w, C._close = !w || w === 2 && !!b, a(
|
|
2009
|
+
function h(g) {
|
|
2010
|
+
const w = Ut(s);
|
|
2011
|
+
if (g === 126)
|
|
2012
|
+
return o > 1 ? c(g) : (u.consume(g), o++, h);
|
|
2013
|
+
if (o < 2 && !e) return c(g);
|
|
2014
|
+
const C = u.exit("strikethroughSequenceTemporary"), b = Ut(g);
|
|
2015
|
+
return C._open = !b || b === 2 && !!w, C._close = !w || w === 2 && !!b, a(g);
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
@@ -2143,19 +2143,19 @@ function fu(t, n, e) {
|
|
|
2143
2143
|
function h(k) {
|
|
2144
2144
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? e(k) : (t.enter("tableDelimiterRow"), u = !1, B(k) ? P(
|
|
2145
2145
|
t,
|
|
2146
|
-
|
|
2146
|
+
g,
|
|
2147
2147
|
"linePrefix",
|
|
2148
2148
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
2149
|
-
)(k) :
|
|
2149
|
+
)(k) : g(k));
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function g(k) {
|
|
2152
2152
|
return k === 45 || k === 58 ? C(k) : k === 124 ? (u = !0, t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"), w) : z(k);
|
|
2153
2153
|
}
|
|
2154
2154
|
function w(k) {
|
|
2155
2155
|
return B(k) ? P(t, C, "whitespace")(k) : C(k);
|
|
2156
2156
|
}
|
|
2157
2157
|
function C(k) {
|
|
2158
|
-
return k === 58 ? (l += 1, u = !0, t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), b) : k === 45 ? (l += 1, b(k)) : k === null || T(k) ?
|
|
2158
|
+
return k === 58 ? (l += 1, u = !0, t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), b) : k === 45 ? (l += 1, b(k)) : k === null || T(k) ? _(k) : z(k);
|
|
2159
2159
|
}
|
|
2160
2160
|
function b(k) {
|
|
2161
2161
|
return k === 45 ? (t.enter("tableDelimiterFiller"), I(k)) : z(k);
|
|
@@ -2164,22 +2164,22 @@ function fu(t, n, e) {
|
|
|
2164
2164
|
return k === 45 ? (t.consume(k), I) : k === 58 ? (u = !0, t.exit("tableDelimiterFiller"), t.enter("tableDelimiterMarker"), t.consume(k), t.exit("tableDelimiterMarker"), F) : (t.exit("tableDelimiterFiller"), F(k));
|
|
2165
2165
|
}
|
|
2166
2166
|
function F(k) {
|
|
2167
|
-
return B(k) ? P(t,
|
|
2167
|
+
return B(k) ? P(t, _, "whitespace")(k) : _(k);
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
return k === 124 ?
|
|
2169
|
+
function _(k) {
|
|
2170
|
+
return k === 124 ? g(k) : k === null || T(k) ? !u || i !== l ? z(k) : (t.exit("tableDelimiterRow"), t.exit("tableHead"), n(k)) : z(k);
|
|
2171
2171
|
}
|
|
2172
2172
|
function z(k) {
|
|
2173
2173
|
return e(k);
|
|
2174
2174
|
}
|
|
2175
2175
|
function y(k) {
|
|
2176
|
-
return t.enter("tableRow"),
|
|
2176
|
+
return t.enter("tableRow"), L(k);
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return k === 124 ? (t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"),
|
|
2178
|
+
function L(k) {
|
|
2179
|
+
return k === 124 ? (t.enter("tableCellDivider"), t.consume(k), t.exit("tableCellDivider"), L) : k === null || T(k) ? (t.exit("tableRow"), n(k)) : B(k) ? P(t, L, "whitespace")(k) : (t.enter("data"), q(k));
|
|
2180
2180
|
}
|
|
2181
2181
|
function q(k) {
|
|
2182
|
-
return k === null || k === 124 || V(k) ? (t.exit("data"),
|
|
2182
|
+
return k === null || k === 124 || V(k) ? (t.exit("data"), L(k)) : (t.consume(k), k === 92 ? $ : q);
|
|
2183
2183
|
}
|
|
2184
2184
|
function $(k) {
|
|
2185
2185
|
return k === 92 || k === 124 ? (t.consume(k), q) : q(k);
|
|
@@ -2189,41 +2189,41 @@ function hu(t, n) {
|
|
|
2189
2189
|
let e = -1, r = !0, i = 0, l = [0, 0, 0, 0], u = [0, 0, 0, 0], a = !1, c = 0, s, f, o;
|
|
2190
2190
|
const p = new au();
|
|
2191
2191
|
for (; ++e < t.length; ) {
|
|
2192
|
-
const h = t[e],
|
|
2193
|
-
h[0] === "enter" ?
|
|
2192
|
+
const h = t[e], g = h[1];
|
|
2193
|
+
h[0] === "enter" ? g.type === "tableHead" ? (a = !1, c !== 0 && (Ue(p, n, c, s, f), f = void 0, c = 0), s = {
|
|
2194
2194
|
type: "table",
|
|
2195
|
-
start: Object.assign({},
|
|
2195
|
+
start: Object.assign({}, g.start),
|
|
2196
2196
|
// Note: correct end is set later.
|
|
2197
|
-
end: Object.assign({},
|
|
2198
|
-
}, p.add(e, 0, [["enter", s, n]])) :
|
|
2197
|
+
end: Object.assign({}, g.end)
|
|
2198
|
+
}, p.add(e, 0, [["enter", s, n]])) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (r = !0, o = void 0, l = [0, 0, 0, 0], u = [0, e + 1, 0, 0], a && (a = !1, f = {
|
|
2199
2199
|
type: "tableBody",
|
|
2200
|
-
start: Object.assign({},
|
|
2200
|
+
start: Object.assign({}, g.start),
|
|
2201
2201
|
// Note: correct end is set later.
|
|
2202
|
-
end: Object.assign({},
|
|
2203
|
-
}, p.add(e, 0, [["enter", f, n]])), i =
|
|
2202
|
+
end: Object.assign({}, g.end)
|
|
2203
|
+
}, p.add(e, 0, [["enter", f, n]])), i = g.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") ? (r = !1, u[2] === 0 && (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2204
2204
|
p,
|
|
2205
2205
|
n,
|
|
2206
2206
|
l,
|
|
2207
2207
|
i,
|
|
2208
2208
|
void 0,
|
|
2209
2209
|
o
|
|
2210
|
-
), l = [0, 0, 0, 0]), u[2] = e)) :
|
|
2210
|
+
), l = [0, 0, 0, 0]), u[2] = e)) : g.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (u[0] = u[1], o = jt(
|
|
2211
2211
|
p,
|
|
2212
2212
|
n,
|
|
2213
2213
|
l,
|
|
2214
2214
|
i,
|
|
2215
2215
|
void 0,
|
|
2216
2216
|
o
|
|
2217
|
-
)), l = u, u = [l[1], e, 0, 0])) :
|
|
2217
|
+
)), l = u, u = [l[1], e, 0, 0])) : g.type === "tableHead" ? (a = !0, c = e) : g.type === "tableRow" || g.type === "tableDelimiterRow" ? (c = e, l[1] !== 0 ? (u[0] = u[1], o = jt(
|
|
2218
2218
|
p,
|
|
2219
2219
|
n,
|
|
2220
2220
|
l,
|
|
2221
2221
|
i,
|
|
2222
2222
|
e,
|
|
2223
2223
|
o
|
|
2224
|
-
)) : u[1] !== 0 && (o = jt(p, n, u, i, e, o)), i = 0) : i && (
|
|
2224
|
+
)) : u[1] !== 0 && (o = jt(p, n, u, i, e, o)), i = 0) : i && (g.type === "data" || g.type === "tableDelimiterMarker" || g.type === "tableDelimiterFiller") && (u[3] = e);
|
|
2225
2225
|
}
|
|
2226
|
-
for (c !== 0 &&
|
|
2226
|
+
for (c !== 0 && Ue(p, n, c, s, f), p.consume(n.events), e = -1; ++e < n.events.length; ) {
|
|
2227
2227
|
const h = n.events[e];
|
|
2228
2228
|
h[0] === "enter" && h[1].type === "table" && (h[1]._align = su(n.events, e));
|
|
2229
2229
|
}
|
|
@@ -2247,15 +2247,15 @@ function jt(t, n, e, r, i, l) {
|
|
|
2247
2247
|
if (t.add(e[2], 0, [["enter", o, n]]), r !== 2) {
|
|
2248
2248
|
const p = n.events[e[2]], h = n.events[e[3]];
|
|
2249
2249
|
if (p[1].end = Object.assign({}, h[1].end), p[1].type = "chunkText", p[1].contentType = "text", e[3] > e[2] + 1) {
|
|
2250
|
-
const
|
|
2251
|
-
t.add(
|
|
2250
|
+
const g = e[2] + 1, w = e[3] - e[2] - 1;
|
|
2251
|
+
t.add(g, w, []);
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
2254
|
t.add(e[3] + 1, 0, [["exit", o, n]]);
|
|
2255
2255
|
}
|
|
2256
2256
|
return i !== void 0 && (l.end = Object.assign({}, It(n.events, i)), t.add(i, 0, [["exit", l, n]]), l = void 0), l;
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function Ue(t, n, e, r, i) {
|
|
2259
2259
|
const l = [], u = It(n.events, e);
|
|
2260
2260
|
i && (i.end = Object.assign({}, u), l.push(["exit", i, n])), r.end = Object.assign({}, u), l.push(["exit", r, n]), t.add(e + 1, 0, l);
|
|
2261
2261
|
}
|
|
@@ -2264,13 +2264,13 @@ function It(t, n) {
|
|
|
2264
2264
|
return e[1][r];
|
|
2265
2265
|
}
|
|
2266
2266
|
const pu = {
|
|
2267
|
-
tokenize:
|
|
2267
|
+
tokenize: du
|
|
2268
2268
|
}, mu = {
|
|
2269
2269
|
text: {
|
|
2270
2270
|
91: pu
|
|
2271
2271
|
}
|
|
2272
2272
|
};
|
|
2273
|
-
function
|
|
2273
|
+
function du(t, n, e) {
|
|
2274
2274
|
const r = this;
|
|
2275
2275
|
return i;
|
|
2276
2276
|
function i(c) {
|
|
@@ -2290,21 +2290,21 @@ function gu(t, n, e) {
|
|
|
2290
2290
|
function a(c) {
|
|
2291
2291
|
return T(c) ? n(c) : B(c) ? t.check(
|
|
2292
2292
|
{
|
|
2293
|
-
tokenize:
|
|
2293
|
+
tokenize: gu
|
|
2294
2294
|
},
|
|
2295
2295
|
n,
|
|
2296
2296
|
e
|
|
2297
2297
|
)(c) : e(c);
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function gu(t, n, e) {
|
|
2301
2301
|
return P(t, r, "whitespace");
|
|
2302
2302
|
function r(i) {
|
|
2303
2303
|
return i === null ? e(i) : n(i);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
2306
|
function ku(t) {
|
|
2307
|
-
return
|
|
2307
|
+
return dn([
|
|
2308
2308
|
Ir,
|
|
2309
2309
|
Ki(),
|
|
2310
2310
|
lu(t),
|
|
@@ -2312,7 +2312,7 @@ function ku(t) {
|
|
|
2312
2312
|
mu
|
|
2313
2313
|
]);
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function We(t, n) {
|
|
2316
2316
|
const e = String(t);
|
|
2317
2317
|
if (typeof n != "string")
|
|
2318
2318
|
throw new TypeError("Expected character");
|
|
@@ -2419,14 +2419,14 @@ const Su = !0, Qe = !1, Cu = "skip", Au = (
|
|
|
2419
2419
|
}
|
|
2420
2420
|
return o;
|
|
2421
2421
|
function o() {
|
|
2422
|
-
let p = [], h,
|
|
2422
|
+
let p = [], h, g, w;
|
|
2423
2423
|
if (i(a, c, s[s.length - 1] || null) && (p = Eu(e(a, s)), p[0] === Qe))
|
|
2424
2424
|
return p;
|
|
2425
2425
|
if (a.children && p[0] !== Cu)
|
|
2426
|
-
for (
|
|
2427
|
-
if (h = u(a.children[
|
|
2426
|
+
for (g = -1 + l, w = s.concat(a); g > -1 && g < a.children.length; ) {
|
|
2427
|
+
if (h = u(a.children[g], g, w)(), h[0] === Qe)
|
|
2428
2428
|
return h;
|
|
2429
|
-
|
|
2429
|
+
g = typeof h[1] == "number" ? h[1] : g + l;
|
|
2430
2430
|
}
|
|
2431
2431
|
return p;
|
|
2432
2432
|
}
|
|
@@ -2460,42 +2460,42 @@ const zu = {}.hasOwnProperty, Iu = (
|
|
|
2460
2460
|
Au(t, "text", s);
|
|
2461
2461
|
return t;
|
|
2462
2462
|
function s(o, p) {
|
|
2463
|
-
let h = -1,
|
|
2463
|
+
let h = -1, g;
|
|
2464
2464
|
for (; ++h < p.length; ) {
|
|
2465
2465
|
const w = p[h];
|
|
2466
2466
|
if (u(
|
|
2467
2467
|
w,
|
|
2468
2468
|
// @ts-expect-error: TS doesn’t understand but it’s perfect.
|
|
2469
|
-
|
|
2470
|
-
|
|
2469
|
+
g ? g.children.indexOf(w) : void 0,
|
|
2470
|
+
g
|
|
2471
2471
|
))
|
|
2472
2472
|
return;
|
|
2473
|
-
|
|
2473
|
+
g = w;
|
|
2474
2474
|
}
|
|
2475
|
-
if (
|
|
2475
|
+
if (g)
|
|
2476
2476
|
return f(o, p);
|
|
2477
2477
|
}
|
|
2478
2478
|
function f(o, p) {
|
|
2479
|
-
const h = p[p.length - 1],
|
|
2479
|
+
const h = p[p.length - 1], g = a[c][0], w = a[c][1];
|
|
2480
2480
|
let C = 0;
|
|
2481
2481
|
const b = h.children.indexOf(o);
|
|
2482
2482
|
let I = !1, F = [];
|
|
2483
|
-
|
|
2484
|
-
let
|
|
2485
|
-
for (;
|
|
2486
|
-
const z =
|
|
2487
|
-
index:
|
|
2488
|
-
input:
|
|
2483
|
+
g.lastIndex = 0;
|
|
2484
|
+
let _ = g.exec(o.value);
|
|
2485
|
+
for (; _; ) {
|
|
2486
|
+
const z = _.index, y = {
|
|
2487
|
+
index: _.index,
|
|
2488
|
+
input: _.input,
|
|
2489
2489
|
// @ts-expect-error: stack is fine.
|
|
2490
2490
|
stack: [...p, o]
|
|
2491
2491
|
};
|
|
2492
|
-
let
|
|
2493
|
-
if (typeof
|
|
2492
|
+
let L = w(..._, y);
|
|
2493
|
+
if (typeof L == "string" && (L = L.length > 0 ? { type: "text", value: L } : void 0), L !== !1 && (C !== z && F.push({
|
|
2494
2494
|
type: "text",
|
|
2495
2495
|
value: o.value.slice(C, z)
|
|
2496
|
-
}), Array.isArray(
|
|
2496
|
+
}), Array.isArray(L) ? F.push(...L) : L && F.push(L), C = z + _[0].length, I = !0), !g.global)
|
|
2497
2497
|
break;
|
|
2498
|
-
|
|
2498
|
+
_ = g.exec(o.value);
|
|
2499
2499
|
}
|
|
2500
2500
|
return I ? (C < o.value.length && F.push({ type: "text", value: o.value.slice(C) }), h.children.splice(b, 1, ...F)) : F = [o], b + F.length;
|
|
2501
2501
|
}
|
|
@@ -2528,7 +2528,7 @@ function Ge(t) {
|
|
|
2528
2528
|
const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
2529
2529
|
transforms: [Ru],
|
|
2530
2530
|
enter: {
|
|
2531
|
-
literalAutolink:
|
|
2531
|
+
literalAutolink: _u,
|
|
2532
2532
|
literalAutolinkEmail: ie,
|
|
2533
2533
|
literalAutolinkHttp: ie,
|
|
2534
2534
|
literalAutolinkWww: ie
|
|
@@ -2539,7 +2539,7 @@ const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
|
2539
2539
|
literalAutolinkHttp: Bu,
|
|
2540
2540
|
literalAutolinkWww: Pu
|
|
2541
2541
|
}
|
|
2542
|
-
},
|
|
2542
|
+
}, Lu = {
|
|
2543
2543
|
unsafe: [
|
|
2544
2544
|
{
|
|
2545
2545
|
character: "@",
|
|
@@ -2558,7 +2558,7 @@ const ne = "phrasing", re = ["autolink", "link", "image", "label"], Du = {
|
|
|
2558
2558
|
{ character: ":", before: "[ps]", after: "\\/", inConstruct: ne, notInConstruct: re }
|
|
2559
2559
|
]
|
|
2560
2560
|
};
|
|
2561
|
-
function
|
|
2561
|
+
function _u(t) {
|
|
2562
2562
|
this.enter({ type: "link", title: null, url: "", children: [] }, t);
|
|
2563
2563
|
}
|
|
2564
2564
|
function ie(t) {
|
|
@@ -2593,7 +2593,7 @@ function Ru(t) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
function ju(t, n, e, r, i) {
|
|
2595
2595
|
let l = "";
|
|
2596
|
-
if (!
|
|
2596
|
+
if (!Ln(i) || (/^w/i.test(n) && (e = n + e, n = "", l = "http://"), !qu(e)))
|
|
2597
2597
|
return !1;
|
|
2598
2598
|
const u = Hu(e + r);
|
|
2599
2599
|
if (!u[0]) return !1;
|
|
@@ -2608,7 +2608,7 @@ function ju(t, n, e, r, i) {
|
|
|
2608
2608
|
function Vu(t, n, e, r) {
|
|
2609
2609
|
return (
|
|
2610
2610
|
// Not an expected previous character.
|
|
2611
|
-
!
|
|
2611
|
+
!Ln(r, !0) || // Label ends in not allowed character.
|
|
2612
2612
|
/[-\d_]$/.test(e) ? !1 : {
|
|
2613
2613
|
type: "link",
|
|
2614
2614
|
title: null,
|
|
@@ -2627,17 +2627,17 @@ function Hu(t) {
|
|
|
2627
2627
|
return [t, void 0];
|
|
2628
2628
|
t = t.slice(0, n.index);
|
|
2629
2629
|
let e = n[0], r = e.indexOf(")");
|
|
2630
|
-
const i =
|
|
2631
|
-
let l =
|
|
2630
|
+
const i = We(t, "(");
|
|
2631
|
+
let l = We(t, ")");
|
|
2632
2632
|
for (; r !== -1 && i > l; )
|
|
2633
2633
|
t += e.slice(0, r + 1), e = e.slice(r + 1), r = e.indexOf(")"), l++;
|
|
2634
2634
|
return [t, e];
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function Ln(t, n) {
|
|
2637
2637
|
const e = t.input.charCodeAt(t.index - 1);
|
|
2638
2638
|
return (t.index === 0 || St(e) || Qt(e)) && (!n || e !== 47);
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function _n(t, n) {
|
|
2641
2641
|
const e = Number.parseInt(t, n);
|
|
2642
2642
|
return (
|
|
2643
2643
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -2657,14 +2657,14 @@ function $u(t, n, e) {
|
|
|
2657
2657
|
return n;
|
|
2658
2658
|
if (e.charCodeAt(0) === 35) {
|
|
2659
2659
|
const i = e.charCodeAt(1), l = i === 120 || i === 88;
|
|
2660
|
-
return
|
|
2660
|
+
return _n(e.slice(l ? 2 : 1), l ? 16 : 10);
|
|
2661
2661
|
}
|
|
2662
2662
|
return Ce(e) || t;
|
|
2663
2663
|
}
|
|
2664
2664
|
function Pn(t) {
|
|
2665
2665
|
return t.label || !t.identifier ? t.label || "" : Bn(t.identifier);
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function vu(t, n, e) {
|
|
2668
2668
|
const r = n.indexStack, i = t.children || [], l = n.createTracker(e), u = [];
|
|
2669
2669
|
let a = -1;
|
|
2670
2670
|
for (r.push(-1); ++a < i.length; ) {
|
|
@@ -2680,12 +2680,12 @@ function Uu(t, n, e) {
|
|
|
2680
2680
|
})
|
|
2681
2681
|
)
|
|
2682
2682
|
), c.type !== "list" && (n.bulletLastUsed = void 0), a < i.length - 1 && u.push(
|
|
2683
|
-
l.move(
|
|
2683
|
+
l.move(Uu(c, i[a + 1], t, n))
|
|
2684
2684
|
);
|
|
2685
2685
|
}
|
|
2686
2686
|
return r.pop(), u.join("");
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function Uu(t, n, e, r) {
|
|
2689
2689
|
let i = r.join.length;
|
|
2690
2690
|
for (; i--; ) {
|
|
2691
2691
|
const l = r.join[i](t, n, e, r);
|
|
@@ -2705,11 +2705,11 @@ function Wu(t, n, e, r) {
|
|
|
2705
2705
|
|
|
2706
2706
|
`;
|
|
2707
2707
|
}
|
|
2708
|
-
const
|
|
2708
|
+
const Wu = /\r?\n|\r/g;
|
|
2709
2709
|
function Qu(t, n) {
|
|
2710
2710
|
const e = [];
|
|
2711
2711
|
let r = 0, i = 0, l;
|
|
2712
|
-
for (; l =
|
|
2712
|
+
for (; l = Wu.exec(t); )
|
|
2713
2713
|
u(t.slice(r, l.index)), e.push(l[0]), r = l.index + l[0].length, i++;
|
|
2714
2714
|
return u(t.slice(r)), e.join("");
|
|
2715
2715
|
function u(a) {
|
|
@@ -2748,8 +2748,8 @@ function On(t, n, e) {
|
|
|
2748
2748
|
const o = Mn(f);
|
|
2749
2749
|
let p;
|
|
2750
2750
|
for (; p = o.exec(r); ) {
|
|
2751
|
-
const h = "before" in f || !!f.atBreak,
|
|
2752
|
-
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !
|
|
2751
|
+
const h = "before" in f || !!f.atBreak, g = "after" in f, w = p.index + (h ? p[1].length : 0);
|
|
2752
|
+
i.includes(w) ? (u[w].before && !h && (u[w].before = !1), u[w].after && !g && (u[w].after = !1)) : (i.push(w), u[w] = { before: h, after: g });
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
i.sort(Gu);
|
|
@@ -2881,7 +2881,7 @@ function al(t, n, e, r) {
|
|
|
2881
2881
|
), a(), l += i.move(
|
|
2882
2882
|
"]:" + (t.children && t.children.length > 0 ? " " : "")
|
|
2883
2883
|
), i.shift(4), l += i.move(
|
|
2884
|
-
Qu(
|
|
2884
|
+
Qu(vu(t, e, i.current()), ol)
|
|
2885
2885
|
), u(), l;
|
|
2886
2886
|
}
|
|
2887
2887
|
function ol(t, n, e) {
|
|
@@ -2961,7 +2961,7 @@ function Vn(t, n, e, r) {
|
|
|
2961
2961
|
function ml() {
|
|
2962
2962
|
return "~";
|
|
2963
2963
|
}
|
|
2964
|
-
qn.peek =
|
|
2964
|
+
qn.peek = dl;
|
|
2965
2965
|
function qn(t, n, e) {
|
|
2966
2966
|
let r = t.value || "", i = "`", l = -1;
|
|
2967
2967
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -2977,14 +2977,14 @@ function qn(t, n, e) {
|
|
|
2977
2977
|
}
|
|
2978
2978
|
return i + r + i;
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function dl() {
|
|
2981
2981
|
return "`";
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function gl(t) {
|
|
2984
2984
|
return t.length;
|
|
2985
2985
|
}
|
|
2986
2986
|
function kl(t, n) {
|
|
2987
|
-
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength ||
|
|
2987
|
+
const e = n || {}, r = (e.align || []).concat(), i = e.stringLength || gl, l = [], u = [], a = [], c = [];
|
|
2988
2988
|
let s = 0, f = -1;
|
|
2989
2989
|
for (; ++f < t.length; ) {
|
|
2990
2990
|
const w = [], C = [];
|
|
@@ -3022,27 +3022,27 @@ function kl(t, n) {
|
|
|
3022
3022
|
e.alignDelimiters !== !1 && (I = C.length + I + b.length, I > c[o] && (c[o] = I), h[o] = I), p[o] = F;
|
|
3023
3023
|
}
|
|
3024
3024
|
u.splice(1, 0, p), a.splice(1, 0, h), f = -1;
|
|
3025
|
-
const
|
|
3025
|
+
const g = [];
|
|
3026
3026
|
for (; ++f < u.length; ) {
|
|
3027
3027
|
const w = u[f], C = a[f];
|
|
3028
3028
|
o = -1;
|
|
3029
3029
|
const b = [];
|
|
3030
3030
|
for (; ++o < s; ) {
|
|
3031
3031
|
const I = w[o] || "";
|
|
3032
|
-
let F = "",
|
|
3032
|
+
let F = "", _ = "";
|
|
3033
3033
|
if (e.alignDelimiters !== !1) {
|
|
3034
3034
|
const z = c[o] - (C[o] || 0), y = l[o];
|
|
3035
|
-
y === 114 ? F = " ".repeat(z) : y === 99 ? z % 2 ? (F = " ".repeat(z / 2 + 0.5),
|
|
3035
|
+
y === 114 ? F = " ".repeat(z) : y === 99 ? z % 2 ? (F = " ".repeat(z / 2 + 0.5), _ = " ".repeat(z / 2 - 0.5)) : (F = " ".repeat(z / 2), _ = F) : _ = " ".repeat(z);
|
|
3036
3036
|
}
|
|
3037
3037
|
e.delimiterStart !== !1 && !o && b.push("|"), e.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
3038
3038
|
// empty: there will be a closing space.
|
|
3039
|
-
!(e.alignDelimiters === !1 && I === "") && (e.delimiterStart !== !1 || o) && b.push(" "), e.alignDelimiters !== !1 && b.push(F), b.push(I), e.alignDelimiters !== !1 && b.push(
|
|
3039
|
+
!(e.alignDelimiters === !1 && I === "") && (e.delimiterStart !== !1 || o) && b.push(" "), e.alignDelimiters !== !1 && b.push(F), b.push(I), e.alignDelimiters !== !1 && b.push(_), e.padding !== !1 && b.push(" "), (e.delimiterEnd !== !1 || o !== s - 1) && b.push("|");
|
|
3040
3040
|
}
|
|
3041
|
-
|
|
3041
|
+
g.push(
|
|
3042
3042
|
e.delimiterEnd === !1 ? b.join("").replace(/ +$/, "") : b.join("")
|
|
3043
3043
|
);
|
|
3044
3044
|
}
|
|
3045
|
-
return
|
|
3045
|
+
return g.join(`
|
|
3046
3046
|
`);
|
|
3047
3047
|
}
|
|
3048
3048
|
function xl(t) {
|
|
@@ -3131,18 +3131,18 @@ function Al(t) {
|
|
|
3131
3131
|
inlineCode: p
|
|
3132
3132
|
}
|
|
3133
3133
|
};
|
|
3134
|
-
function u(h,
|
|
3134
|
+
function u(h, g, w, C) {
|
|
3135
3135
|
return s(
|
|
3136
3136
|
f(h, w, C),
|
|
3137
3137
|
h.align
|
|
3138
3138
|
);
|
|
3139
3139
|
}
|
|
3140
|
-
function a(h,
|
|
3140
|
+
function a(h, g, w, C) {
|
|
3141
3141
|
const b = o(h, w, C), I = s([b]);
|
|
3142
3142
|
return I.slice(0, I.indexOf(`
|
|
3143
3143
|
`));
|
|
3144
3144
|
}
|
|
3145
|
-
function c(h,
|
|
3145
|
+
function c(h, g, w, C) {
|
|
3146
3146
|
const b = w.enter("tableCell"), I = w.enter("phrasing"), F = jn(h, w, {
|
|
3147
3147
|
...C,
|
|
3148
3148
|
before: l,
|
|
@@ -3150,9 +3150,9 @@ function Al(t) {
|
|
|
3150
3150
|
});
|
|
3151
3151
|
return I(), b(), F;
|
|
3152
3152
|
}
|
|
3153
|
-
function s(h,
|
|
3153
|
+
function s(h, g) {
|
|
3154
3154
|
return kl(h, {
|
|
3155
|
-
align:
|
|
3155
|
+
align: g,
|
|
3156
3156
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
3157
3157
|
alignDelimiters: r,
|
|
3158
3158
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
@@ -3161,33 +3161,33 @@ function Al(t) {
|
|
|
3161
3161
|
stringLength: i
|
|
3162
3162
|
});
|
|
3163
3163
|
}
|
|
3164
|
-
function f(h,
|
|
3164
|
+
function f(h, g, w) {
|
|
3165
3165
|
const C = h.children;
|
|
3166
3166
|
let b = -1;
|
|
3167
|
-
const I = [], F =
|
|
3167
|
+
const I = [], F = g.enter("table");
|
|
3168
3168
|
for (; ++b < C.length; )
|
|
3169
3169
|
I[b] = o(
|
|
3170
3170
|
C[b],
|
|
3171
|
-
|
|
3171
|
+
g,
|
|
3172
3172
|
w
|
|
3173
3173
|
);
|
|
3174
3174
|
return F(), I;
|
|
3175
3175
|
}
|
|
3176
|
-
function o(h,
|
|
3176
|
+
function o(h, g, w) {
|
|
3177
3177
|
const C = h.children;
|
|
3178
3178
|
let b = -1;
|
|
3179
|
-
const I = [], F =
|
|
3179
|
+
const I = [], F = g.enter("tableRow");
|
|
3180
3180
|
for (; ++b < C.length; )
|
|
3181
3181
|
I[b] = c(
|
|
3182
3182
|
C[b],
|
|
3183
3183
|
h,
|
|
3184
|
-
|
|
3184
|
+
g,
|
|
3185
3185
|
w
|
|
3186
3186
|
);
|
|
3187
3187
|
return F(), I;
|
|
3188
3188
|
}
|
|
3189
|
-
function p(h,
|
|
3190
|
-
let C = qn(h,
|
|
3189
|
+
function p(h, g, w) {
|
|
3190
|
+
let C = qn(h, g, w);
|
|
3191
3191
|
return w.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
3192
3192
|
}
|
|
3193
3193
|
}
|
|
@@ -3230,11 +3230,11 @@ const Tl = {
|
|
|
3230
3230
|
exit: {
|
|
3231
3231
|
taskListCheckValueChecked: tn,
|
|
3232
3232
|
taskListCheckValueUnchecked: tn,
|
|
3233
|
-
paragraph:
|
|
3233
|
+
paragraph: Ll
|
|
3234
3234
|
}
|
|
3235
3235
|
}, Dl = {
|
|
3236
3236
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
3237
|
-
handlers: { listItem:
|
|
3237
|
+
handlers: { listItem: _l }
|
|
3238
3238
|
};
|
|
3239
3239
|
function tn(t) {
|
|
3240
3240
|
const n = (
|
|
@@ -3243,7 +3243,7 @@ function tn(t) {
|
|
|
3243
3243
|
);
|
|
3244
3244
|
n.checked = t.type === "taskListCheckValueChecked";
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function Ll(t) {
|
|
3247
3247
|
const n = (
|
|
3248
3248
|
/** @type {Parents} */
|
|
3249
3249
|
this.stack[this.stack.length - 2]
|
|
@@ -3268,7 +3268,7 @@ function _l(t) {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
this.exit(t);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3271
|
+
function _l(t, n, e, r) {
|
|
3272
3272
|
const i = t.children[0], l = typeof t.checked == "boolean" && i && i.type === "paragraph", u = "[" + (t.checked ? "x" : " ") + "] ", a = Yt(r);
|
|
3273
3273
|
l && a.move(u);
|
|
3274
3274
|
let c = Il(t, n, e, {
|
|
@@ -3292,7 +3292,7 @@ function Bl() {
|
|
|
3292
3292
|
function Pl(t) {
|
|
3293
3293
|
return {
|
|
3294
3294
|
extensions: [
|
|
3295
|
-
|
|
3295
|
+
Lu,
|
|
3296
3296
|
Ju(),
|
|
3297
3297
|
fl,
|
|
3298
3298
|
Al(t),
|
|
@@ -3349,11 +3349,11 @@ function Rl() {
|
|
|
3349
3349
|
return s[f];
|
|
3350
3350
|
};
|
|
3351
3351
|
return le = function c() {
|
|
3352
|
-
var s, f, o, p, h,
|
|
3352
|
+
var s, f, o, p, h, g, w = arguments[0], C = 1, b = arguments.length, I = !1;
|
|
3353
3353
|
for (typeof w == "boolean" && (I = w, w = arguments[1] || {}, C = 2), (w == null || typeof w != "object" && typeof w != "function") && (w = {}); C < b; ++C)
|
|
3354
3354
|
if (s = arguments[C], s != null)
|
|
3355
3355
|
for (f in s)
|
|
3356
|
-
o = a(w, f), p = a(s, f), w !== p && (I && p && (l(p) || (h = i(p))) ? (h ? (h = !1,
|
|
3356
|
+
o = a(w, f), p = a(s, f), w !== p && (I && p && (l(p) || (h = i(p))) ? (h ? (h = !1, g = o && i(o) ? o : []) : g = o && l(o) ? o : {}, u(w, { name: f, newValue: c(I, g, p) })) : typeof p < "u" && u(w, { name: f, newValue: p }));
|
|
3357
3357
|
return w;
|
|
3358
3358
|
}, le;
|
|
3359
3359
|
}
|
|
@@ -3520,7 +3520,7 @@ K.prototype.fatal = void 0;
|
|
|
3520
3520
|
K.prototype.place = void 0;
|
|
3521
3521
|
K.prototype.ruleId = void 0;
|
|
3522
3522
|
K.prototype.source = void 0;
|
|
3523
|
-
const lt = { basename: Nl, dirname: $l, extname:
|
|
3523
|
+
const lt = { basename: Nl, dirname: $l, extname: vl, join: Ul, sep: "/" };
|
|
3524
3524
|
function Nl(t, n) {
|
|
3525
3525
|
if (n !== void 0 && typeof n != "string")
|
|
3526
3526
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -3562,7 +3562,7 @@ function $l(t) {
|
|
|
3562
3562
|
} else r || (r = !0);
|
|
3563
3563
|
return n < 0 ? t.codePointAt(0) === 47 ? "/" : "." : n === 1 && t.codePointAt(0) === 47 ? "//" : t.slice(0, n);
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3565
|
+
function vl(t) {
|
|
3566
3566
|
Rt(t);
|
|
3567
3567
|
let n = t.length, e = -1, r = 0, i = -1, l = 0, u;
|
|
3568
3568
|
for (; n--; ) {
|
|
@@ -3580,13 +3580,13 @@ function Ul(t) {
|
|
|
3580
3580
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
3581
3581
|
l === 1 && i === e - 1 && i === r + 1 ? "" : t.slice(i, e);
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function Ul(...t) {
|
|
3584
3584
|
let n = -1, e;
|
|
3585
3585
|
for (; ++n < t.length; )
|
|
3586
3586
|
Rt(t[n]), t[n] && (e = e === void 0 ? t[n] : e + "/" + t[n]);
|
|
3587
|
-
return e === void 0 ? "." :
|
|
3587
|
+
return e === void 0 ? "." : Wl(e);
|
|
3588
3588
|
}
|
|
3589
|
-
function
|
|
3589
|
+
function Wl(t) {
|
|
3590
3590
|
Rt(t);
|
|
3591
3591
|
const n = t.codePointAt(0) === 47;
|
|
3592
3592
|
let e = Ql(t, !n);
|
|
@@ -4297,8 +4297,8 @@ class ze extends ta {
|
|
|
4297
4297
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
4298
4298
|
/** @type {unknown} */
|
|
4299
4299
|
o
|
|
4300
|
-
),
|
|
4301
|
-
ia(
|
|
4300
|
+
), g = r.stringify(h, p);
|
|
4301
|
+
ia(g) ? p.value = g : p.result = g, s(
|
|
4302
4302
|
f,
|
|
4303
4303
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
4304
4304
|
p
|
|
@@ -4567,9 +4567,9 @@ class ze extends ta {
|
|
|
4567
4567
|
if (p === -1)
|
|
4568
4568
|
r.push([s, ...f]);
|
|
4569
4569
|
else if (f.length > 0) {
|
|
4570
|
-
let [h, ...
|
|
4570
|
+
let [h, ...g] = f;
|
|
4571
4571
|
const w = r[p][1];
|
|
4572
|
-
xe(w) && xe(h) && (h = ae(!0, w, h)), r[p] = [s, h, ...
|
|
4572
|
+
xe(w) && xe(h) && (h = ae(!0, w, h)), r[p] = [s, h, ...g];
|
|
4573
4573
|
}
|
|
4574
4574
|
}
|
|
4575
4575
|
}
|
|
@@ -4684,9 +4684,9 @@ function ha(t) {
|
|
|
4684
4684
|
return a;
|
|
4685
4685
|
function a(F) {
|
|
4686
4686
|
if (r < e.length) {
|
|
4687
|
-
const
|
|
4688
|
-
return n.containerState =
|
|
4689
|
-
|
|
4687
|
+
const _ = e[r];
|
|
4688
|
+
return n.containerState = _[1], t.attempt(
|
|
4689
|
+
_[0].continuation,
|
|
4690
4690
|
c,
|
|
4691
4691
|
s
|
|
4692
4692
|
)(F);
|
|
@@ -4696,23 +4696,23 @@ function ha(t) {
|
|
|
4696
4696
|
function c(F) {
|
|
4697
4697
|
if (r++, n.containerState._closeFlow) {
|
|
4698
4698
|
n.containerState._closeFlow = void 0, i && I();
|
|
4699
|
-
const
|
|
4700
|
-
let z =
|
|
4699
|
+
const _ = n.events.length;
|
|
4700
|
+
let z = _, y;
|
|
4701
4701
|
for (; z--; )
|
|
4702
4702
|
if (n.events[z][0] === "exit" && n.events[z][1].type === "chunkFlow") {
|
|
4703
4703
|
y = n.events[z][1].end;
|
|
4704
4704
|
break;
|
|
4705
4705
|
}
|
|
4706
4706
|
b(r);
|
|
4707
|
-
let
|
|
4708
|
-
for (;
|
|
4709
|
-
n.events[
|
|
4707
|
+
let L = _;
|
|
4708
|
+
for (; L < n.events.length; )
|
|
4709
|
+
n.events[L][1].end = Object.assign({}, y), L++;
|
|
4710
4710
|
return X(
|
|
4711
4711
|
n.events,
|
|
4712
4712
|
z + 1,
|
|
4713
4713
|
0,
|
|
4714
|
-
n.events.slice(
|
|
4715
|
-
), n.events.length =
|
|
4714
|
+
n.events.slice(_)
|
|
4715
|
+
), n.events.length = L, s(F);
|
|
4716
4716
|
}
|
|
4717
4717
|
return a(F);
|
|
4718
4718
|
}
|
|
@@ -4721,7 +4721,7 @@ function ha(t) {
|
|
|
4721
4721
|
if (!i)
|
|
4722
4722
|
return p(F);
|
|
4723
4723
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
4724
|
-
return
|
|
4724
|
+
return g(F);
|
|
4725
4725
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
4726
4726
|
}
|
|
4727
4727
|
return n.containerState = {}, t.check(
|
|
@@ -4734,19 +4734,19 @@ function ha(t) {
|
|
|
4734
4734
|
return i && I(), b(r), p(F);
|
|
4735
4735
|
}
|
|
4736
4736
|
function o(F) {
|
|
4737
|
-
return n.parser.lazy[n.now().line] = r !== e.length, u = n.now().offset,
|
|
4737
|
+
return n.parser.lazy[n.now().line] = r !== e.length, u = n.now().offset, g(F);
|
|
4738
4738
|
}
|
|
4739
4739
|
function p(F) {
|
|
4740
4740
|
return n.containerState = {}, t.attempt(
|
|
4741
4741
|
cn,
|
|
4742
4742
|
h,
|
|
4743
|
-
|
|
4743
|
+
g
|
|
4744
4744
|
)(F);
|
|
4745
4745
|
}
|
|
4746
4746
|
function h(F) {
|
|
4747
4747
|
return r++, e.push([n.currentConstruct, n.containerState]), p(F);
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4749
|
+
function g(F) {
|
|
4750
4750
|
if (F === null) {
|
|
4751
4751
|
i && I(), b(0), t.consume(F);
|
|
4752
4752
|
return;
|
|
@@ -4764,9 +4764,9 @@ function ha(t) {
|
|
|
4764
4764
|
}
|
|
4765
4765
|
return T(F) ? (t.consume(F), C(t.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (t.consume(F), w);
|
|
4766
4766
|
}
|
|
4767
|
-
function C(F,
|
|
4767
|
+
function C(F, _) {
|
|
4768
4768
|
const z = n.sliceStream(F);
|
|
4769
|
-
if (
|
|
4769
|
+
if (_ && z.push(null), F.previous = l, l && (l.next = F), l = F, i.defineSkip(F.start), i.write(z), n.parser.lazy[F.start.line]) {
|
|
4770
4770
|
let y = i.events.length;
|
|
4771
4771
|
for (; y--; )
|
|
4772
4772
|
if (
|
|
@@ -4776,8 +4776,8 @@ function ha(t) {
|
|
|
4776
4776
|
i.events[y][1].end.offset > u)
|
|
4777
4777
|
)
|
|
4778
4778
|
return;
|
|
4779
|
-
const
|
|
4780
|
-
let q =
|
|
4779
|
+
const L = n.events.length;
|
|
4780
|
+
let q = L, $, k;
|
|
4781
4781
|
for (; q--; )
|
|
4782
4782
|
if (n.events[q][0] === "exit" && n.events[q][1].type === "chunkFlow") {
|
|
4783
4783
|
if ($) {
|
|
@@ -4786,20 +4786,20 @@ function ha(t) {
|
|
|
4786
4786
|
}
|
|
4787
4787
|
$ = !0;
|
|
4788
4788
|
}
|
|
4789
|
-
for (b(r), y =
|
|
4789
|
+
for (b(r), y = L; y < n.events.length; )
|
|
4790
4790
|
n.events[y][1].end = Object.assign({}, k), y++;
|
|
4791
4791
|
X(
|
|
4792
4792
|
n.events,
|
|
4793
4793
|
q + 1,
|
|
4794
4794
|
0,
|
|
4795
|
-
n.events.slice(
|
|
4795
|
+
n.events.slice(L)
|
|
4796
4796
|
), n.events.length = y;
|
|
4797
4797
|
}
|
|
4798
4798
|
}
|
|
4799
4799
|
function b(F) {
|
|
4800
|
-
let
|
|
4801
|
-
for (;
|
|
4802
|
-
const z = e[
|
|
4800
|
+
let _ = e.length;
|
|
4801
|
+
for (; _-- > F; ) {
|
|
4802
|
+
const z = e[_];
|
|
4803
4803
|
n.containerState = z[1], z[0].exit.call(n, t);
|
|
4804
4804
|
}
|
|
4805
4805
|
e.length = F;
|
|
@@ -4817,9 +4817,9 @@ function pa(t, n, e) {
|
|
|
4817
4817
|
);
|
|
4818
4818
|
}
|
|
4819
4819
|
const ma = {
|
|
4820
|
-
tokenize:
|
|
4820
|
+
tokenize: da
|
|
4821
4821
|
};
|
|
4822
|
-
function
|
|
4822
|
+
function da(t) {
|
|
4823
4823
|
const n = this, e = t.attempt(
|
|
4824
4824
|
// Try to parse a blank line.
|
|
4825
4825
|
Ot,
|
|
@@ -4855,7 +4855,7 @@ function ga(t) {
|
|
|
4855
4855
|
return t.enter("lineEnding"), t.consume(l), t.exit("lineEnding"), n.currentConstruct = void 0, e;
|
|
4856
4856
|
}
|
|
4857
4857
|
}
|
|
4858
|
-
const
|
|
4858
|
+
const ga = {
|
|
4859
4859
|
resolveAll: $n()
|
|
4860
4860
|
}, ka = Nn("string"), xa = Nn("text");
|
|
4861
4861
|
function Nn(t) {
|
|
@@ -4965,10 +4965,10 @@ function ya(t, n, e) {
|
|
|
4965
4965
|
const c = {
|
|
4966
4966
|
consume: I,
|
|
4967
4967
|
enter: F,
|
|
4968
|
-
exit:
|
|
4969
|
-
attempt:
|
|
4970
|
-
check:
|
|
4971
|
-
interrupt:
|
|
4968
|
+
exit: _,
|
|
4969
|
+
attempt: L(z),
|
|
4970
|
+
check: L(y),
|
|
4971
|
+
interrupt: L(y, {
|
|
4972
4972
|
interrupt: !0
|
|
4973
4973
|
})
|
|
4974
4974
|
}, s = {
|
|
@@ -4979,7 +4979,7 @@ function ya(t, n, e) {
|
|
|
4979
4979
|
parser: t,
|
|
4980
4980
|
sliceStream: h,
|
|
4981
4981
|
sliceSerialize: p,
|
|
4982
|
-
now:
|
|
4982
|
+
now: g,
|
|
4983
4983
|
defineSkip: w,
|
|
4984
4984
|
write: o
|
|
4985
4985
|
};
|
|
@@ -4994,7 +4994,7 @@ function ya(t, n, e) {
|
|
|
4994
4994
|
function h(A) {
|
|
4995
4995
|
return wa(u, A);
|
|
4996
4996
|
}
|
|
4997
|
-
function
|
|
4997
|
+
function g() {
|
|
4998
4998
|
const { line: A, column: E, offset: R, _index: H, _bufferIndex: M } = r;
|
|
4999
4999
|
return {
|
|
5000
5000
|
line: A,
|
|
@@ -5026,11 +5026,11 @@ function ya(t, n, e) {
|
|
|
5026
5026
|
}
|
|
5027
5027
|
function F(A, E) {
|
|
5028
5028
|
const R = E || {};
|
|
5029
|
-
return R.type = A, R.start =
|
|
5029
|
+
return R.type = A, R.start = g(), s.events.push(["enter", R, s]), a.push(R), R;
|
|
5030
5030
|
}
|
|
5031
|
-
function
|
|
5031
|
+
function _(A) {
|
|
5032
5032
|
const E = a.pop();
|
|
5033
|
-
return E.end =
|
|
5033
|
+
return E.end = g(), s.events.push(["exit", E, s]), E;
|
|
5034
5034
|
}
|
|
5035
5035
|
function z(A, E) {
|
|
5036
5036
|
q(A, E.from);
|
|
@@ -5038,33 +5038,33 @@ function ya(t, n, e) {
|
|
|
5038
5038
|
function y(A, E) {
|
|
5039
5039
|
E.restore();
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5041
|
+
function L(A, E) {
|
|
5042
5042
|
return R;
|
|
5043
|
-
function R(H, M,
|
|
5044
|
-
let
|
|
5043
|
+
function R(H, M, W) {
|
|
5044
|
+
let v, et, ot, m;
|
|
5045
5045
|
return Array.isArray(H) ? st(H) : "tokenize" in H ? (
|
|
5046
5046
|
// @ts-expect-error Looks like a construct.
|
|
5047
5047
|
st([H])
|
|
5048
5048
|
) : nt(H);
|
|
5049
|
-
function nt(
|
|
5049
|
+
function nt(U) {
|
|
5050
5050
|
return At;
|
|
5051
|
-
function At(
|
|
5052
|
-
const Et =
|
|
5051
|
+
function At(dt) {
|
|
5052
|
+
const Et = dt !== null && U[dt], zt = dt !== null && U.null, Jt = [
|
|
5053
5053
|
// To do: add more extension tests.
|
|
5054
5054
|
/* c8 ignore next 2 */
|
|
5055
5055
|
...Array.isArray(Et) ? Et : Et ? [Et] : [],
|
|
5056
5056
|
...Array.isArray(zt) ? zt : zt ? [zt] : []
|
|
5057
5057
|
];
|
|
5058
|
-
return st(Jt)(
|
|
5058
|
+
return st(Jt)(dt);
|
|
5059
5059
|
}
|
|
5060
5060
|
}
|
|
5061
|
-
function st(
|
|
5062
|
-
return
|
|
5061
|
+
function st(U) {
|
|
5062
|
+
return v = U, et = 0, U.length === 0 ? W : d(U[et]);
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function d(U) {
|
|
5065
5065
|
return At;
|
|
5066
|
-
function At(
|
|
5067
|
-
return m = $(), ot =
|
|
5066
|
+
function At(dt) {
|
|
5067
|
+
return m = $(), ot = U, U.partial || (s.currentConstruct = U), U.name && s.parser.constructs.disable.null.includes(U.name) ? Ct() : U.tokenize.call(
|
|
5068
5068
|
// If we do have fields, create an object w/ `context` as its
|
|
5069
5069
|
// prototype.
|
|
5070
5070
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -5072,14 +5072,14 @@ function ya(t, n, e) {
|
|
|
5072
5072
|
c,
|
|
5073
5073
|
rt,
|
|
5074
5074
|
Ct
|
|
5075
|
-
)(
|
|
5075
|
+
)(dt);
|
|
5076
5076
|
}
|
|
5077
5077
|
}
|
|
5078
|
-
function rt(
|
|
5078
|
+
function rt(U) {
|
|
5079
5079
|
return A(ot, m), M;
|
|
5080
5080
|
}
|
|
5081
|
-
function Ct(
|
|
5082
|
-
return m.restore(), ++et <
|
|
5081
|
+
function Ct(U) {
|
|
5082
|
+
return m.restore(), ++et < v.length ? d(v[et]) : W;
|
|
5083
5083
|
}
|
|
5084
5084
|
}
|
|
5085
5085
|
}
|
|
@@ -5092,12 +5092,12 @@ function ya(t, n, e) {
|
|
|
5092
5092
|
), A.resolveTo && (s.events = A.resolveTo(s.events, s));
|
|
5093
5093
|
}
|
|
5094
5094
|
function $() {
|
|
5095
|
-
const A =
|
|
5095
|
+
const A = g(), E = s.previous, R = s.currentConstruct, H = s.events.length, M = Array.from(a);
|
|
5096
5096
|
return {
|
|
5097
|
-
restore:
|
|
5097
|
+
restore: W,
|
|
5098
5098
|
from: H
|
|
5099
5099
|
};
|
|
5100
|
-
function
|
|
5100
|
+
function W() {
|
|
5101
5101
|
r = A, s.previous = E, s.currentConstruct = R, s.events.length = H, a = M, k();
|
|
5102
5102
|
}
|
|
5103
5103
|
}
|
|
@@ -5184,9 +5184,9 @@ const Sa = {
|
|
|
5184
5184
|
}, Ea = {
|
|
5185
5185
|
35: mi,
|
|
5186
5186
|
42: qt,
|
|
5187
|
-
45: [
|
|
5187
|
+
45: [ve, qt],
|
|
5188
5188
|
60: xi,
|
|
5189
|
-
61:
|
|
5189
|
+
61: ve,
|
|
5190
5190
|
95: qt,
|
|
5191
5191
|
96: Ne,
|
|
5192
5192
|
126: Ne
|
|
@@ -5207,16 +5207,16 @@ const Sa = {
|
|
|
5207
5207
|
95: ke,
|
|
5208
5208
|
96: Kr
|
|
5209
5209
|
}, Ta = {
|
|
5210
|
-
null: [ke,
|
|
5210
|
+
null: [ke, ga]
|
|
5211
5211
|
}, Da = {
|
|
5212
5212
|
null: [42, 95]
|
|
5213
|
-
},
|
|
5213
|
+
}, La = {
|
|
5214
5214
|
null: []
|
|
5215
|
-
},
|
|
5215
|
+
}, _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5216
5216
|
__proto__: null,
|
|
5217
5217
|
attentionMarkers: Da,
|
|
5218
5218
|
contentInitial: Ca,
|
|
5219
|
-
disable:
|
|
5219
|
+
disable: La,
|
|
5220
5220
|
document: Sa,
|
|
5221
5221
|
flow: Ea,
|
|
5222
5222
|
flowInitial: Aa,
|
|
@@ -5227,7 +5227,7 @@ const Sa = {
|
|
|
5227
5227
|
function Ba(t) {
|
|
5228
5228
|
const e = (
|
|
5229
5229
|
/** @type {FullNormalizedExtension} */
|
|
5230
|
-
|
|
5230
|
+
dn([_a, ...(t || {}).extensions || []])
|
|
5231
5231
|
), r = {
|
|
5232
5232
|
defined: [],
|
|
5233
5233
|
lazy: {},
|
|
@@ -5299,7 +5299,7 @@ function hn(t) {
|
|
|
5299
5299
|
function pn(t) {
|
|
5300
5300
|
return t && typeof t == "number" ? t : 1;
|
|
5301
5301
|
}
|
|
5302
|
-
const
|
|
5302
|
+
const vn = {}.hasOwnProperty, Oa = (
|
|
5303
5303
|
/**
|
|
5304
5304
|
* @type {(
|
|
5305
5305
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
|
@@ -5325,7 +5325,7 @@ function Ra(t) {
|
|
|
5325
5325
|
transforms: [],
|
|
5326
5326
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
5327
5327
|
enter: {
|
|
5328
|
-
autolink: a(
|
|
5328
|
+
autolink: a(_e),
|
|
5329
5329
|
autolinkProtocol: A,
|
|
5330
5330
|
autolinkEmail: A,
|
|
5331
5331
|
atxHeading: a(Te),
|
|
@@ -5347,15 +5347,15 @@ function Ra(t) {
|
|
|
5347
5347
|
emphasis: a(Yn),
|
|
5348
5348
|
hardBreakEscape: a(De),
|
|
5349
5349
|
hardBreakTrailing: a(De),
|
|
5350
|
-
htmlFlow: a(
|
|
5350
|
+
htmlFlow: a(Le, c),
|
|
5351
5351
|
htmlFlowData: A,
|
|
5352
|
-
htmlText: a(
|
|
5352
|
+
htmlText: a(Le, c),
|
|
5353
5353
|
htmlTextData: A,
|
|
5354
5354
|
image: a(Jn),
|
|
5355
5355
|
label: c,
|
|
5356
|
-
link: a(
|
|
5356
|
+
link: a(_e),
|
|
5357
5357
|
listItem: a(Kn),
|
|
5358
|
-
listItemValue:
|
|
5358
|
+
listItemValue: g,
|
|
5359
5359
|
listOrdered: a(Be, h),
|
|
5360
5360
|
listUnordered: a(Be),
|
|
5361
5361
|
paragraph: a(Xn),
|
|
@@ -5369,7 +5369,7 @@ function Ra(t) {
|
|
|
5369
5369
|
},
|
|
5370
5370
|
exit: {
|
|
5371
5371
|
atxHeading: f(),
|
|
5372
|
-
atxHeadingSequence:
|
|
5372
|
+
atxHeadingSequence: L,
|
|
5373
5373
|
autolink: f(),
|
|
5374
5374
|
autolinkEmail: zt,
|
|
5375
5375
|
autolinkProtocol: Et,
|
|
@@ -5377,26 +5377,26 @@ function Ra(t) {
|
|
|
5377
5377
|
characterEscapeValue: E,
|
|
5378
5378
|
characterReferenceMarkerHexadecimal: At,
|
|
5379
5379
|
characterReferenceMarkerNumeric: At,
|
|
5380
|
-
characterReferenceValue:
|
|
5380
|
+
characterReferenceValue: dt,
|
|
5381
5381
|
codeFenced: f(I),
|
|
5382
5382
|
codeFencedFence: b,
|
|
5383
5383
|
codeFencedFenceInfo: w,
|
|
5384
5384
|
codeFencedFenceMeta: C,
|
|
5385
5385
|
codeFlowValue: E,
|
|
5386
5386
|
codeIndented: f(F),
|
|
5387
|
-
codeText: f(
|
|
5387
|
+
codeText: f(v),
|
|
5388
5388
|
codeTextData: E,
|
|
5389
5389
|
data: E,
|
|
5390
5390
|
definition: f(),
|
|
5391
5391
|
definitionDestinationString: y,
|
|
5392
|
-
definitionLabelString:
|
|
5392
|
+
definitionLabelString: _,
|
|
5393
5393
|
definitionTitleString: z,
|
|
5394
5394
|
emphasis: f(),
|
|
5395
5395
|
hardBreakEscape: f(H),
|
|
5396
5396
|
hardBreakTrailing: f(H),
|
|
5397
5397
|
htmlFlow: f(M),
|
|
5398
5398
|
htmlFlowData: E,
|
|
5399
|
-
htmlText: f(
|
|
5399
|
+
htmlText: f(W),
|
|
5400
5400
|
htmlTextData: E,
|
|
5401
5401
|
image: f(ot),
|
|
5402
5402
|
label: nt,
|
|
@@ -5407,9 +5407,9 @@ function Ra(t) {
|
|
|
5407
5407
|
listOrdered: f(),
|
|
5408
5408
|
listUnordered: f(),
|
|
5409
5409
|
paragraph: f(),
|
|
5410
|
-
referenceString:
|
|
5410
|
+
referenceString: U,
|
|
5411
5411
|
resourceDestinationString: st,
|
|
5412
|
-
resourceTitleString:
|
|
5412
|
+
resourceTitleString: d,
|
|
5413
5413
|
resource: rt,
|
|
5414
5414
|
setextHeading: f(k),
|
|
5415
5415
|
setextHeadingLineSequence: $,
|
|
@@ -5418,7 +5418,7 @@ function Ra(t) {
|
|
|
5418
5418
|
thematicBreak: f()
|
|
5419
5419
|
}
|
|
5420
5420
|
};
|
|
5421
|
-
|
|
5421
|
+
Un(n, (t || {}).mdastExtensions || []);
|
|
5422
5422
|
const e = {};
|
|
5423
5423
|
return r;
|
|
5424
5424
|
function r(x) {
|
|
@@ -5448,7 +5448,7 @@ function Ra(t) {
|
|
|
5448
5448
|
}
|
|
5449
5449
|
for (j = -1; ++j < x.length; ) {
|
|
5450
5450
|
const it = n[x[j][0]];
|
|
5451
|
-
|
|
5451
|
+
vn.call(it, x[j][1].type) && it[x[j][1].type].call(
|
|
5452
5452
|
Object.assign(
|
|
5453
5453
|
{
|
|
5454
5454
|
sliceSerialize: x[j][2].sliceSerialize
|
|
@@ -5482,11 +5482,11 @@ function Ra(t) {
|
|
|
5482
5482
|
return S;
|
|
5483
5483
|
}
|
|
5484
5484
|
function i(x, S, D) {
|
|
5485
|
-
let O = S - 1, j = -1, it = !1,
|
|
5485
|
+
let O = S - 1, j = -1, it = !1, gt, ct, Lt, _t;
|
|
5486
5486
|
for (; ++O <= D; ) {
|
|
5487
5487
|
const N = x[O];
|
|
5488
|
-
if (N[1].type === "listUnordered" || N[1].type === "listOrdered" || N[1].type === "blockQuote" ? (N[0] === "enter" ? j++ : j--,
|
|
5489
|
-
if (
|
|
5488
|
+
if (N[1].type === "listUnordered" || N[1].type === "listOrdered" || N[1].type === "blockQuote" ? (N[0] === "enter" ? j++ : j--, _t = void 0) : N[1].type === "lineEndingBlank" ? N[0] === "enter" && (gt && !_t && !j && !Lt && (Lt = O), _t = void 0) : N[1].type === "linePrefix" || N[1].type === "listItemValue" || N[1].type === "listItemMarker" || N[1].type === "listItemPrefix" || N[1].type === "listItemPrefixWhitespace" || (_t = void 0), !j && N[0] === "enter" && N[1].type === "listItemPrefix" || j === -1 && N[0] === "exit" && (N[1].type === "listUnordered" || N[1].type === "listOrdered")) {
|
|
5489
|
+
if (gt) {
|
|
5490
5490
|
let Kt = O;
|
|
5491
5491
|
for (ct = void 0; Kt--; ) {
|
|
5492
5492
|
const ft = x[Kt];
|
|
@@ -5495,18 +5495,18 @@ function Ra(t) {
|
|
|
5495
5495
|
ct && (x[ct][1].type = "lineEndingBlank", it = !0), ft[1].type = "lineEnding", ct = Kt;
|
|
5496
5496
|
} else if (!(ft[1].type === "linePrefix" || ft[1].type === "blockQuotePrefix" || ft[1].type === "blockQuotePrefixWhitespace" || ft[1].type === "blockQuoteMarker" || ft[1].type === "listItemIndent")) break;
|
|
5497
5497
|
}
|
|
5498
|
-
|
|
5498
|
+
Lt && (!ct || Lt < ct) && (gt._spread = !0), gt.end = Object.assign(
|
|
5499
5499
|
{},
|
|
5500
5500
|
ct ? x[ct][1].start : N[1].end
|
|
5501
|
-
), x.splice(ct || O, 0, ["exit",
|
|
5501
|
+
), x.splice(ct || O, 0, ["exit", gt, N[2]]), O++, D++;
|
|
5502
5502
|
}
|
|
5503
|
-
N[1].type === "listItemPrefix" && (
|
|
5503
|
+
N[1].type === "listItemPrefix" && (gt = {
|
|
5504
5504
|
type: "listItem",
|
|
5505
5505
|
_spread: !1,
|
|
5506
5506
|
start: Object.assign({}, N[1].start),
|
|
5507
5507
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
5508
5508
|
end: void 0
|
|
5509
|
-
}, x.splice(O, 0, ["enter",
|
|
5509
|
+
}, x.splice(O, 0, ["enter", gt, N[2]]), O++, D++, Lt = void 0, _t = !0);
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
5512
5512
|
return x[S][1]._spread = it, D;
|
|
@@ -5558,7 +5558,7 @@ function Ra(t) {
|
|
|
5558
5558
|
function h() {
|
|
5559
5559
|
l("expectingFirstListItemValue", !0);
|
|
5560
5560
|
}
|
|
5561
|
-
function
|
|
5561
|
+
function g(x) {
|
|
5562
5562
|
if (u("expectingFirstListItemValue")) {
|
|
5563
5563
|
const S = this.stack[this.stack.length - 2];
|
|
5564
5564
|
S.start = Number.parseInt(this.sliceSerialize(x), 10), l("expectingFirstListItemValue");
|
|
@@ -5583,7 +5583,7 @@ function Ra(t) {
|
|
|
5583
5583
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5584
5584
|
S.value = x.replace(/(\r?\n|\r)$/g, "");
|
|
5585
5585
|
}
|
|
5586
|
-
function
|
|
5586
|
+
function _(x) {
|
|
5587
5587
|
const S = this.resume(), D = this.stack[this.stack.length - 1];
|
|
5588
5588
|
D.label = S, D.identifier = ut(
|
|
5589
5589
|
this.sliceSerialize(x)
|
|
@@ -5597,7 +5597,7 @@ function Ra(t) {
|
|
|
5597
5597
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5598
5598
|
S.url = x;
|
|
5599
5599
|
}
|
|
5600
|
-
function
|
|
5600
|
+
function L(x) {
|
|
5601
5601
|
const S = this.stack[this.stack.length - 1];
|
|
5602
5602
|
if (!S.depth) {
|
|
5603
5603
|
const D = this.sliceSerialize(x).length;
|
|
@@ -5641,11 +5641,11 @@ function Ra(t) {
|
|
|
5641
5641
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5642
5642
|
S.value = x;
|
|
5643
5643
|
}
|
|
5644
|
-
function
|
|
5644
|
+
function W() {
|
|
5645
5645
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5646
5646
|
S.value = x;
|
|
5647
5647
|
}
|
|
5648
|
-
function
|
|
5648
|
+
function v() {
|
|
5649
5649
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5650
5650
|
S.value = x;
|
|
5651
5651
|
}
|
|
@@ -5683,7 +5683,7 @@ function Ra(t) {
|
|
|
5683
5683
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5684
5684
|
S.url = x;
|
|
5685
5685
|
}
|
|
5686
|
-
function
|
|
5686
|
+
function d() {
|
|
5687
5687
|
const x = this.resume(), S = this.stack[this.stack.length - 1];
|
|
5688
5688
|
S.title = x;
|
|
5689
5689
|
}
|
|
@@ -5693,7 +5693,7 @@ function Ra(t) {
|
|
|
5693
5693
|
function Ct() {
|
|
5694
5694
|
l("referenceType", "collapsed");
|
|
5695
5695
|
}
|
|
5696
|
-
function
|
|
5696
|
+
function U(x) {
|
|
5697
5697
|
const S = this.resume(), D = this.stack[this.stack.length - 1];
|
|
5698
5698
|
D.label = S, D.identifier = ut(
|
|
5699
5699
|
this.sliceSerialize(x)
|
|
@@ -5702,10 +5702,10 @@ function Ra(t) {
|
|
|
5702
5702
|
function At(x) {
|
|
5703
5703
|
l("characterReferenceType", x.type);
|
|
5704
5704
|
}
|
|
5705
|
-
function
|
|
5705
|
+
function dt(x) {
|
|
5706
5706
|
const S = this.sliceSerialize(x), D = u("characterReferenceType");
|
|
5707
5707
|
let O;
|
|
5708
|
-
D ? (O =
|
|
5708
|
+
D ? (O = _n(
|
|
5709
5709
|
S,
|
|
5710
5710
|
D === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
5711
5711
|
), l("characterReferenceType")) : O = Ce(S);
|
|
@@ -5769,7 +5769,7 @@ function Ra(t) {
|
|
|
5769
5769
|
type: "break"
|
|
5770
5770
|
};
|
|
5771
5771
|
}
|
|
5772
|
-
function
|
|
5772
|
+
function Le() {
|
|
5773
5773
|
return {
|
|
5774
5774
|
type: "html",
|
|
5775
5775
|
value: ""
|
|
@@ -5783,7 +5783,7 @@ function Ra(t) {
|
|
|
5783
5783
|
alt: null
|
|
5784
5784
|
};
|
|
5785
5785
|
}
|
|
5786
|
-
function
|
|
5786
|
+
function _e() {
|
|
5787
5787
|
return {
|
|
5788
5788
|
type: "link",
|
|
5789
5789
|
title: null,
|
|
@@ -5839,17 +5839,17 @@ function kt(t) {
|
|
|
5839
5839
|
offset: t.offset
|
|
5840
5840
|
};
|
|
5841
5841
|
}
|
|
5842
|
-
function
|
|
5842
|
+
function Un(t, n) {
|
|
5843
5843
|
let e = -1;
|
|
5844
5844
|
for (; ++e < n.length; ) {
|
|
5845
5845
|
const r = n[e];
|
|
5846
|
-
Array.isArray(r) ?
|
|
5846
|
+
Array.isArray(r) ? Un(t, r) : ja(t, r);
|
|
5847
5847
|
}
|
|
5848
5848
|
}
|
|
5849
5849
|
function ja(t, n) {
|
|
5850
5850
|
let e;
|
|
5851
5851
|
for (e in n)
|
|
5852
|
-
if (
|
|
5852
|
+
if (vn.call(n, e)) {
|
|
5853
5853
|
if (e === "canContainEols") {
|
|
5854
5854
|
const r = n[e];
|
|
5855
5855
|
r && t[e].push(...r);
|
|
@@ -5904,7 +5904,7 @@ const Ha = new RegExp(
|
|
|
5904
5904
|
), Na = Object.freeze(["http:", "https:", "mailto:"]), $a = (t) => {
|
|
5905
5905
|
const n = document.createElement("textarea");
|
|
5906
5906
|
return n.innerHTML = t, n.value;
|
|
5907
|
-
},
|
|
5907
|
+
}, va = (t) => {
|
|
5908
5908
|
if (!t.trim())
|
|
5909
5909
|
return null;
|
|
5910
5910
|
let n = $a(t);
|
|
@@ -5920,7 +5920,7 @@ const Ha = new RegExp(
|
|
|
5920
5920
|
return null;
|
|
5921
5921
|
}
|
|
5922
5922
|
return null;
|
|
5923
|
-
},
|
|
5923
|
+
}, Ua = /* @__PURE__ */ Dt({
|
|
5924
5924
|
__name: "rich-text-editor-code-block",
|
|
5925
5925
|
props: {
|
|
5926
5926
|
code: {}
|
|
@@ -5928,7 +5928,7 @@ const Ha = new RegExp(
|
|
|
5928
5928
|
setup(t) {
|
|
5929
5929
|
return (n, e) => (Z(), Ft("pre", null, Nt(n.code), 1));
|
|
5930
5930
|
}
|
|
5931
|
-
}),
|
|
5931
|
+
}), Wa = /* @__PURE__ */ Dt({
|
|
5932
5932
|
__name: "rich-text-editor-inline-code",
|
|
5933
5933
|
props: {
|
|
5934
5934
|
code: {}
|
|
@@ -5994,10 +5994,10 @@ const Ya = /* @__PURE__ */ Fe(Za, [["render", Ga]]), Ja = { key: 1 }, Ka = /* @_
|
|
|
5994
5994
|
function Bt(t, n) {
|
|
5995
5995
|
return { [t]: n };
|
|
5996
5996
|
}
|
|
5997
|
-
const
|
|
5997
|
+
const Wt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
5998
5998
|
// Render HTML & Image nodes as text (protection layer 4)
|
|
5999
|
-
html:
|
|
6000
|
-
image:
|
|
5999
|
+
html: Wt,
|
|
6000
|
+
image: Wt
|
|
6001
6001
|
}), to = Object.freeze({
|
|
6002
6002
|
root: ({ childrenVNodes: t }) => Q(
|
|
6003
6003
|
"div",
|
|
@@ -6006,8 +6006,8 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6006
6006
|
},
|
|
6007
6007
|
t
|
|
6008
6008
|
),
|
|
6009
|
-
text:
|
|
6010
|
-
html:
|
|
6009
|
+
text: Wt,
|
|
6010
|
+
html: Wt,
|
|
6011
6011
|
break: () => Q("br"),
|
|
6012
6012
|
delete: ({ childrenVNodes: t }) => Q("del", t),
|
|
6013
6013
|
emphasis: ({ childrenVNodes: t }) => Q("em", t),
|
|
@@ -6015,10 +6015,10 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6015
6015
|
paragraph: ({ childrenVNodes: t }) => Q("p", t),
|
|
6016
6016
|
heading: ({ astNode: t, childrenVNodes: n }) => Q(`h${t.depth}`, n),
|
|
6017
6017
|
blockquote: ({ childrenVNodes: t }) => Q("blockquote", t),
|
|
6018
|
-
code: ({ astNode: t }) => Q(
|
|
6019
|
-
inlineCode: ({ astNode: t }) => Q(
|
|
6018
|
+
code: ({ astNode: t }) => Q(Ua, { ...Bt("code", t.value) }),
|
|
6019
|
+
inlineCode: ({ astNode: t }) => Q(Wa, { ...Bt("code", t.value) }),
|
|
6020
6020
|
link: ({ astNode: t, childrenVNodes: n }) => {
|
|
6021
|
-
const e =
|
|
6021
|
+
const e = va(t.url)?.toString() || "";
|
|
6022
6022
|
return Q(Qa, { ...Bt("url", e) }, n);
|
|
6023
6023
|
},
|
|
6024
6024
|
list: ({ astNode: t, childrenVNodes: n }) => Q(
|
|
@@ -6047,13 +6047,13 @@ const vt = ({ astNode: t }) => t.value?.toString(), Xa = Object.freeze({
|
|
|
6047
6047
|
...to,
|
|
6048
6048
|
...Xa
|
|
6049
6049
|
}));
|
|
6050
|
-
function
|
|
6050
|
+
function Wn(t) {
|
|
6051
6051
|
if (!t)
|
|
6052
6052
|
return null;
|
|
6053
6053
|
const n = eo.value[t.type];
|
|
6054
6054
|
if (!n)
|
|
6055
6055
|
throw new Error(`Unsupported node type: "${t.type}"`);
|
|
6056
|
-
const e = (t.children || []).map((r) =>
|
|
6056
|
+
const e = (t.children || []).map((r) => Wn(r));
|
|
6057
6057
|
return n({
|
|
6058
6058
|
// AST Node from the "unified.parse" method
|
|
6059
6059
|
astNode: t,
|
|
@@ -6069,12 +6069,19 @@ const no = {
|
|
|
6069
6069
|
}
|
|
6070
6070
|
},
|
|
6071
6071
|
setup(t) {
|
|
6072
|
-
return () =>
|
|
6072
|
+
return () => Wn(t.node);
|
|
6073
6073
|
}
|
|
6074
6074
|
}, Qn = {
|
|
6075
|
+
"de-DE": { ariaLabelFallback: "Rich-Text-Editor", errorProcessingMarkdown: "Fehlerverarbeitungs-Markdown: {value}", markdown: "Markdown", visual: "Visuell" },
|
|
6076
|
+
"en-GB": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6075
6077
|
"en-US": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6076
|
-
"
|
|
6077
|
-
"
|
|
6078
|
+
"es-ES": { ariaLabelFallback: "Editor de texto enriquecido", errorProcessingMarkdown: "Error al procesar markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6079
|
+
"es-MX": { ariaLabelFallback: "Editor de texto enriquecido", errorProcessingMarkdown: "Error al procesar markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6080
|
+
"fr-FR": { ariaLabelFallback: "Éditeur de texte riche", errorProcessingMarkdown: "Erreur de traitement du Markdown : {value}", markdown: "Markdown", visual: "Visuel" },
|
|
6081
|
+
"it-IT": { ariaLabelFallback: "Editor di testo arricchito", errorProcessingMarkdown: "Errore nell'elaborazione del markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6082
|
+
"ja-JP": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6083
|
+
"pt-BR": { ariaLabelFallback: "Rich text editor", errorProcessingMarkdown: "Error processing markdown: {value}", markdown: "Markdown", visual: "Visual" },
|
|
6084
|
+
"zh-CN": { ariaLabelFallback: "富文本编辑器", errorProcessingMarkdown: "处理 markdown 时出错:{value}", markdown: "Markdown", visual: "可视" }
|
|
6078
6085
|
}, ro = ["aria-disabled"], io = { class: "b-rich-text-editor__toolbar" }, uo = ["id"], lo = {
|
|
6079
6086
|
i18n: { messages: Qn }
|
|
6080
6087
|
}, ao = /* @__PURE__ */ Dt({
|
|
@@ -6107,7 +6114,7 @@ const no = {
|
|
|
6107
6114
|
]), h = xt(() => ({
|
|
6108
6115
|
"b-rich-text-editor__container--disabled": u.disabled,
|
|
6109
6116
|
"b-rich-text-editor__container--error": u.errorMessage
|
|
6110
|
-
})),
|
|
6117
|
+
})), g = xt(() => ({
|
|
6111
6118
|
"b-rich-text-editor__renderer--disabled": u.disabled
|
|
6112
6119
|
})), w = xt(() => e("ariaLabelFallback")), C = wt(l["aria-label"]), b = mr({
|
|
6113
6120
|
ariaLabel: C.value,
|
|
@@ -6122,7 +6129,7 @@ const no = {
|
|
|
6122
6129
|
f.value = null, o.value = z.message.split(":")[1];
|
|
6123
6130
|
}
|
|
6124
6131
|
}
|
|
6125
|
-
const
|
|
6132
|
+
const _ = (z) => {
|
|
6126
6133
|
s.value = z;
|
|
6127
6134
|
};
|
|
6128
6135
|
return me(s, (z) => {
|
|
@@ -6139,7 +6146,7 @@ const no = {
|
|
|
6139
6146
|
"rich-text": ""
|
|
6140
6147
|
}, {
|
|
6141
6148
|
default: Pt(() => [
|
|
6142
|
-
z.hideLabel ? Xt("", !0) : (Z(), pt(ht(
|
|
6149
|
+
z.hideLabel ? Xt("", !0) : (Z(), pt(ht(dr), {
|
|
6143
6150
|
key: 0,
|
|
6144
6151
|
label: z.label,
|
|
6145
6152
|
"tooltip-text": z.tooltipText,
|
|
@@ -6153,7 +6160,7 @@ const no = {
|
|
|
6153
6160
|
$t("div", io, [
|
|
6154
6161
|
Pe(sr, {
|
|
6155
6162
|
modelValue: c.value,
|
|
6156
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
6163
|
+
"onUpdate:modelValue": y[0] || (y[0] = (L) => c.value = L),
|
|
6157
6164
|
items: p.value
|
|
6158
6165
|
}, null, 8, ["modelValue", "items"])
|
|
6159
6166
|
]),
|
|
@@ -6167,7 +6174,7 @@ const no = {
|
|
|
6167
6174
|
"aria-label": ht(b),
|
|
6168
6175
|
"aria-describedby": I.value,
|
|
6169
6176
|
"aria-required": z.required,
|
|
6170
|
-
onInput:
|
|
6177
|
+
onInput: _
|
|
6171
6178
|
}, null, 8, ["value", "disabled", "aria-label", "aria-describedby", "aria-required"])) : o.value ? (Z(), pt(cr, {
|
|
6172
6179
|
key: 1,
|
|
6173
6180
|
type: "critical"
|
|
@@ -6179,11 +6186,11 @@ const no = {
|
|
|
6179
6186
|
})) : (Z(), pt(ht(no), {
|
|
6180
6187
|
key: 2,
|
|
6181
6188
|
node: f.value,
|
|
6182
|
-
class: or(["b-rich-text-editor__renderer",
|
|
6189
|
+
class: or(["b-rich-text-editor__renderer", g.value])
|
|
6183
6190
|
}, null, 8, ["node", "class"]))
|
|
6184
6191
|
], 1024))
|
|
6185
6192
|
], 16, ro),
|
|
6186
|
-
z.errorMessage ? (Z(), pt(ht(
|
|
6193
|
+
z.errorMessage ? (Z(), pt(ht(gr), {
|
|
6187
6194
|
key: 1,
|
|
6188
6195
|
id: ht(r),
|
|
6189
6196
|
"error-message": z.errorMessage,
|
|
@@ -6212,4 +6219,4 @@ const no = {
|
|
|
6212
6219
|
export {
|
|
6213
6220
|
yo as r
|
|
6214
6221
|
};
|
|
6215
|
-
//# sourceMappingURL=rich-text-editor.
|
|
6222
|
+
//# sourceMappingURL=rich-text-editor.Ij2t4pyI.js.map
|