@paperless/core 2.22.0-alpha.29 → 2.22.0-alpha.30
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/build/index.esm.js +1 -1
- package/dist/{paperless/p-a9c0aab3.entry.js → build/p-0595952f.entry.js} +1 -1
- package/dist/{paperless/p-9e06356b.entry.js → build/p-09501f74.entry.js} +1 -1
- package/dist/build/{p-2e67ae6a.entry.js → p-112991fa.entry.js} +1 -1
- package/dist/build/{p-cf436a7d.entry.js → p-16625524.entry.js} +1 -1
- package/dist/build/{p-31399606.entry.js → p-1831ba61.entry.js} +1 -1
- package/dist/build/{p-1cbe78fd.entry.js → p-1a4eeaed.entry.js} +1 -1
- package/dist/build/{p-cfbd02e6.entry.js → p-1bc013ea.entry.js} +1 -1
- package/dist/build/{p-561dabe7.entry.js → p-1e33b62a.entry.js} +1 -1
- package/dist/{paperless/p-bbf7b9e7.entry.js → build/p-2461cae0.entry.js} +1 -1
- package/dist/{paperless/p-ade3a57a.entry.js → build/p-26a84c2f.entry.js} +1 -1
- package/dist/build/p-3224460c.entry.js +1 -0
- package/dist/build/{p-b85ee4b7.entry.js → p-3d4eed8c.entry.js} +1 -1
- package/dist/build/p-42907ce1.entry.js +1 -0
- package/dist/build/{p-f1c6f25b.entry.js → p-43dd13df.entry.js} +1 -1
- package/dist/{paperless/p-8382e7c2.entry.js → build/p-443e1609.entry.js} +1 -1
- package/dist/{paperless/p-6df6a0ba.entry.js → build/p-4a695d0f.entry.js} +1 -1
- package/dist/build/{p-14223e98.entry.js → p-4ade4fd6.entry.js} +1 -1
- package/dist/{paperless/p-6aa93bf9.entry.js → build/p-4b03700c.entry.js} +1 -1
- package/dist/build/{p-70974f53.entry.js → p-4c885671.entry.js} +1 -1
- package/dist/{paperless/p-e907c9d3.entry.js → build/p-5abb4596.entry.js} +1 -1
- package/dist/build/{p-25961586.entry.js → p-5fb0fde5.entry.js} +1 -1
- package/dist/{paperless/p-464fd7c4.entry.js → build/p-62f081db.entry.js} +1 -1
- package/dist/build/{p-5f422b65.js → p-66626b17.js} +1 -1
- package/dist/{paperless/p-c16870f5.entry.js → build/p-6ddff445.entry.js} +1 -1
- package/dist/build/{p-50de21e1.entry.js → p-71936600.entry.js} +1 -1
- package/dist/{paperless/p-9cdee500.entry.js → build/p-75c0d205.entry.js} +1 -1
- package/dist/build/{p-2a37b400.entry.js → p-796ade92.entry.js} +1 -1
- package/dist/build/{p-a6369294.entry.js → p-7b05d594.entry.js} +1 -1
- package/dist/build/{p-60a3f1ee.entry.js → p-8073ff56.entry.js} +1 -1
- package/dist/build/{p-abe821ce.entry.js → p-8527dffc.entry.js} +1 -1
- package/dist/{paperless/p-ba7ccf80.entry.js → build/p-88434ef8.entry.js} +1 -1
- package/dist/build/p-8b074922.entry.js +1 -0
- package/dist/build/{p-8824a0ef.entry.js → p-8c36f589.entry.js} +1 -1
- package/dist/build/{p-d5d45034.entry.js → p-8d872235.entry.js} +1 -1
- package/dist/build/{p-d81c6c9e.entry.js → p-8f5d0259.entry.js} +1 -1
- package/dist/build/{p-9fd28756.entry.js → p-91c17aaa.entry.js} +1 -1
- package/dist/{paperless/p-166704d6.entry.js → build/p-96020614.entry.js} +1 -1
- package/dist/build/p-BaOYiNIi.js +1 -0
- package/dist/build/{p-Jt5e0RAn.js → p-Ds4BJt6D.js} +1 -1
- package/dist/build/p-UEOqFwec.js +2 -0
- package/dist/build/{p-fa1a067a.entry.js → p-a075f933.entry.js} +1 -1
- package/dist/{paperless/p-60923e39.entry.js → build/p-a3c931c3.entry.js} +1 -1
- package/dist/build/{p-80922205.entry.js → p-ac64c055.entry.js} +1 -1
- package/dist/build/{p-93ce18e4.entry.js → p-b39702b5.entry.js} +1 -1
- package/dist/build/{p-7ac9dc1e.entry.js → p-b660c06c.entry.js} +1 -1
- package/dist/{paperless/p-a7d200c3.entry.js → build/p-cc67c333.entry.js} +1 -1
- package/dist/build/{p-1c17ee9b.entry.js → p-cce41338.entry.js} +1 -1
- package/dist/{paperless/p-260a97c9.entry.js → build/p-d79097e9.entry.js} +1 -1
- package/dist/build/{p-ee7858e4.entry.js → p-d824b806.entry.js} +1 -1
- package/dist/build/{p-a232b345.entry.js → p-dad6be91.entry.js} +1 -1
- package/dist/build/{p-8644a3f1.entry.js → p-dc7e3d2d.entry.js} +1 -1
- package/dist/build/{p-c298abac.entry.js → p-dcc913e0.entry.js} +1 -1
- package/dist/{paperless/p-f5be155f.entry.js → build/p-e6c0c26a.entry.js} +1 -1
- package/dist/build/{p-1f15cd98.entry.js → p-e8911355.entry.js} +1 -1
- package/dist/build/{p-5c5cdb06.entry.js → p-eb88330f.entry.js} +1 -1
- package/dist/build/p-f16b7c0e.entry.js +3 -0
- package/dist/build/{p-0388615e.entry.js → p-f71542cd.entry.js} +1 -1
- package/dist/build/{p-d8681bdc.entry.js → p-fc461e09.entry.js} +1 -1
- package/dist/{paperless/p-18454ce9.entry.js → build/p-fd71dc2b.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-CcocepA-.js → index-BTgZ3S70.js} +179 -1808
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +3 -3
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +3 -3
- package/dist/cjs/p-calendar.cjs.entry.js +3 -3
- package/dist/cjs/p-card-body.cjs.entry.js +3 -3
- package/dist/cjs/p-card-container.cjs.entry.js +3 -3
- package/dist/cjs/p-card-header.cjs.entry.js +3 -3
- package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
- package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +35 -91
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +3 -3
- package/dist/cjs/p-empty-state_8.cjs.entry.js +3 -3
- package/dist/cjs/p-field_3.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +3 -3
- package/dist/cjs/p-listing-line.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +3 -3
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-title.cjs.entry.js +3 -3
- package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +3 -3
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +3 -3
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +3 -3
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table-extra-header.cjs.entry.js +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +3 -3
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/cjs/{state-BseAB3i4.js → state-DvN6PtKJ.js} +1 -1
- package/dist/cjs/{themed-host.component-BSIZm-L8.js → themed-host.component-BD_w9S3m.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Ci0JKTmE.js → p--JxtpGtF.js} +1 -1
- package/dist/components/{p-CccN0jY7.js → p-2ng-Aose.js} +1 -1
- package/dist/components/{p-BBmuctek.js → p-Akpqyi53.js} +1 -1
- package/dist/components/{p-BhtaAZAJ.js → p-B0_4fWrY.js} +1 -1
- package/dist/components/{p-Czs7mxeO.js → p-B7T2fQYF.js} +1 -1
- package/dist/components/{p-Coxruux_.js → p-BBpjifjG.js} +1 -1
- package/dist/components/{p-4UKRYZET.js → p-BF6PPgsp.js} +1 -1
- package/dist/components/{p-CGJYpylb.js → p-BImUbzui.js} +1 -1
- package/dist/components/{p--JDhF4GL.js → p-BY-iZ7C8.js} +1 -1
- package/dist/components/{p-Djf2rBRX.js → p-BkkPm9Yp.js} +1 -1
- package/dist/components/{p-BE2DRulM.js → p-Bw7wEGKa.js} +1 -1
- package/dist/components/{p-Cs8Ak0MQ.js → p-BwD4wr14.js} +1 -1
- package/dist/components/{p-C7Bjyf-i.js → p-C1fCuFhI.js} +1 -1
- package/dist/components/{p-prb4IQlb.js → p-C23JF7PQ.js} +1 -1
- package/dist/components/{p-BuAyIir2.js → p-CCufTu-v.js} +1 -1
- package/dist/components/{p-BA1QFuzs.js → p-CFmYQoDA.js} +1 -1
- package/dist/components/{p-BPP8ZYwN.js → p-CGFPlslj.js} +1 -1
- package/dist/components/{p-B4tCVctO.js → p-CIqBta1w.js} +1 -1
- package/dist/components/{p-CCvROjOe.js → p-CNMa-_yN.js} +1 -1
- package/dist/components/{p-BV-h5ALt.js → p-CPlMlM6g.js} +1 -1
- package/dist/components/{p-DAuzJ_qL.js → p-CQaFushj.js} +1 -1
- package/dist/components/{p-Dl4hxOHI.js → p-CeX--L43.js} +1 -1
- package/dist/components/{p-JhZXmipA.js → p-Ch5U9kWZ.js} +1 -1
- package/dist/components/{p-DSj0Jf2L.js → p-Cmsf0PX2.js} +1 -1
- package/dist/components/{p-B7SbywpL.js → p-CpaA1Iq7.js} +1 -1
- package/dist/components/{p-BX8yg_1a.js → p-CpnSfiGo.js} +1 -1
- package/dist/components/{p-BaXKEl7X.js → p-CtHAbYCa.js} +1 -1
- package/dist/components/{p-BCAgJ4w6.js → p-D-IyTfol.js} +1 -1
- package/dist/components/{p-BnzXRlCu.js → p-D08B3cFE.js} +1 -1
- package/dist/components/{p-BVuxBNP3.js → p-D5_UJJpn.js} +1 -1
- package/dist/components/{p-_3tBkyNJ.js → p-DCq0eMpP.js} +1 -1
- package/dist/components/{p-DNMiuEx4.js → p-DM8w1S9L.js} +1 -1
- package/dist/components/{p-CHydrUrt.js → p-DPtX6elD.js} +1 -1
- package/dist/components/{p-25xYytwu.js → p-Dd8d_pro.js} +1 -1
- package/dist/components/{p-DxW06-IZ.js → p-DfBWP1bt.js} +1 -1
- package/dist/components/{p-KuL1SNit.js → p-DoDhkUVy.js} +1 -1
- package/dist/components/{p-DxNTB_Qq.js → p-DqfNKkNq.js} +1 -1
- package/dist/components/{p-Ds35QicK.js → p-DvzTP_tN.js} +1 -1
- package/dist/components/{p-0y7dmBHx.js → p-J_pAdYL8.js} +1 -1
- package/dist/components/{p-CtQJmtcM.js → p-Ml3Ytiv7.js} +1 -1
- package/dist/components/{p-swqKzLDH.js → p-OF_TU9VQ.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/{p-qmmFrZxi.js → p-dWa7wUe3.js} +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-divider.js +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/{p-DZjr9R4d.js → p-h4mS749f.js} +1 -1
- package/dist/components/{p-D4KmlZ0u.js → p-hBh42vsk.js} +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/{p-DuYGcgJi.js → p-iMCMxc-_.js} +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-loader.js +1 -1
- package/dist/components/p-mR4MYqqI.js +2 -0
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/{p-BV81Joa3.js → p-nUd8Wpbr.js} +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-column.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-extra-header.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-action.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/{index-BDccsg1s.js → index-UEOqFwec.js} +179 -1808
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-accordion.entry.js +3 -3
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +3 -3
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +3 -3
- package/dist/esm/p-calendar.entry.js +3 -3
- package/dist/esm/p-card-body.entry.js +3 -3
- package/dist/esm/p-card-container.entry.js +3 -3
- package/dist/esm/p-card-header.entry.js +3 -3
- package/dist/esm/p-checkbox_3.entry.js +3 -3
- package/dist/esm/p-content-slider.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +35 -91
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +3 -3
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-dropdown-menu-item_2.entry.js +3 -3
- package/dist/esm/p-empty-state_8.entry.js +3 -3
- package/dist/esm/p-field_3.entry.js +3 -3
- package/dist/esm/p-floating-menu-item.entry.js +3 -3
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-listing-item.entry.js +3 -3
- package/dist/esm/p-listing-line.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +3 -3
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +3 -3
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +3 -3
- package/dist/esm/p-navigation-title.entry.js +3 -3
- package/dist/esm/p-pagination_3.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +3 -3
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +3 -3
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +3 -3
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +3 -3
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table-extra-header.entry.js +1 -1
- package/dist/esm/p-table-row-action.entry.js +1 -1
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +3 -3
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +3 -3
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/{state-xB9Jw2TG.js → state-gBMIsdMW.js} +1 -1
- package/dist/esm/{themed-host.component-CLTQ6QFZ.js → themed-host.component-Bt4FhEsY.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/{build/p-a9c0aab3.entry.js → paperless/p-0595952f.entry.js} +1 -1
- package/dist/{build/p-9e06356b.entry.js → paperless/p-09501f74.entry.js} +1 -1
- package/dist/paperless/{p-2e67ae6a.entry.js → p-112991fa.entry.js} +1 -1
- package/dist/paperless/{p-cf436a7d.entry.js → p-16625524.entry.js} +1 -1
- package/dist/paperless/{p-31399606.entry.js → p-1831ba61.entry.js} +1 -1
- package/dist/paperless/{p-1cbe78fd.entry.js → p-1a4eeaed.entry.js} +1 -1
- package/dist/paperless/{p-cfbd02e6.entry.js → p-1bc013ea.entry.js} +1 -1
- package/dist/paperless/{p-561dabe7.entry.js → p-1e33b62a.entry.js} +1 -1
- package/dist/{build/p-bbf7b9e7.entry.js → paperless/p-2461cae0.entry.js} +1 -1
- package/dist/{build/p-ade3a57a.entry.js → paperless/p-26a84c2f.entry.js} +1 -1
- package/dist/paperless/p-3224460c.entry.js +1 -0
- package/dist/paperless/{p-b85ee4b7.entry.js → p-3d4eed8c.entry.js} +1 -1
- package/dist/paperless/p-42907ce1.entry.js +1 -0
- package/dist/paperless/{p-f1c6f25b.entry.js → p-43dd13df.entry.js} +1 -1
- package/dist/{build/p-8382e7c2.entry.js → paperless/p-443e1609.entry.js} +1 -1
- package/dist/{build/p-6df6a0ba.entry.js → paperless/p-4a695d0f.entry.js} +1 -1
- package/dist/paperless/{p-14223e98.entry.js → p-4ade4fd6.entry.js} +1 -1
- package/dist/{build/p-6aa93bf9.entry.js → paperless/p-4b03700c.entry.js} +1 -1
- package/dist/paperless/{p-70974f53.entry.js → p-4c885671.entry.js} +1 -1
- package/dist/{build/p-e907c9d3.entry.js → paperless/p-5abb4596.entry.js} +1 -1
- package/dist/paperless/{p-25961586.entry.js → p-5fb0fde5.entry.js} +1 -1
- package/dist/{build/p-464fd7c4.entry.js → paperless/p-62f081db.entry.js} +1 -1
- package/dist/{build/p-c16870f5.entry.js → paperless/p-6ddff445.entry.js} +1 -1
- package/dist/paperless/{p-50de21e1.entry.js → p-71936600.entry.js} +1 -1
- package/dist/{build/p-9cdee500.entry.js → paperless/p-75c0d205.entry.js} +1 -1
- package/dist/paperless/{p-2a37b400.entry.js → p-796ade92.entry.js} +1 -1
- package/dist/paperless/{p-a6369294.entry.js → p-7b05d594.entry.js} +1 -1
- package/dist/paperless/{p-60a3f1ee.entry.js → p-8073ff56.entry.js} +1 -1
- package/dist/paperless/{p-abe821ce.entry.js → p-8527dffc.entry.js} +1 -1
- package/dist/{build/p-ba7ccf80.entry.js → paperless/p-88434ef8.entry.js} +1 -1
- package/dist/paperless/p-8b074922.entry.js +1 -0
- package/dist/paperless/{p-8824a0ef.entry.js → p-8c36f589.entry.js} +1 -1
- package/dist/paperless/{p-d5d45034.entry.js → p-8d872235.entry.js} +1 -1
- package/dist/paperless/{p-d81c6c9e.entry.js → p-8f5d0259.entry.js} +1 -1
- package/dist/paperless/{p-9fd28756.entry.js → p-91c17aaa.entry.js} +1 -1
- package/dist/{build/p-166704d6.entry.js → paperless/p-96020614.entry.js} +1 -1
- package/dist/paperless/p-BaOYiNIi.js +1 -0
- package/dist/paperless/{p-Jt5e0RAn.js → p-Ds4BJt6D.js} +1 -1
- package/dist/paperless/p-UEOqFwec.js +2 -0
- package/dist/paperless/{p-fa1a067a.entry.js → p-a075f933.entry.js} +1 -1
- package/dist/{build/p-60923e39.entry.js → paperless/p-a3c931c3.entry.js} +1 -1
- package/dist/paperless/{p-80922205.entry.js → p-ac64c055.entry.js} +1 -1
- package/dist/paperless/{p-93ce18e4.entry.js → p-b39702b5.entry.js} +1 -1
- package/dist/paperless/{p-7ac9dc1e.entry.js → p-b660c06c.entry.js} +1 -1
- package/dist/{build/p-a7d200c3.entry.js → paperless/p-cc67c333.entry.js} +1 -1
- package/dist/paperless/{p-1c17ee9b.entry.js → p-cce41338.entry.js} +1 -1
- package/dist/{build/p-260a97c9.entry.js → paperless/p-d79097e9.entry.js} +1 -1
- package/dist/paperless/{p-ee7858e4.entry.js → p-d824b806.entry.js} +1 -1
- package/dist/paperless/{p-a232b345.entry.js → p-dad6be91.entry.js} +1 -1
- package/dist/paperless/{p-8644a3f1.entry.js → p-dc7e3d2d.entry.js} +1 -1
- package/dist/paperless/{p-c298abac.entry.js → p-dcc913e0.entry.js} +1 -1
- package/dist/{build/p-f5be155f.entry.js → paperless/p-e6c0c26a.entry.js} +1 -1
- package/dist/paperless/{p-1f15cd98.entry.js → p-e8911355.entry.js} +1 -1
- package/dist/paperless/{p-5c5cdb06.entry.js → p-eb88330f.entry.js} +1 -1
- package/dist/paperless/p-f16b7c0e.entry.js +3 -0
- package/dist/paperless/{p-0388615e.entry.js → p-f71542cd.entry.js} +1 -1
- package/dist/paperless/{p-d8681bdc.entry.js → p-fc461e09.entry.js} +1 -1
- package/dist/{build/p-18454ce9.entry.js → paperless/p-fd71dc2b.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +5120 -5186
- package/hydrate/index.mjs +5120 -5186
- package/package.json +1 -1
- package/dist/build/p-5a2d19ec.entry.js +0 -1
- package/dist/build/p-75ba802e.entry.js +0 -3
- package/dist/build/p-8c1bf7ea.entry.js +0 -1
- package/dist/build/p-BDccsg1s.js +0 -2
- package/dist/build/p-BErFyukm.js +0 -1
- package/dist/build/p-c577e542.entry.js +0 -1
- package/dist/components/p-et-2f2Wz.js +0 -2
- package/dist/paperless/p-5a2d19ec.entry.js +0 -1
- package/dist/paperless/p-75ba802e.entry.js +0 -3
- package/dist/paperless/p-8c1bf7ea.entry.js +0 -1
- package/dist/paperless/p-BDccsg1s.js +0 -2
- package/dist/paperless/p-BErFyukm.js +0 -1
- package/dist/paperless/p-c577e542.entry.js +0 -1
|
@@ -6,254 +6,9 @@ const globalScripts = () => {};
|
|
|
6
6
|
const globalStyles = ".w-full{width:100%}.touch-none{touch-action:none}.font-ambit{font-family:Ambit,sans-serif}.font-geist{font-family:Geist,serif}.text-base{font-size:1rem;line-height:1.5rem}.lining-nums{--tw-numeric-figure:lining-nums}.lining-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.text-inherit{color:inherit}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}*{box-sizing:border-box;font-family:Geist,serif}.w-full{width:100%}.touch-none{touch-action:none}.font-ambit{font-family:Ambit,sans-serif}.font-geist{font-family:Geist,serif}.text-base{font-size:1rem;line-height:1.5rem}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-inherit{color:inherit}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@import url(https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap);@import url(https://fonts.cdnfonts.com/css/ambit);*,* button,.font-geist,.font-geist button{font-variant-numeric:lining-nums tabular-nums}body,html{-webkit-font-smoothing:antialiased;max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));text-rendering:optimizeLegibility;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}body[data-theme=dark]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(35 41 52/var(--tw-bg-opacity,1));color:rgb(163 165 169/var(--tw-text-opacity,1))}body:not([data-theme=dark]){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));color:rgb(116 120 127/var(--tw-text-opacity,1))}html{height:-moz-stretch;height:-webkit-stretch;height:-webkit-fill-available;height:-moz-available;height:stretch}body{font-size:1rem;font-weight:500;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:-moz-stretch;height:-webkit-stretch;height:-webkit-fill-available;height:-moz-available;height:stretch;line-height:1.5rem}body *{box-sizing:border-box}a,a:visited{color:inherit}h1,h2,h3,h4,h5{font-family:Ambit,sans-serif;font-weight:700}h1{font-size:2rem;line-height:2.5rem}h2{font-size:1.5rem;line-height:2rem}h3{font-size:1.25rem}h3,h4{line-height:1.75rem}h4{font-size:1.125rem}body[data-theme=dark] h1,body[data-theme=dark] h2,body[data-theme=dark] h3,body[data-theme=dark] h4,body[data-theme=dark] h5{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}body:not([data-theme=dark]) h1,body:not([data-theme=dark]) h2,body:not([data-theme=dark]) h3,body:not([data-theme=dark]) h4,body:not([data-theme=dark]) h5{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.scroll-lock{-webkit-overflow-scrolling:auto;overflow:hidden;overscroll-behavior:none;touch-action:none}";
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Platform v4.41.
|
|
9
|
+
Stencil Client Platform v4.41.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
|
-
var __create = Object.create;
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
16
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
-
var __typeError = (msg) => {
|
|
18
|
-
throw TypeError(msg);
|
|
19
|
-
};
|
|
20
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
21
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
22
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
23
|
-
};
|
|
24
|
-
var __export = (target, all) => {
|
|
25
|
-
for (var name in all)
|
|
26
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
27
|
-
};
|
|
28
|
-
var __copyProps = (to, from, except, desc) => {
|
|
29
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
-
for (let key of __getOwnPropNames(from))
|
|
31
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
33
|
-
}
|
|
34
|
-
return to;
|
|
35
|
-
};
|
|
36
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
39
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
40
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
41
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
42
|
-
mod
|
|
43
|
-
));
|
|
44
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
45
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
46
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
47
|
-
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);
|
|
48
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
49
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
50
11
|
|
|
51
|
-
// node_modules/balanced-match/index.js
|
|
52
|
-
var require_balanced_match = __commonJS({
|
|
53
|
-
"node_modules/balanced-match/index.js"(exports, module) {
|
|
54
|
-
module.exports = balanced;
|
|
55
|
-
function balanced(a, b, str) {
|
|
56
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
57
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
58
|
-
var r = range(a, b, str);
|
|
59
|
-
return r && {
|
|
60
|
-
start: r[0],
|
|
61
|
-
end: r[1],
|
|
62
|
-
pre: str.slice(0, r[0]),
|
|
63
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
64
|
-
post: str.slice(r[1] + b.length)
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
function maybeMatch(reg, str) {
|
|
68
|
-
var m = str.match(reg);
|
|
69
|
-
return m ? m[0] : null;
|
|
70
|
-
}
|
|
71
|
-
balanced.range = range;
|
|
72
|
-
function range(a, b, str) {
|
|
73
|
-
var begs, beg, left, right, result;
|
|
74
|
-
var ai = str.indexOf(a);
|
|
75
|
-
var bi = str.indexOf(b, ai + 1);
|
|
76
|
-
var i2 = ai;
|
|
77
|
-
if (ai >= 0 && bi > 0) {
|
|
78
|
-
if (a === b) {
|
|
79
|
-
return [ai, bi];
|
|
80
|
-
}
|
|
81
|
-
begs = [];
|
|
82
|
-
left = str.length;
|
|
83
|
-
while (i2 >= 0 && !result) {
|
|
84
|
-
if (i2 == ai) {
|
|
85
|
-
begs.push(i2);
|
|
86
|
-
ai = str.indexOf(a, i2 + 1);
|
|
87
|
-
} else if (begs.length == 1) {
|
|
88
|
-
result = [begs.pop(), bi];
|
|
89
|
-
} else {
|
|
90
|
-
beg = begs.pop();
|
|
91
|
-
if (beg < left) {
|
|
92
|
-
left = beg;
|
|
93
|
-
right = bi;
|
|
94
|
-
}
|
|
95
|
-
bi = str.indexOf(b, i2 + 1);
|
|
96
|
-
}
|
|
97
|
-
i2 = ai < bi && ai >= 0 ? ai : bi;
|
|
98
|
-
}
|
|
99
|
-
if (begs.length) {
|
|
100
|
-
result = [left, right];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return result;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
// node_modules/brace-expansion/index.js
|
|
109
|
-
var require_brace_expansion = __commonJS({
|
|
110
|
-
"node_modules/brace-expansion/index.js"(exports, module) {
|
|
111
|
-
var balanced = require_balanced_match();
|
|
112
|
-
module.exports = expandTop;
|
|
113
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
114
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
115
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
116
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
117
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
118
|
-
function numeric(str) {
|
|
119
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
120
|
-
}
|
|
121
|
-
function escapeBraces(str) {
|
|
122
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
123
|
-
}
|
|
124
|
-
function unescapeBraces(str) {
|
|
125
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
126
|
-
}
|
|
127
|
-
function parseCommaParts(str) {
|
|
128
|
-
if (!str)
|
|
129
|
-
return [""];
|
|
130
|
-
var parts = [];
|
|
131
|
-
var m = balanced("{", "}", str);
|
|
132
|
-
if (!m)
|
|
133
|
-
return str.split(",");
|
|
134
|
-
var pre = m.pre;
|
|
135
|
-
var body = m.body;
|
|
136
|
-
var post = m.post;
|
|
137
|
-
var p = pre.split(",");
|
|
138
|
-
p[p.length - 1] += "{" + body + "}";
|
|
139
|
-
var postParts = parseCommaParts(post);
|
|
140
|
-
if (post.length) {
|
|
141
|
-
p[p.length - 1] += postParts.shift();
|
|
142
|
-
p.push.apply(p, postParts);
|
|
143
|
-
}
|
|
144
|
-
parts.push.apply(parts, p);
|
|
145
|
-
return parts;
|
|
146
|
-
}
|
|
147
|
-
function expandTop(str) {
|
|
148
|
-
if (!str)
|
|
149
|
-
return [];
|
|
150
|
-
if (str.substr(0, 2) === "{}") {
|
|
151
|
-
str = "\\{\\}" + str.substr(2);
|
|
152
|
-
}
|
|
153
|
-
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
154
|
-
}
|
|
155
|
-
function embrace(str) {
|
|
156
|
-
return "{" + str + "}";
|
|
157
|
-
}
|
|
158
|
-
function isPadded(el) {
|
|
159
|
-
return /^-?0\d/.test(el);
|
|
160
|
-
}
|
|
161
|
-
function lte(i2, y) {
|
|
162
|
-
return i2 <= y;
|
|
163
|
-
}
|
|
164
|
-
function gte(i2, y) {
|
|
165
|
-
return i2 >= y;
|
|
166
|
-
}
|
|
167
|
-
function expand2(str, isTop) {
|
|
168
|
-
var expansions = [];
|
|
169
|
-
var m = balanced("{", "}", str);
|
|
170
|
-
if (!m) return [str];
|
|
171
|
-
var pre = m.pre;
|
|
172
|
-
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
173
|
-
if (/\$$/.test(m.pre)) {
|
|
174
|
-
for (var k = 0; k < post.length; k++) {
|
|
175
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
176
|
-
expansions.push(expansion);
|
|
177
|
-
}
|
|
178
|
-
} else {
|
|
179
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
180
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
181
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
182
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
183
|
-
if (!isSequence && !isOptions) {
|
|
184
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
185
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
186
|
-
return expand2(str);
|
|
187
|
-
}
|
|
188
|
-
return [str];
|
|
189
|
-
}
|
|
190
|
-
var n;
|
|
191
|
-
if (isSequence) {
|
|
192
|
-
n = m.body.split(/\.\./);
|
|
193
|
-
} else {
|
|
194
|
-
n = parseCommaParts(m.body);
|
|
195
|
-
if (n.length === 1) {
|
|
196
|
-
n = expand2(n[0], false).map(embrace);
|
|
197
|
-
if (n.length === 1) {
|
|
198
|
-
return post.map(function(p) {
|
|
199
|
-
return m.pre + n[0] + p;
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var N;
|
|
205
|
-
if (isSequence) {
|
|
206
|
-
var x = numeric(n[0]);
|
|
207
|
-
var y = numeric(n[1]);
|
|
208
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
209
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
210
|
-
var test = lte;
|
|
211
|
-
var reverse = y < x;
|
|
212
|
-
if (reverse) {
|
|
213
|
-
incr *= -1;
|
|
214
|
-
test = gte;
|
|
215
|
-
}
|
|
216
|
-
var pad = n.some(isPadded);
|
|
217
|
-
N = [];
|
|
218
|
-
for (var i2 = x; test(i2, y); i2 += incr) {
|
|
219
|
-
var c;
|
|
220
|
-
if (isAlphaSequence) {
|
|
221
|
-
c = String.fromCharCode(i2);
|
|
222
|
-
if (c === "\\")
|
|
223
|
-
c = "";
|
|
224
|
-
} else {
|
|
225
|
-
c = String(i2);
|
|
226
|
-
if (pad) {
|
|
227
|
-
var need = width - c.length;
|
|
228
|
-
if (need > 0) {
|
|
229
|
-
var z = new Array(need + 1).join("0");
|
|
230
|
-
if (i2 < 0)
|
|
231
|
-
c = "-" + z + c.slice(1);
|
|
232
|
-
else
|
|
233
|
-
c = z + c;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
N.push(c);
|
|
238
|
-
}
|
|
239
|
-
} else {
|
|
240
|
-
N = [];
|
|
241
|
-
for (var j = 0; j < n.length; j++) {
|
|
242
|
-
N.push.apply(N, expand2(n[j], false));
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
for (var j = 0; j < N.length; j++) {
|
|
246
|
-
for (var k = 0; k < post.length; k++) {
|
|
247
|
-
var expansion = pre + N[j] + post[k];
|
|
248
|
-
if (!isTop || isSequence || expansion)
|
|
249
|
-
expansions.push(expansion);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return expansions;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
12
|
var Build = {
|
|
258
13
|
isDev: BUILD.isDev ? true : false,
|
|
259
14
|
isBrowser: true,
|
|
@@ -794,1534 +549,11 @@ var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
|
794
549
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
795
550
|
|
|
796
551
|
// src/runtime/asset-path.ts
|
|
797
|
-
var getAssetPath = (
|
|
798
|
-
const assetUrl = new URL(
|
|
552
|
+
var getAssetPath = (path) => {
|
|
553
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
799
554
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
800
555
|
};
|
|
801
|
-
var setAssetPath = (
|
|
802
|
-
|
|
803
|
-
// src/utils/helpers.ts
|
|
804
|
-
var isDef = (v) => v != null && v !== void 0;
|
|
805
|
-
var isComplexType = (o) => {
|
|
806
|
-
o = typeof o;
|
|
807
|
-
return o === "object" || o === "function";
|
|
808
|
-
};
|
|
809
|
-
|
|
810
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
811
|
-
var import_brace_expansion = __toESM(require_brace_expansion());
|
|
812
|
-
|
|
813
|
-
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
814
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
815
|
-
var assertValidPattern = (pattern) => {
|
|
816
|
-
if (typeof pattern !== "string") {
|
|
817
|
-
throw new TypeError("invalid pattern");
|
|
818
|
-
}
|
|
819
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
820
|
-
throw new TypeError("pattern is too long");
|
|
821
|
-
}
|
|
822
|
-
};
|
|
823
|
-
|
|
824
|
-
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
825
|
-
var posixClasses = {
|
|
826
|
-
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
827
|
-
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
828
|
-
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
829
|
-
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
830
|
-
"[:cntrl:]": ["\\p{Cc}", true],
|
|
831
|
-
"[:digit:]": ["\\p{Nd}", true],
|
|
832
|
-
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
833
|
-
"[:lower:]": ["\\p{Ll}", true],
|
|
834
|
-
"[:print:]": ["\\p{C}", true],
|
|
835
|
-
"[:punct:]": ["\\p{P}", true],
|
|
836
|
-
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
837
|
-
"[:upper:]": ["\\p{Lu}", true],
|
|
838
|
-
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
839
|
-
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
840
|
-
};
|
|
841
|
-
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
842
|
-
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
843
|
-
var rangesToString = (ranges) => ranges.join("");
|
|
844
|
-
var parseClass = (glob, position) => {
|
|
845
|
-
const pos = position;
|
|
846
|
-
if (glob.charAt(pos) !== "[") {
|
|
847
|
-
throw new Error("not in a brace expression");
|
|
848
|
-
}
|
|
849
|
-
const ranges = [];
|
|
850
|
-
const negs = [];
|
|
851
|
-
let i2 = pos + 1;
|
|
852
|
-
let sawStart = false;
|
|
853
|
-
let uflag = false;
|
|
854
|
-
let escaping = false;
|
|
855
|
-
let negate = false;
|
|
856
|
-
let endPos = pos;
|
|
857
|
-
let rangeStart = "";
|
|
858
|
-
WHILE: while (i2 < glob.length) {
|
|
859
|
-
const c = glob.charAt(i2);
|
|
860
|
-
if ((c === "!" || c === "^") && i2 === pos + 1) {
|
|
861
|
-
negate = true;
|
|
862
|
-
i2++;
|
|
863
|
-
continue;
|
|
864
|
-
}
|
|
865
|
-
if (c === "]" && sawStart && !escaping) {
|
|
866
|
-
endPos = i2 + 1;
|
|
867
|
-
break;
|
|
868
|
-
}
|
|
869
|
-
sawStart = true;
|
|
870
|
-
if (c === "\\") {
|
|
871
|
-
if (!escaping) {
|
|
872
|
-
escaping = true;
|
|
873
|
-
i2++;
|
|
874
|
-
continue;
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
if (c === "[" && !escaping) {
|
|
878
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
879
|
-
if (glob.startsWith(cls, i2)) {
|
|
880
|
-
if (rangeStart) {
|
|
881
|
-
return ["$.", false, glob.length - pos, true];
|
|
882
|
-
}
|
|
883
|
-
i2 += cls.length;
|
|
884
|
-
if (neg)
|
|
885
|
-
negs.push(unip);
|
|
886
|
-
else
|
|
887
|
-
ranges.push(unip);
|
|
888
|
-
uflag = uflag || u;
|
|
889
|
-
continue WHILE;
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
escaping = false;
|
|
894
|
-
if (rangeStart) {
|
|
895
|
-
if (c > rangeStart) {
|
|
896
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
897
|
-
} else if (c === rangeStart) {
|
|
898
|
-
ranges.push(braceEscape(c));
|
|
899
|
-
}
|
|
900
|
-
rangeStart = "";
|
|
901
|
-
i2++;
|
|
902
|
-
continue;
|
|
903
|
-
}
|
|
904
|
-
if (glob.startsWith("-]", i2 + 1)) {
|
|
905
|
-
ranges.push(braceEscape(c + "-"));
|
|
906
|
-
i2 += 2;
|
|
907
|
-
continue;
|
|
908
|
-
}
|
|
909
|
-
if (glob.startsWith("-", i2 + 1)) {
|
|
910
|
-
rangeStart = c;
|
|
911
|
-
i2 += 2;
|
|
912
|
-
continue;
|
|
913
|
-
}
|
|
914
|
-
ranges.push(braceEscape(c));
|
|
915
|
-
i2++;
|
|
916
|
-
}
|
|
917
|
-
if (endPos < i2) {
|
|
918
|
-
return ["", false, 0, false];
|
|
919
|
-
}
|
|
920
|
-
if (!ranges.length && !negs.length) {
|
|
921
|
-
return ["$.", false, glob.length - pos, true];
|
|
922
|
-
}
|
|
923
|
-
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
924
|
-
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
925
|
-
return [regexpEscape(r), false, endPos - pos, false];
|
|
926
|
-
}
|
|
927
|
-
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
928
|
-
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
929
|
-
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
930
|
-
return [comb, uflag, endPos - pos, true];
|
|
931
|
-
};
|
|
932
|
-
|
|
933
|
-
// node_modules/minimatch/dist/esm/unescape.js
|
|
934
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
935
|
-
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
// node_modules/minimatch/dist/esm/ast.js
|
|
939
|
-
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
940
|
-
var isExtglobType = (c) => types.has(c);
|
|
941
|
-
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
942
|
-
var startNoDot = "(?!\\.)";
|
|
943
|
-
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
944
|
-
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
945
|
-
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
946
|
-
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
947
|
-
var qmark = "[^/]";
|
|
948
|
-
var star = qmark + "*?";
|
|
949
|
-
var starNoEmpty = qmark + "+?";
|
|
950
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
951
|
-
var _AST = class _AST {
|
|
952
|
-
constructor(type, parent, options = {}) {
|
|
953
|
-
__privateAdd(this, _AST_instances);
|
|
954
|
-
__publicField(this, "type");
|
|
955
|
-
__privateAdd(this, _root);
|
|
956
|
-
__privateAdd(this, _hasMagic);
|
|
957
|
-
__privateAdd(this, _uflag, false);
|
|
958
|
-
__privateAdd(this, _parts, []);
|
|
959
|
-
__privateAdd(this, _parent);
|
|
960
|
-
__privateAdd(this, _parentIndex);
|
|
961
|
-
__privateAdd(this, _negs);
|
|
962
|
-
__privateAdd(this, _filledNegs, false);
|
|
963
|
-
__privateAdd(this, _options);
|
|
964
|
-
__privateAdd(this, _toString);
|
|
965
|
-
// set to true if it's an extglob with no children
|
|
966
|
-
// (which really means one child of '')
|
|
967
|
-
__privateAdd(this, _emptyExt, false);
|
|
968
|
-
this.type = type;
|
|
969
|
-
if (type)
|
|
970
|
-
__privateSet(this, _hasMagic, true);
|
|
971
|
-
__privateSet(this, _parent, parent);
|
|
972
|
-
__privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
|
|
973
|
-
__privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
|
|
974
|
-
__privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
|
|
975
|
-
if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
|
|
976
|
-
__privateGet(this, _negs).push(this);
|
|
977
|
-
__privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
|
|
978
|
-
}
|
|
979
|
-
get hasMagic() {
|
|
980
|
-
if (__privateGet(this, _hasMagic) !== void 0)
|
|
981
|
-
return __privateGet(this, _hasMagic);
|
|
982
|
-
for (const p of __privateGet(this, _parts)) {
|
|
983
|
-
if (typeof p === "string")
|
|
984
|
-
continue;
|
|
985
|
-
if (p.type || p.hasMagic)
|
|
986
|
-
return __privateSet(this, _hasMagic, true);
|
|
987
|
-
}
|
|
988
|
-
return __privateGet(this, _hasMagic);
|
|
989
|
-
}
|
|
990
|
-
// reconstructs the pattern
|
|
991
|
-
toString() {
|
|
992
|
-
if (__privateGet(this, _toString) !== void 0)
|
|
993
|
-
return __privateGet(this, _toString);
|
|
994
|
-
if (!this.type) {
|
|
995
|
-
return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
|
|
996
|
-
} else {
|
|
997
|
-
return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
push(...parts) {
|
|
1001
|
-
for (const p of parts) {
|
|
1002
|
-
if (p === "")
|
|
1003
|
-
continue;
|
|
1004
|
-
if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
|
|
1005
|
-
throw new Error("invalid part: " + p);
|
|
1006
|
-
}
|
|
1007
|
-
__privateGet(this, _parts).push(p);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
toJSON() {
|
|
1011
|
-
var _a;
|
|
1012
|
-
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())];
|
|
1013
|
-
if (this.isStart() && !this.type)
|
|
1014
|
-
ret.unshift([]);
|
|
1015
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
|
|
1016
|
-
ret.push({});
|
|
1017
|
-
}
|
|
1018
|
-
return ret;
|
|
1019
|
-
}
|
|
1020
|
-
isStart() {
|
|
1021
|
-
var _a;
|
|
1022
|
-
if (__privateGet(this, _root) === this)
|
|
1023
|
-
return true;
|
|
1024
|
-
if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
|
|
1025
|
-
return false;
|
|
1026
|
-
if (__privateGet(this, _parentIndex) === 0)
|
|
1027
|
-
return true;
|
|
1028
|
-
const p = __privateGet(this, _parent);
|
|
1029
|
-
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
1030
|
-
const pp = __privateGet(p, _parts)[i2];
|
|
1031
|
-
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
1032
|
-
return false;
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
return true;
|
|
1036
|
-
}
|
|
1037
|
-
isEnd() {
|
|
1038
|
-
var _a, _b, _c;
|
|
1039
|
-
if (__privateGet(this, _root) === this)
|
|
1040
|
-
return true;
|
|
1041
|
-
if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
|
|
1042
|
-
return true;
|
|
1043
|
-
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
1044
|
-
return false;
|
|
1045
|
-
if (!this.type)
|
|
1046
|
-
return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
|
|
1047
|
-
const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
|
|
1048
|
-
return __privateGet(this, _parentIndex) === pl - 1;
|
|
1049
|
-
}
|
|
1050
|
-
copyIn(part) {
|
|
1051
|
-
if (typeof part === "string")
|
|
1052
|
-
this.push(part);
|
|
1053
|
-
else
|
|
1054
|
-
this.push(part.clone(this));
|
|
1055
|
-
}
|
|
1056
|
-
clone(parent) {
|
|
1057
|
-
const c = new _AST(this.type, parent);
|
|
1058
|
-
for (const p of __privateGet(this, _parts)) {
|
|
1059
|
-
c.copyIn(p);
|
|
1060
|
-
}
|
|
1061
|
-
return c;
|
|
1062
|
-
}
|
|
1063
|
-
static fromGlob(pattern, options = {}) {
|
|
1064
|
-
var _a;
|
|
1065
|
-
const ast = new _AST(null, void 0, options);
|
|
1066
|
-
__privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
|
|
1067
|
-
return ast;
|
|
1068
|
-
}
|
|
1069
|
-
// returns the regular expression if there's magic, or the unescaped
|
|
1070
|
-
// string if not.
|
|
1071
|
-
toMMPattern() {
|
|
1072
|
-
if (this !== __privateGet(this, _root))
|
|
1073
|
-
return __privateGet(this, _root).toMMPattern();
|
|
1074
|
-
const glob = this.toString();
|
|
1075
|
-
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
1076
|
-
const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
1077
|
-
if (!anyMagic) {
|
|
1078
|
-
return body;
|
|
1079
|
-
}
|
|
1080
|
-
const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
|
|
1081
|
-
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
1082
|
-
_src: re,
|
|
1083
|
-
_glob: glob
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
get options() {
|
|
1087
|
-
return __privateGet(this, _options);
|
|
1088
|
-
}
|
|
1089
|
-
// returns the string match, the regexp source, whether there's magic
|
|
1090
|
-
// in the regexp (so a regular expression is required) and whether or
|
|
1091
|
-
// not the uflag is needed for the regular expression (for posix classes)
|
|
1092
|
-
// TODO: instead of injecting the start/end at this point, just return
|
|
1093
|
-
// the BODY of the regexp, along with the start/end portions suitable
|
|
1094
|
-
// for binding the start/end in either a joined full-path makeRe context
|
|
1095
|
-
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
1096
|
-
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
1097
|
-
//
|
|
1098
|
-
// In part-matching mode, the start is:
|
|
1099
|
-
// - if not isStart: nothing
|
|
1100
|
-
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
1101
|
-
// - if dots allowed or not possible: ^
|
|
1102
|
-
// - if dots possible and not allowed: ^(?!\.)
|
|
1103
|
-
// end is:
|
|
1104
|
-
// - if not isEnd(): nothing
|
|
1105
|
-
// - else: $
|
|
1106
|
-
//
|
|
1107
|
-
// In full-path matching mode, we put the slash at the START of the
|
|
1108
|
-
// pattern, so start is:
|
|
1109
|
-
// - if first pattern: same as part-matching mode
|
|
1110
|
-
// - if not isStart(): nothing
|
|
1111
|
-
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
1112
|
-
// - if dots allowed or not possible: /
|
|
1113
|
-
// - if dots possible and not allowed: /(?!\.)
|
|
1114
|
-
// end is:
|
|
1115
|
-
// - if last pattern, same as part-matching mode
|
|
1116
|
-
// - else nothing
|
|
1117
|
-
//
|
|
1118
|
-
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
1119
|
-
// there to bind the end of the negated pattern portion, and it's easier to
|
|
1120
|
-
// just stick it in now rather than try to inject it later in the middle of
|
|
1121
|
-
// the pattern.
|
|
1122
|
-
//
|
|
1123
|
-
// We can just always return the same end, and leave it up to the caller
|
|
1124
|
-
// to know whether it's going to be used joined or in parts.
|
|
1125
|
-
// And, if the start is adjusted slightly, can do the same there:
|
|
1126
|
-
// - if not isStart: nothing
|
|
1127
|
-
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
1128
|
-
// - if dots allowed or not possible: (?:/|^)
|
|
1129
|
-
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
1130
|
-
//
|
|
1131
|
-
// But it's better to have a simpler binding without a conditional, for
|
|
1132
|
-
// performance, so probably better to return both start options.
|
|
1133
|
-
//
|
|
1134
|
-
// Then the caller just ignores the end if it's not the first pattern,
|
|
1135
|
-
// and the start always gets applied.
|
|
1136
|
-
//
|
|
1137
|
-
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
1138
|
-
// so the caller can just attach $ at the end of the pattern when building.
|
|
1139
|
-
//
|
|
1140
|
-
// So the todo is:
|
|
1141
|
-
// - better detect what kind of start is needed
|
|
1142
|
-
// - return both flavors of starting pattern
|
|
1143
|
-
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
1144
|
-
//
|
|
1145
|
-
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
1146
|
-
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
1147
|
-
// that dot prevention biz to live in the extglob portions, because eg
|
|
1148
|
-
// +(*|.x*) can match .xy but not .yx.
|
|
1149
|
-
//
|
|
1150
|
-
// So, return the two flavors if it's #root and the first child is not an
|
|
1151
|
-
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
1152
|
-
// use the (?:^|/) style of start binding.
|
|
1153
|
-
//
|
|
1154
|
-
// Even simplified further:
|
|
1155
|
-
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
1156
|
-
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
1157
|
-
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
1158
|
-
toRegExpSource(allowDot) {
|
|
1159
|
-
var _a;
|
|
1160
|
-
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
1161
|
-
if (__privateGet(this, _root) === this)
|
|
1162
|
-
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
1163
|
-
if (!this.type) {
|
|
1164
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
1165
|
-
const src = __privateGet(this, _parts).map((p) => {
|
|
1166
|
-
var _a2;
|
|
1167
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
1168
|
-
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
1169
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1170
|
-
return re;
|
|
1171
|
-
}).join("");
|
|
1172
|
-
let start2 = "";
|
|
1173
|
-
if (this.isStart()) {
|
|
1174
|
-
if (typeof __privateGet(this, _parts)[0] === "string") {
|
|
1175
|
-
const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
|
|
1176
|
-
if (!dotTravAllowed) {
|
|
1177
|
-
const aps = addPatternStart;
|
|
1178
|
-
const needNoTrav = (
|
|
1179
|
-
// dots are allowed, and the pattern starts with [ or .
|
|
1180
|
-
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
1181
|
-
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
1182
|
-
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
1183
|
-
);
|
|
1184
|
-
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
1185
|
-
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
let end = "";
|
|
1190
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
|
|
1191
|
-
end = "(?:$|\\/)";
|
|
1192
|
-
}
|
|
1193
|
-
const final2 = start2 + src + end;
|
|
1194
|
-
return [
|
|
1195
|
-
final2,
|
|
1196
|
-
unescape(src),
|
|
1197
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1198
|
-
__privateGet(this, _uflag)
|
|
1199
|
-
];
|
|
1200
|
-
}
|
|
1201
|
-
const repeated = this.type === "*" || this.type === "+";
|
|
1202
|
-
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
1203
|
-
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
1204
|
-
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
1205
|
-
const s = this.toString();
|
|
1206
|
-
__privateSet(this, _parts, [s]);
|
|
1207
|
-
this.type = null;
|
|
1208
|
-
__privateSet(this, _hasMagic, void 0);
|
|
1209
|
-
return [s, unescape(this.toString()), false, false];
|
|
1210
|
-
}
|
|
1211
|
-
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
1212
|
-
if (bodyDotAllowed === body) {
|
|
1213
|
-
bodyDotAllowed = "";
|
|
1214
|
-
}
|
|
1215
|
-
if (bodyDotAllowed) {
|
|
1216
|
-
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
1217
|
-
}
|
|
1218
|
-
let final = "";
|
|
1219
|
-
if (this.type === "!" && __privateGet(this, _emptyExt)) {
|
|
1220
|
-
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
1221
|
-
} else {
|
|
1222
|
-
const close = this.type === "!" ? (
|
|
1223
|
-
// !() must match something,but !(x) can match ''
|
|
1224
|
-
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
1225
|
-
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
1226
|
-
final = start + body + close;
|
|
1227
|
-
}
|
|
1228
|
-
return [
|
|
1229
|
-
final,
|
|
1230
|
-
unescape(body),
|
|
1231
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1232
|
-
__privateGet(this, _uflag)
|
|
1233
|
-
];
|
|
1234
|
-
}
|
|
1235
|
-
};
|
|
1236
|
-
_root = new WeakMap();
|
|
1237
|
-
_hasMagic = new WeakMap();
|
|
1238
|
-
_uflag = new WeakMap();
|
|
1239
|
-
_parts = new WeakMap();
|
|
1240
|
-
_parent = new WeakMap();
|
|
1241
|
-
_parentIndex = new WeakMap();
|
|
1242
|
-
_negs = new WeakMap();
|
|
1243
|
-
_filledNegs = new WeakMap();
|
|
1244
|
-
_options = new WeakMap();
|
|
1245
|
-
_toString = new WeakMap();
|
|
1246
|
-
_emptyExt = new WeakMap();
|
|
1247
|
-
_AST_instances = new WeakSet();
|
|
1248
|
-
fillNegs_fn = function() {
|
|
1249
|
-
if (this !== __privateGet(this, _root))
|
|
1250
|
-
throw new Error("should only call on root");
|
|
1251
|
-
if (__privateGet(this, _filledNegs))
|
|
1252
|
-
return this;
|
|
1253
|
-
this.toString();
|
|
1254
|
-
__privateSet(this, _filledNegs, true);
|
|
1255
|
-
let n;
|
|
1256
|
-
while (n = __privateGet(this, _negs).pop()) {
|
|
1257
|
-
if (n.type !== "!")
|
|
1258
|
-
continue;
|
|
1259
|
-
let p = n;
|
|
1260
|
-
let pp = __privateGet(p, _parent);
|
|
1261
|
-
while (pp) {
|
|
1262
|
-
for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
|
|
1263
|
-
for (const part of __privateGet(n, _parts)) {
|
|
1264
|
-
if (typeof part === "string") {
|
|
1265
|
-
throw new Error("string part in extglob AST??");
|
|
1266
|
-
}
|
|
1267
|
-
part.copyIn(__privateGet(pp, _parts)[i2]);
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
p = pp;
|
|
1271
|
-
pp = __privateGet(p, _parent);
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
return this;
|
|
1275
|
-
};
|
|
1276
|
-
_AST_static = new WeakSet();
|
|
1277
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
1278
|
-
var _a, _b;
|
|
1279
|
-
let escaping = false;
|
|
1280
|
-
let inBrace = false;
|
|
1281
|
-
let braceStart = -1;
|
|
1282
|
-
let braceNeg = false;
|
|
1283
|
-
if (ast.type === null) {
|
|
1284
|
-
let i3 = pos;
|
|
1285
|
-
let acc2 = "";
|
|
1286
|
-
while (i3 < str.length) {
|
|
1287
|
-
const c = str.charAt(i3++);
|
|
1288
|
-
if (escaping || c === "\\") {
|
|
1289
|
-
escaping = !escaping;
|
|
1290
|
-
acc2 += c;
|
|
1291
|
-
continue;
|
|
1292
|
-
}
|
|
1293
|
-
if (inBrace) {
|
|
1294
|
-
if (i3 === braceStart + 1) {
|
|
1295
|
-
if (c === "^" || c === "!") {
|
|
1296
|
-
braceNeg = true;
|
|
1297
|
-
}
|
|
1298
|
-
} else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
|
|
1299
|
-
inBrace = false;
|
|
1300
|
-
}
|
|
1301
|
-
acc2 += c;
|
|
1302
|
-
continue;
|
|
1303
|
-
} else if (c === "[") {
|
|
1304
|
-
inBrace = true;
|
|
1305
|
-
braceStart = i3;
|
|
1306
|
-
braceNeg = false;
|
|
1307
|
-
acc2 += c;
|
|
1308
|
-
continue;
|
|
1309
|
-
}
|
|
1310
|
-
if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
|
|
1311
|
-
ast.push(acc2);
|
|
1312
|
-
acc2 = "";
|
|
1313
|
-
const ext2 = new _AST(c, ast);
|
|
1314
|
-
i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
|
|
1315
|
-
ast.push(ext2);
|
|
1316
|
-
continue;
|
|
1317
|
-
}
|
|
1318
|
-
acc2 += c;
|
|
1319
|
-
}
|
|
1320
|
-
ast.push(acc2);
|
|
1321
|
-
return i3;
|
|
1322
|
-
}
|
|
1323
|
-
let i2 = pos + 1;
|
|
1324
|
-
let part = new _AST(null, ast);
|
|
1325
|
-
const parts = [];
|
|
1326
|
-
let acc = "";
|
|
1327
|
-
while (i2 < str.length) {
|
|
1328
|
-
const c = str.charAt(i2++);
|
|
1329
|
-
if (escaping || c === "\\") {
|
|
1330
|
-
escaping = !escaping;
|
|
1331
|
-
acc += c;
|
|
1332
|
-
continue;
|
|
1333
|
-
}
|
|
1334
|
-
if (inBrace) {
|
|
1335
|
-
if (i2 === braceStart + 1) {
|
|
1336
|
-
if (c === "^" || c === "!") {
|
|
1337
|
-
braceNeg = true;
|
|
1338
|
-
}
|
|
1339
|
-
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
1340
|
-
inBrace = false;
|
|
1341
|
-
}
|
|
1342
|
-
acc += c;
|
|
1343
|
-
continue;
|
|
1344
|
-
} else if (c === "[") {
|
|
1345
|
-
inBrace = true;
|
|
1346
|
-
braceStart = i2;
|
|
1347
|
-
braceNeg = false;
|
|
1348
|
-
acc += c;
|
|
1349
|
-
continue;
|
|
1350
|
-
}
|
|
1351
|
-
if (isExtglobType(c) && str.charAt(i2) === "(") {
|
|
1352
|
-
part.push(acc);
|
|
1353
|
-
acc = "";
|
|
1354
|
-
const ext2 = new _AST(c, part);
|
|
1355
|
-
part.push(ext2);
|
|
1356
|
-
i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
|
|
1357
|
-
continue;
|
|
1358
|
-
}
|
|
1359
|
-
if (c === "|") {
|
|
1360
|
-
part.push(acc);
|
|
1361
|
-
acc = "";
|
|
1362
|
-
parts.push(part);
|
|
1363
|
-
part = new _AST(null, ast);
|
|
1364
|
-
continue;
|
|
1365
|
-
}
|
|
1366
|
-
if (c === ")") {
|
|
1367
|
-
if (acc === "" && __privateGet(ast, _parts).length === 0) {
|
|
1368
|
-
__privateSet(ast, _emptyExt, true);
|
|
1369
|
-
}
|
|
1370
|
-
part.push(acc);
|
|
1371
|
-
acc = "";
|
|
1372
|
-
ast.push(...parts, part);
|
|
1373
|
-
return i2;
|
|
1374
|
-
}
|
|
1375
|
-
acc += c;
|
|
1376
|
-
}
|
|
1377
|
-
ast.type = null;
|
|
1378
|
-
__privateSet(ast, _hasMagic, void 0);
|
|
1379
|
-
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
1380
|
-
return i2;
|
|
1381
|
-
};
|
|
1382
|
-
partsToRegExp_fn = function(dot) {
|
|
1383
|
-
return __privateGet(this, _parts).map((p) => {
|
|
1384
|
-
if (typeof p === "string") {
|
|
1385
|
-
throw new Error("string type in extglob ast??");
|
|
1386
|
-
}
|
|
1387
|
-
const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
|
|
1388
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1389
|
-
return re;
|
|
1390
|
-
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
1391
|
-
};
|
|
1392
|
-
parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
1393
|
-
let escaping = false;
|
|
1394
|
-
let re = "";
|
|
1395
|
-
let uflag = false;
|
|
1396
|
-
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1397
|
-
const c = glob.charAt(i2);
|
|
1398
|
-
if (escaping) {
|
|
1399
|
-
escaping = false;
|
|
1400
|
-
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1401
|
-
continue;
|
|
1402
|
-
}
|
|
1403
|
-
if (c === "\\") {
|
|
1404
|
-
if (i2 === glob.length - 1) {
|
|
1405
|
-
re += "\\\\";
|
|
1406
|
-
} else {
|
|
1407
|
-
escaping = true;
|
|
1408
|
-
}
|
|
1409
|
-
continue;
|
|
1410
|
-
}
|
|
1411
|
-
if (c === "[") {
|
|
1412
|
-
const [src, needUflag, consumed, magic] = parseClass(glob, i2);
|
|
1413
|
-
if (consumed) {
|
|
1414
|
-
re += src;
|
|
1415
|
-
uflag = uflag || needUflag;
|
|
1416
|
-
i2 += consumed - 1;
|
|
1417
|
-
hasMagic = hasMagic || magic;
|
|
1418
|
-
continue;
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
if (c === "*") {
|
|
1422
|
-
if (noEmpty && glob === "*")
|
|
1423
|
-
re += starNoEmpty;
|
|
1424
|
-
else
|
|
1425
|
-
re += star;
|
|
1426
|
-
hasMagic = true;
|
|
1427
|
-
continue;
|
|
1428
|
-
}
|
|
1429
|
-
if (c === "?") {
|
|
1430
|
-
re += qmark;
|
|
1431
|
-
hasMagic = true;
|
|
1432
|
-
continue;
|
|
1433
|
-
}
|
|
1434
|
-
re += regExpEscape(c);
|
|
1435
|
-
}
|
|
1436
|
-
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1437
|
-
};
|
|
1438
|
-
__privateAdd(_AST, _AST_static);
|
|
1439
|
-
var AST = _AST;
|
|
1440
|
-
|
|
1441
|
-
// node_modules/minimatch/dist/esm/escape.js
|
|
1442
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1443
|
-
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
1447
|
-
var minimatch = (p, pattern, options = {}) => {
|
|
1448
|
-
assertValidPattern(pattern);
|
|
1449
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1450
|
-
return false;
|
|
1451
|
-
}
|
|
1452
|
-
return new Minimatch(pattern, options).match(p);
|
|
1453
|
-
};
|
|
1454
|
-
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1455
|
-
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
1456
|
-
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
1457
|
-
var starDotExtTestNocase = (ext2) => {
|
|
1458
|
-
ext2 = ext2.toLowerCase();
|
|
1459
|
-
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
1460
|
-
};
|
|
1461
|
-
var starDotExtTestNocaseDot = (ext2) => {
|
|
1462
|
-
ext2 = ext2.toLowerCase();
|
|
1463
|
-
return (f) => f.toLowerCase().endsWith(ext2);
|
|
1464
|
-
};
|
|
1465
|
-
var starDotStarRE = /^\*+\.\*+$/;
|
|
1466
|
-
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
1467
|
-
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
1468
|
-
var dotStarRE = /^\.\*+$/;
|
|
1469
|
-
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
1470
|
-
var starRE = /^\*+$/;
|
|
1471
|
-
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
1472
|
-
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
1473
|
-
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
1474
|
-
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
1475
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1476
|
-
if (!ext2)
|
|
1477
|
-
return noext;
|
|
1478
|
-
ext2 = ext2.toLowerCase();
|
|
1479
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1480
|
-
};
|
|
1481
|
-
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
1482
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1483
|
-
if (!ext2)
|
|
1484
|
-
return noext;
|
|
1485
|
-
ext2 = ext2.toLowerCase();
|
|
1486
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1487
|
-
};
|
|
1488
|
-
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
1489
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1490
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1491
|
-
};
|
|
1492
|
-
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
1493
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1494
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1495
|
-
};
|
|
1496
|
-
var qmarksTestNoExt = ([$0]) => {
|
|
1497
|
-
const len = $0.length;
|
|
1498
|
-
return (f) => f.length === len && !f.startsWith(".");
|
|
1499
|
-
};
|
|
1500
|
-
var qmarksTestNoExtDot = ([$0]) => {
|
|
1501
|
-
const len = $0.length;
|
|
1502
|
-
return (f) => f.length === len && f !== "." && f !== "..";
|
|
1503
|
-
};
|
|
1504
|
-
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1505
|
-
var path = {
|
|
1506
|
-
win32: { sep: "\\" },
|
|
1507
|
-
posix: { sep: "/" }
|
|
1508
|
-
};
|
|
1509
|
-
var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
1510
|
-
minimatch.sep = sep;
|
|
1511
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
1512
|
-
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1513
|
-
var qmark2 = "[^/]";
|
|
1514
|
-
var star2 = qmark2 + "*?";
|
|
1515
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1516
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1517
|
-
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1518
|
-
minimatch.filter = filter;
|
|
1519
|
-
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1520
|
-
var defaults = (def) => {
|
|
1521
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1522
|
-
return minimatch;
|
|
1523
|
-
}
|
|
1524
|
-
const orig = minimatch;
|
|
1525
|
-
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1526
|
-
return Object.assign(m, {
|
|
1527
|
-
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1528
|
-
constructor(pattern, options = {}) {
|
|
1529
|
-
super(pattern, ext(def, options));
|
|
1530
|
-
}
|
|
1531
|
-
static defaults(options) {
|
|
1532
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
1533
|
-
}
|
|
1534
|
-
},
|
|
1535
|
-
AST: class AST extends orig.AST {
|
|
1536
|
-
/* c8 ignore start */
|
|
1537
|
-
constructor(type, parent, options = {}) {
|
|
1538
|
-
super(type, parent, ext(def, options));
|
|
1539
|
-
}
|
|
1540
|
-
/* c8 ignore stop */
|
|
1541
|
-
static fromGlob(pattern, options = {}) {
|
|
1542
|
-
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1543
|
-
}
|
|
1544
|
-
},
|
|
1545
|
-
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1546
|
-
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1547
|
-
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1548
|
-
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1549
|
-
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1550
|
-
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1551
|
-
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1552
|
-
sep: orig.sep,
|
|
1553
|
-
GLOBSTAR
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
minimatch.defaults = defaults;
|
|
1557
|
-
var braceExpand = (pattern, options = {}) => {
|
|
1558
|
-
assertValidPattern(pattern);
|
|
1559
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1560
|
-
return [pattern];
|
|
1561
|
-
}
|
|
1562
|
-
return (0, import_brace_expansion.default)(pattern);
|
|
1563
|
-
};
|
|
1564
|
-
minimatch.braceExpand = braceExpand;
|
|
1565
|
-
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1566
|
-
minimatch.makeRe = makeRe;
|
|
1567
|
-
var match = (list, pattern, options = {}) => {
|
|
1568
|
-
const mm = new Minimatch(pattern, options);
|
|
1569
|
-
list = list.filter((f) => mm.match(f));
|
|
1570
|
-
if (mm.options.nonull && !list.length) {
|
|
1571
|
-
list.push(pattern);
|
|
1572
|
-
}
|
|
1573
|
-
return list;
|
|
1574
|
-
};
|
|
1575
|
-
minimatch.match = match;
|
|
1576
|
-
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1577
|
-
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1578
|
-
var Minimatch = class {
|
|
1579
|
-
options;
|
|
1580
|
-
set;
|
|
1581
|
-
pattern;
|
|
1582
|
-
windowsPathsNoEscape;
|
|
1583
|
-
nonegate;
|
|
1584
|
-
negate;
|
|
1585
|
-
comment;
|
|
1586
|
-
empty;
|
|
1587
|
-
preserveMultipleSlashes;
|
|
1588
|
-
partial;
|
|
1589
|
-
globSet;
|
|
1590
|
-
globParts;
|
|
1591
|
-
nocase;
|
|
1592
|
-
isWindows;
|
|
1593
|
-
platform;
|
|
1594
|
-
windowsNoMagicRoot;
|
|
1595
|
-
regexp;
|
|
1596
|
-
constructor(pattern, options = {}) {
|
|
1597
|
-
assertValidPattern(pattern);
|
|
1598
|
-
options = options || {};
|
|
1599
|
-
this.options = options;
|
|
1600
|
-
this.pattern = pattern;
|
|
1601
|
-
this.platform = options.platform || defaultPlatform;
|
|
1602
|
-
this.isWindows = this.platform === "win32";
|
|
1603
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
|
|
1604
|
-
if (this.windowsPathsNoEscape) {
|
|
1605
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1606
|
-
}
|
|
1607
|
-
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1608
|
-
this.regexp = null;
|
|
1609
|
-
this.negate = false;
|
|
1610
|
-
this.nonegate = !!options.nonegate;
|
|
1611
|
-
this.comment = false;
|
|
1612
|
-
this.empty = false;
|
|
1613
|
-
this.partial = !!options.partial;
|
|
1614
|
-
this.nocase = !!this.options.nocase;
|
|
1615
|
-
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1616
|
-
this.globSet = [];
|
|
1617
|
-
this.globParts = [];
|
|
1618
|
-
this.set = [];
|
|
1619
|
-
this.make();
|
|
1620
|
-
}
|
|
1621
|
-
hasMagic() {
|
|
1622
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
1623
|
-
return true;
|
|
1624
|
-
}
|
|
1625
|
-
for (const pattern of this.set) {
|
|
1626
|
-
for (const part of pattern) {
|
|
1627
|
-
if (typeof part !== "string")
|
|
1628
|
-
return true;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
return false;
|
|
1632
|
-
}
|
|
1633
|
-
debug(..._) {
|
|
1634
|
-
}
|
|
1635
|
-
make() {
|
|
1636
|
-
const pattern = this.pattern;
|
|
1637
|
-
const options = this.options;
|
|
1638
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1639
|
-
this.comment = true;
|
|
1640
|
-
return;
|
|
1641
|
-
}
|
|
1642
|
-
if (!pattern) {
|
|
1643
|
-
this.empty = true;
|
|
1644
|
-
return;
|
|
1645
|
-
}
|
|
1646
|
-
this.parseNegate();
|
|
1647
|
-
this.globSet = [...new Set(this.braceExpand())];
|
|
1648
|
-
if (options.debug) {
|
|
1649
|
-
this.debug = (...args) => console.error(...args);
|
|
1650
|
-
}
|
|
1651
|
-
this.debug(this.pattern, this.globSet);
|
|
1652
|
-
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1653
|
-
this.globParts = this.preprocess(rawGlobParts);
|
|
1654
|
-
this.debug(this.pattern, this.globParts);
|
|
1655
|
-
let set = this.globParts.map((s, _, __) => {
|
|
1656
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1657
|
-
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1658
|
-
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1659
|
-
if (isUNC) {
|
|
1660
|
-
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1661
|
-
} else if (isDrive) {
|
|
1662
|
-
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
return s.map((ss) => this.parse(ss));
|
|
1666
|
-
});
|
|
1667
|
-
this.debug(this.pattern, set);
|
|
1668
|
-
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1669
|
-
if (this.isWindows) {
|
|
1670
|
-
for (let i2 = 0; i2 < this.set.length; i2++) {
|
|
1671
|
-
const p = this.set[i2];
|
|
1672
|
-
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
1673
|
-
p[2] = "?";
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
this.debug(this.pattern, this.set);
|
|
1678
|
-
}
|
|
1679
|
-
// various transforms to equivalent pattern sets that are
|
|
1680
|
-
// faster to process in a filesystem walk. The goal is to
|
|
1681
|
-
// eliminate what we can, and push all ** patterns as far
|
|
1682
|
-
// to the right as possible, even if it increases the number
|
|
1683
|
-
// of patterns that we have to process.
|
|
1684
|
-
preprocess(globParts) {
|
|
1685
|
-
if (this.options.noglobstar) {
|
|
1686
|
-
for (let i2 = 0; i2 < globParts.length; i2++) {
|
|
1687
|
-
for (let j = 0; j < globParts[i2].length; j++) {
|
|
1688
|
-
if (globParts[i2][j] === "**") {
|
|
1689
|
-
globParts[i2][j] = "*";
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1695
|
-
if (optimizationLevel >= 2) {
|
|
1696
|
-
globParts = this.firstPhasePreProcess(globParts);
|
|
1697
|
-
globParts = this.secondPhasePreProcess(globParts);
|
|
1698
|
-
} else if (optimizationLevel >= 1) {
|
|
1699
|
-
globParts = this.levelOneOptimize(globParts);
|
|
1700
|
-
} else {
|
|
1701
|
-
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1702
|
-
}
|
|
1703
|
-
return globParts;
|
|
1704
|
-
}
|
|
1705
|
-
// just get rid of adjascent ** portions
|
|
1706
|
-
adjascentGlobstarOptimize(globParts) {
|
|
1707
|
-
return globParts.map((parts) => {
|
|
1708
|
-
let gs = -1;
|
|
1709
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1710
|
-
let i2 = gs;
|
|
1711
|
-
while (parts[i2 + 1] === "**") {
|
|
1712
|
-
i2++;
|
|
1713
|
-
}
|
|
1714
|
-
if (i2 !== gs) {
|
|
1715
|
-
parts.splice(gs, i2 - gs);
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
return parts;
|
|
1719
|
-
});
|
|
1720
|
-
}
|
|
1721
|
-
// get rid of adjascent ** and resolve .. portions
|
|
1722
|
-
levelOneOptimize(globParts) {
|
|
1723
|
-
return globParts.map((parts) => {
|
|
1724
|
-
parts = parts.reduce((set, part) => {
|
|
1725
|
-
const prev = set[set.length - 1];
|
|
1726
|
-
if (part === "**" && prev === "**") {
|
|
1727
|
-
return set;
|
|
1728
|
-
}
|
|
1729
|
-
if (part === "..") {
|
|
1730
|
-
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1731
|
-
set.pop();
|
|
1732
|
-
return set;
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
set.push(part);
|
|
1736
|
-
return set;
|
|
1737
|
-
}, []);
|
|
1738
|
-
return parts.length === 0 ? [""] : parts;
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
levelTwoFileOptimize(parts) {
|
|
1742
|
-
if (!Array.isArray(parts)) {
|
|
1743
|
-
parts = this.slashSplit(parts);
|
|
1744
|
-
}
|
|
1745
|
-
let didSomething = false;
|
|
1746
|
-
do {
|
|
1747
|
-
didSomething = false;
|
|
1748
|
-
if (!this.preserveMultipleSlashes) {
|
|
1749
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1750
|
-
const p = parts[i2];
|
|
1751
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1752
|
-
continue;
|
|
1753
|
-
if (p === "." || p === "") {
|
|
1754
|
-
didSomething = true;
|
|
1755
|
-
parts.splice(i2, 1);
|
|
1756
|
-
i2--;
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1760
|
-
didSomething = true;
|
|
1761
|
-
parts.pop();
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
let dd = 0;
|
|
1765
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1766
|
-
const p = parts[dd - 1];
|
|
1767
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1768
|
-
didSomething = true;
|
|
1769
|
-
parts.splice(dd - 1, 2);
|
|
1770
|
-
dd -= 2;
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
} while (didSomething);
|
|
1774
|
-
return parts.length === 0 ? [""] : parts;
|
|
1775
|
-
}
|
|
1776
|
-
// First phase: single-pattern processing
|
|
1777
|
-
// <pre> is 1 or more portions
|
|
1778
|
-
// <rest> is 1 or more portions
|
|
1779
|
-
// <p> is any portion other than ., .., '', or **
|
|
1780
|
-
// <e> is . or ''
|
|
1781
|
-
//
|
|
1782
|
-
// **/.. is *brutal* for filesystem walking performance, because
|
|
1783
|
-
// it effectively resets the recursive walk each time it occurs,
|
|
1784
|
-
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
1785
|
-
// or most strings (other than .., ., and '') can be.
|
|
1786
|
-
//
|
|
1787
|
-
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
1788
|
-
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
1789
|
-
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
1790
|
-
// **/**/<rest> -> **/<rest>
|
|
1791
|
-
//
|
|
1792
|
-
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
1793
|
-
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
1794
|
-
firstPhasePreProcess(globParts) {
|
|
1795
|
-
let didSomething = false;
|
|
1796
|
-
do {
|
|
1797
|
-
didSomething = false;
|
|
1798
|
-
for (let parts of globParts) {
|
|
1799
|
-
let gs = -1;
|
|
1800
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1801
|
-
let gss = gs;
|
|
1802
|
-
while (parts[gss + 1] === "**") {
|
|
1803
|
-
gss++;
|
|
1804
|
-
}
|
|
1805
|
-
if (gss > gs) {
|
|
1806
|
-
parts.splice(gs + 1, gss - gs);
|
|
1807
|
-
}
|
|
1808
|
-
let next = parts[gs + 1];
|
|
1809
|
-
const p = parts[gs + 2];
|
|
1810
|
-
const p2 = parts[gs + 3];
|
|
1811
|
-
if (next !== "..")
|
|
1812
|
-
continue;
|
|
1813
|
-
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
1814
|
-
continue;
|
|
1815
|
-
}
|
|
1816
|
-
didSomething = true;
|
|
1817
|
-
parts.splice(gs, 1);
|
|
1818
|
-
const other = parts.slice(0);
|
|
1819
|
-
other[gs] = "**";
|
|
1820
|
-
globParts.push(other);
|
|
1821
|
-
gs--;
|
|
1822
|
-
}
|
|
1823
|
-
if (!this.preserveMultipleSlashes) {
|
|
1824
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1825
|
-
const p = parts[i2];
|
|
1826
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1827
|
-
continue;
|
|
1828
|
-
if (p === "." || p === "") {
|
|
1829
|
-
didSomething = true;
|
|
1830
|
-
parts.splice(i2, 1);
|
|
1831
|
-
i2--;
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1835
|
-
didSomething = true;
|
|
1836
|
-
parts.pop();
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
let dd = 0;
|
|
1840
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1841
|
-
const p = parts[dd - 1];
|
|
1842
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1843
|
-
didSomething = true;
|
|
1844
|
-
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
1845
|
-
const splin = needDot ? ["."] : [];
|
|
1846
|
-
parts.splice(dd - 1, 2, ...splin);
|
|
1847
|
-
if (parts.length === 0)
|
|
1848
|
-
parts.push("");
|
|
1849
|
-
dd -= 2;
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
} while (didSomething);
|
|
1854
|
-
return globParts;
|
|
1855
|
-
}
|
|
1856
|
-
// second phase: multi-pattern dedupes
|
|
1857
|
-
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
1858
|
-
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
1859
|
-
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
1860
|
-
//
|
|
1861
|
-
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
1862
|
-
// ^-- not valid because ** doens't follow symlinks
|
|
1863
|
-
secondPhasePreProcess(globParts) {
|
|
1864
|
-
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1865
|
-
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1866
|
-
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1867
|
-
if (!matched)
|
|
1868
|
-
continue;
|
|
1869
|
-
globParts[i2] = matched;
|
|
1870
|
-
globParts[j] = [];
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
return globParts.filter((gs) => gs.length);
|
|
1874
|
-
}
|
|
1875
|
-
partsMatch(a, b, emptyGSMatch = false) {
|
|
1876
|
-
let ai = 0;
|
|
1877
|
-
let bi = 0;
|
|
1878
|
-
let result = [];
|
|
1879
|
-
let which = "";
|
|
1880
|
-
while (ai < a.length && bi < b.length) {
|
|
1881
|
-
if (a[ai] === b[bi]) {
|
|
1882
|
-
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1883
|
-
ai++;
|
|
1884
|
-
bi++;
|
|
1885
|
-
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1886
|
-
result.push(a[ai]);
|
|
1887
|
-
ai++;
|
|
1888
|
-
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1889
|
-
result.push(b[bi]);
|
|
1890
|
-
bi++;
|
|
1891
|
-
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1892
|
-
if (which === "b")
|
|
1893
|
-
return false;
|
|
1894
|
-
which = "a";
|
|
1895
|
-
result.push(a[ai]);
|
|
1896
|
-
ai++;
|
|
1897
|
-
bi++;
|
|
1898
|
-
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1899
|
-
if (which === "a")
|
|
1900
|
-
return false;
|
|
1901
|
-
which = "b";
|
|
1902
|
-
result.push(b[bi]);
|
|
1903
|
-
ai++;
|
|
1904
|
-
bi++;
|
|
1905
|
-
} else {
|
|
1906
|
-
return false;
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
return a.length === b.length && result;
|
|
1910
|
-
}
|
|
1911
|
-
parseNegate() {
|
|
1912
|
-
if (this.nonegate)
|
|
1913
|
-
return;
|
|
1914
|
-
const pattern = this.pattern;
|
|
1915
|
-
let negate = false;
|
|
1916
|
-
let negateOffset = 0;
|
|
1917
|
-
for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
|
|
1918
|
-
negate = !negate;
|
|
1919
|
-
negateOffset++;
|
|
1920
|
-
}
|
|
1921
|
-
if (negateOffset)
|
|
1922
|
-
this.pattern = pattern.slice(negateOffset);
|
|
1923
|
-
this.negate = negate;
|
|
1924
|
-
}
|
|
1925
|
-
// set partial to true to test if, for example,
|
|
1926
|
-
// "/a/b" matches the start of "/*/b/*/d"
|
|
1927
|
-
// Partial means, if you run out of file before you run
|
|
1928
|
-
// out of pattern, then that's fine, as long as all
|
|
1929
|
-
// the parts match.
|
|
1930
|
-
matchOne(file, pattern, partial = false) {
|
|
1931
|
-
const options = this.options;
|
|
1932
|
-
if (this.isWindows) {
|
|
1933
|
-
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1934
|
-
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1935
|
-
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1936
|
-
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1937
|
-
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1938
|
-
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1939
|
-
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1940
|
-
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1941
|
-
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1942
|
-
pattern[pdi] = fd;
|
|
1943
|
-
if (pdi > fdi) {
|
|
1944
|
-
pattern = pattern.slice(pdi);
|
|
1945
|
-
} else if (fdi > pdi) {
|
|
1946
|
-
file = file.slice(fdi);
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1952
|
-
if (optimizationLevel >= 2) {
|
|
1953
|
-
file = this.levelTwoFileOptimize(file);
|
|
1954
|
-
}
|
|
1955
|
-
this.debug("matchOne", this, { file, pattern });
|
|
1956
|
-
this.debug("matchOne", file.length, pattern.length);
|
|
1957
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1958
|
-
this.debug("matchOne loop");
|
|
1959
|
-
var p = pattern[pi];
|
|
1960
|
-
var f = file[fi];
|
|
1961
|
-
this.debug(pattern, p, f);
|
|
1962
|
-
if (p === false) {
|
|
1963
|
-
return false;
|
|
1964
|
-
}
|
|
1965
|
-
if (p === GLOBSTAR) {
|
|
1966
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1967
|
-
var fr = fi;
|
|
1968
|
-
var pr = pi + 1;
|
|
1969
|
-
if (pr === pl) {
|
|
1970
|
-
this.debug("** at the end");
|
|
1971
|
-
for (; fi < fl; fi++) {
|
|
1972
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1973
|
-
return false;
|
|
1974
|
-
}
|
|
1975
|
-
return true;
|
|
1976
|
-
}
|
|
1977
|
-
while (fr < fl) {
|
|
1978
|
-
var swallowee = file[fr];
|
|
1979
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1980
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1981
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1982
|
-
return true;
|
|
1983
|
-
} else {
|
|
1984
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1985
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1986
|
-
break;
|
|
1987
|
-
}
|
|
1988
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1989
|
-
fr++;
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
if (partial) {
|
|
1993
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1994
|
-
if (fr === fl) {
|
|
1995
|
-
return true;
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
|
-
return false;
|
|
1999
|
-
}
|
|
2000
|
-
let hit;
|
|
2001
|
-
if (typeof p === "string") {
|
|
2002
|
-
hit = f === p;
|
|
2003
|
-
this.debug("string match", p, f, hit);
|
|
2004
|
-
} else {
|
|
2005
|
-
hit = p.test(f);
|
|
2006
|
-
this.debug("pattern match", p, f, hit);
|
|
2007
|
-
}
|
|
2008
|
-
if (!hit)
|
|
2009
|
-
return false;
|
|
2010
|
-
}
|
|
2011
|
-
if (fi === fl && pi === pl) {
|
|
2012
|
-
return true;
|
|
2013
|
-
} else if (fi === fl) {
|
|
2014
|
-
return partial;
|
|
2015
|
-
} else if (pi === pl) {
|
|
2016
|
-
return fi === fl - 1 && file[fi] === "";
|
|
2017
|
-
} else {
|
|
2018
|
-
throw new Error("wtf?");
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
braceExpand() {
|
|
2022
|
-
return braceExpand(this.pattern, this.options);
|
|
2023
|
-
}
|
|
2024
|
-
parse(pattern) {
|
|
2025
|
-
assertValidPattern(pattern);
|
|
2026
|
-
const options = this.options;
|
|
2027
|
-
if (pattern === "**")
|
|
2028
|
-
return GLOBSTAR;
|
|
2029
|
-
if (pattern === "")
|
|
2030
|
-
return "";
|
|
2031
|
-
let m;
|
|
2032
|
-
let fastTest = null;
|
|
2033
|
-
if (m = pattern.match(starRE)) {
|
|
2034
|
-
fastTest = options.dot ? starTestDot : starTest;
|
|
2035
|
-
} else if (m = pattern.match(starDotExtRE)) {
|
|
2036
|
-
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
2037
|
-
} else if (m = pattern.match(qmarksRE)) {
|
|
2038
|
-
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
2039
|
-
} else if (m = pattern.match(starDotStarRE)) {
|
|
2040
|
-
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
2041
|
-
} else if (m = pattern.match(dotStarRE)) {
|
|
2042
|
-
fastTest = dotStarTest;
|
|
2043
|
-
}
|
|
2044
|
-
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
2045
|
-
if (fastTest && typeof re === "object") {
|
|
2046
|
-
Reflect.defineProperty(re, "test", { value: fastTest });
|
|
2047
|
-
}
|
|
2048
|
-
return re;
|
|
2049
|
-
}
|
|
2050
|
-
makeRe() {
|
|
2051
|
-
if (this.regexp || this.regexp === false)
|
|
2052
|
-
return this.regexp;
|
|
2053
|
-
const set = this.set;
|
|
2054
|
-
if (!set.length) {
|
|
2055
|
-
this.regexp = false;
|
|
2056
|
-
return this.regexp;
|
|
2057
|
-
}
|
|
2058
|
-
const options = this.options;
|
|
2059
|
-
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
2060
|
-
const flags = new Set(options.nocase ? ["i"] : []);
|
|
2061
|
-
let re = set.map((pattern) => {
|
|
2062
|
-
const pp = pattern.map((p) => {
|
|
2063
|
-
if (p instanceof RegExp) {
|
|
2064
|
-
for (const f of p.flags.split(""))
|
|
2065
|
-
flags.add(f);
|
|
2066
|
-
}
|
|
2067
|
-
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
2068
|
-
});
|
|
2069
|
-
pp.forEach((p, i2) => {
|
|
2070
|
-
const next = pp[i2 + 1];
|
|
2071
|
-
const prev = pp[i2 - 1];
|
|
2072
|
-
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
2073
|
-
return;
|
|
2074
|
-
}
|
|
2075
|
-
if (prev === void 0) {
|
|
2076
|
-
if (next !== void 0 && next !== GLOBSTAR) {
|
|
2077
|
-
pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
2078
|
-
} else {
|
|
2079
|
-
pp[i2] = twoStar;
|
|
2080
|
-
}
|
|
2081
|
-
} else if (next === void 0) {
|
|
2082
|
-
pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
|
|
2083
|
-
} else if (next !== GLOBSTAR) {
|
|
2084
|
-
pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
2085
|
-
pp[i2 + 1] = GLOBSTAR;
|
|
2086
|
-
}
|
|
2087
|
-
});
|
|
2088
|
-
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
|
2089
|
-
}).join("|");
|
|
2090
|
-
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
2091
|
-
re = "^" + open + re + close + "$";
|
|
2092
|
-
if (this.negate)
|
|
2093
|
-
re = "^(?!" + re + ").+$";
|
|
2094
|
-
try {
|
|
2095
|
-
this.regexp = new RegExp(re, [...flags].join(""));
|
|
2096
|
-
} catch (ex) {
|
|
2097
|
-
this.regexp = false;
|
|
2098
|
-
}
|
|
2099
|
-
return this.regexp;
|
|
2100
|
-
}
|
|
2101
|
-
slashSplit(p) {
|
|
2102
|
-
if (this.preserveMultipleSlashes) {
|
|
2103
|
-
return p.split("/");
|
|
2104
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
2105
|
-
return ["", ...p.split(/\/+/)];
|
|
2106
|
-
} else {
|
|
2107
|
-
return p.split(/\/+/);
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
match(f, partial = this.partial) {
|
|
2111
|
-
this.debug("match", f, this.pattern);
|
|
2112
|
-
if (this.comment) {
|
|
2113
|
-
return false;
|
|
2114
|
-
}
|
|
2115
|
-
if (this.empty) {
|
|
2116
|
-
return f === "";
|
|
2117
|
-
}
|
|
2118
|
-
if (f === "/" && partial) {
|
|
2119
|
-
return true;
|
|
2120
|
-
}
|
|
2121
|
-
const options = this.options;
|
|
2122
|
-
if (this.isWindows) {
|
|
2123
|
-
f = f.split("\\").join("/");
|
|
2124
|
-
}
|
|
2125
|
-
const ff = this.slashSplit(f);
|
|
2126
|
-
this.debug(this.pattern, "split", ff);
|
|
2127
|
-
const set = this.set;
|
|
2128
|
-
this.debug(this.pattern, "set", set);
|
|
2129
|
-
let filename = ff[ff.length - 1];
|
|
2130
|
-
if (!filename) {
|
|
2131
|
-
for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
|
|
2132
|
-
filename = ff[i2];
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
for (let i2 = 0; i2 < set.length; i2++) {
|
|
2136
|
-
const pattern = set[i2];
|
|
2137
|
-
let file = ff;
|
|
2138
|
-
if (options.matchBase && pattern.length === 1) {
|
|
2139
|
-
file = [filename];
|
|
2140
|
-
}
|
|
2141
|
-
const hit = this.matchOne(file, pattern, partial);
|
|
2142
|
-
if (hit) {
|
|
2143
|
-
if (options.flipNegate) {
|
|
2144
|
-
return true;
|
|
2145
|
-
}
|
|
2146
|
-
return !this.negate;
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
if (options.flipNegate) {
|
|
2150
|
-
return false;
|
|
2151
|
-
}
|
|
2152
|
-
return this.negate;
|
|
2153
|
-
}
|
|
2154
|
-
static defaults(def) {
|
|
2155
|
-
return minimatch.defaults(def).Minimatch;
|
|
2156
|
-
}
|
|
2157
|
-
};
|
|
2158
|
-
minimatch.AST = AST;
|
|
2159
|
-
minimatch.Minimatch = Minimatch;
|
|
2160
|
-
minimatch.escape = escape;
|
|
2161
|
-
minimatch.unescape = unescape;
|
|
2162
|
-
|
|
2163
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
2164
|
-
function queryNonceMetaTagContent(doc) {
|
|
2165
|
-
var _a, _b, _c;
|
|
2166
|
-
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;
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
// src/utils/regular-expression.ts
|
|
2170
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
2171
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2172
|
-
};
|
|
2173
|
-
|
|
2174
|
-
// src/utils/remote-value.ts
|
|
2175
|
-
var RemoteValue = class _RemoteValue {
|
|
2176
|
-
/**
|
|
2177
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2178
|
-
*
|
|
2179
|
-
* @param serialized The serialized LocalValue object
|
|
2180
|
-
* @returns The original JavaScript value/object
|
|
2181
|
-
*/
|
|
2182
|
-
static fromLocalValue(serialized) {
|
|
2183
|
-
const type = serialized[TYPE_CONSTANT];
|
|
2184
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2185
|
-
switch (type) {
|
|
2186
|
-
case "string" /* String */:
|
|
2187
|
-
return value;
|
|
2188
|
-
case "boolean" /* Boolean */:
|
|
2189
|
-
return value;
|
|
2190
|
-
case "bigint" /* BigInt */:
|
|
2191
|
-
return BigInt(value);
|
|
2192
|
-
case "undefined" /* Undefined */:
|
|
2193
|
-
return void 0;
|
|
2194
|
-
case "null" /* Null */:
|
|
2195
|
-
return null;
|
|
2196
|
-
case "number" /* Number */:
|
|
2197
|
-
if (value === "NaN") return NaN;
|
|
2198
|
-
if (value === "-0") return -0;
|
|
2199
|
-
if (value === "Infinity") return Infinity;
|
|
2200
|
-
if (value === "-Infinity") return -Infinity;
|
|
2201
|
-
return value;
|
|
2202
|
-
case "array" /* Array */:
|
|
2203
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2204
|
-
case "date" /* Date */:
|
|
2205
|
-
return new Date(value);
|
|
2206
|
-
case "map" /* Map */:
|
|
2207
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
2208
|
-
for (const [key, val] of value) {
|
|
2209
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2210
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2211
|
-
map2.set(deserializedKey, deserializedValue);
|
|
2212
|
-
}
|
|
2213
|
-
return map2;
|
|
2214
|
-
case "object" /* Object */:
|
|
2215
|
-
const obj = {};
|
|
2216
|
-
for (const [key, val] of value) {
|
|
2217
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2218
|
-
}
|
|
2219
|
-
return obj;
|
|
2220
|
-
case "regexp" /* RegularExpression */:
|
|
2221
|
-
const { pattern, flags } = value;
|
|
2222
|
-
return new RegExp(pattern, flags);
|
|
2223
|
-
case "set" /* Set */:
|
|
2224
|
-
const set = /* @__PURE__ */ new Set();
|
|
2225
|
-
for (const item of value) {
|
|
2226
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
2227
|
-
}
|
|
2228
|
-
return set;
|
|
2229
|
-
case "symbol" /* Symbol */:
|
|
2230
|
-
return Symbol(value);
|
|
2231
|
-
default:
|
|
2232
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
/**
|
|
2236
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
2237
|
-
*
|
|
2238
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
2239
|
-
* @returns Array of deserialized JavaScript values
|
|
2240
|
-
*/
|
|
2241
|
-
static fromLocalValueArray(serializedValues) {
|
|
2242
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2243
|
-
}
|
|
2244
|
-
/**
|
|
2245
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2246
|
-
*
|
|
2247
|
-
* @param obj Object to verify
|
|
2248
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
2249
|
-
*/
|
|
2250
|
-
static isLocalValueObject(obj) {
|
|
2251
|
-
if (typeof obj !== "object" || obj === null) {
|
|
2252
|
-
return false;
|
|
2253
|
-
}
|
|
2254
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2255
|
-
return false;
|
|
2256
|
-
}
|
|
2257
|
-
const type = obj[TYPE_CONSTANT];
|
|
2258
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2259
|
-
if (!hasTypeProperty) {
|
|
2260
|
-
return false;
|
|
2261
|
-
}
|
|
2262
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2263
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2264
|
-
}
|
|
2265
|
-
return true;
|
|
2266
|
-
}
|
|
2267
|
-
};
|
|
2268
|
-
|
|
2269
|
-
// src/utils/result.ts
|
|
2270
|
-
var result_exports = {};
|
|
2271
|
-
__export(result_exports, {
|
|
2272
|
-
err: () => err,
|
|
2273
|
-
map: () => map,
|
|
2274
|
-
ok: () => ok,
|
|
2275
|
-
unwrap: () => unwrap,
|
|
2276
|
-
unwrapErr: () => unwrapErr
|
|
2277
|
-
});
|
|
2278
|
-
var ok = (value) => ({
|
|
2279
|
-
isOk: true,
|
|
2280
|
-
isErr: false,
|
|
2281
|
-
value
|
|
2282
|
-
});
|
|
2283
|
-
var err = (value) => ({
|
|
2284
|
-
isOk: false,
|
|
2285
|
-
isErr: true,
|
|
2286
|
-
value
|
|
2287
|
-
});
|
|
2288
|
-
function map(result, fn) {
|
|
2289
|
-
if (result.isOk) {
|
|
2290
|
-
const val = fn(result.value);
|
|
2291
|
-
if (val instanceof Promise) {
|
|
2292
|
-
return val.then((newVal) => ok(newVal));
|
|
2293
|
-
} else {
|
|
2294
|
-
return ok(val);
|
|
2295
|
-
}
|
|
2296
|
-
}
|
|
2297
|
-
if (result.isErr) {
|
|
2298
|
-
const value = result.value;
|
|
2299
|
-
return err(value);
|
|
2300
|
-
}
|
|
2301
|
-
throw "should never get here";
|
|
2302
|
-
}
|
|
2303
|
-
var unwrap = (result) => {
|
|
2304
|
-
if (result.isOk) {
|
|
2305
|
-
return result.value;
|
|
2306
|
-
} else {
|
|
2307
|
-
throw result.value;
|
|
2308
|
-
}
|
|
2309
|
-
};
|
|
2310
|
-
var unwrapErr = (result) => {
|
|
2311
|
-
if (result.isErr) {
|
|
2312
|
-
return result.value;
|
|
2313
|
-
} else {
|
|
2314
|
-
throw result.value;
|
|
2315
|
-
}
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
|
-
// src/utils/serialize.ts
|
|
2319
|
-
function deserializeProperty(value) {
|
|
2320
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2321
|
-
return value;
|
|
2322
|
-
}
|
|
2323
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
2324
|
-
}
|
|
556
|
+
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
2325
557
|
|
|
2326
558
|
// src/utils/style.ts
|
|
2327
559
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -2972,6 +1204,14 @@ var installDevTools = () => {
|
|
|
2972
1204
|
};
|
|
2973
1205
|
}
|
|
2974
1206
|
};
|
|
1207
|
+
|
|
1208
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
1209
|
+
function queryNonceMetaTagContent(doc) {
|
|
1210
|
+
var _a, _b, _c;
|
|
1211
|
+
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;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
// src/runtime/styles.ts
|
|
2975
1215
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2976
1216
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2977
1217
|
let style = styles.get(scopeId2);
|
|
@@ -3005,10 +1245,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3005
1245
|
}
|
|
3006
1246
|
const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
3007
1247
|
if (existingStyleElm) {
|
|
3008
|
-
existingStyleElm.
|
|
1248
|
+
existingStyleElm.textContent = style;
|
|
3009
1249
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
3010
1250
|
styleElm = win.document.createElement("style");
|
|
3011
|
-
styleElm.
|
|
1251
|
+
styleElm.textContent = style;
|
|
3012
1252
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
3013
1253
|
if (nonce != null) {
|
|
3014
1254
|
styleElm.setAttribute("nonce", nonce);
|
|
@@ -3037,7 +1277,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3037
1277
|
} else {
|
|
3038
1278
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
3039
1279
|
if (existingStyleContainer) {
|
|
3040
|
-
existingStyleContainer.
|
|
1280
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
3041
1281
|
} else {
|
|
3042
1282
|
styleContainerNode.prepend(styleElm);
|
|
3043
1283
|
}
|
|
@@ -3050,7 +1290,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3050
1290
|
styleContainerNode.insertBefore(styleElm, null);
|
|
3051
1291
|
}
|
|
3052
1292
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
3053
|
-
styleElm.
|
|
1293
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
3054
1294
|
}
|
|
3055
1295
|
if (appliedStyles) {
|
|
3056
1296
|
appliedStyles.add(scopeId2);
|
|
@@ -3111,6 +1351,15 @@ var hydrateScopedToShadow = () => {
|
|
|
3111
1351
|
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
3112
1352
|
}
|
|
3113
1353
|
};
|
|
1354
|
+
|
|
1355
|
+
// src/utils/helpers.ts
|
|
1356
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
1357
|
+
var isComplexType = (o) => {
|
|
1358
|
+
o = typeof o;
|
|
1359
|
+
return o === "object" || o === "function";
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
// src/runtime/vdom/h.ts
|
|
3114
1363
|
var h = (nodeName, vnodeData, ...children) => {
|
|
3115
1364
|
if (typeof nodeName === "string") {
|
|
3116
1365
|
nodeName = transformTag(nodeName);
|
|
@@ -3190,7 +1439,8 @@ var newVNode = (tag, text) => {
|
|
|
3190
1439
|
const vnode = {
|
|
3191
1440
|
$flags$: 0,
|
|
3192
1441
|
$tag$: tag,
|
|
3193
|
-
|
|
1442
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
1443
|
+
$text$: text != null ? text : null,
|
|
3194
1444
|
$elm$: null,
|
|
3195
1445
|
$children$: null
|
|
3196
1446
|
};
|
|
@@ -3310,7 +1560,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3310
1560
|
);
|
|
3311
1561
|
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
3312
1562
|
if (styleSheet) {
|
|
3313
|
-
|
|
1563
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
3314
1564
|
}
|
|
3315
1565
|
}
|
|
3316
1566
|
}
|
|
@@ -3388,7 +1638,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3388
1638
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
3389
1639
|
});
|
|
3390
1640
|
}
|
|
3391
|
-
if (BUILD.shadowDom && shadowRoot) {
|
|
1641
|
+
if (BUILD.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {
|
|
3392
1642
|
let rnIdex = 0;
|
|
3393
1643
|
const rnLen = shadowRootNodes.length;
|
|
3394
1644
|
if (rnLen) {
|
|
@@ -3671,6 +1921,11 @@ var findCorrespondingNode = (node, type) => {
|
|
|
3671
1921
|
return sibling;
|
|
3672
1922
|
};
|
|
3673
1923
|
|
|
1924
|
+
// src/utils/regular-expression.ts
|
|
1925
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
1926
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1927
|
+
};
|
|
1928
|
+
|
|
3674
1929
|
// src/utils/shadow-css.ts
|
|
3675
1930
|
/**
|
|
3676
1931
|
* @license
|
|
@@ -3736,9 +1991,6 @@ var createSupportsRuleRe = (selector) => {
|
|
|
3736
1991
|
"g"
|
|
3737
1992
|
);
|
|
3738
1993
|
};
|
|
3739
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
3740
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
3741
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
3742
1994
|
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
3743
1995
|
var stripComments = (input) => {
|
|
3744
1996
|
return input.replace(_commentRe, "");
|
|
@@ -3816,6 +2068,9 @@ var insertPolyfillHostInCssText = (cssText) => {
|
|
|
3816
2068
|
supportsBlocks.push(selectorContent);
|
|
3817
2069
|
return `@supports selector(${placeholder})`;
|
|
3818
2070
|
});
|
|
2071
|
+
const _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
2072
|
+
const _colonHostRe = createSupportsRuleRe(":host");
|
|
2073
|
+
const _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
3819
2074
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
3820
2075
|
supportsBlocks.forEach((originalSelector, index) => {
|
|
3821
2076
|
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
@@ -3939,16 +2194,16 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
3939
2194
|
let scopedSelector = "";
|
|
3940
2195
|
let startIndex = 0;
|
|
3941
2196
|
let res;
|
|
3942
|
-
const
|
|
2197
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
3943
2198
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
3944
2199
|
let shouldScope = !hasHost;
|
|
3945
|
-
while ((res =
|
|
2200
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
3946
2201
|
const separator = res[1];
|
|
3947
2202
|
const part2 = selector.slice(startIndex, res.index).trim();
|
|
3948
2203
|
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
3949
2204
|
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
3950
2205
|
scopedSelector += `${scopedPart} ${separator} `;
|
|
3951
|
-
startIndex =
|
|
2206
|
+
startIndex = sep.lastIndex;
|
|
3952
2207
|
}
|
|
3953
2208
|
const part = selector.substring(startIndex);
|
|
3954
2209
|
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
@@ -4084,6 +2339,111 @@ var getMode = (ref) => {
|
|
|
4084
2339
|
var _a;
|
|
4085
2340
|
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
4086
2341
|
};
|
|
2342
|
+
|
|
2343
|
+
// src/utils/remote-value.ts
|
|
2344
|
+
var RemoteValue = class _RemoteValue {
|
|
2345
|
+
/**
|
|
2346
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2347
|
+
*
|
|
2348
|
+
* @param serialized The serialized LocalValue object
|
|
2349
|
+
* @returns The original JavaScript value/object
|
|
2350
|
+
*/
|
|
2351
|
+
static fromLocalValue(serialized) {
|
|
2352
|
+
const type = serialized[TYPE_CONSTANT];
|
|
2353
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2354
|
+
switch (type) {
|
|
2355
|
+
case "string" /* String */:
|
|
2356
|
+
return value;
|
|
2357
|
+
case "boolean" /* Boolean */:
|
|
2358
|
+
return value;
|
|
2359
|
+
case "bigint" /* BigInt */:
|
|
2360
|
+
return BigInt(value);
|
|
2361
|
+
case "undefined" /* Undefined */:
|
|
2362
|
+
return void 0;
|
|
2363
|
+
case "null" /* Null */:
|
|
2364
|
+
return null;
|
|
2365
|
+
case "number" /* Number */:
|
|
2366
|
+
if (value === "NaN") return NaN;
|
|
2367
|
+
if (value === "-0") return -0;
|
|
2368
|
+
if (value === "Infinity") return Infinity;
|
|
2369
|
+
if (value === "-Infinity") return -Infinity;
|
|
2370
|
+
return value;
|
|
2371
|
+
case "array" /* Array */:
|
|
2372
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2373
|
+
case "date" /* Date */:
|
|
2374
|
+
return new Date(value);
|
|
2375
|
+
case "map" /* Map */:
|
|
2376
|
+
const map = /* @__PURE__ */ new Map();
|
|
2377
|
+
for (const [key, val] of value) {
|
|
2378
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2379
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2380
|
+
map.set(deserializedKey, deserializedValue);
|
|
2381
|
+
}
|
|
2382
|
+
return map;
|
|
2383
|
+
case "object" /* Object */:
|
|
2384
|
+
const obj = {};
|
|
2385
|
+
for (const [key, val] of value) {
|
|
2386
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2387
|
+
}
|
|
2388
|
+
return obj;
|
|
2389
|
+
case "regexp" /* RegularExpression */:
|
|
2390
|
+
const { pattern, flags } = value;
|
|
2391
|
+
return new RegExp(pattern, flags);
|
|
2392
|
+
case "set" /* Set */:
|
|
2393
|
+
const set = /* @__PURE__ */ new Set();
|
|
2394
|
+
for (const item of value) {
|
|
2395
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
2396
|
+
}
|
|
2397
|
+
return set;
|
|
2398
|
+
case "symbol" /* Symbol */:
|
|
2399
|
+
return Symbol(value);
|
|
2400
|
+
default:
|
|
2401
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
2406
|
+
*
|
|
2407
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
2408
|
+
* @returns Array of deserialized JavaScript values
|
|
2409
|
+
*/
|
|
2410
|
+
static fromLocalValueArray(serializedValues) {
|
|
2411
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2415
|
+
*
|
|
2416
|
+
* @param obj Object to verify
|
|
2417
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
2418
|
+
*/
|
|
2419
|
+
static isLocalValueObject(obj) {
|
|
2420
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2421
|
+
return false;
|
|
2422
|
+
}
|
|
2423
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2424
|
+
return false;
|
|
2425
|
+
}
|
|
2426
|
+
const type = obj[TYPE_CONSTANT];
|
|
2427
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2428
|
+
if (!hasTypeProperty) {
|
|
2429
|
+
return false;
|
|
2430
|
+
}
|
|
2431
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2432
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2433
|
+
}
|
|
2434
|
+
return true;
|
|
2435
|
+
}
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2438
|
+
// src/utils/serialize.ts
|
|
2439
|
+
function deserializeProperty(value) {
|
|
2440
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2441
|
+
return value;
|
|
2442
|
+
}
|
|
2443
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
// src/runtime/parse-property-value.ts
|
|
4087
2447
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
4088
2448
|
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
4089
2449
|
propValue = deserializeProperty(propValue);
|
|
@@ -4335,7 +2695,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
4335
2695
|
`The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
|
|
4336
2696
|
);
|
|
4337
2697
|
}
|
|
4338
|
-
if (BUILD.vdomText && newVNode2.$text$
|
|
2698
|
+
if (BUILD.vdomText && newVNode2.$text$ != null) {
|
|
4339
2699
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
4340
2700
|
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
4341
2701
|
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
@@ -4347,9 +2707,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
4347
2707
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
4348
2708
|
}
|
|
4349
2709
|
if (!win.document) {
|
|
4350
|
-
throw new Error(
|
|
4351
|
-
"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."
|
|
4352
|
-
);
|
|
2710
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
4353
2711
|
}
|
|
4354
2712
|
elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
|
|
4355
2713
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -4607,7 +2965,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
4607
2965
|
const tag = newVNode2.$tag$;
|
|
4608
2966
|
const text = newVNode2.$text$;
|
|
4609
2967
|
let defaultHolder;
|
|
4610
|
-
if (!BUILD.vdomText || text
|
|
2968
|
+
if (!BUILD.vdomText || text == null) {
|
|
4611
2969
|
if (BUILD.svg) {
|
|
4612
2970
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
4613
2971
|
}
|
|
@@ -4701,16 +3059,18 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
4701
3059
|
}
|
|
4702
3060
|
};
|
|
4703
3061
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
4704
|
-
if (BUILD.
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
3062
|
+
if (BUILD.slotRelocation) {
|
|
3063
|
+
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
3064
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
3065
|
+
} else if (typeof newNode["s-sn"] === "string") {
|
|
3066
|
+
if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3067
|
+
patchParentNode(newNode);
|
|
3068
|
+
}
|
|
3069
|
+
parent.insertBefore(newNode, reference);
|
|
3070
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3071
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
3072
|
+
return newNode;
|
|
4709
3073
|
}
|
|
4710
|
-
parent.insertBefore(newNode, reference);
|
|
4711
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
4712
|
-
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
4713
|
-
return newNode;
|
|
4714
3074
|
}
|
|
4715
3075
|
if (parent.__insertBefore) {
|
|
4716
3076
|
return parent.__insertBefore(newNode, reference);
|
|
@@ -4969,8 +3329,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
4969
3329
|
endSchedule();
|
|
4970
3330
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
4971
3331
|
};
|
|
4972
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
4973
|
-
console.error(
|
|
3332
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
3333
|
+
console.error(err);
|
|
4974
3334
|
fn();
|
|
4975
3335
|
}) : fn();
|
|
4976
3336
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -6030,7 +4390,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6030
4390
|
});
|
|
6031
4391
|
});
|
|
6032
4392
|
if (cmpTags.length > 0) {
|
|
6033
|
-
if (hasSlotRelocation) {
|
|
4393
|
+
if (BUILD.slotRelocation && hasSlotRelocation) {
|
|
6034
4394
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
6035
4395
|
}
|
|
6036
4396
|
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
@@ -6157,11 +4517,22 @@ function setTagTransformer(transformer) {
|
|
|
6157
4517
|
|
|
6158
4518
|
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
6159
4519
|
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
6160
|
-
const
|
|
6161
|
-
const
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
4520
|
+
const propsObj = props || {};
|
|
4521
|
+
const { children, ...rest } = propsObj;
|
|
4522
|
+
let vnodeData = rest;
|
|
4523
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4524
|
+
vnodeData = { ...rest, key };
|
|
4525
|
+
}
|
|
4526
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4527
|
+
vnodeData = null;
|
|
4528
|
+
}
|
|
4529
|
+
if (children !== void 0) {
|
|
4530
|
+
if (Array.isArray(children)) {
|
|
4531
|
+
return h(type, vnodeData, ...children);
|
|
4532
|
+
}
|
|
4533
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4534
|
+
return h(type, vnodeData, children);
|
|
4535
|
+
}
|
|
6165
4536
|
return h(type, vnodeData, children);
|
|
6166
4537
|
}
|
|
6167
4538
|
return h(type, vnodeData);
|
|
@@ -6172,7 +4543,7 @@ function jsx(type, props, key) {
|
|
|
6172
4543
|
const propsObj = props || {};
|
|
6173
4544
|
const { children, ...rest } = propsObj;
|
|
6174
4545
|
let vnodeData = rest;
|
|
6175
|
-
if (key !== void 0) {
|
|
4546
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
6176
4547
|
vnodeData = { ...rest, key };
|
|
6177
4548
|
}
|
|
6178
4549
|
if (vnodeData && Object.keys(vnodeData).length === 0) {
|