@swisspost/design-system-components 10.0.0-next.68 → 10.0.0-next.69
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/.config/rollup-plugin.air-datepicker-locale.js +30 -0
- package/dist/cjs/_air-datepicker-locale_ar-CWOSiErt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_bg-JFWSZzWm.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ca-D4TAa7rI.js +5 -0
- package/dist/cjs/_air-datepicker-locale_cs-DosuWhKM.js +5 -0
- package/dist/cjs/_air-datepicker-locale_da-B5NHFJuC.js +5 -0
- package/dist/cjs/_air-datepicker-locale_de-pCyAfzJ2.js +5 -0
- package/dist/cjs/_air-datepicker-locale_el-Cpwc-DA1.js +5 -0
- package/dist/cjs/_air-datepicker-locale_en-Be7ImjN_.js +5 -0
- package/dist/cjs/_air-datepicker-locale_es-Cv0KAzTX.js +5 -0
- package/dist/cjs/_air-datepicker-locale_eu-DIWyMMth.js +5 -0
- package/dist/cjs/_air-datepicker-locale_fi-D0NlYCfL.js +5 -0
- package/dist/cjs/_air-datepicker-locale_fr-SkEOXj1I.js +5 -0
- package/dist/cjs/_air-datepicker-locale_hr-BrTsx2iQ.js +5 -0
- package/dist/cjs/_air-datepicker-locale_hu-a5Toa3rt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_id-h0ieLcJv.js +5 -0
- package/dist/cjs/_air-datepicker-locale_it-DQeeF5n7.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ja-C78DHDAv.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ko-BGSYNW_t.js +5 -0
- package/dist/cjs/_air-datepicker-locale_nb-BQkZ_Pvp.js +5 -0
- package/dist/cjs/_air-datepicker-locale_nl-DG6dvxj-.js +5 -0
- package/dist/cjs/_air-datepicker-locale_pl-mZxBq8TF.js +5 -0
- package/dist/cjs/_air-datepicker-locale_pt-sCO-c8dQ.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ro-Cf2HyYTE.js +5 -0
- package/dist/cjs/_air-datepicker-locale_ru-BS-yHOKw.js +5 -0
- package/dist/cjs/_air-datepicker-locale_si-C-vceOjt.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sk-D6Sexd7V.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sl-C769P2Cr.js +5 -0
- package/dist/cjs/_air-datepicker-locale_sv-DV21M0v9.js +5 -0
- package/dist/cjs/_air-datepicker-locale_th-HFoj3y5r.js +5 -0
- package/dist/cjs/_air-datepicker-locale_tr-C4soRqRo.js +5 -0
- package/dist/cjs/_air-datepicker-locale_uk-BM5nVNZS.js +5 -0
- package/dist/cjs/_air-datepicker-locale_zh-B4bR_9wv.js +5 -0
- package/dist/cjs/{index-Du1lKw8D.js → index-DPdHkdGf.js} +353 -1933
- package/dist/cjs/index-YBj3gUJp.js +114540 -0
- package/dist/cjs/{index.browser-Doj636JV.js → index.browser-BVb9l9T_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/{esm/long-press-event-C_2k3G1c.js → cjs/long-press-event-Dx21Ojod.js} +13 -1
- package/dist/cjs/{package-DB6yM9Rp.js → package-CzSn3NmD.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/post-autocomplete.cjs.entry.js +36 -10
- package/dist/cjs/post-avatar.cjs.entry.js +4 -4
- package/dist/cjs/post-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/post-banner.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +4 -4
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +5 -5
- package/dist/cjs/post-closebutton_14.cjs.entry.js +59 -57
- package/dist/cjs/post-collapsible_2.cjs.entry.js +5 -5
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/post-date-picker.cjs.entry.js +368 -268
- package/dist/cjs/post-footer.cjs.entry.js +5 -5
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +4 -4
- package/dist/cjs/post-login-widget.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +7 -7
- package/dist/cjs/post-pagination.cjs.entry.js +5 -5
- package/dist/cjs/post-popover-trigger.cjs.entry.js +4 -4
- package/dist/cjs/post-popover.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +4 -4
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +6 -6
- package/dist/cjs/post-tab-item.cjs.entry.js +5 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +5 -5
- package/dist/cjs/post-tabs.cjs.entry.js +5 -5
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -1
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +52 -7
- package/dist/collection/components/post-avatar/post-avatar.js +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -2
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-date-picker/air-locales.js +34 -0
- package/dist/collection/components/post-date-picker/constants.js +42 -0
- package/dist/collection/components/post-date-picker/post-date-picker.css +6 -2
- package/dist/collection/components/post-date-picker/post-date-picker.js +295 -135
- package/dist/collection/components/post-footer/post-footer.js +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +5 -5
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +11 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-login-widget/post-login-widget.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +3 -2
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +4 -11
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +4 -4
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/is-iso-date.js +7 -6
- package/dist/collection/utils/locales.js +17 -0
- package/dist/components/_air-datepicker-locale_ar.js +1 -0
- package/dist/components/_air-datepicker-locale_bg.js +1 -0
- package/dist/components/_air-datepicker-locale_ca.js +1 -0
- package/dist/components/_air-datepicker-locale_cs.js +1 -0
- package/dist/components/_air-datepicker-locale_da.js +1 -0
- package/dist/components/_air-datepicker-locale_de.js +1 -0
- package/dist/components/_air-datepicker-locale_el.js +1 -0
- package/dist/components/_air-datepicker-locale_en.js +1 -0
- package/dist/components/_air-datepicker-locale_es.js +1 -0
- package/dist/components/_air-datepicker-locale_eu.js +1 -0
- package/dist/components/_air-datepicker-locale_fi.js +1 -0
- package/dist/components/_air-datepicker-locale_fr.js +1 -0
- package/dist/components/_air-datepicker-locale_hr.js +1 -0
- package/dist/components/_air-datepicker-locale_hu.js +1 -0
- package/dist/components/_air-datepicker-locale_id.js +1 -0
- package/dist/components/_air-datepicker-locale_it.js +1 -0
- package/dist/components/_air-datepicker-locale_ja.js +1 -0
- package/dist/components/_air-datepicker-locale_ko.js +1 -0
- package/dist/components/_air-datepicker-locale_nb.js +1 -0
- package/dist/components/_air-datepicker-locale_nl.js +1 -0
- package/dist/components/_air-datepicker-locale_pl.js +1 -0
- package/dist/components/_air-datepicker-locale_pt.js +1 -0
- package/dist/components/_air-datepicker-locale_ro.js +1 -0
- package/dist/components/_air-datepicker-locale_ru.js +1 -0
- package/dist/components/_air-datepicker-locale_si.js +1 -0
- package/dist/components/_air-datepicker-locale_sk.js +1 -0
- package/dist/components/_air-datepicker-locale_sl.js +1 -0
- package/dist/components/_air-datepicker-locale_sv.js +1 -0
- package/dist/components/_air-datepicker-locale_th.js +1 -0
- package/dist/components/_air-datepicker-locale_tr.js +1 -0
- package/dist/components/_air-datepicker-locale_uk.js +1 -0
- package/dist/components/_air-datepicker-locale_zh.js +1 -0
- package/dist/components/index3.js +6 -0
- package/dist/components/long-press-event.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item2.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-login-widget.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-B0UL6WWC.js +1 -0
- package/dist/components/react/p-B4l5EAoq.js +1 -0
- package/dist/components/react/{p-CmkOK7QT.js → p-B4tq6hiA.js} +1 -1
- package/dist/components/react/p-B5zHEJHg.js +1 -0
- package/dist/components/react/p-BI8IDv3x.js +1 -0
- package/dist/components/react/p-BL8Kkhue.js +1 -0
- package/dist/components/react/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
- package/dist/components/react/{p-DSw_A3Mh.js → p-BYfHrHCb.js} +1 -1
- package/dist/components/react/p-B_mxRlWV.js +1 -0
- package/dist/components/react/p-BaE0RQYu.js +1 -0
- package/dist/components/react/p-BbOp03Tv.js +1 -0
- package/dist/components/react/p-BfPjPzPS.js +1 -0
- package/dist/components/react/p-BhrWATcv.js +1 -0
- package/dist/components/react/{p-CuiEdxy9.js → p-Bj33xnuq.js} +1 -1
- package/dist/components/react/p-Blr-q_ib.js +1 -0
- package/dist/components/react/p-ByHlofKQ.js +1 -0
- package/dist/components/react/p-BzFuQlXL.js +1 -0
- package/dist/components/react/p-C820VY6h.js +1 -0
- package/dist/components/react/p-CHD6fZJe.js +1 -0
- package/dist/components/react/p-CJcRbvrI.js +6 -0
- package/dist/components/react/p-CKeMJgsB.js +1 -0
- package/dist/components/react/p-CKmlbvS5.js +1 -0
- package/dist/components/react/p-CLO4Gc79.js +1 -0
- package/dist/components/react/p-COcQTTvB.js +1 -0
- package/dist/components/react/p-CY0xDY7T.js +1 -0
- package/dist/components/react/p-CaXZrKGy.js +1 -0
- package/dist/components/react/{p-BOqFllSV.js → p-CfQqdIV2.js} +1 -1
- package/dist/components/react/p-Cp9RABzO.js +1 -0
- package/dist/components/react/{p-wHDwT4JH.js → p-D1KBbwmi.js} +1 -1
- package/dist/components/react/p-D74-8pcb.js +1 -0
- package/dist/components/react/p-D7MKQ7S-.js +1 -0
- package/dist/components/react/p-DAIxJysJ.js +1 -0
- package/dist/components/react/p-DLWEDodU.js +1 -0
- package/dist/components/react/p-DQq5Bnk2.js +1 -0
- package/dist/components/react/{p-DPFq3I2q.js → p-DRtzK3cr.js} +1 -1
- package/dist/components/react/p-DYpJ3j2A.js +1 -0
- package/dist/components/react/{p-aFH1oGSZ.js → p-De_QjSNJ.js} +1 -1
- package/dist/components/react/p-DiNZLG90.js +1 -0
- package/dist/components/react/p-Dp41Pg4o.js +1 -0
- package/dist/components/react/{p-BFAXoyMM.js → p-DwJ5SwpN.js} +1 -1
- package/dist/components/react/{p-rEK_D60T.js → p-HNUXY1z7.js} +1 -1
- package/dist/components/react/p-TmutBiUy.js +1 -0
- package/dist/components/react/{p-ByN3t9FX.js → p-UY924tHr.js} +1 -1
- package/dist/components/react/p-bl3gSRgH.js +1 -0
- package/dist/components/react/p-jZZU8-Dx.js +1 -0
- package/dist/components/react/p-r5tpdxcW.js +1 -0
- package/dist/components/react/p-tHlklq2F.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-login-widget.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.d.ts +26 -0
- package/dist/docs.json +113 -9
- package/dist/esm/_air-datepicker-locale_ar-DQq5Bnk2.js +3 -0
- package/dist/esm/_air-datepicker-locale_bg-bl3gSRgH.js +3 -0
- package/dist/esm/_air-datepicker-locale_ca-BI8IDv3x.js +3 -0
- package/dist/esm/_air-datepicker-locale_cs-COcQTTvB.js +3 -0
- package/dist/esm/_air-datepicker-locale_da-jZZU8-Dx.js +3 -0
- package/dist/esm/_air-datepicker-locale_de-DiNZLG90.js +3 -0
- package/dist/esm/_air-datepicker-locale_el-CY0xDY7T.js +3 -0
- package/dist/esm/_air-datepicker-locale_en-D74-8pcb.js +3 -0
- package/dist/esm/_air-datepicker-locale_es-TmutBiUy.js +3 -0
- package/dist/esm/_air-datepicker-locale_eu-Blr-q_ib.js +3 -0
- package/dist/esm/_air-datepicker-locale_fi-B5zHEJHg.js +3 -0
- package/dist/esm/_air-datepicker-locale_fr-CLO4Gc79.js +3 -0
- package/dist/esm/_air-datepicker-locale_hr-CKeMJgsB.js +3 -0
- package/dist/esm/_air-datepicker-locale_hu-B_mxRlWV.js +3 -0
- package/dist/esm/_air-datepicker-locale_id-BhrWATcv.js +3 -0
- package/dist/esm/_air-datepicker-locale_it-B0UL6WWC.js +3 -0
- package/dist/esm/_air-datepicker-locale_ja-DLWEDodU.js +3 -0
- package/dist/esm/_air-datepicker-locale_ko-BL8Kkhue.js +3 -0
- package/dist/esm/_air-datepicker-locale_nb-BzFuQlXL.js +3 -0
- package/dist/esm/_air-datepicker-locale_nl-ByHlofKQ.js +3 -0
- package/dist/esm/_air-datepicker-locale_pl-CaXZrKGy.js +3 -0
- package/dist/esm/_air-datepicker-locale_pt-CKmlbvS5.js +3 -0
- package/dist/esm/_air-datepicker-locale_ro-r5tpdxcW.js +3 -0
- package/dist/esm/_air-datepicker-locale_ru-BfPjPzPS.js +3 -0
- package/dist/esm/_air-datepicker-locale_si-Dp41Pg4o.js +3 -0
- package/dist/esm/_air-datepicker-locale_sk-BaE0RQYu.js +3 -0
- package/dist/esm/_air-datepicker-locale_sl-tHlklq2F.js +3 -0
- package/dist/esm/_air-datepicker-locale_sv-DYpJ3j2A.js +3 -0
- package/dist/esm/_air-datepicker-locale_th-D7MKQ7S-.js +3 -0
- package/dist/esm/_air-datepicker-locale_tr-CHD6fZJe.js +3 -0
- package/dist/esm/_air-datepicker-locale_uk-Cp9RABzO.js +3 -0
- package/dist/esm/_air-datepicker-locale_zh-C820VY6h.js +3 -0
- package/dist/esm/index-CJcRbvrI.js +114535 -0
- package/dist/esm/{index-Ci4L1rzN.js → index-DmAi35UF.js} +353 -1933
- package/dist/esm/{index.browser-BLchVpF6.js → index.browser-nA1BKco0.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/{cjs/long-press-event-Q8jMUNXD.js → esm/long-press-event-BNgqqRsB.js} +11 -3
- package/dist/esm/package-B4l5EAoq.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +4 -4
- package/dist/esm/post-autocomplete.entry.js +36 -10
- package/dist/esm/post-avatar.entry.js +4 -4
- package/dist/esm/post-back-to-top.entry.js +4 -4
- package/dist/esm/post-banner.entry.js +4 -4
- package/dist/esm/post-breadcrumb-item.entry.js +4 -4
- package/dist/esm/post-breadcrumbs.entry.js +5 -5
- package/dist/esm/post-closebutton_14.entry.js +56 -54
- package/dist/esm/post-collapsible_2.entry.js +5 -5
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/post-date-picker.entry.js +352 -252
- package/dist/esm/post-footer.entry.js +4 -4
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +4 -4
- package/dist/esm/post-login-widget.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +6 -6
- package/dist/esm/post-pagination.entry.js +5 -5
- package/dist/esm/post-popover-trigger.entry.js +4 -4
- package/dist/esm/post-popover.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +4 -4
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +6 -6
- package/dist/esm/post-tab-item.entry.js +5 -5
- package/dist/esm/post-tab-panel.entry.js +5 -5
- package/dist/esm/post-tabs.entry.js +5 -5
- package/dist/esm/post-tooltip-trigger.entry.js +5 -5
- package/dist/esm/post-tooltip.entry.js +5 -5
- package/dist/post-components/{p-4ad6993e.entry.js → p-0992cba9.entry.js} +1 -1
- package/dist/post-components/{p-9bdb92c0.entry.js → p-0c249c71.entry.js} +1 -1
- package/dist/post-components/{p-4c021d5f.entry.js → p-1e28d279.entry.js} +1 -1
- package/dist/post-components/{p-5f86479f.entry.js → p-220d0eab.entry.js} +1 -1
- package/dist/post-components/{p-38880c61.entry.js → p-272de102.entry.js} +1 -1
- package/dist/post-components/{p-5c66d070.entry.js → p-30e5bc99.entry.js} +1 -1
- package/dist/post-components/p-500a3fc7.entry.js +1 -0
- package/dist/post-components/{p-eb89eecb.entry.js → p-52f85cba.entry.js} +1 -1
- package/dist/post-components/{p-602960ff.entry.js → p-5664d5b5.entry.js} +1 -1
- package/dist/post-components/p-5ade4255.entry.js +1 -0
- package/dist/post-components/p-6644e626.entry.js +1 -0
- package/dist/post-components/p-694e76be.entry.js +1 -0
- package/dist/post-components/p-8b68164f.entry.js +1 -0
- package/dist/post-components/{p-cdc11592.entry.js → p-906b669b.entry.js} +1 -1
- package/dist/post-components/p-92e4a7f7.entry.js +1 -0
- package/dist/post-components/{p-df54677a.entry.js → p-95df4d4e.entry.js} +1 -1
- package/dist/post-components/{p-7ad4e293.entry.js → p-9fab1847.entry.js} +1 -1
- package/dist/post-components/p-B0UL6WWC.js +1 -0
- package/dist/post-components/p-B4l5EAoq.js +1 -0
- package/dist/post-components/p-B5zHEJHg.js +1 -0
- package/dist/post-components/p-BI8IDv3x.js +1 -0
- package/dist/post-components/p-BL8Kkhue.js +1 -0
- package/dist/post-components/{p-C_2k3G1c.js → p-BNgqqRsB.js} +1 -1
- package/dist/post-components/p-B_mxRlWV.js +1 -0
- package/dist/post-components/p-BaE0RQYu.js +1 -0
- package/dist/post-components/p-BfPjPzPS.js +1 -0
- package/dist/post-components/p-BhrWATcv.js +1 -0
- package/dist/post-components/p-Blr-q_ib.js +1 -0
- package/dist/post-components/p-ByHlofKQ.js +1 -0
- package/dist/post-components/p-BzFuQlXL.js +1 -0
- package/dist/post-components/p-C820VY6h.js +1 -0
- package/dist/post-components/p-CHD6fZJe.js +1 -0
- package/dist/post-components/p-CJcRbvrI.js +6 -0
- package/dist/post-components/p-CKeMJgsB.js +1 -0
- package/dist/post-components/p-CKmlbvS5.js +1 -0
- package/dist/post-components/p-CLO4Gc79.js +1 -0
- package/dist/post-components/p-COcQTTvB.js +1 -0
- package/dist/post-components/p-CY0xDY7T.js +1 -0
- package/dist/post-components/p-CaXZrKGy.js +1 -0
- package/dist/post-components/p-Cp9RABzO.js +1 -0
- package/dist/post-components/p-D74-8pcb.js +1 -0
- package/dist/post-components/p-D7MKQ7S-.js +1 -0
- package/dist/post-components/p-DLWEDodU.js +1 -0
- package/dist/post-components/p-DQq5Bnk2.js +1 -0
- package/dist/post-components/p-DYpJ3j2A.js +1 -0
- package/dist/post-components/p-DiNZLG90.js +1 -0
- package/dist/post-components/p-DmAi35UF.js +2 -0
- package/dist/post-components/p-Dp41Pg4o.js +1 -0
- package/dist/post-components/p-TmutBiUy.js +1 -0
- package/dist/post-components/p-bl3gSRgH.js +1 -0
- package/dist/post-components/p-c70cad6e.entry.js +1 -0
- package/dist/post-components/{p-319959ee.entry.js → p-c95fcb40.entry.js} +1 -1
- package/dist/post-components/{p-39b2b086.entry.js → p-cca0cf23.entry.js} +1 -1
- package/dist/post-components/{p-fd10d5b9.entry.js → p-cd6684e1.entry.js} +1 -1
- package/dist/post-components/p-d57462a3.entry.js +1 -0
- package/dist/post-components/{p-f64c6491.entry.js → p-d99bdef2.entry.js} +1 -1
- package/dist/post-components/{p-e331093d.entry.js → p-dfe811cc.entry.js} +1 -1
- package/dist/post-components/p-f14ca918.entry.js +1 -0
- package/dist/post-components/{p-e01ce660.entry.js → p-f88a161a.entry.js} +1 -1
- package/dist/post-components/p-fc2882a8.entry.js +1 -0
- package/dist/post-components/p-jZZU8-Dx.js +1 -0
- package/dist/post-components/p-r5tpdxcW.js +1 -0
- package/dist/post-components/p-tHlklq2F.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/prebuild.js +4 -1
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +10 -0
- package/dist/types/components/post-date-picker/air-locales.d.ts +5 -0
- package/dist/types/components/post-date-picker/constants.d.ts +37 -0
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +74 -18
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -0
- package/dist/types/components/post-stepper/post-stepper.d.ts +2 -2
- package/dist/types/components.d.ts +286 -80
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/.config/rollup-plugin.air-datepicker-locale.d.ts +12 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +1 -0
- package/dist/types/language-tags.js +0 -0
- package/dist/types/stencil-public-runtime.d.ts +23 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/locales.d.ts +11 -0
- package/hydrate/index.js +120010 -4831
- package/hydrate/index.mjs +120010 -4831
- package/package.json +14 -13
- package/dist/cjs/breakpoints-B0Olgvgc.js +0 -206
- package/dist/collection/components/post-date-picker/locales.js +0 -10
- package/dist/components/breakpoints.js +0 -1
- package/dist/components/react/p-BADyL6qQ.js +0 -1
- package/dist/components/react/p-BQ3HlJPr.js +0 -1
- package/dist/components/react/p-NDMNbu5d.js +0 -1
- package/dist/components/react/p-_AAbD0Gm.js +0 -1
- package/dist/esm/breakpoints-BQ3HlJPr.js +0 -202
- package/dist/esm/package-NDMNbu5d.js +0 -3
- package/dist/post-components/p-1edd4d7c.entry.js +0 -1
- package/dist/post-components/p-3364b421.entry.js +0 -1
- package/dist/post-components/p-631f4bdd.entry.js +0 -1
- package/dist/post-components/p-6336ea0b.entry.js +0 -1
- package/dist/post-components/p-82871134.entry.js +0 -1
- package/dist/post-components/p-8c91a9d8.entry.js +0 -1
- package/dist/post-components/p-BQ3HlJPr.js +0 -1
- package/dist/post-components/p-Ci4L1rzN.js +0 -2
- package/dist/post-components/p-NDMNbu5d.js +0 -1
- package/dist/post-components/p-e4fd234d.entry.js +0 -1
- package/dist/post-components/p-ee03eed0.entry.js +0 -1
- package/dist/post-components/p-f1813327.entry.js +0 -1
- package/dist/post-components/p-f1bff988.entry.js +0 -1
- package/dist/types/components/post-date-picker/locales.d.ts +0 -6
- /package/dist/components/react/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
- /package/dist/post-components/{p-BLchVpF6.js → p-nA1BKco0.js} +0 -0
|
@@ -22,257 +22,12 @@ const NAMESPACE = 'post-components';
|
|
|
22
22
|
const BUILD = /* post-components */ { hotModuleReplacement: false, hydratedSelectorName: "data-hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
|
|
23
23
|
|
|
24
24
|
const globalScripts = () => {};
|
|
25
|
-
const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";
|
|
25
|
+
const globalStyles = ":where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(\n var(--post-device-spacing-padding-inline-1) +\n (var(--post-device-spacing-padding-23)* 2) +\n var(--post-device-sizing-interactive-icon-size6) +\n (var(--post-device-border-width-default) * 2)\n )}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=unauthenticated]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}post-login-widget>[slot=unauthenticated]:hover{text-decoration:none}post-login-widget>[slot=unauthenticated]:disabled{border-style:var(--post-core-border-style-dash)}post-login-widget>[slot=unauthenticated]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=unauthenticated]:is(a){color:LinkText;border:unset}post-login-widget>[slot=unauthenticated]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=unauthenticated]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=unauthenticated]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg);color:var(--post-scheme-color-interactive-button-primary-enabled-fg)}post-login-widget>[slot=unauthenticated]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg);color:var(--post-scheme-color-interactive-button-primary-hover-fg)}post-login-widget>[slot=unauthenticated]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=unauthenticated]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=unauthenticated]>post-icon{font-size:1.5rem}}post-login-widget>[slot=authenticated]>post-menu-trigger>button{border-radius:var(--post-device-border-radius-round) !important}";
|
|
26
26
|
|
|
27
27
|
/*
|
|
28
|
-
Stencil Client Platform v4.
|
|
28
|
+
Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
|
|
29
29
|
*/
|
|
30
|
-
var __create = Object.create;
|
|
31
|
-
var __defProp = Object.defineProperty;
|
|
32
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
33
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
34
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
35
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
36
|
-
var __typeError = (msg) => {
|
|
37
|
-
throw TypeError(msg);
|
|
38
|
-
};
|
|
39
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
40
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
41
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
42
|
-
};
|
|
43
|
-
var __export = (target, all) => {
|
|
44
|
-
for (var name in all)
|
|
45
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
46
|
-
};
|
|
47
|
-
var __copyProps = (to, from, except, desc) => {
|
|
48
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
49
|
-
for (let key of __getOwnPropNames(from))
|
|
50
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
51
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
52
|
-
}
|
|
53
|
-
return to;
|
|
54
|
-
};
|
|
55
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
56
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
57
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
58
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
59
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
60
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
61
|
-
mod
|
|
62
|
-
));
|
|
63
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
64
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
65
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
66
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
67
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
68
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
69
30
|
|
|
70
|
-
// node_modules/balanced-match/index.js
|
|
71
|
-
var require_balanced_match = __commonJS({
|
|
72
|
-
"node_modules/balanced-match/index.js"(exports, module) {
|
|
73
|
-
module.exports = balanced;
|
|
74
|
-
function balanced(a, b, str) {
|
|
75
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
76
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
77
|
-
var r = range(a, b, str);
|
|
78
|
-
return r && {
|
|
79
|
-
start: r[0],
|
|
80
|
-
end: r[1],
|
|
81
|
-
pre: str.slice(0, r[0]),
|
|
82
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
83
|
-
post: str.slice(r[1] + b.length)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function maybeMatch(reg, str) {
|
|
87
|
-
var m = str.match(reg);
|
|
88
|
-
return m ? m[0] : null;
|
|
89
|
-
}
|
|
90
|
-
balanced.range = range;
|
|
91
|
-
function range(a, b, str) {
|
|
92
|
-
var begs, beg, left, right, result;
|
|
93
|
-
var ai = str.indexOf(a);
|
|
94
|
-
var bi = str.indexOf(b, ai + 1);
|
|
95
|
-
var i2 = ai;
|
|
96
|
-
if (ai >= 0 && bi > 0) {
|
|
97
|
-
if (a === b) {
|
|
98
|
-
return [ai, bi];
|
|
99
|
-
}
|
|
100
|
-
begs = [];
|
|
101
|
-
left = str.length;
|
|
102
|
-
while (i2 >= 0 && !result) {
|
|
103
|
-
if (i2 == ai) {
|
|
104
|
-
begs.push(i2);
|
|
105
|
-
ai = str.indexOf(a, i2 + 1);
|
|
106
|
-
} else if (begs.length == 1) {
|
|
107
|
-
result = [begs.pop(), bi];
|
|
108
|
-
} else {
|
|
109
|
-
beg = begs.pop();
|
|
110
|
-
if (beg < left) {
|
|
111
|
-
left = beg;
|
|
112
|
-
right = bi;
|
|
113
|
-
}
|
|
114
|
-
bi = str.indexOf(b, i2 + 1);
|
|
115
|
-
}
|
|
116
|
-
i2 = ai < bi && ai >= 0 ? ai : bi;
|
|
117
|
-
}
|
|
118
|
-
if (begs.length) {
|
|
119
|
-
result = [left, right];
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return result;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
// node_modules/brace-expansion/index.js
|
|
128
|
-
var require_brace_expansion = __commonJS({
|
|
129
|
-
"node_modules/brace-expansion/index.js"(exports, module) {
|
|
130
|
-
var balanced = require_balanced_match();
|
|
131
|
-
module.exports = expandTop;
|
|
132
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
133
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
134
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
135
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
136
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
137
|
-
function numeric(str) {
|
|
138
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
139
|
-
}
|
|
140
|
-
function escapeBraces(str) {
|
|
141
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
142
|
-
}
|
|
143
|
-
function unescapeBraces(str) {
|
|
144
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
145
|
-
}
|
|
146
|
-
function parseCommaParts(str) {
|
|
147
|
-
if (!str)
|
|
148
|
-
return [""];
|
|
149
|
-
var parts = [];
|
|
150
|
-
var m = balanced("{", "}", str);
|
|
151
|
-
if (!m)
|
|
152
|
-
return str.split(",");
|
|
153
|
-
var pre = m.pre;
|
|
154
|
-
var body = m.body;
|
|
155
|
-
var post = m.post;
|
|
156
|
-
var p = pre.split(",");
|
|
157
|
-
p[p.length - 1] += "{" + body + "}";
|
|
158
|
-
var postParts = parseCommaParts(post);
|
|
159
|
-
if (post.length) {
|
|
160
|
-
p[p.length - 1] += postParts.shift();
|
|
161
|
-
p.push.apply(p, postParts);
|
|
162
|
-
}
|
|
163
|
-
parts.push.apply(parts, p);
|
|
164
|
-
return parts;
|
|
165
|
-
}
|
|
166
|
-
function expandTop(str) {
|
|
167
|
-
if (!str)
|
|
168
|
-
return [];
|
|
169
|
-
if (str.substr(0, 2) === "{}") {
|
|
170
|
-
str = "\\{\\}" + str.substr(2);
|
|
171
|
-
}
|
|
172
|
-
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
173
|
-
}
|
|
174
|
-
function embrace(str) {
|
|
175
|
-
return "{" + str + "}";
|
|
176
|
-
}
|
|
177
|
-
function isPadded(el) {
|
|
178
|
-
return /^-?0\d/.test(el);
|
|
179
|
-
}
|
|
180
|
-
function lte(i2, y) {
|
|
181
|
-
return i2 <= y;
|
|
182
|
-
}
|
|
183
|
-
function gte(i2, y) {
|
|
184
|
-
return i2 >= y;
|
|
185
|
-
}
|
|
186
|
-
function expand2(str, isTop) {
|
|
187
|
-
var expansions = [];
|
|
188
|
-
var m = balanced("{", "}", str);
|
|
189
|
-
if (!m) return [str];
|
|
190
|
-
var pre = m.pre;
|
|
191
|
-
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
192
|
-
if (/\$$/.test(m.pre)) {
|
|
193
|
-
for (var k = 0; k < post.length; k++) {
|
|
194
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
195
|
-
expansions.push(expansion);
|
|
196
|
-
}
|
|
197
|
-
} else {
|
|
198
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
199
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
200
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
201
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
202
|
-
if (!isSequence && !isOptions) {
|
|
203
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
204
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
205
|
-
return expand2(str);
|
|
206
|
-
}
|
|
207
|
-
return [str];
|
|
208
|
-
}
|
|
209
|
-
var n;
|
|
210
|
-
if (isSequence) {
|
|
211
|
-
n = m.body.split(/\.\./);
|
|
212
|
-
} else {
|
|
213
|
-
n = parseCommaParts(m.body);
|
|
214
|
-
if (n.length === 1) {
|
|
215
|
-
n = expand2(n[0], false).map(embrace);
|
|
216
|
-
if (n.length === 1) {
|
|
217
|
-
return post.map(function(p) {
|
|
218
|
-
return m.pre + n[0] + p;
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
var N;
|
|
224
|
-
if (isSequence) {
|
|
225
|
-
var x = numeric(n[0]);
|
|
226
|
-
var y = numeric(n[1]);
|
|
227
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
228
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
229
|
-
var test = lte;
|
|
230
|
-
var reverse = y < x;
|
|
231
|
-
if (reverse) {
|
|
232
|
-
incr *= -1;
|
|
233
|
-
test = gte;
|
|
234
|
-
}
|
|
235
|
-
var pad = n.some(isPadded);
|
|
236
|
-
N = [];
|
|
237
|
-
for (var i2 = x; test(i2, y); i2 += incr) {
|
|
238
|
-
var c;
|
|
239
|
-
if (isAlphaSequence) {
|
|
240
|
-
c = String.fromCharCode(i2);
|
|
241
|
-
if (c === "\\")
|
|
242
|
-
c = "";
|
|
243
|
-
} else {
|
|
244
|
-
c = String(i2);
|
|
245
|
-
if (pad) {
|
|
246
|
-
var need = width - c.length;
|
|
247
|
-
if (need > 0) {
|
|
248
|
-
var z = new Array(need + 1).join("0");
|
|
249
|
-
if (i2 < 0)
|
|
250
|
-
c = "-" + z + c.slice(1);
|
|
251
|
-
else
|
|
252
|
-
c = z + c;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
N.push(c);
|
|
257
|
-
}
|
|
258
|
-
} else {
|
|
259
|
-
N = [];
|
|
260
|
-
for (var j = 0; j < n.length; j++) {
|
|
261
|
-
N.push.apply(N, expand2(n[j], false));
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
for (var j = 0; j < N.length; j++) {
|
|
265
|
-
for (var k = 0; k < post.length; k++) {
|
|
266
|
-
var expansion = pre + N[j] + post[k];
|
|
267
|
-
if (!isTop || isSequence || expansion)
|
|
268
|
-
expansions.push(expansion);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return expansions;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
31
|
|
|
277
32
|
// src/utils/constants.ts
|
|
278
33
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
@@ -301,6 +56,19 @@ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
|
|
|
301
56
|
var TYPE_CONSTANT = "type";
|
|
302
57
|
var VALUE_CONSTANT = "value";
|
|
303
58
|
var SERIALIZED_PREFIX = "serialized:";
|
|
59
|
+
|
|
60
|
+
// src/utils/get-prop-descriptor.ts
|
|
61
|
+
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
62
|
+
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
63
|
+
while (obj && obj !== stopAt) {
|
|
64
|
+
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
65
|
+
if (desc && (!getOnly || desc.get)) return desc;
|
|
66
|
+
obj = Object.getPrototypeOf(obj);
|
|
67
|
+
}
|
|
68
|
+
return void 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/utils/es2022-rewire-class-members.ts
|
|
304
72
|
var reWireGetterSetter = (instance, hostRef) => {
|
|
305
73
|
var _a;
|
|
306
74
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -308,7 +76,7 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
308
76
|
members.map(([memberName, [memberFlags]]) => {
|
|
309
77
|
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
310
78
|
const ogValue = instance[memberName];
|
|
311
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
79
|
+
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
312
80
|
if (ogDescriptor) {
|
|
313
81
|
Object.defineProperty(instance, memberName, {
|
|
314
82
|
get() {
|
|
@@ -321,18 +89,14 @@ var reWireGetterSetter = (instance, hostRef) => {
|
|
|
321
89
|
enumerable: true
|
|
322
90
|
});
|
|
323
91
|
}
|
|
324
|
-
|
|
92
|
+
if (hostRef.$instanceValues$.has(memberName)) {
|
|
93
|
+
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
94
|
+
} else if (ogValue !== void 0) {
|
|
95
|
+
instance[memberName] = ogValue;
|
|
96
|
+
}
|
|
325
97
|
}
|
|
326
98
|
});
|
|
327
99
|
};
|
|
328
|
-
function getPropertyDescriptor(obj, memberName) {
|
|
329
|
-
while (obj) {
|
|
330
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
331
|
-
if (desc == null ? void 0 : desc.get) return desc;
|
|
332
|
-
obj = Object.getPrototypeOf(obj);
|
|
333
|
-
}
|
|
334
|
-
return void 0;
|
|
335
|
-
}
|
|
336
100
|
|
|
337
101
|
// src/client/client-host-ref.ts
|
|
338
102
|
var getHostRef = (ref) => {
|
|
@@ -550,1589 +314,69 @@ var plt = {
|
|
|
550
314
|
};
|
|
551
315
|
var supportsListenerOptions = /* @__PURE__ */ (() => {
|
|
552
316
|
var _a;
|
|
553
|
-
let supportsListenerOptions2 = false;
|
|
554
|
-
try {
|
|
555
|
-
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
556
|
-
"e",
|
|
557
|
-
null,
|
|
558
|
-
Object.defineProperty({}, "passive", {
|
|
559
|
-
get() {
|
|
560
|
-
supportsListenerOptions2 = true;
|
|
561
|
-
}
|
|
562
|
-
})
|
|
563
|
-
);
|
|
564
|
-
} catch (e) {
|
|
565
|
-
}
|
|
566
|
-
return supportsListenerOptions2;
|
|
567
|
-
})();
|
|
568
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
569
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
570
|
-
try {
|
|
571
|
-
if (!win.document.adoptedStyleSheets) {
|
|
572
|
-
return false;
|
|
573
|
-
}
|
|
574
|
-
new CSSStyleSheet();
|
|
575
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
576
|
-
} catch (e) {
|
|
577
|
-
}
|
|
578
|
-
return false;
|
|
579
|
-
})() ;
|
|
580
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
581
|
-
var queuePending = false;
|
|
582
|
-
var queueDomReads = [];
|
|
583
|
-
var queueDomWrites = [];
|
|
584
|
-
var queueTask = (queue, write) => (cb) => {
|
|
585
|
-
queue.push(cb);
|
|
586
|
-
if (!queuePending) {
|
|
587
|
-
queuePending = true;
|
|
588
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
589
|
-
nextTick(flush);
|
|
590
|
-
} else {
|
|
591
|
-
plt.raf(flush);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
var consume = (queue) => {
|
|
596
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
597
|
-
try {
|
|
598
|
-
queue[i2](performance.now());
|
|
599
|
-
} catch (e) {
|
|
600
|
-
consoleError(e);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
queue.length = 0;
|
|
604
|
-
};
|
|
605
|
-
var flush = () => {
|
|
606
|
-
consume(queueDomReads);
|
|
607
|
-
{
|
|
608
|
-
consume(queueDomWrites);
|
|
609
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
610
|
-
plt.raf(flush);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
615
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
616
|
-
var isComplexType = (o) => {
|
|
617
|
-
o = typeof o;
|
|
618
|
-
return o === "object" || o === "function";
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
622
|
-
var import_brace_expansion = __toESM(require_brace_expansion());
|
|
623
|
-
|
|
624
|
-
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
625
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
626
|
-
var assertValidPattern = (pattern) => {
|
|
627
|
-
if (typeof pattern !== "string") {
|
|
628
|
-
throw new TypeError("invalid pattern");
|
|
629
|
-
}
|
|
630
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
631
|
-
throw new TypeError("pattern is too long");
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
636
|
-
var posixClasses = {
|
|
637
|
-
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
638
|
-
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
639
|
-
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
640
|
-
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
641
|
-
"[:cntrl:]": ["\\p{Cc}", true],
|
|
642
|
-
"[:digit:]": ["\\p{Nd}", true],
|
|
643
|
-
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
644
|
-
"[:lower:]": ["\\p{Ll}", true],
|
|
645
|
-
"[:print:]": ["\\p{C}", true],
|
|
646
|
-
"[:punct:]": ["\\p{P}", true],
|
|
647
|
-
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
648
|
-
"[:upper:]": ["\\p{Lu}", true],
|
|
649
|
-
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
650
|
-
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
651
|
-
};
|
|
652
|
-
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
653
|
-
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
654
|
-
var rangesToString = (ranges) => ranges.join("");
|
|
655
|
-
var parseClass = (glob, position) => {
|
|
656
|
-
const pos = position;
|
|
657
|
-
if (glob.charAt(pos) !== "[") {
|
|
658
|
-
throw new Error("not in a brace expression");
|
|
659
|
-
}
|
|
660
|
-
const ranges = [];
|
|
661
|
-
const negs = [];
|
|
662
|
-
let i2 = pos + 1;
|
|
663
|
-
let sawStart = false;
|
|
664
|
-
let uflag = false;
|
|
665
|
-
let escaping = false;
|
|
666
|
-
let negate = false;
|
|
667
|
-
let endPos = pos;
|
|
668
|
-
let rangeStart = "";
|
|
669
|
-
WHILE: while (i2 < glob.length) {
|
|
670
|
-
const c = glob.charAt(i2);
|
|
671
|
-
if ((c === "!" || c === "^") && i2 === pos + 1) {
|
|
672
|
-
negate = true;
|
|
673
|
-
i2++;
|
|
674
|
-
continue;
|
|
675
|
-
}
|
|
676
|
-
if (c === "]" && sawStart && !escaping) {
|
|
677
|
-
endPos = i2 + 1;
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
sawStart = true;
|
|
681
|
-
if (c === "\\") {
|
|
682
|
-
if (!escaping) {
|
|
683
|
-
escaping = true;
|
|
684
|
-
i2++;
|
|
685
|
-
continue;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
if (c === "[" && !escaping) {
|
|
689
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
690
|
-
if (glob.startsWith(cls, i2)) {
|
|
691
|
-
if (rangeStart) {
|
|
692
|
-
return ["$.", false, glob.length - pos, true];
|
|
693
|
-
}
|
|
694
|
-
i2 += cls.length;
|
|
695
|
-
if (neg)
|
|
696
|
-
negs.push(unip);
|
|
697
|
-
else
|
|
698
|
-
ranges.push(unip);
|
|
699
|
-
uflag = uflag || u;
|
|
700
|
-
continue WHILE;
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
escaping = false;
|
|
705
|
-
if (rangeStart) {
|
|
706
|
-
if (c > rangeStart) {
|
|
707
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
708
|
-
} else if (c === rangeStart) {
|
|
709
|
-
ranges.push(braceEscape(c));
|
|
710
|
-
}
|
|
711
|
-
rangeStart = "";
|
|
712
|
-
i2++;
|
|
713
|
-
continue;
|
|
714
|
-
}
|
|
715
|
-
if (glob.startsWith("-]", i2 + 1)) {
|
|
716
|
-
ranges.push(braceEscape(c + "-"));
|
|
717
|
-
i2 += 2;
|
|
718
|
-
continue;
|
|
719
|
-
}
|
|
720
|
-
if (glob.startsWith("-", i2 + 1)) {
|
|
721
|
-
rangeStart = c;
|
|
722
|
-
i2 += 2;
|
|
723
|
-
continue;
|
|
724
|
-
}
|
|
725
|
-
ranges.push(braceEscape(c));
|
|
726
|
-
i2++;
|
|
727
|
-
}
|
|
728
|
-
if (endPos < i2) {
|
|
729
|
-
return ["", false, 0, false];
|
|
730
|
-
}
|
|
731
|
-
if (!ranges.length && !negs.length) {
|
|
732
|
-
return ["$.", false, glob.length - pos, true];
|
|
733
|
-
}
|
|
734
|
-
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
735
|
-
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
736
|
-
return [regexpEscape(r), false, endPos - pos, false];
|
|
737
|
-
}
|
|
738
|
-
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
739
|
-
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
740
|
-
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
741
|
-
return [comb, uflag, endPos - pos, true];
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
// node_modules/minimatch/dist/esm/unescape.js
|
|
745
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
746
|
-
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
// node_modules/minimatch/dist/esm/ast.js
|
|
750
|
-
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
751
|
-
var isExtglobType = (c) => types.has(c);
|
|
752
|
-
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
753
|
-
var startNoDot = "(?!\\.)";
|
|
754
|
-
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
755
|
-
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
756
|
-
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
757
|
-
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
758
|
-
var qmark = "[^/]";
|
|
759
|
-
var star = qmark + "*?";
|
|
760
|
-
var starNoEmpty = qmark + "+?";
|
|
761
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
762
|
-
var _AST = class _AST {
|
|
763
|
-
constructor(type, parent, options = {}) {
|
|
764
|
-
__privateAdd(this, _AST_instances);
|
|
765
|
-
__publicField(this, "type");
|
|
766
|
-
__privateAdd(this, _root);
|
|
767
|
-
__privateAdd(this, _hasMagic);
|
|
768
|
-
__privateAdd(this, _uflag, false);
|
|
769
|
-
__privateAdd(this, _parts, []);
|
|
770
|
-
__privateAdd(this, _parent);
|
|
771
|
-
__privateAdd(this, _parentIndex);
|
|
772
|
-
__privateAdd(this, _negs);
|
|
773
|
-
__privateAdd(this, _filledNegs, false);
|
|
774
|
-
__privateAdd(this, _options);
|
|
775
|
-
__privateAdd(this, _toString);
|
|
776
|
-
// set to true if it's an extglob with no children
|
|
777
|
-
// (which really means one child of '')
|
|
778
|
-
__privateAdd(this, _emptyExt, false);
|
|
779
|
-
this.type = type;
|
|
780
|
-
if (type)
|
|
781
|
-
__privateSet(this, _hasMagic, true);
|
|
782
|
-
__privateSet(this, _parent, parent);
|
|
783
|
-
__privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
|
|
784
|
-
__privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
|
|
785
|
-
__privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
|
|
786
|
-
if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
|
|
787
|
-
__privateGet(this, _negs).push(this);
|
|
788
|
-
__privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
|
|
789
|
-
}
|
|
790
|
-
get hasMagic() {
|
|
791
|
-
if (__privateGet(this, _hasMagic) !== void 0)
|
|
792
|
-
return __privateGet(this, _hasMagic);
|
|
793
|
-
for (const p of __privateGet(this, _parts)) {
|
|
794
|
-
if (typeof p === "string")
|
|
795
|
-
continue;
|
|
796
|
-
if (p.type || p.hasMagic)
|
|
797
|
-
return __privateSet(this, _hasMagic, true);
|
|
798
|
-
}
|
|
799
|
-
return __privateGet(this, _hasMagic);
|
|
800
|
-
}
|
|
801
|
-
// reconstructs the pattern
|
|
802
|
-
toString() {
|
|
803
|
-
if (__privateGet(this, _toString) !== void 0)
|
|
804
|
-
return __privateGet(this, _toString);
|
|
805
|
-
if (!this.type) {
|
|
806
|
-
return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
|
|
807
|
-
} else {
|
|
808
|
-
return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
push(...parts) {
|
|
812
|
-
for (const p of parts) {
|
|
813
|
-
if (p === "")
|
|
814
|
-
continue;
|
|
815
|
-
if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
|
|
816
|
-
throw new Error("invalid part: " + p);
|
|
817
|
-
}
|
|
818
|
-
__privateGet(this, _parts).push(p);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
toJSON() {
|
|
822
|
-
var _a;
|
|
823
|
-
const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
|
|
824
|
-
if (this.isStart() && !this.type)
|
|
825
|
-
ret.unshift([]);
|
|
826
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
|
|
827
|
-
ret.push({});
|
|
828
|
-
}
|
|
829
|
-
return ret;
|
|
830
|
-
}
|
|
831
|
-
isStart() {
|
|
832
|
-
var _a;
|
|
833
|
-
if (__privateGet(this, _root) === this)
|
|
834
|
-
return true;
|
|
835
|
-
if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
|
|
836
|
-
return false;
|
|
837
|
-
if (__privateGet(this, _parentIndex) === 0)
|
|
838
|
-
return true;
|
|
839
|
-
const p = __privateGet(this, _parent);
|
|
840
|
-
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
841
|
-
const pp = __privateGet(p, _parts)[i2];
|
|
842
|
-
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
843
|
-
return false;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
return true;
|
|
847
|
-
}
|
|
848
|
-
isEnd() {
|
|
849
|
-
var _a, _b, _c;
|
|
850
|
-
if (__privateGet(this, _root) === this)
|
|
851
|
-
return true;
|
|
852
|
-
if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
|
|
853
|
-
return true;
|
|
854
|
-
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
855
|
-
return false;
|
|
856
|
-
if (!this.type)
|
|
857
|
-
return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
|
|
858
|
-
const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
|
|
859
|
-
return __privateGet(this, _parentIndex) === pl - 1;
|
|
860
|
-
}
|
|
861
|
-
copyIn(part) {
|
|
862
|
-
if (typeof part === "string")
|
|
863
|
-
this.push(part);
|
|
864
|
-
else
|
|
865
|
-
this.push(part.clone(this));
|
|
866
|
-
}
|
|
867
|
-
clone(parent) {
|
|
868
|
-
const c = new _AST(this.type, parent);
|
|
869
|
-
for (const p of __privateGet(this, _parts)) {
|
|
870
|
-
c.copyIn(p);
|
|
871
|
-
}
|
|
872
|
-
return c;
|
|
873
|
-
}
|
|
874
|
-
static fromGlob(pattern, options = {}) {
|
|
875
|
-
var _a;
|
|
876
|
-
const ast = new _AST(null, void 0, options);
|
|
877
|
-
__privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
|
|
878
|
-
return ast;
|
|
879
|
-
}
|
|
880
|
-
// returns the regular expression if there's magic, or the unescaped
|
|
881
|
-
// string if not.
|
|
882
|
-
toMMPattern() {
|
|
883
|
-
if (this !== __privateGet(this, _root))
|
|
884
|
-
return __privateGet(this, _root).toMMPattern();
|
|
885
|
-
const glob = this.toString();
|
|
886
|
-
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
887
|
-
const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
888
|
-
if (!anyMagic) {
|
|
889
|
-
return body;
|
|
890
|
-
}
|
|
891
|
-
const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
|
|
892
|
-
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
893
|
-
_src: re,
|
|
894
|
-
_glob: glob
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
get options() {
|
|
898
|
-
return __privateGet(this, _options);
|
|
899
|
-
}
|
|
900
|
-
// returns the string match, the regexp source, whether there's magic
|
|
901
|
-
// in the regexp (so a regular expression is required) and whether or
|
|
902
|
-
// not the uflag is needed for the regular expression (for posix classes)
|
|
903
|
-
// TODO: instead of injecting the start/end at this point, just return
|
|
904
|
-
// the BODY of the regexp, along with the start/end portions suitable
|
|
905
|
-
// for binding the start/end in either a joined full-path makeRe context
|
|
906
|
-
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
907
|
-
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
908
|
-
//
|
|
909
|
-
// In part-matching mode, the start is:
|
|
910
|
-
// - if not isStart: nothing
|
|
911
|
-
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
912
|
-
// - if dots allowed or not possible: ^
|
|
913
|
-
// - if dots possible and not allowed: ^(?!\.)
|
|
914
|
-
// end is:
|
|
915
|
-
// - if not isEnd(): nothing
|
|
916
|
-
// - else: $
|
|
917
|
-
//
|
|
918
|
-
// In full-path matching mode, we put the slash at the START of the
|
|
919
|
-
// pattern, so start is:
|
|
920
|
-
// - if first pattern: same as part-matching mode
|
|
921
|
-
// - if not isStart(): nothing
|
|
922
|
-
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
923
|
-
// - if dots allowed or not possible: /
|
|
924
|
-
// - if dots possible and not allowed: /(?!\.)
|
|
925
|
-
// end is:
|
|
926
|
-
// - if last pattern, same as part-matching mode
|
|
927
|
-
// - else nothing
|
|
928
|
-
//
|
|
929
|
-
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
930
|
-
// there to bind the end of the negated pattern portion, and it's easier to
|
|
931
|
-
// just stick it in now rather than try to inject it later in the middle of
|
|
932
|
-
// the pattern.
|
|
933
|
-
//
|
|
934
|
-
// We can just always return the same end, and leave it up to the caller
|
|
935
|
-
// to know whether it's going to be used joined or in parts.
|
|
936
|
-
// And, if the start is adjusted slightly, can do the same there:
|
|
937
|
-
// - if not isStart: nothing
|
|
938
|
-
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
939
|
-
// - if dots allowed or not possible: (?:/|^)
|
|
940
|
-
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
941
|
-
//
|
|
942
|
-
// But it's better to have a simpler binding without a conditional, for
|
|
943
|
-
// performance, so probably better to return both start options.
|
|
944
|
-
//
|
|
945
|
-
// Then the caller just ignores the end if it's not the first pattern,
|
|
946
|
-
// and the start always gets applied.
|
|
947
|
-
//
|
|
948
|
-
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
949
|
-
// so the caller can just attach $ at the end of the pattern when building.
|
|
950
|
-
//
|
|
951
|
-
// So the todo is:
|
|
952
|
-
// - better detect what kind of start is needed
|
|
953
|
-
// - return both flavors of starting pattern
|
|
954
|
-
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
955
|
-
//
|
|
956
|
-
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
957
|
-
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
958
|
-
// that dot prevention biz to live in the extglob portions, because eg
|
|
959
|
-
// +(*|.x*) can match .xy but not .yx.
|
|
960
|
-
//
|
|
961
|
-
// So, return the two flavors if it's #root and the first child is not an
|
|
962
|
-
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
963
|
-
// use the (?:^|/) style of start binding.
|
|
964
|
-
//
|
|
965
|
-
// Even simplified further:
|
|
966
|
-
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
967
|
-
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
968
|
-
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
969
|
-
toRegExpSource(allowDot) {
|
|
970
|
-
var _a;
|
|
971
|
-
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
972
|
-
if (__privateGet(this, _root) === this)
|
|
973
|
-
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
974
|
-
if (!this.type) {
|
|
975
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
976
|
-
const src = __privateGet(this, _parts).map((p) => {
|
|
977
|
-
var _a2;
|
|
978
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
979
|
-
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
980
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
981
|
-
return re;
|
|
982
|
-
}).join("");
|
|
983
|
-
let start2 = "";
|
|
984
|
-
if (this.isStart()) {
|
|
985
|
-
if (typeof __privateGet(this, _parts)[0] === "string") {
|
|
986
|
-
const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
|
|
987
|
-
if (!dotTravAllowed) {
|
|
988
|
-
const aps = addPatternStart;
|
|
989
|
-
const needNoTrav = (
|
|
990
|
-
// dots are allowed, and the pattern starts with [ or .
|
|
991
|
-
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
992
|
-
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
993
|
-
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
994
|
-
);
|
|
995
|
-
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
996
|
-
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
let end = "";
|
|
1001
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
|
|
1002
|
-
end = "(?:$|\\/)";
|
|
1003
|
-
}
|
|
1004
|
-
const final2 = start2 + src + end;
|
|
1005
|
-
return [
|
|
1006
|
-
final2,
|
|
1007
|
-
unescape(src),
|
|
1008
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1009
|
-
__privateGet(this, _uflag)
|
|
1010
|
-
];
|
|
1011
|
-
}
|
|
1012
|
-
const repeated = this.type === "*" || this.type === "+";
|
|
1013
|
-
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
1014
|
-
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
1015
|
-
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
1016
|
-
const s = this.toString();
|
|
1017
|
-
__privateSet(this, _parts, [s]);
|
|
1018
|
-
this.type = null;
|
|
1019
|
-
__privateSet(this, _hasMagic, void 0);
|
|
1020
|
-
return [s, unescape(this.toString()), false, false];
|
|
1021
|
-
}
|
|
1022
|
-
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
1023
|
-
if (bodyDotAllowed === body) {
|
|
1024
|
-
bodyDotAllowed = "";
|
|
1025
|
-
}
|
|
1026
|
-
if (bodyDotAllowed) {
|
|
1027
|
-
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
1028
|
-
}
|
|
1029
|
-
let final = "";
|
|
1030
|
-
if (this.type === "!" && __privateGet(this, _emptyExt)) {
|
|
1031
|
-
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
1032
|
-
} else {
|
|
1033
|
-
const close = this.type === "!" ? (
|
|
1034
|
-
// !() must match something,but !(x) can match ''
|
|
1035
|
-
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
1036
|
-
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
1037
|
-
final = start + body + close;
|
|
1038
|
-
}
|
|
1039
|
-
return [
|
|
1040
|
-
final,
|
|
1041
|
-
unescape(body),
|
|
1042
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1043
|
-
__privateGet(this, _uflag)
|
|
1044
|
-
];
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
_root = new WeakMap();
|
|
1048
|
-
_hasMagic = new WeakMap();
|
|
1049
|
-
_uflag = new WeakMap();
|
|
1050
|
-
_parts = new WeakMap();
|
|
1051
|
-
_parent = new WeakMap();
|
|
1052
|
-
_parentIndex = new WeakMap();
|
|
1053
|
-
_negs = new WeakMap();
|
|
1054
|
-
_filledNegs = new WeakMap();
|
|
1055
|
-
_options = new WeakMap();
|
|
1056
|
-
_toString = new WeakMap();
|
|
1057
|
-
_emptyExt = new WeakMap();
|
|
1058
|
-
_AST_instances = new WeakSet();
|
|
1059
|
-
fillNegs_fn = function() {
|
|
1060
|
-
if (this !== __privateGet(this, _root))
|
|
1061
|
-
throw new Error("should only call on root");
|
|
1062
|
-
if (__privateGet(this, _filledNegs))
|
|
1063
|
-
return this;
|
|
1064
|
-
this.toString();
|
|
1065
|
-
__privateSet(this, _filledNegs, true);
|
|
1066
|
-
let n;
|
|
1067
|
-
while (n = __privateGet(this, _negs).pop()) {
|
|
1068
|
-
if (n.type !== "!")
|
|
1069
|
-
continue;
|
|
1070
|
-
let p = n;
|
|
1071
|
-
let pp = __privateGet(p, _parent);
|
|
1072
|
-
while (pp) {
|
|
1073
|
-
for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
|
|
1074
|
-
for (const part of __privateGet(n, _parts)) {
|
|
1075
|
-
if (typeof part === "string") {
|
|
1076
|
-
throw new Error("string part in extglob AST??");
|
|
1077
|
-
}
|
|
1078
|
-
part.copyIn(__privateGet(pp, _parts)[i2]);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
p = pp;
|
|
1082
|
-
pp = __privateGet(p, _parent);
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
return this;
|
|
1086
|
-
};
|
|
1087
|
-
_AST_static = new WeakSet();
|
|
1088
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
1089
|
-
var _a, _b;
|
|
1090
|
-
let escaping = false;
|
|
1091
|
-
let inBrace = false;
|
|
1092
|
-
let braceStart = -1;
|
|
1093
|
-
let braceNeg = false;
|
|
1094
|
-
if (ast.type === null) {
|
|
1095
|
-
let i3 = pos;
|
|
1096
|
-
let acc2 = "";
|
|
1097
|
-
while (i3 < str.length) {
|
|
1098
|
-
const c = str.charAt(i3++);
|
|
1099
|
-
if (escaping || c === "\\") {
|
|
1100
|
-
escaping = !escaping;
|
|
1101
|
-
acc2 += c;
|
|
1102
|
-
continue;
|
|
1103
|
-
}
|
|
1104
|
-
if (inBrace) {
|
|
1105
|
-
if (i3 === braceStart + 1) {
|
|
1106
|
-
if (c === "^" || c === "!") {
|
|
1107
|
-
braceNeg = true;
|
|
1108
|
-
}
|
|
1109
|
-
} else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
|
|
1110
|
-
inBrace = false;
|
|
1111
|
-
}
|
|
1112
|
-
acc2 += c;
|
|
1113
|
-
continue;
|
|
1114
|
-
} else if (c === "[") {
|
|
1115
|
-
inBrace = true;
|
|
1116
|
-
braceStart = i3;
|
|
1117
|
-
braceNeg = false;
|
|
1118
|
-
acc2 += c;
|
|
1119
|
-
continue;
|
|
1120
|
-
}
|
|
1121
|
-
if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
|
|
1122
|
-
ast.push(acc2);
|
|
1123
|
-
acc2 = "";
|
|
1124
|
-
const ext2 = new _AST(c, ast);
|
|
1125
|
-
i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
|
|
1126
|
-
ast.push(ext2);
|
|
1127
|
-
continue;
|
|
1128
|
-
}
|
|
1129
|
-
acc2 += c;
|
|
1130
|
-
}
|
|
1131
|
-
ast.push(acc2);
|
|
1132
|
-
return i3;
|
|
1133
|
-
}
|
|
1134
|
-
let i2 = pos + 1;
|
|
1135
|
-
let part = new _AST(null, ast);
|
|
1136
|
-
const parts = [];
|
|
1137
|
-
let acc = "";
|
|
1138
|
-
while (i2 < str.length) {
|
|
1139
|
-
const c = str.charAt(i2++);
|
|
1140
|
-
if (escaping || c === "\\") {
|
|
1141
|
-
escaping = !escaping;
|
|
1142
|
-
acc += c;
|
|
1143
|
-
continue;
|
|
1144
|
-
}
|
|
1145
|
-
if (inBrace) {
|
|
1146
|
-
if (i2 === braceStart + 1) {
|
|
1147
|
-
if (c === "^" || c === "!") {
|
|
1148
|
-
braceNeg = true;
|
|
1149
|
-
}
|
|
1150
|
-
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
1151
|
-
inBrace = false;
|
|
1152
|
-
}
|
|
1153
|
-
acc += c;
|
|
1154
|
-
continue;
|
|
1155
|
-
} else if (c === "[") {
|
|
1156
|
-
inBrace = true;
|
|
1157
|
-
braceStart = i2;
|
|
1158
|
-
braceNeg = false;
|
|
1159
|
-
acc += c;
|
|
1160
|
-
continue;
|
|
1161
|
-
}
|
|
1162
|
-
if (isExtglobType(c) && str.charAt(i2) === "(") {
|
|
1163
|
-
part.push(acc);
|
|
1164
|
-
acc = "";
|
|
1165
|
-
const ext2 = new _AST(c, part);
|
|
1166
|
-
part.push(ext2);
|
|
1167
|
-
i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
|
|
1168
|
-
continue;
|
|
1169
|
-
}
|
|
1170
|
-
if (c === "|") {
|
|
1171
|
-
part.push(acc);
|
|
1172
|
-
acc = "";
|
|
1173
|
-
parts.push(part);
|
|
1174
|
-
part = new _AST(null, ast);
|
|
1175
|
-
continue;
|
|
1176
|
-
}
|
|
1177
|
-
if (c === ")") {
|
|
1178
|
-
if (acc === "" && __privateGet(ast, _parts).length === 0) {
|
|
1179
|
-
__privateSet(ast, _emptyExt, true);
|
|
1180
|
-
}
|
|
1181
|
-
part.push(acc);
|
|
1182
|
-
acc = "";
|
|
1183
|
-
ast.push(...parts, part);
|
|
1184
|
-
return i2;
|
|
1185
|
-
}
|
|
1186
|
-
acc += c;
|
|
1187
|
-
}
|
|
1188
|
-
ast.type = null;
|
|
1189
|
-
__privateSet(ast, _hasMagic, void 0);
|
|
1190
|
-
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
1191
|
-
return i2;
|
|
1192
|
-
};
|
|
1193
|
-
partsToRegExp_fn = function(dot) {
|
|
1194
|
-
return __privateGet(this, _parts).map((p) => {
|
|
1195
|
-
if (typeof p === "string") {
|
|
1196
|
-
throw new Error("string type in extglob ast??");
|
|
1197
|
-
}
|
|
1198
|
-
const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
|
|
1199
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1200
|
-
return re;
|
|
1201
|
-
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
1202
|
-
};
|
|
1203
|
-
parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
1204
|
-
let escaping = false;
|
|
1205
|
-
let re = "";
|
|
1206
|
-
let uflag = false;
|
|
1207
|
-
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1208
|
-
const c = glob.charAt(i2);
|
|
1209
|
-
if (escaping) {
|
|
1210
|
-
escaping = false;
|
|
1211
|
-
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1212
|
-
continue;
|
|
1213
|
-
}
|
|
1214
|
-
if (c === "\\") {
|
|
1215
|
-
if (i2 === glob.length - 1) {
|
|
1216
|
-
re += "\\\\";
|
|
1217
|
-
} else {
|
|
1218
|
-
escaping = true;
|
|
1219
|
-
}
|
|
1220
|
-
continue;
|
|
1221
|
-
}
|
|
1222
|
-
if (c === "[") {
|
|
1223
|
-
const [src, needUflag, consumed, magic] = parseClass(glob, i2);
|
|
1224
|
-
if (consumed) {
|
|
1225
|
-
re += src;
|
|
1226
|
-
uflag = uflag || needUflag;
|
|
1227
|
-
i2 += consumed - 1;
|
|
1228
|
-
hasMagic = hasMagic || magic;
|
|
1229
|
-
continue;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
if (c === "*") {
|
|
1233
|
-
if (noEmpty && glob === "*")
|
|
1234
|
-
re += starNoEmpty;
|
|
1235
|
-
else
|
|
1236
|
-
re += star;
|
|
1237
|
-
hasMagic = true;
|
|
1238
|
-
continue;
|
|
1239
|
-
}
|
|
1240
|
-
if (c === "?") {
|
|
1241
|
-
re += qmark;
|
|
1242
|
-
hasMagic = true;
|
|
1243
|
-
continue;
|
|
1244
|
-
}
|
|
1245
|
-
re += regExpEscape(c);
|
|
1246
|
-
}
|
|
1247
|
-
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1248
|
-
};
|
|
1249
|
-
__privateAdd(_AST, _AST_static);
|
|
1250
|
-
var AST = _AST;
|
|
1251
|
-
|
|
1252
|
-
// node_modules/minimatch/dist/esm/escape.js
|
|
1253
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1254
|
-
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
1258
|
-
var minimatch = (p, pattern, options = {}) => {
|
|
1259
|
-
assertValidPattern(pattern);
|
|
1260
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1261
|
-
return false;
|
|
1262
|
-
}
|
|
1263
|
-
return new Minimatch(pattern, options).match(p);
|
|
1264
|
-
};
|
|
1265
|
-
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1266
|
-
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
1267
|
-
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
1268
|
-
var starDotExtTestNocase = (ext2) => {
|
|
1269
|
-
ext2 = ext2.toLowerCase();
|
|
1270
|
-
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
1271
|
-
};
|
|
1272
|
-
var starDotExtTestNocaseDot = (ext2) => {
|
|
1273
|
-
ext2 = ext2.toLowerCase();
|
|
1274
|
-
return (f) => f.toLowerCase().endsWith(ext2);
|
|
1275
|
-
};
|
|
1276
|
-
var starDotStarRE = /^\*+\.\*+$/;
|
|
1277
|
-
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
1278
|
-
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
1279
|
-
var dotStarRE = /^\.\*+$/;
|
|
1280
|
-
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
1281
|
-
var starRE = /^\*+$/;
|
|
1282
|
-
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
1283
|
-
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
1284
|
-
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
1285
|
-
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
1286
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1287
|
-
if (!ext2)
|
|
1288
|
-
return noext;
|
|
1289
|
-
ext2 = ext2.toLowerCase();
|
|
1290
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1291
|
-
};
|
|
1292
|
-
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
1293
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1294
|
-
if (!ext2)
|
|
1295
|
-
return noext;
|
|
1296
|
-
ext2 = ext2.toLowerCase();
|
|
1297
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1298
|
-
};
|
|
1299
|
-
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
1300
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1301
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1302
|
-
};
|
|
1303
|
-
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
1304
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1305
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1306
|
-
};
|
|
1307
|
-
var qmarksTestNoExt = ([$0]) => {
|
|
1308
|
-
const len = $0.length;
|
|
1309
|
-
return (f) => f.length === len && !f.startsWith(".");
|
|
1310
|
-
};
|
|
1311
|
-
var qmarksTestNoExtDot = ([$0]) => {
|
|
1312
|
-
const len = $0.length;
|
|
1313
|
-
return (f) => f.length === len && f !== "." && f !== "..";
|
|
1314
|
-
};
|
|
1315
|
-
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1316
|
-
var path = {
|
|
1317
|
-
win32: { sep: "\\" },
|
|
1318
|
-
posix: { sep: "/" }
|
|
1319
|
-
};
|
|
1320
|
-
var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
1321
|
-
minimatch.sep = sep;
|
|
1322
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
1323
|
-
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1324
|
-
var qmark2 = "[^/]";
|
|
1325
|
-
var star2 = qmark2 + "*?";
|
|
1326
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1327
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1328
|
-
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1329
|
-
minimatch.filter = filter;
|
|
1330
|
-
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1331
|
-
var defaults = (def) => {
|
|
1332
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1333
|
-
return minimatch;
|
|
1334
|
-
}
|
|
1335
|
-
const orig = minimatch;
|
|
1336
|
-
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1337
|
-
return Object.assign(m, {
|
|
1338
|
-
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1339
|
-
constructor(pattern, options = {}) {
|
|
1340
|
-
super(pattern, ext(def, options));
|
|
1341
|
-
}
|
|
1342
|
-
static defaults(options) {
|
|
1343
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
AST: class AST extends orig.AST {
|
|
1347
|
-
/* c8 ignore start */
|
|
1348
|
-
constructor(type, parent, options = {}) {
|
|
1349
|
-
super(type, parent, ext(def, options));
|
|
1350
|
-
}
|
|
1351
|
-
/* c8 ignore stop */
|
|
1352
|
-
static fromGlob(pattern, options = {}) {
|
|
1353
|
-
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1357
|
-
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1358
|
-
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1359
|
-
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1360
|
-
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1361
|
-
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1362
|
-
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1363
|
-
sep: orig.sep,
|
|
1364
|
-
GLOBSTAR
|
|
1365
|
-
});
|
|
1366
|
-
};
|
|
1367
|
-
minimatch.defaults = defaults;
|
|
1368
|
-
var braceExpand = (pattern, options = {}) => {
|
|
1369
|
-
assertValidPattern(pattern);
|
|
1370
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1371
|
-
return [pattern];
|
|
1372
|
-
}
|
|
1373
|
-
return (0, import_brace_expansion.default)(pattern);
|
|
1374
|
-
};
|
|
1375
|
-
minimatch.braceExpand = braceExpand;
|
|
1376
|
-
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1377
|
-
minimatch.makeRe = makeRe;
|
|
1378
|
-
var match = (list, pattern, options = {}) => {
|
|
1379
|
-
const mm = new Minimatch(pattern, options);
|
|
1380
|
-
list = list.filter((f) => mm.match(f));
|
|
1381
|
-
if (mm.options.nonull && !list.length) {
|
|
1382
|
-
list.push(pattern);
|
|
1383
|
-
}
|
|
1384
|
-
return list;
|
|
1385
|
-
};
|
|
1386
|
-
minimatch.match = match;
|
|
1387
|
-
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1388
|
-
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1389
|
-
var Minimatch = class {
|
|
1390
|
-
options;
|
|
1391
|
-
set;
|
|
1392
|
-
pattern;
|
|
1393
|
-
windowsPathsNoEscape;
|
|
1394
|
-
nonegate;
|
|
1395
|
-
negate;
|
|
1396
|
-
comment;
|
|
1397
|
-
empty;
|
|
1398
|
-
preserveMultipleSlashes;
|
|
1399
|
-
partial;
|
|
1400
|
-
globSet;
|
|
1401
|
-
globParts;
|
|
1402
|
-
nocase;
|
|
1403
|
-
isWindows;
|
|
1404
|
-
platform;
|
|
1405
|
-
windowsNoMagicRoot;
|
|
1406
|
-
regexp;
|
|
1407
|
-
constructor(pattern, options = {}) {
|
|
1408
|
-
assertValidPattern(pattern);
|
|
1409
|
-
options = options || {};
|
|
1410
|
-
this.options = options;
|
|
1411
|
-
this.pattern = pattern;
|
|
1412
|
-
this.platform = options.platform || defaultPlatform;
|
|
1413
|
-
this.isWindows = this.platform === "win32";
|
|
1414
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
|
|
1415
|
-
if (this.windowsPathsNoEscape) {
|
|
1416
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1417
|
-
}
|
|
1418
|
-
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1419
|
-
this.regexp = null;
|
|
1420
|
-
this.negate = false;
|
|
1421
|
-
this.nonegate = !!options.nonegate;
|
|
1422
|
-
this.comment = false;
|
|
1423
|
-
this.empty = false;
|
|
1424
|
-
this.partial = !!options.partial;
|
|
1425
|
-
this.nocase = !!this.options.nocase;
|
|
1426
|
-
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1427
|
-
this.globSet = [];
|
|
1428
|
-
this.globParts = [];
|
|
1429
|
-
this.set = [];
|
|
1430
|
-
this.make();
|
|
1431
|
-
}
|
|
1432
|
-
hasMagic() {
|
|
1433
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
1434
|
-
return true;
|
|
1435
|
-
}
|
|
1436
|
-
for (const pattern of this.set) {
|
|
1437
|
-
for (const part of pattern) {
|
|
1438
|
-
if (typeof part !== "string")
|
|
1439
|
-
return true;
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
return false;
|
|
1443
|
-
}
|
|
1444
|
-
debug(..._) {
|
|
1445
|
-
}
|
|
1446
|
-
make() {
|
|
1447
|
-
const pattern = this.pattern;
|
|
1448
|
-
const options = this.options;
|
|
1449
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1450
|
-
this.comment = true;
|
|
1451
|
-
return;
|
|
1452
|
-
}
|
|
1453
|
-
if (!pattern) {
|
|
1454
|
-
this.empty = true;
|
|
1455
|
-
return;
|
|
1456
|
-
}
|
|
1457
|
-
this.parseNegate();
|
|
1458
|
-
this.globSet = [...new Set(this.braceExpand())];
|
|
1459
|
-
if (options.debug) {
|
|
1460
|
-
this.debug = (...args) => console.error(...args);
|
|
1461
|
-
}
|
|
1462
|
-
this.debug(this.pattern, this.globSet);
|
|
1463
|
-
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1464
|
-
this.globParts = this.preprocess(rawGlobParts);
|
|
1465
|
-
this.debug(this.pattern, this.globParts);
|
|
1466
|
-
let set = this.globParts.map((s, _, __) => {
|
|
1467
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1468
|
-
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1469
|
-
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1470
|
-
if (isUNC) {
|
|
1471
|
-
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1472
|
-
} else if (isDrive) {
|
|
1473
|
-
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
return s.map((ss) => this.parse(ss));
|
|
1477
|
-
});
|
|
1478
|
-
this.debug(this.pattern, set);
|
|
1479
|
-
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1480
|
-
if (this.isWindows) {
|
|
1481
|
-
for (let i2 = 0; i2 < this.set.length; i2++) {
|
|
1482
|
-
const p = this.set[i2];
|
|
1483
|
-
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
1484
|
-
p[2] = "?";
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
this.debug(this.pattern, this.set);
|
|
1489
|
-
}
|
|
1490
|
-
// various transforms to equivalent pattern sets that are
|
|
1491
|
-
// faster to process in a filesystem walk. The goal is to
|
|
1492
|
-
// eliminate what we can, and push all ** patterns as far
|
|
1493
|
-
// to the right as possible, even if it increases the number
|
|
1494
|
-
// of patterns that we have to process.
|
|
1495
|
-
preprocess(globParts) {
|
|
1496
|
-
if (this.options.noglobstar) {
|
|
1497
|
-
for (let i2 = 0; i2 < globParts.length; i2++) {
|
|
1498
|
-
for (let j = 0; j < globParts[i2].length; j++) {
|
|
1499
|
-
if (globParts[i2][j] === "**") {
|
|
1500
|
-
globParts[i2][j] = "*";
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1506
|
-
if (optimizationLevel >= 2) {
|
|
1507
|
-
globParts = this.firstPhasePreProcess(globParts);
|
|
1508
|
-
globParts = this.secondPhasePreProcess(globParts);
|
|
1509
|
-
} else if (optimizationLevel >= 1) {
|
|
1510
|
-
globParts = this.levelOneOptimize(globParts);
|
|
1511
|
-
} else {
|
|
1512
|
-
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1513
|
-
}
|
|
1514
|
-
return globParts;
|
|
1515
|
-
}
|
|
1516
|
-
// just get rid of adjascent ** portions
|
|
1517
|
-
adjascentGlobstarOptimize(globParts) {
|
|
1518
|
-
return globParts.map((parts) => {
|
|
1519
|
-
let gs = -1;
|
|
1520
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1521
|
-
let i2 = gs;
|
|
1522
|
-
while (parts[i2 + 1] === "**") {
|
|
1523
|
-
i2++;
|
|
1524
|
-
}
|
|
1525
|
-
if (i2 !== gs) {
|
|
1526
|
-
parts.splice(gs, i2 - gs);
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
return parts;
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
// get rid of adjascent ** and resolve .. portions
|
|
1533
|
-
levelOneOptimize(globParts) {
|
|
1534
|
-
return globParts.map((parts) => {
|
|
1535
|
-
parts = parts.reduce((set, part) => {
|
|
1536
|
-
const prev = set[set.length - 1];
|
|
1537
|
-
if (part === "**" && prev === "**") {
|
|
1538
|
-
return set;
|
|
1539
|
-
}
|
|
1540
|
-
if (part === "..") {
|
|
1541
|
-
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1542
|
-
set.pop();
|
|
1543
|
-
return set;
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
set.push(part);
|
|
1547
|
-
return set;
|
|
1548
|
-
}, []);
|
|
1549
|
-
return parts.length === 0 ? [""] : parts;
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
levelTwoFileOptimize(parts) {
|
|
1553
|
-
if (!Array.isArray(parts)) {
|
|
1554
|
-
parts = this.slashSplit(parts);
|
|
1555
|
-
}
|
|
1556
|
-
let didSomething = false;
|
|
1557
|
-
do {
|
|
1558
|
-
didSomething = false;
|
|
1559
|
-
if (!this.preserveMultipleSlashes) {
|
|
1560
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1561
|
-
const p = parts[i2];
|
|
1562
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1563
|
-
continue;
|
|
1564
|
-
if (p === "." || p === "") {
|
|
1565
|
-
didSomething = true;
|
|
1566
|
-
parts.splice(i2, 1);
|
|
1567
|
-
i2--;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1571
|
-
didSomething = true;
|
|
1572
|
-
parts.pop();
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
let dd = 0;
|
|
1576
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1577
|
-
const p = parts[dd - 1];
|
|
1578
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1579
|
-
didSomething = true;
|
|
1580
|
-
parts.splice(dd - 1, 2);
|
|
1581
|
-
dd -= 2;
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
} while (didSomething);
|
|
1585
|
-
return parts.length === 0 ? [""] : parts;
|
|
1586
|
-
}
|
|
1587
|
-
// First phase: single-pattern processing
|
|
1588
|
-
// <pre> is 1 or more portions
|
|
1589
|
-
// <rest> is 1 or more portions
|
|
1590
|
-
// <p> is any portion other than ., .., '', or **
|
|
1591
|
-
// <e> is . or ''
|
|
1592
|
-
//
|
|
1593
|
-
// **/.. is *brutal* for filesystem walking performance, because
|
|
1594
|
-
// it effectively resets the recursive walk each time it occurs,
|
|
1595
|
-
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
1596
|
-
// or most strings (other than .., ., and '') can be.
|
|
1597
|
-
//
|
|
1598
|
-
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
1599
|
-
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
1600
|
-
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
1601
|
-
// **/**/<rest> -> **/<rest>
|
|
1602
|
-
//
|
|
1603
|
-
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
1604
|
-
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
1605
|
-
firstPhasePreProcess(globParts) {
|
|
1606
|
-
let didSomething = false;
|
|
1607
|
-
do {
|
|
1608
|
-
didSomething = false;
|
|
1609
|
-
for (let parts of globParts) {
|
|
1610
|
-
let gs = -1;
|
|
1611
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1612
|
-
let gss = gs;
|
|
1613
|
-
while (parts[gss + 1] === "**") {
|
|
1614
|
-
gss++;
|
|
1615
|
-
}
|
|
1616
|
-
if (gss > gs) {
|
|
1617
|
-
parts.splice(gs + 1, gss - gs);
|
|
1618
|
-
}
|
|
1619
|
-
let next = parts[gs + 1];
|
|
1620
|
-
const p = parts[gs + 2];
|
|
1621
|
-
const p2 = parts[gs + 3];
|
|
1622
|
-
if (next !== "..")
|
|
1623
|
-
continue;
|
|
1624
|
-
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
1625
|
-
continue;
|
|
1626
|
-
}
|
|
1627
|
-
didSomething = true;
|
|
1628
|
-
parts.splice(gs, 1);
|
|
1629
|
-
const other = parts.slice(0);
|
|
1630
|
-
other[gs] = "**";
|
|
1631
|
-
globParts.push(other);
|
|
1632
|
-
gs--;
|
|
1633
|
-
}
|
|
1634
|
-
if (!this.preserveMultipleSlashes) {
|
|
1635
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1636
|
-
const p = parts[i2];
|
|
1637
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1638
|
-
continue;
|
|
1639
|
-
if (p === "." || p === "") {
|
|
1640
|
-
didSomething = true;
|
|
1641
|
-
parts.splice(i2, 1);
|
|
1642
|
-
i2--;
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1646
|
-
didSomething = true;
|
|
1647
|
-
parts.pop();
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
let dd = 0;
|
|
1651
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1652
|
-
const p = parts[dd - 1];
|
|
1653
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1654
|
-
didSomething = true;
|
|
1655
|
-
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
1656
|
-
const splin = needDot ? ["."] : [];
|
|
1657
|
-
parts.splice(dd - 1, 2, ...splin);
|
|
1658
|
-
if (parts.length === 0)
|
|
1659
|
-
parts.push("");
|
|
1660
|
-
dd -= 2;
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
} while (didSomething);
|
|
1665
|
-
return globParts;
|
|
1666
|
-
}
|
|
1667
|
-
// second phase: multi-pattern dedupes
|
|
1668
|
-
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
1669
|
-
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
1670
|
-
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
1671
|
-
//
|
|
1672
|
-
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
1673
|
-
// ^-- not valid because ** doens't follow symlinks
|
|
1674
|
-
secondPhasePreProcess(globParts) {
|
|
1675
|
-
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1676
|
-
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1677
|
-
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1678
|
-
if (!matched)
|
|
1679
|
-
continue;
|
|
1680
|
-
globParts[i2] = matched;
|
|
1681
|
-
globParts[j] = [];
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
return globParts.filter((gs) => gs.length);
|
|
1685
|
-
}
|
|
1686
|
-
partsMatch(a, b, emptyGSMatch = false) {
|
|
1687
|
-
let ai = 0;
|
|
1688
|
-
let bi = 0;
|
|
1689
|
-
let result = [];
|
|
1690
|
-
let which = "";
|
|
1691
|
-
while (ai < a.length && bi < b.length) {
|
|
1692
|
-
if (a[ai] === b[bi]) {
|
|
1693
|
-
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1694
|
-
ai++;
|
|
1695
|
-
bi++;
|
|
1696
|
-
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1697
|
-
result.push(a[ai]);
|
|
1698
|
-
ai++;
|
|
1699
|
-
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1700
|
-
result.push(b[bi]);
|
|
1701
|
-
bi++;
|
|
1702
|
-
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1703
|
-
if (which === "b")
|
|
1704
|
-
return false;
|
|
1705
|
-
which = "a";
|
|
1706
|
-
result.push(a[ai]);
|
|
1707
|
-
ai++;
|
|
1708
|
-
bi++;
|
|
1709
|
-
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1710
|
-
if (which === "a")
|
|
1711
|
-
return false;
|
|
1712
|
-
which = "b";
|
|
1713
|
-
result.push(b[bi]);
|
|
1714
|
-
ai++;
|
|
1715
|
-
bi++;
|
|
1716
|
-
} else {
|
|
1717
|
-
return false;
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
return a.length === b.length && result;
|
|
1721
|
-
}
|
|
1722
|
-
parseNegate() {
|
|
1723
|
-
if (this.nonegate)
|
|
1724
|
-
return;
|
|
1725
|
-
const pattern = this.pattern;
|
|
1726
|
-
let negate = false;
|
|
1727
|
-
let negateOffset = 0;
|
|
1728
|
-
for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
|
|
1729
|
-
negate = !negate;
|
|
1730
|
-
negateOffset++;
|
|
1731
|
-
}
|
|
1732
|
-
if (negateOffset)
|
|
1733
|
-
this.pattern = pattern.slice(negateOffset);
|
|
1734
|
-
this.negate = negate;
|
|
1735
|
-
}
|
|
1736
|
-
// set partial to true to test if, for example,
|
|
1737
|
-
// "/a/b" matches the start of "/*/b/*/d"
|
|
1738
|
-
// Partial means, if you run out of file before you run
|
|
1739
|
-
// out of pattern, then that's fine, as long as all
|
|
1740
|
-
// the parts match.
|
|
1741
|
-
matchOne(file, pattern, partial = false) {
|
|
1742
|
-
const options = this.options;
|
|
1743
|
-
if (this.isWindows) {
|
|
1744
|
-
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1745
|
-
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1746
|
-
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1747
|
-
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1748
|
-
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1749
|
-
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1750
|
-
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1751
|
-
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1752
|
-
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1753
|
-
pattern[pdi] = fd;
|
|
1754
|
-
if (pdi > fdi) {
|
|
1755
|
-
pattern = pattern.slice(pdi);
|
|
1756
|
-
} else if (fdi > pdi) {
|
|
1757
|
-
file = file.slice(fdi);
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
}
|
|
1762
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1763
|
-
if (optimizationLevel >= 2) {
|
|
1764
|
-
file = this.levelTwoFileOptimize(file);
|
|
1765
|
-
}
|
|
1766
|
-
this.debug("matchOne", this, { file, pattern });
|
|
1767
|
-
this.debug("matchOne", file.length, pattern.length);
|
|
1768
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1769
|
-
this.debug("matchOne loop");
|
|
1770
|
-
var p = pattern[pi];
|
|
1771
|
-
var f = file[fi];
|
|
1772
|
-
this.debug(pattern, p, f);
|
|
1773
|
-
if (p === false) {
|
|
1774
|
-
return false;
|
|
1775
|
-
}
|
|
1776
|
-
if (p === GLOBSTAR) {
|
|
1777
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1778
|
-
var fr = fi;
|
|
1779
|
-
var pr = pi + 1;
|
|
1780
|
-
if (pr === pl) {
|
|
1781
|
-
this.debug("** at the end");
|
|
1782
|
-
for (; fi < fl; fi++) {
|
|
1783
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1784
|
-
return false;
|
|
1785
|
-
}
|
|
1786
|
-
return true;
|
|
1787
|
-
}
|
|
1788
|
-
while (fr < fl) {
|
|
1789
|
-
var swallowee = file[fr];
|
|
1790
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1791
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1792
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1793
|
-
return true;
|
|
1794
|
-
} else {
|
|
1795
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1796
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1797
|
-
break;
|
|
1798
|
-
}
|
|
1799
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1800
|
-
fr++;
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
if (partial) {
|
|
1804
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1805
|
-
if (fr === fl) {
|
|
1806
|
-
return true;
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
return false;
|
|
1810
|
-
}
|
|
1811
|
-
let hit;
|
|
1812
|
-
if (typeof p === "string") {
|
|
1813
|
-
hit = f === p;
|
|
1814
|
-
this.debug("string match", p, f, hit);
|
|
1815
|
-
} else {
|
|
1816
|
-
hit = p.test(f);
|
|
1817
|
-
this.debug("pattern match", p, f, hit);
|
|
1818
|
-
}
|
|
1819
|
-
if (!hit)
|
|
1820
|
-
return false;
|
|
1821
|
-
}
|
|
1822
|
-
if (fi === fl && pi === pl) {
|
|
1823
|
-
return true;
|
|
1824
|
-
} else if (fi === fl) {
|
|
1825
|
-
return partial;
|
|
1826
|
-
} else if (pi === pl) {
|
|
1827
|
-
return fi === fl - 1 && file[fi] === "";
|
|
1828
|
-
} else {
|
|
1829
|
-
throw new Error("wtf?");
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
braceExpand() {
|
|
1833
|
-
return braceExpand(this.pattern, this.options);
|
|
1834
|
-
}
|
|
1835
|
-
parse(pattern) {
|
|
1836
|
-
assertValidPattern(pattern);
|
|
1837
|
-
const options = this.options;
|
|
1838
|
-
if (pattern === "**")
|
|
1839
|
-
return GLOBSTAR;
|
|
1840
|
-
if (pattern === "")
|
|
1841
|
-
return "";
|
|
1842
|
-
let m;
|
|
1843
|
-
let fastTest = null;
|
|
1844
|
-
if (m = pattern.match(starRE)) {
|
|
1845
|
-
fastTest = options.dot ? starTestDot : starTest;
|
|
1846
|
-
} else if (m = pattern.match(starDotExtRE)) {
|
|
1847
|
-
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
1848
|
-
} else if (m = pattern.match(qmarksRE)) {
|
|
1849
|
-
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
1850
|
-
} else if (m = pattern.match(starDotStarRE)) {
|
|
1851
|
-
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
1852
|
-
} else if (m = pattern.match(dotStarRE)) {
|
|
1853
|
-
fastTest = dotStarTest;
|
|
1854
|
-
}
|
|
1855
|
-
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
1856
|
-
if (fastTest && typeof re === "object") {
|
|
1857
|
-
Reflect.defineProperty(re, "test", { value: fastTest });
|
|
1858
|
-
}
|
|
1859
|
-
return re;
|
|
1860
|
-
}
|
|
1861
|
-
makeRe() {
|
|
1862
|
-
if (this.regexp || this.regexp === false)
|
|
1863
|
-
return this.regexp;
|
|
1864
|
-
const set = this.set;
|
|
1865
|
-
if (!set.length) {
|
|
1866
|
-
this.regexp = false;
|
|
1867
|
-
return this.regexp;
|
|
1868
|
-
}
|
|
1869
|
-
const options = this.options;
|
|
1870
|
-
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
1871
|
-
const flags = new Set(options.nocase ? ["i"] : []);
|
|
1872
|
-
let re = set.map((pattern) => {
|
|
1873
|
-
const pp = pattern.map((p) => {
|
|
1874
|
-
if (p instanceof RegExp) {
|
|
1875
|
-
for (const f of p.flags.split(""))
|
|
1876
|
-
flags.add(f);
|
|
1877
|
-
}
|
|
1878
|
-
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
1879
|
-
});
|
|
1880
|
-
pp.forEach((p, i2) => {
|
|
1881
|
-
const next = pp[i2 + 1];
|
|
1882
|
-
const prev = pp[i2 - 1];
|
|
1883
|
-
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
1884
|
-
return;
|
|
1885
|
-
}
|
|
1886
|
-
if (prev === void 0) {
|
|
1887
|
-
if (next !== void 0 && next !== GLOBSTAR) {
|
|
1888
|
-
pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
1889
|
-
} else {
|
|
1890
|
-
pp[i2] = twoStar;
|
|
1891
|
-
}
|
|
1892
|
-
} else if (next === void 0) {
|
|
1893
|
-
pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
|
|
1894
|
-
} else if (next !== GLOBSTAR) {
|
|
1895
|
-
pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
1896
|
-
pp[i2 + 1] = GLOBSTAR;
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
|
1900
|
-
}).join("|");
|
|
1901
|
-
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
1902
|
-
re = "^" + open + re + close + "$";
|
|
1903
|
-
if (this.negate)
|
|
1904
|
-
re = "^(?!" + re + ").+$";
|
|
1905
|
-
try {
|
|
1906
|
-
this.regexp = new RegExp(re, [...flags].join(""));
|
|
1907
|
-
} catch (ex) {
|
|
1908
|
-
this.regexp = false;
|
|
1909
|
-
}
|
|
1910
|
-
return this.regexp;
|
|
1911
|
-
}
|
|
1912
|
-
slashSplit(p) {
|
|
1913
|
-
if (this.preserveMultipleSlashes) {
|
|
1914
|
-
return p.split("/");
|
|
1915
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
1916
|
-
return ["", ...p.split(/\/+/)];
|
|
1917
|
-
} else {
|
|
1918
|
-
return p.split(/\/+/);
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
match(f, partial = this.partial) {
|
|
1922
|
-
this.debug("match", f, this.pattern);
|
|
1923
|
-
if (this.comment) {
|
|
1924
|
-
return false;
|
|
1925
|
-
}
|
|
1926
|
-
if (this.empty) {
|
|
1927
|
-
return f === "";
|
|
1928
|
-
}
|
|
1929
|
-
if (f === "/" && partial) {
|
|
1930
|
-
return true;
|
|
1931
|
-
}
|
|
1932
|
-
const options = this.options;
|
|
1933
|
-
if (this.isWindows) {
|
|
1934
|
-
f = f.split("\\").join("/");
|
|
1935
|
-
}
|
|
1936
|
-
const ff = this.slashSplit(f);
|
|
1937
|
-
this.debug(this.pattern, "split", ff);
|
|
1938
|
-
const set = this.set;
|
|
1939
|
-
this.debug(this.pattern, "set", set);
|
|
1940
|
-
let filename = ff[ff.length - 1];
|
|
1941
|
-
if (!filename) {
|
|
1942
|
-
for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
|
|
1943
|
-
filename = ff[i2];
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
for (let i2 = 0; i2 < set.length; i2++) {
|
|
1947
|
-
const pattern = set[i2];
|
|
1948
|
-
let file = ff;
|
|
1949
|
-
if (options.matchBase && pattern.length === 1) {
|
|
1950
|
-
file = [filename];
|
|
1951
|
-
}
|
|
1952
|
-
const hit = this.matchOne(file, pattern, partial);
|
|
1953
|
-
if (hit) {
|
|
1954
|
-
if (options.flipNegate) {
|
|
1955
|
-
return true;
|
|
1956
|
-
}
|
|
1957
|
-
return !this.negate;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
if (options.flipNegate) {
|
|
1961
|
-
return false;
|
|
1962
|
-
}
|
|
1963
|
-
return this.negate;
|
|
1964
|
-
}
|
|
1965
|
-
static defaults(def) {
|
|
1966
|
-
return minimatch.defaults(def).Minimatch;
|
|
1967
|
-
}
|
|
1968
|
-
};
|
|
1969
|
-
minimatch.AST = AST;
|
|
1970
|
-
minimatch.Minimatch = Minimatch;
|
|
1971
|
-
minimatch.escape = escape;
|
|
1972
|
-
minimatch.unescape = unescape;
|
|
1973
|
-
|
|
1974
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
1975
|
-
function queryNonceMetaTagContent(doc) {
|
|
1976
|
-
var _a, _b, _c;
|
|
1977
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
// src/utils/regular-expression.ts
|
|
1981
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
1982
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1983
|
-
};
|
|
1984
|
-
|
|
1985
|
-
// src/utils/remote-value.ts
|
|
1986
|
-
var RemoteValue = class _RemoteValue {
|
|
1987
|
-
/**
|
|
1988
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1989
|
-
*
|
|
1990
|
-
* @param serialized The serialized LocalValue object
|
|
1991
|
-
* @returns The original JavaScript value/object
|
|
1992
|
-
*/
|
|
1993
|
-
static fromLocalValue(serialized) {
|
|
1994
|
-
const type = serialized[TYPE_CONSTANT];
|
|
1995
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1996
|
-
switch (type) {
|
|
1997
|
-
case "string" /* String */:
|
|
1998
|
-
return value;
|
|
1999
|
-
case "boolean" /* Boolean */:
|
|
2000
|
-
return value;
|
|
2001
|
-
case "bigint" /* BigInt */:
|
|
2002
|
-
return BigInt(value);
|
|
2003
|
-
case "undefined" /* Undefined */:
|
|
2004
|
-
return void 0;
|
|
2005
|
-
case "null" /* Null */:
|
|
2006
|
-
return null;
|
|
2007
|
-
case "number" /* Number */:
|
|
2008
|
-
if (value === "NaN") return NaN;
|
|
2009
|
-
if (value === "-0") return -0;
|
|
2010
|
-
if (value === "Infinity") return Infinity;
|
|
2011
|
-
if (value === "-Infinity") return -Infinity;
|
|
2012
|
-
return value;
|
|
2013
|
-
case "array" /* Array */:
|
|
2014
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2015
|
-
case "date" /* Date */:
|
|
2016
|
-
return new Date(value);
|
|
2017
|
-
case "map" /* Map */:
|
|
2018
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
2019
|
-
for (const [key, val] of value) {
|
|
2020
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2021
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2022
|
-
map2.set(deserializedKey, deserializedValue);
|
|
2023
|
-
}
|
|
2024
|
-
return map2;
|
|
2025
|
-
case "object" /* Object */:
|
|
2026
|
-
const obj = {};
|
|
2027
|
-
for (const [key, val] of value) {
|
|
2028
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2029
|
-
}
|
|
2030
|
-
return obj;
|
|
2031
|
-
case "regexp" /* RegularExpression */:
|
|
2032
|
-
const { pattern, flags } = value;
|
|
2033
|
-
return new RegExp(pattern, flags);
|
|
2034
|
-
case "set" /* Set */:
|
|
2035
|
-
const set = /* @__PURE__ */ new Set();
|
|
2036
|
-
for (const item of value) {
|
|
2037
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
2038
|
-
}
|
|
2039
|
-
return set;
|
|
2040
|
-
case "symbol" /* Symbol */:
|
|
2041
|
-
return Symbol(value);
|
|
2042
|
-
default:
|
|
2043
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
2044
|
-
}
|
|
2045
|
-
}
|
|
2046
|
-
/**
|
|
2047
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
2048
|
-
*
|
|
2049
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
2050
|
-
* @returns Array of deserialized JavaScript values
|
|
2051
|
-
*/
|
|
2052
|
-
static fromLocalValueArray(serializedValues) {
|
|
2053
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2054
|
-
}
|
|
2055
|
-
/**
|
|
2056
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2057
|
-
*
|
|
2058
|
-
* @param obj Object to verify
|
|
2059
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
2060
|
-
*/
|
|
2061
|
-
static isLocalValueObject(obj) {
|
|
2062
|
-
if (typeof obj !== "object" || obj === null) {
|
|
2063
|
-
return false;
|
|
2064
|
-
}
|
|
2065
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2066
|
-
return false;
|
|
2067
|
-
}
|
|
2068
|
-
const type = obj[TYPE_CONSTANT];
|
|
2069
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2070
|
-
if (!hasTypeProperty) {
|
|
317
|
+
let supportsListenerOptions2 = false;
|
|
318
|
+
try {
|
|
319
|
+
(_a = win.document) == null ? void 0 : _a.addEventListener(
|
|
320
|
+
"e",
|
|
321
|
+
null,
|
|
322
|
+
Object.defineProperty({}, "passive", {
|
|
323
|
+
get() {
|
|
324
|
+
supportsListenerOptions2 = true;
|
|
325
|
+
}
|
|
326
|
+
})
|
|
327
|
+
);
|
|
328
|
+
} catch (e) {
|
|
329
|
+
}
|
|
330
|
+
return supportsListenerOptions2;
|
|
331
|
+
})();
|
|
332
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
333
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
334
|
+
try {
|
|
335
|
+
if (!win.document.adoptedStyleSheets) {
|
|
2071
336
|
return false;
|
|
2072
337
|
}
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
return true;
|
|
338
|
+
new CSSStyleSheet();
|
|
339
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
340
|
+
} catch (e) {
|
|
2077
341
|
}
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
var
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
isOk: true,
|
|
2091
|
-
isErr: false,
|
|
2092
|
-
value
|
|
2093
|
-
});
|
|
2094
|
-
var err = (value) => ({
|
|
2095
|
-
isOk: false,
|
|
2096
|
-
isErr: true,
|
|
2097
|
-
value
|
|
2098
|
-
});
|
|
2099
|
-
function map(result, fn) {
|
|
2100
|
-
if (result.isOk) {
|
|
2101
|
-
const val = fn(result.value);
|
|
2102
|
-
if (val instanceof Promise) {
|
|
2103
|
-
return val.then((newVal) => ok(newVal));
|
|
342
|
+
return false;
|
|
343
|
+
})() ;
|
|
344
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
345
|
+
var queuePending = false;
|
|
346
|
+
var queueDomReads = [];
|
|
347
|
+
var queueDomWrites = [];
|
|
348
|
+
var queueTask = (queue, write) => (cb) => {
|
|
349
|
+
queue.push(cb);
|
|
350
|
+
if (!queuePending) {
|
|
351
|
+
queuePending = true;
|
|
352
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
353
|
+
nextTick(flush);
|
|
2104
354
|
} else {
|
|
2105
|
-
|
|
355
|
+
plt.raf(flush);
|
|
2106
356
|
}
|
|
2107
357
|
}
|
|
2108
|
-
if (result.isErr) {
|
|
2109
|
-
const value = result.value;
|
|
2110
|
-
return err(value);
|
|
2111
|
-
}
|
|
2112
|
-
throw "should never get here";
|
|
2113
|
-
}
|
|
2114
|
-
var unwrap = (result) => {
|
|
2115
|
-
if (result.isOk) {
|
|
2116
|
-
return result.value;
|
|
2117
|
-
} else {
|
|
2118
|
-
throw result.value;
|
|
2119
|
-
}
|
|
2120
358
|
};
|
|
2121
|
-
var
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
359
|
+
var consume = (queue) => {
|
|
360
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
361
|
+
try {
|
|
362
|
+
queue[i2](performance.now());
|
|
363
|
+
} catch (e) {
|
|
364
|
+
consoleError(e);
|
|
365
|
+
}
|
|
2126
366
|
}
|
|
367
|
+
queue.length = 0;
|
|
2127
368
|
};
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
369
|
+
var flush = () => {
|
|
370
|
+
consume(queueDomReads);
|
|
371
|
+
{
|
|
372
|
+
consume(queueDomWrites);
|
|
373
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
374
|
+
plt.raf(flush);
|
|
375
|
+
}
|
|
2133
376
|
}
|
|
2134
|
-
|
|
2135
|
-
|
|
377
|
+
};
|
|
378
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
379
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
2136
380
|
|
|
2137
381
|
// src/utils/style.ts
|
|
2138
382
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -2322,6 +566,14 @@ var uniqueTime = (key, measureText) => {
|
|
|
2322
566
|
};
|
|
2323
567
|
}
|
|
2324
568
|
};
|
|
569
|
+
|
|
570
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
571
|
+
function queryNonceMetaTagContent(doc) {
|
|
572
|
+
var _a, _b, _c;
|
|
573
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// src/runtime/styles.ts
|
|
2325
577
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2326
578
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2327
579
|
let style = styles.get(scopeId2);
|
|
@@ -2355,10 +607,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2355
607
|
}
|
|
2356
608
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
2357
609
|
if (existingStyleElm) {
|
|
2358
|
-
existingStyleElm.
|
|
610
|
+
existingStyleElm.textContent = style;
|
|
2359
611
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
2360
612
|
styleElm = win.document.createElement("style");
|
|
2361
|
-
styleElm.
|
|
613
|
+
styleElm.textContent = style;
|
|
2362
614
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2363
615
|
if (nonce != null) {
|
|
2364
616
|
styleElm.setAttribute("nonce", nonce);
|
|
@@ -2383,8 +635,8 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2383
635
|
}
|
|
2384
636
|
} else {
|
|
2385
637
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2386
|
-
if (existingStyleContainer) {
|
|
2387
|
-
existingStyleContainer.
|
|
638
|
+
if (existingStyleContainer && true) {
|
|
639
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
2388
640
|
} else {
|
|
2389
641
|
styleContainerNode.prepend(styleElm);
|
|
2390
642
|
}
|
|
@@ -2397,7 +649,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2397
649
|
styleContainerNode.insertBefore(styleElm, null);
|
|
2398
650
|
}
|
|
2399
651
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2400
|
-
styleElm.
|
|
652
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
2401
653
|
}
|
|
2402
654
|
if (appliedStyles) {
|
|
2403
655
|
appliedStyles.add(scopeId2);
|
|
@@ -2425,6 +677,12 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2425
677
|
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
2426
678
|
}
|
|
2427
679
|
appliedStyles.add(scopeId2);
|
|
680
|
+
if ("host" in styleContainerNode) {
|
|
681
|
+
const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
682
|
+
if (ssrStyleElm) {
|
|
683
|
+
writeTask(() => ssrStyleElm.remove());
|
|
684
|
+
}
|
|
685
|
+
}
|
|
2428
686
|
}
|
|
2429
687
|
}
|
|
2430
688
|
}
|
|
@@ -2456,6 +714,12 @@ var hydrateScopedToShadow = () => {
|
|
|
2456
714
|
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2457
715
|
}
|
|
2458
716
|
};
|
|
717
|
+
var isComplexType = (o) => {
|
|
718
|
+
o = typeof o;
|
|
719
|
+
return o === "object" || o === "function";
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
// src/runtime/vdom/h.ts
|
|
2459
723
|
var h = (nodeName, vnodeData, ...children) => {
|
|
2460
724
|
if (typeof nodeName === "string") {
|
|
2461
725
|
nodeName = transformTag(nodeName);
|
|
@@ -2523,7 +787,8 @@ var newVNode = (tag, text) => {
|
|
|
2523
787
|
const vnode = {
|
|
2524
788
|
$flags$: 0,
|
|
2525
789
|
$tag$: tag,
|
|
2526
|
-
|
|
790
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
791
|
+
$text$: text != null ? text : null,
|
|
2527
792
|
$elm$: null,
|
|
2528
793
|
$children$: null
|
|
2529
794
|
};
|
|
@@ -2617,7 +882,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2617
882
|
cmpMeta.$cmpMeta$);
|
|
2618
883
|
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
2619
884
|
if (styleSheet) {
|
|
2620
|
-
|
|
885
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
2621
886
|
}
|
|
2622
887
|
}
|
|
2623
888
|
}
|
|
@@ -2687,7 +952,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2687
952
|
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
2688
953
|
}
|
|
2689
954
|
}
|
|
2690
|
-
if (shadowRoot) {
|
|
955
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
2691
956
|
let rnIdex = 0;
|
|
2692
957
|
const rnLen = shadowRootNodes.length;
|
|
2693
958
|
if (rnLen) {
|
|
@@ -2961,18 +1226,111 @@ var findCorrespondingNode = (node, type) => {
|
|
|
2961
1226
|
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
2962
1227
|
return sibling;
|
|
2963
1228
|
};
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
1229
|
+
|
|
1230
|
+
// src/utils/remote-value.ts
|
|
1231
|
+
var RemoteValue = class _RemoteValue {
|
|
1232
|
+
/**
|
|
1233
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1234
|
+
*
|
|
1235
|
+
* @param serialized The serialized LocalValue object
|
|
1236
|
+
* @returns The original JavaScript value/object
|
|
1237
|
+
*/
|
|
1238
|
+
static fromLocalValue(serialized) {
|
|
1239
|
+
const type = serialized[TYPE_CONSTANT];
|
|
1240
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1241
|
+
switch (type) {
|
|
1242
|
+
case "string" /* String */:
|
|
1243
|
+
return value;
|
|
1244
|
+
case "boolean" /* Boolean */:
|
|
1245
|
+
return value;
|
|
1246
|
+
case "bigint" /* BigInt */:
|
|
1247
|
+
return BigInt(value);
|
|
1248
|
+
case "undefined" /* Undefined */:
|
|
1249
|
+
return void 0;
|
|
1250
|
+
case "null" /* Null */:
|
|
1251
|
+
return null;
|
|
1252
|
+
case "number" /* Number */:
|
|
1253
|
+
if (value === "NaN") return NaN;
|
|
1254
|
+
if (value === "-0") return -0;
|
|
1255
|
+
if (value === "Infinity") return Infinity;
|
|
1256
|
+
if (value === "-Infinity") return -Infinity;
|
|
1257
|
+
return value;
|
|
1258
|
+
case "array" /* Array */:
|
|
1259
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1260
|
+
case "date" /* Date */:
|
|
1261
|
+
return new Date(value);
|
|
1262
|
+
case "map" /* Map */:
|
|
1263
|
+
const map = /* @__PURE__ */ new Map();
|
|
1264
|
+
for (const [key, val] of value) {
|
|
1265
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1266
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1267
|
+
map.set(deserializedKey, deserializedValue);
|
|
1268
|
+
}
|
|
1269
|
+
return map;
|
|
1270
|
+
case "object" /* Object */:
|
|
1271
|
+
const obj = {};
|
|
1272
|
+
for (const [key, val] of value) {
|
|
1273
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1274
|
+
}
|
|
1275
|
+
return obj;
|
|
1276
|
+
case "regexp" /* RegularExpression */:
|
|
1277
|
+
const { pattern, flags } = value;
|
|
1278
|
+
return new RegExp(pattern, flags);
|
|
1279
|
+
case "set" /* Set */:
|
|
1280
|
+
const set = /* @__PURE__ */ new Set();
|
|
1281
|
+
for (const item of value) {
|
|
1282
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
1283
|
+
}
|
|
1284
|
+
return set;
|
|
1285
|
+
case "symbol" /* Symbol */:
|
|
1286
|
+
return Symbol(value);
|
|
1287
|
+
default:
|
|
1288
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
1293
|
+
*
|
|
1294
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
1295
|
+
* @returns Array of deserialized JavaScript values
|
|
1296
|
+
*/
|
|
1297
|
+
static fromLocalValueArray(serializedValues) {
|
|
1298
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1302
|
+
*
|
|
1303
|
+
* @param obj Object to verify
|
|
1304
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
1305
|
+
*/
|
|
1306
|
+
static isLocalValueObject(obj) {
|
|
1307
|
+
if (typeof obj !== "object" || obj === null) {
|
|
1308
|
+
return false;
|
|
1309
|
+
}
|
|
1310
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1311
|
+
return false;
|
|
1312
|
+
}
|
|
1313
|
+
const type = obj[TYPE_CONSTANT];
|
|
1314
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1315
|
+
if (!hasTypeProperty) {
|
|
1316
|
+
return false;
|
|
1317
|
+
}
|
|
1318
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1319
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
1320
|
+
}
|
|
1321
|
+
return true;
|
|
1322
|
+
}
|
|
2972
1323
|
};
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
1324
|
+
|
|
1325
|
+
// src/utils/serialize.ts
|
|
1326
|
+
function deserializeProperty(value) {
|
|
1327
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1328
|
+
return value;
|
|
1329
|
+
}
|
|
1330
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
// src/runtime/parse-property-value.ts
|
|
2976
1334
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2977
1335
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
2978
1336
|
propValue = deserializeProperty(propValue);
|
|
@@ -3063,7 +1421,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
3063
1421
|
}
|
|
3064
1422
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
3065
1423
|
if (newValue) {
|
|
3066
|
-
newValue
|
|
1424
|
+
queueRefAttachment(newValue, elm);
|
|
3067
1425
|
}
|
|
3068
1426
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
3069
1427
|
if (memberName[2] === "-") {
|
|
@@ -3083,6 +1441,36 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
3083
1441
|
plt.ael(elm, memberName, newValue, capture);
|
|
3084
1442
|
}
|
|
3085
1443
|
}
|
|
1444
|
+
} else if (memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
1445
|
+
const propName = memberName.slice(5);
|
|
1446
|
+
let attrName;
|
|
1447
|
+
{
|
|
1448
|
+
const hostRef = getHostRef(elm);
|
|
1449
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
1450
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
1451
|
+
if (memberMeta && memberMeta[1]) {
|
|
1452
|
+
attrName = memberMeta[1];
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
if (!attrName) {
|
|
1457
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1458
|
+
}
|
|
1459
|
+
if (newValue == null || newValue === false) {
|
|
1460
|
+
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
1461
|
+
elm.removeAttribute(attrName);
|
|
1462
|
+
}
|
|
1463
|
+
} else {
|
|
1464
|
+
elm.setAttribute(attrName, newValue === true ? "" : newValue);
|
|
1465
|
+
}
|
|
1466
|
+
return;
|
|
1467
|
+
} else if (memberName[0] === "p" && memberName.startsWith("prop:")) {
|
|
1468
|
+
const propName = memberName.slice(5);
|
|
1469
|
+
try {
|
|
1470
|
+
elm[propName] = newValue;
|
|
1471
|
+
} catch (e) {
|
|
1472
|
+
}
|
|
1473
|
+
return;
|
|
3086
1474
|
} else {
|
|
3087
1475
|
const isComplex = isComplexType(newValue);
|
|
3088
1476
|
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
@@ -3091,7 +1479,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
3091
1479
|
const n = newValue == null ? "" : newValue;
|
|
3092
1480
|
if (memberName === "list") {
|
|
3093
1481
|
isProp = false;
|
|
3094
|
-
} else if (oldValue == null || elm[memberName]
|
|
1482
|
+
} else if (oldValue == null || elm[memberName] !== n) {
|
|
3095
1483
|
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
3096
1484
|
elm[memberName] = n;
|
|
3097
1485
|
} else {
|
|
@@ -3189,6 +1577,8 @@ var useNativeShadowDom = false;
|
|
|
3189
1577
|
var checkSlotFallbackVisibility = false;
|
|
3190
1578
|
var checkSlotRelocate = false;
|
|
3191
1579
|
var isSvgMode = false;
|
|
1580
|
+
var refCallbacksToRemove = [];
|
|
1581
|
+
var refCallbacksToAttach = [];
|
|
3192
1582
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
3193
1583
|
var _a;
|
|
3194
1584
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
@@ -3211,7 +1601,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
3211
1601
|
);
|
|
3212
1602
|
}
|
|
3213
1603
|
}
|
|
3214
|
-
if (newVNode2.$text$
|
|
1604
|
+
if (newVNode2.$text$ != null) {
|
|
3215
1605
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
3216
1606
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
3217
1607
|
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
@@ -3223,9 +1613,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
3223
1613
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
3224
1614
|
}
|
|
3225
1615
|
if (!win.document) {
|
|
3226
|
-
throw new Error(
|
|
3227
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
3228
|
-
);
|
|
1616
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
3229
1617
|
}
|
|
3230
1618
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
3231
1619
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -3473,7 +1861,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
3473
1861
|
const tag = newVNode2.$tag$;
|
|
3474
1862
|
const text = newVNode2.$text$;
|
|
3475
1863
|
let defaultHolder;
|
|
3476
|
-
if (text
|
|
1864
|
+
if (text == null) {
|
|
3477
1865
|
{
|
|
3478
1866
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
3479
1867
|
}
|
|
@@ -3562,16 +1950,33 @@ var markSlotContentForRelocation = (elm) => {
|
|
|
3562
1950
|
};
|
|
3563
1951
|
var nullifyVNodeRefs = (vNode) => {
|
|
3564
1952
|
{
|
|
3565
|
-
vNode.$attrs$ && vNode.$attrs$.ref
|
|
1953
|
+
if (vNode.$attrs$ && vNode.$attrs$.ref) {
|
|
1954
|
+
refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));
|
|
1955
|
+
}
|
|
3566
1956
|
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
3567
1957
|
}
|
|
3568
1958
|
};
|
|
1959
|
+
var queueRefAttachment = (refCallback, elm) => {
|
|
1960
|
+
{
|
|
1961
|
+
refCallbacksToAttach.push(() => refCallback(elm));
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
var flushQueuedRefCallbacks = () => {
|
|
1965
|
+
{
|
|
1966
|
+
refCallbacksToRemove.forEach((cb) => cb());
|
|
1967
|
+
refCallbacksToRemove.length = 0;
|
|
1968
|
+
refCallbacksToAttach.forEach((cb) => cb());
|
|
1969
|
+
refCallbacksToAttach.length = 0;
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
3569
1972
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
1973
|
+
{
|
|
1974
|
+
if (typeof newNode["s-sn"] === "string") {
|
|
1975
|
+
parent.insertBefore(newNode, reference);
|
|
1976
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
1977
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
1978
|
+
return newNode;
|
|
1979
|
+
}
|
|
3575
1980
|
}
|
|
3576
1981
|
if (parent.__insertBefore) {
|
|
3577
1982
|
return parent.__insertBefore(newNode, reference);
|
|
@@ -3707,6 +2112,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
3707
2112
|
}
|
|
3708
2113
|
}
|
|
3709
2114
|
contentRef = void 0;
|
|
2115
|
+
flushQueuedRefCallbacks();
|
|
3710
2116
|
};
|
|
3711
2117
|
|
|
3712
2118
|
// src/runtime/update-component.ts
|
|
@@ -3775,8 +2181,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3775
2181
|
endSchedule();
|
|
3776
2182
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3777
2183
|
};
|
|
3778
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
3779
|
-
console.error(
|
|
2184
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
2185
|
+
console.error(err);
|
|
3780
2186
|
fn();
|
|
3781
2187
|
}) : fn();
|
|
3782
2188
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -3804,7 +2210,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
3804
2210
|
if (childrenPromises.length === 0) {
|
|
3805
2211
|
postUpdate();
|
|
3806
2212
|
} else {
|
|
3807
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
2213
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
3808
2214
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
3809
2215
|
childrenPromises.length = 0;
|
|
3810
2216
|
}
|
|
@@ -3937,13 +2343,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
3937
2343
|
});
|
|
3938
2344
|
}
|
|
3939
2345
|
}
|
|
3940
|
-
if (
|
|
2346
|
+
if (flags & 2 /* hasRendered */) {
|
|
3941
2347
|
if (instance.componentShouldUpdate) {
|
|
3942
|
-
|
|
2348
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
2349
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
3943
2350
|
return;
|
|
3944
2351
|
}
|
|
3945
2352
|
}
|
|
3946
|
-
|
|
2353
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
2354
|
+
scheduleUpdate(hostRef, false);
|
|
2355
|
+
}
|
|
3947
2356
|
}
|
|
3948
2357
|
}
|
|
3949
2358
|
};
|
|
@@ -3967,7 +2376,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3967
2376
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
3968
2377
|
members.map(([memberName, [memberFlags]]) => {
|
|
3969
2378
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
3970
|
-
const { get: origGetter, set: origSetter } =
|
|
2379
|
+
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
3971
2380
|
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
3972
2381
|
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
3973
2382
|
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
@@ -4112,76 +2521,87 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
4112
2521
|
// src/runtime/initialize-component.ts
|
|
4113
2522
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
4114
2523
|
let Cstr;
|
|
4115
|
-
|
|
4116
|
-
hostRef.$flags$
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
2524
|
+
try {
|
|
2525
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2526
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2527
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
2528
|
+
if (bundleId) {
|
|
2529
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
2530
|
+
if (CstrImport && "then" in CstrImport) {
|
|
2531
|
+
const endLoad = uniqueTime();
|
|
2532
|
+
Cstr = await CstrImport;
|
|
2533
|
+
endLoad();
|
|
2534
|
+
} else {
|
|
2535
|
+
Cstr = CstrImport;
|
|
2536
|
+
}
|
|
2537
|
+
if (!Cstr) {
|
|
2538
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
2539
|
+
}
|
|
2540
|
+
if (!Cstr.isProxied) {
|
|
2541
|
+
{
|
|
2542
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
2543
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
2544
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
2545
|
+
}
|
|
2546
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
2547
|
+
Cstr.isProxied = true;
|
|
2548
|
+
}
|
|
2549
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
4131
2550
|
{
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
2551
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
2552
|
+
}
|
|
2553
|
+
try {
|
|
2554
|
+
new Cstr(hostRef);
|
|
2555
|
+
} catch (e) {
|
|
2556
|
+
consoleError(e, elm);
|
|
2557
|
+
}
|
|
2558
|
+
{
|
|
2559
|
+
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
2560
|
+
}
|
|
2561
|
+
{
|
|
2562
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2563
|
+
}
|
|
2564
|
+
endNewInstance();
|
|
2565
|
+
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
2566
|
+
if (!needsDeferredCallback) {
|
|
2567
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2568
|
+
} else {
|
|
2569
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
4135
2570
|
}
|
|
4136
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
4137
|
-
Cstr.isProxied = true;
|
|
4138
|
-
}
|
|
4139
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
4140
|
-
{
|
|
4141
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
4142
|
-
}
|
|
4143
|
-
try {
|
|
4144
|
-
new Cstr(hostRef);
|
|
4145
|
-
} catch (e) {
|
|
4146
|
-
consoleError(e, elm);
|
|
4147
|
-
}
|
|
4148
|
-
{
|
|
4149
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
4150
|
-
}
|
|
4151
|
-
{
|
|
4152
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
4153
|
-
}
|
|
4154
|
-
endNewInstance();
|
|
4155
|
-
const needsDeferredCallback = cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
4156
|
-
if (!needsDeferredCallback) {
|
|
4157
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
4158
2571
|
} else {
|
|
4159
|
-
|
|
2572
|
+
Cstr = elm.constructor;
|
|
2573
|
+
const cmpTag = elm.localName;
|
|
2574
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2575
|
+
}
|
|
2576
|
+
if (Cstr && Cstr.style) {
|
|
2577
|
+
let style;
|
|
2578
|
+
if (typeof Cstr.style === "string") {
|
|
2579
|
+
style = Cstr.style;
|
|
2580
|
+
}
|
|
2581
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
2582
|
+
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
2583
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
2584
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
2585
|
+
endRegisterStyles();
|
|
2586
|
+
}
|
|
4160
2587
|
}
|
|
2588
|
+
}
|
|
2589
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
2590
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
2591
|
+
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
2592
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
4161
2593
|
} else {
|
|
4162
|
-
|
|
4163
|
-
const cmpTag = elm.localName;
|
|
4164
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
2594
|
+
schedule();
|
|
4165
2595
|
}
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
4175
|
-
endRegisterStyles();
|
|
4176
|
-
}
|
|
2596
|
+
} catch (e) {
|
|
2597
|
+
consoleError(e, elm);
|
|
2598
|
+
if (hostRef.$onRenderResolve$) {
|
|
2599
|
+
hostRef.$onRenderResolve$();
|
|
2600
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
2601
|
+
}
|
|
2602
|
+
if (hostRef.$onReadyResolve$) {
|
|
2603
|
+
hostRef.$onReadyResolve$(elm);
|
|
4177
2604
|
}
|
|
4178
|
-
}
|
|
4179
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
4180
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
4181
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
4182
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
4183
|
-
} else {
|
|
4184
|
-
schedule();
|
|
4185
2605
|
}
|
|
4186
2606
|
};
|
|
4187
2607
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -4229,7 +2649,7 @@ var connectedCallback = (elm) => {
|
|
|
4229
2649
|
}
|
|
4230
2650
|
if (cmpMeta.$members$) {
|
|
4231
2651
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
4232
|
-
if (memberFlags & 31 /* Prop */ &&
|
|
2652
|
+
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
4233
2653
|
const value = elm[memberName];
|
|
4234
2654
|
delete elm[memberName];
|
|
4235
2655
|
elm[memberName] = value;
|