@lanaco/lnc-react-ui 4.0.2 → 4.0.3
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/bundle-visualization.html +4842 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +23 -25
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +21 -21
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +4 -4
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +5 -5
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +59 -59
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +2 -2
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +5 -5
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +4 -4
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +6 -6
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +4 -4
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +15 -15
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +6 -6
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +4 -4
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +6 -6
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +4 -4
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +3 -3
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +2 -2
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +2 -2
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +33 -10
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +33 -33
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +948 -936
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +11 -11
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +7 -7
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +4 -4
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +4 -4
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +18 -18
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +9 -9
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +5 -5
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +27 -27
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +14 -14
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +3 -3
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +4 -4
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +4 -4
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +4 -4
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +4 -4
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +3 -3
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +5 -5
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +5 -5
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +5 -5
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +9 -9
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -4
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +2 -2
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const ne=require("./floating-ui.dom-1F2mTXOe.cjs"),Y=require("react"),ye=require("./index-Ct1N7fF4.cjs");function Ze(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Ze(Y);var re=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;function ie(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ie(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ae(e){const t=s.useRef(e);return re(()=>{t.current=e}),t}function Je(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:u}=e,[a,f]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=s.useState(r);ie(v,r)||g(r);const c=s.useRef(null),l=s.useRef(null),p=s.useRef(a),w=Ae(i),b=Ae(o),[d,m]=s.useState(null),[I,E]=s.useState(null),F=s.useCallback(T=>{c.current!==T&&(c.current=T,m(T))},[]),N=s.useCallback(T=>{l.current!==T&&(l.current=T,E(T))},[]),O=s.useCallback(()=>{if(!c.current||!l.current)return;const T={placement:t,strategy:n,middleware:v};b.current&&(T.platform=b.current),ne.computePosition(c.current,l.current,T).then(D=>{const A={...D,isPositioned:!0};V.current&&!ie(p.current,A)&&(p.current=A,ye.reactDomExports.flushSync(()=>{f(A)}))})},[v,t,n,b]);re(()=>{u===!1&&p.current.isPositioned&&(p.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const V=s.useRef(!1);re(()=>(V.current=!0,()=>{V.current=!1}),[]),re(()=>{if(d&&I){if(w.current)return w.current(d,I,O);O()}},[d,I,O,w]);const W=s.useMemo(()=>({reference:c,floating:l,setReference:F,setFloating:N}),[F,N]),K=s.useMemo(()=>({reference:d,floating:I}),[d,I]);return s.useMemo(()=>({...a,update:O,refs:W,elements:K,reference:F,floating:N}),[a,O,W,K,F,N])}var Qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},z=new WeakMap,ee=new WeakMap,te={},pe=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},et=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ke(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tt=function(e,t,n,r){var o=et(t,Array.isArray(e)?e:[e]);te[n]||(te[n]=new WeakMap);var i=te[n],u=[],a=new Set,f=new Set(o),v=function(c){!c||a.has(c)||(a.add(c),v(c.parentNode))};o.forEach(v);var g=function(c){!c||f.has(c)||Array.prototype.forEach.call(c.children,function(l){if(a.has(l))g(l);else try{var p=l.getAttribute(r),w=p!==null&&p!=="false",b=(z.get(l)||0)+1,d=(i.get(l)||0)+1;z.set(l,b),i.set(l,d),u.push(l),b===1&&w&&ee.set(l,!0),d===1&&l.setAttribute(n,"true"),w||l.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",l,m)}})};return g(t),a.clear(),pe++,function(){u.forEach(function(c){var l=z.get(c)-1,p=i.get(c)-1;z.set(c,l),i.set(c,p),l||(ee.has(c)||c.removeAttribute(r),ee.delete(c)),p||c.removeAttribute(n)}),pe--,pe||(z=new WeakMap,z=new WeakMap,ee=new WeakMap,te={})}},nt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Qe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tt(r,o,n,"aria-hidden")):function(){return null}};/*!
|
|
2
|
+
* tabbable 6.2.0
|
|
3
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
+
*/var rt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ee=rt.join(","),Ve=typeof Element>"u",Z=Ve?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ue=!Ve&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},se=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",u=i||n&&t&&e(t.parentNode);return u},ot=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},it=function(t,n,r){if(se(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ee));return n&&Z.call(t,Ee)&&o.unshift(t),o=o.filter(r),o},ut=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var u=i.shift();if(!se(u,!1))if(u.tagName==="SLOT"){var a=u.assignedElements(),f=a.length?a:u.children,v=e(f,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else{var g=Z.call(u,Ee);g&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var c=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),l=!se(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(c&&l){var p=e(c===!0?u.children:c.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:u,candidates:p})}else i.unshift.apply(i,u.children)}}return o},We=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$e=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||ot(t))&&!We(t)?0:t.tabIndex},st=function(t,n){var r=$e(t);return r<0&&n&&!We(t)?0:r},at=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},je=function(t){return t.tagName==="INPUT"},lt=function(t){return je(t)&&t.type==="hidden"},ct=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ft=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dt=function(t){if(!t.name)return!0;var n=t.form||ue(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var i=ft(o,t.form);return!i||i===t},vt=function(t){return je(t)&&t.type==="radio"},pt=function(t){return vt(t)&&!dt(t)},bt=function(t){var n,r=t&&ue(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var u,a,f;for(i=!!((u=o)!==null&&u!==void 0&&(a=u.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(f=t.ownerDocument)!==null&&f!==void 0&&f.contains(t));!i&&o;){var v,g,c;r=ue(o),o=(v=r)===null||v===void 0?void 0:v.host,i=!!((g=o)!==null&&g!==void 0&&(c=g.ownerDocument)!==null&&c!==void 0&&c.contains(o))}}return i},Pe=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},gt=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Z.call(t,"details>summary:first-of-type"),u=i?t.parentElement:t;if(Z.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var a=t;t;){var f=t.parentElement,v=ue(t);if(f&&!f.shadowRoot&&o(f)===!0)return Pe(t);t.assignedSlot?t=t.assignedSlot:!f&&v!==t.ownerDocument?t=v.host:t=f}t=a}if(bt(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pe(t);return!1},mt=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Z.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ht=function(t,n){return!(n.disabled||se(n)||lt(n)||gt(n,t)||ct(n)||mt(n))},Fe=function(t,n){return!(pt(n)||$e(n)<0||!ht(t,n))},yt=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Et=function e(t){var n=[],r=[];return t.forEach(function(o,i){var u=!!o.scopeParent,a=u?o.scopeParent:o,f=st(a,u),v=u?e(o.candidates):a;f===0?u?n.push.apply(n,v):n.push(a):r.push({documentOrder:i,tabIndex:f,item:o,isScope:u,content:v})}),r.sort(at).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},ae=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ut([t],n.includeContainer,{filter:Fe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:yt}):r=it(t,n.includeContainer,Fe.bind(null,n)),Et(r)},j=typeof document<"u"?Y.useLayoutEffect:Y.useEffect;let be=!1,Rt=0;const Oe=()=>"floating-ui-"+Rt++;function wt(){const[e,t]=s.useState(()=>be?Oe():void 0);return j(()=>{e==null&&t(Oe())},[]),s.useEffect(()=>{be||(be=!0)},[]),e}const St=s.useId,le=St||wt;function xt(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(r=>r!==n))}}}const Tt=s.createContext(null),Ct=s.createContext(null),It=()=>{var e;return((e=s.useContext(Tt))==null?void 0:e.id)||null},Se=()=>s.useContext(Ct);function G(e){return(e==null?void 0:e.ownerDocument)||document}function qe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function At(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function xe(e){return G(e).defaultView||window}function H(e){return e?e instanceof xe(e).Element:!1}function J(e){return e?e instanceof xe(e).HTMLElement:!1}function Pt(e){if(typeof ShadowRoot>"u")return!1;const t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ft(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qe())||t.test(At()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ot(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function De(){return/apple/i.test(navigator.vendor)}function Dt(){return qe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Me(e,t){return["mouse","pen"].includes(e)}function $(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)})||[],r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(u=>{var a;return o.parentId===u.id&&((a=o.context)==null?void 0:a.open)})})||[],n=n.concat(r);return n}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mt(e){const t=Y.useRef(e);return j(()=>{t.current=e}),t}function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}function Re(e){let t=e.activeElement;for(;((n=t)==null||(r=n.shadowRoot)==null?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}let ke=0;function q(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(ke);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():ke=requestAnimationFrame(i)}function kt(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(u=>u.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}const Nt="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _e(e){return J(e)&&e.matches(Nt)}function ge(e){e.preventDefault(),e.stopPropagation()}const fe=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ue(e,t){const n=ae(e,fe());t==="prev"&&n.reverse();const r=n.indexOf(Re(G(e)));return n.slice(r+1)[0]}function ze(){return Ue(document.body,"next")}function Ge(){return Ue(document.body,"prev")}function X(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!$(n,r)}function Lt(e){ae(e,fe()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Bt(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Kt=s.useInsertionEffect,Vt=Kt||(e=>e());function Te(e){const t=s.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Vt(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Ce={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let we,Ie;function Ne(e){e.key==="Tab"&&(we=e.target,clearTimeout(Ie))}function Wt(e){const t=we===e.relatedTarget;return we=e.relatedTarget,clearTimeout(Ie),t}const de=s.forwardRef(function(t,n){const r=Te(t.onFocus),[o,i]=s.useState();return j(()=>(De()&&i("button"),document.addEventListener("keydown",Ne),()=>{document.removeEventListener("keydown",Ne)}),[]),s.createElement("span",ce({},t,{ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:Ce,onFocus:u=>{De()&&Dt()&&!Wt(u)?(u.persist(),Ie=window.setTimeout(()=>{r(u)},50)):r(u)}}))}),Ye=s.createContext(null),$t=function(e){let{id:t,enabled:n=!0}=e===void 0?{}:e;const[r,o]=s.useState(null),i=le(),u=Xe();return j(()=>{if(!n)return;const a=t?document.getElementById(t):null;if(a)a.setAttribute("data-floating-ui-portal",""),o(a);else{const f=document.createElement("div");f.id=t||i,f.setAttribute("data-floating-ui-portal",""),o(f);const v=(u==null?void 0:u.portalNode)||document.body;return v.appendChild(f),()=>{v.removeChild(f)}}},[t,u,i,n]),r},jt=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e;const i=$t({id:n,enabled:!r}),[u,a]=s.useState(null),f=s.useRef(null),v=s.useRef(null),g=s.useRef(null),c=s.useRef(null),l=!!u&&!u.modal&&!!(r||i)&&o;return s.useEffect(()=>{if(!i||!o||u!=null&&u.modal)return;function p(w){i&&X(w)&&(w.type==="focusin"?Bt:Lt)(i)}return i.addEventListener("focusin",p,!0),i.addEventListener("focusout",p,!0),()=>{i.removeEventListener("focusin",p,!0),i.removeEventListener("focusout",p,!0)}},[i,o,u==null?void 0:u.modal]),s.createElement(Ye.Provider,{value:s.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:v,beforeInsideRef:g,afterInsideRef:c,portalNode:i,setFocusManagerState:a}),[o,i])},l&&i&&s.createElement(de,{ref:f,onFocus:p=>{if(X(p,i)){var w;(w=g.current)==null||w.focus()}else{const b=Ge()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus()}}}),l&&i&&s.createElement("span",{"aria-owns":i.id,style:Ce}),r?ye.reactDomExports.createPortal(t,r):i?ye.reactDomExports.createPortal(t,i):null,l&&i&&s.createElement(de,{ref:v,onFocus:p=>{if(X(p,i)){var w;(w=c.current)==null||w.focus()}else{const b=ze()||(u==null?void 0:u.refs.domReference.current);b==null||b.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1))}}}))},Xe=()=>s.useContext(Ye),qt=s.forwardRef(function(t,n){return s.createElement("button",ce({},t,{ref:n,tabIndex:-1,style:Ce}))});function Ht(e){let{context:t,children:n,order:r=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,modal:a=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:v=!0}=e;const{refs:g,nodeId:c,onOpenChange:l,events:p,dataRef:w,elements:{domReference:b,floating:d}}=t,m=Mt(r),I=Se(),E=Xe(),[F,N]=s.useState(null),O=typeof i=="number"&&i<0,V=s.useRef(null),W=s.useRef(null),K=s.useRef(!1),T=s.useRef(null),D=s.useRef(!1),A=E!=null,S=b&&b.getAttribute("role")==="combobox"&&_e(b),L=s.useCallback(function(h){return h===void 0&&(h=d),h?ae(h,fe()):[]},[d]),C=s.useCallback(h=>{const R=L(h);return m.current.map(y=>b&&y==="reference"?b:d&&y==="floating"?d:R).filter(Boolean).flat()},[b,d,m,L]);s.useEffect(()=>{if(!a)return;function h(y){if(y.key==="Tab"){L().length===0&&!S&&ge(y);const x=C(),M=He(y);m.current[0]==="reference"&&M===b&&(ge(y),y.shiftKey?q(x[x.length-1]):q(x[1])),m.current[1]==="floating"&&M===d&&y.shiftKey&&(ge(y),q(x[0]))}}const R=G(d);return R.addEventListener("keydown",h),()=>{R.removeEventListener("keydown",h)}},[b,d,a,m,g,S,L,C]),s.useEffect(()=>{if(!v)return;function h(){D.current=!0,setTimeout(()=>{D.current=!1})}function R(y){const x=y.relatedTarget,M=!($(b,x)||$(d,x)||$(x,d)||$(E==null?void 0:E.portalNode,x)||x!=null&&x.hasAttribute("data-floating-ui-focus-guard")||I&&(oe(I.nodesRef.current,c).find(P=>{var k,B;return $((k=P.context)==null?void 0:k.elements.floating,x)||$((B=P.context)==null?void 0:B.elements.domReference,x)})||kt(I.nodesRef.current,c).find(P=>{var k,B;return((k=P.context)==null?void 0:k.elements.floating)===x||((B=P.context)==null?void 0:B.elements.domReference)===x})));x&&M&&!D.current&&x!==T.current&&(K.current=!0,setTimeout(()=>l(!1)))}if(d&&J(b))return b.addEventListener("focusout",R),b.addEventListener("pointerdown",h),!a&&d.addEventListener("focusout",R),()=>{b.removeEventListener("focusout",R),b.removeEventListener("pointerdown",h),!a&&d.removeEventListener("focusout",R)}},[b,d,a,c,I,E,l,v]),s.useEffect(()=>{var h;const R=Array.from((E==null||(h=E.portalNode)==null?void 0:h.querySelectorAll("[data-floating-ui-portal]"))||[]);function y(){return[V.current,W.current].filter(Boolean)}if(d&&a){const x=[d,...R,...y()],M=nt(m.current.includes("reference")||S?x.concat(b||[]):x);return()=>{M()}}},[b,d,a,m,E,S]),s.useEffect(()=>{if(a&&!o&&d){const h=[],R=fe(),y=ae(G(d).body,R),x=C(),M=y.filter(P=>!x.includes(P));return M.forEach((P,k)=>{h[k]=P.getAttribute("tabindex"),P.setAttribute("tabindex","-1")}),()=>{M.forEach((P,k)=>{const B=h[k];B==null?P.removeAttribute("tabindex"):P.setAttribute("tabindex",B)})}}},[d,a,o,C]),j(()=>{if(!d)return;const h=G(d);let R=u,y=!1;const x=Re(h),M=w.current;T.current=x;const P=C(d),k=(typeof i=="number"?P[i]:i.current)||d;!O&&q(k,{preventScroll:k===d});function B(U){if(U.type==="escapeKey"&&g.domReference.current&&(T.current=g.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const ve=U.data.returnFocus;typeof ve=="object"?(R=!0,y=ve.preventScroll):R=ve}return p.on("dismiss",B),()=>{if(p.off("dismiss",B),$(d,Re(h))&&g.domReference.current&&(T.current=g.domReference.current),R&&J(T.current)&&!K.current)if(!g.domReference.current||D.current)q(T.current,{cancelPrevious:!1,preventScroll:y});else{var U;M.__syncReturnFocus=!0,(U=T.current)==null||U.focus({preventScroll:y}),setTimeout(()=>{delete M.__syncReturnFocus})}}},[d,C,i,u,w,g,p,O]),j(()=>{if(E)return E.setFocusManagerState({...t,modal:a,closeOnFocusOut:v}),()=>{E.setFocusManagerState(null)}},[E,a,v,t]),j(()=>{if(O||!d)return;function h(){N(L().length)}if(h(),typeof MutationObserver=="function"){const R=new MutationObserver(h);return R.observe(d,{childList:!0,subtree:!0}),()=>{R.disconnect()}}},[d,L,O,g]);const Q=o&&(A||a)&&!S;function _(h){return f&&a?s.createElement(qt,{ref:h==="start"?V:W,onClick:()=>l(!1)},typeof f=="string"?f:"Dismiss"):null}return s.createElement(s.Fragment,null,Q&&s.createElement(de,{ref:E==null?void 0:E.beforeInsideRef,onFocus:h=>{if(a){const y=C();q(r[0]==="reference"?y[0]:y[y.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!1,X(h,E.portalNode)){const y=ze()||b;y==null||y.focus()}else{var R;(R=E.beforeOutsideRef.current)==null||R.focus()}}}),S?null:_("start"),s.cloneElement(n,F===0||r.includes("floating")?{tabIndex:0}:{}),_("end"),Q&&s.createElement(de,{ref:E==null?void 0:E.afterInsideRef,onFocus:h=>{if(a)q(C()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(K.current=!0,X(h,E.portalNode)){const y=Ge()||b;y==null||y.focus()}else{var R;(R=E.afterOutsideRef.current)==null||R.focus()}}}))}function Le(e){return J(e.target)&&e.target.tagName==="BUTTON"}function Be(e){return _e(e)}const _t=function(e,t){let{open:n,onOpenChange:r,dataRef:o,refs:i}=e,{enabled:u=!0,event:a="click",toggle:f=!0,ignoreMouse:v=!1,keyboardHandlers:g=!0}=t===void 0?{}:t;const c=s.useRef();return s.useMemo(()=>u?{reference:{onPointerDown(l){c.current=l.pointerType},onMouseDown(l){l.button===0&&(Me(c.current)&&v||a!=="click"&&(n?f&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&r(!1):(l.preventDefault(),r(!0)),o.current.openEvent=l.nativeEvent))},onClick(l){if(!o.current.__syncReturnFocus){if(a==="mousedown"&&c.current){c.current=void 0;return}Me(c.current)&&v||(n?f&&(!o.current.openEvent||o.current.openEvent.type==="click")&&r(!1):r(!0),o.current.openEvent=l.nativeEvent)}},onKeyDown(l){c.current=void 0,g&&(Le(l)||(l.key===" "&&!Be(i.domReference.current)&&l.preventDefault(),l.key==="Enter"&&(n?f&&r(!1):r(!0))))},onKeyUp(l){g&&(Le(l)||Be(i.domReference.current)||l.key===" "&&(n?f&&r(!1):r(!0)))}}}:{},[u,o,a,v,g,i,f,n,r])};function me(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}const Ut={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gt=function(e){var t,n;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(n=e.outsidePress)!=null?n:!0}},Yt=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:u,domReference:a,floating:f}}=e,{enabled:v=!0,escapeKey:g=!0,outsidePress:c=!0,outsidePressEvent:l="pointerdown",referencePress:p=!1,referencePressEvent:w="pointerdown",ancestorScroll:b=!1,bubbles:d=!0}={};const m=Se(),I=It()!=null,E=Te(typeof c=="function"?c:()=>!1),F=typeof c=="function"?E:c,N=s.useRef(!1),{escapeKeyBubbles:O,outsidePressBubbles:V}=Gt(d);return s.useEffect(()=>{if(!n||!v)return;function W(S){if(S.key==="Escape"){if(!O&&m&&oe(m.nodesRef.current,i).length>0)return;o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function K(S){const L=N.current;if(N.current=!1,L||typeof F=="function"&&!F(S))return;const C=He(S);if(J(C)&&f){const _=f.ownerDocument.defaultView||window,h=C.scrollWidth>C.clientWidth,R=C.scrollHeight>C.clientHeight;let y=R&&S.offsetX>C.clientWidth;if(R&&_.getComputedStyle(C).direction==="rtl"&&(y=S.offsetX<=C.offsetWidth-C.clientWidth),y||h&&S.offsetY>C.clientHeight)return}const Q=m&&oe(m.nodesRef.current,i).some(_=>{var h;return me(S,(h=_.context)==null?void 0:h.elements.floating)});me(S,f)||me(S,a)||Q||!V&&m&&oe(m.nodesRef.current,i).length>0||(o.emit("dismiss",{type:"outsidePress",data:{returnFocus:I?{preventScroll:!0}:Ft(S)||Ot(S)}}),r(!1))}function T(){r(!1)}const D=G(f);g&&D.addEventListener("keydown",W),F&&D.addEventListener(l,K);let A=[];return b&&(H(a)&&(A=ne.getOverflowAncestors(a)),H(f)&&(A=A.concat(ne.getOverflowAncestors(f))),!H(u)&&u&&u.contextElement&&(A=A.concat(ne.getOverflowAncestors(u.contextElement)))),A=A.filter(S=>{var L;return S!==((L=D.defaultView)==null?void 0:L.visualViewport)}),A.forEach(S=>{S.addEventListener("scroll",T,{passive:!0})}),()=>{g&&D.removeEventListener("keydown",W),F&&D.removeEventListener(l,K),A.forEach(S=>{S.removeEventListener("scroll",T)})}},[f,a,u,g,F,l,o,m,i,n,r,b,v,O,V,I]),s.useEffect(()=>{N.current=!1},[F,l]),s.useMemo(()=>v?{reference:{[Ut[w]]:()=>{p&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[zt[l]]:()=>{N.current=!0}}}:{},[v,o,p,l,w,r])};function Xt(e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zt=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}={};const i=le(),u=le();return s.useMemo(()=>{const a={id:i,role:o};return r?o==="tooltip"?{reference:{"aria-describedby":n?i:void 0},floating:a}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":n?i:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:u}},floating:{...a,...o==="menu"&&{"aria-labelledby":u}}}:{}},[r,o,n,i,u])};function Jt(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:n,nodeId:r}=e,o=Je(e),i=Se(),u=s.useRef(null),a=s.useRef({}),f=s.useState(()=>xt())[0],[v,g]=s.useState(null),c=s.useCallback(m=>{const I=H(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(I)},[o.refs]),l=s.useCallback(m=>{(H(m)||m===null)&&(u.current=m,g(m)),(H(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!H(m))&&o.refs.setReference(m)},[o.refs]),p=s.useMemo(()=>({...o.refs,setReference:l,setPositionReference:c,domReference:u}),[o.refs,l,c]),w=s.useMemo(()=>({...o.elements,domReference:v}),[o.elements,v]),b=Te(n),d=s.useMemo(()=>({...o,refs:p,elements:w,dataRef:a,nodeId:r,events:f,open:t,onOpenChange:b}),[o,r,f,t,b,p,w]);return j(()=>{const m=i==null?void 0:i.nodesRef.current.find(I=>I.id===r);m&&(m.context=d)}),s.useMemo(()=>({...o,context:d,refs:p,reference:l,positionReference:c}),[o,p,d,l,c])}function he(e,t,n){const r=new Map;return{...n==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[n]:null).concat(e).reduce((o,i)=>(i&&Object.entries(i).forEach(u=>{let[a,f]=u;if(a.indexOf("on")===0){if(r.has(a)||r.set(a,[]),typeof f=="function"){var v;(v=r.get(a))==null||v.push(f),o[a]=function(){for(var g,c=arguments.length,l=new Array(c),p=0;p<c;p++)l[p]=arguments[p];(g=r.get(a))==null||g.forEach(w=>w(...l))}}}else o[a]=f}),o),{})}}const Qt=function(e){e===void 0&&(e=[]);const t=e,n=s.useCallback(i=>he(i,e,"reference"),t),r=s.useCallback(i=>he(i,e,"floating"),t),o=s.useCallback(i=>he(i,e,"item"),t);return s.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])};exports.FloatingFocusManager=Ht;exports.FloatingPortal=jt;exports.useClick=_t;exports.useDismiss=Yt;exports.useFloating=Jt;exports.useId=le;exports.useInteractions=Qt;exports.useMergeRefs=Xt;exports.useRole=Zt;
|
package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const ie=require("./_commonjsHelpers-DKOUU3wS.cjs");var M={exports:{}},o={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var I;function le(){if(I)return o;I=1;var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,d=t?Symbol.for("react.portal"):60106,
|
|
8
|
+
*/var I;function le(){if(I)return o;I=1;var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,d=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,f=t?Symbol.for("react.strict_mode"):60108,y=t?Symbol.for("react.profiler"):60114,m=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,S=t?Symbol.for("react.suspense"):60113,b=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,_=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,$=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function c(e){if(typeof e=="object"&&e!==null){var T=e.$$typeof;switch(T){case s:switch(e=e.type,e){case u:case p:case i:case y:case f:case S:return e;default:switch(e=e&&e.$$typeof,e){case l:case v:case _:case E:case m:return e;default:return T}}case d:return T}}}function a(e){return c(e)===p}return o.AsyncMode=u,o.ConcurrentMode=p,o.ContextConsumer=l,o.ContextProvider=m,o.Element=s,o.ForwardRef=v,o.Fragment=i,o.Lazy=_,o.Memo=E,o.Portal=d,o.Profiler=y,o.StrictMode=f,o.Suspense=S,o.isAsyncMode=function(e){return a(e)||c(e)===u},o.isConcurrentMode=a,o.isContextConsumer=function(e){return c(e)===l},o.isContextProvider=function(e){return c(e)===m},o.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s},o.isForwardRef=function(e){return c(e)===v},o.isFragment=function(e){return c(e)===i},o.isLazy=function(e){return c(e)===_},o.isMemo=function(e){return c(e)===E},o.isPortal=function(e){return c(e)===d},o.isProfiler=function(e){return c(e)===y},o.isStrictMode=function(e){return c(e)===f},o.isSuspense=function(e){return c(e)===S},o.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===i||e===p||e===y||e===f||e===S||e===b||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===E||e.$$typeof===m||e.$$typeof===l||e.$$typeof===v||e.$$typeof===$||e.$$typeof===C||e.$$typeof===x||e.$$typeof===R)},o.typeOf=c,o}var n={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Y;function ye(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,d=t?Symbol.for("react.portal"):60106,
|
|
15
|
+
*/var Y;function ye(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,s=t?Symbol.for("react.element"):60103,d=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,f=t?Symbol.for("react.strict_mode"):60108,y=t?Symbol.for("react.profiler"):60114,m=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,S=t?Symbol.for("react.suspense"):60113,b=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,_=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,$=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function c(r){return typeof r=="string"||typeof r=="function"||r===i||r===p||r===y||r===f||r===S||r===b||typeof r=="object"&&r!==null&&(r.$$typeof===_||r.$$typeof===E||r.$$typeof===m||r.$$typeof===l||r.$$typeof===v||r.$$typeof===$||r.$$typeof===C||r.$$typeof===x||r.$$typeof===R)}function a(r){if(typeof r=="object"&&r!==null){var A=r.$$typeof;switch(A){case s:var P=r.type;switch(P){case u:case p:case i:case y:case f:case S:return P;default:var F=P&&P.$$typeof;switch(F){case l:case v:case _:case E:case m:return F;default:return A}}case d:return A}}}var e=u,T=p,q=l,V=m,U=s,W=v,K=i,B=_,G=E,H=d,X=y,Z=f,J=S,w=!1;function Q(r){return w||(w=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(r)||a(r)===u}function N(r){return a(r)===p}function k(r){return a(r)===l}function ee(r){return a(r)===m}function re(r){return typeof r=="object"&&r!==null&&r.$$typeof===s}function te(r){return a(r)===v}function oe(r){return a(r)===i}function ne(r){return a(r)===_}function ae(r){return a(r)===E}function ce(r){return a(r)===d}function se(r){return a(r)===y}function fe(r){return a(r)===f}function ue(r){return a(r)===S}n.AsyncMode=e,n.ConcurrentMode=T,n.ContextConsumer=q,n.ContextProvider=V,n.Element=U,n.ForwardRef=W,n.Fragment=K,n.Lazy=B,n.Memo=G,n.Portal=H,n.Profiler=X,n.StrictMode=Z,n.Suspense=J,n.isAsyncMode=Q,n.isConcurrentMode=N,n.isContextConsumer=k,n.isContextProvider=ee,n.isElement=re,n.isForwardRef=te,n.isFragment=oe,n.isLazy=ne,n.isMemo=ae,n.isPortal=ce,n.isProfiler=se,n.isStrictMode=fe,n.isSuspense=ue,n.isValidElementType=c,n.typeOf=a}()),n}process.env.NODE_ENV==="production"?M.exports=le():M.exports=ye();var me=M.exports,O=me,de={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ve={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g={};g[O.ForwardRef]=ve;g[O.Memo]=j;function h(t){return O.isMemo(t)?j:g[t.$$typeof]||de}var Se=Object.defineProperty,Ee=Object.getOwnPropertyNames,D=Object.getOwnPropertySymbols,_e=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,L=Object.prototype;function z(t,s,d){if(typeof s!="string"){if(L){var i=Te(s);i&&i!==L&&z(t,i,d)}var f=Ee(s);D&&(f=f.concat(D(s)));for(var y=h(t),m=h(s),l=0;l<f.length;++l){var u=f[l];if(!pe[u]&&!(d&&d[u])&&!(m&&m[u])&&!(y&&y[u])){var p=_e(s,u);try{Se(t,u,p)}catch{}}}}return t}var Pe=z;const be=ie.getDefaultExportFromCjs(Pe);exports.m=be;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";const Ee=require("./_commonjsHelpers-DKOUU3wS.cjs");var ae={exports:{}},V={exports:{}},m={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var ue;function ge(){if(ue)return m;ue=1;var o=typeof Symbol=="function"&&Symbol.for,j=o?Symbol.for("react.element"):60103,_=o?Symbol.for("react.portal"):60106,y=o?Symbol.for("react.fragment"):60107,S=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,P=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,O=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function A(t){if(typeof t=="object"&&t!==null){var k=t.$$typeof;switch(k){case j:switch(t=t.type,t){case O:case g:case y:case a:case S:case E:return t;default:switch(t=t&&t.$$typeof,t){case l:case b:case M:case x:case P:return t;default:return k}}case _:return k}}}function w(t){return A(t)===g}return m.AsyncMode=O,m.ConcurrentMode=g,m.ContextConsumer=l,m.ContextProvider=P,m.Element=j,m.ForwardRef=b,m.Fragment=y,m.Lazy=M,m.Memo=x,m.Portal=_,m.Profiler=a,m.StrictMode=S,m.Suspense=E,m.isAsyncMode=function(t){return w(t)||A(t)===O},m.isConcurrentMode=w,m.isContextConsumer=function(t){return A(t)===l},m.isContextProvider=function(t){return A(t)===P},m.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===j},m.isForwardRef=function(t){return A(t)===b},m.isFragment=function(t){return A(t)===y},m.isLazy=function(t){return A(t)===M},m.isMemo=function(t){return A(t)===x},m.isPortal=function(t){return A(t)===_},m.isProfiler=function(t){return A(t)===a},m.isStrictMode=function(t){return A(t)===S},m.isSuspense=function(t){return A(t)===E},m.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===y||t===g||t===a||t===S||t===E||t===C||typeof t=="object"&&t!==null&&(t.$$typeof===M||t.$$typeof===x||t.$$typeof===P||t.$$typeof===l||t.$$typeof===b||t.$$typeof===I||t.$$typeof===q||t.$$typeof===F||t.$$typeof===R)},m.typeOf=A,m}var T={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var fe;function Se(){return fe||(fe=1,process.env.NODE_ENV!=="production"&&function(){var o=typeof Symbol=="function"&&Symbol.for,j=o?Symbol.for("react.element"):60103,_=o?Symbol.for("react.portal"):60106,y=o?Symbol.for("react.fragment"):60107,S=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,P=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,O=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function A(r){return typeof r=="string"||typeof r=="function"||r===y||r===g||r===a||r===S||r===E||r===C||typeof r=="object"&&r!==null&&(r.$$typeof===M||r.$$typeof===x||r.$$typeof===P||r.$$typeof===l||r.$$typeof===b||r.$$typeof===I||r.$$typeof===q||r.$$typeof===F||r.$$typeof===R)}function w(r){if(typeof r=="object"&&r!==null){var D=r.$$typeof;switch(D){case j:var B=r.type;switch(B){case O:case g:case y:case a:case S:case E:return B;default:var se=B&&B.$$typeof;switch(se){case l:case b:case M:case x:case P:return se;default:return D}}case _:return D}}}var t=O,k=g,H=l,N=P,J=j,X=b,U=y,G=M,K=x,L=_,Z=a,Y=S,W=E,z=!1;function Q(r){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),e(r)||w(r)===O}function e(r){return w(r)===g}function n(r){return w(r)===l}function f(r){return w(r)===P}function s(r){return typeof r=="object"&&r!==null&&r.$$typeof===j}function i(r){return w(r)===b}function p(r){return w(r)===y}function c(r){return w(r)===M}function u(r){return w(r)===x}function d(r){return w(r)===_}function h(r){return w(r)===a}function v(r){return w(r)===S}function $(r){return w(r)===E}T.AsyncMode=t,T.ConcurrentMode=k,T.ContextConsumer=H,T.ContextProvider=N,T.Element=J,T.ForwardRef=X,T.Fragment=U,T.Lazy=G,T.Memo=K,T.Portal=L,T.Profiler=Z,T.StrictMode=Y,T.Suspense=W,T.isAsyncMode=Q,T.isConcurrentMode=e,T.isContextConsumer=n,T.isContextProvider=f,T.isElement=s,T.isForwardRef=i,T.isFragment=p,T.isLazy=c,T.isMemo=u,T.isPortal=d,T.isProfiler=h,T.isStrictMode=v,T.isSuspense=$,T.isValidElementType=A,T.typeOf=w}()),T}var le;function Te(){return le||(le=1,process.env.NODE_ENV==="production"?V.exports=ge():V.exports=Se()),V.exports}/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var ee,ye;function Pe(){if(ye)return ee;ye=1;var o=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;function y(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function S(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var P={},l=0;l<10;l++)P["_"+String.fromCharCode(l)]=l;var O=Object.getOwnPropertyNames(P).map(function(b){return P[b]});if(O.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(b){g[b]=b}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ee=S()?Object.assign:function(a,P){for(var l,O=y(a),g,b=1;b<arguments.length;b++){l=Object(arguments[b]);for(var E in l)j.call(l,E)&&(O[E]=l[E]);if(o){g=o(l);for(var C=0;C<g.length;C++)_.call(l,g[C])&&(O[g[C]]=l[g[C]])}}return O},ee}var re,pe;function ce(){if(pe)return re;pe=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return re=o,re}var te,de;function he(){return de||(de=1,te=Function.call.bind(Object.prototype.hasOwnProperty)),te}var ne,ve;function _e(){if(ve)return ne;ve=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var j=ce(),_={},y=he();o=function(a){var P="Warning: "+a;typeof console<"u"&&console.error(P);try{throw new Error(P)}catch{}}}function S(a,P,l,O,g){if(process.env.NODE_ENV!=="production"){for(var b in a)if(y(a,b)){var E;try{if(typeof a[b]!="function"){var C=Error((O||"React class")+": "+l+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=a[b](P,b,O,l,null,j)}catch(M){E=M}if(E&&!(E instanceof Error)&&o((O||"React class")+": type specification of "+l+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in _)){_[E.message]=!0;var x=g?g():"";o("Failed "+l+" type: "+E.message+(x??""))}}}}return S.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(_={})},ne=S,ne}var oe,be;function Oe(){if(be)return oe;be=1;var o=Te(),j=Pe(),_=ce(),y=he(),S=_e(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var O="Warning: "+l;typeof console<"u"&&console.error(O);try{throw new Error(O)}catch{}});function P(){return null}return oe=function(l,O){var g=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function E(e){var n=e&&(g&&e[g]||e[b]);if(typeof n=="function")return n}var C="<<anonymous>>",x={array:q("array"),bigint:q("bigint"),bool:q("boolean"),func:q("function"),number:q("number"),object:q("object"),string:q("string"),symbol:q("symbol"),any:F(),arrayOf:A,element:w(),elementType:t(),instanceOf:k,node:X(),objectOf:N,oneOf:H,oneOfType:J,shape:G,exact:K};function M(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function R(e,n){this.message=e,this.data=n&&typeof n=="object"?n:{},this.stack=""}R.prototype=Error.prototype;function I(e){if(process.env.NODE_ENV!=="production")var n={},f=0;function s(p,c,u,d,h,v,$){if(d=d||C,v=v||u,$!==_){if(O){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var D=d+":"+u;!n[D]&&f<3&&(a("You are manually calling a React.PropTypes validation function for the `"+v+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[D]=!0,f++)}}return c[u]==null?p?c[u]===null?new R("The "+h+" `"+v+"` is marked as required "+("in `"+d+"`, but its value is `null`.")):new R("The "+h+" `"+v+"` is marked as required in "+("`"+d+"`, but its value is `undefined`.")):null:e(c,u,d,h,v)}var i=s.bind(null,!1);return i.isRequired=s.bind(null,!0),i}function q(e){function n(f,s,i,p,c,u){var d=f[s],h=Y(d);if(h!==e){var v=W(d);return new R("Invalid "+p+" `"+c+"` of type "+("`"+v+"` supplied to `"+i+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return I(n)}function F(){return I(P)}function A(e){function n(f,s,i,p,c){if(typeof e!="function")return new R("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var u=f[s];if(!Array.isArray(u)){var d=Y(u);return new R("Invalid "+p+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected an array."))}for(var h=0;h<u.length;h++){var v=e(u,h,i,p,c+"["+h+"]",_);if(v instanceof Error)return v}return null}return I(n)}function w(){function e(n,f,s,i,p){var c=n[f];if(!l(c)){var u=Y(c);return new R("Invalid "+i+" `"+p+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement."))}return null}return I(e)}function t(){function e(n,f,s,i,p){var c=n[f];if(!o.isValidElementType(c)){var u=Y(c);return new R("Invalid "+i+" `"+p+"` of type "+("`"+u+"` supplied to `"+s+"`, expected a single ReactElement type."))}return null}return I(e)}function k(e){function n(f,s,i,p,c){if(!(f[s]instanceof e)){var u=e.name||C,d=Q(f[s]);return new R("Invalid "+p+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected ")+("instance of `"+u+"`."))}return null}return I(n)}function H(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),P;function n(f,s,i,p,c){for(var u=f[s],d=0;d<e.length;d++)if(M(u,e[d]))return null;var h=JSON.stringify(e,function($,r){var D=W(r);return D==="symbol"?String(r):r});return new R("Invalid "+p+" `"+c+"` of value `"+String(u)+"` "+("supplied to `"+i+"`, expected one of "+h+"."))}return I(n)}function N(e){function n(f,s,i,p,c){if(typeof e!="function")return new R("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+p+" `"+c+"` of type "+("`"+d+"` supplied to `"+i+"`, expected an object."));for(var h in u)if(y(u,h)){var v=e(u,h,i,p,c+"."+h,_);if(v instanceof Error)return v}return null}return I(n)}function J(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),P;for(var n=0;n<e.length;n++){var f=e[n];if(typeof f!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(f)+" at index "+n+"."),P}function s(i,p,c,u,d){for(var h=[],v=0;v<e.length;v++){var $=e[v],r=$(i,p,c,u,d,_);if(r==null)return null;r.data&&y(r.data,"expectedType")&&h.push(r.data.expectedType)}var D=h.length>0?", expected one of type ["+h.join(", ")+"]":"";return new R("Invalid "+u+" `"+d+"` supplied to "+("`"+c+"`"+D+"."))}return I(s)}function X(){function e(n,f,s,i,p){return L(n[f])?null:new R("Invalid "+i+" `"+p+"` supplied to "+("`"+s+"`, expected a ReactNode."))}return I(e)}function U(e,n,f,s,i){return new R((e||"React class")+": "+n+" type `"+f+"."+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function G(e){function n(f,s,i,p,c){var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+p+" `"+c+"` of type `"+d+"` "+("supplied to `"+i+"`, expected `object`."));for(var h in e){var v=e[h];if(typeof v!="function")return U(i,p,c,h,W(v));var $=v(u,h,i,p,c+"."+h,_);if($)return $}return null}return I(n)}function K(e){function n(f,s,i,p,c){var u=f[s],d=Y(u);if(d!=="object")return new R("Invalid "+p+" `"+c+"` of type `"+d+"` "+("supplied to `"+i+"`, expected `object`."));var h=j({},f[s],e);for(var v in h){var $=e[v];if(y(e,v)&&typeof $!="function")return U(i,p,c,v,W($));if(!$)return new R("Invalid "+p+" `"+c+"` key `"+v+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(f[s],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null," "));var r=$(u,v,i,p,c+"."+v,_);if(r)return r}return null}return I(n)}function L(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(L);if(e===null||l(e))return!0;var n=E(e);if(n){var f=n.call(e),s;if(n!==e.entries){for(;!(s=f.next()).done;)if(!L(s.value))return!1}else for(;!(s=f.next()).done;){var i=s.value;if(i&&!L(i[1]))return!1}}else return!1;return!0;default:return!1}}function Z(e,n){return e==="symbol"?!0:n?n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol:!1}function Y(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":Z(n,e)?"symbol":n}function W(e){if(typeof e>"u"||e===null)return""+e;var n=Y(e);if(n==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function z(e){var n=W(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function Q(e){return!e.constructor||!e.constructor.name?C:e.constructor.name}return x.checkPropTypes=S,x.resetWarningCache=S.resetWarningCache,x.PropTypes=x,x},oe}var ie,me;function Re(){if(me)return ie;me=1;var o=ce();function j(){}function _(){}return _.resetWarningCache=j,ie=function(){function y(P,l,O,g,b,E){if(E!==o){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}y.isRequired=y;function S(){return y}var a={array:y,bigint:y,bool:y,func:y,number:y,object:y,string:y,symbol:y,any:y,arrayOf:S,element:y,elementType:y,instanceOf:S,node:y,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:_,resetWarningCache:j};return a.PropTypes=a,a},ie}if(process.env.NODE_ENV!=="production"){var Ce=Te(),xe=!0;ae.exports=Oe()(Ce.isElement,xe)}else ae.exports=Re()();var we=ae.exports;const Ae=Ee.getDefaultExportFromCjs(we);exports.PropTypes=Ae;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as I, a as V } from "./tslib.es6-DQ-SzcmG.js";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { useRef as h, useState as B, useCallback as D, useMemo as N, useContext as K, cloneElement as U, Children as q, isValidElement as T } from "react";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as _, a as O, P as Y, S as j, i as G } from "./motion-ecIGZGwI.js";
|
|
5
5
|
function H() {
|
|
6
6
|
var e = h(!1), o = I(B(0), 2), t = o[0], r = o[1];
|
|
7
|
-
return
|
|
7
|
+
return _(function() {
|
|
8
8
|
return e.current = !0;
|
|
9
9
|
}), D(function() {
|
|
10
10
|
!e.current && r(t + 1);
|
|
@@ -50,7 +50,7 @@ var w = function(e) {
|
|
|
50
50
|
});
|
|
51
51
|
}, [r]), a.useEffect(function() {
|
|
52
52
|
!r && !u.size && (i == null || i());
|
|
53
|
-
}, [r]), a.createElement(
|
|
53
|
+
}, [r]), a.createElement(Y.Provider, { value: y }, o);
|
|
54
54
|
};
|
|
55
55
|
function Q() {
|
|
56
56
|
return /* @__PURE__ */ new Map();
|