react-md
Version:
This is the full react-md library bundled together for convenience.
15 lines • 923 kB
JavaScript
!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("react-dom"),require("crypto")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","crypto"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).ReactMD={},r.React,r.ReactDOM,r.crypto)}(this,(function(r,e,t,n){"use strict";function o(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var i=o(e),a=o(n),c={exports:{}},s={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(r){n[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()||Object.assign;
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var l=i.default,p=60103;if(s.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var f=Symbol.for;p=f("react.element"),s.Fragment=f("react.fragment")}var u=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d=Object.prototype.hasOwnProperty,v={key:!0,ref:!0,__self:!0,__source:!0};function h(r,e,t){var n,o={},i=null,a=null;for(n in void 0!==t&&(i=""+t),void 0!==e.key&&(i=""+e.key),void 0!==e.ref&&(a=e.ref),e)d.call(e,n)&&!v.hasOwnProperty(n)&&(o[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===o[n]&&(o[n]=e[n]);return{$$typeof:p,type:r,key:i,ref:a,props:o,_owner:u.current}}s.jsx=h,s.jsxs=h,c.exports=s;var y={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(r){!function(){var e={}.hasOwnProperty;function t(){for(var r=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)r.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&r.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var c in o)e.call(o,c)&&o[c]&&r.push(c);else r.push(o.toString())}}return r.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}()}(y);var x=y.exports;var m=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function b(r){var n=r.into,o=r.intoId,i=r.children,a=m(e.useState(null),2),c=a[0],s=a[1];return e.useEffect((function(){var r=function(r,e){if("undefined"==typeof document)return null;var t=null;return void 0===r&&void 0===e?t=document.body:"string"==typeof e?t=document.getElementById(e):"string"==typeof r?t=document.querySelector(r):"function"==typeof r?t=r():r&&(t=r),t}(n,o);c!==r&&s(r)}),[n,o,c]),c?t.createPortal(i,c):null}var O=function(){return(O=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)};function j(r){var e=r.portal,t=r.portalInto,n=r.portalIntoId,o=r.children;return e||t||n?c.exports.jsx(b,O({into:t,intoId:n},{children:o}),void 0):c.exports.jsx(c.exports.Fragment,{children:o},void 0)}function g(r,e){e&&("function"==typeof e?e(r):"object"==typeof e&&(e.current=r))}function w(r,e){if(!e)return r;var t=Object.prototype.hasOwnProperty;return Object.keys(e).reduce((function(n,o){return t.call(e,o)&&e[o]&&(n="".concat(n," ").concat(r,"--").concat(o)),n}),r)}function z(r){return function(e,t){return e?"string"!=typeof e?w(r,e):w("".concat(r,"__").concat(e),t):r}}var V=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,S=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;function M(r){var e=(r=r.replace(V,(function(r,e,t,n){return"".concat(e).concat(e).concat(t).concat(t).concat(n).concat(n)}))).match(S)||[];return[parseInt(e[1]||"",16)||0,parseInt(e[2]||"",16)||0,parseInt(e[3]||"",16)||0]}var P=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function H(r){return(r/=255)<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}function I(r){var e=P(M(r),3),t=e[0],n=e[1],o=e[2];return.2126*H(t)+.7152*H(n)+.0722*H(o)}function C(r,e){var t=I(r)+.05,n=I(e)+.05;return Math.max(t,n)/Math.min(t,n)}var R=function(r){return function(r){return!!r&&void 0!==r.current}(r)?r.current:r};function L(r,e){return r=R(r),e=R(e),!!(r&&e&&r.contains(e))}var E=function(){return(E=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)};function N(r,e){return Object.keys(e).reduce((function(r,t){return void 0===r[t]&&(r[t]=e[t]),r}),E({},r))}var G=function(){return(G=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},T=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},A=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},k=e.createContext({root:!0,dir:"ltr",toggleDir:function(){throw new Error("Tried to toggle the current writing direction without initializing the `Dir` component.")}}),D=k.Provider;function F(){var r=e.useContext(k);return r.root,T(r,["root"])}var B=function(){var r="ltr";"undefined"!=typeof document&&(r="rtl"===document.documentElement.getAttribute("dir")?"rtl":"ltr");return r};function _(r){var t=r.children,n=r.defaultDir,o=void 0===n?B:n,i=e.useContext(k).root,a=A(e.useState(o),2),s=a[0],l=a[1];e.useEffect((function(){if(i&&"undefined"!=typeof document)return document.documentElement.setAttribute("dir",s),function(){document.documentElement.removeAttribute("dir")}}),[s,i]);var p=e.useCallback((function(){l((function(r){return"ltr"===r?"rtl":"ltr"}))}),[]),f=e.useMemo((function(){return{root:!1,dir:s,toggleDir:p}}),[s,p]),u=e.Children.only(t);return i||(u=e.cloneElement(u,{dir:s})),c.exports.jsx(D,G({value:f},{children:u}),void 0)}var K=function(){},W=!1;function U(){if("undefined"==typeof window)return!1;var r=!1,e=Object.defineProperty({},"passive",{get:function(){r=!0}});return window.addEventListener("testSupportsPassive",K,e),window.removeEventListener("testSupportsPassive",K,e),W=r,r}U();var q=Object.freeze({__proto__:null,update:U,get isSupported(){return W}}),X=[];function Y(r,e,t,n){void 0===e&&(e=window),void 0===t&&(t=!1);var o=[],i=function(r,e){var t=!1,n=function(r){return function(){for(var n=0;n<e.length;n+=1)e[n](r);t=!1}};return function(e){r?t||(t=!0,window.requestAnimationFrame(n(e))):n(e)()}}(t,o);return{add:function(t){o.length||e.addEventListener(r,i,n),-1===o.indexOf(t)&&o.push(t)},remove:function(t){var a=o.indexOf(t);a>=0&&(o.splice(a,1),o.length||e.removeEventListener(r,i,n))}}}function J(r,e,t,n){void 0===e&&(e=window),void 0===t&&(t="resize"===r||"scroll"===r);var o=X.findIndex((function(o){return o.type===r&&o.target===e&&o.options===n&&o.throttle===t}));return-1===o&&(X.push({type:r,target:e,options:n,throttle:t,handler:Y(r,e,t,n)}),o=X.length-1),X[o].handler}var Q=function(){return(Q=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)};function Z(r,e,t,n,o,i){void 0===o&&(o=!1),e["".concat(r?"add":"remove","EventListener")]("touch".concat(t),n,W?Q({passive:!0,capture:o},i):o)}function $(r){var t=e.useRef(r);return e.useEffect((function(){t.current=r})),t}function rr(r){var t=r.enabled,n=void 0===t||t,o=r.onScroll,i=r.element,a=r.options,c=void 0===a?!!W&&{passive:!0}:a,s=$(o);e.useEffect((function(){if(n){var r=J("scroll",i||window,!0,c),e=function(r){return s.current(r)};return r.add(e),function(){r.remove(e)}}}),[n,i,c])}function er(r){var e=r.min,t=r.max,n=r.value,o=r.validate;if(void 0===o||o){if(e>=t)throw new RangeError("A range must have the min value less than the max value");if(n>t||n<e)throw new RangeError("A value must be between the min and max values")}var i=(n-e)/(t-e);return Math.max(0,Math.min(Math.abs(i),1))}var tr=1e3;function nr(r){var t=e.useRef(r);return e.useEffect((function(){t.current=r})),e.useEffect((function(){return function(){return t.current()}}),[])}var or=function(){},ir=e.createContext({visibleInTime:tr,enableHoverMode:or,disableHoverMode:or,startDisableTimer:or}),ar=ir.Provider;function cr(){return e.useContext(ir)}var sr=function(){return(sr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},lr=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function pr(r){var t=r.children,n=r.disabled,o=void 0!==n&&n,i=r.defaultVisibleInTime,a=void 0===i?tr:i,s=r.deactivateTime,l=void 0===s?1e3:s,p=lr(e.useState(a),2),f=p[0],u=p[1],d=e.useRef(),v=e.useCallback((function(){o||(window.clearTimeout(d.current),u(0))}),[o]),h=e.useCallback((function(){window.clearTimeout(d.current),u(a)}),[a]),y=e.useCallback((function(){window.clearTimeout(d.current),d.current=window.setTimeout((function(){u(a)}),l)}),[a,l]);e.useEffect((function(){o&&(window.clearTimeout(d.current),u(a))}),[o,a]),nr((function(){window.clearTimeout(d.current)}));var x=e.useMemo((function(){return{visibleInTime:f,enableHoverMode:v,disableHoverMode:h,startDisableTimer:y}}),[h,v,y,f]);return c.exports.jsx(ar,sr({value:x},{children:t}),void 0)}var fr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,ur=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};var dr=function(){return(dr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},vr=e.createContext("mouse"),hr=e.createContext(!1),yr=vr.Provider,xr=hr.Provider;function mr(){return e.useContext(vr)}function br(r){return mr()===r}function Or(r){var t=r.children,n=function(){var r=ur(e.useState("mouse"),2),t=r[0],n=r[1],o=e.useRef(0),i=e.useRef(!1);return fr((function(){var r=function(){return n("mouse")},e=function(){return n("keyboard")},a=function(){o.current=Date.now(),i.current=!1,n("touch")},c=function(){i.current||Date.now()-o.current<1200?i.current=!1:r()},s=function(){i.current=!0},l="rmd-utils--".concat(t);return document.body.classList.add(l),window.addEventListener("touchstart",a,!0),"mouse"===t?window.addEventListener("keydown",e,!0):"keyboard"===t?window.addEventListener("mousedown",r,!0):(window.addEventListener("mousemove",c,!0),window.addEventListener("contextmenu",s,!0)),function(){document.body.classList.remove(l),window.removeEventListener("touchstart",a,!0),"mouse"===t?window.removeEventListener("keydown",e,!0):"keyboard"===t?window.removeEventListener("mousedown",r,!0):(window.removeEventListener("mousemove",c,!0),window.removeEventListener("contextmenu",s,!0))}}),[t]),t}();if(e.useContext(hr))throw new Error("Mounted multiple `UserInteractionModeListener` components.");return c.exports.jsx(yr,dr({value:n},{children:c.exports.jsx(xr,dr({value:!0},{children:t}),void 0)}),void 0)}var jr=function(){return(jr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},gr=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function wr(r){var t=void 0===r?{}:r,n=t.disabled,o=void 0!==n&&n,i=t.sticky,a=void 0!==i&&i,c=t.onClick,s=t.onMouseEnter,l=t.onMouseLeave,p=t.defaultVisible,f=void 0!==p&&p,u=t.exitVisibilityDelay,d=void 0===u?a?300:0:u,v=mr(),h="touch"===v,y=gr(e.useState(f),2),x=y[0],m=y[1],b=gr(e.useState(!1),2),O=b[0],j=b[1],g=e.useRef(),w=e.useRef(f),z=cr(),V=z.visibleInTime,S=z.enableHoverMode,M=z.disableHoverMode,P=z.startDisableTimer,H=0===V;e.useEffect((function(){a&&!x&&j(!1)}),[x,a]),nr((function(){window.clearTimeout(g.current)})),e.useEffect((function(){if(!o){var r=function(){m(!1),M(),window.clearTimeout(g.current)};return w.current||r(),w.current=!1,window.addEventListener("mousedown",r),function(){window.removeEventListener("mousedown",r)}}}),[M,v,o]);var I,C=e.useCallback((function(r){if(null==s||s(r),!(O||o||h||r.isPropagationStopped())){if(window.clearTimeout(g.current),0===V)return S(),void m(!0);g.current=window.setTimeout((function(){S(),m(!0)}),V)}}),[o,S,h,s,O,V]),R=e.useCallback((function(r){null==l||l(r),O||o||h||r.isPropagationStopped()||(P(),window.clearTimeout(g.current),0!==d?g.current=window.setTimeout((function(){m(!1)}),d):m(!1))}),[o,d,h,l,P,O]),L=e.useCallback((function(r){null==c||c(r),r.isPropagationStopped()||o||(P(),window.clearTimeout(g.current))}),[o,c,P]),E=e.useCallback((function(r){null==c||c(r),r.isPropagationStopped()||o||(O?(j(!1),m((function(r){return!r}))):(j(!0),m(!0),M()))}),[M,o,c,O]),N={onClick:L,onMouseEnter:C,onMouseLeave:R};return a&&(I=jr(jr({},N),{onClick:E})),{active:H,stuck:a?O:void 0,visible:x,setVisible:m,handlers:N,stickyHandlers:I,enableHoverMode:S,disableHoverMode:M,startDisableTimer:P}}var zr="".concat(64.0625,"em"),Vr="".concat(48,"em"),Sr="".concat(64,"em"),Mr="".concat(767/16,"em"),Pr="".concat(80,"em"),Hr=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},Ir=function(){var r,e=null===(r=window.screen.orientation)||void 0===r?void 0:r.type;if("string"==typeof e)return e;var t=window.screen;return t.availHeight>t.availWidth?"portrait-primary":"landscape-primary"};function Cr(r){var t=Hr(e.useState((function(){return r||("undefined"!=typeof window?Ir():"landscape-primary")})),2),n=t[0],o=t[1];return e.useEffect((function(){if("undefined"!=typeof window){var r=function(){o(Ir())};return window.addEventListener("orientationchange",r),function(){return window.removeEventListener("orientationchange",r)}}}),[]),n}var Rr=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function Lr(r,t,n,o){void 0===n&&(n=!1),void 0===o&&(o="undefined"!=typeof window);var i=Rr(e.useState((function(){return void 0!==t?t:!(n||!o||"undefined"==typeof window)&&window.matchMedia(r).matches})),2),a=i[0],c=i[1];return e.useEffect((function(){if("undefined"!=typeof window&&!n){var e=window.matchMedia(r),t=function(r){var e=r.matches;return c(e)};return e.addEventListener("change",t),e.matches!==a&&c(e.matches),function(){e.removeEventListener("change",t)}}}),[n,a,r]),a}var Er=function(r,e){var t=typeof r;if("undefined"===t)return"";var n="number"===t?"".concat(r,"px"):r;return"(".concat(e,"-width: ").concat(n,")")};function Nr(r){var t=r.min,n=r.max;return Lr(e.useMemo((function(){var r=[Er(t,"min"),Er(n,"max")].filter(Boolean).join(" and ");return"screen and ".concat(r)}),[t,n]))}var Gr=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},Tr={isPhone:!1,isTablet:!1,isDesktop:!0,isLargeDesktop:!1,isLandscape:!0};function Ar(r){var t=void 0===r?{}:r,n=t.phoneMaxWidth,o=void 0===n?Mr:n,i=t.tabletMinWidth,a=void 0===i?Vr:i,c=t.tabletMaxWidth,s=void 0===c?Sr:c,l=t.desktopMinWidth,p=void 0===l?zr:l,f=t.desktopLargeMinWidth,u=void 0===f?Pr:f,d=t.defaultSize,v=void 0===d?Tr:d;if("undefined"==typeof window)return v;var h=Nr({min:p}),y=Nr({min:u}),x=Nr({min:a,max:s}),m=Nr({max:o}),b=h,O=!h&&x,j=!O&&!b&&m,g=Cr().includes("landscape"),w=y,z=Gr(e.useState(v),2),V=z[0],S=z[1];return e.useEffect((function(){V.isPhone===j&&V.isTablet===O&&V.isDesktop===b&&V.isLargeDesktop===w&&V.isLandscape===g||(j||O||b||w)&&S({isPhone:j,isTablet:O,isDesktop:b,isLargeDesktop:w,isLandscape:g})}),[j,O,b,w,g,V]),V}var kr=function(){return(kr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},Dr=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},Fr=e.createContext(kr(kr({},Tr),{__initialized:!1}));function Br(){var r=e.useContext(Fr),t=r.__initialized,n=Dr(r,["__initialized"]);if(!t)throw new Error("Unable to get the current `AppSize` from `react-md` because the `AppSizeListener` could not be found when using the `useAppSize` hook. To fix this error, either initialize the `AppSizeListener` component from `@react-md/utils` or the `Configuration` component from `@react-md/layout` near the root of your app.");return n}var _r,Kr=function(){return(Kr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},Wr=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},Ur=z("rmd-grid"),qr=e.forwardRef((function(r,t){var n,o,i,a,s,l,p,f=r.style,u=r.className,d=r.clone,v=r.children,h=r.colSpan,y=r.colStart,m=r.colEnd,b=r.rowSpan,O=r.rowStart,j=r.rowEnd,g=r.phone,w=r.tablet,z=r.desktop,V=r.largeDesktop,S=Wr(r,["style","className","clone","children","colSpan","colStart","colEnd","rowSpan","rowStart","rowEnd","phone","tablet","desktop","largeDesktop"]),M=Br(),P=M.isPhone,H=M.isTablet,I=M.isDesktop,C=M.isLargeDesktop,R=h,L=y,E=m,N=b,G=O,T=j,A=P&&g||H&&w||C&&V||I&&z;A&&(N=void 0===(n=A.rowSpan)?b:n,G=void 0===(o=A.rowStart)?O:o,T=void 0===(i=A.rowEnd)?j:i,R=void 0===(a=A.colSpan)?h:a,L=void 0===(s=A.colStart)?y:s,E=void 0===(l=A.colEnd)?m:l);var k=Kr({gridColumnStart:L,gridColumnEnd:E,gridRowStart:G,gridRowEnd:N?"span ".concat(N):T},f),D=x(Ur("cell",((p={})["".concat(R)]=R,p)),u);if(d&&e.isValidElement(v)){var F=e.Children.only(v);return e.cloneElement(F,{style:Kr(Kr({},F.props.style),k),className:x(D,F.props.className)})}return c.exports.jsx("div",Kr({},S,{ref:t,style:k,className:D},{children:v}),void 0)})),Xr=function(){return(Xr=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},Yr=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},Jr="--rmd-grid-cols",Qr="--rmd-grid-gutter",Zr=z("rmd-grid"),$r=e.forwardRef((function(r,t){var n,o=r.style,i=r.className,a=r.children,s=r.clone,l=void 0!==s&&s,p=r.cloneStyles,f=void 0!==p&&p,u=r.wrapOnly,d=void 0!==u&&u,v=r.columns,h=r.phoneColumns,y=r.tabletColumns,m=r.desktopColumns,b=r.largeDesktopColumns,O=r.padding,j=r.gutter,g=r.minCellWidth,w=Yr(r,["style","className","children","clone","cloneStyles","wrapOnly","columns","phoneColumns","tabletColumns","desktopColumns","largeDesktopColumns","padding","gutter","minCellWidth"]),z=Br(),V=z.isPhone,S=z.isTablet,M=z.isDesktop,P=z.isLargeDesktop,H=Xr(Xr({padding:0!==O&&O||void 0,gridTemplateColumns:g?"repeat(auto-fill, minmax(".concat(g,", 1fr))"):void 0},o),((n={})[Jr]=V&&h||S&&y||P&&b||M&&m||v,n[Qr]=j,n)),I=x(Zr({"no-padding":0===O}),i);if(f&&e.isValidElement(a)){var C=e.Children.only(a);return e.cloneElement(C,{style:Xr(Xr({},H),C.props.style),className:x(I,C.props.className)})}var R=a;return(l||d)&&(R=e.Children.map(a,(function(r){return r&&c.exports.jsx(qr,Xr({clone:l},{children:r}),void 0)}))),c.exports.jsx("div",Xr({},w,{ref:t,style:H,className:I},{children:R}),void 0)})),re=function(){return(re=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},ee=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},te=z("rmd-grid-list"),ne=e.forwardRef((function(r,t){var n=r.className,o=r.children,i=r.square,a=void 0!==i&&i,s=r.clone,l=void 0!==s&&s,p=ee(r,["className","children","square","clone"]),f=x(te("cell",{square:a}),n);if(l&&e.isValidElement(o)){var u=e.Children.only(o);return e.cloneElement(u,{className:x(f,u.props.className)})}return c.exports.jsx("div",re({},p,{ref:t,className:f},{children:o}),void 0)})),oe=[],ie="ResizeObserver loop completed with undelivered notifications.";!function(r){r.BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(_r||(_r={}));var ae,ce=function(r){return Object.freeze(r)},se=function(r,e){this.inlineSize=r,this.blockSize=e,ce(this)},le=function(){function r(r,e,t,n){return this.x=r,this.y=e,this.width=t,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ce(this)}return r.prototype.toJSON=function(){var r=this;return{x:r.x,y:r.y,top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}},r.fromRect=function(e){return new r(e.x,e.y,e.width,e.height)},r}(),pe=function(r){return r instanceof SVGElement&&"getBBox"in r},fe=function(r){if(pe(r)){var e=r.getBBox(),t=e.width,n=e.height;return!t&&!n}var o=r,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||r.getClientRects().length)},ue=function(r){var e,t;if(r instanceof Element)return!0;var n=null===(t=null===(e=r)||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&r instanceof n.Element)},de="undefined"!=typeof window?window:{},ve=new WeakMap,he=/auto|scroll/,ye=/^tb|vertical/,xe=/msie|trident/i.test(de.navigator&&de.navigator.userAgent),me=function(r){return parseFloat(r||"0")},be=function(r,e,t){return void 0===r&&(r=0),void 0===e&&(e=0),void 0===t&&(t=!1),new se((t?e:r)||0,(t?r:e)||0)},Oe=ce({devicePixelContentBoxSize:be(),borderBoxSize:be(),contentBoxSize:be(),contentRect:new le(0,0,0,0)}),je=function(r,e){if(void 0===e&&(e=!1),ve.has(r)&&!e)return ve.get(r);if(fe(r))return ve.set(r,Oe),Oe;var t=getComputedStyle(r),n=pe(r)&&r.ownerSVGElement&&r.getBBox(),o=!xe&&"border-box"===t.boxSizing,i=ye.test(t.writingMode||""),a=!n&&he.test(t.overflowY||""),c=!n&&he.test(t.overflowX||""),s=n?0:me(t.paddingTop),l=n?0:me(t.paddingRight),p=n?0:me(t.paddingBottom),f=n?0:me(t.paddingLeft),u=n?0:me(t.borderTopWidth),d=n?0:me(t.borderRightWidth),v=n?0:me(t.borderBottomWidth),h=f+l,y=s+p,x=(n?0:me(t.borderLeftWidth))+d,m=u+v,b=c?r.offsetHeight-m-r.clientHeight:0,O=a?r.offsetWidth-x-r.clientWidth:0,j=o?h+x:0,g=o?y+m:0,w=n?n.width:me(t.width)-j-O,z=n?n.height:me(t.height)-g-b,V=w+h+O+x,S=z+y+b+m,M=ce({devicePixelContentBoxSize:be(Math.round(w*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:be(V,S,i),contentBoxSize:be(w,z,i),contentRect:new le(f,s,w,z)});return ve.set(r,M),M},ge=function(r,e,t){var n=je(r,t),o=n.borderBoxSize,i=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(e){case _r.DEVICE_PIXEL_CONTENT_BOX:return a;case _r.BORDER_BOX:return o;default:return i}},we=function(r){var e=je(r);this.target=r,this.contentRect=e.contentRect,this.borderBoxSize=ce([e.borderBoxSize]),this.contentBoxSize=ce([e.contentBoxSize]),this.devicePixelContentBoxSize=ce([e.devicePixelContentBoxSize])},ze=function(r){if(fe(r))return 1/0;for(var e=0,t=r.parentNode;t;)e+=1,t=t.parentNode;return e},Ve=function(){var r=1/0,e=[];oe.forEach((function(t){if(0!==t.activeTargets.length){var n=[];t.activeTargets.forEach((function(e){var t=new we(e.target),o=ze(e.target);n.push(t),e.lastReportedSize=ge(e.target,e.observedBox),o<r&&(r=o)})),e.push((function(){t.callback.call(t.observer,n,t.observer)})),t.activeTargets.splice(0,t.activeTargets.length)}}));for(var t=0,n=e;t<n.length;t++){(0,n[t])()}return r},Se=function(r){oe.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(t){t.isActive()&&(ze(t.target)>r?e.activeTargets.push(t):e.skippedTargets.push(t))}))}))},Me=function(){var r,e=0;for(Se(e);oe.some((function(r){return r.activeTargets.length>0}));)e=Ve(),Se(e);return oe.some((function(r){return r.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?r=new ErrorEvent("error",{message:ie}):((r=document.createEvent("Event")).initEvent("error",!1,!1),r.message=ie),window.dispatchEvent(r)),e>0},Pe=[],He=function(r){if(!ae){var e=0,t=document.createTextNode("");new MutationObserver((function(){return Pe.splice(0).forEach((function(r){return r()}))})).observe(t,{characterData:!0}),ae=function(){t.textContent=""+(e?e--:e++)}}Pe.push(r),ae()},Ie=0,Ce={attributes:!0,characterData:!0,childList:!0,subtree:!0},Re=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Le=function(r){return void 0===r&&(r=0),Date.now()+r},Ee=!1,Ne=new(function(){function r(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return r.prototype.run=function(r){var e=this;if(void 0===r&&(r=250),!Ee){Ee=!0;var t,n=Le(r);t=function(){var t=!1;try{t=Me()}finally{if(Ee=!1,r=n-Le(),!Ie)return;t?e.run(1e3):r>0?e.run(r):e.start()}},He((function(){requestAnimationFrame(t)}))}},r.prototype.schedule=function(){this.stop(),this.run()},r.prototype.observe=function(){var r=this,e=function(){return r.observer&&r.observer.observe(document.body,Ce)};document.body?e():de.addEventListener("DOMContentLoaded",e)},r.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Re.forEach((function(e){return de.addEventListener(e,r.listener,!0)})))},r.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),Re.forEach((function(e){return de.removeEventListener(e,r.listener,!0)})),this.stopped=!0)},r}()),Ge=function(r){!Ie&&r>0&&Ne.start(),!(Ie+=r)&&Ne.stop()},Te=function(){function r(r,e){this.target=r,this.observedBox=e||_r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return r.prototype.isActive=function(){var r,e=ge(this.target,this.observedBox,!0);return r=this.target,pe(r)||function(r){switch(r.tagName){case"INPUT":if("image"!==r.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(r)||"inline"!==getComputedStyle(r).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},r}(),Ae=function(r,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=e},ke=new WeakMap,De=function(r,e){for(var t=0;t<r.length;t+=1)if(r[t].target===e)return t;return-1},Fe=function(){function r(){}return r.connect=function(r,e){var t=new Ae(r,e);ke.set(r,t)},r.observe=function(r,e,t){var n=ke.get(r),o=0===n.observationTargets.length;De(n.observationTargets,e)<0&&(o&&oe.push(n),n.observationTargets.push(new Te(e,t&&t.box)),Ge(1),Ne.schedule())},r.unobserve=function(r,e){var t=ke.get(r),n=De(t.observationTargets,e),o=1===t.observationTargets.length;n>=0&&(o&&oe.splice(oe.indexOf(t),1),t.observationTargets.splice(n,1),Ge(-1))},r.disconnect=function(r){var e=this,t=ke.get(r);t.observationTargets.slice().forEach((function(t){return e.unobserve(r,t.target)})),t.activeTargets.splice(0,t.activeTargets.length)},r}(),Be=function(){function r(r){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof r)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Fe.connect(this,r)}return r.prototype.observe=function(r,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ue(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Fe.observe(this,r,e)},r.prototype.unobserve=function(r){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ue(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Fe.unobserve(this,r)},r.prototype.disconnect=function(){Fe.disconnect(this)},r.toString=function(){return"function ResizeObserver () { [polyfill code] }"},r}();function _e(r){var t=e.useRef(null),n=e.useCallback((function(e){g(e,r),t.current=e}),[r]);return[t,n]}var Ke,We=function(){return(We=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},Ue=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function qe(r,e){return!r||r.height!==e.height||r.scrollHeight!==e.scrollHeight}function Xe(r,e){return!r||r.width!==e.width||r.scrollWidth!==e.scrollWidth}var Ye=[];function Je(r,e){void 0===e&&(e={});var t=e.ref,n=e.disableWidth,o=void 0!==n&&n,i=e.disableHeight,a=void 0!==i&&i,c=Ue(_e(t),2),s=c[0],l=c[1];return fr((function(){var e=s.current;if(!(a&&o||!e))return Ke||"undefined"==typeof document||(Ke=new Be((function(r){for(var e=function(e){var t=r[e],n=Ye.filter((function(r){return r.target===t.target}));if(!n.length)return{value:void 0};for(var o=t.contentRect,i=o.height,a=o.width,c=t.target,s={height:i,width:a,scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth},l=0;l<n.length;l+=1){var p=n[l],f=p.handler,u=p.prevSize,d=p.disableHeight,v=p.disableWidth,h=qe(u,s),y=Xe(u,s);(h&&!d||y&&!v)&&(p.prevSize=s,f(We(We({},s),{element:t.target})))}},t=0;t<r.length;t+=1){var n=e(t);if("object"==typeof n)return n.value}}))),function(r,e,t,n){var o=Ye.find((function(e){return e.target===r}));Ye.push({target:r,handler:e,disableWidth:n,disableHeight:t,prevSize:void 0}),o||null==Ke||Ke.observe(r)}(e,r,a,o),function(){!function(r,e,t,n){var o=Ye.findIndex((function(o){return o.target===r&&o.handler===e&&o.disableWidth===n&&o.disableHeight===t}));-1!==o&&Ye.splice(o,1),Ye.some((function(e){return e.target===r}))||null==Ke||Ke.unobserve(r)}(e,r,a,o)}}),[a,o,r]),[s,l]}var Qe={height:void 0,width:void 0};var Ze=function(){return(Ze=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},$e=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},rt="--rmd-cell-size",et="--rmd-cell-margin",tt=e.createContext({columns:-1,cellWidth:-1}),nt=tt.Provider;function ot(r){var t,n=void 0===r?{}:r,o=n.ref,i=n.style,a=n.className,c=n.cellMargin,s=n.defaultSize,l=n.maxCellSize,p=void 0===l?150:l,f=n.disableHeight,u=void 0!==f&&f,d=n.disableWidth,v=void 0!==d&&d,h=n.containerPadding,y=void 0===h?16:h,m=$e(_e(o),2),b=m[0],O=m[1],j=$e(e.useState(s||{columns:-1,cellWidth:p}),2),g=j[0],w=j[1],z=e.useCallback((function(){var r=b.current;if(r){var e=r.getBoundingClientRect().width;e-=y,r.offsetHeight<r.scrollHeight&&(e-=function(r,e){if(void 0===r&&(r="width"),void 0===e&&(e=!1),"undefined"==typeof window)return-1;var t=Qe[r];if(!e&&"number"==typeof t)return t;var n=document.createElement("div");n.style.visibility="hidden",n.style.overflow="scroll",document.body.appendChild(n);var o=document.createElement("div");n.appendChild(o);var i="width"===r?"offsetWidth":"offsetHeight";return t=n[i]-o[i],Qe[r]=t,document.body.removeChild(n),t}("width"));var t=Math.ceil(e/p);w({cellWidth:e/t,columns:t})}}),[y,p,b]),V=$e(Je(z,{ref:O,disableHeight:u,disableWidth:v}),2)[1],S=Ze(Ze({},i),((t={})[rt]="".concat(g.cellWidth,"px"),t));return c&&(S[et]=c),[{ref:V,style:S,className:x("rmd-grid-list",a)},g]}var it=function(){return(it=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)},at=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},ct=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},st=e.forwardRef((function(r,t){var n=r.style,o=r.className,i=r.children,a=r.clone,s=void 0!==a&&a,l=r.wrapOnly,p=void 0!==l&&l,f=r.cellMargin,u=r.defaultSize,d=r.maxCellSize,v=void 0===d?150:d,h=r.containerPadding,y=void 0===h?16:h,x=r.disableHeightObserver,m=void 0!==x&&x,b=r.disableWidthObserver,O=void 0!==b&&b,j=at(r,["style","className","children","clone","wrapOnly","cellMargin","defaultSize","maxCellSize","containerPadding","disableHeightObserver","disableWidthObserver"]),g=ct(ot({ref:t,style:n,className:o,cellMargin:f,defaultSize:u,maxCellSize:v,containerPadding:y,disableHeight:m,disableWidth:O}),2),w=g[0],z=g[1],V=null;return V=function(r){return"function"==typeof r}(i)?i(z):s||p?e.Children.map(i,(function(r){return r&&c.exports.jsx(ne,it({clone:s},{children:r}),void 0)})):i,c.exports.jsx(nt,it({value:z},{children:c.exports.jsx("div",it({},j,w,{children:V}),void 0)}),void 0)}));function lt(r){var e=r.value,t=r.min,n=void 0===t?0:t,o=r.max,i=r.increment,a=r.minmax,c=e+(i?1:-1);return void 0!==a&&a?c=Math.min(o,Math.max(n,c)):c>o?c=n:c<n&&(c=o),c}function pt(r,e,t,n,o){void 0===o&&(o=t-e);var i=Math.round((r-e)*n/o)/n,a=Math.min(Math.max(i,0),1),c=o/n,s=Number.isInteger(c)?o%n:c.toString().split(".")[1].length;return Math.min(t,Math.max(e,parseFloat((a*o+e).toFixed(s))))}function ft(r,e){if(!e.length)return r;var t={};for(var n in r)e.includes(n)||(t[n]=r[n]);return t}function ut(r){if(!r)return null;if(/(tree|list)item/.test(r.getAttribute("role")||"")){if(t=r.querySelector(".rmd-tree-item__content, .rmd-item-text"))return t}else if("file"===r.getAttribute("type")){var e=document.querySelector('[for="'.concat(r.id,'"]'));if(e)return e}var t,n=r.getAttribute("data-sizing-selector");if(n&&(t=r.querySelector(n)))return t;return r}function dt(r){var e=document.documentElement||{clientHeight:0,clientWidth:0};return"width"===r?window.innerWidth||e.clientWidth:window.innerHeight||e.clientHeight}function vt(r){return"number"==typeof r?"".concat(r,"px"):""}function ht(r,e){void 0===e&&(e={});var t=r.cloneNode(!0);t.removeAttribute("id"),t.removeAttribute("role"),t.style.position="fixed",t.style.visibility="hidden",t.style.left=vt(e.left),t.style.top=vt(e.top),t.style.right=vt(e.right),t.style.bottom=vt(e.bottom),t.style.webkitTransform="none",t.style.transform="none";var n=r.parentElement||document.body;n.appendChild(t);var o=t.getBoundingClientRect();return n.removeChild(t),o}var yt={x:"center",y:"above"},xt={x:"inner-left",y:"top"},mt={x:"inner-right",y:"top"},bt={x:"right",y:"top"},Ot={x:"left",y:"center"},jt={x:"center",y:"center"},gt={x:"right",y:"center"},wt={x:"center",y:"below"},zt={x:"inner-right",y:"below"};function Vt(r){var e=r.xMargin,t=r.elWidth,n=r.initialX,o=r.containerRect;return(null!=n?n:o.left)-t-e}function St(r){var e=r.xMargin,t=r.initialX,n=r.containerRect;return(null!=t?t:n.left)+e}function Mt(r){var e=r.xMargin,t=r.elWidth,n=r.initialX,o=r.containerRect;return(null!=n?n:o.left+o.width)-t-e}function Pt(r){var e=r.xMargin,t=r.initialX,n=r.containerRect;return(null!=t?t:n.left+n.width)+e}function Ht(r){var e=r.yMargin,t=r.initialY,n=r.elHeight,o=r.containerRect;return(null!=t?t:o.top)-n-e}function It(r){var e=r.yMargin,t=r.initialY,n=r.containerRect;return(null!=t?t:n.top)+e}function Ct(r){var e=r.yMargin,t=r.initialY,n=r.elHeight,o=r.containerRect;return(null!=t?t:o.top+o.height)-n-e}function Rt(r){var e=r.yMargin,t=r.initialY,n=r.containerRect;return(null!=t?t:n.top+n.height)+e}function Lt(r){var e=r.x,t=r.vw,n=r.vwMargin,o=r.xMargin,i=r.width,a=r.elWidth,c=r.initialX,s=r.containerRect,l=r.disableSwapping;if("min"===i||"equal"===i)return function(r){var e,t,n=r.x,o=r.vw,i=r.elWidth,a=r.xMargin,c=r.vwMargin,s=r.initialX,l=r.containerRect,p=r.isMinWidth,f=null!=s?s:l.left+a,u=l.width-2*a;return p&&(e=u,u=void 0,f+i>o-c&&(t=c)),{left:f,right:t,width:u,minWidth:e,actualX:n}}({x:e,vw:t,vwMargin:n,xMargin:o,elWidth:a,initialX:c,containerRect:s,isMinWidth:"min"===i});if(a>t-2*n)return{left:n,right:n,actualX:e};var p={vwMargin:n,xMargin:o,elWidth:a,initialX:c,screenRight:t-n,containerRect:s,disableSwapping:l};switch(e){case"left":return function(r){var e=r.vwMargin,t=r.screenRight,n=r.elWidth,o=r.disableSwapping,i=Vt(r),a="left";if(i>=e)return{actualX:a,left:i};var c=Pt(r);return o||c+n>t?i=e:(i=c,a="right"),{actualX:a,left:i}}(p);case"inner-left":return function(r){var e=r.vwMargin,t=r.screenRight,n=r.elWidth,o=r.disableSwapping,i=St(r),a="inner-left";if(i+n<=t)return{actualX:a,left:i};var c=Mt(r);return o||c<e?i=e:(i=c,a="inner-right"),{actualX:a,left:i}}(p);case"center":return function(r){var e=r.vwMargin,t=r.screenRight,n=r.elWidth,o=function(r){var e=r.elWidth,t=r.initialX,n=r.containerRect,o=n.width/2,i=e/2;return(null!=t?t:n.left+o)-i}(r);return o<e?o=e:(o+n>t||o<e)&&(o=t-n),{actualX:"center",left:o}}(p);case"inner-right":return function(r){var e=r.screenRight,t=r.vwMargin,n=r.elWidth,o=r.disableSwapping,i=Mt(r),a="inner-right";if(i>=t)return{actualX:a,left:i};var c=St(r);return o||c+n>e?i=e-n:(i=c,a="inner-left"),{actualX:a,left:i}}(p);case"right":return function(r){var e=r.screenRight,t=r.vwMargin,n=r.elWidth,o=r.disableSwapping,i=Pt(r),a="right";if(i+n<=e)return{actualX:a,left:i};var c=Vt(r);return o||c<t?i=e-n:(i=c,a="left"),{actualX:a,left:i}}(p);default:throw new Error("This should never happen")}}function Et(r){var e=r.y,t=r.vh,n=r.vhMargin,o=r.yMargin,i=r.elHeight,a=r.initialY,c=r.containerRect,s=r.disableSwapping,l=r.preventOverlap,p=r.disableVHBounds;if(!p&&!l&&i>t-2*n)return{top:n,bottom:n,actualY:"center"};var f={vhMargin:n,yMargin:o,elHeight:i,initialY:a,containerRect:c,screenBottom:t-n,preventOverlap:l,disableSwapping:s,disableVHBounds:p};switch(e){case"above":return function(r){var e=r.yMargin,t=r.vhMargin,n=r.screenBottom,o=r.elHeight,i=r.containerRect,a=r.preventOverlap,c=r.disableSwapping,s=r.disableVHBounds,l=Ht(r),p="above";if(s)return{actualY:p,top:Math.max(0,l)};if(l>t)return{actualY:p,top:l};var f,u=Rt(r);return c||u+o>n?l=t:(p="below",l=u),a&&"above"===p&&l+o>i.top&&(f=window.innerHeight-i.top+e),{actualY:p,top:l,bottom:f}}(f);case"top":return function(r){var e=r.vhMargin,t=r.screenBottom,n=r.elHeight,o=r.disableSwapping,i=r.disableVHBounds,a=It(r),c="top";if(i||a+n<=t)return{actualY:c,top:a};var s=Ct(r);return o||s<e?a=e:(c="bottom",a=s),{actualY:c,top:a}}(f);case"center":return function(r){var e=r.vhMargin,t=r.screenBottom,n=r.elHeight,o=r.disableVHBounds,i=function(r){var e=r.elHeight,t=r.initialY,n=r.containerRect,o=n.height/2,i=e/2;return(null!=t?t:n.top+o)-i}(r),a="center";return o?{actualY:a,top:Math.max(0,i)}:((i=Math.max(e,i))+n>t&&(i=t-n),{actualY:a,top:i})}(f);case"bottom":return function(r){var e=r.vhMargin,t=r.screenBottom,n=r.elHeight,o=r.disableSwapping,i=r.disableVHBounds,a=Ct(r),c="bottom";if(i||a>e)return{actualY:c,top:a};var s=It(r);return o||s+n>t?a=t-n:(c="top",a=s),{actualY:c,top:a}}(f);case"below":return function(r){var e=r.yMargin,t=r.vhMargin,n=r.elHeight,o=r.screenBottom,i=r.containerRect,a=r.preventOverlap,c=r.disableSwapping,s=r.disableVHBounds,l=Rt(r),p="below";if(s||l+n<=o)return{actualY:p,top:l};if(a){var f=i.top-e;return c||f<o-l?{actualY:p,top:l,bottom:t}:{actualY:"above",top:Math.max(t,f-n),bottom:dt("height")-f}}var u=Ht(r);return c||u<t?l=o-n:(p="above",l=u),{actualY:p,top:l}}(f);default:throw new Error("This should never happen")}}function Nt(r){var e="0";switch(r.x){case"right":case"inner-left":e="0";break;case"center":e="50%";break;case"left":case"inner-right":e="100%";break;default:e="0"}var t="0";switch(r.y){case"above":case"bottom":t="100%";break;case"center":t="50%";break;case"below":case"top":t="0";break;default:t="0"}return"".concat(e," ").concat(t)}function Gt(r){var e=r.container,t=r.element,n=r.anchor,o=void 0===n?wt:n,i=r.initialX,a=r.initialY,c=r.vwMargin,s=void 0===c?16:c,l=r.vhMargin,p=void 0===l?16:l,f=r.xMargin,u=void 0===f?0:f,d=r.yMargin,v=void 0===d?0:d,h=r.width,y=void 0===h?"auto":h,x=r.preventOverlap,m=void 0!==x&&x,b=r.transformOrigin,O=void 0!==b&&b,j=r.disableSwapping,g=void 0!==j&&j,w=r.disableVHBounds,z=void 0!==w&&w;if(!(e=ut(e))||!t)return{actualX:o.x,actualY:o.y};var V=e.getBoundingClientRect(),S=dt("height"),M=dt("width"),P=ht(t),H=P.height,I=P.width;z&&(t.closest("[role='dialog']")||(a=(null!=a?a:0)+window.scrollY));var C=Lt({x:o.x,vw:M,vwMargin:s,xMargin:u,width:y,elWidth:I,initialX:i,containerRect:V,disableSwapping:g}),R=C.left,L=C.right,E=C.width,N=C.minWidth,G=C.actualX,T=Et({y:o.y,vh:S,vhMargin:p,yMargin:v,initialY:a,elHeight:H,containerRect:V,disableSwapping:g,preventOverlap:m,disableVHBounds:z}),A=T.top,k=T.bottom,D=T.actualY;return{actualX:G,actualY:D,style:{left:R,top:A,right:L,bottom:k,width:E,minWidth:N,position:z?"absolute":"fixed",transformOrigin:O?Nt({x:G,y:D}):void 0}}}function Tt(r,e){if(e=ut(e),r&&e){var t=e.offsetTop;e.offsetParent!==r&&(t-=r.offsetTop);var n=t+e.offsetHeight;n>r.offsetHeight+r.scrollTop?r.scrollTop=n-r.offsetHeight:t<r.scrollTop&&(r.scrollTop=t)}}function At(r,e,t,n){r=r.toUpperCase();for(var o=t;o<n;o+=1){if(0===e[o].toUpperCase().indexOf(r))return o}return-1}function kt(r,e,t,n){void 0===n&&(n=!0);var o=At(r,e,t+1,e.length);-1===o&&(o=At(r,e,0,t+(n?1:0)));return o}function Dt(r,e,t,n){return void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!1),e&&(r=r.toLowerCase()),n?r=r.replace(/\s/g,""):t&&(r=r.trim()),r}function Ft(r,e){switch(void 0===e&&(e="value"),typeof r){case"string":return r;case"number":return Number.isNaN(r)?"":"".concat(r);case"function":return Ft(r(),e);case"object":return r?Ft(r[e],e):"";default:return""}}var Bt=Ft,_t="value",Kt={getItemValue:Bt,valueKey:_t,trim:true,ignoreWhitespace:false};function Wt(r,e,t){void 0===t&&(t={});var n=N(t,Kt),o=n.getItemValue,i=n.valueKey,a=n.trim,c=n.ignoreWhitespace,s=n.startsWith,l=void 0!==s&&s;return(r=Dt(r,!0,a,c))&&e.length?e.filter((function(e){var t=Dt(o(e,i),!0,a,c);return l?0===t.indexOf(r):-1!==t.indexOf(r)})):e}function Ut(r){return new RegExp("".concat(r).split("").join("\\w*").replace(/(\(|\||\)|\\(?!w\*)|\[|\|-|\.|\^|\+|\$|\?|^(?!w)\*)/g,"\\$1").replace(/\*\*/g,"*\\*"),"i")}function qt(r,e,t){void 0===t&&(t={});var n=N(t,Kt),o=n.getItemValue,i=n.valueKey,a=n.trim,c=n.ignoreWhitespace;if(r=Dt(r,!1,a,c),!e.length||!r)return e;var s=Ut(r);return e.filter((function(r){var e=Dt(o(r,i),!1,a,c);return e.length&&e.match(s)}))}function Xt(r,t){void 0===t&&(t=500);var n=e.useRef(r),o=e.useRef(),i=e.useCallback((function(){window.clearTimeout(o.current),n.current=r}),[r]),a=e.useCallback((function(r){n.current=r,window.clearTimeout(o.current),o.current=window.setTimeout(i,t)}),[t,i]);return[n,a,i]}var Yt=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a};function Jt(r){var t=r.items,n=r.onChange,o=r.onKeyDown,i=r.resetTime,a=void 0===i?500:i,c=r.searchIndex,s=r.valueKey,l=void 0===s?_t:s,p=r.getItemValue,f=void 0===p?Bt:p,u=r.findMatchIndex,d=void 0===u?kt:u,v=Yt(Xt("",a),2),h=v[0],y=v[1],x=e.useMemo((function(){return t.map((function(r){return f(r,l)}))}),[t,f,l]);return e.useCallback((function(r){o&&o(r);var e=r.key,i=r.altKey,a=r.ctrlKey,s=r.metaKey;if(!(i||a||s||e.length>1||!h.current&&" "===e)){var l=e;h.current!==e&&(l="".concat(h.current).concat(e)),y(l);var p=d(l,x,c,!0);if(p!==c&&-1!==p){var f={index:p,item:t[p],items:t,query:l,target:r.currentTarget};n(f)}}}),[c,d,t,n,o,y,h,x])}var Qt=function(){return(Qt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}).apply(this,arguments)};function Zt(r){var t=r.children,n=r.onChange,o=r.phoneMaxWidth,i=void 0===o?Mr:o,a=r.tabletMinWidth,s=void 0===a?Vr:a,l=r.tabletMaxWidth,p=void 0===l?Sr:l,f=r.desktopMinWidth,u=void 0===f?zr:f,d=r.desktopLargeMinWidth,v=void 0===d?Pr:d,h=r.defaultSize,y=void 0===h?Tr:h,x=Ar({phoneMaxWidth:i,tabletMaxWidth:p,tabletMinWidth:s,desktopMinWidth:u,desktopLargeMinWidth:v,defaultSize:y}),m=e.useRef(x);e.useEffect((function(){!n||y.isPhone===x.isPhone&&y.isTablet===x.isTablet&&y.isDesktop===x.isDesktop&&y.isLargeDesktop===x.isLargeDesktop&&y.isLandscape===x.isLandscape||n(x,y)}),[]),e.useEffect((function(){m.current!==x&&(n&&n(x,m.current),m.current=x)}));var b=e.useMemo((function(){return Qt(Qt({},x),{__initialized:!0})}),[x]);return c.exports.jsx(Fr.Provider,Qt({value:b},{children:t}),void 0)}function $t(r){var t=r.onResize,n=r.options,o=r.immediate,i=r.enabled,a=void 0===i||i,c=$(t);e.useEffect((function(){if(a){var r=J("resize",window,!0,n),e=function(r){return c.current(r)};return r.add(e),o&&"undefined"!=typeof window&&window.dispatchEvent(new UIEvent("resize")),function(){r.remove(e)}}}),[n,a])}var rn=function(r,e){var t="function"==typeof Symbol&&r[Symbol.iterator];if(!t)return r;var n,o,i=t.call(r),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a},en=function(r,e,t){if(t||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return r.concat(n||Array.prototype.slice.call(e))};function tn(r,e){void 0===e&&(e={});var t=e.fontSizeFallback,n=void 0===t?16:t,o=e.element;if("number"==typeof r)return r;var i=parseFloat(r);if(/px$/.test(r))return i;if("undefined"==typeof document)return i*n;var a=/rem$/.test(r),c=document.documentElement;return!a&&o&&(c=o.parentElement||o),i*parseFloat(window.getComputedStyle(c).fontSize||"".concat(n,"px"))}function nn(r){return r?void 0!==r.current?r.current:r:null}function on(r){var t=r.enabled,n=r.element,o=r.onOutsideClick;e.useEffect((function(){if(t)return window.addEventListener("click",r),function(){window.removeEventListener("click",r)};function r(r){var e