UNPKG

tm-reuseable-components

Version:

This is a reuseable components lib made for TextMercato

32 lines 4.84 MB
import*as e from"react";import c,{forwardRef as t,useContext as h,Children as o,isValidElement as l,cloneElement as a,Fragment as n,createElement as r,useEffect as i}from"react";import v,{jsx as d,jsxs as s}from"react/jsx-runtime";import*as z from"react-dom";import p from"react-dom";function m(e,c){if(null==e)return{};var t,h,o={},l=Object.keys(e);for(h=0;h<l.length;h++)t=l[h],c.indexOf(t)>=0||(o[t]=e[t]);return o}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var c=1;c<arguments.length;c++){var t=arguments[c];for(var h in t)Object.prototype.hasOwnProperty.call(t,h)&&(e[h]=t[h])}return e},u.apply(this,arguments)}function H(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function M(e){if(e.__esModule)return e;var c=e.default;if("function"==typeof c){var t=function e(){if(this instanceof e){var t=[null];return t.push.apply(t,arguments),new(Function.bind.apply(c,t))}return c.apply(this,arguments)};t.prototype=c.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach((function(c){var h=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(t,c,h.get?h:{enumerable:!0,get:function(){return e[c]}})})),t}var V,C={exports:{}},L={};var f,S={}; /** * @license React * react-is.development.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. */"production"===process.env.NODE_ENV?C.exports=function(){if(V)return L;V=1;var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),r=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:switch(e=e.type){case h:case l:case o:case v:case d:return e;default:switch(e=e&&e.$$typeof){case r:case n:case i:case z:case s:case a:return e;default:return p}}case t:return p}}}return e=Symbol.for("react.module.reference"),L.ContextConsumer=n,L.ContextProvider=a,L.Element=c,L.ForwardRef=i,L.Fragment=h,L.Lazy=z,L.Memo=s,L.Portal=t,L.Profiler=l,L.StrictMode=o,L.Suspense=v,L.SuspenseList=d,L.isAsyncMode=function(){return!1},L.isConcurrentMode=function(){return!1},L.isContextConsumer=function(e){return m(e)===n},L.isContextProvider=function(e){return m(e)===a},L.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},L.isForwardRef=function(e){return m(e)===i},L.isFragment=function(e){return m(e)===h},L.isLazy=function(e){return m(e)===z},L.isMemo=function(e){return m(e)===s},L.isPortal=function(e){return m(e)===t},L.isProfiler=function(e){return m(e)===l},L.isStrictMode=function(e){return m(e)===o},L.isSuspense=function(e){return m(e)===v},L.isSuspenseList=function(e){return m(e)===d},L.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===v||c===d||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===s||c.$$typeof===a||c.$$typeof===n||c.$$typeof===i||c.$$typeof===e||void 0!==c.getModuleId)},L.typeOf=m,L}():C.exports=(f||(f=1,"production"!==process.env.NODE_ENV&&function(){var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),r=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:var m=e.type;switch(m){case h:case l:case o:case v:case d:return m;default:var u=m&&m.$$typeof;switch(u){case r:case n:case i:case z:case s:case a:return u;default:return p}}case t:return p}}}e=Symbol.for("react.module.reference");var u=n,H=a,M=c,V=i,C=h,L=z,f=s,T=t,g=l,y=o,b=v,w=d,O=!1,R=!1;S.ContextConsumer=u,S.ContextProvider=H,S.Element=M,S.ForwardRef=V,S.Fragment=C,S.Lazy=L,S.Memo=f,S.Portal=T,S.Profiler=g,S.StrictMode=y,S.Suspense=b,S.SuspenseList=w,S.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},S.isConcurrentMode=function(e){return R||(R=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},S.isContextConsumer=function(e){return m(e)===n},S.isContextProvider=function(e){return m(e)===a},S.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},S.isForwardRef=function(e){return m(e)===i},S.isFragment=function(e){return m(e)===h},S.isLazy=function(e){return m(e)===z},S.isMemo=function(e){return m(e)===s},S.isPortal=function(e){return m(e)===t},S.isProfiler=function(e){return m(e)===l},S.isStrictMode=function(e){return m(e)===o},S.isSuspense=function(e){return m(e)===v},S.isSuspenseList=function(e){return m(e)===d},S.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===v||c===d||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===s||c.$$typeof===a||c.$$typeof===n||c.$$typeof===i||c.$$typeof===e||void 0!==c.getModuleId)},S.typeOf=m}()),S);var T,g=C.exports,y={exports:{}},b={exports:{}},w={};var O,R,x,k,A,P,F,D,E,B,N,I,W,$,j={}; /** @license React v16.13.1 * react-is.development.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. */function U(){return R||(R=1,"production"===process.env.NODE_ENV?b.exports=function(){if(T)return w;T=1;var e="function"==typeof Symbol&&Symbol.for,c=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,h=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,r=e?Symbol.for("react.async_mode"):60111,i=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,s=e?Symbol.for("react.suspense_list"):60120,z=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,H=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function V(e){if("object"==typeof e&&null!==e){var s=e.$$typeof;switch(s){case c:switch(e=e.type){case r:case i:case h:case l:case o:case d:return e;default:switch(e=e&&e.$$typeof){case n:case v:case p:case z:case a:return e;default:return s}}case t:return s}}}function C(e){return V(e)===i}return w.AsyncMode=r,w.ConcurrentMode=i,w.ContextConsumer=n,w.ContextProvider=a,w.Element=c,w.ForwardRef=v,w.Fragment=h,w.Lazy=p,w.Memo=z,w.Portal=t,w.Profiler=l,w.StrictMode=o,w.Suspense=d,w.isAsyncMode=function(e){return C(e)||V(e)===r},w.isConcurrentMode=C,w.isContextConsumer=function(e){return V(e)===n},w.isContextProvider=function(e){return V(e)===a},w.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},w.isForwardRef=function(e){return V(e)===v},w.isFragment=function(e){return V(e)===h},w.isLazy=function(e){return V(e)===p},w.isMemo=function(e){return V(e)===z},w.isPortal=function(e){return V(e)===t},w.isProfiler=function(e){return V(e)===l},w.isStrictMode=function(e){return V(e)===o},w.isSuspense=function(e){return V(e)===d},w.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===h||e===i||e===l||e===o||e===d||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===z||e.$$typeof===a||e.$$typeof===n||e.$$typeof===v||e.$$typeof===u||e.$$typeof===H||e.$$typeof===M||e.$$typeof===m)},w.typeOf=V,w}():b.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,c=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,h=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,n=e?Symbol.for("react.context"):60110,r=e?Symbol.for("react.async_mode"):60111,i=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,s=e?Symbol.for("react.suspense_list"):60120,z=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,u=e?Symbol.for("react.fundamental"):60117,H=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function V(e){if("object"==typeof e&&null!==e){var s=e.$$typeof;switch(s){case c:var m=e.type;switch(m){case r:case i:case h:case l:case o:case d:return m;default:var u=m&&m.$$typeof;switch(u){case n:case v:case p:case z:case a:return u;default:return s}}case t:return s}}}var C=r,L=i,f=n,S=a,T=c,g=v,y=h,b=p,w=z,O=t,R=l,x=o,k=d,A=!1;function P(e){return V(e)===i}j.AsyncMode=C,j.ConcurrentMode=L,j.ContextConsumer=f,j.ContextProvider=S,j.Element=T,j.ForwardRef=g,j.Fragment=y,j.Lazy=b,j.Memo=w,j.Portal=O,j.Profiler=R,j.StrictMode=x,j.Suspense=k,j.isAsyncMode=function(e){return A||(A=!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.")),P(e)||V(e)===r},j.isConcurrentMode=P,j.isContextConsumer=function(e){return V(e)===n},j.isContextProvider=function(e){return V(e)===a},j.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},j.isForwardRef=function(e){return V(e)===v},j.isFragment=function(e){return V(e)===h},j.isLazy=function(e){return V(e)===p},j.isMemo=function(e){return V(e)===z},j.isPortal=function(e){return V(e)===t},j.isProfiler=function(e){return V(e)===l},j.isStrictMode=function(e){return V(e)===o},j.isSuspense=function(e){return V(e)===d},j.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===h||e===i||e===l||e===o||e===d||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===z||e.$$typeof===a||e.$$typeof===n||e.$$typeof===v||e.$$typeof===u||e.$$typeof===H||e.$$typeof===M||e.$$typeof===m)},j.typeOf=V}()),j)),b.exports} /* object-assign (c) Sindre Sorhus @license MIT */function G(){if(k)return x;k=1;var e=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return x=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var c={},t=0;t<10;t++)c["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(c).map((function(e){return c[e]})).join(""))return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach((function(e){h[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},h)).join("")}catch(e){return!1}}()?Object.assign:function(h,o){for(var l,a,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(h),r=1;r<arguments.length;r++){for(var i in l=Object(arguments[r]))c.call(l,i)&&(n[i]=l[i]);if(e){a=e(l);for(var v=0;v<a.length;v++)t.call(l,a[v])&&(n[a[v]]=l[a[v]])}}return n},x}function _(){if(P)return A;P=1;return A="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function K(){return D?F:(D=1,F=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var q=U();y.exports=function(){if(I)return N;I=1;var e=U(),c=G(),t=_(),h=K(),o=function(){if(B)return E;B=1;var e=function(){};if("production"!==process.env.NODE_ENV){var c=_(),t={},h=K();e=function(e){var c="Warning: "+e;"undefined"!=typeof console&&console.error(c);try{throw new Error(c)}catch(e){}}}function o(o,l,a,n,r){if("production"!==process.env.NODE_ENV)for(var i in o)if(h(o,i)){var v;try{if("function"!=typeof o[i]){var d=Error((n||"React class")+": "+a+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}v=o[i](l,i,n,a,null,c)}catch(e){v=e}if(!v||v instanceof Error||e((n||"React class")+": type specification of "+a+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof v+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),v instanceof Error&&!(v.message in t)){t[v.message]=!0;var s=r?r():"";e("Failed "+a+" type: "+v.message+(null!=s?s:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},E=o}(),l=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(l=function(e){var c="Warning: "+e;"undefined"!=typeof console&&console.error(c);try{throw new Error(c)}catch(e){}}),N=function(n,r){var i="function"==typeof Symbol&&Symbol.iterator,v="@@iterator",d="<<anonymous>>",s={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:m(a),arrayOf:function(e){return m((function(c,h,o,l,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var n=c[h];if(!Array.isArray(n))return new p("Invalid "+l+" `"+a+"` of type `"+V(n)+"` supplied to `"+o+"`, expected an array.");for(var r=0;r<n.length;r++){var i=e(n,r,o,l,a+"["+r+"]",t);if(i instanceof Error)return i}return null}))},element:m((function(e,c,t,h,o){var l=e[c];return n(l)?null:new p("Invalid "+h+" `"+o+"` of type `"+V(l)+"` supplied to `"+t+"`, expected a single ReactElement.")})),elementType:m((function(c,t,h,o,l){var a=c[t];return e.isValidElementType(a)?null:new p("Invalid "+o+" `"+l+"` of type `"+V(a)+"` supplied to `"+h+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(c,t,h,o,l){if(!(c[t]instanceof e)){var a=e.name||d;return new p("Invalid "+o+" `"+l+"` of type `"+((n=c[t]).constructor&&n.constructor.name?n.constructor.name:d)+"` supplied to `"+h+"`, expected instance of `"+a+"`.")}var n;return null}))},node:m((function(e,c,t,h,o){return M(e[c])?null:new p("Invalid "+h+" `"+o+"` supplied to `"+t+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(c,o,l,a,n){if("function"!=typeof e)return new p("Property `"+n+"` of component `"+l+"` has invalid PropType notation inside objectOf.");var r=c[o],i=V(r);if("object"!==i)return new p("Invalid "+a+" `"+n+"` of type `"+i+"` supplied to `"+l+"`, expected an object.");for(var v in r)if(h(r,v)){var d=e(r,v,l,a,n+"."+v,t);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(c,t,h,o,l){for(var a=c[t],n=0;n<e.length;n++)if(z(a,e[n]))return null;var r=JSON.stringify(e,(function(e,c){return"symbol"===C(c)?String(c):c}));return new p("Invalid "+o+" `"+l+"` of value `"+String(a)+"` supplied to `"+h+"`, expected one of "+r+".")})):("production"!==process.env.NODE_ENV&&l(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&l("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var c=0;c<e.length;c++){var o=e[c];if("function"!=typeof o)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(o)+" at index "+c+"."),a}return m((function(c,o,l,a,n){for(var r=[],i=0;i<e.length;i++){var v=(0,e[i])(c,o,l,a,n,t);if(null==v)return null;v.data&&h(v.data,"expectedType")&&r.push(v.data.expectedType)}return new p("Invalid "+a+" `"+n+"` supplied to `"+l+"`"+(r.length>0?", expected one of type ["+r.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(c,h,o,l,a){var n=c[h],r=V(n);if("object"!==r)return new p("Invalid "+l+" `"+a+"` of type `"+r+"` supplied to `"+o+"`, expected `object`.");for(var i in e){var v=e[i];if("function"!=typeof v)return H(o,l,a,i,C(v));var d=v(n,i,o,l,a+"."+i,t);if(d)return d}return null}))},exact:function(e){return m((function(o,l,a,n,r){var i=o[l],v=V(i);if("object"!==v)return new p("Invalid "+n+" `"+r+"` of type `"+v+"` supplied to `"+a+"`, expected `object`.");var d=c({},o[l],e);for(var s in d){var z=e[s];if(h(e,s)&&"function"!=typeof z)return H(a,n,r,s,C(z));if(!z)return new p("Invalid "+n+" `"+r+"` key `"+s+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[l],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=z(i,s,a,n,r+"."+s,t);if(m)return m}return null}))}};function z(e,c){return e===c?0!==e||1/e==1/c:e!=e&&c!=c}function p(e,c){this.message=e,this.data=c&&"object"==typeof c?c:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var c={},h=0;function o(o,a,n,i,v,s,z){if(i=i||d,s=s||n,z!==t){if(r){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var u=i+":"+n;!c[u]&&h<3&&(l("You are manually calling a React.PropTypes validation function for the `"+s+"` prop on `"+i+"`. 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."),c[u]=!0,h++)}}return null==a[n]?o?null===a[n]?new p("The "+v+" `"+s+"` is marked as required in `"+i+"`, but its value is `null`."):new p("The "+v+" `"+s+"` is marked as required in `"+i+"`, but its value is `undefined`."):null:e(a,n,i,v,s)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function u(e){return m((function(c,t,h,o,l,a){var n=c[t];return V(n)!==e?new p("Invalid "+o+" `"+l+"` of type `"+C(n)+"` supplied to `"+h+"`, expected `"+e+"`.",{expectedType:e}):null}))}function H(e,c,t,h,o){return new p((e||"React class")+": "+c+" type `"+t+"."+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function M(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(M);if(null===e||n(e))return!0;var c=function(e){var c=e&&(i&&e[i]||e[v]);if("function"==typeof c)return c}(e);if(!c)return!1;var t,h=c.call(e);if(c!==e.entries){for(;!(t=h.next()).done;)if(!M(t.value))return!1}else for(;!(t=h.next()).done;){var o=t.value;if(o&&!M(o[1]))return!1}return!0;default:return!1}}function V(e){var c=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,c){return"symbol"===e||!!c&&("Symbol"===c["@@toStringTag"]||"function"==typeof Symbol&&c instanceof Symbol)}(c,e)?"symbol":c}function C(e){if(null==e)return""+e;var c=V(e);if("object"===c){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return c}function L(e){var c=C(e);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}return p.prototype=Error.prototype,s.checkPropTypes=o,s.resetWarningCache=o.resetWarningCache,s.PropTypes=s,s},N}()(q.isElement,!0)}else y.exports=function(){if($)return W;$=1;var e=_();function c(){}function t(){}return t.resetWarningCache=c,W=function(){function h(c,t,h,o,l,a){if(a!==e){var n=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 n.name="Invariant Violation",n}}function o(){return h}h.isRequired=h;var l={array:h,bigint:h,bool:h,func:h,number:h,object:h,string:h,symbol:h,any:h,arrayOf:o,element:h,elementType:h,instanceOf:o,node:h,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:c};return l.PropTypes=l,l}}()();var Q=H(y.exports);function Y(e){var c,t,h="";if("string"==typeof e||"number"==typeof e)h+=e;else if("object"==typeof e)if(Array.isArray(e))for(c=0;c<e.length;c++)e[c]&&(t=Y(e[c]))&&(h&&(h+=" "),h+=t);else for(c in e)e[c]&&(h&&(h+=" "),h+=c);return h}function X(){for(var e,c,t=0,h="";t<arguments.length;)(e=arguments[t++])&&(c=Y(e))&&(h&&(h+=" "),h+=c);return h}function Z(e,c){return"production"===process.env.NODE_ENV?()=>null:function(...t){return e(...t)||c(...t)}}function J(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function ee(e){if(!J(e))return e;const c={};return Object.keys(e).forEach((t=>{c[t]=ee(e[t])})),c}function ce(e,c,t={clone:!0}){const h=t.clone?{...e}:e;return J(e)&&J(c)&&Object.keys(c).forEach((o=>{"__proto__"!==o&&(J(c[o])&&o in e&&J(e[o])?h[o]=ce(e[o],c[o],t):t.clone?h[o]=J(c[o])?ee(c[o]):c[o]:h[o]=c[o])})),h}function te(e,c,t,h,o){const l=e[c],a=o||c;if(null==l||"undefined"==typeof window)return null;let n;const r=l.type;return"function"!=typeof r||function(e){const{prototype:c={}}=e;return Boolean(c.isReactComponent)}(r)||(n="Did you accidentally use a plain function component for an element instead?"),void 0!==n?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${n} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const he=Z(Q.element,te);he.isRequired=Z(Q.element.isRequired,te);var oe=he;var le=Z(Q.elementType,(function(e,c,t,h,o){const l=e[c],a=o||c;if(null==l||"undefined"==typeof window)return null;let n;return"function"!=typeof l||function(e){const{prototype:c={}}=e;return Boolean(c.isReactComponent)}(l)||(n="Did you accidentally provide a plain function component instead?"),void 0!==n?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${n} For more information see https://mui.com/r/caveat-with-refs-guide`):null}));function ae(e){return"production"===process.env.NODE_ENV?e:{...e,"exact-prop: ​":c=>{const t=Object.keys(c).filter((c=>!e.hasOwnProperty(c)));return t.length>0?new Error(`The following props are not supported: ${t.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}}}function ne(e){let c="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)c+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+c+" for the full message."}var re,ie={exports:{}},ve={};var de,se={}; /** * @license React * react-is.development.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. */"production"===process.env.NODE_ENV?ie.exports=function(){if(re)return ve;re=1;var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),r=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:switch(e=e.type){case h:case l:case o:case v:case d:return e;default:switch(e=e&&e.$$typeof){case r:case n:case i:case z:case s:case a:return e;default:return p}}case t:return p}}}return e=Symbol.for("react.module.reference"),ve.ContextConsumer=n,ve.ContextProvider=a,ve.Element=c,ve.ForwardRef=i,ve.Fragment=h,ve.Lazy=z,ve.Memo=s,ve.Portal=t,ve.Profiler=l,ve.StrictMode=o,ve.Suspense=v,ve.SuspenseList=d,ve.isAsyncMode=function(){return!1},ve.isConcurrentMode=function(){return!1},ve.isContextConsumer=function(e){return m(e)===n},ve.isContextProvider=function(e){return m(e)===a},ve.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},ve.isForwardRef=function(e){return m(e)===i},ve.isFragment=function(e){return m(e)===h},ve.isLazy=function(e){return m(e)===z},ve.isMemo=function(e){return m(e)===s},ve.isPortal=function(e){return m(e)===t},ve.isProfiler=function(e){return m(e)===l},ve.isStrictMode=function(e){return m(e)===o},ve.isSuspense=function(e){return m(e)===v},ve.isSuspenseList=function(e){return m(e)===d},ve.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===v||c===d||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===s||c.$$typeof===a||c.$$typeof===n||c.$$typeof===i||c.$$typeof===e||void 0!==c.getModuleId)},ve.typeOf=m,ve}():ie.exports=(de||(de=1,"production"!==process.env.NODE_ENV&&function(){var e,c=Symbol.for("react.element"),t=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),n=Symbol.for("react.context"),r=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case c:var m=e.type;switch(m){case h:case l:case o:case v:case d:return m;default:var u=m&&m.$$typeof;switch(u){case r:case n:case i:case z:case s:case a:return u;default:return p}}case t:return p}}}e=Symbol.for("react.module.reference");var u=n,H=a,M=c,V=i,C=h,L=z,f=s,S=t,T=l,g=o,y=v,b=d,w=!1,O=!1;se.ContextConsumer=u,se.ContextProvider=H,se.Element=M,se.ForwardRef=V,se.Fragment=C,se.Lazy=L,se.Memo=f,se.Portal=S,se.Profiler=T,se.StrictMode=g,se.Suspense=y,se.SuspenseList=b,se.isAsyncMode=function(e){return w||(w=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},se.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},se.isContextConsumer=function(e){return m(e)===n},se.isContextProvider=function(e){return m(e)===a},se.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},se.isForwardRef=function(e){return m(e)===i},se.isFragment=function(e){return m(e)===h},se.isLazy=function(e){return m(e)===z},se.isMemo=function(e){return m(e)===s},se.isPortal=function(e){return m(e)===t},se.isProfiler=function(e){return m(e)===l},se.isStrictMode=function(e){return m(e)===o},se.isSuspense=function(e){return m(e)===v},se.isSuspenseList=function(e){return m(e)===d},se.isValidElementType=function(c){return"string"==typeof c||"function"==typeof c||c===h||c===l||c===o||c===v||c===d||c===p||"object"==typeof c&&null!==c&&(c.$$typeof===z||c.$$typeof===s||c.$$typeof===a||c.$$typeof===n||c.$$typeof===i||c.$$typeof===e||void 0!==c.getModuleId)},se.typeOf=m}()),se);var ze=ie.exports;const pe=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function me(e,c=""){return e.displayName||e.name||function(e){const c=`${e}`.match(pe);return c&&c[1]||""}(e)||c}function ue(e,c,t){const h=me(c);return e.displayName||(""!==h?`${t}(${h})`:t)}function He(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return me(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ze.ForwardRef:return ue(e,e.render,"ForwardRef");case ze.Memo:return ue(e,e.type,"memo");default:return}}}function Me(e,c,t,h,o){if("production"===process.env.NODE_ENV)return null;const l=e[c],a=o||c;return null==l?null:l&&1!==l.nodeType?new Error(`Invalid ${h} \`${a}\` supplied to \`${t}\`. Expected an HTMLElement.`):null}var Ve=Q.oneOfType([Q.func,Q.object]);function Ce(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":ne(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Le(...e){return e.reduce(((e,c)=>null==c?e:function(...t){e.apply(this,t),c.apply(this,t)}),(()=>{}))}function fe(e,c=166){let t;function h(...h){clearTimeout(t),t=setTimeout((()=>{e.apply(this,h)}),c)}return h.clear=()=>{clearTimeout(t)},h}function Se(e,c){return"production"===process.env.NODE_ENV?()=>null:(e,t,h,o,l)=>{const a=h||"<<anonymous>>",n=l||t;return void 0!==e[t]?new Error(`The ${o} \`${n}\` of \`${a}\` is deprecated. ${c}`):null}}function Te(c,t){return e.isValidElement(c)&&-1!==t.indexOf(c.type.muiName)}function ge(e){return e&&e.ownerDocument||document}function ye(e){return ge(e).defaultView||window}function be(e,c){if("production"===process.env.NODE_ENV)return()=>null;const t=c?{...c.propTypes}:null;return c=>(h,o,l,a,n,...r)=>{const i=n||o,v=null==t?void 0:t[i];if(v){const e=v(h,o,l,a,n,...r);if(e)return e}return void 0===h[o]||h[c]?null:new Error(`The prop \`${i}\` of \`${e}\` can only be used together with the \`${c}\` prop.`)}}function we(e,c){"function"==typeof e?e(c):e&&(e.current=c)}var Oe="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let Re=0;const xe=e["useId".toString()];function ke(c){if(void 0!==xe){const e=xe();return null!=c?c:e}return function(c){const[t,h]=e.useState(c),o=c||t;return e.useEffect((()=>{null==t&&(Re+=1,h(`mui-${Re}`))}),[t]),o}(c)}function Ae(e,c,t,h,o){if("production"===process.env.NODE_ENV)return null;const l=o||c;return void 0!==e[c]?new Error(`The prop \`${l}\` is not supported. Please remove it.`):null}function Pe({controlled:c,default:t,name:h,state:o="value"}){const{current:l}=e.useRef(void 0!==c),[a,n]=e.useState(t),r=l?c:a;if("production"!==process.env.NODE_ENV){e.useEffect((()=>{l!==(void 0!==c)&&console.error([`MUI: A component is changing the ${l?"":"un"}controlled ${o} state of ${h} to be ${l?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${h} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))}),[o,h,c]);const{current:a}=e.useRef(t);e.useEffect((()=>{l||a===t||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${h} after being initialized. To suppress this warning opt to use a controlled ${h}.`].join("\n"))}),[JSON.stringify(t)])}return[r,e.useCallback((e=>{l||n(e)}),[])]}function Fe(c){const t=e.useRef(c);return Oe((()=>{t.current=c})),e.useCallback(((...e)=>(0,t.current)(...e)),[])}function De(...c){return e.useMemo((()=>c.every((e=>null==e))?null:e=>{c.forEach((c=>{we(c,e)}))}),c)}let Ee,Be=!0,Ne=!1;const Ie={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function We(e){e.metaKey||e.altKey||e.ctrlKey||(Be=!0)}function $e(){Be=!1}function je(){"hidden"===this.visibilityState&&Ne&&(Be=!0)}function Ue(e){const{target:c}=e;try{return c.matches(":focus-visible")}catch(e){}return Be||function(e){const{type:c,tagName:t}=e;return!("INPUT"!==t||!Ie[c]||e.readOnly)||"TEXTAREA"===t&&!e.readOnly||!!e.isContentEditable}(c)}function Ge(){const c=e.useCallback((e=>{var c;null!=e&&((c=e.ownerDocument).addEventListener("keydown",We,!0),c.addEventListener("mousedown",$e,!0),c.addEventListener("pointerdown",$e,!0),c.addEventListener("touchstart",$e,!0),c.addEventListener("visibilitychange",je,!0))}),[]),t=e.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ue(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Ne=!0,window.clearTimeout(Ee),Ee=window.setTimeout((()=>{Ne=!1}),100),t.current=!1,!0)},ref:c}}function _e(e){const c=e.documentElement.clientWidth;return Math.abs(window.innerWidth-c)}let Ke;function qe(){if(Ke)return Ke;const e=document.createElement("div"),c=document.createElement("div");return c.style.width="10px",c.style.height="1px",e.appendChild(c),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Ke="reverse",e.scrollLeft>0?Ke="default":(e.scrollLeft=1,0===e.scrollLeft&&(Ke="negative")),document.body.removeChild(e),Ke}function Qe(e,c){const t=e.scrollLeft;if("rtl"!==c)return t;switch(qe()){case"negative":return e.scrollWidth-e.clientWidth+t;case"reverse":return e.scrollWidth-e.clientWidth-t;default:return t}}var Ye=c=>{const t=e.useRef({});return e.useEffect((()=>{t.current=c})),t.current};var Xe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const Ze=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Je(e,c,t,h){const o=e[c];if(null==o||!Ze(o)){const e=function(e){const c=typeof e;switch(c){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return c}}(o);return new RangeError(`Invalid ${h} \`${c}\` of type \`${e}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function ec(e,c,...t){return void 0===e[c]?null:Je(e,c,...t)}function cc(){return null}ec.isRequired=Je,cc.isRequired=cc;var tc="production"===process.env.NODE_ENV?cc:ec;function hc(e,c){const t={...c};return Object.keys(e).forEach((h=>{if(h.toString().match(/^(components|slots)$/))t[h]={...e[h],...t[h]};else if(h.toString().match(/^(componentsProps|slotProps)$/)){const o=e[h]||{},l=c[h];t[h]={},l&&Object.keys(l)?o&&Object.keys(o)?(t[h]={...l},Object.keys(o).forEach((e=>{t[h][e]=hc(o[e],l[e])}))):t[h]=l:t[h]=o}else void 0===t[h]&&(t[h]=e[h])})),t}function oc(e,c,t=void 0){const h={};return Object.keys(e).forEach((o=>{h[o]=e[o].reduce(((e,h)=>{if(h){const o=c(h);""!==o&&e.push(o),t&&t[h]&&e.push(t[h])}return e}),[]).join(" ")})),h}const lc=e=>e;var ac=(()=>{let e=lc;return{configure(c){e=c},generate:c=>e(c),reset(){e=lc}}})();const nc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function rc(e,c,t="Mui"){const h=nc[c];return h?`${t}-${h}`:`${ac.generate(e)}-${c}`}function ic(e,c,t="Mui"){const h={};return c.forEach((c=>{h[c]=rc(e,c,t)})),h}function vc(e){return"string"==typeof e}function dc(e,c,t){return void 0===e||vc(e)?c:u({},c,{ownerState:u({},c.ownerState,t)})}const sc={disableDefaultClasses:!1},zc=e.createContext(sc);function pc(c){const{disableDefaultClasses:t}=e.useContext(zc);return e=>t?"":c(e)}function mc(e,c=[]){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>t.match(/^on[A-Z]/)&&"function"==typeof e[t]&&!c.includes(t))).forEach((c=>{t[c]=e[c]})),t}function uc(e,c){return"function"==typeof e?e(c):e}function Hc(e){if(void 0===e)return{};const c={};return Object.keys(e).filter((c=>!(c.match(/^on[A-Z]/)&&"function"==typeof e[c]))).forEach((t=>{c[t]=e[t]})),c}const Mc=["elementType","externalSlotProps","ownerState"];function Vc(e){var c;const{elementType:t,externalSlotProps:h,ownerState:o}=e,l=m(e,Mc),a=uc(h,o),{props:n,internalRef:r}=function(e){const{getSlotProps:c,additionalProps:t,externalSlotProps:h,externalForwardedProps:o,className:l}=e;if(!c){const e=X(null==o?void 0:o.className,null==h?void 0:h.className,l,null==t?void 0:t.className),c=u({},null==t?void 0:t.style,null==o?void 0:o.style,null==h?void 0:h.style),a=u({},t,o,h);return e.length>0&&(a.className=e),Object.keys(c).length>0&&(a.style=c),{props:a,internalRef:void 0}}const a=mc(u({},o,h)),n=Hc(h),r=Hc(o),i=c(a),v=X(null==i?void 0:i.className,null==t?void 0:t.className,l,null==o?void 0:o.className,null==h?void 0:h.className),d=u({},null==i?void 0:i.style,null==t?void 0:t.style,null==o?void 0:o.style,null==h?void 0:h.style),s=u({},i,t,r,n);return v.length>0&&(s.className=v),Object.keys(d).length>0&&(s.style=d),{props:s,internalRef:i.ref}}(u({},l,{externalSlotProps:a}));return dc(t,u({},n,{ref:De(r,null==a?void 0:a.ref,null==(c=e.additionalProps)?void 0:c.ref)}),o)}function Cc(e){return e.substring(2).toLowerCase()}function Lc(c){const{children:t,disableReactTree:h=!1,mouseEvent:o="onClick",onClickAway:l,touchEvent:a="onTouchEnd"}=c,n=e.useRef(!1),r=e.useRef(null),i=e.useRef(!1),v=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{i.current=!0}),0),()=>{i.current=!1})),[]);const s=De(t.ref,r),z=Fe((e=>{const c=v.current;v.current=!1;const t=ge(r.current);if(!i.current||!r.current||"clientX"in e&&function(e,c){return c.documentElement.clientWidth<e.clientX||c.documentElement.clientHeight<e.clientY}(e,t))return;if(n.current)return void(n.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(r.current)>-1:!t.documentElement.contains(e.target)||r.current.contains(e.target),o||!h&&c||l(e)})),p=e=>c=>{v.current=!0;const h=t.props[e];h&&h(c)},m={ref:s};return!1!==a&&(m[a]=p(a)),e.useEffect((()=>{if(!1!==a){const e=Cc(a),c=ge(r.current),t=()=>{n.current=!0};return c.addEventListener(e,z),c.addEventListener("touchmove",t),()=>{c.removeEventListener(e,z),c.removeEventListener("touchmove",t)}}}),[z,a]),!1!==o&&(m[o]=p(o)),e.useEffect((()=>{if(!1!==o){const e=Cc(o),c=ge(r.current);return c.addEventListener(e,z),()=>{c.removeEventListener(e,z)}}}),[z,o]),d(e.Fragment,{children:e.cloneElement(t,m)})}"production"!==process.env.NODE_ENV&&(Lc.propTypes={children:oe.isRequired,disableReactTree:Q.bool,mouseEvent:Q.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:Q.func.isRequired,touchEvent:Q.oneOf(["onTouchEnd","onTouchStart",!1])}),"production"!==process.env.NODE_ENV&&(Lc.propTypes=ae(Lc.propTypes));const fc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sc(e){const c=[],t=[];return Array.from(e.querySelectorAll(fc)).forEach(((e,h)=>{const o=function(e){const c=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(c)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:c}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const c=c=>e.ownerDocument.querySelector(`input[type="radio"]${c}`);let t=c(`[name="${e.name}"]:checked`);return t||(t=c(`[name="${e.name}"]`)),t!==e}(e))}(e)&&(0===o?c.push(e):t.push({documentOrder:h,tabIndex:o,node:e}))})),t.sort(((e,c)=>e.tabIndex===c.tabIndex?e.documentOrder-c.documentOrder:e.tabIndex-c.tabIndex)).map((e=>e.node)).concat(c)}function Tc(){return!0}function gc(c){const{children:t,disableAutoFocus:h=!1,disableEnforceFocus:o=!1,disableRestoreFocus:l=!1,getTabbable:a=Sc,isEnabled:n=Tc,open:r}=c,i=e.useRef(!1),v=e.useRef(null),z=e.useRef(null),p=e.useRef(null),m=e.useRef(null),u=e.useRef(!1),H=e.useRef(null),M=De(t.ref,H),V=e.useRef(null);e.useEffect((()=>{r&&H.current&&(u.current=!h)}),[h,r]),e.useEffect((()=>{if(!r||!H.current)return;const e=ge(H.current);return H.current.contains(e.activeElement)||(H.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join("\n")),H.current.setAttribute("tabIndex","-1")),u.current&&H.current.focus()),()=>{l||(p.current&&p.current.focus&&(i.current=!0,p.current.focus()),p.current=null)}}),[r]),e.useEffect((()=>{if(!r||!H.current)return;const e=ge(H.current),c=c=>{const{current:t}=H;if(null!==t)if(e.hasFocus()&&!o&&n()&&!i.current){if(!t.contains(e.activeElement)){if(c&&m.current!==c.target||e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!u.current)return;let o=[];if(e.activeElement!==v.current&&e.activeElement!==z.current||(o=a(H.current)),o.length>0){var h,l;const e=Boolean((null==(h=V.current)?void 0:h.shiftKey)&&"Tab"===(null==(l=V.current)?void 0:l.key)),c=o[0],t=o[o.length-1];"string"!=typeof c&&"string"!=typeof t&&(e?t.focus():c.focus())}else t.focus()}}else i.current=!1},t=c=>{V.current=c,!o&&n()&&"Tab"===c.key&&e.activeElement===H.current&&c.shiftKey&&(i.current=!0,z.current&&z.current.focus())};e.addEventListener("focusin",c),e.addEventListener("keydown",t,!0);const h=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&c(null)}),50);return()=>{clearInterval(h),e.removeEventListener("focusin",c),e.removeEventListener("keydown",t,!0)}}),[h,o,l,n,r,a]);const C=e=>{null===p.current&&(p.current=e.relatedTarget),u.current=!0};return s(e.Fragment,{children:[d("div",{tabIndex:r?0:-1,onFocus:C,ref:v,"data-testid":"sentinelStart"}),e.cloneElement(t,{ref:M,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),u.current=!0,m.current=e.target;const c=t.props.onFocus;c&&c(e)}}),d("div",{tabIndex:r?0:-1,onFocus:C,ref:z,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(gc.propTypes={children:oe,disableAutoFocus:Q.bool,disableEnforceFocus:Q.bool,disableRestoreFocus:Q.bool,getTabbable:Q.func,isEnabled:Q.func,open:Q.bool.isRequired}),"production"!==process.env.NODE_ENV&&(gc.propTypes=ae(gc.propTypes));var yc="top",bc="bottom",wc="right",Oc="left",Rc="auto",xc=[yc,bc,wc,Oc],kc="start",Ac="end",Pc="clippingParents",Fc="viewport",Dc="popper",Ec="reference",Bc=xc.reduce((function(e,c){return e.concat([c+"-"+kc,c+"-"+Ac])}),[]),Nc=[].concat(xc,[Rc]).reduce((function(e,c){return e.concat([c,c+"-"+kc,c+"-"+Ac])}),[]),Ic=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wc(e){return e?(e.nodeName||"").toLowerCase():null}function $c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var c=e.ownerDocument;return c&&c.defaultView||window}return e}function jc(e){return e instanceof $c(e).Element||e instanceof Element}function Uc(e){return e instanceof $c(e).HTMLElement||e instanceof HTMLElement}function Gc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof $c(e).ShadowRoot||e instanceof ShadowRoot)}var _c={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var c=e.state;Object.keys(c.elements).forEach((function(e){var t=c.styles[e]||{},h=c.attributes[e]||{},o=c.elements[e];Uc(o)&&Wc(o)&&(Object.assign(o.style,t),Object.keys(h).forEach((function(e){var c=h[e];!1===c?o.removeAttribute(e):o.setAttribute(e,!0===c?"":c)})))}))},effect:function(e){var c=e.state,t={popper:{position:c.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(c.elements.popper.style,t.popper),c.styles=t,c.elements.arrow&&Object.assign(c.elements.arrow.style,t.arrow),function(){Object.keys(c.elements).forEach((function(e){var h=c.elements[e],o=c.attributes[e]||{},l=Object.keys(c.styles.hasOwnProperty(e)?c.styles[e]:t[e]).reduce((function(e,c){return e[c]="",e}),{});Uc(h)&&Wc(h)&&(Object.assign(h.style,l),Object.keys(o).forEach((function(e){h.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Kc(e){return e.split("-")[0]}var qc=Math.max,Qc=Math.min,Yc=Math.round;function Xc(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Zc(){return!/^((?!chrome|android).)*safari/i.test(Xc())}function Jc(e,c,t){void 0===c&&(c=!1),void 0===t&&(t=!1);var h=e.getBoundingClientRect(),o=1,l=1;c&&Uc(e)&&(o=e.offsetWidth>0&&Yc(h.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Yc(h.height)/e.offsetHeight||1);var a=(jc(e)?$c(e):window).visualViewport,n=!Zc()&&t,r=(h.left+(n&&a?a.offsetLeft:0))/o,i=(h.top+(n&&a?a.offsetTop:0))/l,v=h.width/o,d=h.height/l;return{width:v,height:d,top:i,right:r+v,bottom:i+d,left:r,x:r,y:i}}function et(e){var c=Jc(e),t=e.offsetWidth,h=e.offsetHeight;return Math.abs(c.width-t)<=1&&(t=c.width),Math.abs(c.height-h)<=1&&(h=c.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:h}}function ct(e,c){var t=c.getRootNode&&c.getRootNode();if(e.contains(c))return!0;if(t&&Gc(t)){var h=c;do{if(h&&e.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}function tt(e){return $c(e).getComputedStyle(e)}function ht(e){return["table","td","th"].indexOf(Wc(e))>=0}function ot(e){return((jc(e)?e.ownerDocument:e.document)||window.document).documentElement}function lt(e){return"html"===Wc(e)?e:e.assignedSlot||e.parentNode||(Gc(e)?e.host:null)||ot(e)}function at(e){return Uc(e)&&"fixed"!==tt(e).position?e.offsetParent:null}function nt(e){for(var c=$c(e),t=at(e);t&&ht(t)&&"static"===tt(t).position;)t=at(t);return t&&("html"===Wc(t)||"body"===Wc(t)&&"static"===tt(t).position)?c:t||function(e){var c=/firefox/i.test(Xc());if(/Trident/i.test(Xc())&&Uc(e)&&"fixed"===tt(e).position)return null;var t=lt(e);for(Gc(t)&&(t=t.host);Uc(t)&&["html","body"].indexOf(Wc(t))<0;){var h=tt(t);if("none"!==h.transform||"none"!==h.perspective||"paint"===h.contain||-1!==["transform","perspective"].indexOf(h.willChange)||c&&"filter"===h.willChange||c&&h.filter&&"none"!==h.filter)return t;t=t.parentNode}return null}(e)||c}function rt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function it(e,c,t){return qc(e,Qc(c,t))}function vt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function dt(e,c){return c.reduce((function(c,t){return c[t]=e,c}),{})}var st={name:"arrow",enabled:!0,phase:"main",fn:function(e){var c,t=e.state,h=e.name,o=e.options,l=t.elements.arrow,a=t.modifiersData.popperOffsets,n=Kc(t.placement),r=rt(n),i=[Oc,wc].indexOf(n)>=0?"height":"width";if(l&&a){var v=function(e,c){return vt("number"!=typeof(e="function"==typeof e?e(Object.assign({},c.rects,{placement:c.placement})):e)?e:dt(e,xc))}(o.padding,t),d=et(l),s="y"===r?yc:Oc,z="y"===r?bc:wc,p=t.rects.reference[i]+t.rects.reference[r]-a[r]-t.rects.popper[i],m=a[r]-t.rects.reference[r],u=nt(l),H=u?"y"===r?u.clientHeight||0:u.clientWidth||0:0,M=p/2-m/2,V=v[s],C=H-d[i]-v[z],L=H/2-d[i]/2+M,f=it(V,L,C),S=r;t.modifiersData[h]=((c={})[S]=f,c.centerOffset=f-L,c)}},effect:function(e){var c=e.state,t=e.options.element,h=void 0===t?"[data-popper-arrow]":t;null!=h&&("string"!=typeof h||(h=c.elements.popper.querySelector(h)))&&ct(c.elements.popper,h)&&(c.elements.arrow=h)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(e){return e.split("-")[1]}var pt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mt(e){var c,t=e.popper,h=e.popperRect,o=e.placement,l=e.variation,a=e.offsets,n=e.position,r=e.gpuAcceleration,i=e.adaptive,v=e.roundOffsets,d=e.isFixed,s=a.x,z=void 0===s?0:s,p=a.y,m=void 0===p?0:p,u="function"==typeof v?v({x:z,y:m}):{x:z,y:m};z=u.x,m=u.y;var H=a.hasOwnProperty("x"),M=a.hasOwnProperty("y"),V=Oc,C=yc,L=window;if(i){var f=nt(t),S="clientHeight",T="clientWidth";if(f===$c(t)&&"static"!==tt(f=ot(t)).position&&"absolute"===n&&(S="scrollHeight",T="scrollWidth"),o===yc||(o===Oc||o===wc)&&l===Ac)C=bc,m-=(d&&f===L&&L.visualViewport?L.visualViewport.height:f[S])-h.height,m*=r?1:-1;if(o===Oc||(o===yc||o===bc)&&l===Ac)V=wc,z-=(d&&f===L&&L.visualViewport?L.visualViewport.width:f[T])-h.width,z*=r?1:-1}var g,y=Object.assign({position:n},i&&pt),b=!0===v?function(e,c){var t=e.x,h=e.y,o=c.devicePixelRatio||1;return{x:Yc(t*o)/o||0,y:Yc(h*o)/o||0}}({x:z,y:m},$c(t)):{x:z,y:m};return z=b.x,m=b.y,r?Object.assign({},y,((g={})[C]=M?"0":"",g[V]=H?"0":"",g.transform=(L.devicePixelRatio||1)<=1?"translate("+z+"px, "+m+"px)":"translate3d("+z+"px, "+m+"px, 0)",g)):Object.assign({},y,((c={})[C]=M?m+"px":"",c[V]=H?z+"px":"",c.transform="",c))}var ut={passive:!0};var Ht={left:"right",right:"left",bottom:"top",top:"bottom"};function Mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ht[e]}))}var Vt={start:"end",end:"start"};function Ct(e){return e.replace(/start|end/g,(function(e){return Vt[e]}))}function Lt(e){var c=$c(e);return{scrollLeft:c.pageXOffset,scrollTop:c.pageYOffset}}function ft(e){return Jc(ot(e)).left+Lt(e).scrollLeft}function St(e){var c=tt(e),t=c.overflow,h=c.overflowX,o=c.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+h)}function Tt(e){return["html","body","#document"].indexOf(Wc(e))>=0?e.ownerDocument.body:Uc(e)&&St(e)?e:Tt(lt(e))}function gt(e,c){var t;void 0===c&&(c=[]);var h=Tt(e),o=h===(null==(t=e.ownerDocument)?void 0:t.body),l=$c(h),a=o?[l].concat(l.visualViewport||[],St(h)?h:[]):h,n=c.concat(a);return o?n:n.concat(gt(lt(a)))}function yt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bt(e,c,t){return c===Fc?yt(function(e,c){var t=$c(e),h=ot(e),o=t.visualViewport,l=h.clientWidth,a=h.clientHeight,n=0,r=0;if(o){l=o.width,a=o.height;var i=Zc();(i||!i&&"fixed"===c)&&(n=o.offsetLeft,r=o.offsetTop)}return{width:l,height:a,x:n+ft(e),y:r}}(e,t)):jc(c)?function(e,c){var t=Jc(e,!1,"fixed"===c);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(c,t):yt(function(e){var c,t=ot(e),h=Lt(e),o=null==(c=e.ownerDocument)?void 0:c.body,l=qc(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=qc(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),n=-h.scrollLeft+ft(e),r=-h.scrollTop;return"rtl"===tt(o||t).direction&&(n+=qc(t.cli