@cloudflare/kumo 1.19.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +239 -0
- package/ai/component-registry.json +758 -118
- package/ai/component-registry.md +1151 -153
- package/ai/schemas.ts +42 -14
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +153 -21
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +1994 -1956
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/Legend-ibjxhfm9pn2vrb6f.js +430 -0
- package/dist/chunks/Legend-ibjxhfm9pn2vrb6f.js.map +1 -0
- package/dist/chunks/autocomplete-cs3fwy6lwzlyirpq.js +174 -0
- package/dist/chunks/autocomplete-cs3fwy6lwzlyirpq.js.map +1 -0
- package/dist/chunks/{breadcrumbs-ge20hcb3o5spswrk.js → breadcrumbs-cxcwf2l1ki3ffg5d.js} +2 -2
- package/dist/chunks/{breadcrumbs-ge20hcb3o5spswrk.js.map → breadcrumbs-cxcwf2l1ki3ffg5d.js.map} +1 -1
- package/dist/chunks/{button-oaqi7ykdisyskoos.js → button-6by9ntsa3nj553mq.js} +23 -24
- package/dist/chunks/button-6by9ntsa3nj553mq.js.map +1 -0
- package/dist/chunks/checkbox-eren6w2csum1xghg.js +210 -0
- package/dist/chunks/checkbox-eren6w2csum1xghg.js.map +1 -0
- package/dist/chunks/{clipboard-text-dxczqon3d27xp6f0.js → clipboard-text-f9q753udny1uyxr5.js} +45 -41
- package/dist/chunks/{clipboard-text-dxczqon3d27xp6f0.js.map → clipboard-text-f9q753udny1uyxr5.js.map} +1 -1
- package/dist/chunks/collapsible-k8urhi16pg90jvxa.js +71 -0
- package/dist/chunks/collapsible-k8urhi16pg90jvxa.js.map +1 -0
- package/dist/chunks/{combobox-eaowwt1xr4d23gsn.js → combobox-n9qht9h9ag6kh5sn.js} +86 -74
- package/dist/chunks/combobox-n9qht9h9ag6kh5sn.js.map +1 -0
- package/dist/chunks/{command-palette-maqtbmpfev9mysqd.js → command-palette-gk9m34ymp2b3hfc5.js} +126 -126
- package/dist/chunks/command-palette-gk9m34ymp2b3hfc5.js.map +1 -0
- package/dist/chunks/{date-range-picker-j318zxjyqz4o3dak.js → date-range-picker-c9wnx9tbwohai7jy.js} +26 -26
- package/dist/chunks/{date-range-picker-j318zxjyqz4o3dak.js.map → date-range-picker-c9wnx9tbwohai7jy.js.map} +1 -1
- package/dist/chunks/{dialog-e3m5bhs7fds26p9y.js → dialog-94v7wiz7j3in6528.js} +3 -3
- package/dist/chunks/{dialog-e3m5bhs7fds26p9y.js.map → dialog-94v7wiz7j3in6528.js.map} +1 -1
- package/dist/chunks/{dropdown-ewte287db3vyt8t5.js → dropdown-zbax0zowy6m9zhmt.js} +87 -87
- package/dist/chunks/dropdown-zbax0zowy6m9zhmt.js.map +1 -0
- package/dist/chunks/{empty-dr1eckm2z40euns6.js → empty-kpymw59thjf2ip8g.js} +9 -9
- package/dist/chunks/{empty-dr1eckm2z40euns6.js.map → empty-kpymw59thjf2ip8g.js.map} +1 -1
- package/dist/chunks/{field-bo5gmna16odrrb1q.js → field-lnj619xpe8zjd26r.js} +7 -7
- package/dist/chunks/{field-bo5gmna16odrrb1q.js.map → field-lnj619xpe8zjd26r.js.map} +1 -1
- package/dist/chunks/{input-area-jkkkjej6luumrqpa.js → input-area-h8xbqturegdfm1mi.js} +4 -4
- package/dist/chunks/{input-area-jkkkjej6luumrqpa.js.map → input-area-h8xbqturegdfm1mi.js.map} +1 -1
- package/dist/chunks/input-group-dh4pg8p20rh4mdi0.js +505 -0
- package/dist/chunks/input-group-dh4pg8p20rh4mdi0.js.map +1 -0
- package/dist/chunks/{input-cw05pbqdburghkus.js → input-lpa5fc75tgrraafv.js} +46 -46
- package/dist/chunks/input-lpa5fc75tgrraafv.js.map +1 -0
- package/dist/chunks/{label-cvyvbqmt4mt757ff.js → label-be8m7qzlakzig2sl.js} +3 -3
- package/dist/chunks/{label-cvyvbqmt4mt757ff.js.map → label-be8m7qzlakzig2sl.js.map} +1 -1
- package/dist/chunks/{layer-card-ljqth3yxgnk04v2o.js → layer-card-hvivdirwwnyq88wa.js} +5 -5
- package/dist/chunks/{layer-card-ljqth3yxgnk04v2o.js.map → layer-card-hvivdirwwnyq88wa.js.map} +1 -1
- package/dist/chunks/{link-fjnhtxvfe5ieamjf.js → link-kt74pxkud4olmcer.js} +4 -4
- package/dist/chunks/{link-fjnhtxvfe5ieamjf.js.map → link-kt74pxkud4olmcer.js.map} +1 -1
- package/dist/chunks/menubar-hwev159bm4rw9ixk.js +96 -0
- package/dist/chunks/menubar-hwev159bm4rw9ixk.js.map +1 -0
- package/dist/chunks/{meter-duj3micor1lqj3y2.js → meter-bqetlujwg8gm2u7m.js} +2 -2
- package/dist/chunks/{meter-duj3micor1lqj3y2.js.map → meter-bqetlujwg8gm2u7m.js.map} +1 -1
- package/dist/chunks/{pagination-olaypvwr8swsmn8m.js → pagination-ho8zesqfyp6ckmrl.js} +21 -21
- package/dist/chunks/pagination-ho8zesqfyp6ckmrl.js.map +1 -0
- package/dist/chunks/{popover-nv9cmzbo7mf6bky0.js → popover-iayd9ya5yhujz6ve.js} +5 -5
- package/dist/chunks/{popover-nv9cmzbo7mf6bky0.js.map → popover-iayd9ya5yhujz6ve.js.map} +1 -1
- package/dist/chunks/{radio-ihxbe37us2jnqtzf.js → radio-datzh3pilz8ojak1.js} +86 -74
- package/dist/chunks/radio-datzh3pilz8ojak1.js.map +1 -0
- package/dist/chunks/{select-nx6ded5swra74iar.js → select-kpfbib9l8xrrmzpz.js} +64 -62
- package/dist/chunks/select-kpfbib9l8xrrmzpz.js.map +1 -0
- package/dist/chunks/{sensitive-input-00fujb510rrn61v9.js → sensitive-input-i1upqytzaw2pus8v.js} +42 -42
- package/dist/chunks/sensitive-input-i1upqytzaw2pus8v.js.map +1 -0
- package/dist/chunks/{sidebar-ltbfius1eolkl8tb.js → sidebar-kh37grvfxto14ek6.js} +129 -126
- package/dist/chunks/sidebar-kh37grvfxto14ek6.js.map +1 -0
- package/dist/chunks/{surface-dfgurg5eu3et4vw1.js → surface-o63tktyrifcjejyb.js} +2 -2
- package/dist/chunks/{surface-dfgurg5eu3et4vw1.js.map → surface-o63tktyrifcjejyb.js.map} +1 -1
- package/dist/chunks/{switch-fbv3iawqo3o3jgap.js → switch-lclhiplr9zqf73tj.js} +86 -78
- package/dist/chunks/switch-lclhiplr9zqf73tj.js.map +1 -0
- package/dist/chunks/{table-olwwulga2l3hdwlx.js → table-fyy8gl875yyevqs3.js} +89 -71
- package/dist/chunks/table-fyy8gl875yyevqs3.js.map +1 -0
- package/dist/chunks/table-of-contents-fzyv7uhnnyr13dqu.js +102 -0
- package/dist/chunks/table-of-contents-fzyv7uhnnyr13dqu.js.map +1 -0
- package/dist/chunks/{tabs-lohcglgppp6gj0hp.js → tabs-jywwt8ebjqjkux75.js} +19 -19
- package/dist/chunks/{tabs-lohcglgppp6gj0hp.js.map → tabs-jywwt8ebjqjkux75.js.map} +1 -1
- package/dist/chunks/{text-nmyi1rkwdj37f30f.js → text-f7t467waymhb30sx.js} +8 -8
- package/dist/chunks/text-f7t467waymhb30sx.js.map +1 -0
- package/dist/chunks/{toast-dg52x89yd231mxhe.js → toast-h573o0tc7tefivk2.js} +11 -11
- package/dist/chunks/{toast-dg52x89yd231mxhe.js.map → toast-h573o0tc7tefivk2.js.map} +1 -1
- package/dist/chunks/{tooltip-hikjvdbg3xghnq1x.js → tooltip-odudhkxe282wxinq.js} +5 -5
- package/dist/chunks/{tooltip-hikjvdbg3xghnq1x.js.map → tooltip-odudhkxe282wxinq.js.map} +1 -1
- package/dist/chunks/vendor-base-ui-ie71jahf0czyf58j.js +24638 -0
- package/dist/chunks/vendor-base-ui-ie71jahf0czyf58j.js.map +1 -0
- package/dist/chunks/vendor-floating-ui-dwag5e88viikh2zs.js +1311 -0
- package/dist/chunks/vendor-floating-ui-dwag5e88viikh2zs.js.map +1 -0
- package/dist/chunks/vendor-utils-ixnhxmehwihk5tr7.js +534 -0
- package/dist/chunks/vendor-utils-ixnhxmehwihk5tr7.js.map +1 -0
- package/dist/code.js +1 -1
- package/dist/components/autocomplete.js +9 -0
- package/dist/components/autocomplete.js.map +1 -0
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/input-group.js +8 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input.js +9 -7
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +148 -143
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.js +2 -2
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/otp-field.js +6 -0
- package/dist/primitives/otp-field.js.map +1 -0
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +2 -2
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +22 -21
- package/dist/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +10 -0
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/components/autocomplete/autocomplete.d.ts +180 -0
- package/dist/src/components/autocomplete/autocomplete.d.ts.map +1 -0
- package/dist/src/components/autocomplete/index.d.ts +2 -0
- package/dist/src/components/autocomplete/index.d.ts.map +1 -0
- package/dist/src/components/button/button.d.ts +3 -3
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/chart/Color.d.ts +36 -52
- package/dist/src/components/chart/Color.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts +37 -14
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/checkbox/index.d.ts +1 -1
- package/dist/src/components/checkbox/index.d.ts.map +1 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/collapsible/collapsible.d.ts +77 -40
- package/dist/src/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/src/components/collapsible/index.d.ts +1 -1
- package/dist/src/components/collapsible/index.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +3 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/command-palette/command-palette.d.ts +2 -11
- package/dist/src/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/src/components/command-palette/index.d.ts +1 -1
- package/dist/src/components/command-palette/index.d.ts.map +1 -1
- package/dist/src/components/command-palette/types.d.ts +13 -1
- package/dist/src/components/command-palette/types.d.ts.map +1 -1
- package/dist/src/components/input/index.d.ts +16 -1
- package/dist/src/components/input/index.d.ts.map +1 -1
- package/dist/src/components/input/input.d.ts +2 -2
- package/dist/src/components/input/input.d.ts.map +1 -1
- package/dist/src/components/input-group/context.d.ts +96 -0
- package/dist/src/components/input-group/context.d.ts.map +1 -0
- package/dist/src/components/input-group/index.d.ts +2 -0
- package/dist/src/components/input-group/index.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-addon.d.ts +15 -0
- package/dist/src/components/input-group/input-group-addon.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-button.d.ts +36 -0
- package/dist/src/components/input-group/input-group-button.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-input.d.ts +9 -0
- package/dist/src/components/input-group/input-group-input.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group-suffix.d.ts +13 -0
- package/dist/src/components/input-group/input-group-suffix.d.ts.map +1 -0
- package/dist/src/components/input-group/input-group.d.ts +43 -0
- package/dist/src/components/input-group/input-group.d.ts.map +1 -0
- package/dist/src/components/menubar/menubar.d.ts.map +1 -1
- package/dist/src/components/radio/index.d.ts +1 -1
- package/dist/src/components/radio/index.d.ts.map +1 -1
- package/dist/src/components/radio/radio.d.ts +43 -7
- package/dist/src/components/radio/radio.d.ts.map +1 -1
- package/dist/src/components/select/select.d.ts +3 -3
- package/dist/src/components/select/select.d.ts.map +1 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +2 -2
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/components/switch/index.d.ts +1 -1
- package/dist/src/components/switch/index.d.ts.map +1 -1
- package/dist/src/components/switch/switch.d.ts +31 -3
- package/dist/src/components/switch/switch.d.ts.map +1 -1
- package/dist/src/components/table/table.d.ts +17 -2
- package/dist/src/components/table/table.d.ts.map +1 -1
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +9 -7
- package/dist/src/components/table-of-contents/table-of-contents.d.ts.map +1 -1
- package/dist/src/components/text/text.d.ts +34 -6
- package/dist/src/components/text/text.d.ts.map +1 -1
- package/dist/src/components/text/text.type-spec.d.ts +44 -0
- package/dist/src/components/text/text.type-spec.d.ts.map +1 -0
- package/dist/src/components/toast/toast.d.ts +1 -1
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/index.d.ts +8 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/primitives/index.d.ts +1 -0
- package/dist/src/primitives/index.d.ts.map +1 -1
- package/dist/src/primitives/otp-field.d.ts +13 -0
- package/dist/src/primitives/otp-field.d.ts.map +1 -0
- package/dist/styles/kumo-binding.css +18 -0
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +2 -2
- package/dist/styles/theme-kumo.css +7 -0
- package/package.json +14 -2
- package/scripts/component-registry/discovery.ts +1 -0
- package/scripts/component-registry/index.test.ts +265 -0
- package/scripts/component-registry/index.ts +14 -0
- package/scripts/component-registry/metadata.ts +55 -7
- package/scripts/component-registry/sub-components.ts +81 -50
- package/scripts/component-registry/types.ts +2 -0
- package/scripts/theme-generator/config.ts +10 -0
- package/dist/chunks/Legend-ks7se6149vsa3tze.js +0 -430
- package/dist/chunks/Legend-ks7se6149vsa3tze.js.map +0 -1
- package/dist/chunks/button-oaqi7ykdisyskoos.js.map +0 -1
- package/dist/chunks/checkbox-mwgmohffm22ut13s.js +0 -211
- package/dist/chunks/checkbox-mwgmohffm22ut13s.js.map +0 -1
- package/dist/chunks/collapsible-jhzee3ks51d3xowb.js +0 -58
- package/dist/chunks/collapsible-jhzee3ks51d3xowb.js.map +0 -1
- package/dist/chunks/combobox-eaowwt1xr4d23gsn.js.map +0 -1
- package/dist/chunks/command-palette-maqtbmpfev9mysqd.js.map +0 -1
- package/dist/chunks/dropdown-ewte287db3vyt8t5.js.map +0 -1
- package/dist/chunks/input-cw05pbqdburghkus.js.map +0 -1
- package/dist/chunks/input-group-lfugneuz71g42n0w.js +0 -111
- package/dist/chunks/input-group-lfugneuz71g42n0w.js.map +0 -1
- package/dist/chunks/menubar-e5e4zwfagr0wx023.js +0 -96
- package/dist/chunks/menubar-e5e4zwfagr0wx023.js.map +0 -1
- package/dist/chunks/pagination-olaypvwr8swsmn8m.js.map +0 -1
- package/dist/chunks/radio-ihxbe37us2jnqtzf.js.map +0 -1
- package/dist/chunks/select-nx6ded5swra74iar.js.map +0 -1
- package/dist/chunks/sensitive-input-00fujb510rrn61v9.js.map +0 -1
- package/dist/chunks/sidebar-ltbfius1eolkl8tb.js.map +0 -1
- package/dist/chunks/switch-fbv3iawqo3o3jgap.js.map +0 -1
- package/dist/chunks/table-of-contents-f813ivi7ta23vqdm.js +0 -88
- package/dist/chunks/table-of-contents-f813ivi7ta23vqdm.js.map +0 -1
- package/dist/chunks/table-olwwulga2l3hdwlx.js.map +0 -1
- package/dist/chunks/text-nmyi1rkwdj37f30f.js.map +0 -1
- package/dist/chunks/vendor-base-ui-m5pz3e8c4grg5qmj.js +0 -22813
- package/dist/chunks/vendor-base-ui-m5pz3e8c4grg5qmj.js.map +0 -1
- package/dist/chunks/vendor-floating-ui-gr9m6tsa1cpqwn99.js +0 -1286
- package/dist/chunks/vendor-floating-ui-gr9m6tsa1cpqwn99.js.map +0 -1
- package/dist/chunks/vendor-utils-fxk97j6xi1g42z2v.js +0 -740
- package/dist/chunks/vendor-utils-fxk97j6xi1g42z2v.js.map +0 -1
- package/dist/src/components/input/input-group.d.ts +0 -39
- package/dist/src/components/input/input-group.d.ts.map +0 -1
|
@@ -1,1286 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as O from "react";
|
|
3
|
-
import { useLayoutEffect as Xt } from "react";
|
|
4
|
-
import * as qt from "react-dom";
|
|
5
|
-
function at() {
|
|
6
|
-
return typeof window < "u";
|
|
7
|
-
}
|
|
8
|
-
function Z(t) {
|
|
9
|
-
return kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
10
|
-
}
|
|
11
|
-
function M(t) {
|
|
12
|
-
var e;
|
|
13
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
14
|
-
}
|
|
15
|
-
function H(t) {
|
|
16
|
-
var e;
|
|
17
|
-
return (e = (kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
18
|
-
}
|
|
19
|
-
function kt(t) {
|
|
20
|
-
return at() ? t instanceof Node || t instanceof M(t).Node : !1;
|
|
21
|
-
}
|
|
22
|
-
function F(t) {
|
|
23
|
-
return at() ? t instanceof Element || t instanceof M(t).Element : !1;
|
|
24
|
-
}
|
|
25
|
-
function N(t) {
|
|
26
|
-
return at() ? t instanceof HTMLElement || t instanceof M(t).HTMLElement : !1;
|
|
27
|
-
}
|
|
28
|
-
function At(t) {
|
|
29
|
-
return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof M(t).ShadowRoot;
|
|
30
|
-
}
|
|
31
|
-
const Yt = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
32
|
-
function nt(t) {
|
|
33
|
-
const {
|
|
34
|
-
overflow: e,
|
|
35
|
-
overflowX: n,
|
|
36
|
-
overflowY: o,
|
|
37
|
-
display: i
|
|
38
|
-
} = W(t);
|
|
39
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Yt.has(i);
|
|
40
|
-
}
|
|
41
|
-
const Ut = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
42
|
-
function Kt(t) {
|
|
43
|
-
return Ut.has(Z(t));
|
|
44
|
-
}
|
|
45
|
-
const Gt = [":popover-open", ":modal"];
|
|
46
|
-
function ut(t) {
|
|
47
|
-
return Gt.some((e) => {
|
|
48
|
-
try {
|
|
49
|
-
return t.matches(e);
|
|
50
|
-
} catch {
|
|
51
|
-
return !1;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
const Jt = ["transform", "translate", "scale", "rotate", "perspective"], Qt = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Zt = ["paint", "layout", "strict", "content"];
|
|
56
|
-
function xt(t) {
|
|
57
|
-
const e = yt(), n = F(t) ? W(t) : t;
|
|
58
|
-
return Jt.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Qt.some((o) => (n.willChange || "").includes(o)) || Zt.some((o) => (n.contain || "").includes(o));
|
|
59
|
-
}
|
|
60
|
-
function te(t) {
|
|
61
|
-
let e = q(t);
|
|
62
|
-
for (; N(e) && !J(e); ) {
|
|
63
|
-
if (xt(e))
|
|
64
|
-
return e;
|
|
65
|
-
if (ut(e))
|
|
66
|
-
return null;
|
|
67
|
-
e = q(e);
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
function yt() {
|
|
72
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
73
|
-
}
|
|
74
|
-
const ee = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
75
|
-
function J(t) {
|
|
76
|
-
return ee.has(Z(t));
|
|
77
|
-
}
|
|
78
|
-
function W(t) {
|
|
79
|
-
return M(t).getComputedStyle(t);
|
|
80
|
-
}
|
|
81
|
-
function dt(t) {
|
|
82
|
-
return F(t) ? {
|
|
83
|
-
scrollLeft: t.scrollLeft,
|
|
84
|
-
scrollTop: t.scrollTop
|
|
85
|
-
} : {
|
|
86
|
-
scrollLeft: t.scrollX,
|
|
87
|
-
scrollTop: t.scrollY
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function q(t) {
|
|
91
|
-
if (Z(t) === "html")
|
|
92
|
-
return t;
|
|
93
|
-
const e = (
|
|
94
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
95
|
-
t.assignedSlot || // DOM Element detected.
|
|
96
|
-
t.parentNode || // ShadowRoot detected.
|
|
97
|
-
At(t) && t.host || // Fallback.
|
|
98
|
-
H(t)
|
|
99
|
-
);
|
|
100
|
-
return At(e) ? e.host : e;
|
|
101
|
-
}
|
|
102
|
-
function Ft(t) {
|
|
103
|
-
const e = q(t);
|
|
104
|
-
return J(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : N(e) && nt(e) ? e : Ft(e);
|
|
105
|
-
}
|
|
106
|
-
function tt(t, e, n) {
|
|
107
|
-
var o;
|
|
108
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
109
|
-
const i = Ft(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = M(i);
|
|
110
|
-
if (s) {
|
|
111
|
-
const c = pt(r);
|
|
112
|
-
return e.concat(r, r.visualViewport || [], nt(i) ? i : [], c && n ? tt(c) : []);
|
|
113
|
-
}
|
|
114
|
-
return e.concat(i, tt(i, [], n));
|
|
115
|
-
}
|
|
116
|
-
function pt(t) {
|
|
117
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
118
|
-
}
|
|
119
|
-
const ne = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, rt = Math.round, it = Math.floor, V = (t) => ({
|
|
120
|
-
x: t,
|
|
121
|
-
y: t
|
|
122
|
-
}), oe = {
|
|
123
|
-
left: "right",
|
|
124
|
-
right: "left",
|
|
125
|
-
bottom: "top",
|
|
126
|
-
top: "bottom"
|
|
127
|
-
}, ie = {
|
|
128
|
-
start: "end",
|
|
129
|
-
end: "start"
|
|
130
|
-
};
|
|
131
|
-
function Rt(t, e, n) {
|
|
132
|
-
return T(t, Q(e, n));
|
|
133
|
-
}
|
|
134
|
-
function Y(t, e) {
|
|
135
|
-
return typeof t == "function" ? t(e) : t;
|
|
136
|
-
}
|
|
137
|
-
function j(t) {
|
|
138
|
-
return t.split("-")[0];
|
|
139
|
-
}
|
|
140
|
-
function ot(t) {
|
|
141
|
-
return t.split("-")[1];
|
|
142
|
-
}
|
|
143
|
-
function vt(t) {
|
|
144
|
-
return t === "x" ? "y" : "x";
|
|
145
|
-
}
|
|
146
|
-
function Wt(t) {
|
|
147
|
-
return t === "y" ? "height" : "width";
|
|
148
|
-
}
|
|
149
|
-
const se = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
150
|
-
function $(t) {
|
|
151
|
-
return se.has(j(t)) ? "y" : "x";
|
|
152
|
-
}
|
|
153
|
-
function Bt(t) {
|
|
154
|
-
return vt($(t));
|
|
155
|
-
}
|
|
156
|
-
function re(t, e, n) {
|
|
157
|
-
n === void 0 && (n = !1);
|
|
158
|
-
const o = ot(t), i = Bt(t), s = Wt(i);
|
|
159
|
-
let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
160
|
-
return e.reference[s] > e.floating[s] && (r = ct(r)), [r, ct(r)];
|
|
161
|
-
}
|
|
162
|
-
function ce(t) {
|
|
163
|
-
const e = ct(t);
|
|
164
|
-
return [wt(t), e, wt(e)];
|
|
165
|
-
}
|
|
166
|
-
function wt(t) {
|
|
167
|
-
return t.replace(/start|end/g, (e) => ie[e]);
|
|
168
|
-
}
|
|
169
|
-
const St = ["left", "right"], Ot = ["right", "left"], le = ["top", "bottom"], fe = ["bottom", "top"];
|
|
170
|
-
function ae(t, e, n) {
|
|
171
|
-
switch (t) {
|
|
172
|
-
case "top":
|
|
173
|
-
case "bottom":
|
|
174
|
-
return n ? e ? Ot : St : e ? St : Ot;
|
|
175
|
-
case "left":
|
|
176
|
-
case "right":
|
|
177
|
-
return e ? le : fe;
|
|
178
|
-
default:
|
|
179
|
-
return [];
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
function ue(t, e, n, o) {
|
|
183
|
-
const i = ot(t);
|
|
184
|
-
let s = ae(j(t), n === "start", o);
|
|
185
|
-
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(wt)))), s;
|
|
186
|
-
}
|
|
187
|
-
function ct(t) {
|
|
188
|
-
return t.replace(/left|right|bottom|top/g, (e) => oe[e]);
|
|
189
|
-
}
|
|
190
|
-
function de(t) {
|
|
191
|
-
return {
|
|
192
|
-
top: 0,
|
|
193
|
-
right: 0,
|
|
194
|
-
bottom: 0,
|
|
195
|
-
left: 0,
|
|
196
|
-
...t
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function me(t) {
|
|
200
|
-
return typeof t != "number" ? de(t) : {
|
|
201
|
-
top: t,
|
|
202
|
-
right: t,
|
|
203
|
-
bottom: t,
|
|
204
|
-
left: t
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
function lt(t) {
|
|
208
|
-
const {
|
|
209
|
-
x: e,
|
|
210
|
-
y: n,
|
|
211
|
-
width: o,
|
|
212
|
-
height: i
|
|
213
|
-
} = t;
|
|
214
|
-
return {
|
|
215
|
-
width: o,
|
|
216
|
-
height: i,
|
|
217
|
-
top: n,
|
|
218
|
-
left: e,
|
|
219
|
-
right: e + o,
|
|
220
|
-
bottom: n + i,
|
|
221
|
-
x: e,
|
|
222
|
-
y: n
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
function Ct(t, e, n) {
|
|
226
|
-
let {
|
|
227
|
-
reference: o,
|
|
228
|
-
floating: i
|
|
229
|
-
} = t;
|
|
230
|
-
const s = $(e), r = Bt(e), c = Wt(r), f = j(e), a = s === "y", l = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[c] / 2 - i[c] / 2;
|
|
231
|
-
let d;
|
|
232
|
-
switch (f) {
|
|
233
|
-
case "top":
|
|
234
|
-
d = {
|
|
235
|
-
x: l,
|
|
236
|
-
y: o.y - i.height
|
|
237
|
-
};
|
|
238
|
-
break;
|
|
239
|
-
case "bottom":
|
|
240
|
-
d = {
|
|
241
|
-
x: l,
|
|
242
|
-
y: o.y + o.height
|
|
243
|
-
};
|
|
244
|
-
break;
|
|
245
|
-
case "right":
|
|
246
|
-
d = {
|
|
247
|
-
x: o.x + o.width,
|
|
248
|
-
y: u
|
|
249
|
-
};
|
|
250
|
-
break;
|
|
251
|
-
case "left":
|
|
252
|
-
d = {
|
|
253
|
-
x: o.x - i.width,
|
|
254
|
-
y: u
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
257
|
-
default:
|
|
258
|
-
d = {
|
|
259
|
-
x: o.x,
|
|
260
|
-
y: o.y
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
switch (ot(e)) {
|
|
264
|
-
case "start":
|
|
265
|
-
d[r] -= m * (n && a ? -1 : 1);
|
|
266
|
-
break;
|
|
267
|
-
case "end":
|
|
268
|
-
d[r] += m * (n && a ? -1 : 1);
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
return d;
|
|
272
|
-
}
|
|
273
|
-
const he = async (t, e, n) => {
|
|
274
|
-
const {
|
|
275
|
-
placement: o = "bottom",
|
|
276
|
-
strategy: i = "absolute",
|
|
277
|
-
middleware: s = [],
|
|
278
|
-
platform: r
|
|
279
|
-
} = n, c = s.filter(Boolean), f = await (r.isRTL == null ? void 0 : r.isRTL(e));
|
|
280
|
-
let a = await r.getElementRects({
|
|
281
|
-
reference: t,
|
|
282
|
-
floating: e,
|
|
283
|
-
strategy: i
|
|
284
|
-
}), {
|
|
285
|
-
x: l,
|
|
286
|
-
y: u
|
|
287
|
-
} = Ct(a, o, f), m = o, d = {}, h = 0;
|
|
288
|
-
for (let p = 0; p < c.length; p++) {
|
|
289
|
-
const {
|
|
290
|
-
name: w,
|
|
291
|
-
fn: g
|
|
292
|
-
} = c[p], {
|
|
293
|
-
x,
|
|
294
|
-
y: v,
|
|
295
|
-
data: b,
|
|
296
|
-
reset: y
|
|
297
|
-
} = await g({
|
|
298
|
-
x: l,
|
|
299
|
-
y: u,
|
|
300
|
-
initialPlacement: o,
|
|
301
|
-
placement: m,
|
|
302
|
-
strategy: i,
|
|
303
|
-
middlewareData: d,
|
|
304
|
-
rects: a,
|
|
305
|
-
platform: r,
|
|
306
|
-
elements: {
|
|
307
|
-
reference: t,
|
|
308
|
-
floating: e
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
l = x ?? l, u = v ?? u, d = {
|
|
312
|
-
...d,
|
|
313
|
-
[w]: {
|
|
314
|
-
...d[w],
|
|
315
|
-
...b
|
|
316
|
-
}
|
|
317
|
-
}, y && h <= 50 && (h++, typeof y == "object" && (y.placement && (m = y.placement), y.rects && (a = y.rects === !0 ? await r.getElementRects({
|
|
318
|
-
reference: t,
|
|
319
|
-
floating: e,
|
|
320
|
-
strategy: i
|
|
321
|
-
}) : y.rects), {
|
|
322
|
-
x: l,
|
|
323
|
-
y: u
|
|
324
|
-
} = Ct(a, m, f)), p = -1);
|
|
325
|
-
}
|
|
326
|
-
return {
|
|
327
|
-
x: l,
|
|
328
|
-
y: u,
|
|
329
|
-
placement: m,
|
|
330
|
-
strategy: i,
|
|
331
|
-
middlewareData: d
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
async function et(t, e) {
|
|
335
|
-
var n;
|
|
336
|
-
e === void 0 && (e = {});
|
|
337
|
-
const {
|
|
338
|
-
x: o,
|
|
339
|
-
y: i,
|
|
340
|
-
platform: s,
|
|
341
|
-
rects: r,
|
|
342
|
-
elements: c,
|
|
343
|
-
strategy: f
|
|
344
|
-
} = t, {
|
|
345
|
-
boundary: a = "clippingAncestors",
|
|
346
|
-
rootBoundary: l = "viewport",
|
|
347
|
-
elementContext: u = "floating",
|
|
348
|
-
altBoundary: m = !1,
|
|
349
|
-
padding: d = 0
|
|
350
|
-
} = Y(e, t), h = me(d), w = c[m ? u === "floating" ? "reference" : "floating" : u], g = lt(await s.getClippingRect({
|
|
351
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(c.floating)),
|
|
352
|
-
boundary: a,
|
|
353
|
-
rootBoundary: l,
|
|
354
|
-
strategy: f
|
|
355
|
-
})), x = u === "floating" ? {
|
|
356
|
-
x: o,
|
|
357
|
-
y: i,
|
|
358
|
-
width: r.floating.width,
|
|
359
|
-
height: r.floating.height
|
|
360
|
-
} : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c.floating)), b = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
|
|
361
|
-
x: 1,
|
|
362
|
-
y: 1
|
|
363
|
-
} : {
|
|
364
|
-
x: 1,
|
|
365
|
-
y: 1
|
|
366
|
-
}, y = lt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
367
|
-
elements: c,
|
|
368
|
-
rect: x,
|
|
369
|
-
offsetParent: v,
|
|
370
|
-
strategy: f
|
|
371
|
-
}) : x);
|
|
372
|
-
return {
|
|
373
|
-
top: (g.top - y.top + h.top) / b.y,
|
|
374
|
-
bottom: (y.bottom - g.bottom + h.bottom) / b.y,
|
|
375
|
-
left: (g.left - y.left + h.left) / b.x,
|
|
376
|
-
right: (y.right - g.right + h.right) / b.x
|
|
377
|
-
};
|
|
378
|
-
}
|
|
379
|
-
const ge = function(t) {
|
|
380
|
-
return t === void 0 && (t = {}), {
|
|
381
|
-
name: "flip",
|
|
382
|
-
options: t,
|
|
383
|
-
async fn(e) {
|
|
384
|
-
var n, o;
|
|
385
|
-
const {
|
|
386
|
-
placement: i,
|
|
387
|
-
middlewareData: s,
|
|
388
|
-
rects: r,
|
|
389
|
-
initialPlacement: c,
|
|
390
|
-
platform: f,
|
|
391
|
-
elements: a
|
|
392
|
-
} = e, {
|
|
393
|
-
mainAxis: l = !0,
|
|
394
|
-
crossAxis: u = !0,
|
|
395
|
-
fallbackPlacements: m,
|
|
396
|
-
fallbackStrategy: d = "bestFit",
|
|
397
|
-
fallbackAxisSideDirection: h = "none",
|
|
398
|
-
flipAlignment: p = !0,
|
|
399
|
-
...w
|
|
400
|
-
} = Y(t, e);
|
|
401
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
402
|
-
return {};
|
|
403
|
-
const g = j(i), x = $(c), v = j(c) === c, b = await (f.isRTL == null ? void 0 : f.isRTL(a.floating)), y = m || (v || !p ? [ct(c)] : ce(c)), R = h !== "none";
|
|
404
|
-
!m && R && y.push(...ue(c, p, h, b));
|
|
405
|
-
const S = [c, ...y], D = await et(e, w), _ = [];
|
|
406
|
-
let C = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
407
|
-
if (l && _.push(D[g]), u) {
|
|
408
|
-
const k = re(i, r, b);
|
|
409
|
-
_.push(D[k[0]], D[k[1]]);
|
|
410
|
-
}
|
|
411
|
-
if (C = [...C, {
|
|
412
|
-
placement: i,
|
|
413
|
-
overflows: _
|
|
414
|
-
}], !_.every((k) => k <= 0)) {
|
|
415
|
-
var z, I;
|
|
416
|
-
const k = (((z = s.flip) == null ? void 0 : z.index) || 0) + 1, K = S[k];
|
|
417
|
-
if (K && (!(u === "alignment" ? x !== $(K) : !1) || // We leave the current main axis only if every placement on that axis
|
|
418
|
-
// overflows the main axis.
|
|
419
|
-
C.every((A) => $(A.placement) === x ? A.overflows[0] > 0 : !0)))
|
|
420
|
-
return {
|
|
421
|
-
data: {
|
|
422
|
-
index: k,
|
|
423
|
-
overflows: C
|
|
424
|
-
},
|
|
425
|
-
reset: {
|
|
426
|
-
placement: K
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
let L = (I = C.filter((B) => B.overflows[0] <= 0).sort((B, A) => B.overflows[1] - A.overflows[1])[0]) == null ? void 0 : I.placement;
|
|
430
|
-
if (!L)
|
|
431
|
-
switch (d) {
|
|
432
|
-
case "bestFit": {
|
|
433
|
-
var P;
|
|
434
|
-
const B = (P = C.filter((A) => {
|
|
435
|
-
if (R) {
|
|
436
|
-
const E = $(A.placement);
|
|
437
|
-
return E === x || // Create a bias to the `y` side axis due to horizontal
|
|
438
|
-
// reading directions favoring greater width.
|
|
439
|
-
E === "y";
|
|
440
|
-
}
|
|
441
|
-
return !0;
|
|
442
|
-
}).map((A) => [A.placement, A.overflows.filter((E) => E > 0).reduce((E, X) => E + X, 0)]).sort((A, E) => A[1] - E[1])[0]) == null ? void 0 : P[0];
|
|
443
|
-
B && (L = B);
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
case "initialPlacement":
|
|
447
|
-
L = c;
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
if (i !== L)
|
|
451
|
-
return {
|
|
452
|
-
reset: {
|
|
453
|
-
placement: L
|
|
454
|
-
}
|
|
455
|
-
};
|
|
456
|
-
}
|
|
457
|
-
return {};
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
function Lt(t, e) {
|
|
462
|
-
return {
|
|
463
|
-
top: t.top - e.height,
|
|
464
|
-
right: t.right - e.width,
|
|
465
|
-
bottom: t.bottom - e.height,
|
|
466
|
-
left: t.left - e.width
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function Et(t) {
|
|
470
|
-
return ne.some((e) => t[e] >= 0);
|
|
471
|
-
}
|
|
472
|
-
const pe = function(t) {
|
|
473
|
-
return t === void 0 && (t = {}), {
|
|
474
|
-
name: "hide",
|
|
475
|
-
options: t,
|
|
476
|
-
async fn(e) {
|
|
477
|
-
const {
|
|
478
|
-
rects: n
|
|
479
|
-
} = e, {
|
|
480
|
-
strategy: o = "referenceHidden",
|
|
481
|
-
...i
|
|
482
|
-
} = Y(t, e);
|
|
483
|
-
switch (o) {
|
|
484
|
-
case "referenceHidden": {
|
|
485
|
-
const s = await et(e, {
|
|
486
|
-
...i,
|
|
487
|
-
elementContext: "reference"
|
|
488
|
-
}), r = Lt(s, n.reference);
|
|
489
|
-
return {
|
|
490
|
-
data: {
|
|
491
|
-
referenceHiddenOffsets: r,
|
|
492
|
-
referenceHidden: Et(r)
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
case "escaped": {
|
|
497
|
-
const s = await et(e, {
|
|
498
|
-
...i,
|
|
499
|
-
altBoundary: !0
|
|
500
|
-
}), r = Lt(s, n.floating);
|
|
501
|
-
return {
|
|
502
|
-
data: {
|
|
503
|
-
escapedOffsets: r,
|
|
504
|
-
escaped: Et(r)
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
default:
|
|
509
|
-
return {};
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
};
|
|
513
|
-
}, $t = /* @__PURE__ */ new Set(["left", "top"]);
|
|
514
|
-
async function we(t, e) {
|
|
515
|
-
const {
|
|
516
|
-
placement: n,
|
|
517
|
-
platform: o,
|
|
518
|
-
elements: i
|
|
519
|
-
} = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = j(n), c = ot(n), f = $(n) === "y", a = $t.has(r) ? -1 : 1, l = s && f ? -1 : 1, u = Y(e, t);
|
|
520
|
-
let {
|
|
521
|
-
mainAxis: m,
|
|
522
|
-
crossAxis: d,
|
|
523
|
-
alignmentAxis: h
|
|
524
|
-
} = typeof u == "number" ? {
|
|
525
|
-
mainAxis: u,
|
|
526
|
-
crossAxis: 0,
|
|
527
|
-
alignmentAxis: null
|
|
528
|
-
} : {
|
|
529
|
-
mainAxis: u.mainAxis || 0,
|
|
530
|
-
crossAxis: u.crossAxis || 0,
|
|
531
|
-
alignmentAxis: u.alignmentAxis
|
|
532
|
-
};
|
|
533
|
-
return c && typeof h == "number" && (d = c === "end" ? h * -1 : h), f ? {
|
|
534
|
-
x: d * l,
|
|
535
|
-
y: m * a
|
|
536
|
-
} : {
|
|
537
|
-
x: m * a,
|
|
538
|
-
y: d * l
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
const xe = function(t) {
|
|
542
|
-
return t === void 0 && (t = 0), {
|
|
543
|
-
name: "offset",
|
|
544
|
-
options: t,
|
|
545
|
-
async fn(e) {
|
|
546
|
-
var n, o;
|
|
547
|
-
const {
|
|
548
|
-
x: i,
|
|
549
|
-
y: s,
|
|
550
|
-
placement: r,
|
|
551
|
-
middlewareData: c
|
|
552
|
-
} = e, f = await we(e, t);
|
|
553
|
-
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
554
|
-
x: i + f.x,
|
|
555
|
-
y: s + f.y,
|
|
556
|
-
data: {
|
|
557
|
-
...f,
|
|
558
|
-
placement: r
|
|
559
|
-
}
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
}, ye = function(t) {
|
|
564
|
-
return t === void 0 && (t = {}), {
|
|
565
|
-
name: "shift",
|
|
566
|
-
options: t,
|
|
567
|
-
async fn(e) {
|
|
568
|
-
const {
|
|
569
|
-
x: n,
|
|
570
|
-
y: o,
|
|
571
|
-
placement: i
|
|
572
|
-
} = e, {
|
|
573
|
-
mainAxis: s = !0,
|
|
574
|
-
crossAxis: r = !1,
|
|
575
|
-
limiter: c = {
|
|
576
|
-
fn: (w) => {
|
|
577
|
-
let {
|
|
578
|
-
x: g,
|
|
579
|
-
y: x
|
|
580
|
-
} = w;
|
|
581
|
-
return {
|
|
582
|
-
x: g,
|
|
583
|
-
y: x
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
...f
|
|
588
|
-
} = Y(t, e), a = {
|
|
589
|
-
x: n,
|
|
590
|
-
y: o
|
|
591
|
-
}, l = await et(e, f), u = $(j(i)), m = vt(u);
|
|
592
|
-
let d = a[m], h = a[u];
|
|
593
|
-
if (s) {
|
|
594
|
-
const w = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", x = d + l[w], v = d - l[g];
|
|
595
|
-
d = Rt(x, d, v);
|
|
596
|
-
}
|
|
597
|
-
if (r) {
|
|
598
|
-
const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = h + l[w], v = h - l[g];
|
|
599
|
-
h = Rt(x, h, v);
|
|
600
|
-
}
|
|
601
|
-
const p = c.fn({
|
|
602
|
-
...e,
|
|
603
|
-
[m]: d,
|
|
604
|
-
[u]: h
|
|
605
|
-
});
|
|
606
|
-
return {
|
|
607
|
-
...p,
|
|
608
|
-
data: {
|
|
609
|
-
x: p.x - n,
|
|
610
|
-
y: p.y - o,
|
|
611
|
-
enabled: {
|
|
612
|
-
[m]: s,
|
|
613
|
-
[u]: r
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
}, ve = function(t) {
|
|
620
|
-
return t === void 0 && (t = {}), {
|
|
621
|
-
options: t,
|
|
622
|
-
fn(e) {
|
|
623
|
-
const {
|
|
624
|
-
x: n,
|
|
625
|
-
y: o,
|
|
626
|
-
placement: i,
|
|
627
|
-
rects: s,
|
|
628
|
-
middlewareData: r
|
|
629
|
-
} = e, {
|
|
630
|
-
offset: c = 0,
|
|
631
|
-
mainAxis: f = !0,
|
|
632
|
-
crossAxis: a = !0
|
|
633
|
-
} = Y(t, e), l = {
|
|
634
|
-
x: n,
|
|
635
|
-
y: o
|
|
636
|
-
}, u = $(i), m = vt(u);
|
|
637
|
-
let d = l[m], h = l[u];
|
|
638
|
-
const p = Y(c, e), w = typeof p == "number" ? {
|
|
639
|
-
mainAxis: p,
|
|
640
|
-
crossAxis: 0
|
|
641
|
-
} : {
|
|
642
|
-
mainAxis: 0,
|
|
643
|
-
crossAxis: 0,
|
|
644
|
-
...p
|
|
645
|
-
};
|
|
646
|
-
if (f) {
|
|
647
|
-
const v = m === "y" ? "height" : "width", b = s.reference[m] - s.floating[v] + w.mainAxis, y = s.reference[m] + s.reference[v] - w.mainAxis;
|
|
648
|
-
d < b ? d = b : d > y && (d = y);
|
|
649
|
-
}
|
|
650
|
-
if (a) {
|
|
651
|
-
var g, x;
|
|
652
|
-
const v = m === "y" ? "width" : "height", b = $t.has(j(i)), y = s.reference[u] - s.floating[v] + (b && ((g = r.offset) == null ? void 0 : g[u]) || 0) + (b ? 0 : w.crossAxis), R = s.reference[u] + s.reference[v] + (b ? 0 : ((x = r.offset) == null ? void 0 : x[u]) || 0) - (b ? w.crossAxis : 0);
|
|
653
|
-
h < y ? h = y : h > R && (h = R);
|
|
654
|
-
}
|
|
655
|
-
return {
|
|
656
|
-
[m]: d,
|
|
657
|
-
[u]: h
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
}, be = function(t) {
|
|
662
|
-
return t === void 0 && (t = {}), {
|
|
663
|
-
name: "size",
|
|
664
|
-
options: t,
|
|
665
|
-
async fn(e) {
|
|
666
|
-
var n, o;
|
|
667
|
-
const {
|
|
668
|
-
placement: i,
|
|
669
|
-
rects: s,
|
|
670
|
-
platform: r,
|
|
671
|
-
elements: c
|
|
672
|
-
} = e, {
|
|
673
|
-
apply: f = () => {
|
|
674
|
-
},
|
|
675
|
-
...a
|
|
676
|
-
} = Y(t, e), l = await et(e, a), u = j(i), m = ot(i), d = $(i) === "y", {
|
|
677
|
-
width: h,
|
|
678
|
-
height: p
|
|
679
|
-
} = s.floating;
|
|
680
|
-
let w, g;
|
|
681
|
-
u === "top" || u === "bottom" ? (w = u, g = m === (await (r.isRTL == null ? void 0 : r.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = m === "end" ? "top" : "bottom");
|
|
682
|
-
const x = p - l.top - l.bottom, v = h - l.left - l.right, b = Q(p - l[w], x), y = Q(h - l[g], v), R = !e.middlewareData.shift;
|
|
683
|
-
let S = b, D = y;
|
|
684
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = v), (o = e.middlewareData.shift) != null && o.enabled.y && (S = x), R && !m) {
|
|
685
|
-
const C = T(l.left, 0), z = T(l.right, 0), I = T(l.top, 0), P = T(l.bottom, 0);
|
|
686
|
-
d ? D = h - 2 * (C !== 0 || z !== 0 ? C + z : T(l.left, l.right)) : S = p - 2 * (I !== 0 || P !== 0 ? I + P : T(l.top, l.bottom));
|
|
687
|
-
}
|
|
688
|
-
await f({
|
|
689
|
-
...e,
|
|
690
|
-
availableWidth: D,
|
|
691
|
-
availableHeight: S
|
|
692
|
-
});
|
|
693
|
-
const _ = await r.getDimensions(c.floating);
|
|
694
|
-
return h !== _.width || p !== _.height ? {
|
|
695
|
-
reset: {
|
|
696
|
-
rects: !0
|
|
697
|
-
}
|
|
698
|
-
} : {};
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
|
-
function Vt(t) {
|
|
703
|
-
const e = W(t);
|
|
704
|
-
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
705
|
-
const i = N(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, c = rt(n) !== s || rt(o) !== r;
|
|
706
|
-
return c && (n = s, o = r), {
|
|
707
|
-
width: n,
|
|
708
|
-
height: o,
|
|
709
|
-
$: c
|
|
710
|
-
};
|
|
711
|
-
}
|
|
712
|
-
function bt(t) {
|
|
713
|
-
return F(t) ? t : t.contextElement;
|
|
714
|
-
}
|
|
715
|
-
function G(t) {
|
|
716
|
-
const e = bt(t);
|
|
717
|
-
if (!N(e))
|
|
718
|
-
return V(1);
|
|
719
|
-
const n = e.getBoundingClientRect(), {
|
|
720
|
-
width: o,
|
|
721
|
-
height: i,
|
|
722
|
-
$: s
|
|
723
|
-
} = Vt(e);
|
|
724
|
-
let r = (s ? rt(n.width) : n.width) / o, c = (s ? rt(n.height) : n.height) / i;
|
|
725
|
-
return (!r || !Number.isFinite(r)) && (r = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
726
|
-
x: r,
|
|
727
|
-
y: c
|
|
728
|
-
};
|
|
729
|
-
}
|
|
730
|
-
const Ae = /* @__PURE__ */ V(0);
|
|
731
|
-
function Nt(t) {
|
|
732
|
-
const e = M(t);
|
|
733
|
-
return !yt() || !e.visualViewport ? Ae : {
|
|
734
|
-
x: e.visualViewport.offsetLeft,
|
|
735
|
-
y: e.visualViewport.offsetTop
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
function Re(t, e, n) {
|
|
739
|
-
return e === void 0 && (e = !1), !n || e && n !== M(t) ? !1 : e;
|
|
740
|
-
}
|
|
741
|
-
function U(t, e, n, o) {
|
|
742
|
-
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
743
|
-
const i = t.getBoundingClientRect(), s = bt(t);
|
|
744
|
-
let r = V(1);
|
|
745
|
-
e && (o ? F(o) && (r = G(o)) : r = G(t));
|
|
746
|
-
const c = Re(s, n, o) ? Nt(s) : V(0);
|
|
747
|
-
let f = (i.left + c.x) / r.x, a = (i.top + c.y) / r.y, l = i.width / r.x, u = i.height / r.y;
|
|
748
|
-
if (s) {
|
|
749
|
-
const m = M(s), d = o && F(o) ? M(o) : o;
|
|
750
|
-
let h = m, p = pt(h);
|
|
751
|
-
for (; p && o && d !== h; ) {
|
|
752
|
-
const w = G(p), g = p.getBoundingClientRect(), x = W(p), v = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, b = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
753
|
-
f *= w.x, a *= w.y, l *= w.x, u *= w.y, f += v, a += b, h = M(p), p = pt(h);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
return lt({
|
|
757
|
-
width: l,
|
|
758
|
-
height: u,
|
|
759
|
-
x: f,
|
|
760
|
-
y: a
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
function mt(t, e) {
|
|
764
|
-
const n = dt(t).scrollLeft;
|
|
765
|
-
return e ? e.left + n : U(H(t)).left + n;
|
|
766
|
-
}
|
|
767
|
-
function Ht(t, e) {
|
|
768
|
-
const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - mt(t, n), i = n.top + e.scrollTop;
|
|
769
|
-
return {
|
|
770
|
-
x: o,
|
|
771
|
-
y: i
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
function Se(t) {
|
|
775
|
-
let {
|
|
776
|
-
elements: e,
|
|
777
|
-
rect: n,
|
|
778
|
-
offsetParent: o,
|
|
779
|
-
strategy: i
|
|
780
|
-
} = t;
|
|
781
|
-
const s = i === "fixed", r = H(o), c = e ? ut(e.floating) : !1;
|
|
782
|
-
if (o === r || c && s)
|
|
783
|
-
return n;
|
|
784
|
-
let f = {
|
|
785
|
-
scrollLeft: 0,
|
|
786
|
-
scrollTop: 0
|
|
787
|
-
}, a = V(1);
|
|
788
|
-
const l = V(0), u = N(o);
|
|
789
|
-
if ((u || !u && !s) && ((Z(o) !== "body" || nt(r)) && (f = dt(o)), N(o))) {
|
|
790
|
-
const d = U(o);
|
|
791
|
-
a = G(o), l.x = d.x + o.clientLeft, l.y = d.y + o.clientTop;
|
|
792
|
-
}
|
|
793
|
-
const m = r && !u && !s ? Ht(r, f) : V(0);
|
|
794
|
-
return {
|
|
795
|
-
width: n.width * a.x,
|
|
796
|
-
height: n.height * a.y,
|
|
797
|
-
x: n.x * a.x - f.scrollLeft * a.x + l.x + m.x,
|
|
798
|
-
y: n.y * a.y - f.scrollTop * a.y + l.y + m.y
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
function Oe(t) {
|
|
802
|
-
return Array.from(t.getClientRects());
|
|
803
|
-
}
|
|
804
|
-
function Ce(t) {
|
|
805
|
-
const e = H(t), n = dt(t), o = t.ownerDocument.body, i = T(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = T(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
806
|
-
let r = -n.scrollLeft + mt(t);
|
|
807
|
-
const c = -n.scrollTop;
|
|
808
|
-
return W(o).direction === "rtl" && (r += T(e.clientWidth, o.clientWidth) - i), {
|
|
809
|
-
width: i,
|
|
810
|
-
height: s,
|
|
811
|
-
x: r,
|
|
812
|
-
y: c
|
|
813
|
-
};
|
|
814
|
-
}
|
|
815
|
-
const Tt = 25;
|
|
816
|
-
function Le(t, e) {
|
|
817
|
-
const n = M(t), o = H(t), i = n.visualViewport;
|
|
818
|
-
let s = o.clientWidth, r = o.clientHeight, c = 0, f = 0;
|
|
819
|
-
if (i) {
|
|
820
|
-
s = i.width, r = i.height;
|
|
821
|
-
const l = yt();
|
|
822
|
-
(!l || l && e === "fixed") && (c = i.offsetLeft, f = i.offsetTop);
|
|
823
|
-
}
|
|
824
|
-
const a = mt(o);
|
|
825
|
-
if (a <= 0) {
|
|
826
|
-
const l = o.ownerDocument, u = l.body, m = getComputedStyle(u), d = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
|
|
827
|
-
h <= Tt && (s -= h);
|
|
828
|
-
} else a <= Tt && (s += a);
|
|
829
|
-
return {
|
|
830
|
-
width: s,
|
|
831
|
-
height: r,
|
|
832
|
-
x: c,
|
|
833
|
-
y: f
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
const Ee = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
837
|
-
function Te(t, e) {
|
|
838
|
-
const n = U(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = N(t) ? G(t) : V(1), r = t.clientWidth * s.x, c = t.clientHeight * s.y, f = i * s.x, a = o * s.y;
|
|
839
|
-
return {
|
|
840
|
-
width: r,
|
|
841
|
-
height: c,
|
|
842
|
-
x: f,
|
|
843
|
-
y: a
|
|
844
|
-
};
|
|
845
|
-
}
|
|
846
|
-
function Mt(t, e, n) {
|
|
847
|
-
let o;
|
|
848
|
-
if (e === "viewport")
|
|
849
|
-
o = Le(t, n);
|
|
850
|
-
else if (e === "document")
|
|
851
|
-
o = Ce(H(t));
|
|
852
|
-
else if (F(e))
|
|
853
|
-
o = Te(e, n);
|
|
854
|
-
else {
|
|
855
|
-
const i = Nt(t);
|
|
856
|
-
o = {
|
|
857
|
-
x: e.x - i.x,
|
|
858
|
-
y: e.y - i.y,
|
|
859
|
-
width: e.width,
|
|
860
|
-
height: e.height
|
|
861
|
-
};
|
|
862
|
-
}
|
|
863
|
-
return lt(o);
|
|
864
|
-
}
|
|
865
|
-
function _t(t, e) {
|
|
866
|
-
const n = q(t);
|
|
867
|
-
return n === e || !F(n) || J(n) ? !1 : W(n).position === "fixed" || _t(n, e);
|
|
868
|
-
}
|
|
869
|
-
function Me(t, e) {
|
|
870
|
-
const n = e.get(t);
|
|
871
|
-
if (n)
|
|
872
|
-
return n;
|
|
873
|
-
let o = tt(t, [], !1).filter((c) => F(c) && Z(c) !== "body"), i = null;
|
|
874
|
-
const s = W(t).position === "fixed";
|
|
875
|
-
let r = s ? q(t) : t;
|
|
876
|
-
for (; F(r) && !J(r); ) {
|
|
877
|
-
const c = W(r), f = xt(r);
|
|
878
|
-
!f && c.position === "fixed" && (i = null), (s ? !f && !i : !f && c.position === "static" && !!i && Ee.has(i.position) || nt(r) && !f && _t(t, r)) ? o = o.filter((l) => l !== r) : i = c, r = q(r);
|
|
879
|
-
}
|
|
880
|
-
return e.set(t, o), o;
|
|
881
|
-
}
|
|
882
|
-
function De(t) {
|
|
883
|
-
let {
|
|
884
|
-
element: e,
|
|
885
|
-
boundary: n,
|
|
886
|
-
rootBoundary: o,
|
|
887
|
-
strategy: i
|
|
888
|
-
} = t;
|
|
889
|
-
const r = [...n === "clippingAncestors" ? ut(e) ? [] : Me(e, this._c) : [].concat(n), o], c = r[0], f = r.reduce((a, l) => {
|
|
890
|
-
const u = Mt(e, l, i);
|
|
891
|
-
return a.top = T(u.top, a.top), a.right = Q(u.right, a.right), a.bottom = Q(u.bottom, a.bottom), a.left = T(u.left, a.left), a;
|
|
892
|
-
}, Mt(e, c, i));
|
|
893
|
-
return {
|
|
894
|
-
width: f.right - f.left,
|
|
895
|
-
height: f.bottom - f.top,
|
|
896
|
-
x: f.left,
|
|
897
|
-
y: f.top
|
|
898
|
-
};
|
|
899
|
-
}
|
|
900
|
-
function Pe(t) {
|
|
901
|
-
const {
|
|
902
|
-
width: e,
|
|
903
|
-
height: n
|
|
904
|
-
} = Vt(t);
|
|
905
|
-
return {
|
|
906
|
-
width: e,
|
|
907
|
-
height: n
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
function ke(t, e, n) {
|
|
911
|
-
const o = N(e), i = H(e), s = n === "fixed", r = U(t, !0, s, e);
|
|
912
|
-
let c = {
|
|
913
|
-
scrollLeft: 0,
|
|
914
|
-
scrollTop: 0
|
|
915
|
-
};
|
|
916
|
-
const f = V(0);
|
|
917
|
-
function a() {
|
|
918
|
-
f.x = mt(i);
|
|
919
|
-
}
|
|
920
|
-
if (o || !o && !s)
|
|
921
|
-
if ((Z(e) !== "body" || nt(i)) && (c = dt(e)), o) {
|
|
922
|
-
const d = U(e, !0, s, e);
|
|
923
|
-
f.x = d.x + e.clientLeft, f.y = d.y + e.clientTop;
|
|
924
|
-
} else i && a();
|
|
925
|
-
s && !o && i && a();
|
|
926
|
-
const l = i && !o && !s ? Ht(i, c) : V(0), u = r.left + c.scrollLeft - f.x - l.x, m = r.top + c.scrollTop - f.y - l.y;
|
|
927
|
-
return {
|
|
928
|
-
x: u,
|
|
929
|
-
y: m,
|
|
930
|
-
width: r.width,
|
|
931
|
-
height: r.height
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
function ht(t) {
|
|
935
|
-
return W(t).position === "static";
|
|
936
|
-
}
|
|
937
|
-
function Dt(t, e) {
|
|
938
|
-
if (!N(t) || W(t).position === "fixed")
|
|
939
|
-
return null;
|
|
940
|
-
if (e)
|
|
941
|
-
return e(t);
|
|
942
|
-
let n = t.offsetParent;
|
|
943
|
-
return H(t) === n && (n = n.ownerDocument.body), n;
|
|
944
|
-
}
|
|
945
|
-
function zt(t, e) {
|
|
946
|
-
const n = M(t);
|
|
947
|
-
if (ut(t))
|
|
948
|
-
return n;
|
|
949
|
-
if (!N(t)) {
|
|
950
|
-
let i = q(t);
|
|
951
|
-
for (; i && !J(i); ) {
|
|
952
|
-
if (F(i) && !ht(i))
|
|
953
|
-
return i;
|
|
954
|
-
i = q(i);
|
|
955
|
-
}
|
|
956
|
-
return n;
|
|
957
|
-
}
|
|
958
|
-
let o = Dt(t, e);
|
|
959
|
-
for (; o && Kt(o) && ht(o); )
|
|
960
|
-
o = Dt(o, e);
|
|
961
|
-
return o && J(o) && ht(o) && !xt(o) ? n : o || te(t) || n;
|
|
962
|
-
}
|
|
963
|
-
const Fe = async function(t) {
|
|
964
|
-
const e = this.getOffsetParent || zt, n = this.getDimensions, o = await n(t.floating);
|
|
965
|
-
return {
|
|
966
|
-
reference: ke(t.reference, await e(t.floating), t.strategy),
|
|
967
|
-
floating: {
|
|
968
|
-
x: 0,
|
|
969
|
-
y: 0,
|
|
970
|
-
width: o.width,
|
|
971
|
-
height: o.height
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
function We(t) {
|
|
976
|
-
return W(t).direction === "rtl";
|
|
977
|
-
}
|
|
978
|
-
const Be = {
|
|
979
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: Se,
|
|
980
|
-
getDocumentElement: H,
|
|
981
|
-
getClippingRect: De,
|
|
982
|
-
getOffsetParent: zt,
|
|
983
|
-
getElementRects: Fe,
|
|
984
|
-
getClientRects: Oe,
|
|
985
|
-
getDimensions: Pe,
|
|
986
|
-
getScale: G,
|
|
987
|
-
isElement: F,
|
|
988
|
-
isRTL: We
|
|
989
|
-
};
|
|
990
|
-
function jt(t, e) {
|
|
991
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
992
|
-
}
|
|
993
|
-
function $e(t, e) {
|
|
994
|
-
let n = null, o;
|
|
995
|
-
const i = H(t);
|
|
996
|
-
function s() {
|
|
997
|
-
var c;
|
|
998
|
-
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
999
|
-
}
|
|
1000
|
-
function r(c, f) {
|
|
1001
|
-
c === void 0 && (c = !1), f === void 0 && (f = 1), s();
|
|
1002
|
-
const a = t.getBoundingClientRect(), {
|
|
1003
|
-
left: l,
|
|
1004
|
-
top: u,
|
|
1005
|
-
width: m,
|
|
1006
|
-
height: d
|
|
1007
|
-
} = a;
|
|
1008
|
-
if (c || e(), !m || !d)
|
|
1009
|
-
return;
|
|
1010
|
-
const h = it(u), p = it(i.clientWidth - (l + m)), w = it(i.clientHeight - (u + d)), g = it(l), v = {
|
|
1011
|
-
rootMargin: -h + "px " + -p + "px " + -w + "px " + -g + "px",
|
|
1012
|
-
threshold: T(0, Q(1, f)) || 1
|
|
1013
|
-
};
|
|
1014
|
-
let b = !0;
|
|
1015
|
-
function y(R) {
|
|
1016
|
-
const S = R[0].intersectionRatio;
|
|
1017
|
-
if (S !== f) {
|
|
1018
|
-
if (!b)
|
|
1019
|
-
return r();
|
|
1020
|
-
S ? r(!1, S) : o = setTimeout(() => {
|
|
1021
|
-
r(!1, 1e-7);
|
|
1022
|
-
}, 1e3);
|
|
1023
|
-
}
|
|
1024
|
-
S === 1 && !jt(a, t.getBoundingClientRect()) && r(), b = !1;
|
|
1025
|
-
}
|
|
1026
|
-
try {
|
|
1027
|
-
n = new IntersectionObserver(y, {
|
|
1028
|
-
...v,
|
|
1029
|
-
// Handle <iframe>s
|
|
1030
|
-
root: i.ownerDocument
|
|
1031
|
-
});
|
|
1032
|
-
} catch {
|
|
1033
|
-
n = new IntersectionObserver(y, v);
|
|
1034
|
-
}
|
|
1035
|
-
n.observe(t);
|
|
1036
|
-
}
|
|
1037
|
-
return r(!0), s;
|
|
1038
|
-
}
|
|
1039
|
-
function Ue(t, e, n, o) {
|
|
1040
|
-
o === void 0 && (o = {});
|
|
1041
|
-
const {
|
|
1042
|
-
ancestorScroll: i = !0,
|
|
1043
|
-
ancestorResize: s = !0,
|
|
1044
|
-
elementResize: r = typeof ResizeObserver == "function",
|
|
1045
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1046
|
-
animationFrame: f = !1
|
|
1047
|
-
} = o, a = bt(t), l = i || s ? [...a ? tt(a) : [], ...tt(e)] : [];
|
|
1048
|
-
l.forEach((g) => {
|
|
1049
|
-
i && g.addEventListener("scroll", n, {
|
|
1050
|
-
passive: !0
|
|
1051
|
-
}), s && g.addEventListener("resize", n);
|
|
1052
|
-
});
|
|
1053
|
-
const u = a && c ? $e(a, n) : null;
|
|
1054
|
-
let m = -1, d = null;
|
|
1055
|
-
r && (d = new ResizeObserver((g) => {
|
|
1056
|
-
let [x] = g;
|
|
1057
|
-
x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1058
|
-
var v;
|
|
1059
|
-
(v = d) == null || v.observe(e);
|
|
1060
|
-
})), n();
|
|
1061
|
-
}), a && !f && d.observe(a), d.observe(e));
|
|
1062
|
-
let h, p = f ? U(t) : null;
|
|
1063
|
-
f && w();
|
|
1064
|
-
function w() {
|
|
1065
|
-
const g = U(t);
|
|
1066
|
-
p && !jt(p, g) && n(), p = g, h = requestAnimationFrame(w);
|
|
1067
|
-
}
|
|
1068
|
-
return n(), () => {
|
|
1069
|
-
var g;
|
|
1070
|
-
l.forEach((x) => {
|
|
1071
|
-
i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
|
|
1072
|
-
}), u?.(), (g = d) == null || g.disconnect(), d = null, f && cancelAnimationFrame(h);
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
const Ve = xe, Ne = ye, He = ge, _e = be, ze = pe, je = ve, Ie = (t, e, n) => {
|
|
1076
|
-
const o = /* @__PURE__ */ new Map(), i = {
|
|
1077
|
-
platform: Be,
|
|
1078
|
-
...n
|
|
1079
|
-
}, s = {
|
|
1080
|
-
...i.platform,
|
|
1081
|
-
_c: o
|
|
1082
|
-
};
|
|
1083
|
-
return he(t, e, {
|
|
1084
|
-
...i,
|
|
1085
|
-
platform: s
|
|
1086
|
-
});
|
|
1087
|
-
};
|
|
1088
|
-
var Xe = typeof document < "u", qe = function() {
|
|
1089
|
-
}, st = Xe ? Xt : qe;
|
|
1090
|
-
function ft(t, e) {
|
|
1091
|
-
if (t === e)
|
|
1092
|
-
return !0;
|
|
1093
|
-
if (typeof t != typeof e)
|
|
1094
|
-
return !1;
|
|
1095
|
-
if (typeof t == "function" && t.toString() === e.toString())
|
|
1096
|
-
return !0;
|
|
1097
|
-
let n, o, i;
|
|
1098
|
-
if (t && e && typeof t == "object") {
|
|
1099
|
-
if (Array.isArray(t)) {
|
|
1100
|
-
if (n = t.length, n !== e.length) return !1;
|
|
1101
|
-
for (o = n; o-- !== 0; )
|
|
1102
|
-
if (!ft(t[o], e[o]))
|
|
1103
|
-
return !1;
|
|
1104
|
-
return !0;
|
|
1105
|
-
}
|
|
1106
|
-
if (i = Object.keys(t), n = i.length, n !== Object.keys(e).length)
|
|
1107
|
-
return !1;
|
|
1108
|
-
for (o = n; o-- !== 0; )
|
|
1109
|
-
if (!{}.hasOwnProperty.call(e, i[o]))
|
|
1110
|
-
return !1;
|
|
1111
|
-
for (o = n; o-- !== 0; ) {
|
|
1112
|
-
const s = i[o];
|
|
1113
|
-
if (!(s === "_owner" && t.$$typeof) && !ft(t[s], e[s]))
|
|
1114
|
-
return !1;
|
|
1115
|
-
}
|
|
1116
|
-
return !0;
|
|
1117
|
-
}
|
|
1118
|
-
return t !== t && e !== e;
|
|
1119
|
-
}
|
|
1120
|
-
function It(t) {
|
|
1121
|
-
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1122
|
-
}
|
|
1123
|
-
function Pt(t, e) {
|
|
1124
|
-
const n = It(t);
|
|
1125
|
-
return Math.round(e * n) / n;
|
|
1126
|
-
}
|
|
1127
|
-
function gt(t) {
|
|
1128
|
-
const e = O.useRef(t);
|
|
1129
|
-
return st(() => {
|
|
1130
|
-
e.current = t;
|
|
1131
|
-
}), e;
|
|
1132
|
-
}
|
|
1133
|
-
function Ke(t) {
|
|
1134
|
-
t === void 0 && (t = {});
|
|
1135
|
-
const {
|
|
1136
|
-
placement: e = "bottom",
|
|
1137
|
-
strategy: n = "absolute",
|
|
1138
|
-
middleware: o = [],
|
|
1139
|
-
platform: i,
|
|
1140
|
-
elements: {
|
|
1141
|
-
reference: s,
|
|
1142
|
-
floating: r
|
|
1143
|
-
} = {},
|
|
1144
|
-
transform: c = !0,
|
|
1145
|
-
whileElementsMounted: f,
|
|
1146
|
-
open: a
|
|
1147
|
-
} = t, [l, u] = O.useState({
|
|
1148
|
-
x: 0,
|
|
1149
|
-
y: 0,
|
|
1150
|
-
strategy: n,
|
|
1151
|
-
placement: e,
|
|
1152
|
-
middlewareData: {},
|
|
1153
|
-
isPositioned: !1
|
|
1154
|
-
}), [m, d] = O.useState(o);
|
|
1155
|
-
ft(m, o) || d(o);
|
|
1156
|
-
const [h, p] = O.useState(null), [w, g] = O.useState(null), x = O.useCallback((A) => {
|
|
1157
|
-
A !== R.current && (R.current = A, p(A));
|
|
1158
|
-
}, []), v = O.useCallback((A) => {
|
|
1159
|
-
A !== S.current && (S.current = A, g(A));
|
|
1160
|
-
}, []), b = s || h, y = r || w, R = O.useRef(null), S = O.useRef(null), D = O.useRef(l), _ = f != null, C = gt(f), z = gt(i), I = gt(a), P = O.useCallback(() => {
|
|
1161
|
-
if (!R.current || !S.current)
|
|
1162
|
-
return;
|
|
1163
|
-
const A = {
|
|
1164
|
-
placement: e,
|
|
1165
|
-
strategy: n,
|
|
1166
|
-
middleware: m
|
|
1167
|
-
};
|
|
1168
|
-
z.current && (A.platform = z.current), Ie(R.current, S.current, A).then((E) => {
|
|
1169
|
-
const X = {
|
|
1170
|
-
...E,
|
|
1171
|
-
// The floating element's position may be recomputed while it's closed
|
|
1172
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
1173
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1174
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
1175
|
-
isPositioned: I.current !== !1
|
|
1176
|
-
};
|
|
1177
|
-
k.current && !ft(D.current, X) && (D.current = X, qt.flushSync(() => {
|
|
1178
|
-
u(X);
|
|
1179
|
-
}));
|
|
1180
|
-
});
|
|
1181
|
-
}, [m, e, n, z, I]);
|
|
1182
|
-
st(() => {
|
|
1183
|
-
a === !1 && D.current.isPositioned && (D.current.isPositioned = !1, u((A) => ({
|
|
1184
|
-
...A,
|
|
1185
|
-
isPositioned: !1
|
|
1186
|
-
})));
|
|
1187
|
-
}, [a]);
|
|
1188
|
-
const k = O.useRef(!1);
|
|
1189
|
-
st(() => (k.current = !0, () => {
|
|
1190
|
-
k.current = !1;
|
|
1191
|
-
}), []), st(() => {
|
|
1192
|
-
if (b && (R.current = b), y && (S.current = y), b && y) {
|
|
1193
|
-
if (C.current)
|
|
1194
|
-
return C.current(b, y, P);
|
|
1195
|
-
P();
|
|
1196
|
-
}
|
|
1197
|
-
}, [b, y, P, C, _]);
|
|
1198
|
-
const K = O.useMemo(() => ({
|
|
1199
|
-
reference: R,
|
|
1200
|
-
floating: S,
|
|
1201
|
-
setReference: x,
|
|
1202
|
-
setFloating: v
|
|
1203
|
-
}), [x, v]), L = O.useMemo(() => ({
|
|
1204
|
-
reference: b,
|
|
1205
|
-
floating: y
|
|
1206
|
-
}), [b, y]), B = O.useMemo(() => {
|
|
1207
|
-
const A = {
|
|
1208
|
-
position: n,
|
|
1209
|
-
left: 0,
|
|
1210
|
-
top: 0
|
|
1211
|
-
};
|
|
1212
|
-
if (!L.floating)
|
|
1213
|
-
return A;
|
|
1214
|
-
const E = Pt(L.floating, l.x), X = Pt(L.floating, l.y);
|
|
1215
|
-
return c ? {
|
|
1216
|
-
...A,
|
|
1217
|
-
transform: "translate(" + E + "px, " + X + "px)",
|
|
1218
|
-
...It(L.floating) >= 1.5 && {
|
|
1219
|
-
willChange: "transform"
|
|
1220
|
-
}
|
|
1221
|
-
} : {
|
|
1222
|
-
position: n,
|
|
1223
|
-
left: E,
|
|
1224
|
-
top: X
|
|
1225
|
-
};
|
|
1226
|
-
}, [n, c, L.floating, l.x, l.y]);
|
|
1227
|
-
return O.useMemo(() => ({
|
|
1228
|
-
...l,
|
|
1229
|
-
update: P,
|
|
1230
|
-
refs: K,
|
|
1231
|
-
elements: L,
|
|
1232
|
-
floatingStyles: B
|
|
1233
|
-
}), [l, P, K, L, B]);
|
|
1234
|
-
}
|
|
1235
|
-
const Ge = (t, e) => ({
|
|
1236
|
-
...Ve(t),
|
|
1237
|
-
options: [t, e]
|
|
1238
|
-
}), Je = (t, e) => ({
|
|
1239
|
-
...Ne(t),
|
|
1240
|
-
options: [t, e]
|
|
1241
|
-
}), Qe = (t, e) => ({
|
|
1242
|
-
...je(t),
|
|
1243
|
-
options: [t, e]
|
|
1244
|
-
}), Ze = (t, e) => ({
|
|
1245
|
-
...He(t),
|
|
1246
|
-
options: [t, e]
|
|
1247
|
-
}), tn = (t, e) => ({
|
|
1248
|
-
..._e(t),
|
|
1249
|
-
options: [t, e]
|
|
1250
|
-
}), en = (t, e) => ({
|
|
1251
|
-
...ze(t),
|
|
1252
|
-
options: [t, e]
|
|
1253
|
-
});
|
|
1254
|
-
export {
|
|
1255
|
-
Je as A,
|
|
1256
|
-
Qe as B,
|
|
1257
|
-
rt as C,
|
|
1258
|
-
nt as D,
|
|
1259
|
-
N as a,
|
|
1260
|
-
F as b,
|
|
1261
|
-
kt as c,
|
|
1262
|
-
M as d,
|
|
1263
|
-
W as e,
|
|
1264
|
-
it as f,
|
|
1265
|
-
Z as g,
|
|
1266
|
-
J as h,
|
|
1267
|
-
At as i,
|
|
1268
|
-
q as j,
|
|
1269
|
-
tt as k,
|
|
1270
|
-
yt as l,
|
|
1271
|
-
Y as m,
|
|
1272
|
-
me as n,
|
|
1273
|
-
Bt as o,
|
|
1274
|
-
ot as p,
|
|
1275
|
-
Rt as q,
|
|
1276
|
-
Wt as r,
|
|
1277
|
-
en as s,
|
|
1278
|
-
j as t,
|
|
1279
|
-
Ke as u,
|
|
1280
|
-
Ze as v,
|
|
1281
|
-
Ge as w,
|
|
1282
|
-
tn as x,
|
|
1283
|
-
$ as y,
|
|
1284
|
-
Ue as z
|
|
1285
|
-
};
|
|
1286
|
-
//# sourceMappingURL=vendor-floating-ui-gr9m6tsa1cpqwn99.js.map
|