@reapit/elements 5.0.0-beta.39 → 5.0.0-beta.40
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/js/app-switcher-BDL20hTW.js +194 -0
- package/dist/js/app-switcher-BXlXTsN5.cjs +1 -0
- package/dist/js/badge-Zk1mHCLJ.js +45 -0
- package/dist/js/badge-oq_d8wNF.cjs +1 -0
- package/dist/js/bottom-bar-B-ADK41z.js +157 -0
- package/dist/js/bottom-bar-B5NCnGXA.cjs +1 -0
- package/dist/js/{checkbox-CS-7yT6x.js → checkbox-BFYth-66.js} +29 -33
- package/dist/js/checkbox-C3Yq8lEo.cjs +1 -0
- package/dist/js/constants-0FiUx6o2.js +6 -0
- package/dist/js/constants-C8dYB608.cjs +1 -0
- package/dist/js/core/app-switcher.cjs +1 -1
- package/dist/js/core/app-switcher.js +9 -10
- package/dist/js/core/badge.cjs +1 -1
- package/dist/js/core/badge.js +1 -1
- package/dist/js/core/bottom-bar.cjs +1 -1
- package/dist/js/core/bottom-bar.js +7 -8
- package/dist/js/core/checkbox.cjs +1 -1
- package/dist/js/core/checkbox.js +1 -1
- package/dist/js/core/drawer.cjs +1 -1
- package/dist/js/core/drawer.js +1 -1
- package/dist/js/core/features.cjs +1 -1
- package/dist/js/core/features.js +1 -1
- package/dist/js/core/menu.cjs +1 -1
- package/dist/js/core/menu.js +18 -23
- package/dist/js/core/side-bar.cjs +1 -1
- package/dist/js/core/side-bar.js +1 -1
- package/dist/js/core/split-button.cjs +1 -1
- package/dist/js/core/split-button.js +52 -51
- package/dist/js/core/table.cjs +1 -1
- package/dist/js/core/table.js +1 -1
- package/dist/js/core/textarea.cjs +1 -1
- package/dist/js/core/textarea.js +142 -5
- package/dist/js/core/tooltip.cjs +1 -1
- package/dist/js/core/tooltip.js +6 -5
- package/dist/js/core/top-bar.cjs +1 -1
- package/dist/js/core/top-bar.js +33 -33
- package/dist/js/css-anchor-positioning-fn-BF5l2GbQ.cjs +17 -0
- package/dist/js/css-anchor-positioning-fn-CJi6lnM4.js +6352 -0
- package/dist/js/deprecated/menu.cjs +1 -0
- package/dist/js/deprecated/menu.js +25 -0
- package/dist/js/features-CsGbEb2I.js +66 -0
- package/dist/js/features-DvTUfOTg.cjs +1 -0
- package/dist/js/icons/more-vert.cjs +1 -0
- package/dist/js/icons/{elipsis.js → more-vert.js} +3 -3
- package/dist/js/index.cjs +1 -1
- package/dist/js/index.js +1222 -1199
- package/dist/js/match-media-BEA-ogMA.cjs +1 -0
- package/dist/js/match-media-DGLjaFrm.js +24 -0
- package/dist/js/menu-C9dHilkn.cjs +1 -0
- package/dist/js/menu-DNfb22IS.cjs +1 -0
- package/dist/js/menu-RBD640_2.js +242 -0
- package/dist/js/menu-pb8vvQbH.js +183 -0
- package/dist/js/mergeRefs-D-i3MDCB.cjs +1 -0
- package/dist/js/mergeRefs-DODigRi2.js +11 -0
- package/dist/js/popover-CpXCYh5W.js +184 -0
- package/dist/js/popover-DBEXxy0O.cjs +59 -0
- package/dist/js/side-bar-CxrXcOgT.js +383 -0
- package/dist/js/side-bar-cfmgEQoA.cjs +1 -0
- package/dist/js/style.css +1 -1
- package/dist/js/{table-toolbar-oTwWnSVI.js → table-toolbar-CWzuWN-q.js} +1 -1
- package/dist/js/{table-toolbar-aAusD1Vl.cjs → table-toolbar-DBaOi2aA.cjs} +1 -1
- package/dist/js/tooltip-BszFuzzR.cjs +1 -0
- package/dist/js/tooltip-Dn4EQFOW.js +76 -0
- package/dist/js/{top-bar-DWuhMND0.js → top-bar-DJC_7ikU.js} +200 -174
- package/dist/js/top-bar-VIwAd6gG.cjs +1 -0
- package/dist/js/utils/keyboard-navigation.cjs +1 -0
- package/dist/js/utils/keyboard-navigation.js +37 -0
- package/dist/js/utils/match-media.cjs +1 -1
- package/dist/js/utils/match-media.js +3 -22
- package/dist/js/utils/popover.cjs +1 -0
- package/dist/js/utils/popover.js +6 -0
- package/dist/types/core/app-switcher/app-avatar/app-avatar.d.ts.map +1 -1
- package/dist/types/core/app-switcher/app-switcher.d.ts +1 -1
- package/dist/types/core/app-switcher/app-switcher.d.ts.map +1 -1
- package/dist/types/core/app-switcher/app-switcher.stories.d.ts.map +1 -1
- package/dist/types/core/app-switcher/index.d.ts +0 -1
- package/dist/types/core/app-switcher/index.d.ts.map +1 -1
- package/dist/types/core/app-switcher/nav-icon-button/nav-icon-button.d.ts +1 -1
- package/dist/types/core/app-switcher/nav-icon-button/nav-icon-button.d.ts.map +1 -1
- package/dist/types/core/badge/badge.d.ts +3 -3
- package/dist/types/core/badge/badge.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/bottom-bar.d.ts +0 -3
- package/dist/types/core/bottom-bar/bottom-bar.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/context.d.ts +23 -0
- package/dist/types/core/bottom-bar/context.d.ts.map +1 -0
- package/dist/types/core/bottom-bar/item/item-button.d.ts +1 -1
- package/dist/types/core/bottom-bar/item/item-button.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/item/item-button.stories.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/menu-list/menu-list-menu-item.d.ts +1 -1
- package/dist/types/core/bottom-bar/menu-list/menu-list-menu-item.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/menu-list/menu-list.stories.d.ts.map +1 -1
- package/dist/types/core/bottom-bar/menu-list/styles.d.ts +0 -11
- package/dist/types/core/bottom-bar/menu-list/styles.d.ts.map +1 -1
- package/dist/types/core/checkbox/checkbox.d.ts +1 -1
- package/dist/types/core/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/core/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/types/core/chip/chip.stories.d.ts.map +1 -1
- package/dist/types/core/dialog/body/styles.d.ts.map +1 -1
- package/dist/types/core/drawer/constants.d.ts +1 -1
- package/dist/types/core/drawer/constants.d.ts.map +1 -1
- package/dist/types/core/features/item/item.d.ts +1 -1
- package/dist/types/core/features/item/item.d.ts.map +1 -1
- package/dist/types/core/label-text/styles.d.ts.map +1 -1
- package/dist/types/core/menu/__tests__/use-close-menu-on-click.test.d.ts +2 -0
- package/dist/types/core/menu/__tests__/use-close-menu-on-click.test.d.ts.map +1 -0
- package/dist/types/core/menu/__tests__/use-keyboard-navigation.test.d.ts +2 -0
- package/dist/types/core/menu/__tests__/use-keyboard-navigation.test.d.ts.map +1 -0
- package/dist/types/core/menu/divider/__tests__/divider.test.d.ts +2 -0
- package/dist/types/core/menu/divider/__tests__/divider.test.d.ts.map +1 -0
- package/dist/types/core/menu/divider/divider.d.ts +10 -0
- package/dist/types/core/menu/divider/divider.d.ts.map +1 -0
- package/dist/types/core/menu/divider/divider.stories.d.ts +10 -0
- package/dist/types/core/menu/divider/divider.stories.d.ts.map +1 -0
- package/dist/types/core/menu/divider/index.d.ts +3 -0
- package/dist/types/core/menu/divider/index.d.ts.map +1 -0
- package/dist/types/core/menu/divider/styles.d.ts +2 -0
- package/dist/types/core/menu/divider/styles.d.ts.map +1 -0
- package/dist/types/core/menu/group/__tests__/group.test.d.ts +2 -0
- package/dist/types/core/menu/group/__tests__/group.test.d.ts.map +1 -0
- package/dist/types/core/menu/group/group.d.ts +19 -0
- package/dist/types/core/menu/group/group.d.ts.map +1 -0
- package/dist/types/core/menu/group/group.stories.d.ts +40 -0
- package/dist/types/core/menu/group/group.stories.d.ts.map +1 -0
- package/dist/types/core/menu/group/index.d.ts +3 -0
- package/dist/types/core/menu/group/index.d.ts.map +1 -0
- package/dist/types/core/menu/group/styles.d.ts +3 -0
- package/dist/types/core/menu/group/styles.d.ts.map +1 -0
- package/dist/types/core/menu/index.d.ts +3 -3
- package/dist/types/core/menu/index.d.ts.map +1 -1
- package/dist/types/core/menu/item/__tests__/anchor-item.test.d.ts +2 -0
- package/dist/types/core/menu/item/__tests__/anchor-item.test.d.ts.map +1 -0
- package/dist/types/core/menu/item/__tests__/item-base.test.d.ts +2 -0
- package/dist/types/core/menu/item/__tests__/item-base.test.d.ts.map +1 -0
- package/dist/types/core/menu/item/__tests__/item.test.d.ts +2 -0
- package/dist/types/core/menu/item/__tests__/item.test.d.ts.map +1 -0
- package/dist/types/core/menu/item/anchor-item.d.ts +16 -0
- package/dist/types/core/menu/item/anchor-item.d.ts.map +1 -0
- package/dist/types/core/menu/item/index.d.ts +5 -0
- package/dist/types/core/menu/item/index.d.ts.map +1 -0
- package/dist/types/core/menu/item/item-base.d.ts +37 -0
- package/dist/types/core/menu/item/item-base.d.ts.map +1 -0
- package/dist/types/core/menu/item/item.d.ts +19 -0
- package/dist/types/core/menu/item/item.d.ts.map +1 -0
- package/dist/types/core/menu/item/item.stories.d.ts +93 -0
- package/dist/types/core/menu/item/item.stories.d.ts.map +1 -0
- package/dist/types/core/menu/item/styles.d.ts +8 -0
- package/dist/types/core/menu/item/styles.d.ts.map +1 -0
- package/dist/types/core/menu/menu.d.ts +33 -15
- package/dist/types/core/menu/menu.d.ts.map +1 -1
- package/dist/types/core/menu/menu.stories.d.ts +70 -9
- package/dist/types/core/menu/menu.stories.d.ts.map +1 -1
- package/dist/types/core/menu/styles.d.ts +1 -14
- package/dist/types/core/menu/styles.d.ts.map +1 -1
- package/dist/types/core/menu/use-close-menu-on-click.d.ts +10 -0
- package/dist/types/core/menu/use-close-menu-on-click.d.ts.map +1 -0
- package/dist/types/core/menu/use-keyboard-navigation.d.ts +7 -0
- package/dist/types/core/menu/use-keyboard-navigation.d.ts.map +1 -0
- package/dist/types/core/pagination/styles.d.ts.map +1 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts +2 -0
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts.map +1 -0
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-close-menu-group.test.d.ts +2 -0
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-close-menu-group.test.d.ts.map +1 -0
- package/dist/types/core/side-bar/use-keyboard-navigation/{navigate-items-on-arrow-key-down-handler.d.ts → handle-arrow-navigation.d.ts} +2 -2
- package/dist/types/core/side-bar/use-keyboard-navigation/handle-arrow-navigation.d.ts.map +1 -0
- package/dist/types/core/side-bar/use-keyboard-navigation/{close-menu-group-on-escape-key-down-handler.d.ts → handle-close-menu-group.d.ts} +2 -2
- package/dist/types/core/side-bar/use-keyboard-navigation/handle-close-menu-group.d.ts.map +1 -0
- package/dist/types/core/split-button/menu-button/menu-button.d.ts +1 -3
- package/dist/types/core/split-button/menu-button/menu-button.d.ts.map +1 -1
- package/dist/types/core/split-button/menu-button/menu-button.stories.d.ts +1 -1
- package/dist/types/core/split-button/menu-button/styles.d.ts.map +1 -1
- package/dist/types/core/split-button/split-button-menu.d.ts +2 -2
- package/dist/types/core/split-button/split-button-menu.d.ts.map +1 -1
- package/dist/types/core/split-button/split-button.stories.d.ts +0 -272
- package/dist/types/core/split-button/split-button.stories.d.ts.map +1 -1
- package/dist/types/core/table/table-container/styles.d.ts.map +1 -1
- package/dist/types/core/table/table-toolbar/styles.d.ts.map +1 -1
- package/dist/types/core/textarea/styles.d.ts.map +1 -1
- package/dist/types/core/tooltip/__tests__/get-tooltip-trigger-props.test.d.ts +2 -0
- package/dist/types/core/tooltip/__tests__/get-tooltip-trigger-props.test.d.ts.map +1 -0
- package/dist/types/core/tooltip/__tests__/is-tooltip-needed.test.d.ts +2 -0
- package/dist/types/core/tooltip/__tests__/is-tooltip-needed.test.d.ts.map +1 -0
- package/dist/types/core/tooltip/__tests__/use-tooltip-controller.test.d.ts +2 -0
- package/dist/types/core/tooltip/__tests__/use-tooltip-controller.test.d.ts.map +1 -0
- package/dist/types/core/tooltip/get-tooltip-trigger-props.d.ts +28 -0
- package/dist/types/core/tooltip/get-tooltip-trigger-props.d.ts.map +1 -0
- package/dist/types/core/tooltip/index.d.ts +3 -1
- package/dist/types/core/tooltip/index.d.ts.map +1 -1
- package/dist/types/core/tooltip/is-tooltip-needed.d.ts +8 -0
- package/dist/types/core/tooltip/is-tooltip-needed.d.ts.map +1 -0
- package/dist/types/core/tooltip/styles.d.ts +1 -2
- package/dist/types/core/tooltip/styles.d.ts.map +1 -1
- package/dist/types/core/tooltip/tooltip.d.ts +36 -9
- package/dist/types/core/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/core/tooltip/tooltip.stories.d.ts +35 -123
- package/dist/types/core/tooltip/tooltip.stories.d.ts.map +1 -1
- package/dist/types/core/tooltip/use-tooltip-controller.d.ts +21 -0
- package/dist/types/core/tooltip/use-tooltip-controller.d.ts.map +1 -0
- package/dist/types/core/top-bar/main-nav/main-nav-menu-list-item.d.ts +1 -1
- package/dist/types/core/top-bar/main-nav/main-nav-menu-list-item.d.ts.map +1 -1
- package/dist/types/core/top-bar/main-nav/main-nav.stories.d.ts.map +1 -1
- package/dist/types/core/top-bar/main-nav/styles.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.d.ts +1 -5
- package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.stories.d.ts +0 -6
- package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.stories.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-dropdown-button/styles.d.ts +1 -1
- package/dist/types/core/top-bar/nav-dropdown-button/styles.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-icon-item/__tests__/nav-icon-item-base.test.d.ts +2 -0
- package/dist/types/core/top-bar/nav-icon-item/__tests__/nav-icon-item-base.test.d.ts.map +1 -0
- package/dist/types/core/top-bar/nav-icon-item/index.d.ts +1 -1
- package/dist/types/core/top-bar/nav-icon-item/index.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-base.d.ts +4 -4
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-base.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-button.d.ts +2 -2
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-button.d.ts.map +1 -1
- package/dist/types/core/top-bar/nav-icon-item/{nav-icon-item-anchor.d.ts → nav-icon-item.d.ts} +3 -3
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item.d.ts.map +1 -0
- package/dist/types/core/top-bar/nav-icon-item/{nav-icon-item-anchor.stories.d.ts → nav-icon-item.stories.d.ts} +3 -3
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item.stories.d.ts.map +1 -0
- package/dist/types/core/top-bar/secondary-nav/secondary-nav-list-item.d.ts +3 -3
- package/dist/types/core/top-bar/secondary-nav/secondary-nav-list-item.d.ts.map +1 -1
- package/dist/types/core/top-bar/secondary-nav/secondary-nav-menu-list-item.d.ts +1 -1
- package/dist/types/core/top-bar/secondary-nav/secondary-nav-menu-list-item.d.ts.map +1 -1
- package/dist/types/core/top-bar/secondary-nav/styles.d.ts.map +1 -1
- package/dist/types/deprecated/avatar/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/button/styles.d.ts.map +1 -1
- package/dist/types/deprecated/card/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/form-layout/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/input/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/layout/styles.d.ts.map +1 -1
- package/dist/types/deprecated/menu/__tests__/menu-context.test.d.ts.map +1 -0
- package/dist/types/deprecated/menu/__tests__/menu-popover.test.d.ts.map +1 -0
- package/dist/types/deprecated/menu/__tests__/menu.atoms.tests.d.ts.map +1 -0
- package/dist/types/deprecated/menu/__tests__/menu.molecules.test.d.ts.map +1 -0
- package/dist/types/deprecated/menu/__tests__/menu.test.d.ts +2 -0
- package/dist/types/deprecated/menu/__tests__/menu.test.d.ts.map +1 -0
- package/dist/types/deprecated/menu/__tests__/use-menu.test.d.ts.map +1 -0
- package/dist/types/deprecated/menu/index.d.ts +6 -0
- package/dist/types/deprecated/menu/index.d.ts.map +1 -0
- package/dist/types/deprecated/menu/menu-context.d.ts +14 -0
- package/dist/types/deprecated/menu/menu-context.d.ts.map +1 -0
- package/dist/types/{core → deprecated}/menu/menu-popover.d.ts +4 -2
- package/dist/types/deprecated/menu/menu-popover.d.ts.map +1 -0
- package/dist/types/{core → deprecated}/menu/menu.atoms.d.ts +17 -8
- package/dist/types/deprecated/menu/menu.atoms.d.ts.map +1 -0
- package/dist/types/deprecated/menu/menu.d.ts +18 -0
- package/dist/types/deprecated/menu/menu.d.ts.map +1 -0
- package/dist/types/deprecated/menu/menu.molecules.d.ts +13 -0
- package/dist/types/deprecated/menu/menu.molecules.d.ts.map +1 -0
- package/dist/types/deprecated/menu/menu.stories.d.ts +11 -0
- package/dist/types/deprecated/menu/menu.stories.d.ts.map +1 -0
- package/dist/types/deprecated/menu/styles.d.ts +29 -0
- package/dist/types/deprecated/menu/styles.d.ts.map +1 -0
- package/dist/types/{core → deprecated}/menu/use-menu.d.ts +4 -2
- package/dist/types/deprecated/menu/use-menu.d.ts.map +1 -0
- package/dist/types/deprecated/multi-select/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/nav/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/page-header/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/persistent-notification/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/split-button/split-button.stories.d.ts.map +1 -1
- package/dist/types/deprecated/split-button/styles.d.ts.map +1 -1
- package/dist/types/deprecated/status-indicator/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/table/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/tabs/styles.d.ts.map +1 -1
- package/dist/types/deprecated/tile/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/toggle/__styles__/index.d.ts.map +1 -1
- package/dist/types/deprecated/typography/__styles__/index.d.ts.map +1 -1
- package/dist/types/icons/index.d.ts +1 -1
- package/dist/types/icons/index.d.ts.map +1 -1
- package/dist/types/icons/{elipsis.d.ts → more-vert.d.ts} +2 -2
- package/dist/types/icons/more-vert.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/polyfills/css-anchor-positioning/__tests__/is-css-anchor-positioning-supported.test.d.ts +2 -0
- package/dist/types/polyfills/css-anchor-positioning/__tests__/is-css-anchor-positioning-supported.test.d.ts.map +1 -0
- package/dist/types/polyfills/css-anchor-positioning/__tests__/polyfill.test.d.ts +2 -0
- package/dist/types/polyfills/css-anchor-positioning/__tests__/polyfill.test.d.ts.map +1 -0
- package/dist/types/polyfills/css-anchor-positioning/index.d.ts +3 -0
- package/dist/types/polyfills/css-anchor-positioning/index.d.ts.map +1 -0
- package/dist/types/polyfills/css-anchor-positioning/is-css-anchor-positioning-supported.d.ts +6 -0
- package/dist/types/polyfills/css-anchor-positioning/is-css-anchor-positioning-supported.d.ts.map +1 -0
- package/dist/types/polyfills/css-anchor-positioning/polyfill.d.ts +31 -0
- package/dist/types/polyfills/css-anchor-positioning/polyfill.d.ts.map +1 -0
- package/dist/types/styles/deprecated-intent.d.ts.map +1 -1
- package/dist/types/styles/deprecated-states.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts +2 -0
- package/dist/types/utils/keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts.map +1 -0
- package/dist/types/utils/keyboard-navigation/__tests__/handle-link-activation.test.d.ts +2 -0
- package/dist/types/utils/keyboard-navigation/__tests__/handle-link-activation.test.d.ts.map +1 -0
- package/dist/types/utils/keyboard-navigation/handle-arrow-navigation.d.ts +19 -0
- package/dist/types/utils/keyboard-navigation/handle-arrow-navigation.d.ts.map +1 -0
- package/dist/types/utils/keyboard-navigation/handle-link-activation.d.ts +8 -0
- package/dist/types/utils/keyboard-navigation/handle-link-activation.d.ts.map +1 -0
- package/dist/types/utils/keyboard-navigation/index.d.ts +3 -0
- package/dist/types/utils/keyboard-navigation/index.d.ts.map +1 -0
- package/dist/types/utils/popover/__tests__/build-anchor-positioning-css.test.d.ts +2 -0
- package/dist/types/utils/popover/__tests__/build-anchor-positioning-css.test.d.ts.map +1 -0
- package/dist/types/utils/popover/__tests__/get-popover-trigger-props.test.d.ts +2 -0
- package/dist/types/utils/popover/__tests__/get-popover-trigger-props.test.d.ts.map +1 -0
- package/dist/types/utils/popover/__tests__/map-placement-to-css.test.d.ts +2 -0
- package/dist/types/utils/popover/__tests__/map-placement-to-css.test.d.ts.map +1 -0
- package/dist/types/utils/popover/__tests__/popover.test.d.ts +2 -0
- package/dist/types/utils/popover/__tests__/popover.test.d.ts.map +1 -0
- package/dist/types/utils/popover/build-anchor-positioning-css.d.ts +16 -0
- package/dist/types/utils/popover/build-anchor-positioning-css.d.ts.map +1 -0
- package/dist/types/utils/popover/get-popover-trigger-props.d.ts +26 -0
- package/dist/types/utils/popover/get-popover-trigger-props.d.ts.map +1 -0
- package/dist/types/utils/popover/index.d.ts +5 -0
- package/dist/types/utils/popover/index.d.ts.map +1 -0
- package/dist/types/utils/popover/map-placement-to-css.d.ts +9 -0
- package/dist/types/utils/popover/map-placement-to-css.d.ts.map +1 -0
- package/dist/types/utils/popover/popover.d.ts +83 -0
- package/dist/types/utils/popover/popover.d.ts.map +1 -0
- package/dist/types/utils/popover/popover.stories.d.ts +65 -0
- package/dist/types/utils/popover/popover.stories.d.ts.map +1 -0
- package/dist/types/utils/popover/styles.d.ts +2 -0
- package/dist/types/utils/popover/styles.d.ts.map +1 -0
- package/package.json +23 -15
- package/dist/js/app-switcher-CYrAmAg3.js +0 -195
- package/dist/js/app-switcher-DxlJu-e8.cjs +0 -1
- package/dist/js/badge-C9FTjwwZ.cjs +0 -1
- package/dist/js/badge-Ci0eZAEr.js +0 -40
- package/dist/js/bottom-bar-4vZqT8RP.cjs +0 -1
- package/dist/js/bottom-bar-miqnx82J.js +0 -133
- package/dist/js/checkbox-DUImw1xA.cjs +0 -1
- package/dist/js/constants-BNLqBJDi.js +0 -6
- package/dist/js/constants-MKnzVnjM.cjs +0 -1
- package/dist/js/features-D3eQh4dC.js +0 -65
- package/dist/js/features-DTnJg30E.cjs +0 -1
- package/dist/js/icons/elipsis.cjs +0 -1
- package/dist/js/menu-DCRn-9Lk.js +0 -225
- package/dist/js/menu-JyLBozNQ.cjs +0 -1
- package/dist/js/side-bar-C36ISncO.cjs +0 -1
- package/dist/js/side-bar-ChEb_Vv9.js +0 -412
- package/dist/js/textarea-CL9nrQLm.js +0 -151
- package/dist/js/textarea-PDvhvtu8.cjs +0 -1
- package/dist/js/top-bar-C0gvV1eb.cjs +0 -1
- package/dist/js/use-tooltip-B6c-rxoK.cjs +0 -1
- package/dist/js/use-tooltip-D8X2ozrD.js +0 -158
- package/dist/types/core/app-switcher/styles.d.ts +0 -2
- package/dist/types/core/app-switcher/styles.d.ts.map +0 -1
- package/dist/types/core/menu/__tests__/menu-context.test.d.ts.map +0 -1
- package/dist/types/core/menu/__tests__/menu-popover.test.d.ts.map +0 -1
- package/dist/types/core/menu/__tests__/menu.atoms.tests.d.ts.map +0 -1
- package/dist/types/core/menu/__tests__/menu.molecules.test.d.ts.map +0 -1
- package/dist/types/core/menu/__tests__/use-menu.test.d.ts.map +0 -1
- package/dist/types/core/menu/menu-context.d.ts +0 -10
- package/dist/types/core/menu/menu-context.d.ts.map +0 -1
- package/dist/types/core/menu/menu-popover.d.ts.map +0 -1
- package/dist/types/core/menu/menu.atoms.d.ts.map +0 -1
- package/dist/types/core/menu/menu.molecules.d.ts +0 -11
- package/dist/types/core/menu/menu.molecules.d.ts.map +0 -1
- package/dist/types/core/menu/use-menu.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/activate-link-on-space-key-down-handler.test.d.ts +0 -2
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/activate-link-on-space-key-down-handler.test.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/close-menu-group-on-escape-key-down-handler.test.d.ts +0 -2
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/close-menu-group-on-escape-key-down-handler.test.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/navigate-items-on-arrow-key-down-handler.test.d.ts +0 -2
- package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/navigate-items-on-arrow-key-down-handler.test.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/activate-link-on-space-key-down-handler.d.ts +0 -7
- package/dist/types/core/side-bar/use-keyboard-navigation/activate-link-on-space-key-down-handler.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/close-menu-group-on-escape-key-down-handler.d.ts.map +0 -1
- package/dist/types/core/side-bar/use-keyboard-navigation/navigate-items-on-arrow-key-down-handler.d.ts.map +0 -1
- package/dist/types/core/tooltip/__tests__/use-tooltip.test.d.ts +0 -2
- package/dist/types/core/tooltip/__tests__/use-tooltip.test.d.ts.map +0 -1
- package/dist/types/core/tooltip/use-tooltip.d.ts +0 -547
- package/dist/types/core/tooltip/use-tooltip.d.ts.map +0 -1
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-anchor.d.ts.map +0 -1
- package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-anchor.stories.d.ts.map +0 -1
- package/dist/types/helpers/calculatePopoverPosition.d.ts +0 -26
- package/dist/types/helpers/calculatePopoverPosition.d.ts.map +0 -1
- package/dist/types/icons/elipsis.d.ts.map +0 -1
- /package/dist/types/{core → deprecated}/menu/__tests__/menu-context.test.d.ts +0 -0
- /package/dist/types/{core → deprecated}/menu/__tests__/menu-popover.test.d.ts +0 -0
- /package/dist/types/{core → deprecated}/menu/__tests__/menu.atoms.tests.d.ts +0 -0
- /package/dist/types/{core → deprecated}/menu/__tests__/menu.molecules.test.d.ts +0 -0
- /package/dist/types/{core → deprecated}/menu/__tests__/use-menu.test.d.ts +0 -0
package/dist/js/core/top-bar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as r, G as e, I as n, H as t, J as B, M as p,
|
|
1
|
+
import { F as r, G as e, I as n, H as t, J as B, M as p, d as s, E as T, k as v, j as N, n as c, p as l, t as I, q as E, u as i, v as S, w as m, r as u, L as h, B as d, K as C, C as L, D as M, O as y, T as w, a as D, b, c as g, f as x, h as A, g as f, l as P, o as j, s as k, x as q, y as z, z as F, A as G, N as H, e as J, i as K, m as O } from "../top-bar-DJC_7ikU.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ElTopBar,
|
|
4
4
|
e as ElTopBarAppSwitcherContainer,
|
|
@@ -6,40 +6,40 @@ export {
|
|
|
6
6
|
t as ElTopBarLogoContainer,
|
|
7
7
|
B as ElTopBarMainNavContainer,
|
|
8
8
|
p as ElTopBarMenuContainer,
|
|
9
|
-
s as
|
|
10
|
-
T as
|
|
11
|
-
v as
|
|
12
|
-
N as
|
|
13
|
-
c as
|
|
14
|
-
l as
|
|
15
|
-
I as
|
|
16
|
-
E as
|
|
17
|
-
i as
|
|
18
|
-
S as
|
|
19
|
-
m as
|
|
20
|
-
u as
|
|
21
|
-
h as
|
|
22
|
-
d as
|
|
23
|
-
C as
|
|
24
|
-
L as
|
|
25
|
-
M as
|
|
26
|
-
y as
|
|
27
|
-
w as
|
|
28
|
-
D as
|
|
29
|
-
A as TopBarMainNavListItem,
|
|
9
|
+
s as ElTopBarNavDropdownButtonIcon,
|
|
10
|
+
T as ElTopBarNavDropdownButtonLabel,
|
|
11
|
+
v as ElTopBarNavIconItemBadge,
|
|
12
|
+
N as ElTopBarNavIconItemIcon,
|
|
13
|
+
c as ElTopBarNavItemLabel,
|
|
14
|
+
l as ElTopBarNavSearch,
|
|
15
|
+
I as ElTopBarNavSearchButton,
|
|
16
|
+
E as ElTopBarNavSearchButtonContainer,
|
|
17
|
+
i as ElTopBarNavSearchButtonIcon,
|
|
18
|
+
S as ElTopBarNavSearchButtonPlaceholder,
|
|
19
|
+
m as ElTopBarNavSearchButtonShortcutText,
|
|
20
|
+
u as ElTopBarNavSearchIconItemContainer,
|
|
21
|
+
h as ElTopBarSearchContainer,
|
|
22
|
+
d as ElTopBarSecondaryNav,
|
|
23
|
+
C as ElTopBarSecondaryNavContainer,
|
|
24
|
+
L as ElTopBarSecondaryNavList,
|
|
25
|
+
M as ElTopBarSecondaryNavListItem,
|
|
26
|
+
y as TopBar,
|
|
27
|
+
w as TopBarMainNav,
|
|
28
|
+
D as TopBarMainNavListItem,
|
|
30
29
|
b as TopBarMainNavMenuListItem,
|
|
31
30
|
g as TopBarNavDropdownButton,
|
|
32
|
-
x as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
x as TopBarNavIconItem,
|
|
32
|
+
A as TopBarNavIconItemBase,
|
|
33
|
+
f as TopBarNavIconItemButton,
|
|
34
|
+
P as TopBarNavItem,
|
|
35
|
+
j as TopBarNavSearch,
|
|
36
|
+
k as TopBarNavSearchButton,
|
|
37
|
+
q as TopBarNavSearchIconItem,
|
|
38
|
+
z as TopBarSecondaryNav,
|
|
39
|
+
F as TopBarSecondaryNavListItem,
|
|
40
|
+
G as TopBarSecondaryNavMenuListItem,
|
|
41
|
+
H as elTopBarMenuPopover,
|
|
42
|
+
J as elTopBarNavDropdownButton,
|
|
43
43
|
K as elTopBarNavIconItem,
|
|
44
44
|
O as elTopBarNavItem
|
|
45
45
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var po=Object.defineProperty,mo=Object.defineProperties,ko=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable,On=(t,e,n)=>e in t?po(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,V=(t,e)=>{for(var n in e||(e={}))yo.call(e,n)&&On(t,n,e[n]);if(Ln)for(var n of Ln(e))go.call(e,n)&&On(t,n,e[n]);return t},J=(t,e)=>mo(t,ko(e)),_=(t,e,n)=>new Promise((r,i)=>{var s=a=>{try{c(n.next(a))}catch(o){i(o)}},l=a=>{try{c(n.throw(a))}catch(o){i(o)}},c=a=>a.done?r(a.value):Promise.resolve(a.value).then(s,l);c((n=n.apply(t,e)).next())});const Ke=Math.min,Wt=Math.max,ve=Math.round,ue=Math.floor,gt=t=>({x:t,y:t});function bo(t,e){return typeof t=="function"?t(e):t}function So(t){return V({top:0,right:0,bottom:0,left:0},t)}function vo(t){return typeof t!="number"?So(t):{top:t,right:t,bottom:t,left:t}}function Ce(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Co(t,e){return _(this,null,function*(){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:a}=t,{boundary:o="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:m=0}=bo(e,t),p=vo(m),k=c[f?h==="floating"?"reference":"floating":h],b=Ce(yield s.getClippingRect({element:(n=yield s.isElement==null?void 0:s.isElement(k))==null||n?k:k.contextElement||(yield s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:o,rootBoundary:u,strategy:a})),y=h==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating),x=(yield s.isElement==null?void 0:s.isElement(A))?(yield s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},T=Ce(s.convertOffsetParentRelativeRectToViewportRelativeRect?yield s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:A,strategy:a}):y);return{top:(b.top-T.top+p.top)/x.y,bottom:(T.bottom-b.bottom+p.bottom)/x.y,left:(b.left-T.left+p.left)/x.x,right:(T.right-b.right+p.right)/x.x}})}function Pe(){return typeof window<"u"}function Jt(t){return Er(t)?(t.nodeName||"").toLowerCase():"#document"}function it(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function St(t){var e;return(e=(Er(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Er(t){return Pe()?t instanceof Node||t instanceof it(t).Node:!1}function ct(t){return Pe()?t instanceof Element||t instanceof it(t).Element:!1}function bt(t){return Pe()?t instanceof HTMLElement||t instanceof it(t).HTMLElement:!1}function Tn(t){return!Pe()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof it(t).ShadowRoot}function ae(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function xo(t){return["table","td","th"].includes(Jt(t))}function _e(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function dn(t){const e=mn(),n=ct(t)?ut(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function wo(t){let e=Ot(t);for(;bt(e)&&!qt(e);){if(dn(e))return e;if(_e(e))return null;e=Ot(e)}return null}function mn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qt(t){return["html","body","#document"].includes(Jt(t))}function ut(t){return it(t).getComputedStyle(t)}function Ee(t){return ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ot(t){if(Jt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tn(t)&&t.host||St(t);return Tn(e)?e.host:e}function jr(t){const e=Ot(t);return qt(e)?t.ownerDocument?t.ownerDocument.body:t.body:bt(e)&&ae(e)?e:jr(e)}function se(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=jr(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),l=it(i);if(s){const c=tn(l);return e.concat(l,l.visualViewport||[],ae(i)?i:[],c&&n?se(c):[])}return e.concat(i,se(i,[],n))}function tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dr(t){const e=ut(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=bt(t),s=i?t.offsetWidth:n,l=i?t.offsetHeight:r,c=ve(n)!==s||ve(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function kn(t){return ct(t)?t:t.contextElement}function Vt(t){const e=kn(t);if(!bt(e))return gt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Dr(e);let l=(s?ve(n.width):n.width)/r,c=(s?ve(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Lo=gt(0);function Rr(t){const e=it(t);return!mn()||!e.visualViewport?Lo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oo(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==it(t)?!1:e}function Dt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=kn(t);let l=gt(1);e&&(r?ct(r)&&(l=Vt(r)):l=Vt(t));const c=Oo(s,n,r)?Rr(s):gt(0);let a=(i.left+c.x)/l.x,o=(i.top+c.y)/l.y,u=i.width/l.x,h=i.height/l.y;if(s){const f=it(s),m=r&&ct(r)?it(r):r;let p=f,k=tn(p);for(;k&&r&&m!==p;){const b=Vt(k),y=k.getBoundingClientRect(),A=ut(k),x=y.left+(k.clientLeft+parseFloat(A.paddingLeft))*b.x,T=y.top+(k.clientTop+parseFloat(A.paddingTop))*b.y;a*=b.x,o*=b.y,u*=b.x,h*=b.y,a+=x,o+=T,p=it(k),k=tn(p)}}return Ce({width:u,height:h,x:a,y:o})}function yn(t,e){const n=Ee(t).scrollLeft;return e?e.left+n:Dt(St(t)).left+n}function Ir(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-(n?0:yn(t,r)),s=r.top+e.scrollTop;return{x:i,y:s}}function To(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",l=St(r),c=e?_e(e.floating):!1;if(r===l||c&&s)return n;let a={scrollLeft:0,scrollTop:0},o=gt(1);const u=gt(0),h=bt(r);if((h||!h&&!s)&&((Jt(r)!=="body"||ae(l))&&(a=Ee(r)),bt(r))){const m=Dt(r);o=Vt(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=l&&!h&&!s?Ir(l,a,!0):gt(0);return{width:n.width*o.x,height:n.height*o.y,x:n.x*o.x-a.scrollLeft*o.x+u.x+f.x,y:n.y*o.y-a.scrollTop*o.y+u.y+f.y}}function Ao(t){return Array.from(t.getClientRects())}function Po(t){const e=St(t),n=Ee(t),r=t.ownerDocument.body,i=Wt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Wt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+yn(t);const c=-n.scrollTop;return ut(r).direction==="rtl"&&(l+=Wt(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:c}}function _o(t,e){const n=it(t),r=St(t),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,a=0;if(i){s=i.width,l=i.height;const o=mn();(!o||o&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:s,height:l,x:c,y:a}}function Eo(t,e){const n=Dt(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=bt(t)?Vt(t):gt(1),l=t.clientWidth*s.x,c=t.clientHeight*s.y,a=i*s.x,o=r*s.y;return{width:l,height:c,x:a,y:o}}function An(t,e,n){let r;if(e==="viewport")r=_o(t,n);else if(e==="document")r=Po(St(t));else if(ct(e))r=Eo(e,n);else{const i=Rr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ce(r)}function Mr(t,e){const n=Ot(t);return n===e||!ct(n)||qt(n)?!1:ut(n).position==="fixed"||Mr(n,e)}function jo(t,e){const n=e.get(t);if(n)return n;let r=se(t,[],!1).filter(c=>ct(c)&&Jt(c)!=="body"),i=null;const s=ut(t).position==="fixed";let l=s?Ot(t):t;for(;ct(l)&&!qt(l);){const c=ut(l),a=dn(l);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&i&&["absolute","fixed"].includes(i.position)||ae(l)&&!a&&Mr(t,l))?r=r.filter(o=>o!==l):i=c,l=Ot(l)}return e.set(t,r),r}function Do(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?_e(e)?[]:jo(e,this._c):[].concat(n),r],l=s[0],c=s.reduce((a,o)=>{const u=An(e,o,i);return a.top=Wt(u.top,a.top),a.right=Ke(u.right,a.right),a.bottom=Ke(u.bottom,a.bottom),a.left=Wt(u.left,a.left),a},An(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ro(t){const{width:e,height:n}=Dr(t);return{width:e,height:n}}function Io(t,e,n){const r=bt(e),i=St(e),s=n==="fixed",l=Dt(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const a=gt(0);function o(){a.x=yn(i)}if(r||!r&&!s)if((Jt(e)!=="body"||ae(i))&&(c=Ee(e)),r){const m=Dt(e,!0,s,e);a.x=m.x+e.clientLeft,a.y=m.y+e.clientTop}else i&&o();s&&!r&&i&&o();const u=i&&!r&&!s?Ir(i,c):gt(0),h=l.left+c.scrollLeft-a.x-u.x,f=l.top+c.scrollTop-a.y-u.y;return{x:h,y:f,width:l.width,height:l.height}}function Re(t){return ut(t).position==="static"}function Pn(t,e){if(!bt(t)||ut(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return St(t)===n&&(n=n.ownerDocument.body),n}function Nr(t,e){const n=it(t);if(_e(t))return n;if(!bt(t)){let i=Ot(t);for(;i&&!qt(i);){if(ct(i)&&!Re(i))return i;i=Ot(i)}return n}let r=Pn(t,e);for(;r&&xo(r)&&Re(r);)r=Pn(r,e);return r&&qt(r)&&Re(r)&&!dn(r)?n:r||wo(t)||n}const Mo=function(t){return _(this,null,function*(){const e=this.getOffsetParent||Nr,n=this.getDimensions,r=yield n(t.floating);return{reference:Io(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function No(t){return ut(t).direction==="rtl"}const nt={convertOffsetParentRelativeRectToViewportRelativeRect:To,getDocumentElement:St,getClippingRect:Do,getOffsetParent:Nr,getElementRects:Mo,getClientRects:Ao,getDimensions:Ro,getScale:Vt,isElement:ct,isRTL:No};function Fr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Fo(t,e){let n=null,r;const i=St(t);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const o=t.getBoundingClientRect(),{left:u,top:h,width:f,height:m}=o;if(c||e(),!f||!m)return;const p=ue(h),k=ue(i.clientWidth-(u+f)),b=ue(i.clientHeight-(h+m)),y=ue(u),A={rootMargin:-p+"px "+-k+"px "+-b+"px "+-y+"px",threshold:Wt(0,Ke(1,a))||1};let x=!0;function T(S){const L=S[0].intersectionRatio;if(L!==a){if(!x)return l();L?l(!1,L):r=setTimeout(()=>{l(!1,1e-7)},1e3)}L===1&&!Fr(o,t.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(T,J(V({},A),{root:i.ownerDocument}))}catch{n=new IntersectionObserver(T,A)}n.observe(t)}return l(!0),s}function en(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,o=kn(t),u=i||s?[...o?se(o):[],...se(e)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=o&&c?Fo(o,n):null;let f=-1,m=null;l&&(m=new ResizeObserver(y=>{let[A]=y;A&&A.target===o&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(e)})),n()}),o&&!a&&m.observe(o),m.observe(e));let p,k=a?Dt(t):null;a&&b();function b(){const y=Dt(t);k&&!Fr(k,y)&&n(),k=y,p=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(A=>{i&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,a&&cancelAnimationFrame(p)}}const zo=Co,{hasOwnProperty:gn}=Object.prototype,Kt=function(){};function _n(t){return typeof t=="function"?t:Kt}function En(t,e){return function(n,r,i){n.type===e&&t.call(this,n,r,i)}}function $o(t,e){const n=e.structure,r=[];for(const i in n){if(gn.call(n,i)===!1)continue;let s=n[i];const l={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const c of s)c===null?l.nullable=!0:typeof c=="string"?l.type="node":Array.isArray(c)&&(l.type="list");l.type&&r.push(l)}return r.length?{context:e.walkContext,fields:r}:null}function Bo(t){const e={};for(const n in t.node)if(gn.call(t.node,n)){const r=t.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=$o(n,r)}return e}function jn(t,e){const n=t.fields.slice(),r=t.context,i=typeof r=="string";return e&&n.reverse(),function(s,l,c,a){let o;i&&(o=l[r],l[r]=s);for(const u of n){const h=s[u.name];if(!u.nullable||h){if(u.type==="list"){if(e?h.reduceRight(a,!1):h.reduce(a,!1))return!0}else if(c(h))return!0}}i&&(l[r]=o)}}function Dn({StyleSheet:t,Atrule:e,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:r},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:r},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:r,DeclarationList:i}}}function Uo(t){const e=Bo(t),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const o in e)gn.call(e,o)&&e[o]!==null&&(n[o]=jn(e[o],!1),r[o]=jn(e[o],!0));const l=Dn(n),c=Dn(r),a=function(o,u){function h(y,A,x){const T=f.call(b,y,A,x);return T===i?!0:T===s?!1:!!(p.hasOwnProperty(y.type)&&p[y.type](y,b,h,k)||m.call(b,y,A,x)===i)}let f=Kt,m=Kt,p=n,k=(y,A,x,T)=>y||h(A,x,T);const b={break:i,skip:s,root:o,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof u=="function")f=u;else if(u&&(f=_n(u.enter),m=_n(u.leave),u.reverse&&(p=r),u.visit)){if(l.hasOwnProperty(u.visit))p=u.reverse?c[u.visit]:l[u.visit];else if(!e.hasOwnProperty(u.visit))throw new Error("Bad value `"+u.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");f=En(f,u.visit),m=En(m,u.visit)}if(f===Kt&&m===Kt)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(o)};return a.break=i,a.skip=s,a.find=function(o,u){let h=null;return a(o,function(f,m,p){if(u.call(this,f,m,p))return h=f,i}),h},a.findLast=function(o,u){let h=null;return a(o,{reverse:!0,enter(f,m,p){if(u.call(this,f,m,p))return h=f,i}}),h},a.findAll=function(o,u){const h=[];return a(o,function(f,m,p){u.call(this,f,m,p)&&h.push(f)}),h},a}const xt=0,d=1,C=2,U=3,R=4,vt=5,Wo=6,G=7,lt=8,O=9,v=10,F=11,w=12,B=13,je=14,tt=15,Y=16,K=17,ft=18,Zt=19,oe=20,E=21,g=22,ht=23,Qt=24,X=25,Vo=0;function rt(t){return t>=48&&t<=57}function Gt(t){return rt(t)||t>=65&&t<=70||t>=97&&t<=102}function bn(t){return t>=65&&t<=90}function Ho(t){return t>=97&&t<=122}function qo(t){return bn(t)||Ho(t)}function Qo(t){return t>=128}function xe(t){return qo(t)||Qo(t)||t===95}function zr(t){return xe(t)||rt(t)||t===45}function Go(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function we(t){return t===10||t===13||t===12}function Rt(t){return we(t)||t===32||t===9}function yt(t,e){return!(t!==92||we(e)||e===Vo)}function Ie(t,e,n){return t===45?xe(e)||e===45||yt(e,n):xe(t)?!0:t===92?yt(t,e):!1}function Me(t,e,n){return t===43||t===45?rt(e)?2:e===46&&rt(n)?3:0:t===46?rt(e)?2:0:rt(t)?1:0}function $r(t){return t===65279||t===65534?1:0}const nn=new Array(128),Xo=128,ke=130,Br=131,Sn=132,Ur=133;for(let t=0;t<nn.length;t++)nn[t]=Rt(t)&&ke||rt(t)&&Br||xe(t)&&Sn||Go(t)&&Ur||t||Xo;function Ne(t){return t<128?nn[t]:Sn}function Ht(t,e){return e<t.length?t.charCodeAt(e):0}function rn(t,e,n){return n===13&&Ht(t,e+1)===10?2:1}function Wr(t,e,n){let r=t.charCodeAt(e);return bn(r)&&(r=r|32),r===n}function Le(t,e,n,r){if(n-e!==r.length||e<0||n>t.length)return!1;for(let i=e;i<n;i++){const s=r.charCodeAt(i-e);let l=t.charCodeAt(i);if(bn(l)&&(l=l|32),l!==s)return!1}return!0}function Yo(t,e){for(;e>=0&&Rt(t.charCodeAt(e));e--);return e+1}function he(t,e){for(;e<t.length&&Rt(t.charCodeAt(e));e++);return e}function Fe(t,e){for(;e<t.length&&rt(t.charCodeAt(e));e++);return e}function Xt(t,e){if(e+=2,Gt(Ht(t,e-1))){for(const r=Math.min(t.length,e+5);e<r&&Gt(Ht(t,e));e++);const n=Ht(t,e);Rt(n)&&(e+=rn(t,e,n))}return e}function fe(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!zr(n)){if(yt(n,Ht(t,e+1))){e=Xt(t,e)-1;continue}break}}return e}function Vr(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),rt(n)&&(e=Fe(t,e+1),n=t.charCodeAt(e)),n===46&&rt(t.charCodeAt(e+1))&&(e+=2,e=Fe(t,e)),Wr(t,e,101)){let r=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(r=1,n=t.charCodeAt(e+2)),rt(n)&&(e=Fe(t,e+1+r+1))}return e}function ze(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}yt(n,Ht(t,e+1))&&(e=Xt(t,e))}return e}function Hr(t){if(t.length===1&&!Gt(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}const qr=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],Jo=16*1024;function Oe(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,Jo)):t}const Rn=10,Zo=12,In=13;function Mn(t){const e=t.source,n=e.length,r=e.length>0?$r(e.charCodeAt(0)):0,i=Oe(t.lines,n),s=Oe(t.columns,n);let l=t.startLine,c=t.startColumn;for(let a=r;a<n;a++){const o=e.charCodeAt(a);i[a]=l,s[a]=c++,(o===Rn||o===In||o===Zo)&&(o===In&&a+1<n&&e.charCodeAt(a+1)===Rn&&(a++,i[a]=l,s[a]=c),l++,c=1)}i[n]=l,s[n]=c,t.lines=i,t.columns=s,t.computed=!0}class Ko{constructor(e,n,r,i){this.setSource(e,n,r,i),this.lines=null,this.columns=null}setSource(e="",n=0,r=1,i=1){this.source=e,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(e,n){return this.computed||Mn(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,r){return this.computed||Mn(this),{source:r,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const dt=16777215,mt=24,It=new Uint8Array(32);It[C]=g;It[E]=g;It[Zt]=oe;It[ht]=Qt;function Nn(t){return It[t]!==0}class tl{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=()=>{}){e=String(e||"");const r=e.length,i=Oe(this.offsetAndType,e.length+1),s=Oe(this.balance,e.length+1);let l=0,c=-1,a=0,o=e.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(e,(u,h,f)=>{const m=l++;if(i[m]=u<<mt|f,c===-1&&(c=h),s[m]=o,u===a){const p=s[o];s[o]=m,o=p,a=It[i[p]>>mt]}else Nn(u)&&(o=m,a=It[u])}),i[l]=xt<<mt|r,s[l]=l;for(let u=0;u<l;u++){const h=s[u];if(h<=u){const f=s[h];f!==u&&(s[u]=f)}else h>l&&(s[u]=l)}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=l,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>mt:xt}lookupTypeNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>mt;if(r!==B&&r!==X&&e--===0)return r}return xt}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&dt:this.source.length}lookupOffsetNonSC(e){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>mt;if(r!==B&&r!==X&&e--===0)return n-this.tokenIndex}return xt}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?Le(this.source,this.offsetAndType[e-1]&dt,this.offsetAndType[e]&dt,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&dt:this.offsetAndType[this.tokenCount]&dt:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===O&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===O&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&dt,n=this.offsetAndType[n],this.tokenType=n>>mt,this.tokenEnd=n&dt):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>mt,this.tokenEnd=e&dt):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=xt,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===B||this.tokenType===X;)this.next()}skipUntilBalanced(e,n){let r=e,i=0,s=0;t:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<e)break t;switch(s=r>0?this.offsetAndType[r-1]&dt:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break t;case 2:r++;break t;default:Nn(this.offsetAndType[r]>>mt)&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(e){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],l=s&dt,c=s>>mt;r=l,e(c,i,l,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{e[s]={idx:s,type:qr[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),e}}function Qr(t,e){function n(h){return h<c?t.charCodeAt(h):0}function r(){if(o=Vr(t,o),Ie(n(o),n(o+1),n(o+2))){u=w,o=fe(t,o);return}if(n(o)===37){u=F,o++;return}u=v}function i(){const h=o;if(o=fe(t,o),Le(t,h,o,"url")&&n(o)===40){if(o=he(t,o+1),n(o)===34||n(o)===39){u=C,o=h+4;return}l();return}if(n(o)===40){u=C,o++;return}u=d}function s(h){for(h||(h=n(o++)),u=vt;o<t.length;o++){const f=t.charCodeAt(o);switch(Ne(f)){case h:o++;return;case ke:if(we(f)){o+=rn(t,o,f),u=Wo;return}break;case 92:if(o===t.length-1)break;const m=n(o+1);we(m)?o+=rn(t,o+1,m):yt(f,m)&&(o=Xt(t,o)-1);break}}}function l(){for(u=G,o=he(t,o);o<t.length;o++){const h=t.charCodeAt(o);switch(Ne(h)){case 41:o++;return;case ke:if(o=he(t,o),n(o)===41||o>=t.length){o<t.length&&o++;return}o=ze(t,o),u=lt;return;case 34:case 39:case 40:case Ur:o=ze(t,o),u=lt;return;case 92:if(yt(h,n(o+1))){o=Xt(t,o)-1;break}o=ze(t,o),u=lt;return}}}t=String(t||"");const c=t.length;let a=$r(n(0)),o=a,u;for(;o<c;){const h=t.charCodeAt(o);switch(Ne(h)){case ke:u=B,o=he(t,o+1);break;case 34:s();break;case 35:zr(n(o+1))||yt(n(o+1),n(o+2))?(u=R,o=fe(t,o+1)):(u=O,o++);break;case 39:s();break;case 40:u=E,o++;break;case 41:u=g,o++;break;case 43:Me(h,n(o+1),n(o+2))?r():(u=O,o++);break;case 44:u=ft,o++;break;case 45:Me(h,n(o+1),n(o+2))?r():n(o+1)===45&&n(o+2)===62?(u=tt,o=o+3):Ie(h,n(o+1),n(o+2))?i():(u=O,o++);break;case 46:Me(h,n(o+1),n(o+2))?r():(u=O,o++);break;case 47:n(o+1)===42?(u=X,o=t.indexOf("*/",o+2),o=o===-1?t.length:o+2):(u=O,o++);break;case 58:u=Y,o++;break;case 59:u=K,o++;break;case 60:n(o+1)===33&&n(o+2)===45&&n(o+3)===45?(u=je,o=o+4):(u=O,o++);break;case 64:Ie(n(o+1),n(o+2),n(o+3))?(u=U,o=fe(t,o+1)):(u=O,o++);break;case 91:u=Zt,o++;break;case 92:yt(h,n(o+1))?i():(u=O,o++);break;case 93:u=oe,o++;break;case 123:u=ht,o++;break;case 125:u=Qt,o++;break;case Br:r();break;case Sn:i();break;default:u=O,o++}e(u,a,a=o)}}const kt=43,et=45,ye=110,Pt=!0,el=!1;function ge(t,e){let n=this.tokenStart+t;const r=this.charCodeAt(n);for((r===kt||r===et)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)rt(this.charCodeAt(n))||this.error("Integer is expected",n)}function Ut(t){return ge.call(this,0,t)}function Ct(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case ye:n="N is expected";break;case et:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function $e(){let t=0,e=0,n=this.tokenType;for(;n===B||n===X;)n=this.lookupType(++t);if(n!==v)if(this.isDelim(kt,t)||this.isDelim(et,t)){e=this.isDelim(kt,t)?kt:et;do n=this.lookupType(++t);while(n===B||n===X);n!==v&&(this.skip(t),Ut.call(this,Pt))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==kt&&n!==et&&this.error("Number sign is expected")),Ut.call(this,e!==0),e===et?"-"+this.consume(v):this.consume(v)}const nl="AnPlusB",rl={a:[String,null],b:[String,null]};function Gr(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===v)Ut.call(this,el),n=this.consume(v);else if(this.tokenType===d&&this.cmpChar(this.tokenStart,et))switch(e="-1",Ct.call(this,1,ye),this.tokenEnd-this.tokenStart){case 2:this.next(),n=$e.call(this);break;case 3:Ct.call(this,2,et),this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(v);break;default:Ct.call(this,2,et),ge.call(this,3,Pt),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===d||this.isDelim(kt)&&this.lookupType(1)===d){let r=0;switch(e="1",this.isDelim(kt)&&(r=1,this.next()),Ct.call(this,0,ye),this.tokenEnd-this.tokenStart){case 1:this.next(),n=$e.call(this);break;case 2:Ct.call(this,1,et),this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(v);break;default:Ct.call(this,1,et),ge.call(this,2,Pt),this.next(),n=this.substrToCursor(t+r+1)}}else if(this.tokenType===w){const r=this.charCodeAt(this.tokenStart),i=r===kt||r===et;let s=this.tokenStart+i;for(;s<this.tokenEnd&&rt(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Ct.call(this,s-this.tokenStart,ye),e=this.substring(t,s),s+1===this.tokenEnd?(this.next(),n=$e.call(this)):(Ct.call(this,s-this.tokenStart+1,et),s+2===this.tokenEnd?(this.next(),this.skipSC(),Ut.call(this,Pt),n="-"+this.consume(v)):(ge.call(this,s-this.tokenStart+2,Pt),this.next(),n=this.substrToCursor(s+1)))}else this.error();return e!==null&&e.charCodeAt(0)===kt&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===kt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function Xr(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}const il=Object.freeze(Object.defineProperty({__proto__:null,generate:Xr,name:nl,parse:Gr,structure:rl},Symbol.toStringTag,{value:"Module"}));function Fn(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function sl(){for(let t=1,e;e=this.lookupType(t);t++){if(e===Qt)return!0;if(e===ht||e===U)return!1}return!1}const ol="Atrule",ll="atrule",al={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Yr(t=!1){const e=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(U),n=this.substrToCursor(e+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ht&&this.tokenType!==K&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),Fn):i=Fn.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case K:this.next();break;case ht:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,t):s=this.Block(sl.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:i,block:s}}function Jr(t){this.token(U,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(K,";")}const cl=Object.freeze(Object.defineProperty({__proto__:null,generate:Jr,name:ol,parse:Yr,structure:al,walkContext:ll},Symbol.toStringTag,{value:"Module"})),ul="AtrulePrelude",hl="atrulePrelude",fl={children:[[]]};function Zr(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==ht&&this.tokenType!==K&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function Kr(t){this.children(t)}const pl=Object.freeze(Object.defineProperty({__proto__:null,generate:Kr,name:ul,parse:Zr,structure:fl,walkContext:hl},Symbol.toStringTag,{value:"Module"})),dl=36,ti=42,be=61,ml=94,sn=124,kl=126;function yl(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(ti)?(e=!0,this.next()):this.isDelim(sn)||this.eat(d),this.isDelim(sn)?this.charCodeAt(this.tokenStart+1)!==be?(this.next(),this.eat(d)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function gl(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==be&&e!==kl&&e!==ml&&e!==dl&&e!==ti&&e!==sn&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==be&&(this.isDelim(be)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const bl="AttributeSelector",Sl={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function ei(){const t=this.tokenStart;let e,n=null,r=null,i=null;return this.eat(Zt),this.skipSC(),e=yl.call(this),this.skipSC(),this.tokenType!==oe&&(this.tokenType!==d&&(n=gl.call(this),this.skipSC(),r=this.tokenType===vt?this.String():this.Identifier(),this.skipSC()),this.tokenType===d&&(i=this.consume(d),this.skipSC())),this.eat(oe),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:i}}function ni(t){this.token(O,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(d,t.flags),this.token(O,"]")}const vl=Object.freeze(Object.defineProperty({__proto__:null,generate:ni,name:bl,parse:ei,structure:Sl},Symbol.toStringTag,{value:"Module"})),Cl=38;function ri(){return this.Raw(null,!0)}function zn(){return this.parseWithFallback(this.Rule,ri)}function $n(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function xl(){if(this.tokenType===K)return $n.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,$n);return this.tokenType===K&&this.next(),t}const wl="Block",Ll="block",Ol={children:[["Atrule","Rule","Declaration"]]};function ii(t){const e=t?xl:zn,n=this.tokenStart;let r=this.createList();this.eat(ht);t:for(;!this.eof;)switch(this.tokenType){case Qt:break t;case B:case X:this.next();break;case U:r.push(this.parseWithFallback(this.Atrule.bind(this,t),ri));break;default:t&&this.isDelim(Cl)?r.push(zn.call(this)):r.push(e.call(this))}return this.eof||this.eat(Qt),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function si(t){this.token(ht,"{"),this.children(t,e=>{e.type==="Declaration"&&this.token(K,";")}),this.token(Qt,"}")}const Tl=Object.freeze(Object.defineProperty({__proto__:null,generate:si,name:wl,parse:ii,structure:Ol,walkContext:Ll},Symbol.toStringTag,{value:"Module"})),Al="Brackets",Pl={children:[[]]};function oi(t,e){const n=this.tokenStart;let r=null;return this.eat(Zt),r=t.call(this,e),this.eof||this.eat(oe),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function li(t){this.token(O,"["),this.children(t),this.token(O,"]")}const _l=Object.freeze(Object.defineProperty({__proto__:null,generate:li,name:Al,parse:oi,structure:Pl},Symbol.toStringTag,{value:"Module"})),El="CDC",jl=[];function ai(){const t=this.tokenStart;return this.eat(tt),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function ci(){this.token(tt,"-->")}const Dl=Object.freeze(Object.defineProperty({__proto__:null,generate:ci,name:El,parse:ai,structure:jl},Symbol.toStringTag,{value:"Module"})),Rl="CDO",Il=[];function ui(){const t=this.tokenStart;return this.eat(je),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function hi(){this.token(je,"<!--")}const Ml=Object.freeze(Object.defineProperty({__proto__:null,generate:hi,name:Rl,parse:ui,structure:Il},Symbol.toStringTag,{value:"Module"})),Nl=46,Fl="ClassSelector",zl={name:String};function fi(){return this.eatDelim(Nl),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(d)}}function pi(t){this.token(O,"."),this.token(d,t.name)}const $l=Object.freeze(Object.defineProperty({__proto__:null,generate:pi,name:Fl,parse:fi,structure:zl},Symbol.toStringTag,{value:"Module"})),Bl=43,Bn=47,Ul=62,Wl=126,Vl="Combinator",Hl={name:String};function di(){const t=this.tokenStart;let e;switch(this.tokenType){case B:e=" ";break;case O:switch(this.charCodeAt(this.tokenStart)){case Ul:case Bl:case Wl:this.next();break;case Bn:this.next(),this.eatIdent("deep"),this.eatDelim(Bn);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function mi(t){this.tokenize(t.name)}const ql=Object.freeze(Object.defineProperty({__proto__:null,generate:mi,name:Vl,parse:di,structure:Hl},Symbol.toStringTag,{value:"Module"})),Ql=42,Gl=47,Xl="Comment",Yl={value:String};function ki(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(X),e-t+2>=2&&this.charCodeAt(e-2)===Ql&&this.charCodeAt(e-1)===Gl&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function yi(t){this.token(X,"/*"+t.value+"*/")}const Jl=Object.freeze(Object.defineProperty({__proto__:null,generate:yi,name:Xl,parse:ki,structure:Yl},Symbol.toStringTag,{value:"Module"})),Zl=new Set([Y,g,xt]),Kl="Condition",ta={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Un(t){return this.lookupTypeNonSC(1)===d&&Zl.has(this.lookupTypeNonSC(2))?this.Feature(t):this.FeatureRange(t)}const ea={media:Un,container:Un,supports(){return this.SupportsDeclaration()}};function gi(t="media"){const e=this.createList();t:for(;!this.eof;)switch(this.tokenType){case X:case B:this.next();continue;case d:e.push(this.Identifier());break;case E:{let n=this.parseWithFallback(()=>ea[t].call(this,t),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(E);const r=this.Condition(t);return this.eat(g),r},()=>this.GeneralEnclosed(t))),e.push(n);break}case C:{let n=this.parseWithFallback(()=>this.FeatureFunction(t),()=>null);n||(n=this.GeneralEnclosed(t)),e.push(n);break}default:break t}return e.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(e),kind:t,children:e}}function bi(t){t.children.forEach(e=>{e.type==="Condition"?(this.token(E,"("),this.node(e),this.token(g,")")):this.node(e)})}const na=Object.freeze(Object.defineProperty({__proto__:null,generate:bi,name:Kl,parse:gi,structure:ta},Symbol.toStringTag,{value:"Module"})),Wn=45;function ra(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===Wn&&t.charCodeAt(e+1)===Wn}const Si=33,ia=35,sa=36,oa=38,la=42,aa=43,Vn=47;function ca(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function ua(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function ha(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==K&&this.isDelim(Si)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const fa="Declaration",pa="declaration",da={important:[Boolean,String],property:String,value:["Value","Raw"]};function vi(){const t=this.tokenStart,e=this.tokenIndex,n=ma.call(this),r=ra(n),i=r?this.parseCustomProperty:this.parseValue,s=r?ua:ca;let l=!1,c;this.skipSC(),this.eat(Y);const a=this.tokenIndex;if(r||this.skipSC(),i?c=this.parseWithFallback(ha,s):c=s.call(this,this.tokenIndex),r&&c.type==="Value"&&c.children.isEmpty){for(let o=a-this.tokenIndex;o<=0;o++)if(this.lookupType(o)===B){c.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Si)&&(l=ka.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==K&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:l,property:n,value:c}}function Ci(t){this.token(d,t.property),this.token(Y,":"),this.node(t.value),t.important&&(this.token(O,"!"),this.token(d,t.important===!0?"important":t.important))}function ma(){const t=this.tokenStart;if(this.tokenType===O)switch(this.charCodeAt(this.tokenStart)){case la:case sa:case aa:case ia:case oa:this.next();break;case Vn:this.next(),this.isDelim(Vn)&&this.next();break}return this.tokenType===R?this.eat(R):this.eat(d),this.substrToCursor(t)}function ka(){this.eat(O),this.skipSC();const t=this.consume(d);return t==="important"?!0:t}const ya=Object.freeze(Object.defineProperty({__proto__:null,generate:Ci,name:fa,parse:vi,structure:da,walkContext:pa},Symbol.toStringTag,{value:"Module"})),ga=38;function Be(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const ba="DeclarationList",Sa={children:[["Declaration","Atrule","Rule"]]};function xi(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case B:case X:case K:this.next();break;case U:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),Be));break;default:this.isDelim(ga)?t.push(this.parseWithFallback(this.Rule,Be)):t.push(this.parseWithFallback(this.Declaration,Be))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function wi(t){this.children(t,e=>{e.type==="Declaration"&&this.token(K,";")})}const va=Object.freeze(Object.defineProperty({__proto__:null,generate:wi,name:ba,parse:xi,structure:Sa},Symbol.toStringTag,{value:"Module"})),Ca="Dimension",xa={value:String,unit:String};function Li(){const t=this.tokenStart,e=this.consumeNumber(w);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function Oi(t){this.token(w,t.value+t.unit)}const wa=Object.freeze(Object.defineProperty({__proto__:null,generate:Oi,name:Ca,parse:Li,structure:xa},Symbol.toStringTag,{value:"Module"})),La=47,Oa="Feature",Ta={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function Ti(t){const e=this.tokenStart;let n,r=null;if(this.eat(E),this.skipSC(),n=this.consume(d),this.skipSC(),this.tokenType!==g){switch(this.eat(Y),this.skipSC(),this.tokenType){case v:this.lookupNonWSType(1)===O?r=this.Ratio():r=this.Number();break;case w:r=this.Dimension();break;case d:r=this.Identifier();break;case C:r=this.parseWithFallback(()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(La)&&this.error(),i},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(g),{type:"Feature",loc:this.getLocation(e,this.tokenStart),kind:t,name:n,value:r}}function Ai(t){this.token(E,"("),this.token(d,t.name),t.value!==null&&(this.token(Y,":"),this.node(t.value)),this.token(g,")")}const Aa=Object.freeze(Object.defineProperty({__proto__:null,generate:Ai,name:Oa,parse:Ti,structure:Ta},Symbol.toStringTag,{value:"Module"})),Pa="FeatureFunction",_a={kind:String,feature:String,value:["Declaration","Selector"]};function Ea(t,e){const n=(this.features[t]||{})[e];return typeof n!="function"&&this.error(`Unknown feature ${e}()`),n}function Pi(t="unknown"){const e=this.tokenStart,n=this.consumeFunctionName(),r=Ea.call(this,t,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,l=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),l},()=>this.Raw(null,!1));return this.eof||this.eat(g),{type:"FeatureFunction",loc:this.getLocation(e,this.tokenStart),kind:t,feature:n,value:i}}function _i(t){this.token(C,t.feature+"("),this.node(t.value),this.token(g,")")}const ja=Object.freeze(Object.defineProperty({__proto__:null,generate:_i,name:Pa,parse:Pi,structure:_a},Symbol.toStringTag,{value:"Module"})),Hn=47,Da=60,qn=61,Ra=62,Ia="FeatureRange",Ma={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Ue(){switch(this.skipSC(),this.tokenType){case v:return this.isDelim(Hn,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case w:return this.Dimension();case d:return this.Identifier();case C:return this.parseWithFallback(()=>{const t=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(Hn)&&this.error(),t},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function Qn(t){if(this.skipSC(),this.isDelim(Da)||this.isDelim(Ra)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(qn)?(this.next(),e+"="):e}if(this.isDelim(qn))return"=";this.error(`Expected ${t?'":", ':""}"<", ">", "=" or ")"`)}function Ei(t="unknown"){const e=this.tokenStart;this.skipSC(),this.eat(E);const n=Ue.call(this),r=Qn.call(this,n.type==="Identifier"),i=Ue.call(this);let s=null,l=null;return this.lookupNonWSType(0)!==g&&(s=Qn.call(this),l=Ue.call(this)),this.skipSC(),this.eat(g),{type:"FeatureRange",loc:this.getLocation(e,this.tokenStart),kind:t,left:n,leftComparison:r,middle:i,rightComparison:s,right:l}}function ji(t){this.token(E,"("),this.node(t.left),this.tokenize(t.leftComparison),this.node(t.middle),t.right&&(this.tokenize(t.rightComparison),this.node(t.right)),this.token(g,")")}const Na=Object.freeze(Object.defineProperty({__proto__:null,generate:ji,name:Ia,parse:Ei,structure:Ma},Symbol.toStringTag,{value:"Module"})),Fa="Function",za="function",$a={name:String,children:[[]]};function Di(t,e){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=e.hasOwnProperty(i)?e[i].call(this,e):t.call(this,e),this.eof||this.eat(g),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function Ri(t){this.token(C,t.name+"("),this.children(t),this.token(g,")")}const Ba=Object.freeze(Object.defineProperty({__proto__:null,generate:Ri,name:Fa,parse:Di,structure:$a,walkContext:za},Symbol.toStringTag,{value:"Module"})),Ua="GeneralEnclosed",Wa={kind:String,function:[String,null],children:[[]]};function Ii(t){const e=this.tokenStart;let n=null;this.tokenType===C?n=this.consumeFunctionName():this.eat(E);const r=this.parseWithFallback(()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(g),{type:"GeneralEnclosed",loc:this.getLocation(e,this.tokenStart),kind:t,function:n,children:r}}function Mi(t){t.function?this.token(C,t.function+"("):this.token(E,"("),this.children(t),this.token(g,")")}const Va=Object.freeze(Object.defineProperty({__proto__:null,generate:Mi,name:Ua,parse:Ii,structure:Wa},Symbol.toStringTag,{value:"Module"})),Ha="XXX",qa="Hash",Qa={value:String};function Ni(){const t=this.tokenStart;return this.eat(R),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function Fi(t){this.token(R,"#"+t.value)}const Ga=Object.freeze(Object.defineProperty({__proto__:null,generate:Fi,name:qa,parse:Ni,structure:Qa,xxx:Ha},Symbol.toStringTag,{value:"Module"})),Xa="Identifier",Ya={name:String};function zi(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(d)}}function $i(t){this.token(d,t.name)}const Ja=Object.freeze(Object.defineProperty({__proto__:null,generate:$i,name:Xa,parse:zi,structure:Ya},Symbol.toStringTag,{value:"Module"})),Za="IdSelector",Ka={name:String};function Bi(){const t=this.tokenStart;return this.eat(R),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function Ui(t){this.token(O,"#"+t.name)}const tc=Object.freeze(Object.defineProperty({__proto__:null,generate:Ui,name:Za,parse:Bi,structure:Ka},Symbol.toStringTag,{value:"Module"})),ec=46,nc="Layer",rc={name:String};function Wi(){let t=this.tokenStart,e=this.consume(d);for(;this.isDelim(ec);)this.eat(O),e+="."+this.consume(d);return{type:"Layer",loc:this.getLocation(t,this.tokenStart),name:e}}function Vi(t){this.tokenize(t.name)}const ic=Object.freeze(Object.defineProperty({__proto__:null,generate:Vi,name:nc,parse:Wi,structure:rc},Symbol.toStringTag,{value:"Module"})),sc="LayerList",oc={children:[["Layer"]]};function Hi(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.Layer()),this.lookupTypeNonSC(0)===ft);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(t),children:t}}function qi(t){this.children(t,()=>this.token(ft,","))}const lc=Object.freeze(Object.defineProperty({__proto__:null,generate:qi,name:sc,parse:Hi,structure:oc},Symbol.toStringTag,{value:"Module"})),ac="MediaQuery",cc={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function Qi(){const t=this.tokenStart;let e=null,n=null,r=null;if(this.skipSC(),this.tokenType===d&&this.lookupTypeNonSC(1)!==E){const i=this.consume(d),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),e=s,n=this.consume(d)):n=i,this.lookupTypeNonSC(0)){case d:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case ht:case K:case ft:case xt:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case d:case E:case C:{r=this.Condition("media");break}case ht:case K:case xt:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(t,this.tokenStart),modifier:e,mediaType:n,condition:r}}function Gi(t){t.mediaType?(t.modifier&&this.token(d,t.modifier),this.token(d,t.mediaType),t.condition&&(this.token(d,"and"),this.node(t.condition))):t.condition&&this.node(t.condition)}const uc=Object.freeze(Object.defineProperty({__proto__:null,generate:Gi,name:ac,parse:Qi,structure:cc},Symbol.toStringTag,{value:"Module"})),hc="MediaQueryList",fc={children:[["MediaQuery"]]};function Xi(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===ft);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function Yi(t){this.children(t,()=>this.token(ft,","))}const pc=Object.freeze(Object.defineProperty({__proto__:null,generate:Yi,name:hc,parse:Xi,structure:fc},Symbol.toStringTag,{value:"Module"})),dc=38,mc="NestingSelector",kc={};function Ji(){const t=this.tokenStart;return this.eatDelim(dc),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function Zi(){this.token(O,"&")}const yc=Object.freeze(Object.defineProperty({__proto__:null,generate:Zi,name:mc,parse:Ji,structure:kc},Symbol.toStringTag,{value:"Module"})),gc="Nth",bc={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Ki(){this.skipSC();const t=this.tokenStart;let e=t,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:r,selector:n}}function ts(t){this.node(t.nth),t.selector!==null&&(this.token(d,"of"),this.node(t.selector))}const Sc=Object.freeze(Object.defineProperty({__proto__:null,generate:ts,name:gc,parse:Ki,structure:bc},Symbol.toStringTag,{value:"Module"})),vc="Number",Cc={value:String};function es(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(v)}}function ns(t){this.token(v,t.value)}const xc=Object.freeze(Object.defineProperty({__proto__:null,generate:ns,name:vc,parse:es,structure:Cc},Symbol.toStringTag,{value:"Module"})),wc="Operator",Lc={value:String};function rs(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function is(t){this.tokenize(t.value)}const Oc=Object.freeze(Object.defineProperty({__proto__:null,generate:is,name:wc,parse:rs,structure:Lc},Symbol.toStringTag,{value:"Module"})),Tc="Parentheses",Ac={children:[[]]};function ss(t,e){const n=this.tokenStart;let r=null;return this.eat(E),r=t.call(this,e),this.eof||this.eat(g),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function os(t){this.token(E,"("),this.children(t),this.token(g,")")}const Pc=Object.freeze(Object.defineProperty({__proto__:null,generate:os,name:Tc,parse:ss,structure:Ac},Symbol.toStringTag,{value:"Module"})),_c="Percentage",Ec={value:String};function ls(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(F)}}function as(t){this.token(F,t.value+"%")}const jc=Object.freeze(Object.defineProperty({__proto__:null,generate:as,name:_c,parse:ls,structure:Ec},Symbol.toStringTag,{value:"Module"})),Dc="PseudoClassSelector",Rc="function",Ic={name:String,children:[["Raw"],null]};function cs(){const t=this.tokenStart;let e=null,n,r;return this.eat(Y),this.tokenType===C?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==g?e=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),e=this.pseudo[r].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(g)):n=this.consume(d),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function us(t){this.token(Y,":"),t.children===null?this.token(d,t.name):(this.token(C,t.name+"("),this.children(t),this.token(g,")"))}const Mc=Object.freeze(Object.defineProperty({__proto__:null,generate:us,name:Dc,parse:cs,structure:Ic,walkContext:Rc},Symbol.toStringTag,{value:"Module"})),Nc="PseudoElementSelector",Fc="function",zc={name:String,children:[["Raw"],null]};function hs(){const t=this.tokenStart;let e=null,n,r;return this.eat(Y),this.eat(Y),this.tokenType===C?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==g?e=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),e=this.pseudo[r].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(null,!1))),this.eat(g)):n=this.consume(d),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function fs(t){this.token(Y,":"),this.token(Y,":"),t.children===null?this.token(d,t.name):(this.token(C,t.name+"("),this.children(t),this.token(g,")"))}const $c=Object.freeze(Object.defineProperty({__proto__:null,generate:fs,name:Nc,parse:hs,structure:zc,walkContext:Fc},Symbol.toStringTag,{value:"Module"})),Gn=47;function Xn(){switch(this.skipSC(),this.tokenType){case v:return this.Number();case C:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const Bc="Ratio",Uc={left:["Number","Function"],right:["Number","Function",null]};function ps(){const t=this.tokenStart,e=Xn.call(this);let n=null;return this.skipSC(),this.isDelim(Gn)&&(this.eatDelim(Gn),n=Xn.call(this)),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function ds(t){this.node(t.left),this.token(O,"/"),t.right?this.node(t.right):this.node(v,1)}const Wc=Object.freeze(Object.defineProperty({__proto__:null,generate:ds,name:Bc,parse:ps,structure:Uc},Symbol.toStringTag,{value:"Module"}));function Vc(){return this.tokenIndex>0&&this.lookupType(-1)===B?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Hc="Raw",qc={value:String};function ms(t,e){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,t||this.consumeUntilBalanceEnd),e&&this.tokenStart>n?r=Vc.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function ks(t){this.tokenize(t.value)}const Qc=Object.freeze(Object.defineProperty({__proto__:null,generate:ks,name:Hc,parse:ms,structure:qc},Symbol.toStringTag,{value:"Module"}));function Yn(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function Gc(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==ht&&this.error(),t}const Xc="Rule",Yc="rule",Jc={prelude:["SelectorList","Raw"],block:["Block"]};function ys(){const t=this.tokenIndex,e=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(Gc,Yn):n=Yn.call(this,t),r=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:r}}function gs(t){this.node(t.prelude),this.node(t.block)}const Zc=Object.freeze(Object.defineProperty({__proto__:null,generate:gs,name:Xc,parse:ys,structure:Jc,walkContext:Yc},Symbol.toStringTag,{value:"Module"})),Kc="Scope",tu={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function bs(){let t=null,e=null;this.skipSC();const n=this.tokenStart;return this.tokenType===E&&(this.next(),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(g)),this.lookupNonWSType(0)===d&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(E),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(g)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:t,limit:e}}function Ss(t){t.root&&(this.token(E,"("),this.node(t.root),this.token(g,")")),t.limit&&(this.token(d,"to"),this.token(E,"("),this.node(t.limit),this.token(g,")"))}const eu=Object.freeze(Object.defineProperty({__proto__:null,generate:Ss,name:Kc,parse:bs,structure:tu},Symbol.toStringTag,{value:"Module"})),nu="Selector",ru={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function vs(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function Cs(t){this.children(t)}const iu=Object.freeze(Object.defineProperty({__proto__:null,generate:Cs,name:nu,parse:vs,structure:ru},Symbol.toStringTag,{value:"Module"})),su="SelectorList",ou="selector",lu={children:[["Selector","Raw"]]};function xs(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===ft){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function ws(t){this.children(t,()=>this.token(ft,","))}const au=Object.freeze(Object.defineProperty({__proto__:null,generate:ws,name:su,parse:xs,structure:lu,walkContext:ou},Symbol.toStringTag,{value:"Module"})),on=92,Ls=34,cu=39;function Os(t){const e=t.length,n=t.charCodeAt(0),r=n===Ls||n===cu?1:0,i=r===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let s="";for(let l=r;l<=i;l++){let c=t.charCodeAt(l);if(c===on){if(l===i){l!==e-1&&(s=t.substr(l+1));break}if(c=t.charCodeAt(++l),yt(on,c)){const a=l-1,o=Xt(t,a);l=o-1,s+=Hr(t.substring(a+1,o))}else c===13&&t.charCodeAt(l+1)===10&&l++}else s+=t[l]}return s}function uu(t,e){const n='"',r=Ls;let i="",s=!1;for(let l=0;l<t.length;l++){const c=t.charCodeAt(l);if(c===0){i+="�";continue}if(c<=31||c===127){i+="\\"+c.toString(16),s=!0;continue}c===r||c===on?(i+="\\"+t.charAt(l),s=!1):(s&&(Gt(c)||Rt(c))&&(i+=" "),i+=t.charAt(l),s=!1)}return n+i+n}const hu="String",fu={value:String};function Ts(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Os(this.consume(vt))}}function As(t){this.token(vt,uu(t.value))}const pu=Object.freeze(Object.defineProperty({__proto__:null,generate:As,name:hu,parse:Ts,structure:fu},Symbol.toStringTag,{value:"Module"})),du=33;function Jn(){return this.Raw(null,!1)}const mu="StyleSheet",ku="stylesheet",yu={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Ps(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case B:this.next();continue;case X:if(this.charCodeAt(this.tokenStart+2)!==du){this.next();continue}n=this.Comment();break;case je:n=this.CDO();break;case tt:n=this.CDC();break;case U:n=this.parseWithFallback(this.Atrule,Jn);break;default:n=this.parseWithFallback(this.Rule,Jn)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function _s(t){this.children(t)}const gu=Object.freeze(Object.defineProperty({__proto__:null,generate:_s,name:mu,parse:Ps,structure:yu,walkContext:ku},Symbol.toStringTag,{value:"Module"})),bu="SupportsDeclaration",Su={declaration:"Declaration"};function Es(){const t=this.tokenStart;this.eat(E),this.skipSC();const e=this.Declaration();return this.eof||this.eat(g),{type:"SupportsDeclaration",loc:this.getLocation(t,this.tokenStart),declaration:e}}function js(t){this.token(E,"("),this.node(t.declaration),this.token(g,")")}const vu=Object.freeze(Object.defineProperty({__proto__:null,generate:js,name:bu,parse:Es,structure:Su},Symbol.toStringTag,{value:"Module"})),Cu=42,Zn=124;function We(){this.tokenType!==d&&this.isDelim(Cu)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const xu="TypeSelector",wu={name:String};function Ds(){const t=this.tokenStart;return this.isDelim(Zn)?(this.next(),We.call(this)):(We.call(this),this.isDelim(Zn)&&(this.next(),We.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function Rs(t){this.tokenize(t.name)}const Lu=Object.freeze(Object.defineProperty({__proto__:null,generate:Rs,name:xu,parse:Ds,structure:wu},Symbol.toStringTag,{value:"Module"})),Is=43,Ms=45,ln=63;function te(t,e){let n=0;for(let r=this.tokenStart+t;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===Ms&&e&&n!==0)return te.call(this,t+n+1,!1),-1;Gt(i)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function pe(t){let e=0;for(;this.isDelim(ln);)++e>t&&this.error("Too many question marks"),this.next()}function Ou(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===Is?"Plus sign":"Hyphen minus")+" is expected")}function Tu(){let t=0;switch(this.tokenType){case v:if(t=te.call(this,1,!0),this.isDelim(ln)){pe.call(this,6-t);break}if(this.tokenType===w||this.tokenType===v){Ou.call(this,Ms),te.call(this,1,!1);break}break;case w:t=te.call(this,1,!0),t>0&&pe.call(this,6-t);break;default:if(this.eatDelim(Is),this.tokenType===d){t=te.call(this,0,!0),t>0&&pe.call(this,6-t);break}if(this.isDelim(ln)){this.next(),pe.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Au="UnicodeRange",Pu={value:String};function Ns(){const t=this.tokenStart;return this.eatIdent("u"),Tu.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function Fs(t){this.tokenize(t.value)}const _u=Object.freeze(Object.defineProperty({__proto__:null,generate:Fs,name:Au,parse:Ns,structure:Pu},Symbol.toStringTag,{value:"Module"})),Eu=32,an=92,ju=34,Du=39,Ru=40,zs=41;function Iu(t){const e=t.length;let n=4,r=t.charCodeAt(e-1)===zs?e-2:e-1,i="";for(;n<r&&Rt(t.charCodeAt(n));)n++;for(;n<r&&Rt(t.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let l=t.charCodeAt(s);if(l===an){if(s===r){s!==e-1&&(i=t.substr(s+1));break}if(l=t.charCodeAt(++s),yt(an,l)){const c=s-1,a=Xt(t,c);s=a-1,i+=Hr(t.substring(c+1,a))}else l===13&&t.charCodeAt(s+1)===10&&s++}else i+=t[s]}return i}function Mu(t){let e="",n=!1;for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(i===0){e+="�";continue}if(i<=31||i===127){e+="\\"+i.toString(16),n=!0;continue}i===Eu||i===an||i===ju||i===Du||i===Ru||i===zs?(e+="\\"+t.charAt(r),n=!1):(n&&Gt(i)&&(e+=" "),e+=t.charAt(r),n=!1)}return"url("+e+")"}const Nu="Url",Fu={value:String};function $s(){const t=this.tokenStart;let e;switch(this.tokenType){case G:e=Iu(this.consume(G));break;case C:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(C),this.skipSC(),e=Os(this.consume(vt)),this.skipSC(),this.eof||this.eat(g);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function Bs(t){this.token(G,Mu(t.value))}const zu=Object.freeze(Object.defineProperty({__proto__:null,generate:Bs,name:Nu,parse:$s,structure:Fu},Symbol.toStringTag,{value:"Module"})),$u="Value",Bu={children:[[]]};function Us(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function Ws(t){this.children(t)}const Uu=Object.freeze(Object.defineProperty({__proto__:null,generate:Ws,name:$u,parse:Us,structure:Bu},Symbol.toStringTag,{value:"Module"})),Wu=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Vu="WhiteSpace",Hu={value:String};function Vs(){return this.eat(B),Wu}function Hs(t){this.token(B,t.value)}const qu=Object.freeze(Object.defineProperty({__proto__:null,generate:Hs,name:Vu,parse:Vs,structure:Hu},Symbol.toStringTag,{value:"Module"})),Qu=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:il,Atrule:cl,AtrulePrelude:pl,AttributeSelector:vl,Block:Tl,Brackets:_l,CDC:Dl,CDO:Ml,ClassSelector:$l,Combinator:ql,Comment:Jl,Condition:na,Declaration:ya,DeclarationList:va,Dimension:wa,Feature:Aa,FeatureFunction:ja,FeatureRange:Na,Function:Ba,GeneralEnclosed:Va,Hash:Ga,IdSelector:tc,Identifier:Ja,Layer:ic,LayerList:lc,MediaQuery:uc,MediaQueryList:pc,NestingSelector:yc,Nth:Sc,Number:xc,Operator:Oc,Parentheses:Pc,Percentage:jc,PseudoClassSelector:Mc,PseudoElementSelector:$c,Ratio:Wc,Raw:Qc,Rule:Zc,Scope:eu,Selector:iu,SelectorList:au,String:pu,StyleSheet:gu,SupportsDeclaration:vu,TypeSelector:Lu,UnicodeRange:_u,Url:zu,Value:Uu,WhiteSpace:qu},Symbol.toStringTag,{value:"Module"})),Gu={node:Qu},wt=Uo(Gu),vn=["left","right","top","bottom","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","inset-block","inset-inline","inset"];function le(t){return vn.includes(t)}const Cn=["margin-block-start","margin-block-end","margin-block","margin-inline-start","margin-inline-end","margin-inline","margin-bottom","margin-left","margin-right","margin-top","margin"];function Xu(t){return Cn.includes(t)}const xn=["width","height","min-width","min-height","max-width","max-height","block-size","inline-size","min-block-size","min-inline-size","max-block-size","max-inline-size"];function qs(t){return xn.includes(t)}const Qs=["justify-self","align-self","place-self"];function Yu(t){return Qs.includes(t)}const Gs=[...vn,...Cn,...xn,...Qs,"position-anchor","position-area"],Ju=[...xn,...vn,...Cn];function Xs(t){return Ju.includes(t)}const Zu=["top","left","right","bottom","start","end","self-start","self-end","center","inside","outside"];function Ys(t){return Zu.includes(t)}const Ku=["width","height","block","inline","self-block","self-inline"];function th(t){return Ku.includes(t)}const Kn=new Set(["Atrule","Selector","Declaration"]);function eh(t){const e=new SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let l=1,c=0,a=!1;const o=t.node;t.node=function(f){if(f.loc&&f.loc.start&&Kn.has(f.type)){const m=f.loc.start.line,p=f.loc.start.column-1;(r.line!==m||r.column!==p)&&(r.line=m,r.column=p,n.line=l,n.column=c,a&&(a=!1,(n.line!==i.line||n.column!==i.column)&&e.addMapping(s)),a=!0,e.addMapping({source:f.loc.source,original:r,generated:n}))}o.call(this,f),a&&Kn.has(f.type)&&(i.line=l,i.column=c)};const u=t.emit;t.emit=function(f,m,p){for(let k=0;k<f.length;k++)f.charCodeAt(k)===10?(l++,c=0):c++;u(f,m,p)};const h=t.result;return t.result=function(){return a&&e.addMapping(s),{css:h(),map:e}},t}const nh=43,rh=45,Ve=(t,e)=>{if(t===O&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},Js=[[d,d],[d,C],[d,G],[d,lt],[d,"-"],[d,v],[d,F],[d,w],[d,tt],[d,E],[U,d],[U,C],[U,G],[U,lt],[U,"-"],[U,v],[U,F],[U,w],[U,tt],[R,d],[R,C],[R,G],[R,lt],[R,"-"],[R,v],[R,F],[R,w],[R,tt],[w,d],[w,C],[w,G],[w,lt],[w,"-"],[w,v],[w,F],[w,w],[w,tt],["#",d],["#",C],["#",G],["#",lt],["#","-"],["#",v],["#",F],["#",w],["#",tt],["-",d],["-",C],["-",G],["-",lt],["-","-"],["-",v],["-",F],["-",w],["-",tt],[v,d],[v,C],[v,G],[v,lt],[v,v],[v,F],[v,w],[v,"%"],[v,tt],["@",d],["@",C],["@",G],["@",lt],["@","-"],["@",tt],[".",v],[".",F],[".",w],["+",v],["+",F],["+",w],["/","*"]],ih=Js.concat([[d,R],[w,R],[R,R],[U,E],[U,vt],[U,Y],[F,F],[F,w],[F,C],[F,"-"],[g,d],[g,C],[g,F],[g,w],[g,R],[g,"-"]]);function Zs(t){const e=new Set(t.map(([n,r])=>Ve(n)<<16|Ve(r)));return function(n,r,i){const s=Ve(r,i),l=i.charCodeAt(0);return(l===rh&&r!==d&&r!==C&&r!==tt||l===nh?e.has(n<<16|l<<8):e.has(n<<16|s))&&this.emit(" ",B,!0),s}}const sh=Zs(Js),Ks=Zs(ih),tr=Object.freeze(Object.defineProperty({__proto__:null,safe:Ks,spec:sh},Symbol.toStringTag,{value:"Module"})),oh=92;function lh(t,e){if(typeof e=="function"){let n=null;t.children.forEach(r=>{n!==null&&e.call(this,n),this.node(r),n=r});return}t.children.forEach(this.node,this)}function ah(t){Qr(t,(e,n,r)=>{this.token(e,t.slice(n,r))})}function ch(t){const e=new Map;for(let[n,r]of Object.entries(t.node))typeof(r.generate||r)=="function"&&e.set(n,r.generate||r);return function(n,r){let i="",s=0,l={node(a){if(e.has(a.type))e.get(a.type).call(c,a);else throw new Error("Unknown node type: "+a.type)},tokenBefore:Ks,token(a,o){s=this.tokenBefore(s,a,o),this.emit(o,a,!1),a===O&&o.charCodeAt(0)===oh&&this.emit(`
|
|
2
|
+
`,B,!0)},emit(a){i+=a},result(){return i}};r&&(typeof r.decorator=="function"&&(l=r.decorator(l)),r.sourceMap&&(l=eh(l)),r.mode in tr&&(l.tokenBefore=tr[r.mode]));const c={node:a=>l.node(a),children:lh,token:(a,o)=>l.token(a,o),tokenize:ah};return l.node(n),l.result()}}const uh=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Xr,Atrule:Jr,AtrulePrelude:Kr,AttributeSelector:ni,Block:si,Brackets:li,CDC:ci,CDO:hi,ClassSelector:pi,Combinator:mi,Comment:yi,Condition:bi,Declaration:Ci,DeclarationList:wi,Dimension:Oi,Feature:Ai,FeatureFunction:_i,FeatureRange:ji,Function:Ri,GeneralEnclosed:Mi,Hash:Fi,IdSelector:Ui,Identifier:$i,Layer:Vi,LayerList:qi,MediaQuery:Gi,MediaQueryList:Yi,NestingSelector:Zi,Nth:ts,Number:ns,Operator:is,Parentheses:os,Percentage:as,PseudoClassSelector:us,PseudoElementSelector:fs,Ratio:ds,Raw:ks,Rule:gs,Scope:Ss,Selector:Cs,SelectorList:ws,String:As,StyleSheet:_s,SupportsDeclaration:js,TypeSelector:Rs,UnicodeRange:Fs,Url:Bs,Value:Ws,WhiteSpace:Hs},Symbol.toStringTag,{value:"Module"})),hh={node:uh},fh=ch(hh);let Bt=null;class Q{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return Q.createItem(e)}allocateCursor(e,n){let r;return Bt!==null?(r=Bt,Bt=Bt.cursor,r.prev=e,r.next=n,r.cursor=this.cursor):r={prev:e,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Bt,Bt=e}updateCursors(e,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===e&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let r of e){const i=Q.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,e.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(e,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,e.call(n,i.data,i,this)}this.releaseCursor()}reduce(e,n,r=this){let i=this.allocateCursor(null,this.head),s=n,l;for(;i.next!==null;)l=i.next,i.next=l.next,s=e.call(r,s,l.data,l,this);return this.releaseCursor(),s}reduceRight(e,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,l;for(;i.prev!==null;)l=i.prev,i.prev=l.prev,s=e.call(r,s,l.data,l,this);return this.releaseCursor(),s}some(e,n=this){for(let r=this.head;r!==null;r=r.next)if(e.call(n,r.data,r,this))return!0;return!1}map(e,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)r.appendData(e.call(n,i.data,i,this));return r}filter(e,n=this){const r=new Q;for(let i=this.head;i!==null;i=i.next)e.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(e,n,r=this){if(e===null)return;const i=this.allocateCursor(null,e);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(e,n,r=this){if(e===null)return;const i=this.allocateCursor(e,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Q;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(Q.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Q.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(Q.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(Q.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(Q.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}function ph(t,e){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
|
|
3
|
+
`)}})}const He=100,er=60,nr=" ";function rr({source:t,line:e,column:n,baseLine:r,baseColumn:i},s){function l(p,k){return o.slice(p,k).map((b,y)=>String(p+y+1).padStart(f)+" |"+b).join(`
|
|
4
|
+
`)}const c=`
|
|
5
|
+
`.repeat(Math.max(r-1,0)),a=" ".repeat(Math.max(i-1,0)),o=(c+a+t).split(/\r\n?|\n|\f/),u=Math.max(1,e-s)-1,h=Math.min(e+s,o.length+1),f=Math.max(4,String(h).length)+1;let m=0;n+=(nr.length-1)*(o[e-1].substr(0,n-1).match(/\t/g)||[]).length,n>He&&(m=n-er+3,n=er-2);for(let p=u;p<=h;p++)p>=0&&p<o.length&&(o[p]=o[p].replace(/\t/g,nr),o[p]=(m>0&&o[p].length>m?"…":"")+o[p].substr(m,He-2)+(o[p].length>m+He-1?"…":""));return[l(u,e),new Array(n+f+2).join("-")+"^",l(e,h)].filter(Boolean).join(`
|
|
6
|
+
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function ir(t,e,n,r,i,s=1,l=1){return Object.assign(ph("SyntaxError",t),{source:e,offset:n,line:r,column:i,sourceFragment(c){return rr({source:e,line:r,column:i,baseLine:s,baseColumn:l},isNaN(c)?0:c)},get formattedMessage(){return`Parse error: ${t}
|
|
7
|
+
`+rr({source:e,line:r,column:i,baseLine:s,baseColumn:l},2)}})}function dh(t){const e=this.createList();let n=!1;const r={recognizer:t};for(;!this.eof;){switch(this.tokenType){case X:this.next();continue;case B:n=!0,this.next();continue}let i=t.getNode.call(this,r);if(i===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,i,e,r),n=!1),e.push(i)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,r),e}const sr=()=>{},mh=33,kh=35,qe=59,or=123,lr=0;function yh(t){return function(){return this[t]()}}function Qe(t){const e=Object.create(null);for(const n of Object.keys(t)){const r=t[n],i=r.parse||r;i&&(e[n]=i)}return e}function gh(t){const e={context:Object.create(null),features:Object.assign(Object.create(null),t.features),scope:Object.assign(Object.create(null),t.scope),atrule:Qe(t.atrule),pseudo:Qe(t.pseudo),node:Qe(t.node)};for(const[n,r]of Object.entries(t.parseContext))switch(typeof r){case"function":e.context[n]=r;break;case"string":e.context[n]=yh(r);break}return V(V({config:e},e),e.node)}function bh(t){let e="",n="<unknown>",r=!1,i=sr,s=!1;const l=new Ko,c=Object.assign(new tl,gh(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:dh,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(a){return a===or?1:0},consumeUntilLeftCurlyBracketOrSemicolon(a){return a===or||a===qe?1:0},consumeUntilExclamationMarkOrSemicolon(a){return a===mh||a===qe?1:0},consumeUntilSemicolonIncluded(a){return a===qe?2:0},createList(){return new Q},createSingleNodeList(a){return new Q().appendData(a)},getFirstListNode(a){return a&&a.first},getLastListNode(a){return a&&a.last},parseWithFallback(a,o){const u=this.tokenIndex;try{return a.call(this)}catch(h){if(s)throw h;this.skip(u-this.tokenIndex);const f=o.call(this);return s=!0,i(h,f),s=!1,f}},lookupNonWSType(a){let o;do if(o=this.lookupType(a++),o!==B&&o!==X)return o;while(o!==lr);return lr},charCodeAt(a){return a>=0&&a<e.length?e.charCodeAt(a):0},substring(a,o){return e.substring(a,o)},substrToCursor(a){return this.source.substring(a,this.tokenStart)},cmpChar(a,o){return Wr(e,a,o)},cmpStr(a,o,u){return Le(e,a,o,u)},consume(a){const o=this.tokenStart;return this.eat(a),this.substrToCursor(o)},consumeFunctionName(){const a=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(C),a},consumeNumber(a){const o=e.substring(this.tokenStart,Vr(e,this.tokenStart));return this.eat(a),o},eat(a){if(this.tokenType!==a){const o=qr[a].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase());let u=`${/[[\](){}]/.test(o)?`"${o}"`:o} is expected`,h=this.tokenStart;switch(a){case d:this.tokenType===C||this.tokenType===G?(h=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case R:this.isDelim(kh)&&(this.next(),h++,u="Name is expected");break;case F:this.tokenType===v&&(h=this.tokenEnd,u="Percent sign is expected");break}this.error(u,h)}this.next()},eatIdent(a){(this.tokenType!==d||this.lookupValue(0,a)===!1)&&this.error(`Identifier "${a}" is expected`),this.next()},eatDelim(a){this.isDelim(a)||this.error(`Delim "${String.fromCharCode(a)}" is expected`),this.next()},getLocation(a,o){return r?l.getLocationRange(a,o,n):null},getLocationFromList(a){if(r){const o=this.getFirstListNode(a),u=this.getLastListNode(a);return l.getLocationRange(o!==null?o.loc.start.offset-l.startOffset:this.tokenStart,u!==null?u.loc.end.offset-l.startOffset:this.tokenStart,n)}return null},error(a,o){const u=typeof o<"u"&&o<e.length?l.getLocation(o):this.eof?l.getLocation(Yo(e,e.length-1)):l.getLocation(this.tokenStart);throw new ir(a||"Unexpected input",e,u.offset,u.line,u.column,l.startLine,l.startColumn)}});return Object.assign(function(a,o){e=a,o=o||{},c.setSource(e,Qr),l.setSource(e,o.offset,o.line,o.column),n=o.filename||"<unknown>",r=!!o.positions,i=typeof o.onParseError=="function"?o.onParseError:sr,s=!1,c.parseAtrulePrelude="parseAtrulePrelude"in o?!!o.parseAtrulePrelude:!0,c.parseRulePrelude="parseRulePrelude"in o?!!o.parseRulePrelude:!0,c.parseValue="parseValue"in o?!!o.parseValue:!0,c.parseCustomProperty="parseCustomProperty"in o?!!o.parseCustomProperty:!1;const{context:u="default",onComment:h}=o;if(!(u in c.context))throw new Error("Unknown context `"+u+"`");typeof h=="function"&&c.forEachToken((m,p,k)=>{if(m===X){const b=c.getLocation(p,k),y=Le(e,k-2,k,"*/")?e.slice(p+2,k-2):e.slice(p+2,k);h(y,b)}});const f=c.context[u].call(c,o);return c.eof||c.error(),f},{SyntaxError:ir,config:c.config})}const Sh=35,vh=42,ar=43,Ch=45,xh=47,wh=117;function to(t){switch(this.tokenType){case R:return this.Hash();case ft:return this.Operator();case E:return this.Parentheses(this.readSequence,t.recognizer);case Zt:return this.Brackets(this.readSequence,t.recognizer);case vt:return this.String();case w:return this.Dimension();case F:return this.Percentage();case v:return this.Number();case C:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case G:return this.Url();case d:return this.cmpChar(this.tokenStart,wh)&&this.cmpChar(this.tokenStart+1,ar)?this.UnicodeRange():this.Identifier();case O:{const e=this.charCodeAt(this.tokenStart);if(e===xh||e===vh||e===ar||e===Ch)return this.Operator();e===Sh&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const Lh={getNode:to},Oh=35,Th=38,Ah=42,Ph=43,_h=47,cr=46,Eh=62,jh=124,Dh=126;function Rh(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function Ih(){switch(this.tokenType){case Zt:return this.AttributeSelector();case R:return this.IdSelector();case Y:return this.lookupType(1)===Y?this.PseudoElementSelector():this.PseudoClassSelector();case d:return this.TypeSelector();case v:case F:return this.Percentage();case w:this.charCodeAt(this.tokenStart)===cr&&this.error("Identifier is expected",this.tokenStart+1);break;case O:{switch(this.charCodeAt(this.tokenStart)){case Ph:case Eh:case Dh:case _h:return this.Combinator();case cr:return this.ClassSelector();case Ah:case jh:return this.TypeSelector();case Oh:return this.IdSelector();case Th:return this.NestingSelector()}break}}}const Mh={onWhiteSpace:Rh,getNode:Ih};function Nh(){return this.createSingleNodeList(this.Raw(null,!1))}function Fh(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===ft){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=e-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===B){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}function ur(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const zh={getNode:to,onWhiteSpace(t,e){ur(t)&&(t.value=" "+t.value),ur(e.last)&&(e.last.value+=" ")},expression:Nh,var:Fh},$h=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:Lh,Selector:Mh,Value:zh},Symbol.toStringTag,{value:"Module"})),Bh=new Set(["none","and","not","or"]),Uh={parse:{prelude(){const t=this.createList();if(this.tokenType===d){const e=this.substring(this.tokenStart,this.tokenEnd);Bh.has(e.toLowerCase())||t.push(this.Identifier())}return t.push(this.Condition("container")),t},block(t=!1){return this.Block(t)}}},Wh={parse:{prelude:null,block(){return this.Block(!0)}}};function Ge(t,e){return this.parseWithFallback(()=>{try{return t.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==g&&this.error()}},e||(()=>this.Raw(null,!0)))}const hr={layer(){this.skipSC();const t=this.createList(),e=Ge.call(this,this.Layer);return(e.type!=="Raw"||e.value!=="")&&t.push(e),t},supports(){this.skipSC();const t=this.createList(),e=Ge.call(this,this.Declaration,()=>Ge.call(this,()=>this.Condition("supports")));return(e.type!=="Raw"||e.value!=="")&&t.push(e),t}},Vh={parse:{prelude(){const t=this.createList();switch(this.tokenType){case vt:t.push(this.String());break;case G:case C:t.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===d&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?t.push(this.Identifier()):this.tokenType===C&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&t.push(this.Function(null,hr)),this.skipSC(),this.tokenType===C&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&t.push(this.Function(null,hr)),(this.lookupNonWSType(0)===d||this.lookupNonWSType(0)===E)&&t.push(this.MediaQueryList()),t},block:null}},Hh={parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},qh={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(t=!1){return this.Block(t)}}},Qh={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Gh={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},Xh={parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(t=!1){return this.Block(t)}}},Yh={parse:{prelude:null,block(t=!1){return this.Block(t)}}},Jh={parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(t=!1){return this.Block(t)}}},Zh={container:Uh,"font-face":Wh,import:Vh,layer:Hh,media:qh,nest:Qh,page:Gh,scope:Xh,"starting-style":Yh,supports:Jh};function Kh(){const t=this.createList();this.skipSC();t:for(;!this.eof;){switch(this.tokenType){case d:t.push(this.Identifier());break;case vt:t.push(this.String());break;case ft:t.push(this.Operator());break;case g:break t;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return t}const At={parse(){return this.createSingleNodeList(this.SelectorList())}},Xe={parse(){return this.createSingleNodeList(this.Selector())}},tf={parse(){return this.createSingleNodeList(this.Identifier())}},ef={parse:Kh},de={parse(){return this.createSingleNodeList(this.Nth())}},nf={dir:tf,has:At,lang:ef,matches:At,is:At,"-moz-any":At,"-webkit-any":At,where:At,not:At,"nth-child":de,"nth-last-child":de,"nth-last-of-type":de,"nth-of-type":de,slotted:Xe,host:Xe,"host-context":Xe},rf=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Gr,Atrule:Yr,AtrulePrelude:Zr,AttributeSelector:ei,Block:ii,Brackets:oi,CDC:ai,CDO:ui,ClassSelector:fi,Combinator:di,Comment:ki,Condition:gi,Declaration:vi,DeclarationList:xi,Dimension:Li,Feature:Ti,FeatureFunction:Pi,FeatureRange:Ei,Function:Di,GeneralEnclosed:Ii,Hash:Ni,IdSelector:Bi,Identifier:zi,Layer:Wi,LayerList:Hi,MediaQuery:Qi,MediaQueryList:Xi,NestingSelector:Ji,Nth:Ki,Number:es,Operator:rs,Parentheses:ss,Percentage:ls,PseudoClassSelector:cs,PseudoElementSelector:hs,Ratio:ps,Raw:ms,Rule:ys,Scope:bs,Selector:vs,SelectorList:xs,String:Ts,StyleSheet:Ps,SupportsDeclaration:Es,TypeSelector:Ds,UnicodeRange:Ns,Url:$s,Value:Us,WhiteSpace:Vs},Symbol.toStringTag,{value:"Module"})),sf={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(t){return this.Condition(t.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:$h,atrule:Zh,pseudo:nf,node:rf},of=bh(sf);function Te(t){const e={};for(const n of Object.keys(t)){let r=t[n];r&&(Array.isArray(r)||r instanceof Q?r=r.map(Te):r.constructor===Object&&(r=Te(r))),e[n]=r}return e}let lf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",at=(t=21)=>{let e="",n=t|0;for(;n--;)e+=lf[Math.random()*64|0];return e};const eo=at(),ee=new Set;function Ae(t){return!!(t&&t.type==="Function"&&t.name==="anchor")}function Lt(t,e=!1){return of(t,{parseAtrulePrelude:!1,parseCustomProperty:!0,onParseError:n=>{e&&ee.add(n)}})}function Z(t){return fh(t,{mode:"spec"})}function af(t){return t.type==="Declaration"}function cf(t){return t.toArray().reduce((e,n)=>n.type==="Operator"&&n.value===","?(e.push([]),e):(n.type==="Identifier"&&e[e.length-1].push(n),e),[[]])}function cn(t){return t?t.children.map(e=>{var n;let r;((n=e.children.last)==null?void 0:n.type)==="PseudoElementSelector"&&(e=Te(e),r=Z(e.children.last),e.children.pop());const i=Z(e);return{selector:i+(r??""),elementPart:i,pseudoElementPart:r}}).toArray():[]}function uf(){ee.size>0&&(console.group(`The CSS anchor positioning polyfill was not applied due to ${ee.size===1?"a CSS parse error":"CSS parse errors"}.`),ee.forEach(t=>{console.warn(t.formattedMessage)}),console.groupEnd())}function hf(){ee.clear()}const un=[...Gs,"anchor-scope","anchor-name"].reduce((t,e)=>(t[e]=`--${e}-${eo}`,t),{});function ff(t,e){return af(t)&&un[t.property]&&e?(e.children.appendData(J(V({},t),{property:un[t.property]})),{updated:!0}):{}}function pf(t){for(const e of t){let n=!1;const r=Lt(e.css,!0);wt(r,{visit:"Declaration",enter(i){var s;const l=(s=this.rule)==null?void 0:s.block,{updated:c}=ff(i,l);c&&(n=!0)}}),n&&(e.css=Z(r),e.changed=!0)}return t.some(e=>e.changed===!0)}var no=(t=>(t.All="all",t.None="none",t))(no||{});function ot(t,e){var n;return e=(n=un[e])!=null?n:e,(t instanceof HTMLElement?getComputedStyle(t):t.computedStyle).getPropertyValue(e).trim()}function Yt(t,e,n){return ot(t,e)===n}function df(t,{selector:e,pseudoElementPart:n}){const r=getComputedStyle(t,n),i=document.createElement("div"),s=document.createElement("style");i.id=`fake-pseudo-element-${at()}`;for(const c of Array.from(r)){const a=r.getPropertyValue(c);i.style.setProperty(c,a)}s.textContent+=`#${i.id}${n} { content: ${r.content}; }`,s.textContent+=`${e} { display: none !important; }`,document.head.append(s);const l=n==="::before"?"afterbegin":"beforeend";return t.insertAdjacentElement(l,i),{fakePseudoElement:i,sheet:s,computedStyle:r}}function mf(t){let e=t;for(;e;){if(Yt(e,"overflow","scroll"))return e;e=e.parentElement}return e}function kf(t){let e=mf(t);return e===document.documentElement&&(e=null),e??{scrollTop:0,scrollLeft:0}}function yf(t){const{elementPart:e,pseudoElementPart:n}=t,r=[];if(n&&!(n==="::before"||n==="::after"))return r;const i=Array.from(document.querySelectorAll(e));if(!n)return r.push(...i),r;for(const s of i){const{fakePseudoElement:l,sheet:c,computedStyle:a}=df(s,t),o=l.getBoundingClientRect(),{scrollY:u,scrollX:h}=globalThis,f=kf(s);r.push({fakePseudoElement:l,computedStyle:a,removeFakePseudoElement(){l.remove(),c.remove()},contextElement:s,getBoundingClientRect(){const{scrollY:m,scrollX:p}=globalThis,{scrollTop:k,scrollLeft:b}=f;return DOMRect.fromRect({y:o.y+(u-m)+(f.scrollTop-k),x:o.x+(h-p)+(f.scrollLeft-b),width:o.width,height:o.height})}})}return r}function gf(t,e){const n=ot(t,"anchor-name");return e?n.split(",").map(r=>r.trim()).includes(e):!n}function bf(t,e){const n=ot(t,"anchor-scope");return n===e||n==="all"}const wn=t=>_(null,null,function*(){var e,n,r;let i=yield(e=nt.getOffsetParent)==null?void 0:e.call(nt,t);return(yield(n=nt.isElement)==null?void 0:n.call(nt,i))||(i=(yield(r=nt.getDocumentElement)==null?void 0:r.call(nt,t))||window.document.documentElement),i}),fr="InvalidMimeType";function Sf(t){return!!((t.type==="text/css"||t.rel==="stylesheet")&&t.href)}function vf(t){const e=new URL(t.href,document.baseURI);if(Sf(t)&&e.origin===location.origin)return e}function Cf(t){return _(this,null,function*(){return(yield Promise.all(t.map(e=>_(null,null,function*(){var n;if(!e.url)return e;if((n=e.el)!=null&&n.disabled)return null;try{const r=yield fetch(e.url.toString()),i=r.headers.get("content-type");if(!(i!=null&&i.startsWith("text/css"))){const l=new Error(`Error loading ${e.url}: expected content-type "text/css", got "${i}".`);throw l.name=fr,l}const s=yield r.text();return J(V({},e),{css:s})}catch(r){if(r instanceof Error&&r.name===fr)return console.warn(r),null;throw r}})))).filter(e=>e!==null)})}const pr='[style*="anchor"]',dr='[style*="position-area"]';function xf(t){const e=t?t.filter(r=>r instanceof HTMLElement&&(r.matches(pr)||r.matches(dr))):Array.from(document.querySelectorAll([pr,dr].join(","))),n=[];return e.filter(r=>r instanceof HTMLElement).forEach(r=>{const i=at(12),s="data-has-inline-styles";r.setAttribute(s,i);const l=r.getAttribute("style"),c=`[${s}="${i}"] { ${l} }`;n.push({el:r,css:c})}),n}function wf(t,e){return _(this,null,function*(){const n=t??Array.from(document.querySelectorAll("link, style")),r=[];n.filter(l=>l instanceof HTMLElement).forEach(l=>{if(l.tagName.toLowerCase()==="link"){const c=vf(l);c&&r.push({el:l,url:c})}l.tagName.toLowerCase()==="style"&&r.push({el:l,css:l.innerHTML})});const i=e?t??[]:void 0,s=xf(i);return yield Cf([...r,...s])})}const Lf="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let ro=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=Lf[n[t]&63];return e};const io="--pa-cascade-property",so="data-anchor-position-wrapper",oo="data-pa-wrapper-for-",mr="POLYFILL-POSITION-AREA",Of=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all","top","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","block-start","block-end","span-block-start","span-block-end","inline-start","inline-end","span-inline-start","span-inline-end","self-block-start","self-block-end","span-self-block-start","span-self-block-end","self-inline-start","self-inline-end","span-self-inline-start","span-self-inline-end","start","end","span-start","span-end","self-start","self-end","span-self-start","span-self-end"];function lo(t){return Of.includes(t)}const kr={left:[0,1,"Irrelevant"],center:[1,2,"Irrelevant"],right:[2,3,"Irrelevant"],"span-left":[0,2,"Irrelevant"],"span-right":[1,3,"Irrelevant"],"x-start":[0,1,"Physical"],"x-end":[2,3,"Physical"],"span-x-start":[0,2,"Physical"],"span-x-end":[1,3,"Physical"],"x-self-start":[0,1,"PhysicalSelf"],"x-self-end":[2,3,"PhysicalSelf"],"span-x-self-start":[0,2,"PhysicalSelf"],"span-x-self-end":[1,3,"PhysicalSelf"],"span-all":[0,3,"Irrelevant"],top:[0,1,"Irrelevant"],bottom:[2,3,"Irrelevant"],"span-top":[0,2,"Irrelevant"],"span-bottom":[1,3,"Irrelevant"],"y-start":[0,1,"Physical"],"y-end":[2,3,"Physical"],"span-y-start":[0,2,"Physical"],"span-y-end":[1,3,"Physical"],"y-self-start":[0,1,"PhysicalSelf"],"y-self-end":[2,3,"PhysicalSelf"],"span-y-self-start":[0,2,"PhysicalSelf"],"span-y-self-end":[1,3,"PhysicalSelf"],"block-start":[0,1,"Logical"],"block-end":[2,3,"Logical"],"span-block-start":[0,2,"Logical"],"span-block-end":[1,3,"Logical"],"inline-start":[0,1,"Logical"],"inline-end":[2,3,"Logical"],"span-inline-start":[0,2,"Logical"],"span-inline-end":[1,3,"Logical"],"self-block-start":[0,1,"LogicalSelf"],"self-block-end":[2,3,"LogicalSelf"],"span-self-block-start":[0,2,"LogicalSelf"],"span-self-block-end":[1,3,"LogicalSelf"],"self-inline-start":[0,1,"LogicalSelf"],"self-inline-end":[2,3,"LogicalSelf"],"span-self-inline-start":[0,2,"LogicalSelf"],"span-self-inline-end":[1,3,"LogicalSelf"],start:[0,1,"Logical"],end:[2,3,"Logical"],"span-start":[0,2,"Logical"],"span-end":[1,3,"Logical"],"self-start":[0,1,"LogicalSelf"],"self-end":[2,3,"LogicalSelf"],"span-self-start":[0,2,"LogicalSelf"],"span-self-end":[1,3,"LogicalSelf"]},Tf=["left","center","right","span-left","span-right","x-start","x-end","span-x-start","span-x-end","x-self-start","x-self-end","span-x-self-start","span-x-self-end","span-all"],Af=["top","center","bottom","span-top","span-bottom","y-start","y-end","span-y-start","span-y-end","y-self-start","y-self-end","span-y-self-start","span-y-self-end","span-all"],Pf=["block-start","center","block-end","span-block-start","span-block-end","span-all"],_f=["inline-start","center","inline-end","span-inline-start","span-inline-end","span-all"],Ef=["self-block-start","center","self-block-end","span-self-block-start","span-self-block-end","span-all"],jf=["self-inline-start","center","self-inline-end","span-self-inline-start","span-self-inline-end","span-all"],yr=["start","center","end","span-start","span-end","span-all"],gr=["self-start","center","self-end","span-self-start","span-self-end","span-all"],Df=["block","top","bottom","y"],Rf=["inline","left","right","x"];function hn(t){const e=t.split("-");for(const n of e){if(Df.includes(n))return"block";if(Rf.includes(n))return"inline"}return"ambiguous"}function If(t,e){return e[0].includes(t[0])&&e[1].includes(t[1])||e[0].includes(t[1])&&e[1].includes(t[0])}const Mf=[[Tf,Af],[Pf,_f],[Ef,jf],[yr,yr],[gr,gr]];function Nf(t){for(const e of Mf)if(If(t,e))return!0;return!1}const br=t=>{const e=getComputedStyle(t);return{writingMode:e.writingMode,direction:e.direction}},Ff=(t,e)=>_(null,null,function*(){const n=yield wn(t);switch(e){case"Logical":case"Physical":return br(n);case"LogicalSelf":case"PhysicalSelf":return br(t);default:return null}}),Ye=t=>t.reverse().map(e=>3-e),ao=(t,e)=>t==="Irrelevant"?e:t,zf=(t,e)=>_(null,[t,e],function*({block:n,inline:r},i){const s=ao(n[2],r[2]),l=yield Ff(i,s),c={block:[n[0],n[1]],inline:[r[0],r[1]]};if(l){if(l.direction==="rtl"&&(c.inline=Ye(c.inline)),l.writingMode.startsWith("vertical")){const a=c.block;c.block=c.inline,c.inline=a}if(l.writingMode.startsWith("sideways")){const a=c.block;c.block=c.inline,c.inline=a,l.writingMode.endsWith("lr")&&(c.block=Ye(c.block))}l.writingMode.endsWith("rl")&&(c.inline=Ye(c.inline))}return c}),$f=({block:t,inline:e})=>{const n=[0,"top","bottom",0],r=[0,"left","right",0];return{block:[n[t[0]],n[t[1]]],inline:[r[e[0]],r[e[1]]]}};function Sr([t,e]){return t===0&&e===3?"center":t===0?"end":e===3?"start":"center"}function Bf(t){return t.type==="Declaration"&&t.property==="position-area"}function Uf(t){const e=t.value.children.toArray().map(({name:n})=>n);return e.length===1&&(hn(e[0])==="ambiguous"?e.push(e[0]):e.push("span-all")),e}function Wf(t){if(!Bf(t))return;const e=Uf(t);if(!Nf(e))return;const n={};switch(hn(e[0])){case"block":n.block=e[0],n.inline=e[1];break;case"inline":n.inline=e[0],n.block=e[1];break;case"ambiguous":hn(e[1])=="block"?(n.block=e[1],n.inline=e[0]):(n.inline=e[1],n.block=e[0]);break}const r={block:kr[n.block],inline:kr[n.inline]},i=`--pa-declaration-${ro(12)}`;return{values:n,grid:r,selectorUUID:i}}function Vf(t,e){["justify-self","align-self"].forEach(n=>{e.children.appendData({type:"Declaration",property:n,value:{type:"Raw",value:`var(--pa-value-${n})`},important:!1})}),e.children.appendData({type:"Declaration",property:io,value:{type:"Raw",value:t.selectorUUID},important:!1})}function Hf(t,e){var n,r;let i;if(((n=t.parentElement)==null?void 0:n.tagName)===mr)i=t.parentElement;else{i=document.createElement(mr),i.style.display="grid",i.style.position="absolute";const s=getComputedStyle(t).pointerEvents;i.style.pointerEvents="none",t.style.pointerEvents=s,["top","left","right","bottom"].forEach(l=>{i.style.setProperty(l,`var(--pa-value-${l})`)}),(r=t.parentElement)==null||r.insertBefore(i,t),i.appendChild(t)}return i.setAttribute(`${oo}${e}`,""),i}function qf(t,e,n){return _(this,null,function*(){const r=`--pa-target-${ro(12)}`,i=yield zf(e.grid,t),s=$f(i),l=ao(e.grid.block[2],e.grid.inline[2]),c=["LogicalSelf","PhysicalSelf"].includes(l)?i:e.grid,a={block:Sr([c.block[0],c.block[1]]),inline:Sr([c.inline[0],c.inline[1]])};return{insets:s,alignments:a,targetUUID:r,targetEl:t,anchorEl:n,wrapperEl:Hf(t,r),values:e.values,grid:e.grid,selectorUUID:e.selectorUUID}})}function Qf(t,e){return`
|
|
8
|
+
[${so}="${e}"][${oo}${t}] {
|
|
9
|
+
--pa-value-top: var(${t}-top);
|
|
10
|
+
--pa-value-left: var(${t}-left);
|
|
11
|
+
--pa-value-right: var(${t}-right);
|
|
12
|
+
--pa-value-bottom: var(${t}-bottom);
|
|
13
|
+
--pa-value-justify-self: var(${t}-justify-self);
|
|
14
|
+
--pa-value-align-self: var(${t}-align-self);
|
|
15
|
+
}
|
|
16
|
+
`.replaceAll(`
|
|
17
|
+
`,"")}const Gf=["normal","most-width","most-height","most-block-size","most-inline-size"],Xf=["flip-block","flip-inline","flip-start"];function Yf(t){return t.type==="Declaration"}function Jf(t){return t.type==="Declaration"&&t.property==="position-try-fallbacks"}function Zf(t){return t.type==="Declaration"&&t.property==="position-try-order"}function Kf(t){return t.type==="Declaration"&&t.property==="position-try"}function tp(t){return t.type==="Atrule"&&t.name==="position-try"}function ep(t){return Xf.includes(t)}function np(t){return Gf.includes(t)}function rp(t,e){const n=document.querySelector(t);if(n){let r=sp(n);return e.forEach(i=>{r=co(r,i)}),r}}function ip(t,e){let n=t.declarations;return e.forEach(r=>{n=co(n,r)}),n}function sp(t){const e={};return Gs.forEach(n=>{const r=ot(t,`--${n}-${eo}`);r&&(e[n]=r)}),e}const op={"flip-block":{top:"bottom",bottom:"top","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","margin-top":"margin-bottom","margin-bottom":"margin-top"},"flip-inline":{left:"right",right:"left","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","margin-left":"margin-right","margin-right":"margin-left"},"flip-start":{left:"top",right:"bottom",top:"left",bottom:"right","inset-block-start":"inset-block-end","inset-block-end":"inset-block-start","inset-inline-start":"inset-inline-end","inset-inline-end":"inset-inline-start","inset-block":"inset-inline","inset-inline":"inset-block"}},lp={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-inline":{left:"right",right:"left",start:"end",end:"start","self-end":"self-start","self-start":"self-end"},"flip-start":{top:"left",left:"top",right:"bottom",bottom:"right"}},ap={"flip-block":{top:"bottom",bottom:"top",start:"end",end:"start"},"flip-inline":{left:"right",right:"left",start:"end",end:"start"},"flip-start":{}};function cp(t,e){return op[e][t]||t}function up(t,e){return lp[e][t]||t}function hp(t,e){if(e==="flip-start")return t;{const n=ap[e];return t.split("-").map(r=>n[r]||r).join("-")}}function fp(t,e,n){if(t==="margin"){const[r,i,s,l]=e.children.toArray();n==="flip-block"?l?e.children.fromArray([s,i,r,l]):s&&e.children.fromArray([s,i,r]):n==="flip-inline"&&l&&e.children.fromArray([r,l,s,i])}else if(t==="margin-block"){const[r,i]=e.children.toArray();n==="flip-block"&&i&&e.children.fromArray([i,r])}else if(t==="margin-inline"){const[r,i]=e.children.toArray();n==="flip-inline"&&i&&e.children.fromArray([i,r])}}const pp=(t,e)=>{var n;return((n=Lt(`#id{${t}: ${e};}`).children.first)==null?void 0:n.block.children.first).value};function co(t,e){const n={};return Object.entries(t).forEach(([r,i])=>{const s=r,l=pp(s,i),c=cp(s,e);c!==s&&(n[s]!=null||(n[s]="revert")),wt(l,{visit:"Function",enter(a){Ae(a)&&a.children.forEach(o=>{ne(o)&&Ys(o.name)&&(o.name=up(o.name,e))})}}),s==="position-area"&&l.children.forEach(a=>{ne(a)&&lo(a.name)&&(a.name=hp(a.name,e))}),s.startsWith("margin")&&fp(s,l,e),n[c]=Z(l)}),n}function uo(t){const e=cf(t),n=[];return e.forEach(r=>{const i={atRules:[],tactics:[],positionAreas:[]};r.forEach(s=>{ep(s.name)?i.tactics.push(s.name):s.name.startsWith("--")?i.atRules.push(s.name):lo(s.name)&&i.positionAreas.push(s.name)}),i.positionAreas.length?n.push({positionArea:i.positionAreas[0],type:"position-area"}):i.atRules.length&&i.tactics.length?n.push({tactics:i.tactics,atRule:i.atRules[0],type:"at-rule-with-try-tactic"}):i.atRules.length?n.push({atRule:i.atRules[0],type:"at-rule"}):i.tactics.length&&n.push({tactics:i.tactics,type:"try-tactic"})}),n}function dp(t){return Jf(t)&&t.value.children.first?uo(t.value.children):[]}function mp(t){if(Kf(t)&&t.value.children.first){const e=Te(t);let n;const r=e.value.children.first.name;r&&np(r)&&(n=r,e.value.children.shift());const i=uo(e.value.children);return{order:n,options:i}}return{}}function kp(t){return Zf(t)&&t.value.children.first?{order:t.value.children.first.name}:{}}function yp(t){const{order:e,options:n}=mp(t);if(e||n)return{order:e,options:n};const{order:r}=kp(t),i=dp(t);return r||i?{order:r,options:i}:{}}function gp(t){return le(t.property)||Xu(t.property)||qs(t.property)||Yu(t.property)||["position-anchor","position-area"].includes(t.property)}function bp(t){var e,n;if(tp(t)&&(e=t.prelude)!=null&&e.value&&(n=t.block)!=null&&n.children){const r=t.prelude.value,i=t.block.children.filter(l=>Yf(l)&&gp(l)),s={uuid:`${r}-try-${at(12)}`,declarations:Object.fromEntries(i.map(l=>[l.property,Z(l.value)]))};return{name:r,tryBlock:s}}return{}}function Sp(t){const e={},n={},r={};for(const i of t){const s=Lt(i.css);wt(s,{visit:"Atrule",enter(l){const{name:c,tryBlock:a}=bp(l);c&&a&&(e[c]=a)}})}for(const i of t){let s=!1;const l=new Set,c=Lt(i.css);wt(c,{visit:"Declaration",enter(a){var o;const u=(o=this.rule)==null?void 0:o.prelude,h=cn(u);if(!h.length)return;const{order:f,options:m}=yp(a),p={};f&&(p.order=f),h.forEach(({selector:k})=>{var b;m?.forEach(y=>{var A;let x;if(y.type==="at-rule")x=y.atRule;else if(y.type==="try-tactic"){x=`${k}-${y.tactics.join("-")}`;const T=rp(k,y.tactics);T&&(e[x]={uuid:`${k}-${y.tactics.join("-")}-try-${at(12)}`,declarations:T})}else if(y.type==="at-rule-with-try-tactic"){x=`${k}-${y.atRule}-${y.tactics.join("-")}`;const T=e[y.atRule],S=ip(T,y.tactics);S&&(e[x]={uuid:`${k}-${y.atRule}-${y.tactics.join("-")}-try-${at(12)}`,declarations:S})}if(x&&e[x]){const T=`[data-anchor-polyfill="${e[x].uuid}"]`;n[T]!=null||(n[T]=[]),n[T].push(k),l.has(x)||(p.fallbacks!=null||(p.fallbacks=[]),p.fallbacks.push(e[x]),l.add(x),(A=this.stylesheet)==null||A.children.prependData({type:"Rule",prelude:{type:"Raw",value:T},block:{type:"Block",children:new Q().fromArray(Object.entries(e[x].declarations).map(([S,L])=>({type:"Declaration",important:!0,property:S,value:{type:"Raw",value:L}})))}}),s=!0)}}),Object.keys(p).length>0&&(r[k]?(p.order&&(r[k].order=p.order),p.fallbacks&&((b=r[k]).fallbacks!=null||(b.fallbacks=[]),r[k].fallbacks.push(...p.fallbacks))):r[k]=p)})}}),s&&(i.css=Z(c),i.changed=!0)}return{fallbackTargets:n,validPositions:r}}function vp(t,e){return!t||t===e?!1:ho(t)?t.document.contains(e):t.contains(e)}function ho(t){return!!(t&&t===t.window)}function Cp(t){return Yt(t,"position","fixed")}function fn(t){return!!(t&&(Cp(t)||Yt(t,"position","absolute")))}function vr(t,e){return t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING}function xp(t){return _(this,null,function*(){return yield nt.getOffsetParent(t)})}function Je(t){return _(this,null,function*(){if(!["absolute","fixed"].includes(ot(t,"position")))return yield xp(t);let e=t.parentElement;for(;e;){if(!Yt(e,"position","static")&&Yt(e,"display","block"))return e;e=e.parentElement}return window})}function wp(t,e,n,r){return _(this,null,function*(){const i=yield Je(t),s=yield Je(n);if(!(vp(s,t)||ho(s))||i===s&&!(!fn(t)||vr(t,n)))return!1;if(i!==s){let l;const c=[];for(l=i;l&&l!==s&&l!==window;)c.push(l),l=yield Je(l);const a=c[c.length-1];if(a instanceof HTMLElement&&!(!fn(a)||vr(a,n)))return!1}{let l=t.parentElement;for(;l;){if(Yt(l,"content-visibility","hidden"))return!1;l=l.parentElement}}return!(e&&r&&Cr(t,e,r)!==Cr(n,e,r))})}function Cr(t,e,n){for(;!(t.matches(n)&&bf(t,e));){if(!t.parentElement)return null;t=t.parentElement}return t}function Lp(t,e,n,r){return _(this,null,function*(){if(!(t instanceof HTMLElement&&n.length&&fn(t)))return null;const i=n.flatMap(yf).filter(l=>gf(l,e)),s=r.map(l=>l.selector).join(",")||null;for(let l=i.length-1;l>=0;l--){const c=i[l],a="fakePseudoElement"in c;if(yield wp(a?c.fakePseudoElement:c,e,t,s))return a&&c.removeFakePseudoElement(),c}return null})}function Op(t){return t.type==="Declaration"&&t.property==="anchor-name"}function Tp(t){return t.type==="Declaration"&&t.property==="anchor-scope"}function pn(t){return!!(t&&t.type==="Function"&&t.name==="anchor-size")}function Se(t){return!!(t&&t.type==="Function"&&t.name==="var")}function ne(t){return!!(t.type==="Identifier"&&t.name)}function Ap(t){return!!(t.type==="Percentage"&&t.value)}function xr(t,e){let n,r,i,s="",l=!1,c;const a=[];t.children.toArray().forEach(f=>{if(l){s=`${s}${Z(f)}`;return}if(f.type==="Operator"&&f.value===","){l=!0;return}a.push(f)});let[o,u]=a;if(u||(u=o,o=void 0),o&&(ne(o)&&o.name.startsWith("--")?n=o.name:Se(o)&&o.children.first&&(c=o.children.first.name)),u)if(Ae(t)){if(ne(u)&&Ys(u.name))r=u.name;else if(Ap(u)){const f=Number(u.value);r=Number.isNaN(f)?void 0:f}}else pn(t)&&ne(u)&&th(u.name)&&(i=u.name);const h=`--anchor-${at(12)}`;return Object.assign(t,{type:"Raw",value:`var(${h})`,children:null}),Reflect.deleteProperty(t,"name"),{anchorName:n,anchorSide:r,anchorSize:i,fallbackValue:s||"0px",customPropName:c,uuid:h}}function wr(t){return t.value.children.map(({name:e})=>e)}let re={},Et={},jt={},ie={},_t={};function Pp(){re={},Et={},jt={},ie={},_t={}}function _p(t,e){var n;if((Ae(t)||pn(t))&&e){if(e.property.startsWith("--")){const r=Z(e.value),i=xr(t);return ie[i.uuid]=r,jt[e.property]=[...(n=jt[e.property])!=null?n:[],i],{changed:!0}}if(Ae(t)&&le(e.property)||pn(t)&&Xs(e.property)){const r=xr(t);return{prop:e.property,data:r,changed:!0}}}return{}}function Lr(t,e){return _(this,null,function*(){let n=e?.anchorName;const r=e?.customPropName;if(t&&!n){const c=ot(t,"position-anchor");c?n=c:r&&(n=ot(t,r))}const i=n?re[n]||[]:[],s=n?Et[no.All]||[]:[],l=n?Et[n]||[]:[];return yield Lp(t,n||null,i,[...s,...l])})}function Ep(t){return _(this,null,function*(){var e,n,r,i,s,l,c,a,o,u,h;const f={},m={};Pp();const{fallbackTargets:p,validPositions:k}=Sp(t);for(const S of t){let L=!1;const z=Lt(S.css);wt(z,function(P){var $,I,j,W;const D=($=this.rule)==null?void 0:$.prelude,M=cn(D);if(Op(P)&&M.length)for(const N of wr(P))re[N]!=null||(re[N]=[]),re[N].push(...M);if(Tp(P)&&M.length)for(const N of wr(P))Et[N]!=null||(Et[N]=[]),Et[N].push(...M);const{prop:q,data:pt,changed:Tt}=_p(P,this.declaration);if(q&&pt&&M.length)for(const{selector:N}of M)f[N]=J(V({},f[N]),{[q]:[...(j=(I=f[N])==null?void 0:I[q])!=null?j:[],pt]});let H;if(this.block&&(H=Wf(P),H)){Vf(H,this.block);for(const{selector:N}of M)m[N]=[...(W=m[N])!=null?W:[],H]}(Tt||H)&&(L=!0)}),L&&(S.css=Z(z),S.changed=!0)}const b=new Set(Object.keys(jt)),y={},A=S=>{var L,z,P,$,I;const j=[],W=new Set((z=(L=y[S])==null?void 0:L.names)!=null?z:[]);for(;W.size>0;)for(const D of W)j.push(...(P=jt[D])!=null?P:[]),W.delete(D),(I=($=y[D])==null?void 0:$.names)!=null&&I.length&&y[D].names.forEach(M=>W.add(M));return j};for(;b.size>0;){const S=[];for(const L of t){let z=!1;const P=Lt(L.css);wt(P,{visit:"Function",enter($){var I,j;const W=(I=this.rule)==null?void 0:I.prelude,D=this.declaration,M=D?.property;if(W?.children.isEmpty===!1&&Se($)&&D&&M&&$.children.first&&b.has($.children.first.name)&&M.startsWith("--")){const q=$.children.first,pt=(j=jt[q.name])!=null?j:[],Tt=A(q.name);if(!(pt.length||Tt.length))return;const H=`${q.name}-anchor-${at(12)}`,N=Z(D.value);ie[H]=N,y[M]||(y[M]={names:[],uuids:[]});const Mt=y[M];Mt.names.includes(q.name)||Mt.names.push(q.name),Mt.uuids.push(H),S.push(M),q.name=H,z=!0}}}),z&&(L.css=Z(P),L.changed=!0)}b.clear(),S.forEach(L=>b.add(L))}for(const S of t){let L=!1;const z=Lt(S.css);wt(z,{visit:"Function",enter(P){var $,I,j,W,D,M,q;const pt=($=this.rule)==null?void 0:$.prelude,Tt=this.declaration,H=Tt?.property;if(pt?.children.isEmpty===!1&&Se(P)&&Tt&&H&&P.children.first&&(le(H)||qs(H))){const N=P.children.first,Mt=(I=jt[N.name])!=null?I:[],De=A(N.name);if(!(Mt.length||De.length))return;const ce=`${H}-${at(12)}`;if(De.length){const Nt=new Set([N.name]);for(;Nt.size>0;)for(const Ft of Nt){const st=y[Ft];if((j=st?.names)!=null&&j.length&&(W=st?.uuids)!=null&&W.length)for(const zt of st.names)for(const $t of st.uuids)_t[$t]=J(V({},_t[$t]),{[ce]:`${zt}-${ce}`});Nt.delete(Ft),(D=st?.names)!=null&&D.length&&st.names.forEach(zt=>Nt.add(zt))}}const fo=cn(pt);for(const Nt of[...Mt,...De]){const Ft=V({},Nt),st=`--anchor-${at(12)}-${H}`,zt=Ft.uuid;Ft.uuid=st;for(const{selector:$t}of fo)f[$t]=J(V({},f[$t]),{[H]:[...(q=(M=f[$t])==null?void 0:M[H])!=null?q:[],Ft]});_t[zt]=J(V({},_t[zt]),{[ce]:st})}N.name=`${N.name}-${ce}`,L=!0}}}),L&&(S.css=Z(z),S.changed=!0)}if(Object.keys(_t).length>0)for(const S of t){let L=!1;const z=Lt(S.css);wt(z,{visit:"Function",enter(P){var $,I,j,W;if(Se(P)&&(I=($=P.children.first)==null?void 0:$.name)!=null&&I.startsWith("--")&&(W=(j=this.declaration)==null?void 0:j.property)!=null&&W.startsWith("--")&&this.block){const D=P.children.first,M=_t[D.name];if(M)for(const[q,pt]of Object.entries(M))this.block.children.appendData({type:"Declaration",important:!1,property:`${this.declaration.property}-${q}`,value:{type:"Raw",value:Z(this.declaration.value).replace(`var(${D.name})`,`var(${pt})`)}}),L=!0;ie[D.name]&&(this.declaration.value={type:"Raw",value:ie[D.name]},L=!0)}}}),L&&(S.css=Z(z),S.changed=!0)}const x=new Map;for(const[S,L]of Object.entries(f)){let z;S.startsWith("[data-anchor-polyfill=")&&(e=p[S])!=null&&e.length?z=document.querySelectorAll(p[S].join(",")):z=document.querySelectorAll(S);for(const[P,$]of Object.entries(L))for(const I of $)for(const j of z){const W=yield Lr(j,I),D=`--anchor-${at(12)}`;x.set(j,J(V({},(n=x.get(j))!=null?n:{}),{[I.uuid]:D})),j.setAttribute("style",`${I.uuid}: var(${D}); ${(r=j.getAttribute("style"))!=null?r:""}`),k[S]=J(V({},k[S]),{declarations:J(V({},(i=k[S])==null?void 0:i.declarations),{[P]:[...(c=(l=(s=k[S])==null?void 0:s.declarations)==null?void 0:l[P])!=null?c:[],J(V({},I),{anchorEl:W,targetEl:j,uuid:D})]})})}}const T={el:document.createElement("link"),changed:!1,created:!0,css:""};t.push(T);for(const[S,L]of Object.entries(m)){const z=document.querySelectorAll(S);for(const P of z){const $=yield Lr(P);for(const I of L){const j=yield qf(P,I,$);T.css+=Qf(j.targetUUID,I.selectorUUID),T.changed=!0,k[S]=J(V({},k[S]),{declarations:J(V({},(a=k[S])==null?void 0:a.declarations),{"position-area":[...(h=(u=(o=k[S])==null?void 0:o.declarations)==null?void 0:u["position-area"])!=null?h:[],j]})})}}}return{rules:k,inlineStyles:x,anchorScopes:Et}})}const jp=["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","referrerpolicy","rel","type"];function Or(t,e,n=!1){const r=[];for(const{el:i,css:s,changed:l,created:c=!1}of t){const a={el:i,css:s,changed:!1};if(l){if(i.tagName.toLowerCase()==="style")i.innerHTML=s;else if(i instanceof HTMLLinkElement){const o=document.createElement("style");o.textContent=s;for(const u of i.getAttributeNames())if(!u.startsWith("on")&&!jp.includes(u)){const h=i.getAttribute(u);h!==null&&o.setAttribute(u,h)}i.hasAttribute("href")&&o.setAttribute("data-original-href",i.getAttribute("href")),c?(o.setAttribute("data-generated-by-polyfill","true"),document.head.insertAdjacentElement("beforeend",o)):(i.insertAdjacentElement("beforebegin",o),i.remove()),a.el=o}else if(i.hasAttribute("data-has-inline-styles")){const o=i.getAttribute("data-has-inline-styles");if(o){const u=`[data-has-inline-styles="${o}"]{`;let h=s.slice(u.length,-1);const f=e?.get(i);if(f)for(const[m,p]of Object.entries(f))h=`${m}: var(${p}); ${h}`;i.setAttribute("style",h)}}}n&&i.hasAttribute("data-has-inline-styles")&&i.removeAttribute("data-has-inline-styles"),r.push(a)}return r}const Dp=J(V({},nt),{_c:new Map}),Rp=(t,e)=>{let n;switch(t){case"start":case"self-start":n=0;break;case"end":case"self-end":n=100;break;default:typeof t=="number"&&!Number.isNaN(t)&&(n=t)}if(n!==void 0)return e?100-n:n},Ip=(t,e)=>{let n;switch(t){case"block":case"self-block":n=e?"width":"height";break;case"inline":case"self-inline":n=e?"height":"width";break}return n},Tr=t=>{switch(t){case"top":case"bottom":return"y";case"left":case"right":return"x"}return null},Mp=t=>{switch(t){case"x":return"width";case"y":return"height"}return null},Ar=t=>ot(t,"display")==="inline",Pr=(t,e)=>(e==="x"?["border-left-width","border-right-width"]:["border-top-width","border-bottom-width"]).reduce((n,r)=>n+parseInt(ot(t,r),10),0)||0,me=(t,e)=>parseInt(ot(t,`margin-${e}`),10)||0,Np=t=>({top:me(t,"top"),right:me(t,"right"),bottom:me(t,"bottom"),left:me(t,"left")}),Ze=t=>_(null,[t],function*({targetEl:e,targetProperty:n,anchorRect:r,anchorSide:i,anchorSize:s,fallback:l=null}){var c;if(!((s||i!==void 0)&&e&&r))return l;if(s){if(!Xs(n))return l;let a;switch(s){case"width":case"height":a=s;break;default:{let o=!1;const u=ot(e,"writing-mode");o=u.startsWith("vertical-")||u.startsWith("sideways-"),a=Ip(s,o)}}return a?`${r[a]}px`:l}if(i!==void 0){let a,o;const u=Tr(n);if(!(le(n)&&u&&(!le(i)||u===Tr(i))))return l;const h=["top","left"];switch(i){case"left":case"top":a=0;break;case"right":case"bottom":a=100;break;case"center":a=50;break;case"inside":a=h.includes(n)?0:100;break;case"outside":a=h.includes(n)?100:0;break;default:if(e){const p=(yield(c=nt.isRTL)==null?void 0:c.call(nt,e))||!1;a=Rp(i,p)}}const f=typeof a=="number"&&!Number.isNaN(a),m=Mp(u);if(f&&m){(n==="bottom"||n==="right")&&(o=yield wn(e));let p=r[u]+r[m]*(a/100);switch(n){case"bottom":{if(!o)break;let k=o.clientHeight;if(k===0&&Ar(o)){const b=Pr(o,u);k=o.offsetHeight-b}p=k-p;break}case"right":{if(!o)break;let k=o.clientWidth;if(k===0&&Ar(o)){const b=Pr(o,u);k=o.offsetWidth-b}p=k-p;break}}return`${p}px`}}return l}),Fp=t=>"wrapperEl"in t,zp=t=>"uuid"in t;function $p(t,e=!1){return _(this,null,function*(){const n=document.documentElement;for(const[r,i]of Object.entries(t))for(const s of i){const l=s.anchorEl,c=s.targetEl;if(l&&c)if(Fp(s)){const a=s.wrapperEl,o=(u,h,f)=>_(null,null,function*(){return u===0?"0px":yield Ze({targetEl:a,targetProperty:h,anchorRect:f,anchorSide:u})});en(l,a,()=>_(null,null,function*(){const u=ot(c,io);a.setAttribute(so,u);const h=yield nt.getElementRects({reference:l,floating:a,strategy:"absolute"}),f=s.insets,m=yield o(f.block[0],"top",h.reference),p=yield o(f.block[1],"bottom",h.reference),k=yield o(f.inline[0],"left",h.reference),b=yield o(f.inline[1],"right",h.reference);n.style.setProperty(`${s.targetUUID}-top`,m||null),n.style.setProperty(`${s.targetUUID}-left`,k||null),n.style.setProperty(`${s.targetUUID}-right`,b||null),n.style.setProperty(`${s.targetUUID}-bottom`,p||null),n.style.setProperty(`${s.targetUUID}-justify-self`,s.alignments.inline),n.style.setProperty(`${s.targetUUID}-align-self`,s.alignments.block)}),{animationFrame:e})}else en(l,c,()=>_(null,null,function*(){const a=yield nt.getElementRects({reference:l,floating:c,strategy:"absolute"}),o=yield Ze({targetEl:c,targetProperty:r,anchorRect:a.reference,anchorSide:s.anchorSide,anchorSize:s.anchorSize,fallback:s.fallbackValue});n.style.setProperty(s.uuid,o)}),{animationFrame:e});else if(zp(s)){const a=yield Ze({targetProperty:r,anchorSide:s.anchorSide,anchorSize:s.anchorSize,fallback:s.fallbackValue});n.style.setProperty(s.uuid,a)}}})}function _r(t,e){return _(this,null,function*(){const n=yield nt.getElementRects({reference:t,floating:t,strategy:"absolute"});return yield zo({x:t.offsetLeft,y:t.offsetTop,platform:Dp,rects:n,elements:{floating:t,reference:e},strategy:"absolute"},{padding:Np(t)})})}function Bp(t,e,n=!1){return _(this,null,function*(){if(!e.length)return;const r=document.querySelectorAll(t);for(const i of r){let s=!1;const l=yield wn(i);en({},i,()=>_(null,null,function*(){if(s)return;s=!0,i.removeAttribute("data-anchor-polyfill");const c=yield _r(i,l);if(Object.values(c).every(a=>a<=0)){i.removeAttribute("data-anchor-polyfill-last-successful"),s=!1;return}for(const[a,{uuid:o}]of e.entries()){i.setAttribute("data-anchor-polyfill",o);const u=yield _r(i,l);if(Object.values(u).every(h=>h<=0)){i.setAttribute("data-anchor-polyfill-last-successful",o),s=!1;break}if(a===e.length-1){const h=i.getAttribute("data-anchor-polyfill-last-successful");h?i.setAttribute("data-anchor-polyfill",h):i.removeAttribute("data-anchor-polyfill"),s=!1;break}}}),{animationFrame:n,layoutShift:!1})}})}function Up(t,e=!1){return _(this,null,function*(){var n,r;for(const i of Object.values(t))yield $p((n=i.declarations)!=null?n:{},e);for(const[i,s]of Object.entries(t))yield Bp(i,(r=s.fallbacks)!=null?r:[],e)})}function Wp(t={}){const e=typeof t=="boolean"?{useAnimationFrame:t}:t,n=e.useAnimationFrame===void 0?!!window.UPDATE_ANCHOR_ON_ANIMATION_FRAME:e.useAnimationFrame;return Array.isArray(e.elements)||(e.elements=void 0),Object.assign(e,{useAnimationFrame:n})}function Vp(t){return _(this,null,function*(){const e=Wp(t??window.ANCHOR_POSITIONING_POLYFILL_OPTIONS);let n=yield wf(e.elements,e.excludeInlineStyles),r={},i;hf();try{pf(n)&&(n=Or(n));const s=yield Ep(n);r=s.rules,i=s.inlineStyles}catch(s){throw uf(),s}return Object.values(r).length&&(Or(n,i,!0),yield Up(r,e.useAnimationFrame)),r})}exports.default=Vp;
|