@adyen/bento-vue3 1.94.0 → 1.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/index.d.ts +83 -9
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/dashed-underline.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/date-time-picker.css +1 -0
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/draggable-handle.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-group.css +1 -0
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/navigation-menu-group.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.jhGXgcQl.js → action-bar.CIVprT2U.js} +4 -4
- package/dist/chunks/{action-bar.jhGXgcQl.js.map → action-bar.CIVprT2U.js.map} +1 -1
- package/dist/chunks/{ai-tag.DIdhvkaT.js → ai-tag.DkTlRY__.js} +2 -2
- package/dist/chunks/{ai-tag.DIdhvkaT.js.map → ai-tag.DkTlRY__.js.map} +1 -1
- package/dist/chunks/{anchor-scroller.BhppCt1n.js → anchor-scroller.J2mkf0uu.js} +5 -5
- package/dist/chunks/{anchor-scroller.BhppCt1n.js.map → anchor-scroller.J2mkf0uu.js.map} +1 -1
- package/dist/chunks/{base-modal.DxjZyGlG.js → base-modal.BKtpH-qh.js} +6 -6
- package/dist/chunks/{base-modal.DxjZyGlG.js.map → base-modal.BKtpH-qh.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js → button-actions-with-menu.cMAAF47d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js.map → button-actions-with-menu.cMAAF47d.js.map} +1 -1
- package/dist/chunks/{button-actions.uco5ptf5.js → button-actions.CxTxPprd.js} +2 -2
- package/dist/chunks/{button-actions.uco5ptf5.js.map → button-actions.CxTxPprd.js.map} +1 -1
- package/dist/chunks/{calendar.D8CM3XkW.js → calendar.iQyNwQBL.js} +81 -75
- package/dist/chunks/calendar.iQyNwQBL.js.map +1 -0
- package/dist/chunks/{card.CWzJewQv.js → card.CQlyqa5-.js} +2 -2
- package/dist/chunks/{card.CWzJewQv.js.map → card.CQlyqa5-.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bq6PsVI_.js → checkbox-group.BcDIXL27.js} +3 -3
- package/dist/chunks/{checkbox-group.Bq6PsVI_.js.map → checkbox-group.BcDIXL27.js.map} +1 -1
- package/dist/chunks/{checkbox.DreTXMg0.js → checkbox.LTRqb-pE.js} +2 -2
- package/dist/chunks/{checkbox.DreTXMg0.js.map → checkbox.LTRqb-pE.js.map} +1 -1
- package/dist/chunks/{code-snippet.CGOmdPc-.js → code-snippet.DHzB-8JJ.js} +4 -4
- package/dist/chunks/{code-snippet.CGOmdPc-.js.map → code-snippet.DHzB-8JJ.js.map} +1 -1
- package/dist/chunks/{controls-group.D4MEP6GO.js → controls-group.B-wIl-I7.js} +2 -2
- package/dist/chunks/{controls-group.D4MEP6GO.js.map → controls-group.B-wIl-I7.js.map} +1 -1
- package/dist/chunks/{copy.Dxqx884r.js → copy.XM_7RiIR.js} +3 -3
- package/dist/chunks/{copy.Dxqx884r.js.map → copy.XM_7RiIR.js.map} +1 -1
- package/dist/chunks/{dashboard-section.NWMwtxVX.js → dashboard-section.Da6ZFGtm.js} +4 -4
- package/dist/chunks/{dashboard-section.NWMwtxVX.js.map → dashboard-section.Da6ZFGtm.js.map} +1 -1
- package/dist/chunks/dashed-underline.DJmMXcdt.js +85 -0
- package/dist/chunks/dashed-underline.DJmMXcdt.js.map +1 -0
- package/dist/chunks/{data-grid-template.Bf-VZS0u.js → data-grid-template.-MuGcJp1.js} +4 -4
- package/dist/chunks/{data-grid-template.Bf-VZS0u.js.map → data-grid-template.-MuGcJp1.js.map} +1 -1
- package/dist/chunks/{data-grid.D_TrebJz.js → data-grid.CNIXkdCJ.js} +885 -882
- package/dist/chunks/{data-grid.D_TrebJz.js.map → data-grid.CNIXkdCJ.js.map} +1 -1
- package/dist/chunks/date-picker.DyImOUH4.js +277 -0
- package/dist/chunks/date-picker.DyImOUH4.js.map +1 -0
- package/dist/chunks/{date-range-picker.C5CSReZ5.js → date-range-picker.BigC6wm2.js} +418 -437
- package/dist/chunks/date-range-picker.BigC6wm2.js.map +1 -0
- package/dist/chunks/{dialog-page.CZN5-Ohm.js → dialog-page.BOwnhJze.js} +2 -2
- package/dist/chunks/{dialog-page.CZN5-Ohm.js.map → dialog-page.BOwnhJze.js.map} +1 -1
- package/dist/chunks/directive.D1-d-C2K.js +28 -0
- package/dist/chunks/directive.D1-d-C2K.js.map +1 -0
- package/dist/chunks/draggable-handle.C1dudqKz.js +1649 -0
- package/dist/chunks/{draggable-handle.B_E-T3BS.js.map → draggable-handle.C1dudqKz.js.map} +1 -1
- package/dist/chunks/drawer.BQoyUVOW.js +64 -0
- package/dist/chunks/{drawer.GXqb2HPx.js.map → drawer.BQoyUVOW.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DUDW-Be6.js → dropdown-tag.C1ei1SyR.js} +3 -3
- package/dist/chunks/{dropdown-tag.DUDW-Be6.js.map → dropdown-tag.C1ei1SyR.js.map} +1 -1
- package/dist/chunks/{dropdown.Bsic3Nll.js → dropdown.C5um1anU.js} +523 -508
- package/dist/chunks/dropdown.C5um1anU.js.map +1 -0
- package/dist/chunks/{field-label.DFtyMriH.js → field-label.CLV3nSzz.js} +2 -2
- package/dist/chunks/{field-label.DFtyMriH.js.map → field-label.CLV3nSzz.js.map} +1 -1
- package/dist/chunks/{file-uploader.CKo27YzT.js → file-uploader.C9YOBRQg.js} +39 -38
- package/dist/chunks/{file-uploader.CKo27YzT.js.map → file-uploader.C9YOBRQg.js.map} +1 -1
- package/dist/chunks/{filter-bar.Dhghqmhb.js → filter-bar.CvZnM3hM.js} +282 -279
- package/dist/chunks/{filter-bar.Dhghqmhb.js.map → filter-bar.CvZnM3hM.js.map} +1 -1
- package/dist/chunks/{focus-trap.DcxrXRKl.js → focus-trap.Dl_rHbwH.js} +2 -2
- package/dist/chunks/{focus-trap.DcxrXRKl.js.map → focus-trap.Dl_rHbwH.js.map} +1 -1
- package/dist/chunks/{footer-actions.Dyi8PTyI.js → footer-actions.zlKq74F1.js} +2 -2
- package/dist/chunks/{footer-actions.Dyi8PTyI.js.map → footer-actions.zlKq74F1.js.map} +1 -1
- package/dist/chunks/form-layout-group.08QuvVmC.js +81 -0
- package/dist/chunks/form-layout-group.08QuvVmC.js.map +1 -0
- package/dist/chunks/form-layout-title.Kwve4xv2.js +179 -0
- package/dist/chunks/form-layout-title.Kwve4xv2.js.map +1 -0
- package/dist/chunks/header-meta.NFZo1ACP.js +243 -0
- package/dist/chunks/{header-meta.I2Tztkls.js.map → header-meta.NFZo1ACP.js.map} +1 -1
- package/dist/chunks/{header-with-views.MPJPxTzT.js → header-with-views.ubPTyW9A.js} +10 -10
- package/dist/chunks/{header-with-views.MPJPxTzT.js.map → header-with-views.ubPTyW9A.js.map} +1 -1
- package/dist/chunks/{header.CBzF5Ap9.js → header.Ds0sFKBB.js} +3 -3
- package/dist/chunks/{header.CBzF5Ap9.js.map → header.Ds0sFKBB.js.map} +1 -1
- package/dist/chunks/{index.Cqv1XuTj.js → index.oOAkh64h.js} +248 -225
- package/dist/chunks/{index.Cqv1XuTj.js.map → index.oOAkh64h.js.map} +1 -1
- package/dist/chunks/{info-icon.C_ZkQb1d.js → info-icon.1FtkyuYH.js} +3 -3
- package/dist/chunks/{info-icon.C_ZkQb1d.js.map → info-icon.1FtkyuYH.js.map} +1 -1
- package/dist/chunks/{input-field-password.CA16O5Gv.js → input-field-password.CZ-NTpZF.js} +26 -25
- package/dist/chunks/input-field-password.CZ-NTpZF.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.CTeDyk0e.js → input-field-phone-number.DOHk6gSp.js} +13 -14
- package/dist/chunks/{input-field-phone-number.CTeDyk0e.js.map → input-field-phone-number.DOHk6gSp.js.map} +1 -1
- package/dist/chunks/{input-field.DlEEFday.js → input-field.DBlTGgAD.js} +104 -101
- package/dist/chunks/input-field.DBlTGgAD.js.map +1 -0
- package/dist/chunks/{input-time.CIdcQBgS.js → input-time.CHIjCO74.js} +7 -8
- package/dist/chunks/{input-time.CIdcQBgS.js.map → input-time.CHIjCO74.js.map} +1 -1
- package/dist/chunks/{inspector.BdPLtQ1t.js → inspector.BvBC1ABK.js} +3 -3
- package/dist/chunks/{inspector.BdPLtQ1t.js.map → inspector.BvBC1ABK.js.map} +1 -1
- package/dist/chunks/{layout-row.PGFh3qzc.js → layout-row.BsGdHl3d.js} +8 -8
- package/dist/chunks/{layout-row.PGFh3qzc.js.map → layout-row.BsGdHl3d.js.map} +1 -1
- package/dist/chunks/{list-item.D34osEIh.js → list-item.E1o7yuEB.js} +2 -2
- package/dist/chunks/{list-item.D34osEIh.js.map → list-item.E1o7yuEB.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.12duL_ZH.js → listbox-option-tag.yF6p9iQw.js} +2 -2
- package/dist/chunks/{listbox-option-tag.12duL_ZH.js.map → listbox-option-tag.yF6p9iQw.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.BGpyGUGB.js → modal-fullscreen.DmruiE3n.js} +4 -4
- package/dist/chunks/{modal-fullscreen.BGpyGUGB.js.map → modal-fullscreen.DmruiE3n.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js.map → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js.map} +1 -1
- package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js +336 -0
- package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js.map +1 -0
- package/dist/chunks/{pagination.CbGLdXSQ.js → pagination.DbpHH_53.js} +2 -2
- package/dist/chunks/{pagination.CbGLdXSQ.js.map → pagination.DbpHH_53.js.map} +1 -1
- package/dist/chunks/popover.types.DATOPtuh.js +6 -0
- package/dist/chunks/{popover.types.63w2RF7Y.js.map → popover.types.DATOPtuh.js.map} +1 -1
- package/dist/chunks/{popper-container.WR8Hb24e.js → popper-container.BH4WxeUj.js} +2 -2
- package/dist/chunks/{popper-container.WR8Hb24e.js.map → popper-container.BH4WxeUj.js.map} +1 -1
- package/dist/chunks/{promo-banner.DS8jlFES.js → promo-banner.DvV9eXs4.js} +2 -2
- package/dist/chunks/{promo-banner.DS8jlFES.js.map → promo-banner.DvV9eXs4.js.map} +1 -1
- package/dist/chunks/{radio-group.DpLQ_Wnj.js → radio-group.Cg67ZU0c.js} +3 -3
- package/dist/chunks/{radio-group.DpLQ_Wnj.js.map → radio-group.Cg67ZU0c.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CRa59ETT.js → rich-text-editor.u-V4fNWK.js} +4 -4
- package/dist/chunks/{rich-text-editor.CRa59ETT.js.map → rich-text-editor.u-V4fNWK.js.map} +1 -1
- package/dist/chunks/{search-bar.tmX9JctT.js → search-bar.TKgi1KLs.js} +5 -6
- package/dist/chunks/{search-bar.tmX9JctT.js.map → search-bar.TKgi1KLs.js.map} +1 -1
- package/dist/chunks/secondary-nav.0OsJiAWI.js +315 -0
- package/dist/chunks/{secondary-nav.KIu9A7pb.js.map → secondary-nav.0OsJiAWI.js.map} +1 -1
- package/dist/chunks/{segmented-control.Dxfpt98K.js → segmented-control.D6Yvxxpc.js} +2 -2
- package/dist/chunks/{segmented-control.Dxfpt98K.js.map → segmented-control.D6Yvxxpc.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BVxESHZH.js → selection-card-group.C59ZIrVm.js} +3 -3
- package/dist/chunks/{selection-card-group.BVxESHZH.js.map → selection-card-group.C59ZIrVm.js.map} +1 -1
- package/dist/chunks/set-time-in-date.9-8WOiMT.js +27 -0
- package/dist/chunks/set-time-in-date.9-8WOiMT.js.map +1 -0
- package/dist/chunks/{sidepanel.BwesEWP_.js → sidepanel.BVQt6Tac.js} +6 -6
- package/dist/chunks/{sidepanel.BwesEWP_.js.map → sidepanel.BVQt6Tac.js.map} +1 -1
- package/dist/chunks/{structured-list-item.DUWQ4ggz.js → structured-list-item.BhYtSw2f.js} +4 -4
- package/dist/chunks/{structured-list-item.DUWQ4ggz.js.map → structured-list-item.BhYtSw2f.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BvZUfgwA.js → summary-grid.types.9sUs0LS0.js} +5 -5
- package/dist/chunks/{summary-grid.types.BvZUfgwA.js.map → summary-grid.types.9sUs0LS0.js.map} +1 -1
- package/dist/chunks/{tab.DKVHFvuI.js → tab.ByjWuWQz.js} +108 -99
- package/dist/chunks/{tab.DKVHFvuI.js.map → tab.ByjWuWQz.js.map} +1 -1
- package/dist/chunks/{tag.DyNHhsGt.js → tag.Uu-6AQys.js} +2 -2
- package/dist/chunks/{tag.DyNHhsGt.js.map → tag.Uu-6AQys.js.map} +1 -1
- package/dist/chunks/{textarea.DNeZr2IZ.js → textarea.QgSLPL7S.js} +2 -2
- package/dist/chunks/{textarea.DNeZr2IZ.js.map → textarea.QgSLPL7S.js.map} +1 -1
- package/dist/chunks/{timeline-item.CfA1E0zq.js → timeline-item.DfwOm5do.js} +6 -6
- package/dist/chunks/{timeline-item.CfA1E0zq.js.map → timeline-item.DfwOm5do.js.map} +1 -1
- package/dist/chunks/{tooltip.CuwiX213.js → tooltip.Djn54E1O.js} +3 -3
- package/dist/chunks/{tooltip.CuwiX213.js.map → tooltip.Djn54E1O.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js.map} +1 -1
- package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js +30 -0
- package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js → use-cached-selected-values.DOw5IKdU.js} +3 -3
- package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js.map → use-cached-selected-values.DOw5IKdU.js.map} +1 -1
- package/dist/chunks/{use-date-input-formatter.DaBZd09a.js → use-date-input-formatter.x285YiSd.js} +2 -2
- package/dist/chunks/{use-date-input-formatter.DaBZd09a.js.map → use-date-input-formatter.x285YiSd.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date-time-picker.js +123 -0
- package/dist/date-time-picker.js.map +1 -0
- package/dist/draggable.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +5 -4
- package/dist/form-layout.js.map +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +217 -216
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/input-time.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/navigation-menu.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +6 -6
- package/dist/chunks/calendar.D8CM3XkW.js.map +0 -1
- package/dist/chunks/dashed-underline.DojqhvAa.js +0 -108
- package/dist/chunks/dashed-underline.DojqhvAa.js.map +0 -1
- package/dist/chunks/date-picker.DUUGSbot.js +0 -269
- package/dist/chunks/date-picker.DUUGSbot.js.map +0 -1
- package/dist/chunks/date-range-picker.C5CSReZ5.js.map +0 -1
- package/dist/chunks/directive.C8kY-ZW-.js +0 -23
- package/dist/chunks/directive.C8kY-ZW-.js.map +0 -1
- package/dist/chunks/draggable-handle.B_E-T3BS.js +0 -1639
- package/dist/chunks/drawer.GXqb2HPx.js +0 -55
- package/dist/chunks/dropdown.Bsic3Nll.js.map +0 -1
- package/dist/chunks/form-layout-title.B712PesH.js +0 -253
- package/dist/chunks/form-layout-title.B712PesH.js.map +0 -1
- package/dist/chunks/header-meta.I2Tztkls.js +0 -259
- package/dist/chunks/input-field-password.CA16O5Gv.js.map +0 -1
- package/dist/chunks/input-field.DlEEFday.js.map +0 -1
- package/dist/chunks/navigation-menu-group.D5HMMAuh.js +0 -320
- package/dist/chunks/navigation-menu-group.D5HMMAuh.js.map +0 -1
- package/dist/chunks/popover.types.63w2RF7Y.js +0 -6
- package/dist/chunks/secondary-nav.KIu9A7pb.js +0 -306
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { ref as p, watch as A, onMounted as U, nextTick as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { ref as p, watch as A, onMounted as U, nextTick as le, unref as ue, toRef as se, readonly as X, customRef as ce, effectScope as ae, getCurrentScope as fe, onScopeDispose as de, getCurrentInstance as K, isRef as ve, shallowRef as me, computed as O, reactive as Y, watchEffect as he } from "vue";
|
|
2
|
+
function D(e) {
|
|
3
|
+
return fe() ? (de(e), !0) : !1;
|
|
4
4
|
}
|
|
5
5
|
function We(e) {
|
|
6
6
|
let t = !1, n;
|
|
7
|
-
const r =
|
|
7
|
+
const r = ae(!0);
|
|
8
8
|
return (...u) => (t || (n = r.run(() => e(...u)), t = !0), n);
|
|
9
9
|
}
|
|
10
10
|
function w(e) {
|
|
11
|
-
return typeof e == "function" ? e() :
|
|
11
|
+
return typeof e == "function" ? e() : ue(e);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Q = typeof window < "u" && typeof document < "u";
|
|
14
14
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
15
|
-
const
|
|
15
|
+
const J = (e) => e != null, pe = Object.prototype.toString, we = (e) => pe.call(e) === "[object Object]", I = () => {
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function H(e, t) {
|
|
18
18
|
function n(...r) {
|
|
19
|
-
return new Promise((u,
|
|
20
|
-
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(u).catch(
|
|
19
|
+
return new Promise((u, i) => {
|
|
20
|
+
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(u).catch(i);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
return n;
|
|
24
24
|
}
|
|
25
25
|
const be = (e) => e();
|
|
26
|
-
function
|
|
26
|
+
function Z(e, t = {}) {
|
|
27
27
|
let n, r, u = I;
|
|
28
|
-
const
|
|
28
|
+
const i = (s) => {
|
|
29
29
|
clearTimeout(s), u(), u = I;
|
|
30
30
|
};
|
|
31
31
|
return (s) => {
|
|
32
32
|
const d = w(e), a = w(t.maxWait);
|
|
33
|
-
return n &&
|
|
34
|
-
u = t.rejectOnCancel ?
|
|
35
|
-
n &&
|
|
33
|
+
return n && i(n), d <= 0 || a !== void 0 && a <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((o, l) => {
|
|
34
|
+
u = t.rejectOnCancel ? l : o, a && !r && (r = setTimeout(() => {
|
|
35
|
+
n && i(n), r = null, o(s());
|
|
36
36
|
}, a)), n = setTimeout(() => {
|
|
37
|
-
r &&
|
|
37
|
+
r && i(r), r = null, o(s());
|
|
38
38
|
}, d);
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
let t = 0, n, r = !0, u = I,
|
|
44
|
-
!
|
|
42
|
+
function ee(...e) {
|
|
43
|
+
let t = 0, n, r = !0, u = I, i, c, s, d, a;
|
|
44
|
+
!ve(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: s = !0, leading: d = !0, rejectOnCancel: a = !1 } = e[0] : [c, s = !0, d = !0, a = !1] = e;
|
|
45
45
|
const o = () => {
|
|
46
46
|
n && (clearTimeout(n), n = void 0, u(), u = I);
|
|
47
47
|
};
|
|
48
48
|
return (f) => {
|
|
49
|
-
const v = w(c),
|
|
50
|
-
return o(), v <= 0 ? (t = Date.now(), E()) : (
|
|
49
|
+
const v = w(c), m = Date.now() - t, E = () => i = f();
|
|
50
|
+
return o(), v <= 0 ? (t = Date.now(), E()) : (m > v && (d || !r) ? (t = Date.now(), E()) : s && (i = new Promise((g, b) => {
|
|
51
51
|
u = a ? b : g, n = setTimeout(() => {
|
|
52
52
|
t = Date.now(), r = !0, g(E()), o();
|
|
53
|
-
}, Math.max(0, v -
|
|
54
|
-
})), !d && !n && (n = setTimeout(() => r = !0, v)), r = !1,
|
|
53
|
+
}, Math.max(0, v - m));
|
|
54
|
+
})), !d && !n && (n = setTimeout(() => r = !0, v)), r = !1, i);
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function ge(e, t) {
|
|
58
58
|
var n;
|
|
59
59
|
if (typeof e == "number")
|
|
60
60
|
return e + t;
|
|
61
|
-
const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", u = e.slice(r.length),
|
|
62
|
-
return Number.isNaN(
|
|
61
|
+
const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", u = e.slice(r.length), i = Number.parseFloat(r) + t;
|
|
62
|
+
return Number.isNaN(i) ? e : i + u;
|
|
63
63
|
}
|
|
64
64
|
function ye(e) {
|
|
65
|
-
return
|
|
65
|
+
return K();
|
|
66
66
|
}
|
|
67
67
|
function Ee(...e) {
|
|
68
68
|
if (e.length !== 1)
|
|
69
|
-
return
|
|
69
|
+
return se(...e);
|
|
70
70
|
const t = e[0];
|
|
71
|
-
return typeof t == "function" ?
|
|
71
|
+
return typeof t == "function" ? X(ce(() => ({ get: t, set: I }))) : p(t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
75
|
-
|
|
73
|
+
function te(e, t = 200, n = {}) {
|
|
74
|
+
return H(
|
|
75
|
+
Z(t, n),
|
|
76
76
|
e
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
function Le(e, t = 200, n = {}) {
|
|
80
|
-
const r = p(e.value), u =
|
|
80
|
+
const r = p(e.value), u = te(() => {
|
|
81
81
|
r.value = e.value;
|
|
82
82
|
}, t, n);
|
|
83
83
|
return A(e, () => u()), r;
|
|
84
84
|
}
|
|
85
85
|
function xe(e, t = 200, n = !1, r = !0, u = !1) {
|
|
86
|
-
return
|
|
87
|
-
|
|
86
|
+
return H(
|
|
87
|
+
ee(t, n, r, u),
|
|
88
88
|
e
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function ne(e, t, n = {}) {
|
|
92
92
|
const {
|
|
93
93
|
eventFilter: r = be,
|
|
94
94
|
...u
|
|
95
95
|
} = n;
|
|
96
96
|
return A(
|
|
97
97
|
e,
|
|
98
|
-
|
|
98
|
+
H(
|
|
99
99
|
r,
|
|
100
100
|
t
|
|
101
101
|
),
|
|
@@ -103,40 +103,62 @@ function ee(e, t, n = {}) {
|
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
105
|
function F(e, t = !0, n) {
|
|
106
|
-
ye() ? U(e, n) : t ? e() :
|
|
106
|
+
ye() ? U(e, n) : t ? e() : le(e);
|
|
107
107
|
}
|
|
108
108
|
function Me(e, t, n = {}) {
|
|
109
|
+
const {
|
|
110
|
+
immediate: r = !0
|
|
111
|
+
} = n, u = p(!1);
|
|
112
|
+
let i = null;
|
|
113
|
+
function c() {
|
|
114
|
+
i && (clearTimeout(i), i = null);
|
|
115
|
+
}
|
|
116
|
+
function s() {
|
|
117
|
+
u.value = !1, c();
|
|
118
|
+
}
|
|
119
|
+
function d(...a) {
|
|
120
|
+
c(), u.value = !0, i = setTimeout(() => {
|
|
121
|
+
u.value = !1, i = null, e(...a);
|
|
122
|
+
}, w(t));
|
|
123
|
+
}
|
|
124
|
+
return r && (u.value = !0, Q && d()), D(s), {
|
|
125
|
+
isPending: X(u),
|
|
126
|
+
start: d,
|
|
127
|
+
stop: s
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function Ne(e, t, n = {}) {
|
|
109
131
|
const {
|
|
110
132
|
debounce: r = 0,
|
|
111
133
|
maxWait: u = void 0,
|
|
112
|
-
...
|
|
134
|
+
...i
|
|
113
135
|
} = n;
|
|
114
|
-
return
|
|
136
|
+
return ne(
|
|
115
137
|
e,
|
|
116
138
|
t,
|
|
117
139
|
{
|
|
118
|
-
...
|
|
119
|
-
eventFilter:
|
|
140
|
+
...i,
|
|
141
|
+
eventFilter: Z(r, { maxWait: u })
|
|
120
142
|
}
|
|
121
143
|
);
|
|
122
144
|
}
|
|
123
|
-
function
|
|
145
|
+
function De(e, t, n = {}) {
|
|
124
146
|
const {
|
|
125
147
|
throttle: r = 0,
|
|
126
148
|
trailing: u = !0,
|
|
127
|
-
leading:
|
|
149
|
+
leading: i = !0,
|
|
128
150
|
...c
|
|
129
151
|
} = n;
|
|
130
|
-
return
|
|
152
|
+
return ne(
|
|
131
153
|
e,
|
|
132
154
|
t,
|
|
133
155
|
{
|
|
134
156
|
...c,
|
|
135
|
-
eventFilter:
|
|
157
|
+
eventFilter: ee(r, u, i)
|
|
136
158
|
}
|
|
137
159
|
);
|
|
138
160
|
}
|
|
139
|
-
const S =
|
|
161
|
+
const S = Q ? window : void 0;
|
|
140
162
|
function x(e) {
|
|
141
163
|
var t;
|
|
142
164
|
const n = w(e);
|
|
@@ -147,70 +169,70 @@ function R(...e) {
|
|
|
147
169
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, u] = e, t = S) : [t, n, r, u] = e, !t)
|
|
148
170
|
return I;
|
|
149
171
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
}, s = (o,
|
|
172
|
+
const i = [], c = () => {
|
|
173
|
+
i.forEach((o) => o()), i.length = 0;
|
|
174
|
+
}, s = (o, l, f, v) => (o.addEventListener(l, f, v), () => o.removeEventListener(l, f, v)), d = A(
|
|
153
175
|
() => [x(t), w(u)],
|
|
154
|
-
([o,
|
|
176
|
+
([o, l]) => {
|
|
155
177
|
if (c(), !o)
|
|
156
178
|
return;
|
|
157
|
-
const f = we(
|
|
158
|
-
|
|
159
|
-
...n.flatMap((v) => r.map((
|
|
179
|
+
const f = we(l) ? { ...l } : l;
|
|
180
|
+
i.push(
|
|
181
|
+
...n.flatMap((v) => r.map((m) => s(o, v, m, f)))
|
|
160
182
|
);
|
|
161
183
|
},
|
|
162
184
|
{ immediate: !0, flush: "post" }
|
|
163
185
|
), a = () => {
|
|
164
186
|
d(), c();
|
|
165
187
|
};
|
|
166
|
-
return
|
|
188
|
+
return D(a), a;
|
|
167
189
|
}
|
|
168
190
|
function Oe(e) {
|
|
169
191
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
170
192
|
}
|
|
171
|
-
function
|
|
193
|
+
function $e(...e) {
|
|
172
194
|
let t, n, r = {};
|
|
173
195
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
174
196
|
const {
|
|
175
197
|
target: u = S,
|
|
176
|
-
eventName:
|
|
198
|
+
eventName: i = "keydown",
|
|
177
199
|
passive: c = !1,
|
|
178
200
|
dedupe: s = !1
|
|
179
201
|
} = r, d = Oe(t);
|
|
180
|
-
return R(u,
|
|
202
|
+
return R(u, i, (o) => {
|
|
181
203
|
o.repeat && w(s) || d(o) && n(o);
|
|
182
204
|
}, c);
|
|
183
205
|
}
|
|
184
206
|
function Se() {
|
|
185
|
-
const e = p(!1), t =
|
|
207
|
+
const e = p(!1), t = K();
|
|
186
208
|
return t && U(() => {
|
|
187
209
|
e.value = !0;
|
|
188
210
|
}, t), e;
|
|
189
211
|
}
|
|
190
|
-
function
|
|
212
|
+
function P(e) {
|
|
191
213
|
const t = Se();
|
|
192
214
|
return O(() => (t.value, !!e()));
|
|
193
215
|
}
|
|
194
|
-
function
|
|
216
|
+
function oe(e, t, n = {}) {
|
|
195
217
|
const { window: r = S, ...u } = n;
|
|
196
|
-
let
|
|
197
|
-
const c =
|
|
198
|
-
|
|
218
|
+
let i;
|
|
219
|
+
const c = P(() => r && "MutationObserver" in r), s = () => {
|
|
220
|
+
i && (i.disconnect(), i = void 0);
|
|
199
221
|
}, d = O(() => {
|
|
200
|
-
const f = w(e), v = (Array.isArray(f) ? f : [f]).map(x).filter(
|
|
222
|
+
const f = w(e), v = (Array.isArray(f) ? f : [f]).map(x).filter(J);
|
|
201
223
|
return new Set(v);
|
|
202
224
|
}), a = A(
|
|
203
225
|
() => d.value,
|
|
204
226
|
(f) => {
|
|
205
|
-
s(), c.value && f.size && (
|
|
227
|
+
s(), c.value && f.size && (i = new MutationObserver(t), f.forEach((v) => i.observe(v, u)));
|
|
206
228
|
},
|
|
207
229
|
{ immediate: !0, flush: "post" }
|
|
208
|
-
), o = () =>
|
|
230
|
+
), o = () => i?.takeRecords(), l = () => {
|
|
209
231
|
a(), s();
|
|
210
232
|
};
|
|
211
|
-
return
|
|
233
|
+
return D(l), {
|
|
212
234
|
isSupported: c,
|
|
213
|
-
stop:
|
|
235
|
+
stop: l,
|
|
214
236
|
takeRecords: o
|
|
215
237
|
};
|
|
216
238
|
}
|
|
@@ -220,9 +242,9 @@ function Te(e = {}) {
|
|
|
220
242
|
window: n = S,
|
|
221
243
|
deep: r = !0,
|
|
222
244
|
triggerOnRemoval: u = !1
|
|
223
|
-
} = e,
|
|
245
|
+
} = e, i = (t = e.document) != null ? t : n?.document, c = () => {
|
|
224
246
|
var a;
|
|
225
|
-
let o =
|
|
247
|
+
let o = i?.activeElement;
|
|
226
248
|
if (r)
|
|
227
249
|
for (; o?.shadowRoot; )
|
|
228
250
|
o = (a = o?.shadowRoot) == null ? void 0 : a.activeElement;
|
|
@@ -232,7 +254,7 @@ function Te(e = {}) {
|
|
|
232
254
|
};
|
|
233
255
|
return n && (R(n, "blur", (a) => {
|
|
234
256
|
a.relatedTarget === null && d();
|
|
235
|
-
}, !0), R(n, "focus", d, !0)), u &&
|
|
257
|
+
}, !0), R(n, "focus", d, !0)), u && oe(i, (a) => {
|
|
236
258
|
a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
|
|
237
259
|
o === s.value && d();
|
|
238
260
|
});
|
|
@@ -242,36 +264,36 @@ function Te(e = {}) {
|
|
|
242
264
|
}), d(), s;
|
|
243
265
|
}
|
|
244
266
|
function N(e, t = {}) {
|
|
245
|
-
const { window: n = S } = t, r =
|
|
267
|
+
const { window: n = S } = t, r = P(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
|
|
246
268
|
let u;
|
|
247
|
-
const
|
|
248
|
-
|
|
269
|
+
const i = p(!1), c = (a) => {
|
|
270
|
+
i.value = a.matches;
|
|
249
271
|
}, s = () => {
|
|
250
272
|
u && ("removeEventListener" in u ? u.removeEventListener("change", c) : u.removeListener(c));
|
|
251
273
|
}, d = he(() => {
|
|
252
|
-
r.value && (s(), u = n.matchMedia(w(e)), "addEventListener" in u ? u.addEventListener("change", c) : u.addListener(c),
|
|
274
|
+
r.value && (s(), u = n.matchMedia(w(e)), "addEventListener" in u ? u.addEventListener("change", c) : u.addListener(c), i.value = u.matches);
|
|
253
275
|
});
|
|
254
|
-
return
|
|
276
|
+
return D(() => {
|
|
255
277
|
d(), s(), u = void 0;
|
|
256
|
-
}),
|
|
278
|
+
}), i;
|
|
257
279
|
}
|
|
258
|
-
function
|
|
259
|
-
function n(o,
|
|
280
|
+
function je(e, t = {}) {
|
|
281
|
+
function n(o, l) {
|
|
260
282
|
let f = w(e[w(o)]);
|
|
261
|
-
return
|
|
283
|
+
return l != null && (f = ge(f, l)), typeof f == "number" && (f = `${f}px`), f;
|
|
262
284
|
}
|
|
263
285
|
const { window: r = S, strategy: u = "min-width" } = t;
|
|
264
|
-
function
|
|
286
|
+
function i(o) {
|
|
265
287
|
return r ? r.matchMedia(o).matches : !1;
|
|
266
288
|
}
|
|
267
|
-
const c = (o) => N(() => `(min-width: ${n(o)})`, t), s = (o) => N(() => `(max-width: ${n(o)})`, t), d = Object.keys(e).reduce((o,
|
|
268
|
-
get: () => u === "min-width" ? c(
|
|
289
|
+
const c = (o) => N(() => `(min-width: ${n(o)})`, t), s = (o) => N(() => `(max-width: ${n(o)})`, t), d = Object.keys(e).reduce((o, l) => (Object.defineProperty(o, l, {
|
|
290
|
+
get: () => u === "min-width" ? c(l) : s(l),
|
|
269
291
|
enumerable: !0,
|
|
270
292
|
configurable: !0
|
|
271
293
|
}), o), {});
|
|
272
294
|
function a() {
|
|
273
|
-
const o = Object.keys(e).map((
|
|
274
|
-
return O(() => o.filter(([,
|
|
295
|
+
const o = Object.keys(e).map((l) => [l, c(l)]);
|
|
296
|
+
return O(() => o.filter(([, l]) => l.value).map(([l]) => l));
|
|
275
297
|
}
|
|
276
298
|
return Object.assign(d, {
|
|
277
299
|
greaterOrEqual: c,
|
|
@@ -282,23 +304,23 @@ function $e(e, t = {}) {
|
|
|
282
304
|
smaller(o) {
|
|
283
305
|
return N(() => `(max-width: ${n(o, -0.1)})`, t);
|
|
284
306
|
},
|
|
285
|
-
between(o,
|
|
286
|
-
return N(() => `(min-width: ${n(o)}) and (max-width: ${n(
|
|
307
|
+
between(o, l) {
|
|
308
|
+
return N(() => `(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`, t);
|
|
287
309
|
},
|
|
288
310
|
isGreater(o) {
|
|
289
|
-
return
|
|
311
|
+
return i(`(min-width: ${n(o, 0.1)})`);
|
|
290
312
|
},
|
|
291
313
|
isGreaterOrEqual(o) {
|
|
292
|
-
return
|
|
314
|
+
return i(`(min-width: ${n(o)})`);
|
|
293
315
|
},
|
|
294
316
|
isSmaller(o) {
|
|
295
|
-
return
|
|
317
|
+
return i(`(max-width: ${n(o, -0.1)})`);
|
|
296
318
|
},
|
|
297
319
|
isSmallerOrEqual(o) {
|
|
298
|
-
return
|
|
320
|
+
return i(`(max-width: ${n(o)})`);
|
|
299
321
|
},
|
|
300
|
-
isInBetween(o,
|
|
301
|
-
return
|
|
322
|
+
isInBetween(o, l) {
|
|
323
|
+
return i(`(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`);
|
|
302
324
|
},
|
|
303
325
|
current: a,
|
|
304
326
|
active() {
|
|
@@ -307,24 +329,24 @@ function $e(e, t = {}) {
|
|
|
307
329
|
}
|
|
308
330
|
});
|
|
309
331
|
}
|
|
310
|
-
function
|
|
311
|
-
const n =
|
|
332
|
+
function Ce(e, t) {
|
|
333
|
+
const n = me(a()), r = Ee(e), u = O({
|
|
312
334
|
get() {
|
|
313
335
|
var o;
|
|
314
|
-
const
|
|
315
|
-
let f = t?.getIndexOf ? t.getIndexOf(n.value,
|
|
336
|
+
const l = r.value;
|
|
337
|
+
let f = t?.getIndexOf ? t.getIndexOf(n.value, l) : l.indexOf(n.value);
|
|
316
338
|
return f < 0 && (f = (o = t?.fallbackIndex) != null ? o : 0), f;
|
|
317
339
|
},
|
|
318
340
|
set(o) {
|
|
319
|
-
|
|
341
|
+
i(o);
|
|
320
342
|
}
|
|
321
343
|
});
|
|
322
|
-
function
|
|
323
|
-
const
|
|
324
|
-
return n.value =
|
|
344
|
+
function i(o) {
|
|
345
|
+
const l = r.value, f = l.length, v = (o % f + f) % f, m = l[v];
|
|
346
|
+
return n.value = m, m;
|
|
325
347
|
}
|
|
326
348
|
function c(o = 1) {
|
|
327
|
-
return
|
|
349
|
+
return i(u.value + o);
|
|
328
350
|
}
|
|
329
351
|
function s(o = 1) {
|
|
330
352
|
return c(o);
|
|
@@ -333,109 +355,109 @@ function je(e, t) {
|
|
|
333
355
|
return c(-o);
|
|
334
356
|
}
|
|
335
357
|
function a() {
|
|
336
|
-
var o,
|
|
337
|
-
return (
|
|
358
|
+
var o, l;
|
|
359
|
+
return (l = w((o = t?.initialValue) != null ? o : w(e)[0])) != null ? l : void 0;
|
|
338
360
|
}
|
|
339
|
-
return A(r, () =>
|
|
361
|
+
return A(r, () => i(u.value)), {
|
|
340
362
|
state: n,
|
|
341
363
|
index: u,
|
|
342
364
|
next: s,
|
|
343
365
|
prev: d,
|
|
344
|
-
go:
|
|
366
|
+
go: i
|
|
345
367
|
};
|
|
346
368
|
}
|
|
347
|
-
function
|
|
369
|
+
function re(e, t, n = {}) {
|
|
348
370
|
const { window: r = S, ...u } = n;
|
|
349
|
-
let
|
|
350
|
-
const c =
|
|
351
|
-
|
|
371
|
+
let i;
|
|
372
|
+
const c = P(() => r && "ResizeObserver" in r), s = () => {
|
|
373
|
+
i && (i.disconnect(), i = void 0);
|
|
352
374
|
}, d = O(() => {
|
|
353
|
-
const
|
|
354
|
-
return Array.isArray(
|
|
375
|
+
const l = w(e);
|
|
376
|
+
return Array.isArray(l) ? l.map((f) => x(f)) : [x(l)];
|
|
355
377
|
}), a = A(
|
|
356
378
|
d,
|
|
357
|
-
(
|
|
379
|
+
(l) => {
|
|
358
380
|
if (s(), c.value && r) {
|
|
359
|
-
|
|
360
|
-
for (const f of
|
|
361
|
-
f &&
|
|
381
|
+
i = new ResizeObserver(t);
|
|
382
|
+
for (const f of l)
|
|
383
|
+
f && i.observe(f, u);
|
|
362
384
|
}
|
|
363
385
|
},
|
|
364
386
|
{ immediate: !0, flush: "post" }
|
|
365
387
|
), o = () => {
|
|
366
388
|
s(), a();
|
|
367
389
|
};
|
|
368
|
-
return
|
|
390
|
+
return D(o), {
|
|
369
391
|
isSupported: c,
|
|
370
392
|
stop: o
|
|
371
393
|
};
|
|
372
394
|
}
|
|
373
|
-
function
|
|
395
|
+
function Fe(e, t = {}) {
|
|
374
396
|
const {
|
|
375
397
|
reset: n = !0,
|
|
376
398
|
windowResize: r = !0,
|
|
377
399
|
windowScroll: u = !0,
|
|
378
|
-
immediate:
|
|
400
|
+
immediate: i = !0,
|
|
379
401
|
updateTiming: c = "sync"
|
|
380
|
-
} = t, s = p(0), d = p(0), a = p(0), o = p(0),
|
|
402
|
+
} = t, s = p(0), d = p(0), a = p(0), o = p(0), l = p(0), f = p(0), v = p(0), m = p(0);
|
|
381
403
|
function E() {
|
|
382
404
|
const b = x(e);
|
|
383
405
|
if (!b) {
|
|
384
|
-
n && (s.value = 0, d.value = 0, a.value = 0, o.value = 0,
|
|
406
|
+
n && (s.value = 0, d.value = 0, a.value = 0, o.value = 0, l.value = 0, f.value = 0, v.value = 0, m.value = 0);
|
|
385
407
|
return;
|
|
386
408
|
}
|
|
387
409
|
const y = b.getBoundingClientRect();
|
|
388
|
-
s.value = y.height, d.value = y.bottom, a.value = y.left, o.value = y.right,
|
|
410
|
+
s.value = y.height, d.value = y.bottom, a.value = y.left, o.value = y.right, l.value = y.top, f.value = y.width, v.value = y.x, m.value = y.y;
|
|
389
411
|
}
|
|
390
412
|
function g() {
|
|
391
413
|
c === "sync" ? E() : c === "next-frame" && requestAnimationFrame(() => E());
|
|
392
414
|
}
|
|
393
|
-
return
|
|
415
|
+
return re(e, g), A(() => x(e), (b) => !b && g()), oe(e, g, {
|
|
394
416
|
attributeFilter: ["style", "class"]
|
|
395
417
|
}), u && R("scroll", g, { capture: !0, passive: !0 }), r && R("resize", g, { passive: !0 }), F(() => {
|
|
396
|
-
|
|
418
|
+
i && g();
|
|
397
419
|
}), {
|
|
398
420
|
height: s,
|
|
399
421
|
bottom: d,
|
|
400
422
|
left: a,
|
|
401
423
|
right: o,
|
|
402
|
-
top:
|
|
424
|
+
top: l,
|
|
403
425
|
width: f,
|
|
404
426
|
x: v,
|
|
405
|
-
y:
|
|
427
|
+
y: m,
|
|
406
428
|
update: g
|
|
407
429
|
};
|
|
408
430
|
}
|
|
409
|
-
function
|
|
410
|
-
const { window: r = S, box: u = "content-box" } = n,
|
|
411
|
-
var
|
|
412
|
-
return (f = (
|
|
413
|
-
}), c = p(t.width), s = p(t.height), { stop: d } =
|
|
431
|
+
function Pe(e, t = { width: 0, height: 0 }, n = {}) {
|
|
432
|
+
const { window: r = S, box: u = "content-box" } = n, i = O(() => {
|
|
433
|
+
var l, f;
|
|
434
|
+
return (f = (l = x(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
435
|
+
}), c = p(t.width), s = p(t.height), { stop: d } = re(
|
|
414
436
|
e,
|
|
415
|
-
([
|
|
416
|
-
const f = u === "border-box" ?
|
|
417
|
-
if (r &&
|
|
437
|
+
([l]) => {
|
|
438
|
+
const f = u === "border-box" ? l.borderBoxSize : u === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
439
|
+
if (r && i.value) {
|
|
418
440
|
const v = x(e);
|
|
419
441
|
if (v) {
|
|
420
|
-
const
|
|
421
|
-
c.value =
|
|
442
|
+
const m = v.getBoundingClientRect();
|
|
443
|
+
c.value = m.width, s.value = m.height;
|
|
422
444
|
}
|
|
423
445
|
} else if (f) {
|
|
424
446
|
const v = Array.isArray(f) ? f : [f];
|
|
425
|
-
c.value = v.reduce((
|
|
447
|
+
c.value = v.reduce((m, { inlineSize: E }) => m + E, 0), s.value = v.reduce((m, { blockSize: E }) => m + E, 0);
|
|
426
448
|
} else
|
|
427
|
-
c.value =
|
|
449
|
+
c.value = l.contentRect.width, s.value = l.contentRect.height;
|
|
428
450
|
},
|
|
429
451
|
n
|
|
430
452
|
);
|
|
431
453
|
F(() => {
|
|
432
|
-
const
|
|
433
|
-
|
|
454
|
+
const l = x(e);
|
|
455
|
+
l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, s.value = "offsetHeight" in l ? l.offsetHeight : t.height);
|
|
434
456
|
});
|
|
435
457
|
const a = A(
|
|
436
458
|
() => x(e),
|
|
437
|
-
(
|
|
438
|
-
c.value =
|
|
459
|
+
(l) => {
|
|
460
|
+
c.value = l ? t.width : 0, s.value = l ? t.height : 0;
|
|
439
461
|
}
|
|
440
462
|
);
|
|
441
463
|
function o() {
|
|
@@ -451,76 +473,76 @@ function _e(e, t, n = {}) {
|
|
|
451
473
|
const {
|
|
452
474
|
root: r,
|
|
453
475
|
rootMargin: u = "0px",
|
|
454
|
-
threshold:
|
|
476
|
+
threshold: i = 0,
|
|
455
477
|
window: c = S,
|
|
456
478
|
immediate: s = !0
|
|
457
|
-
} = n, d =
|
|
458
|
-
const
|
|
459
|
-
return (Array.isArray(
|
|
479
|
+
} = n, d = P(() => c && "IntersectionObserver" in c), a = O(() => {
|
|
480
|
+
const m = w(e);
|
|
481
|
+
return (Array.isArray(m) ? m : [m]).map(x).filter(J);
|
|
460
482
|
});
|
|
461
483
|
let o = I;
|
|
462
|
-
const
|
|
463
|
-
() => [a.value, x(r),
|
|
464
|
-
([
|
|
465
|
-
if (o(), !
|
|
484
|
+
const l = p(s), f = d.value ? A(
|
|
485
|
+
() => [a.value, x(r), l.value],
|
|
486
|
+
([m, E]) => {
|
|
487
|
+
if (o(), !l.value || !m.length)
|
|
466
488
|
return;
|
|
467
489
|
const g = new IntersectionObserver(
|
|
468
490
|
t,
|
|
469
491
|
{
|
|
470
492
|
root: x(E),
|
|
471
493
|
rootMargin: u,
|
|
472
|
-
threshold:
|
|
494
|
+
threshold: i
|
|
473
495
|
}
|
|
474
496
|
);
|
|
475
|
-
|
|
497
|
+
m.forEach((b) => b && g.observe(b)), o = () => {
|
|
476
498
|
g.disconnect(), o = I;
|
|
477
499
|
};
|
|
478
500
|
},
|
|
479
501
|
{ immediate: s, flush: "post" }
|
|
480
502
|
) : I, v = () => {
|
|
481
|
-
o(), f(),
|
|
503
|
+
o(), f(), l.value = !1;
|
|
482
504
|
};
|
|
483
|
-
return
|
|
505
|
+
return D(v), {
|
|
484
506
|
isSupported: d,
|
|
485
|
-
isActive:
|
|
507
|
+
isActive: l,
|
|
486
508
|
pause() {
|
|
487
|
-
o(),
|
|
509
|
+
o(), l.value = !1;
|
|
488
510
|
},
|
|
489
511
|
resume() {
|
|
490
|
-
|
|
512
|
+
l.value = !0;
|
|
491
513
|
},
|
|
492
514
|
stop: v
|
|
493
515
|
};
|
|
494
516
|
}
|
|
495
517
|
function Ve(e, t = {}) {
|
|
496
|
-
const { window: n = S, scrollTarget: r, threshold: u = 0 } = t,
|
|
518
|
+
const { window: n = S, scrollTarget: r, threshold: u = 0 } = t, i = p(!1);
|
|
497
519
|
return _e(
|
|
498
520
|
e,
|
|
499
521
|
(c) => {
|
|
500
|
-
let s =
|
|
522
|
+
let s = i.value, d = 0;
|
|
501
523
|
for (const a of c)
|
|
502
524
|
a.time >= d && (d = a.time, s = a.isIntersecting);
|
|
503
|
-
|
|
525
|
+
i.value = s;
|
|
504
526
|
},
|
|
505
527
|
{
|
|
506
528
|
root: r,
|
|
507
529
|
window: n,
|
|
508
530
|
threshold: u
|
|
509
531
|
}
|
|
510
|
-
),
|
|
532
|
+
), i;
|
|
511
533
|
}
|
|
512
534
|
const Ie = "focusin", Re = "focusout";
|
|
513
535
|
function He(e, t = {}) {
|
|
514
|
-
const { window: n = S } = t, r = O(() => x(e)), u = p(!1),
|
|
515
|
-
return !n || !c.value ? { focused:
|
|
536
|
+
const { window: n = S } = t, r = O(() => x(e)), u = p(!1), i = O(() => u.value), c = Te(t);
|
|
537
|
+
return !n || !c.value ? { focused: i } : (R(r, Ie, () => u.value = !0), R(r, Re, () => u.value = !1), { focused: i });
|
|
516
538
|
}
|
|
517
539
|
const k = 1;
|
|
518
|
-
function
|
|
540
|
+
function ze(e, t = {}) {
|
|
519
541
|
const {
|
|
520
542
|
throttle: n = 0,
|
|
521
543
|
idle: r = 200,
|
|
522
544
|
onStop: u = I,
|
|
523
|
-
onScroll:
|
|
545
|
+
onScroll: i = I,
|
|
524
546
|
offset: c = {
|
|
525
547
|
left: 0,
|
|
526
548
|
right: 0,
|
|
@@ -533,38 +555,38 @@ function Pe(e, t = {}) {
|
|
|
533
555
|
},
|
|
534
556
|
behavior: d = "auto",
|
|
535
557
|
window: a = S,
|
|
536
|
-
onError: o = (
|
|
537
|
-
console.error(
|
|
558
|
+
onError: o = (h) => {
|
|
559
|
+
console.error(h);
|
|
538
560
|
}
|
|
539
|
-
} = t,
|
|
561
|
+
} = t, l = p(0), f = p(0), v = O({
|
|
540
562
|
get() {
|
|
541
|
-
return
|
|
563
|
+
return l.value;
|
|
542
564
|
},
|
|
543
|
-
set(
|
|
544
|
-
E(
|
|
565
|
+
set(h) {
|
|
566
|
+
E(h, void 0);
|
|
545
567
|
}
|
|
546
|
-
}),
|
|
568
|
+
}), m = O({
|
|
547
569
|
get() {
|
|
548
570
|
return f.value;
|
|
549
571
|
},
|
|
550
|
-
set(
|
|
551
|
-
E(void 0,
|
|
572
|
+
set(h) {
|
|
573
|
+
E(void 0, h);
|
|
552
574
|
}
|
|
553
575
|
});
|
|
554
|
-
function E(
|
|
555
|
-
var T,
|
|
576
|
+
function E(h, L) {
|
|
577
|
+
var T, $, j, W;
|
|
556
578
|
if (!a)
|
|
557
579
|
return;
|
|
558
580
|
const _ = w(e);
|
|
559
581
|
if (!_)
|
|
560
582
|
return;
|
|
561
|
-
(
|
|
562
|
-
top: (T = w(L)) != null ? T :
|
|
563
|
-
left: (
|
|
583
|
+
(j = _ instanceof Document ? a.document.body : _) == null || j.scrollTo({
|
|
584
|
+
top: (T = w(L)) != null ? T : m.value,
|
|
585
|
+
left: ($ = w(h)) != null ? $ : v.value,
|
|
564
586
|
behavior: w(d)
|
|
565
587
|
});
|
|
566
|
-
const
|
|
567
|
-
v != null && (
|
|
588
|
+
const C = ((W = _?.document) == null ? void 0 : W.documentElement) || _?.documentElement || _;
|
|
589
|
+
v != null && (l.value = C.scrollLeft), m != null && (f.value = C.scrollTop);
|
|
568
590
|
}
|
|
569
591
|
const g = p(!1), b = Y({
|
|
570
592
|
left: !0,
|
|
@@ -576,26 +598,26 @@ function Pe(e, t = {}) {
|
|
|
576
598
|
right: !1,
|
|
577
599
|
top: !1,
|
|
578
600
|
bottom: !1
|
|
579
|
-
}), z = (
|
|
580
|
-
g.value && (g.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, u(
|
|
581
|
-
},
|
|
601
|
+
}), z = (h) => {
|
|
602
|
+
g.value && (g.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, u(h));
|
|
603
|
+
}, ie = te(z, n + r), V = (h) => {
|
|
582
604
|
var L;
|
|
583
605
|
if (!a)
|
|
584
606
|
return;
|
|
585
|
-
const T = ((L =
|
|
586
|
-
y.left = W <
|
|
587
|
-
const _ = Math.abs(W) <= (c.left || 0),
|
|
588
|
-
|
|
607
|
+
const T = ((L = h?.document) == null ? void 0 : L.documentElement) || h?.documentElement || x(h), { display: $, flexDirection: j } = getComputedStyle(T), W = T.scrollLeft;
|
|
608
|
+
y.left = W < l.value, y.right = W > l.value;
|
|
609
|
+
const _ = Math.abs(W) <= (c.left || 0), C = Math.abs(W) + T.clientWidth >= T.scrollWidth - (c.right || 0) - k;
|
|
610
|
+
$ === "flex" && j === "row-reverse" ? (b.left = C, b.right = _) : (b.left = _, b.right = C), l.value = W;
|
|
589
611
|
let M = T.scrollTop;
|
|
590
|
-
|
|
612
|
+
h === a.document && !M && (M = a.document.body.scrollTop), y.top = M < f.value, y.bottom = M > f.value;
|
|
591
613
|
const q = Math.abs(M) <= (c.top || 0), G = Math.abs(M) + T.clientHeight >= T.scrollHeight - (c.bottom || 0) - k;
|
|
592
|
-
|
|
593
|
-
}, B = (
|
|
614
|
+
$ === "flex" && j === "column-reverse" ? (b.top = G, b.bottom = q) : (b.top = q, b.bottom = G), f.value = M;
|
|
615
|
+
}, B = (h) => {
|
|
594
616
|
var L;
|
|
595
617
|
if (!a)
|
|
596
618
|
return;
|
|
597
|
-
const T = (L =
|
|
598
|
-
|
|
619
|
+
const T = (L = h.target.documentElement) != null ? L : h.target;
|
|
620
|
+
V(T), g.value = !0, ie(h), i(h);
|
|
599
621
|
};
|
|
600
622
|
return R(
|
|
601
623
|
e,
|
|
@@ -604,12 +626,12 @@ function Pe(e, t = {}) {
|
|
|
604
626
|
s
|
|
605
627
|
), F(() => {
|
|
606
628
|
try {
|
|
607
|
-
const
|
|
608
|
-
if (!
|
|
629
|
+
const h = w(e);
|
|
630
|
+
if (!h)
|
|
609
631
|
return;
|
|
610
|
-
|
|
611
|
-
} catch (
|
|
612
|
-
o(
|
|
632
|
+
V(h);
|
|
633
|
+
} catch (h) {
|
|
634
|
+
o(h);
|
|
613
635
|
}
|
|
614
636
|
}), R(
|
|
615
637
|
e,
|
|
@@ -618,24 +640,24 @@ function Pe(e, t = {}) {
|
|
|
618
640
|
s
|
|
619
641
|
), {
|
|
620
642
|
x: v,
|
|
621
|
-
y:
|
|
643
|
+
y: m,
|
|
622
644
|
isScrolling: g,
|
|
623
645
|
arrivedState: b,
|
|
624
646
|
directions: y,
|
|
625
647
|
measure() {
|
|
626
|
-
const
|
|
627
|
-
a &&
|
|
648
|
+
const h = w(e);
|
|
649
|
+
a && h && V(h);
|
|
628
650
|
}
|
|
629
651
|
};
|
|
630
652
|
}
|
|
631
|
-
function
|
|
653
|
+
function Be(e = {}) {
|
|
632
654
|
const { window: t = S, behavior: n = "auto" } = e;
|
|
633
655
|
if (!t)
|
|
634
656
|
return {
|
|
635
657
|
x: p(0),
|
|
636
658
|
y: p(0)
|
|
637
659
|
};
|
|
638
|
-
const r = p(t.scrollX), u = p(t.scrollY),
|
|
660
|
+
const r = p(t.scrollX), u = p(t.scrollY), i = O({
|
|
639
661
|
get() {
|
|
640
662
|
return r.value;
|
|
641
663
|
},
|
|
@@ -660,18 +682,18 @@ function ze(e = {}) {
|
|
|
660
682
|
capture: !1,
|
|
661
683
|
passive: !0
|
|
662
684
|
}
|
|
663
|
-
), { x:
|
|
685
|
+
), { x: i, y: c };
|
|
664
686
|
}
|
|
665
|
-
function
|
|
687
|
+
function qe(e = {}) {
|
|
666
688
|
const {
|
|
667
689
|
window: t = S,
|
|
668
690
|
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
669
691
|
initialHeight: r = Number.POSITIVE_INFINITY,
|
|
670
692
|
listenOrientation: u = !0,
|
|
671
|
-
includeScrollbar:
|
|
693
|
+
includeScrollbar: i = !0,
|
|
672
694
|
type: c = "inner"
|
|
673
695
|
} = e, s = p(n), d = p(r), a = () => {
|
|
674
|
-
t && (c === "outer" ? (s.value = t.outerWidth, d.value = t.outerHeight) :
|
|
696
|
+
t && (c === "outer" ? (s.value = t.outerWidth, d.value = t.outerHeight) : i ? (s.value = t.innerWidth, d.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, d.value = t.document.documentElement.clientHeight));
|
|
675
697
|
};
|
|
676
698
|
if (a(), F(a), R("resize", a, { passive: !0 }), u) {
|
|
677
699
|
const o = N("(orientation: portrait)");
|
|
@@ -680,26 +702,27 @@ function Be(e = {}) {
|
|
|
680
702
|
return { width: s, height: d };
|
|
681
703
|
}
|
|
682
704
|
export {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
705
|
+
qe as a,
|
|
706
|
+
je as b,
|
|
707
|
+
Te as c,
|
|
686
708
|
Pe as d,
|
|
687
709
|
ze as e,
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
710
|
+
Be as f,
|
|
711
|
+
He as g,
|
|
712
|
+
Ce as h,
|
|
713
|
+
De as i,
|
|
714
|
+
Fe as j,
|
|
715
|
+
N as k,
|
|
716
|
+
We as l,
|
|
717
|
+
R as m,
|
|
718
|
+
re as n,
|
|
719
|
+
oe as o,
|
|
720
|
+
Ve as p,
|
|
721
|
+
x as q,
|
|
700
722
|
Le as r,
|
|
723
|
+
$e as s,
|
|
701
724
|
w as t,
|
|
702
|
-
|
|
703
|
-
|
|
725
|
+
Me as u,
|
|
726
|
+
Ne as w
|
|
704
727
|
};
|
|
705
|
-
//# sourceMappingURL=index.
|
|
728
|
+
//# sourceMappingURL=index.oOAkh64h.js.map
|