@bygd/nc-report-ui 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default/cjs/index.cjs +1 -1
- package/dist/default/esm/index.js +89 -39
- package/dist/default/iife/index.js +23 -23
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,o={exports:{}},i={};function a(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)k.call(n,o)&&!E.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:S.current}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var _=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+T(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(_,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+T(s=n[u],u);l+=R(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=R(s=s.value,r,o,c=i+T(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},N={transition:null},M={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=v,i.Fragment=r,i.Profiler=a,i.PureComponent=b,i.StrictMode=o,i.Suspense=c,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,i.act=I,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=S.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)k.call(n,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},i.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},i.createElement=C,i.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:u,render:e}},i.isValidElement=O,i.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},i.unstable_act=I,i.useCallback=function(e,t){return L.current.useCallback(e,t)},i.useContext=function(e){return L.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return L.current.useDeferredValue(e)},i.useEffect=function(e,t){return L.current.useEffect(e,t)},i.useId=function(){return L.current.useId()},i.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return L.current.useMemo(e,t)},i.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},i.useRef=function(e){return L.current.useRef(e)},i.useState=function(e){return L.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return L.current.useTransition()},i.version="18.3.1",i}function s(){return r||(r=1,o.exports=a()),o.exports}var l=s(),u=t(l),c=e({__proto__:null,default:u},[l]);function d(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function p(e,t){if(null==e)return{};var n,r,o=d(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function h(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=h(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function m(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=h(e))&&(r&&(r+=" "),r+=t);return r}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e){return e&&"object"===g(e)&&e.constructor===Object}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?f({},e):e;return v(e)&&v(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(v(t[o])&&o in e?r[o]=y(e[o],t[o],n):r[o]=t[o])}),r}function b(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function w(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var k,S,E={exports:{}},C={};S||(S=1,E.exports=function(){if(k)return C;k=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return f}}case t:return f}}}var b=i,w=e,x=s,S=n,E=d,O=c,_=t,T=o,R=r,P=l;return C.ContextConsumer=a,C.ContextProvider=b,C.Element=w,C.ForwardRef=x,C.Fragment=S,C.Lazy=E,C.Memo=O,C.Portal=_,C.Profiler=T,C.StrictMode=R,C.Suspense=P,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(e){return y(e)===a},C.isContextProvider=function(e){return y(e)===i},C.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},C.isForwardRef=function(e){return y(e)===s},C.isFragment=function(e){return y(e)===n},C.isLazy=function(e){return y(e)===d},C.isMemo=function(e){return y(e)===c},C.isPortal=function(e){return y(e)===t},C.isProfiler=function(e){return y(e)===o},C.isStrictMode=function(e){return y(e)===r},C.isSuspense=function(e){return y(e)===l},C.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},C.typeOf=y,C}()),E.exports;var O="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",_=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function T(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P="object"===("undefined"==typeof window?"undefined":R(window))&&"object"===("undefined"==typeof document?"undefined":R(document))&&9===document.nodeType;function A(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L(e,t)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var I={}.constructor;function F(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(F);if(e.constructor!==I)return e;var t={};for(var n in e)t[n]=F(e[n]);return t}function $(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=F(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var j=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},z=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=j(e[n]," ");else t=j(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function B(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function D(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function W(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=B(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=D(p+":"+u+z(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=D(h+":"+u+z(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=D(g+":"+u+z(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),D(""+e+u+"{"+r,--i)+D("}",i)):r}var U=/([[\].#*$><+~=|^:(),"'`\s])/g,V="undefined"!=typeof CSS&&CSS.escape,K=function(e){return V?V(e):e.replace(U,"\\$1")},H=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),q=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(M(M(o)),s),o.selectorText="."+K(o.id)),o}N(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=z(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return W(this.selectorText,this.style,n)},A(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(H),G={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new q(e,t,n)}},Y={indent:1,children:!0},X=/@([\w-]+)/,Q=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(X);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Y);var t=B(e).linebreak;if(null==e.indent&&(e.indent=Y.indent),null==e.children&&(e.children=Y.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),J=/@container|@media|@supports\s+/,Z={onCreateRule:function(e,t,n){return J.test(e)?new Q(e,t,n):null}},ee={indent:1,children:!0},te=/@keyframes\s+([\w-]+)/,ne=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(te);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:K(a(this,i)),this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(s,t[s],f({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ee);var t=B(e).linebreak;if(null==e.indent&&(e.indent=ee.indent),null==e.children&&(e.children=ee.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),re=/@keyframes\s+/,oe=/\$([\w-]+)/g,ie=function(e,t){return"string"==typeof e?e.replace(oe,function(e,n){return n in t?t[n]:e}):e},ae=function(e,t,n){var r=e[t],o=ie(r,n);o!==r&&(e[t]=o)},se={onCreateRule:function(e,t,n){return"string"==typeof e&&re.test(e)?new ne(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ae(e,"animation-name",n.keyframes),"animation"in e&&ae(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return ie(e,r.keyframes);default:return e}}},le=function(e){function t(){return e.apply(this,arguments)||this}return N(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return W(this.key,this.style,n)},t}(H),ue={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new le(e,t,n):null}},ce=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=B(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=W(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return W(this.at,this.style,e)},e}(),de=/@font-face/,pe={onCreateRule:function(e,t,n){return de.test(e)?new ce(e,t,n):null}},fe=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return W(this.key,this.style,e)},e}(),he={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new fe(e,t,n):null}},me=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ge={"@charset":!0,"@import":!0,"@namespace":!0},ve={onCreateRule:function(e,t,n){return e in ge?new me(e,t,n):null}},ye=[G,Z,se,ue,pe,he,ve],be={process:!0},we={force:!0,process:!0},xe=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=f({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+K(this.classes[d]));var p=$(d,t,c);if(!p)return null;this.register(p);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=f({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof q?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ne&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof q?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ne&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=be);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,we)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,we)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=B(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ke=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=f({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new xe(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Se=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ee=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=d(t,["attached"]),o=B(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},A(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ce=new Ee,Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),_e="2f1acc6c3a606b082e5eef5e54414ffb";null==Oe[_e]&&(Oe[_e]=0);var Te=Oe[_e]++,Re=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Te+o+t:i+n.key+"-"+Te+(o?"-"+o:"")+"-"+t}},Pe=function(e){var t;return function(){return t||(t=e()),t}},Ae=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=z(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ne=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Me=function(e,t){return e.selectorText=t,e.selectorText===t},Ie=Pe(function(){return document.querySelector("head")});function Fe(e){var t=Ce.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Ie(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var $e=Pe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),je=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},ze=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Be=function(){function e(e){this.getPropertyValue=Ae,this.setProperty=Le,this.removeProperty=Ne,this.setSelector=Me,this.hasInsertedRules=!1,this.cssRules=[],e&&Ce.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=$e();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Ie().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ze(n,t);if(!1===(o=je(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=ze(n,t),l=je(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ke&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),De=0,We=function(){function e(e){this.id=De++,this.version="10.10.0",this.plugins=new Se,this.options={id:{minify:!1},createGenerateId:Re,Renderer:P?Be:null,plugins:[]},this.generateId=Re({minify:!1});for(var t=0;t<ye.length;t++)this.plugins.use(ye[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=f({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Ce.index?0:Ce.index+1);var r=new ke(e,f({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Ce.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=f({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=$(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ue=function(e){return new We(e)},Ve="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ke(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ke(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
1
|
+
var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,o={exports:{}},i={};function a(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)k.call(n,o)&&!E.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:S.current}}function O(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function _(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+_(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),R(a,r,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+_(s=n[u],u);l+=R(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=R(s=s.value,r,o,c=i+_(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",function(e){return t.call(n,e,o++)}),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},N={transition:null},M={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function I(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=v,i.Fragment=r,i.Profiler=a,i.PureComponent=b,i.StrictMode=o,i.Suspense=c,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,i.act=I,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=S.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)k.call(n,u)&&!E.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},i.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},i.createElement=C,i.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:u,render:e}},i.isValidElement=O,i.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:A}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},i.unstable_act=I,i.useCallback=function(e,t){return L.current.useCallback(e,t)},i.useContext=function(e){return L.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return L.current.useDeferredValue(e)},i.useEffect=function(e,t){return L.current.useEffect(e,t)},i.useId=function(){return L.current.useId()},i.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return L.current.useMemo(e,t)},i.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},i.useRef=function(e){return L.current.useRef(e)},i.useState=function(e){return L.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return L.current.useTransition()},i.version="18.3.1",i}function s(){return r||(r=1,o.exports=a()),o.exports}var l=s(),u=t(l),c=e({__proto__:null,default:u},[l]);function d(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function p(e,t){if(null==e)return{};var n,r,o=d(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function h(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=h(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function m(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=h(e))&&(r&&(r+=" "),r+=t);return r}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e){return e&&"object"===g(e)&&e.constructor===Object}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?f({},e):e;return v(e)&&v(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(v(t[o])&&o in e?r[o]=y(e[o],t[o],n):r[o]=t[o])}),r}function b(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function w(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var k,S,E={exports:{}},C={};S||(S=1,E.exports=function(){if(k)return C;k=1;var e=60103,t=60106,n=60107,r=60108,o=60114,i=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case i:return p;default:return f}}case t:return f}}}var b=i,w=e,x=s,S=n,E=d,O=c,T=t,_=o,R=r,P=l;return C.ContextConsumer=a,C.ContextProvider=b,C.Element=w,C.ForwardRef=x,C.Fragment=S,C.Lazy=E,C.Memo=O,C.Portal=T,C.Profiler=_,C.StrictMode=R,C.Suspense=P,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(e){return y(e)===a},C.isContextProvider=function(e){return y(e)===i},C.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},C.isForwardRef=function(e){return y(e)===s},C.isFragment=function(e){return y(e)===n},C.isLazy=function(e){return y(e)===d},C.isMemo=function(e){return y(e)===c},C.isPortal=function(e){return y(e)===t},C.isProfiler=function(e){return y(e)===o},C.isStrictMode=function(e){return y(e)===r},C.isSuspense=function(e){return y(e)===l},C.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},C.typeOf=y,C}()),E.exports;var O="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",T=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function _(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P="object"===("undefined"==typeof window?"undefined":R(window))&&"object"===("undefined"==typeof document?"undefined":R(document))&&9===document.nodeType;function A(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function N(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,L(e,t)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var I={}.constructor;function F(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(F);if(e.constructor!==I)return e;var t={};for(var n in e)t[n]=F(e[n]);return t}function $(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=F(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var j=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},z=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=j(e[n]," ");else t=j(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function B(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function D(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function W(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=B(n),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=D(p+":"+u+z(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=D(h+":"+u+z(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=D(g+":"+u+z(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),D(""+e+u+"{"+r,--i)+D("}",i)):r}var U=/([[\].#*$><+~=|^:(),"'`\s])/g,V="undefined"!=typeof CSS&&CSS.escape,K=function(e){return V?V(e):e.replace(U,"\\$1")},H=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),q=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(M(M(o)),s),o.selectorText="."+K(o.id)),o}N(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=z(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return W(this.selectorText,this.style,n)},A(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(H),G={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new q(e,t,n)}},Y={indent:1,children:!0},X=/@([\w-]+)/,Q=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(X);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Y);var t=B(e).linebreak;if(null==e.indent&&(e.indent=Y.indent),null==e.children&&(e.children=Y.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),J=/@container|@media|@supports\s+/,Z={onCreateRule:function(e,t,n){return J.test(e)?new Q(e,t,n):null}},ee={indent:1,children:!0},te=/@keyframes\s+([\w-]+)/,ne=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(te);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:K(a(this,i)),this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(s,t[s],f({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ee);var t=B(e).linebreak;if(null==e.indent&&(e.indent=ee.indent),null==e.children&&(e.children=ee.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),re=/@keyframes\s+/,oe=/\$([\w-]+)/g,ie=function(e,t){return"string"==typeof e?e.replace(oe,function(e,n){return n in t?t[n]:e}):e},ae=function(e,t,n){var r=e[t],o=ie(r,n);o!==r&&(e[t]=o)},se={onCreateRule:function(e,t,n){return"string"==typeof e&&re.test(e)?new ne(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&ae(e,"animation-name",n.keyframes),"animation"in e&&ae(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return ie(e,r.keyframes);default:return e}}},le=function(e){function t(){return e.apply(this,arguments)||this}return N(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?f({},e,{allowEmpty:!0}):e;return W(this.key,this.style,n)},t}(H),ue={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new le(e,t,n):null}},ce=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=B(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=W(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return W(this.at,this.style,e)},e}(),de=/@font-face/,pe={onCreateRule:function(e,t,n){return de.test(e)?new ce(e,t,n):null}},fe=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return W(this.key,this.style,e)},e}(),he={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new fe(e,t,n):null}},me=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ge={"@charset":!0,"@import":!0,"@namespace":!0},ve={onCreateRule:function(e,t,n){return e in ge?new me(e,t,n):null}},ye=[G,Z,se,ue,pe,he,ve],be={process:!0},we={force:!0,process:!0},xe=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=f({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+K(this.classes[d]));var p=$(d,t,c);if(!p)return null;this.register(p);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=f({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof q?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ne&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof q?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ne&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=be);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,we)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,we)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=B(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ke=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=f({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new xe(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Se=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ee=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=d(t,["attached"]),o=B(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},A(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ce=new Ee,Oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Te="2f1acc6c3a606b082e5eef5e54414ffb";null==Oe[Te]&&(Oe[Te]=0);var _e=Oe[Te]++,Re=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+_e+o+t:i+n.key+"-"+_e+(o?"-"+o:"")+"-"+t}},Pe=function(e){var t;return function(){return t||(t=e()),t}},Ae=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=z(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ne=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Me=function(e,t){return e.selectorText=t,e.selectorText===t},Ie=Pe(function(){return document.querySelector("head")});function Fe(e){var t=Ce.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=Ie(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var $e=Pe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),je=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},ze=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Be=function(){function e(e){this.getPropertyValue=Ae,this.setProperty=Le,this.removeProperty=Ne,this.setSelector=Me,this.hasInsertedRules=!1,this.cssRules=[],e&&Ce.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=$e();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Ie().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ze(n,t);if(!1===(o=je(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=ze(n,t),l=je(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ke&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),De=0,We=function(){function e(e){this.id=De++,this.version="10.10.0",this.plugins=new Se,this.options={id:{minify:!1},createGenerateId:Re,Renderer:P?Be:null,plugins:[]},this.generateId=Re({minify:!1});for(var t=0;t<ye.length;t++)this.plugins.use(ye[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=f({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Ce.index?0:Ce.index+1);var r=new ke(e,f({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Ce.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=f({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=$(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ue=function(e){return new We(e)},Ve="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ke(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ke(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
2
2
|
/**
|
|
3
3
|
* A better abstraction over CSS.
|
|
4
4
|
*
|
|
5
5
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
6
6
|
* @website https://github.com/cssinjs/jss
|
|
7
7
|
* @license MIT
|
|
8
|
-
*/Ue();var He=Date.now(),qe="fnValues"+He,Ge="fnStyle"+ ++He,Ye="@global",Xe="@global ",Qe=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ye,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Je=function(){function e(e,t,n){this.type="global",this.at=Ye,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,f({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ze=/\s*,\s*/g;function et(e,t){for(var n=e.split(Ze),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function tt(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ye)return new Qe(e,t,n);if("@"===e[0]&&e.substr(0,8)===Xe)return new Je(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ye]:null;if(o){for(var i in o)t.addRule(i,o[i],f({},n,{selector:et(i,e.selector)}));delete r[Ye]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Ye){var i=et(o.substr(7),e.selector);t.addRule(i,r[o],f({},n,{selector:i})),delete r[o]}}(e,t))}}}var nt=/\s*,\s*/g,rt=/&/g,ot=/\$([\w-]+)/g;function it(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(nt),r=e.split(nt),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(rt,a):a+" "+l}return o}function n(e,t,n){if(n)return f({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=f({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,i)),h=h.replace(ot,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,r[c],f({},a,{selector:h})):u.addRule(m,r[c],f({},a,{selector:h}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var at=/[A-Z]/g,st=/^ms-/,lt={};function ut(e){return"-"+e.toLowerCase()}function ct(e){if(lt.hasOwnProperty(e))return lt[e];var t=e.replace(at,ut);return lt[e]=st.test(t)?"-"+t:t}function dt(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ct(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(dt):t.fallbacks=dt(e.fallbacks)),t}var pt=Ve&&CSS?CSS.px:"px",ft=Ve&&CSS?CSS.ms:"ms",ht=Ve&&CSS?CSS.percent:"%";function mt(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var gt=mt({"animation-delay":ft,"animation-duration":ft,"background-position":pt,"background-position-x":pt,"background-position-y":pt,"background-size":pt,border:pt,"border-bottom":pt,"border-bottom-left-radius":pt,"border-bottom-right-radius":pt,"border-bottom-width":pt,"border-left":pt,"border-left-width":pt,"border-radius":pt,"border-right":pt,"border-right-width":pt,"border-top":pt,"border-top-left-radius":pt,"border-top-right-radius":pt,"border-top-width":pt,"border-width":pt,"border-block":pt,"border-block-end":pt,"border-block-end-width":pt,"border-block-start":pt,"border-block-start-width":pt,"border-block-width":pt,"border-inline":pt,"border-inline-end":pt,"border-inline-end-width":pt,"border-inline-start":pt,"border-inline-start-width":pt,"border-inline-width":pt,"border-start-start-radius":pt,"border-start-end-radius":pt,"border-end-start-radius":pt,"border-end-end-radius":pt,margin:pt,"margin-bottom":pt,"margin-left":pt,"margin-right":pt,"margin-top":pt,"margin-block":pt,"margin-block-end":pt,"margin-block-start":pt,"margin-inline":pt,"margin-inline-end":pt,"margin-inline-start":pt,padding:pt,"padding-bottom":pt,"padding-left":pt,"padding-right":pt,"padding-top":pt,"padding-block":pt,"padding-block-end":pt,"padding-block-start":pt,"padding-inline":pt,"padding-inline-end":pt,"padding-inline-start":pt,"mask-position-x":pt,"mask-position-y":pt,"mask-size":pt,height:pt,width:pt,"min-height":pt,"max-height":pt,"min-width":pt,"max-width":pt,bottom:pt,left:pt,top:pt,right:pt,inset:pt,"inset-block":pt,"inset-block-end":pt,"inset-block-start":pt,"inset-inline":pt,"inset-inline-end":pt,"inset-inline-start":pt,"box-shadow":pt,"text-shadow":pt,"column-gap":pt,"column-rule":pt,"column-rule-width":pt,"column-width":pt,"font-size":pt,"font-size-delta":pt,"letter-spacing":pt,"text-decoration-thickness":pt,"text-indent":pt,"text-stroke":pt,"text-stroke-width":pt,"word-spacing":pt,motion:pt,"motion-offset":pt,outline:pt,"outline-offset":pt,"outline-width":pt,perspective:pt,"perspective-origin-x":ht,"perspective-origin-y":ht,"transform-origin":ht,"transform-origin-x":ht,"transform-origin-y":ht,"transform-origin-z":ht,"transition-delay":ft,"transition-duration":ft,"vertical-align":pt,"flex-basis":pt,"shape-margin":pt,size:pt,gap:pt,grid:pt,"grid-gap":pt,"row-gap":pt,"grid-row-gap":pt,"grid-column-gap":pt,"grid-template-rows":pt,"grid-template-columns":pt,"grid-auto-rows":pt,"grid-auto-columns":pt,"box-shadow-x":pt,"box-shadow-y":pt,"box-shadow-blur":pt,"box-shadow-spread":pt,"font-line-height":pt,"text-shadow-x":pt,"text-shadow-y":pt,"text-shadow-blur":pt});function vt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=vt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=vt(o,t[o],n);else for(var i in t)t[i]=vt(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||gt[e];return!a||0===t&&a===pt?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function yt(e){void 0===e&&(e={});var t=mt(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=vt(r,e[r],t);return e},onChangeValue:function(e,n){return vt(n,e,t)}}}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t){if(e){if("string"==typeof e)return bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}function xt(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kt="",St="",Et="",Ct="",Ot=P&&"ontouchstart"in document.documentElement;if(P){var _t={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Tt=document.createElement("p").style;for(var Rt in _t)if(Rt+"Transform"in Tt){kt=Rt,St=_t[Rt];break}"Webkit"===kt&&"msHyphens"in Tt&&(kt="ms",St=_t.ms,Ct="edge"),"Webkit"===kt&&"-apple-trailing-word"in Tt&&(Et="apple")}var Pt=kt,At=St,Lt=Et,Nt=Ct,Mt=Ot;var It={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Pt?"-webkit-"+e:At+e)}},Ft={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Pt?At+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function jt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,jt)}function Bt(e){return zt("-"+e)}var Dt,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Pt){var n="mask-image";if(zt(n)in t)return e;if(Pt+Bt(n)in t)return At+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Lt||Mt?e:At+e)}},Vt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:At+e)}},Kt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:At+e)}},Ht={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Pt||"ms"===Pt&&"edge"!==Nt?At+e:e)}},qt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Pt||"ms"===Pt||"apple"===Lt?At+e:e)}},Gt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Pt?"WebkitColumn"+Bt(e)in t&&At+"column-"+e:"Moz"===Pt&&("page"+Bt(e)in t&&"page-"+e))}},Yt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Pt)return e;var n=e.replace("-inline","");return Pt+Bt(n)in t&&At+n}},Xt={supportedProperty:function(e,t){return zt(e)in t&&e}},Qt={supportedProperty:function(e,t){var n=Bt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Pt+n in t?At+e:"Webkit"!==Pt&&"Webkit"+n in t&&"-webkit-"+e}},Jt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Pt?""+At+e:e)}},Zt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Pt?At+"scroll-chaining":e)}},en={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tn={supportedProperty:function(e,t){var n=en[e];return!!n&&(Pt+Bt(n)in t&&At+n)}},nn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},rn=Object.keys(nn),on=function(e){return At+e},an={supportedProperty:function(e,t,n){var r=n.multiple;if(rn.indexOf(e)>-1){var o=nn[e];if(!Array.isArray(o))return Pt+Bt(o)in t&&At+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Pt+Bt(o[0])in t))return!1;return o.map(on)}return!1}},sn=[It,Ft,Wt,Ut,Vt,Kt,Ht,qt,Gt,Yt,Xt,Qt,Jt,Zt,tn,an],ln=sn.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),un=sn.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,xt(t.noPrefill)),e},[]),cn={};if(P){Dt=document.createElement("p");var dn=window.getComputedStyle(document.documentElement,"");for(var pn in dn)isNaN(pn)||(cn[dn[pn]]=dn[pn]);un.forEach(function(e){return delete cn[e]})}function fn(e,t){if(void 0===t&&(t={}),!Dt)return e;if(null!=cn[e])return cn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Dt.style);for(var n=0;n<ln.length&&(cn[e]=ln[n](e,Dt.style,t),!cn[e]);n++);try{Dt.style[e]=""}catch(e){return!1}return cn[e]}var hn,mn={},gn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},vn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function yn(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?fn(t):", "+fn(n);return r||(t||n)}function bn(e,t){var n=t;if(!hn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=mn[r])return mn[r];try{hn.style[e]=n}catch(e){return mn[r]=!1,!1}if(gn[e])n=n.replace(vn,yn);else if(""===hn.style[e]&&("-ms-flex"===(n=At+n)&&(hn.style[e]="-ms-flexbox"),hn.style[e]=n,""===hn.style[e]))return mn[r]=!1,!1;return hn.style[e]="",mn[r]=n,mn[r]}function wn(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=fn(n);i&&i!==n&&(o=!0);var a=!1,s=bn(i,z(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Pt?e:"@"+At+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return bn(t,z(e))||e}}}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=f({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}P&&(hn=document.createElement("p"));var kn=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Sn=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},En=function(e,t,n){e.get(t).delete(n)},Cn=u.createContext(null);function On(){return u.useContext(Cn)}var _n,Tn=Ue({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=$(e,{},n);return r[Ge]=t,r},onProcessStyle:function(e,t){if(qe in t||Ge in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[qe]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ge];i&&(o.style=i(e)||{});var a=o[qe];if(a)for(var s in a)o.prop(s,a[s](e),r)}},tt(),it(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=dt(e[t]);return e}return dt(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ct(t);return t===r?e:(n.prop(r,e),null)}},yt(),"undefined"==typeof window?null:wn(),(_n=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(_n),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==_.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[O]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}(),Pn={disableGeneration:!1,generateClassName:Rn,jss:Tn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},An=u.createContext(Pn),Ln=-1e9;var Nn={};function Mn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Sn(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},kn(o.sheetsManager,i,r,s));var l=f({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=Sn(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,f({link:!1},l))).attach(),o.sheetsCache&&kn(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ke(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,f({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xn({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Nn:i,s=p(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=f({},o);return Object.keys(i).forEach(function(e){a[e]=y(a[e],i[e])}),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Ln+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=On()||a,r=f({},u.useContext(An),s),i=u.useRef(),c=u.useRef();!function(e,t){var n,r=u.useRef([]),o=u.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),u.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Mn(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Sn(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(En(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),u.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=xn({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return d}}var Fn,$n,jn,zn,Bn={exports:{}},Dn={};function Wn(){return $n||($n=1,Bn.exports=function(){if(Fn)return Dn;Fn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return b(e)===u}return Dn.AsyncMode=l,Dn.ConcurrentMode=u,Dn.ContextConsumer=s,Dn.ContextProvider=a,Dn.Element=t,Dn.ForwardRef=c,Dn.Fragment=r,Dn.Lazy=h,Dn.Memo=f,Dn.Portal=n,Dn.Profiler=i,Dn.StrictMode=o,Dn.Suspense=d,Dn.isAsyncMode=function(e){return w(e)||b(e)===l},Dn.isConcurrentMode=w,Dn.isContextConsumer=function(e){return b(e)===s},Dn.isContextProvider=function(e){return b(e)===a},Dn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dn.isForwardRef=function(e){return b(e)===c},Dn.isFragment=function(e){return b(e)===r},Dn.isLazy=function(e){return b(e)===h},Dn.isMemo=function(e){return b(e)===f},Dn.isPortal=function(e){return b(e)===n},Dn.isProfiler=function(e){return b(e)===i},Dn.isStrictMode=function(e){return b(e)===o},Dn.isSuspense=function(e){return b(e)===d},Dn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Dn.typeOf=b,Dn}()),Bn.exports}var Un=function(){if(zn)return jn;zn=1;var e=Wn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return jn=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},jn}(),Vn=t(Un),Kn=["xs","sm","md","lg","xl"];function Hn(e,t,n){var r;return f({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),f({paddingLeft:t(2),paddingRight:t(2)},n,w({},e.up("sm"),f({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},w(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),w(r,e.up("sm"),{minHeight:64}),r)},n)}var qn={black:"#000",white:"#fff"},Gn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Yn="#7986cb",Xn="#3f51b5",Qn="#303f9f",Jn="#ff4081",Zn="#f50057",er="#c51162",tr="#e57373",nr="#f44336",rr="#d32f2f",or="#ffb74d",ir="#ff9800",ar="#f57c00",sr="#64b5f6",lr="#2196f3",ur="#1976d2",cr="#81c784",dr="#4caf50",pr="#388e3c";function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function hr(e){if(e.type)return e;if("#"===e.charAt(0))return hr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(x(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function mr(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function gr(e){var t="hsl"===(e=hr(e)).type?hr(function(e){var t=(e=hr(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mr({type:s,values:l})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vr(e,t){if(e=hr(e),t=fr(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return mr(e)}function yr(e,t){if(e=hr(e),t=fr(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return mr(e)}var br={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qn.white,default:Gn[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wr={text:{primary:qn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Gn[800],default:"#303030"},action:{active:qn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function xr(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=yr(e.main,o):"dark"===t&&(e.dark=vr(e.main,i)))}function kr(e){var t=e.primary,n=void 0===t?{light:Yn,main:Xn,dark:Qn}:t,r=e.secondary,o=void 0===r?{light:Jn,main:Zn,dark:er}:r,i=e.error,a=void 0===i?{light:tr,main:nr,dark:rr}:i,s=e.warning,l=void 0===s?{light:or,main:ir,dark:ar}:s,u=e.info,c=void 0===u?{light:sr,main:lr,dark:ur}:u,d=e.success,h=void 0===d?{light:cr,main:dr,dark:pr}:d,m=e.type,g=void 0===m?"light":m,v=e.contrastThreshold,b=void 0===v?3:v,w=e.tonalOffset,k=void 0===w?.2:w,S=p(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(e){var t=function(e,t){var n=gr(e),r=gr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,wr.text.primary)>=b?wr.text.primary:br.text.primary;return t}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=f({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(x(4,t));if("string"!=typeof e.main)throw new Error(x(5,JSON.stringify(e.main)));return xr(e,"light",n,k),xr(e,"dark",r,k),e.contrastText||(e.contrastText=E(e.main)),e},O={dark:wr,light:br};return y(f({common:qn,type:g,primary:C(n),secondary:C(o,"A400","A200","A700"),error:C(a),warning:C(l),info:C(c),success:C(h),grey:Gn,contrastThreshold:b,getContrastText:E,augmentColor:C,tonalOffset:k},O[g]),S)}function Sr(e){return Math.round(1e5*e)/1e5}function Er(e){return Sr(e)}var Cr={textTransform:"uppercase"},Or='"Roboto", "Helvetica", "Arial", sans-serif';function _r(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?Or:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,h=void 0===d?500:d,m=n.fontWeightBold,g=void 0===m?700:m,v=n.htmlFontSize,b=void 0===v?16:v,w=n.allVariants,x=n.pxToRem,k=p(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),S=a/14,E=x||function(e){return"".concat(e/b*S,"rem")},C=function(e,t,n,r,i){return f({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===Or?{letterSpacing:"".concat(Sr(r/t),"em")}:{},i,w)},O={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(c,48,1.167,0),h4:C(c,34,1.235,.25),h5:C(c,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(c,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(c,16,1.5,.15),body2:C(c,14,1.43,.15),button:C(h,14,1.75,.4,Cr),caption:C(c,12,1.66,.4),overline:C(c,12,2.66,1,Cr)};return y(f({htmlFontSize:b,pxToRem:E,round:Er,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:h,fontWeightBold:g},O),k,{clone:!1})}function Tr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Rr=["none",Tr(0,2,1,-1,0,1,1,0,0,1,3,0),Tr(0,3,1,-2,0,2,2,0,0,1,5,0),Tr(0,3,3,-2,0,3,4,0,0,1,8,0),Tr(0,2,4,-1,0,4,5,0,0,1,10,0),Tr(0,3,5,-1,0,5,8,0,0,1,14,0),Tr(0,3,5,-1,0,6,10,0,0,1,18,0),Tr(0,4,5,-2,0,7,10,1,0,2,16,1),Tr(0,5,5,-3,0,8,10,1,0,3,14,2),Tr(0,5,6,-3,0,9,12,1,0,3,16,2),Tr(0,6,6,-3,0,10,14,1,0,4,18,3),Tr(0,6,7,-4,0,11,15,1,0,4,20,3),Tr(0,7,8,-4,0,12,17,2,0,5,22,4),Tr(0,7,8,-4,0,13,19,2,0,5,24,4),Tr(0,7,9,-4,0,14,21,2,0,5,26,4),Tr(0,8,9,-5,0,15,22,2,0,6,28,5),Tr(0,8,10,-5,0,16,24,2,0,6,30,5),Tr(0,8,11,-5,0,17,26,2,0,6,32,5),Tr(0,9,11,-5,0,18,28,2,0,7,34,6),Tr(0,9,12,-6,0,19,29,2,0,7,36,6),Tr(0,10,13,-6,0,20,31,3,0,8,38,7),Tr(0,10,13,-6,0,21,33,3,0,8,40,7),Tr(0,10,14,-6,0,22,35,3,0,8,42,7),Tr(0,11,14,-7,0,23,36,3,0,9,44,8),Tr(0,11,15,-7,0,24,38,3,0,9,46,8)],Pr={borderRadius:4};function Ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||wt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t,n="number"==typeof(t={spacing:e}.spacing||8)?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){},r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return e}}),r.mui=!0,r}var Nr={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Mr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ir(e){return"".concat(Math.round(e),"ms")}var Fr={easing:Nr,duration:Mr,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Mr.standard:n,o=t.easing,i=void 0===o?Nr.easeInOut:o,a=t.delay,s=void 0===a?0:a;return p(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:Ir(r)," ").concat(i," ").concat("string"==typeof s?s:Ir(s))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},$r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var jr=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=p(e,["breakpoints","mixins","palette","spacing","typography"]),d=kr(a),h=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=p(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function u(e,t){var r=Kn.indexOf(t);return r===Kn.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Kn[r+1]]?n[Kn[r+1]]:t)-a/100).concat(o,")")}return f({keys:Kn,values:n,up:l,down:function(e){var t=Kn.indexOf(e)+1,r=n[Kn[t]];return t===Kn.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),m=Lr(s),g=y({breakpoints:h,direction:"ltr",mixins:Hn(h,m,o),overrides:{},palette:d,props:{},shadows:Rr,typography:_r(d,u),spacing:m,shape:Pr,transitions:Fr,zIndex:$r},c),v=arguments.length,b=new Array(v>1?v-1:0),w=1;w<v;w++)b[w-1]=arguments[w];return g=b.reduce(function(e,t){return y(e,t)},g)}();function zr(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=p(t,["defaultTheme","withTheme","name"]),l=a,c=In(e,f({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),d=u.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=p(e,["classes","innerRef"]),d=c(f({},n.defaultProps,e)),h=l;return("string"==typeof a||i)&&(o=On()||r,a&&(h=T({theme:o,name:a,props:l})),i&&!h.theme&&(h.theme=o)),u.createElement(n,f({ref:s||t,classes:d},h))});return Vn(d,n),d}}(e,f({defaultTheme:jr},t))}var Br=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,u=e.elevation,c=void 0===u?1:u,d=e.variant,h=void 0===d?"elevation":d,g=p(e,["classes","className","component","square","elevation","variant"]);return l.createElement(i,f({className:m(n.root,r,"outlined"===h?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},g))}),Dr=zr(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),f({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(Br);function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(null,arguments)}function Ur(e){return In(e,f({defaultTheme:jr},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function Vr(){return On()||jr}function Kr(e){if("string"!=typeof e)throw new Error(x(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Hr=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.value,s=e.valueBuffer,u=e.variant,c=void 0===u?"indeterminate":u,d=p(e,["classes","className","color","value","valueBuffer","variant"]),h=Vr(),g={},v={bar1:{},bar2:{}};if(("determinate"===c||"buffer"===c)&&void 0!==a){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var y=a-100;"rtl"===h.direction&&(y=-y),v.bar1.transform="translateX(".concat(y,"%)")}if("buffer"===c&&void 0!==s){var b=(s||0)-100;"rtl"===h.direction&&(b=-b),v.bar2.transform="translateX(".concat(b,"%)")}return l.createElement("div",f({className:m(n.root,n["color".concat(Kr(i))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[c]),role:"progressbar"},g,{ref:t},d),"buffer"===c?l.createElement("div",{className:m(n.dashed,n["dashedColor".concat(Kr(i))])}):null,l.createElement("div",{className:m(n.bar,n["barColor".concat(Kr(i))],("indeterminate"===c||"query"===c)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[c]),style:v.bar1}),"determinate"===c?null:l.createElement("div",{className:m(n.bar,("indeterminate"===c||"query"===c)&&n.bar2Indeterminate,"buffer"===c?[n["color".concat(Kr(i))],n.bar2Buffer]:n["barColor".concat(Kr(i))]),style:v.bar2}))}),qr=zr(function(e){var t=function(t){return"light"===e.palette.type?yr(t,.62):vr(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}},{name:"MuiLinearProgress"})(Hr);const Gr=Ur(e=>({root:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}));function Yr(e){const t=Gr();return u.createElement("div",Wr({className:t.root},e),u.createElement(qr,null))}const Xr=(e,t)=>{const{controls:n,toolbarItems:r,getChartEditor:o}=e;return t&&t.charts&&t.visualization&&t.visualization.ChartWrapper&&t.visualization.Dashboard&&(!n||t.visualization.ChartWrapper)&&(!o||t.visualization.ChartEditor)&&(!r||t.visualization.drawToolbar)};function Qr(e){const{chartVersion:t="current",chartPackages:n=["corechart","controls"],chartLanguage:r="en",mapsApiKey:o}=e,[i,a]=l.useState(null),[s,u]=l.useState(null),[c,d]=l.useState(null),{isLoading:p,error:f,isSuccess:h}=function(e){const[t,n]=l.useState(!0),[r,o]=l.useState(null),[i,a]=l.useState(!1),s=()=>{n(!1),a(!0)};return l.useEffect(()=>{if(!document){const t=new Error(`[ScriptLoadingError] document not defined when attempting to load ${e}`);return void o(t)}const t=document.querySelector(`script[src="${e}"]`);if(t?.dataset.loaded)return void s();const n=t||document.createElement("script");t||(n.src=e),n.addEventListener("load",()=>{n.dataset.loaded="1",s()}),n.addEventListener("error",t=>{console.error("Failed to load script:",e,t);const n=new Error(`[ScriptLoadingError] Failed to load script: ${e}`);o(n)}),t||document.head.append(n)},[]),{isLoading:t,error:r,isSuccess:i}}(e.chartLoaderScriptUrl||"https://www.gstatic.com/charts/loader.js");return l.useEffect(()=>{if(!h)return;const i=window.google;if(!(e=>e&&e.charts)(i)){const e=new Error("[ScriptInitializationError] Script loaded but Google not attached to window.");return void u(e)}Xr(e,i)?a(i):(i.charts.load(t,{packages:n,language:r,mapsApiKey:o}),i.charts.setOnLoadCallback(()=>{if(!Xr(e,i)){const e=new Error("[GoogleChartsInitializationError] Google Charts not ready after load callback.");return console.error(e),void d(e)}a(i)}))},[h]),{error:f||s||c,isLoading:p,google:i}}const Jr={legend_toggle:!1,options:{},legendToggle:!1,getChartWrapper:()=>{},spreadSheetQueryParameters:{headers:1,gid:1},rootProps:{},chartWrapperParams:{},chartLoaderScriptUrl:"https://www.gstatic.com/charts/loader.js"},Zr=e=>{const{isReady:t,chartControls:n,filter:r}=e;return t&&n&&n?.length?u.createElement(u.Fragment,null,n.filter(e=>{let{controlProp:t,control:n}=e;return!r||r({control:n,controlProp:t})}).map(e=>{let{control:t}=e;return u.createElement("div",{key:t.getContainerId(),id:t.getContainerId()})})):null};let eo=0;const to=()=>(eo+=1,`reactgooglegraph-${eo}`);class no{static initializeControls=e=>{for(let t=0;t<e.length;t+=1){const{controlType:n,options:r,controlWrapperParams:o}=e[t].controlProp;o&&"state"in o&&e[t].control.setState(o.state),e[t].control.setOptions(r),e[t].control.setControlType(n)}};static listenToControlEvents=(e,t)=>{const{google:n}=t;return e.flatMap(e=>{const{control:r,controlProp:o}=e,{controlEvents:i=[]}=o;return i.map(e=>{const{callback:o,eventName:i}=e;return n.visualization.events.addListener(r,i,function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];o({chartWrapper:null,controlWrapper:r,props:t,google:n,eventArgs:i})})})})};static createControlId=e=>{let t;return t=void 0===e?`googlechart-control-${to()}`:e,t};static createChartControls=e=>{const{controls:t,google:n}=e;return t?t.map((e,t)=>{const{controlID:r,controlType:o,options:i,controlWrapperParams:a}=e,s=this.createControlId(r);return{controlProp:e,control:new n.visualization.ControlWrapper({containerId:s,controlType:o,options:i,...a})}}):null};static addControls=e=>{const{chartWrapper:t,chartDashboard:n}=e,r=this.createChartControls(e);return r&&n&&t?(n.bind(r.map(e=>{let{control:t}=e;return t}),t),this.initializeControls(r),r):null}}const ro=e=>{const[t,n]=(e=>{const[t,n]=l.useState(null);return[l.useMemo(()=>t&&e?e.map((e,n)=>{const r=t[n];return r?{controlProp:e,control:r}:void 0}).flatMap(e=>e?[e]:[]):null,[t,e]),n]})(e.controls);((e,t)=>{l.useEffect(()=>{const n=no.listenToControlEvents(e??[],t);return()=>{n.forEach(e=>{t.google.visualization.events.removeListener(e)})}},[e,t])})(t??[],e);return{addControls:e=>{const t=no.addControls(e);n(t?.map(e=>e.control)??null)},renderControl:n=>{const{chartWrapper:r,chartDashboard:o}=e;return l.createElement(Zr,{...e,isReady:Boolean(r&&o),chartControls:t,filter:n})}}},oo=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"];class io{static grayOutHiddenColumnsLabel=(e,t)=>{const{googleChartWrapper:n,options:r}=e;if(!n)return void console.error("googleChartWrapper is not defined");const o=n.getDataTable();if(!o)return;const i=o.getNumberOfColumns();if(!1===t.length>0)return;const a=Array.from({length:i-1}).map((e,n)=>{const i=this.getColumnId(o,n+1);return t.includes(i)?"#CCCCCC":r&&r.colors?r.colors[n]:oo[n]});n.setOptions({...r,colors:a}),n.draw()};static listenToLegendToggle=(e,t)=>{const[n,r]=t,{google:o,googleChartWrapper:i}=e;if(i)return o.visualization.events.addListener(i,"select",()=>{const e=i.getChart().getSelection(),t=i.getDataTable();if(0===e.length||null!==e[0].row||!t)return;const o=e[0].column,a=this.getColumnId(t,o);n?.includes(a)?r(e=>[...e.filter(e=>e!==a)]):r(e=>[...e,a])});console.error("googleChartWrapper is not defined")};static draw=async e=>{const{data:t,diffdata:n,rows:r,columns:o,options:i,chartType:a,formatters:s,spreadSheetUrl:l,spreadSheetQueryParameters:u,googleChartDashboard:c,googleChartWrapper:d,google:p,hiddenColumns:f,legendToggle:h,legend_toggle:m}=e;if(!d)return void console.error("draw was called with googleChartWrapper = null");let g,v=null;if(n){const e=p.visualization.arrayToDataTable(n.old),t=p.visualization.arrayToDataTable(n.new);v=p.visualization[a].prototype.computeDiff(e,t)}g=t?t instanceof p.visualization.DataTable?t:Array.isArray(t)?p.visualization.arrayToDataTable(t):new p.visualization.DataTable(t):r&&o?p.visualization.arrayToDataTable([o,...r]):l?await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((r,o)=>{const i=n.headers?`headers=${n.headers}`:"headers=0",a=n.query?`&tq=${encodeURIComponent(n.query)}`:"",s=n.gid?`&gid=${n.gid}`:"",l=n.sheet?`&sheet=${n.sheet}`:"",u=n.access_token?`&access_token=${n.access_token}`:"",c=`${t}/gviz/tq?${i}${s}${l}${a}${u}`;new e.visualization.Query(c).send(e=>{e.isError()?o(`Error in query: ${e.getMessage()} ${e.getDetailedMessage()}`):r(e.getDataTable())})})}(p,l,u):p.visualization.arrayToDataTable([]);const y=g.getNumberOfColumns(),b=Array(y).fill(0).map((e,t)=>{const n=this.getColumnId(g,t);return f.includes(n)?{label:g.getColumnLabel(t),type:g.getColumnType(t),calc:()=>null}:t}),w=d.getChart();"Timeline"===d.getChartType()&&w&&w.clearChart(),d.setChartType(a),d.setOptions(i||{});const x=new p.visualization.DataView(g);x.setColumns(b),d.setDataTable(x),d.draw(),c&&c.draw(g),v&&(d.setDataTable(v),d.draw()),s&&(this.applyFormatters({dataTable:g,formatters:s,google:p}),d.setDataTable(g),d.draw()),!0!==h&&!0!==m||this.grayOutHiddenColumnsLabel(e,f)};static getColumnId=(e,t)=>e.getColumnId(t)||e.getColumnLabel(t);static applyFormatters=e=>{let{dataTable:t,formatters:n,google:r}=e;for(let e of n)switch(e.type){case"ArrowFormat":return void new r.visualization.ArrowFormat(e.options).format(t,e.column);case"BarFormat":return void new r.visualization.BarFormat(e.options).format(t,e.column);case"ColorFormat":{const n=new r.visualization.ColorFormat(e.options),{ranges:o}=e;if(o)for(let e of o)n.addRange(...e);return void n.format(t,e.column)}case"DateFormat":return void new r.visualization.DateFormat(e.options).format(t,e.column);case"NumberFormat":return void new r.visualization.NumberFormat(e.options).format(t,e.column);case"PatternFormat":return void new r.visualization.PatternFormat(e.options).format(t,e.column);default:return void console.warn(`Unknown formatter type: ${e.type}`)}}}const ao=e=>{l.useEffect(()=>{if(!e.googleChartWrapper)return;const t=(e=>{const{chartEvents:t,google:n,googleChartWrapper:r}=e;if(t){if(r)return t.map(t=>{let{eventName:o,callback:i}=t;return n.visualization.events.addListener(r,o,function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];i({chartWrapper:r,props:e,google:n,eventArgs:o})})});console.warn("listenToEvents was called before chart wrapper ready.")}})(e);return()=>{t?.forEach(t=>{e.google.visualization.events.removeListener(t)})}},[e])},so=e=>{const[t,n]=l.useState(null),[r,o]=l.useState(null),{addControls:i,renderControl:a}=ro({...e,chartDashboard:r,chartWrapper:t});ao({...e,googleChartWrapper:t});const{chartId:s}=(e=>{const t=l.useRef(null);return{chartId:(()=>{const{graphID:n,graph_id:r}=e;let o;return o=n||r||t.current||to(),t.current=o,t.current})()}})(e),u=l.useRef(null),c=l.useRef(null);l.useEffect(()=>{const{options:t,google:r,chartType:a,chartWrapperParams:l,toolbarItems:d,getChartEditor:p,getChartWrapper:f,onLoad:h}=e,m={chartType:a,options:t,containerId:s,...l},g=new r.visualization.ChartWrapper(m);g.setOptions(t||{}),f?.(g,r);const v=new r.visualization.Dashboard(u.current);d&&r.visualization.drawToolbar(c.current,d);let y=null;p&&(y=new r.visualization.ChartEditor,p({chartEditor:y,chartWrapper:g,google:r})),i({...e,chartDashboard:v,chartWrapper:g}),n(g),o(v),h?.(r,{google:r,chartWrapper:g,chartEditor:y,chartDashboard:v})},[]),(e=>{const{google:t,googleChartWrapper:n,googleChartDashboard:r}=e,[o,i]=l.useState([]);l.useEffect(()=>{n&&io.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t})},[o,e.data,e.rows,e.columns,e.options,e.chartLoaderScriptUrl,e.chartType,e.formatters,e.spreadSheetUrl,e.spreadSheetQueryParameters,e.legendToggle,e.legend_toggle]);const a=()=>{const{googleChartWrapper:t}=e;t&&t.draw()},s=n=>{const s=[],{legendToggle:l,legend_toggle:u}=e;if(io.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t}),window.addEventListener("resize",a),u||l){const t=io.listenToLegendToggle(e,[o,i]);t&&s.push(t)}return s},u=(e,n)=>{window.removeEventListener("resize",a),n.forEach(e=>{t.visualization.events.removeListener(e)}),"Timeline"===e.getChartType()&&e.getChart()&&e.getChart().clearChart()};l.useEffect(()=>{if(!n)return;const e=s(n);return()=>{u(n,e)}},[n,s,u])})({...e,googleChartWrapper:t,googleChartDashboard:r});const d=()=>{const{width:t,height:n,options:r,style:o,className:i,rootProps:a,google:u}=e,c={height:n||r&&r.height,width:t||r&&r.width,...o};return l.createElement("div",{id:s,style:c,className:i,...a})},p=()=>e.toolbarItems?l.createElement("div",{ref:c}):null,{width:f,height:h,options:m,style:g}=e,v={height:h||m&&m.height,width:f||m&&m.width,...g};return e.render?l.createElement("div",{ref:u,style:v},l.createElement("div",{ref:c,id:"toolbar"}),e.render({renderChart:d,renderControl:a,renderToolbar:p})):l.createElement("div",{ref:u,style:v},a(e=>{let{controlProp:t}=e;return"bottom"!==t.controlPosition}),d(),a(e=>{let{controlProp:t}=e;return"bottom"===t.controlPosition}),p())},lo=l.createContext(Jr),uo=e=>{let{children:t,value:n}=e;return l.createElement(lo.Provider,{value:n},t)},co=e=>{const{google:t,isLoading:n,error:r}=Qr(e);return n?e.loader??null:r?e.errorElement??null:t?u.createElement(so,{google:t,...e}):null},po=e=>{const t={...Jr,...e};return u.createElement(uo,{value:t},u.createElement(co,t))};var fo;!function(e){e.annotation="annotation",e.annotationText="annotationText",e.certainty="certainty",e.emphasis="emphasis",e.interval="interval",e.scope="scope",e.style="style",e.tooltip="tooltip",e.domain="domain"}(fo||(fo={}));var ho,mo={exports:{}};
|
|
8
|
+
*/Ue();var He=Date.now(),qe="fnValues"+He,Ge="fnStyle"+ ++He,Ye="@global",Xe="@global ",Qe=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ye,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new xe(f({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Je=function(){function e(e,t,n){this.type="global",this.at=Ye,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,f({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ze=/\s*,\s*/g;function et(e,t){for(var n=e.split(Ze),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function tt(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ye)return new Qe(e,t,n);if("@"===e[0]&&e.substr(0,8)===Xe)return new Je(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ye]:null;if(o){for(var i in o)t.addRule(i,o[i],f({},n,{selector:et(i,e.selector)}));delete r[Ye]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Ye){var i=et(o.substr(7),e.selector);t.addRule(i,r[o],f({},n,{selector:i})),delete r[o]}}(e,t))}}}var nt=/\s*,\s*/g,rt=/&/g,ot=/\$([\w-]+)/g;function it(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(nt),r=e.split(nt),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(rt,a):a+" "+l}return o}function n(e,t,n){if(n)return f({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=f({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,i)),h=h.replace(ot,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,r[c],f({},a,{selector:h})):u.addRule(m,r[c],f({},a,{selector:h}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var at=/[A-Z]/g,st=/^ms-/,lt={};function ut(e){return"-"+e.toLowerCase()}function ct(e){if(lt.hasOwnProperty(e))return lt[e];var t=e.replace(at,ut);return lt[e]=st.test(t)?"-"+t:t}function dt(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ct(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(dt):t.fallbacks=dt(e.fallbacks)),t}var pt=Ve&&CSS?CSS.px:"px",ft=Ve&&CSS?CSS.ms:"ms",ht=Ve&&CSS?CSS.percent:"%";function mt(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var gt=mt({"animation-delay":ft,"animation-duration":ft,"background-position":pt,"background-position-x":pt,"background-position-y":pt,"background-size":pt,border:pt,"border-bottom":pt,"border-bottom-left-radius":pt,"border-bottom-right-radius":pt,"border-bottom-width":pt,"border-left":pt,"border-left-width":pt,"border-radius":pt,"border-right":pt,"border-right-width":pt,"border-top":pt,"border-top-left-radius":pt,"border-top-right-radius":pt,"border-top-width":pt,"border-width":pt,"border-block":pt,"border-block-end":pt,"border-block-end-width":pt,"border-block-start":pt,"border-block-start-width":pt,"border-block-width":pt,"border-inline":pt,"border-inline-end":pt,"border-inline-end-width":pt,"border-inline-start":pt,"border-inline-start-width":pt,"border-inline-width":pt,"border-start-start-radius":pt,"border-start-end-radius":pt,"border-end-start-radius":pt,"border-end-end-radius":pt,margin:pt,"margin-bottom":pt,"margin-left":pt,"margin-right":pt,"margin-top":pt,"margin-block":pt,"margin-block-end":pt,"margin-block-start":pt,"margin-inline":pt,"margin-inline-end":pt,"margin-inline-start":pt,padding:pt,"padding-bottom":pt,"padding-left":pt,"padding-right":pt,"padding-top":pt,"padding-block":pt,"padding-block-end":pt,"padding-block-start":pt,"padding-inline":pt,"padding-inline-end":pt,"padding-inline-start":pt,"mask-position-x":pt,"mask-position-y":pt,"mask-size":pt,height:pt,width:pt,"min-height":pt,"max-height":pt,"min-width":pt,"max-width":pt,bottom:pt,left:pt,top:pt,right:pt,inset:pt,"inset-block":pt,"inset-block-end":pt,"inset-block-start":pt,"inset-inline":pt,"inset-inline-end":pt,"inset-inline-start":pt,"box-shadow":pt,"text-shadow":pt,"column-gap":pt,"column-rule":pt,"column-rule-width":pt,"column-width":pt,"font-size":pt,"font-size-delta":pt,"letter-spacing":pt,"text-decoration-thickness":pt,"text-indent":pt,"text-stroke":pt,"text-stroke-width":pt,"word-spacing":pt,motion:pt,"motion-offset":pt,outline:pt,"outline-offset":pt,"outline-width":pt,perspective:pt,"perspective-origin-x":ht,"perspective-origin-y":ht,"transform-origin":ht,"transform-origin-x":ht,"transform-origin-y":ht,"transform-origin-z":ht,"transition-delay":ft,"transition-duration":ft,"vertical-align":pt,"flex-basis":pt,"shape-margin":pt,size:pt,gap:pt,grid:pt,"grid-gap":pt,"row-gap":pt,"grid-row-gap":pt,"grid-column-gap":pt,"grid-template-rows":pt,"grid-template-columns":pt,"grid-auto-rows":pt,"grid-auto-columns":pt,"box-shadow-x":pt,"box-shadow-y":pt,"box-shadow-blur":pt,"box-shadow-spread":pt,"font-line-height":pt,"text-shadow-x":pt,"text-shadow-y":pt,"text-shadow-blur":pt});function vt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=vt(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=vt(o,t[o],n);else for(var i in t)t[i]=vt(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||gt[e];return!a||0===t&&a===pt?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function yt(e){void 0===e&&(e={});var t=mt(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=vt(r,e[r],t);return e},onChangeValue:function(e,n){return vt(n,e,t)}}}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t){if(e){if("string"==typeof e)return bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}function xt(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var kt="",St="",Et="",Ct="",Ot=P&&"ontouchstart"in document.documentElement;if(P){var Tt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},_t=document.createElement("p").style;for(var Rt in Tt)if(Rt+"Transform"in _t){kt=Rt,St=Tt[Rt];break}"Webkit"===kt&&"msHyphens"in _t&&(kt="ms",St=Tt.ms,Ct="edge"),"Webkit"===kt&&"-apple-trailing-word"in _t&&(Et="apple")}var Pt=kt,At=St,Lt=Et,Nt=Ct,Mt=Ot;var It={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Pt?"-webkit-"+e:At+e)}},Ft={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Pt?At+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function jt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,jt)}function Bt(e){return zt("-"+e)}var Dt,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Pt){var n="mask-image";if(zt(n)in t)return e;if(Pt+Bt(n)in t)return At+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Lt||Mt?e:At+e)}},Vt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:At+e)}},Kt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:At+e)}},Ht={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Pt||"ms"===Pt&&"edge"!==Nt?At+e:e)}},qt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Pt||"ms"===Pt||"apple"===Lt?At+e:e)}},Gt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Pt?"WebkitColumn"+Bt(e)in t&&At+"column-"+e:"Moz"===Pt&&("page"+Bt(e)in t&&"page-"+e))}},Yt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Pt)return e;var n=e.replace("-inline","");return Pt+Bt(n)in t&&At+n}},Xt={supportedProperty:function(e,t){return zt(e)in t&&e}},Qt={supportedProperty:function(e,t){var n=Bt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Pt+n in t?At+e:"Webkit"!==Pt&&"Webkit"+n in t&&"-webkit-"+e}},Jt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Pt?""+At+e:e)}},Zt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Pt?At+"scroll-chaining":e)}},en={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tn={supportedProperty:function(e,t){var n=en[e];return!!n&&(Pt+Bt(n)in t&&At+n)}},nn={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},rn=Object.keys(nn),on=function(e){return At+e},an={supportedProperty:function(e,t,n){var r=n.multiple;if(rn.indexOf(e)>-1){var o=nn[e];if(!Array.isArray(o))return Pt+Bt(o)in t&&At+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Pt+Bt(o[0])in t))return!1;return o.map(on)}return!1}},sn=[It,Ft,Wt,Ut,Vt,Kt,Ht,qt,Gt,Yt,Xt,Qt,Jt,Zt,tn,an],ln=sn.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),un=sn.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,xt(t.noPrefill)),e},[]),cn={};if(P){Dt=document.createElement("p");var dn=window.getComputedStyle(document.documentElement,"");for(var pn in dn)isNaN(pn)||(cn[dn[pn]]=dn[pn]);un.forEach(function(e){return delete cn[e]})}function fn(e,t){if(void 0===t&&(t={}),!Dt)return e;if(null!=cn[e])return cn[e];"transition"!==e&&"transform"!==e||(t[e]=e in Dt.style);for(var n=0;n<ln.length&&(cn[e]=ln[n](e,Dt.style,t),!cn[e]);n++);try{Dt.style[e]=""}catch(e){return!1}return cn[e]}var hn,mn={},gn={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},vn=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function yn(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?fn(t):", "+fn(n);return r||(t||n)}function bn(e,t){var n=t;if(!hn||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=mn[r])return mn[r];try{hn.style[e]=n}catch(e){return mn[r]=!1,!1}if(gn[e])n=n.replace(vn,yn);else if(""===hn.style[e]&&("-ms-flex"===(n=At+n)&&(hn.style[e]="-ms-flexbox"),hn.style[e]=n,""===hn.style[e]))return mn[r]=!1,!1;return hn.style[e]="",mn[r]=n,mn[r]}function wn(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=fn(n);i&&i!==n&&(o=!0);var a=!1,s=bn(i,z(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Pt?e:"@"+At+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return bn(t,z(e))||e}}}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=f({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}P&&(hn=document.createElement("p"));var kn=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Sn=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},En=function(e,t,n){e.get(t).delete(n)},Cn=u.createContext(null);function On(){return u.useContext(Cn)}var Tn,_n=Ue({plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=$(e,{},n);return r[Ge]=t,r},onProcessStyle:function(e,t){if(qe in t||Ge in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[qe]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ge];i&&(o.style=i(e)||{});var a=o[qe];if(a)for(var s in a)o.prop(s,a[s](e),r)}},tt(),it(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=dt(e[t]);return e}return dt(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ct(t);return t===r?e:(n.prop(r,e),null)}},yt(),"undefined"==typeof window?null:wn(),(Tn=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,t){if("style"!==t.type)return e;for(var n={},r=Object.keys(e).sort(Tn),o=0;o<r.length;o++)n[r[o]]=e[r[o]];return n}})]}),Rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==T.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[O]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}(),Pn={disableGeneration:!1,generateClassName:Rn,jss:_n,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},An=u.createContext(Pn),Ln=-1e9;var Nn={};function Mn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Sn(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},kn(o.sheetsManager,i,r,s));var l=f({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=Sn(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,f({link:!1},l))).attach(),o.sheetsCache&&kn(o.sheetsCache,i,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ke(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,f({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xn({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function In(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Nn:i,s=p(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=f({},o);return Object.keys(i).forEach(function(e){a[e]=y(a[e],i[e])}),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Ln+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=On()||a,r=f({},u.useContext(An),s),i=u.useRef(),c=u.useRef();!function(e,t){var n,r=u.useRef([]),o=u.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),u.useEffect(function(){return function(){n&&n()}},[o])}(function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Mn(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Sn(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(En(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),u.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=xn({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return d}}var Fn,$n,jn,zn,Bn={exports:{}},Dn={};function Wn(){return $n||($n=1,Bn.exports=function(){if(Fn)return Dn;Fn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function w(e){return b(e)===u}return Dn.AsyncMode=l,Dn.ConcurrentMode=u,Dn.ContextConsumer=s,Dn.ContextProvider=a,Dn.Element=t,Dn.ForwardRef=c,Dn.Fragment=r,Dn.Lazy=h,Dn.Memo=f,Dn.Portal=n,Dn.Profiler=i,Dn.StrictMode=o,Dn.Suspense=d,Dn.isAsyncMode=function(e){return w(e)||b(e)===l},Dn.isConcurrentMode=w,Dn.isContextConsumer=function(e){return b(e)===s},Dn.isContextProvider=function(e){return b(e)===a},Dn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dn.isForwardRef=function(e){return b(e)===c},Dn.isFragment=function(e){return b(e)===r},Dn.isLazy=function(e){return b(e)===h},Dn.isMemo=function(e){return b(e)===f},Dn.isPortal=function(e){return b(e)===n},Dn.isProfiler=function(e){return b(e)===i},Dn.isStrictMode=function(e){return b(e)===o},Dn.isSuspense=function(e){return b(e)===d},Dn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Dn.typeOf=b,Dn}()),Bn.exports}var Un=function(){if(zn)return jn;zn=1;var e=Wn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return jn=function e(t,r,o){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,o)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=i(t),m=i(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||o&&o[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},jn}(),Vn=t(Un);function Kn(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=p(r,["name"]),a=o,s=In("function"==typeof t?function(e){return{root:function(n){return t(f({theme:e},n))}}}:{root:t},f({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=u.forwardRef(function(t,r){var o,i,a,l=t.children,c=t.className,d=t.clone,h=t.component,g=p(t,["children","className","clone","component"]),v=m(s(t).root,c),y=g;if(n&&(o=y,i=n,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),y=a),d)return u.cloneElement(l,f({className:m(l.props.className,v)},y));if("function"==typeof l)return l(f({className:v},y));var b=h||e;return u.createElement(b,f({ref:r,className:v},y),l)});return Vn(l,e),l}}var Hn=["xs","sm","md","lg","xl"];function qn(e,t,n){var r;return f({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),f({paddingLeft:t(2),paddingRight:t(2)},n,w({},e.up("sm"),f({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},w(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),w(r,e.up("sm"),{minHeight:64}),r)},n)}var Gn={black:"#000",white:"#fff"},Yn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},Xn="#7986cb",Qn="#3f51b5",Jn="#303f9f",Zn="#ff4081",er="#f50057",tr="#c51162",nr="#e57373",rr="#f44336",or="#d32f2f",ir="#ffb74d",ar="#ff9800",sr="#f57c00",lr="#64b5f6",ur="#2196f3",cr="#1976d2",dr="#81c784",pr="#4caf50",fr="#388e3c";function hr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function mr(e){if(e.type)return e;if("#"===e.charAt(0))return mr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(x(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function gr(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function vr(e){var t="hsl"===(e=mr(e)).type?mr(function(e){var t=(e=mr(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),gr({type:s,values:l})}(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yr(e,t){if(e=mr(e),t=hr(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return gr(e)}function br(e,t){if(e=mr(e),t=hr(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return gr(e)}var wr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Gn.white,default:Yn[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},xr={text:{primary:Gn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Yn[800],default:"#303030"},action:{active:Gn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function kr(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=br(e.main,o):"dark"===t&&(e.dark=yr(e.main,i)))}function Sr(e){var t=e.primary,n=void 0===t?{light:Xn,main:Qn,dark:Jn}:t,r=e.secondary,o=void 0===r?{light:Zn,main:er,dark:tr}:r,i=e.error,a=void 0===i?{light:nr,main:rr,dark:or}:i,s=e.warning,l=void 0===s?{light:ir,main:ar,dark:sr}:s,u=e.info,c=void 0===u?{light:lr,main:ur,dark:cr}:u,d=e.success,h=void 0===d?{light:dr,main:pr,dark:fr}:d,m=e.type,g=void 0===m?"light":m,v=e.contrastThreshold,b=void 0===v?3:v,w=e.tonalOffset,k=void 0===w?.2:w,S=p(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(e){var t=function(e,t){var n=vr(e),r=vr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,xr.text.primary)>=b?xr.text.primary:wr.text.primary;return t}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=f({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(x(4,t));if("string"!=typeof e.main)throw new Error(x(5,JSON.stringify(e.main)));return kr(e,"light",n,k),kr(e,"dark",r,k),e.contrastText||(e.contrastText=E(e.main)),e},O={dark:xr,light:wr};return y(f({common:Gn,type:g,primary:C(n),secondary:C(o,"A400","A200","A700"),error:C(a),warning:C(l),info:C(c),success:C(h),grey:Yn,contrastThreshold:b,getContrastText:E,augmentColor:C,tonalOffset:k},O[g]),S)}function Er(e){return Math.round(1e5*e)/1e5}function Cr(e){return Er(e)}var Or={textTransform:"uppercase"},Tr='"Roboto", "Helvetica", "Arial", sans-serif';function _r(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?Tr:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,h=void 0===d?500:d,m=n.fontWeightBold,g=void 0===m?700:m,v=n.htmlFontSize,b=void 0===v?16:v,w=n.allVariants,x=n.pxToRem,k=p(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),S=a/14,E=x||function(e){return"".concat(e/b*S,"rem")},C=function(e,t,n,r,i){return f({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===Tr?{letterSpacing:"".concat(Er(r/t),"em")}:{},i,w)},O={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(c,48,1.167,0),h4:C(c,34,1.235,.25),h5:C(c,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(c,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(c,16,1.5,.15),body2:C(c,14,1.43,.15),button:C(h,14,1.75,.4,Or),caption:C(c,12,1.66,.4),overline:C(c,12,2.66,1,Or)};return y(f({htmlFontSize:b,pxToRem:E,round:Cr,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:h,fontWeightBold:g},O),k,{clone:!1})}function Rr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Pr=["none",Rr(0,2,1,-1,0,1,1,0,0,1,3,0),Rr(0,3,1,-2,0,2,2,0,0,1,5,0),Rr(0,3,3,-2,0,3,4,0,0,1,8,0),Rr(0,2,4,-1,0,4,5,0,0,1,10,0),Rr(0,3,5,-1,0,5,8,0,0,1,14,0),Rr(0,3,5,-1,0,6,10,0,0,1,18,0),Rr(0,4,5,-2,0,7,10,1,0,2,16,1),Rr(0,5,5,-3,0,8,10,1,0,3,14,2),Rr(0,5,6,-3,0,9,12,1,0,3,16,2),Rr(0,6,6,-3,0,10,14,1,0,4,18,3),Rr(0,6,7,-4,0,11,15,1,0,4,20,3),Rr(0,7,8,-4,0,12,17,2,0,5,22,4),Rr(0,7,8,-4,0,13,19,2,0,5,24,4),Rr(0,7,9,-4,0,14,21,2,0,5,26,4),Rr(0,8,9,-5,0,15,22,2,0,6,28,5),Rr(0,8,10,-5,0,16,24,2,0,6,30,5),Rr(0,8,11,-5,0,17,26,2,0,6,32,5),Rr(0,9,11,-5,0,18,28,2,0,7,34,6),Rr(0,9,12,-6,0,19,29,2,0,7,36,6),Rr(0,10,13,-6,0,20,31,3,0,8,38,7),Rr(0,10,13,-6,0,21,33,3,0,8,40,7),Rr(0,10,14,-6,0,22,35,3,0,8,42,7),Rr(0,11,14,-7,0,23,36,3,0,9,44,8),Rr(0,11,15,-7,0,24,38,3,0,9,46,8)],Ar={borderRadius:4};function Lr(e,t){return t?y(e,t,{clone:!1}):e}var Nr={xs:0,sm:600,md:960,lg:1280,xl:1920},Mr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Nr[e],"px)")}};function Ir(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Mr;return t.reduce(function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e},{})}if("object"===g(t)){var o=e.theme.breakpoints||Mr;return Object.keys(t).reduce(function(e,r){return e[o.up(r)]=n(t[r]),e},{})}return n(t)}function Fr(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function $r(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Fr(e.theme,o)||{};return Ir(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Fr(a,e)||e,i&&(t=i(t))),!1===r?t:w({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function jr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?Lr(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function zr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Br=jr($r({prop:"border",themeKey:"borders",transform:zr}),$r({prop:"borderTop",themeKey:"borders",transform:zr}),$r({prop:"borderRight",themeKey:"borders",transform:zr}),$r({prop:"borderBottom",themeKey:"borders",transform:zr}),$r({prop:"borderLeft",themeKey:"borders",transform:zr}),$r({prop:"borderColor",themeKey:"palette"}),$r({prop:"borderRadius",themeKey:"shape"}));function Dr(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}var Wr=jr($r({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),$r({prop:"display"}),$r({prop:"overflow"}),$r({prop:"textOverflow"}),$r({prop:"visibility"}),$r({prop:"whiteSpace"})),Ur=jr($r({prop:"flexBasis"}),$r({prop:"flexDirection"}),$r({prop:"flexWrap"}),$r({prop:"justifyContent"}),$r({prop:"alignItems"}),$r({prop:"alignContent"}),$r({prop:"order"}),$r({prop:"flex"}),$r({prop:"flexGrow"}),$r({prop:"flexShrink"}),$r({prop:"alignSelf"}),$r({prop:"justifyItems"}),$r({prop:"justifySelf"})),Vr=jr($r({prop:"gridGap"}),$r({prop:"gridColumnGap"}),$r({prop:"gridRowGap"}),$r({prop:"gridColumn"}),$r({prop:"gridRow"}),$r({prop:"gridAutoFlow"}),$r({prop:"gridAutoColumns"}),$r({prop:"gridAutoRows"}),$r({prop:"gridTemplateColumns"}),$r({prop:"gridTemplateRows"}),$r({prop:"gridTemplateAreas"}),$r({prop:"gridArea"})),Kr=jr($r({prop:"color",themeKey:"palette"}),$r({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),Hr=jr($r({prop:"position"}),$r({prop:"zIndex",themeKey:"zIndex"}),$r({prop:"top"}),$r({prop:"right"}),$r({prop:"bottom"}),$r({prop:"left"})),qr=$r({prop:"boxShadow",themeKey:"shadows"});function Gr(e){return e<=1?"".concat(100*e,"%"):e}var Yr=$r({prop:"width",transform:Gr}),Xr=$r({prop:"maxWidth",transform:Gr}),Qr=$r({prop:"minWidth",transform:Gr}),Jr=$r({prop:"height",transform:Gr}),Zr=$r({prop:"maxHeight",transform:Gr}),eo=$r({prop:"minHeight",transform:Gr});$r({prop:"size",cssProperty:"width",transform:Gr}),$r({prop:"size",cssProperty:"height",transform:Gr});var to=jr(Yr,Xr,Qr,Jr,Zr,eo,$r({prop:"boxSizing"}));function no(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||wt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ro={m:"margin",p:"padding"},oo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},io={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ao=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!io[e])return[e];e=io[e]}var t=no(e.split(""),2),n=t[0],r=t[1],o=ro[n],i=oo[r]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),so=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function lo(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function uo(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function co(e){var t=lo(e.theme);return Object.keys(e).map(function(n){if(-1===so.indexOf(n))return null;var r=uo(ao(n),t),o=e[n];return Ir(e,o,r)}).reduce(Lr,{})}co.propTypes={},co.filterProps=so;var po=jr($r({prop:"fontFamily",themeKey:"typography"}),$r({prop:"fontSize",themeKey:"typography"}),$r({prop:"fontStyle",themeKey:"typography"}),$r({prop:"fontWeight",themeKey:"typography"}),$r({prop:"letterSpacing"}),$r({prop:"lineHeight"}),$r({prop:"textAlign"}));var fo={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ho={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mo(e){return"".concat(Math.round(e),"ms")}var go={easing:fo,duration:ho,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?ho.standard:n,o=t.easing,i=void 0===o?fo.easeInOut:o,a=t.delay,s=void 0===a?0:a;return p(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:mo(r)," ").concat(i," ").concat("string"==typeof s?s:mo(s))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},vo={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var yo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=p(e,["breakpoints","mixins","palette","spacing","typography"]),d=Sr(a),h=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=p(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function u(e,t){var r=Hn.indexOf(t);return r===Hn.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Hn[r+1]]?n[Hn[r+1]]:t)-a/100).concat(o,")")}return f({keys:Hn,values:n,up:l,down:function(e){var t=Hn.indexOf(e)+1,r=n[Hn[t]];return t===Hn.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=lo({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map(function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(s),g=y({breakpoints:h,direction:"ltr",mixins:qn(h,m,o),overrides:{},palette:d,props:{},shadows:Pr,typography:_r(d,u),spacing:m,shape:Ar,transitions:go,zIndex:vo},c),v=arguments.length,b=new Array(v>1?v-1:0),w=1;w<v;w++)b[w-1]=arguments[w];return g=b.reduce(function(e,t){return y(e,t)},g)}();function bo(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=p(t,["defaultTheme","withTheme","name"]),l=a,c=In(e,f({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),d=u.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=p(e,["classes","innerRef"]),d=c(f({},n.defaultProps,e)),h=l;return("string"==typeof a||i)&&(o=On()||r,a&&(h=_({theme:o,name:a,props:l})),i&&!h.theme&&(h.theme=o)),u.createElement(n,f({ref:s||t,classes:d},h))});return Vn(d,n),d}}(e,f({defaultTheme:yo},t))}var wo=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,u=e.elevation,c=void 0===u?1:u,d=e.variant,h=void 0===d?"elevation":d,g=p(e,["classes","className","component","square","elevation","variant"]);return l.createElement(i,f({className:m(n.root,r,"outlined"===h?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},g))}),xo=bo(function(e){var t={};return e.shadows.forEach(function(e,n){t["elevation".concat(n)]={boxShadow:e}}),f({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)},{name:"MuiPaper"})(wo);function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}function So(e){return In(e,f({defaultTheme:yo},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function Eo(){return On()||yo}function Co(e){if("string"!=typeof e)throw new Error(x(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Oo=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.value,s=e.valueBuffer,u=e.variant,c=void 0===u?"indeterminate":u,d=p(e,["classes","className","color","value","valueBuffer","variant"]),h=Eo(),g={},v={bar1:{},bar2:{}};if(("determinate"===c||"buffer"===c)&&void 0!==a){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var y=a-100;"rtl"===h.direction&&(y=-y),v.bar1.transform="translateX(".concat(y,"%)")}if("buffer"===c&&void 0!==s){var b=(s||0)-100;"rtl"===h.direction&&(b=-b),v.bar2.transform="translateX(".concat(b,"%)")}return l.createElement("div",f({className:m(n.root,n["color".concat(Co(i))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[c]),role:"progressbar"},g,{ref:t},d),"buffer"===c?l.createElement("div",{className:m(n.dashed,n["dashedColor".concat(Co(i))])}):null,l.createElement("div",{className:m(n.bar,n["barColor".concat(Co(i))],("indeterminate"===c||"query"===c)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[c]),style:v.bar1}),"determinate"===c?null:l.createElement("div",{className:m(n.bar,("indeterminate"===c||"query"===c)&&n.bar2Indeterminate,"buffer"===c?[n["color".concat(Co(i))],n.bar2Buffer]:n["barColor".concat(Co(i))]),style:v.bar2}))}),To=bo(function(e){var t=function(t){return"light"===e.palette.type?br(t,.62):yr(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}},{name:"MuiLinearProgress"})(Oo);const _o=So(e=>({root:{width:"100%","& > * + *":{marginTop:e.spacing(2)}}}));function Ro(e){const t=_o();return u.createElement("div",ko({className:t.root},e),u.createElement(To,null))}const Po=(e,t)=>{const{controls:n,toolbarItems:r,getChartEditor:o}=e;return t&&t.charts&&t.visualization&&t.visualization.ChartWrapper&&t.visualization.Dashboard&&(!n||t.visualization.ChartWrapper)&&(!o||t.visualization.ChartEditor)&&(!r||t.visualization.drawToolbar)};function Ao(e){const{chartVersion:t="current",chartPackages:n=["corechart","controls"],chartLanguage:r="en",mapsApiKey:o}=e,[i,a]=l.useState(null),[s,u]=l.useState(null),[c,d]=l.useState(null),{isLoading:p,error:f,isSuccess:h}=function(e){const[t,n]=l.useState(!0),[r,o]=l.useState(null),[i,a]=l.useState(!1),s=()=>{n(!1),a(!0)};return l.useEffect(()=>{if(!document){const t=new Error(`[ScriptLoadingError] document not defined when attempting to load ${e}`);return void o(t)}const t=document.querySelector(`script[src="${e}"]`);if(t?.dataset.loaded)return void s();const n=t||document.createElement("script");t||(n.src=e),n.addEventListener("load",()=>{n.dataset.loaded="1",s()}),n.addEventListener("error",t=>{console.error("Failed to load script:",e,t);const n=new Error(`[ScriptLoadingError] Failed to load script: ${e}`);o(n)}),t||document.head.append(n)},[]),{isLoading:t,error:r,isSuccess:i}}(e.chartLoaderScriptUrl||"https://www.gstatic.com/charts/loader.js");return l.useEffect(()=>{if(!h)return;const i=window.google;if(!(e=>e&&e.charts)(i)){const e=new Error("[ScriptInitializationError] Script loaded but Google not attached to window.");return void u(e)}Po(e,i)?a(i):(i.charts.load(t,{packages:n,language:r,mapsApiKey:o}),i.charts.setOnLoadCallback(()=>{if(!Po(e,i)){const e=new Error("[GoogleChartsInitializationError] Google Charts not ready after load callback.");return console.error(e),void d(e)}a(i)}))},[h]),{error:f||s||c,isLoading:p,google:i}}const Lo={legend_toggle:!1,options:{},legendToggle:!1,getChartWrapper:()=>{},spreadSheetQueryParameters:{headers:1,gid:1},rootProps:{},chartWrapperParams:{},chartLoaderScriptUrl:"https://www.gstatic.com/charts/loader.js"},No=e=>{const{isReady:t,chartControls:n,filter:r}=e;return t&&n&&n?.length?u.createElement(u.Fragment,null,n.filter(e=>{let{controlProp:t,control:n}=e;return!r||r({control:n,controlProp:t})}).map(e=>{let{control:t}=e;return u.createElement("div",{key:t.getContainerId(),id:t.getContainerId()})})):null};let Mo=0;const Io=()=>(Mo+=1,`reactgooglegraph-${Mo}`);class Fo{static initializeControls=e=>{for(let t=0;t<e.length;t+=1){const{controlType:n,options:r,controlWrapperParams:o}=e[t].controlProp;o&&"state"in o&&e[t].control.setState(o.state),e[t].control.setOptions(r),e[t].control.setControlType(n)}};static listenToControlEvents=(e,t)=>{const{google:n}=t;return e.flatMap(e=>{const{control:r,controlProp:o}=e,{controlEvents:i=[]}=o;return i.map(e=>{const{callback:o,eventName:i}=e;return n.visualization.events.addListener(r,i,function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];o({chartWrapper:null,controlWrapper:r,props:t,google:n,eventArgs:i})})})})};static createControlId=e=>{let t;return t=void 0===e?`googlechart-control-${Io()}`:e,t};static createChartControls=e=>{const{controls:t,google:n}=e;return t?t.map((e,t)=>{const{controlID:r,controlType:o,options:i,controlWrapperParams:a}=e,s=this.createControlId(r);return{controlProp:e,control:new n.visualization.ControlWrapper({containerId:s,controlType:o,options:i,...a})}}):null};static addControls=e=>{const{chartWrapper:t,chartDashboard:n}=e,r=this.createChartControls(e);return r&&n&&t?(n.bind(r.map(e=>{let{control:t}=e;return t}),t),this.initializeControls(r),r):null}}const $o=e=>{const[t,n]=(e=>{const[t,n]=l.useState(null);return[l.useMemo(()=>t&&e?e.map((e,n)=>{const r=t[n];return r?{controlProp:e,control:r}:void 0}).flatMap(e=>e?[e]:[]):null,[t,e]),n]})(e.controls);((e,t)=>{l.useEffect(()=>{const n=Fo.listenToControlEvents(e??[],t);return()=>{n.forEach(e=>{t.google.visualization.events.removeListener(e)})}},[e,t])})(t??[],e);return{addControls:e=>{const t=Fo.addControls(e);n(t?.map(e=>e.control)??null)},renderControl:n=>{const{chartWrapper:r,chartDashboard:o}=e;return l.createElement(No,{...e,isReady:Boolean(r&&o),chartControls:t,filter:n})}}},jo=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"];class zo{static grayOutHiddenColumnsLabel=(e,t)=>{const{googleChartWrapper:n,options:r}=e;if(!n)return void console.error("googleChartWrapper is not defined");const o=n.getDataTable();if(!o)return;const i=o.getNumberOfColumns();if(!1===t.length>0)return;const a=Array.from({length:i-1}).map((e,n)=>{const i=this.getColumnId(o,n+1);return t.includes(i)?"#CCCCCC":r&&r.colors?r.colors[n]:jo[n]});n.setOptions({...r,colors:a}),n.draw()};static listenToLegendToggle=(e,t)=>{const[n,r]=t,{google:o,googleChartWrapper:i}=e;if(i)return o.visualization.events.addListener(i,"select",()=>{const e=i.getChart().getSelection(),t=i.getDataTable();if(0===e.length||null!==e[0].row||!t)return;const o=e[0].column,a=this.getColumnId(t,o);n?.includes(a)?r(e=>[...e.filter(e=>e!==a)]):r(e=>[...e,a])});console.error("googleChartWrapper is not defined")};static draw=async e=>{const{data:t,diffdata:n,rows:r,columns:o,options:i,chartType:a,formatters:s,spreadSheetUrl:l,spreadSheetQueryParameters:u,googleChartDashboard:c,googleChartWrapper:d,google:p,hiddenColumns:f,legendToggle:h,legend_toggle:m}=e;if(!d)return void console.error("draw was called with googleChartWrapper = null");let g,v=null;if(n){const e=p.visualization.arrayToDataTable(n.old),t=p.visualization.arrayToDataTable(n.new);v=p.visualization[a].prototype.computeDiff(e,t)}g=t?t instanceof p.visualization.DataTable?t:Array.isArray(t)?p.visualization.arrayToDataTable(t):new p.visualization.DataTable(t):r&&o?p.visualization.arrayToDataTable([o,...r]):l?await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((r,o)=>{const i=n.headers?`headers=${n.headers}`:"headers=0",a=n.query?`&tq=${encodeURIComponent(n.query)}`:"",s=n.gid?`&gid=${n.gid}`:"",l=n.sheet?`&sheet=${n.sheet}`:"",u=n.access_token?`&access_token=${n.access_token}`:"",c=`${t}/gviz/tq?${i}${s}${l}${a}${u}`;new e.visualization.Query(c).send(e=>{e.isError()?o(`Error in query: ${e.getMessage()} ${e.getDetailedMessage()}`):r(e.getDataTable())})})}(p,l,u):p.visualization.arrayToDataTable([]);const y=g.getNumberOfColumns(),b=Array(y).fill(0).map((e,t)=>{const n=this.getColumnId(g,t);return f.includes(n)?{label:g.getColumnLabel(t),type:g.getColumnType(t),calc:()=>null}:t}),w=d.getChart();"Timeline"===d.getChartType()&&w&&w.clearChart(),d.setChartType(a),d.setOptions(i||{});const x=new p.visualization.DataView(g);x.setColumns(b),d.setDataTable(x),d.draw(),c&&c.draw(g),v&&(d.setDataTable(v),d.draw()),s&&(this.applyFormatters({dataTable:g,formatters:s,google:p}),d.setDataTable(g),d.draw()),!0!==h&&!0!==m||this.grayOutHiddenColumnsLabel(e,f)};static getColumnId=(e,t)=>e.getColumnId(t)||e.getColumnLabel(t);static applyFormatters=e=>{let{dataTable:t,formatters:n,google:r}=e;for(let e of n)switch(e.type){case"ArrowFormat":return void new r.visualization.ArrowFormat(e.options).format(t,e.column);case"BarFormat":return void new r.visualization.BarFormat(e.options).format(t,e.column);case"ColorFormat":{const n=new r.visualization.ColorFormat(e.options),{ranges:o}=e;if(o)for(let e of o)n.addRange(...e);return void n.format(t,e.column)}case"DateFormat":return void new r.visualization.DateFormat(e.options).format(t,e.column);case"NumberFormat":return void new r.visualization.NumberFormat(e.options).format(t,e.column);case"PatternFormat":return void new r.visualization.PatternFormat(e.options).format(t,e.column);default:return void console.warn(`Unknown formatter type: ${e.type}`)}}}const Bo=e=>{l.useEffect(()=>{if(!e.googleChartWrapper)return;const t=(e=>{const{chartEvents:t,google:n,googleChartWrapper:r}=e;if(t){if(r)return t.map(t=>{let{eventName:o,callback:i}=t;return n.visualization.events.addListener(r,o,function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];i({chartWrapper:r,props:e,google:n,eventArgs:o})})});console.warn("listenToEvents was called before chart wrapper ready.")}})(e);return()=>{t?.forEach(t=>{e.google.visualization.events.removeListener(t)})}},[e])},Do=e=>{const[t,n]=l.useState(null),[r,o]=l.useState(null),{addControls:i,renderControl:a}=$o({...e,chartDashboard:r,chartWrapper:t});Bo({...e,googleChartWrapper:t});const{chartId:s}=(e=>{const t=l.useRef(null);return{chartId:(()=>{const{graphID:n,graph_id:r}=e;let o;return o=n||r||t.current||Io(),t.current=o,t.current})()}})(e),u=l.useRef(null),c=l.useRef(null);l.useEffect(()=>{const{options:t,google:r,chartType:a,chartWrapperParams:l,toolbarItems:d,getChartEditor:p,getChartWrapper:f,onLoad:h}=e,m={chartType:a,options:t,containerId:s,...l},g=new r.visualization.ChartWrapper(m);g.setOptions(t||{}),f?.(g,r);const v=new r.visualization.Dashboard(u.current);d&&r.visualization.drawToolbar(c.current,d);let y=null;p&&(y=new r.visualization.ChartEditor,p({chartEditor:y,chartWrapper:g,google:r})),i({...e,chartDashboard:v,chartWrapper:g}),n(g),o(v),h?.(r,{google:r,chartWrapper:g,chartEditor:y,chartDashboard:v})},[]),(e=>{const{google:t,googleChartWrapper:n,googleChartDashboard:r}=e,[o,i]=l.useState([]);l.useEffect(()=>{n&&zo.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t})},[o,e.data,e.rows,e.columns,e.options,e.chartLoaderScriptUrl,e.chartType,e.formatters,e.spreadSheetUrl,e.spreadSheetQueryParameters,e.legendToggle,e.legend_toggle]);const a=()=>{const{googleChartWrapper:t}=e;t&&t.draw()},s=n=>{const s=[],{legendToggle:l,legend_toggle:u}=e;if(zo.draw({...e,hiddenColumns:o,googleChartWrapper:n,googleChartDashboard:r,google:t}),window.addEventListener("resize",a),u||l){const t=zo.listenToLegendToggle(e,[o,i]);t&&s.push(t)}return s},u=(e,n)=>{window.removeEventListener("resize",a),n.forEach(e=>{t.visualization.events.removeListener(e)}),"Timeline"===e.getChartType()&&e.getChart()&&e.getChart().clearChart()};l.useEffect(()=>{if(!n)return;const e=s(n);return()=>{u(n,e)}},[n,s,u])})({...e,googleChartWrapper:t,googleChartDashboard:r});const d=()=>{const{width:t,height:n,options:r,style:o,className:i,rootProps:a,google:u}=e,c={height:n||r&&r.height,width:t||r&&r.width,...o};return l.createElement("div",{id:s,style:c,className:i,...a})},p=()=>e.toolbarItems?l.createElement("div",{ref:c}):null,{width:f,height:h,options:m,style:g}=e,v={height:h||m&&m.height,width:f||m&&m.width,...g};return e.render?l.createElement("div",{ref:u,style:v},l.createElement("div",{ref:c,id:"toolbar"}),e.render({renderChart:d,renderControl:a,renderToolbar:p})):l.createElement("div",{ref:u,style:v},a(e=>{let{controlProp:t}=e;return"bottom"!==t.controlPosition}),d(),a(e=>{let{controlProp:t}=e;return"bottom"===t.controlPosition}),p())},Wo=l.createContext(Lo),Uo=e=>{let{children:t,value:n}=e;return l.createElement(Wo.Provider,{value:n},t)},Vo=e=>{const{google:t,isLoading:n,error:r}=Ao(e);return n?e.loader??null:r?e.errorElement??null:t?u.createElement(Do,{google:t,...e}):null},Ko=e=>{const t={...Lo,...e};return u.createElement(Uo,{value:t},u.createElement(Vo,t))};var Ho;!function(e){e.annotation="annotation",e.annotationText="annotationText",e.certainty="certainty",e.emphasis="emphasis",e.interval="interval",e.scope="scope",e.style="style",e.tooltip="tooltip",e.domain="domain"}(Ho||(Ho={}));var qo,Go={exports:{}};
|
|
9
9
|
/*! @preserve
|
|
10
10
|
* numeral.js
|
|
11
11
|
* version : 2.0.6
|
|
12
12
|
* author : Adam Draper
|
|
13
13
|
* license : MIT
|
|
14
14
|
* http://adamwdraper.github.com/Numeral-js/
|
|
15
|
-
*/var go,vo=(ho||(ho=1,go=mo,function(e,t){go.exports?go.exports=t():e.numeral=t()}(mo.exports,function(){var e,t,n,r,o,i={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((s="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(s)){a=i[o].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new u(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,n,r){var o,i,s,l,u,c,d,p,f=a[e.options.currentLocale],h=!1,m=!1,g="",v=1e12,y=1e9,b=1e6,w="",x=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),s>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):s<v&&s>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):s<y&&s>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(s<b&&s>=1e3&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],u=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),w=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):w=e._.toFixed(t,u.length,r),l=w.split(".")[0],w=e._.includes(w,".")?f.delimiters.decimal+w.split(".")[1]:"",m&&0===Number(w.slice(1))&&(w="")):l=e._.toFixed(t,0,r),g&&!i&&Number(l)>=1e3&&g!==f.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),x=!0),l.length<o)for(var k=o-l.length;k>0;k--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(l=""),p=l+w+(g||""),h?p=(h&&x?"(":"")+p+(h&&x?")":""):c>=0?p=0===c?(x?"-":"+")+p:p+(x?"-":"+"):x&&(p="-"+p),p},stringToNumber:function(e){var t,n,r,o=a[l.currentLocale],i=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),u=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,u),t):u,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=l,e.formats=i,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,u,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(l=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,a,s=this._value,u=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)o=l.zeroFormat;else if(null===s&&null!==l.nullFormat)o=l.nullFormat;else{for(r in i)if(u.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||e._.numberToFormat)(s,u,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,o){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,o){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,s,l,u=e._.includes(o,"ib")?r:n,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(s=Math.pow(u.base,a),l=Math.pow(u.base,a+1),null===t||0===t||t>=s&&t<l){c+=u.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,o,i)+c},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})),mo.exports),yo=t(vo);function bo(e,t,n="array"){const r=e.columns,o=[...t.doc.metrics,...t.doc.dimensions].reduce((e,t)=>(e[t.name]=t,e),{});return e=>{const t="array"===n?[]:{};return r.reduce((t,r)=>{const i=e[r.name],a=o[r.name];let s=i;return s="timestamp"===a.type?new Date(i):a.format?a.format&&a.prefix?{v:+i,f:a.prefix+" "+yo(i).format(a.format)}:a.format?{v:+i,f:yo(i).format(a.format)}:i:i,"array"===n?t.push(s):t[r.name]=s?.f||s,t},t)}}function wo(e,t){return function(){return e.apply(t,arguments)}}const{toString:xo}=Object.prototype,{getPrototypeOf:ko}=Object,{iterator:So,toStringTag:Eo}=Symbol,Co=(e=>t=>{const n=xo.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Oo=e=>(e=e.toLowerCase(),t=>Co(t)===e),_o=e=>t=>typeof t===e,{isArray:To}=Array,Ro=_o("undefined");const Po=Oo("ArrayBuffer");const Ao=_o("string"),Lo=_o("function"),No=_o("number"),Mo=e=>null!==e&&"object"==typeof e,Io=e=>{if("object"!==Co(e))return!1;const t=ko(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Eo in e||So in e)},Fo=Oo("Date"),$o=Oo("File"),jo=Oo("Blob"),zo=Oo("FileList"),Bo=Oo("URLSearchParams"),[Do,Wo,Uo,Vo]=["ReadableStream","Request","Response","Headers"].map(Oo);function Ko(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),To(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ho(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Go=e=>!Ro(e)&&e!==qo;const Yo=(Xo="undefined"!=typeof Uint8Array&&ko(Uint8Array),e=>Xo&&e instanceof Xo);var Xo;const Qo=Oo("HTMLFormElement"),Jo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zo=Oo("RegExp"),ei=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ko(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const ti=Oo("AsyncFunction"),ni=(ri="function"==typeof setImmediate,oi=Lo(qo.postMessage),ri?setImmediate:oi?((e,t)=>(qo.addEventListener("message",({source:n,data:r})=>{n===qo&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),qo.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ri,oi;const ii="undefined"!=typeof queueMicrotask?queueMicrotask.bind(qo):"undefined"!=typeof process&&process.nextTick||ni;var ai={isArray:To,isArrayBuffer:Po,isBuffer:function(e){return null!==e&&!Ro(e)&&null!==e.constructor&&!Ro(e.constructor)&&Lo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Lo(e.append)&&("formdata"===(t=Co(e))||"object"===t&&Lo(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Po(e.buffer),t},isString:Ao,isNumber:No,isBoolean:e=>!0===e||!1===e,isObject:Mo,isPlainObject:Io,isReadableStream:Do,isRequest:Wo,isResponse:Uo,isHeaders:Vo,isUndefined:Ro,isDate:Fo,isFile:$o,isBlob:jo,isRegExp:Zo,isFunction:Lo,isStream:e=>Mo(e)&&Lo(e.pipe),isURLSearchParams:Bo,isTypedArray:Yo,isFileList:zo,forEach:Ko,merge:function e(){const{caseless:t}=Go(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ho(n,o)||o;Io(n[i])&&Io(r)?n[i]=e(n[i],r):Io(r)?n[i]=e({},r):To(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ko(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ko(t,(t,r)=>{n&&Lo(t)?e[r]=wo(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ko(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Co,kindOfTest:Oo,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(To(e))return e;let t=e.length;if(!No(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[So]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Qo,hasOwnProperty:Jo,hasOwnProp:Jo,reduceDescriptors:ei,freezeMethods:e=>{ei(e,(t,n)=>{if(Lo(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Lo(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return To(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ho,global:qo,isContextDefined:Go,isSpecCompliantForm:function(e){return!!(e&&Lo(e.append)&&"FormData"===e[Eo]&&e[So])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Mo(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=To(e)?[]:{};return Ko(e,(e,t)=>{const i=n(e,r+1);!Ro(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ti,isThenable:e=>e&&(Mo(e)||Lo(e))&&Lo(e.then)&&Lo(e.catch),setImmediate:ni,asap:ii,isIterable:e=>null!=e&&Lo(e[So])};function si(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ai.inherits(si,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ai.toJSONObject(this.config),code:this.code,status:this.status}}});const li=si.prototype,ui={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ui[e]={value:e}}),Object.defineProperties(si,ui),Object.defineProperty(li,"isAxiosError",{value:!0}),si.from=(e,t,n,r,o,i)=>{const a=Object.create(li);return ai.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),si.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function ci(e){return ai.isPlainObject(e)||ai.isArray(e)}function di(e){return ai.endsWith(e,"[]")?e.slice(0,-2):e}function pi(e,t,n){return e?e.concat(t).map(function(e,t){return e=di(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const fi=ai.toFlatObject(ai,{},null,function(e){return/^is[A-Z]/.test(e)});function hi(e,t,n){if(!ai.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ai.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ai.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ai.isSpecCompliantForm(t);if(!ai.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ai.isDate(e))return e.toISOString();if(ai.isBoolean(e))return e.toString();if(!s&&ai.isBlob(e))throw new si("Blob is not supported. Use a Buffer instead.");return ai.isArrayBuffer(e)||ai.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(ai.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ai.isArray(e)&&function(e){return ai.isArray(e)&&!e.some(ci)}(e)||(ai.isFileList(e)||ai.endsWith(n,"[]"))&&(s=ai.toArray(e)))return n=di(n),s.forEach(function(e,r){!ai.isUndefined(e)&&null!==e&&t.append(!0===a?pi([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!ci(e)||(t.append(pi(o,n,i),l(e)),!1)}const c=[],d=Object.assign(fi,{defaultVisitor:u,convertValue:l,isVisitable:ci});if(!ai.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ai.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),ai.forEach(n,function(n,i){!0===(!(ai.isUndefined(n)||null===n)&&o.call(t,n,ai.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),c.pop()}}(e),t}function mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function gi(e,t){this._pairs=[],e&&hi(e,this,t)}const vi=gi.prototype;function yi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bi(e,t,n){if(!t)return e;const r=n&&n.encode||yi;ai.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):ai.isURLSearchParams(t)?t.toString():new gi(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}vi.append=function(e,t){this._pairs.push([e,t])},vi.toString=function(e){const t=e?function(t){return e.call(this,t,mi)}:mi;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class wi{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ai.forEach(this.handlers,function(t){null!==t&&e(t)})}}var xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ki={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Si="undefined"!=typeof window&&"undefined"!=typeof document,Ei="object"==typeof navigator&&navigator||void 0,Ci=Si&&(!Ei||["ReactNative","NativeScript","NS"].indexOf(Ei.product)<0),Oi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_i=Si&&window.location.href||"http://localhost";var Ti={...Object.freeze({__proto__:null,hasBrowserEnv:Si,hasStandardBrowserEnv:Ci,hasStandardBrowserWebWorkerEnv:Oi,navigator:Ei,origin:_i}),...ki};function Ri(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ai.isArray(r)?r.length:i,s)return ai.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&ai.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ai.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(ai.isFormData(e)&&ai.isFunction(e.entries)){const n={};return ai.forEachEntry(e,(e,r)=>{t(function(e){return ai.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Pi={transitional:xi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ai.isObject(e);o&&ai.isHTMLForm(e)&&(e=new FormData(e));if(ai.isFormData(e))return r?JSON.stringify(Ri(e)):e;if(ai.isArrayBuffer(e)||ai.isBuffer(e)||ai.isStream(e)||ai.isFile(e)||ai.isBlob(e)||ai.isReadableStream(e))return e;if(ai.isArrayBufferView(e))return e.buffer;if(ai.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return hi(e,new Ti.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ti.isNode&&ai.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ai.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return hi(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ai.isString(e))try{return(t||JSON.parse)(e),ai.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Pi.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ai.isResponse(e)||ai.isReadableStream(e))return e;if(e&&ai.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw si.from(e,si.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ti.classes.FormData,Blob:Ti.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ai.forEach(["delete","get","head","post","put","patch"],e=>{Pi.headers[e]={}});const Ai=ai.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Li=Symbol("internals");function Ni(e){return e&&String(e).trim().toLowerCase()}function Mi(e){return!1===e||null==e?e:ai.isArray(e)?e.map(Mi):String(e)}function Ii(e,t,n,r,o){return ai.isFunction(r)?r.call(this,t,n):(o&&(t=n),ai.isString(t)?ai.isString(r)?-1!==t.indexOf(r):ai.isRegExp(r)?r.test(t):void 0:void 0)}let Fi=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ni(t);if(!o)throw new Error("header name must be a non-empty string");const i=ai.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Mi(e))}const i=(e,t)=>ai.forEach(e,(e,n)=>o(e,n,t));if(ai.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ai.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ai[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ai.isObject(e)&&ai.isIterable(e)){let n,r,o={};for(const t of e){if(!ai.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ai.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ni(e)){const n=ai.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ai.isFunction(t))return t.call(this,e,n);if(ai.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ni(e)){const n=ai.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ii(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ni(e)){const o=ai.findKey(n,e);!o||t&&!Ii(0,n[o],o,t)||(delete n[o],r=!0)}}return ai.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ii(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ai.forEach(this,(r,o)=>{const i=ai.findKey(n,o);if(i)return t[i]=Mi(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Mi(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ai.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ai.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Li]=this[Li]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ni(e);t[r]||(!function(e,t){const n=ai.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ai.isArray(e)?e.forEach(r):r(e),this}};function $i(e,t){const n=this||Pi,r=t||n,o=Fi.from(r.headers);let i=r.data;return ai.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ji(e){return!(!e||!e.__CANCEL__)}function zi(e,t,n){si.call(this,null==e?"canceled":e,si.ERR_CANCELED,t,n),this.name="CanceledError"}function Bi(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new si("Request failed with status code "+n.status,[si.ERR_BAD_REQUEST,si.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ai.reduceDescriptors(Fi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ai.freezeMethods(Fi),ai.inherits(zi,si,{__CANCEL__:!0});const Di=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Wi=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ui=e=>(...t)=>ai.asap(()=>e(...t));var Vi=Ti.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ti.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ti.origin),Ti.navigator&&/(msie|trident)/i.test(Ti.navigator.userAgent)):()=>!0,Ki=Ti.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];ai.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ai.isString(r)&&a.push("path="+r),ai.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Hi(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qi=e=>e instanceof Fi?{...e}:e;function Gi(e,t){t=t||{};const n={};function r(e,t,n,r){return ai.isPlainObject(e)&&ai.isPlainObject(t)?ai.merge.call({caseless:r},e,t):ai.isPlainObject(t)?ai.merge({},t):ai.isArray(t)?t.slice():t}function o(e,t,n,o){return ai.isUndefined(t)?ai.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!ai.isUndefined(t))return r(void 0,t)}function a(e,t){return ai.isUndefined(t)?ai.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(qi(e),qi(t),0,!0)};return ai.forEach(Object.keys(Object.assign({},e,t)),function(r){const i=l[r]||o,a=i(e[r],t[r],r);ai.isUndefined(a)&&i!==s||(n[r]=a)}),n}var Yi=e=>{const t=Gi({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Fi.from(s),t.url=bi(Hi(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ai.isFormData(r))if(Ti.hasStandardBrowserEnv||Ti.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ti.hasStandardBrowserEnv&&(o&&ai.isFunction(o)&&(o=o(t)),o||!1!==o&&Vi(t.url))){const e=i&&a&&Ki.read(a);e&&s.set(i,e)}return t};var Xi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Yi(e);let o=r.data;const i=Fi.from(r.headers).normalize();let a,s,l,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Fi.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Bi(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new si("Request aborted",si.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new si("Network Error",si.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||xi;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new si(t,o.clarifyTimeoutError?si.ETIMEDOUT:si.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ai.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ai.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,c]=Di(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,u]=Di(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new zi(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Ti.protocols.indexOf(v)?n(new si("Unsupported protocol "+v+":",si.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Qi=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof si?t:new zi(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new si(`timeout ${t} of ms exceeded`,si.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ai.asap(a),s}},Ji=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Zi=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ea=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Zi(e))yield*Ji(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},ta="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,na=ta&&"function"==typeof ReadableStream,ra=ta&&("function"==typeof TextEncoder?(oa=new TextEncoder,e=>oa.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var oa;const ia=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},aa=na&&ia(()=>{let e=!1;const t=new Request(Ti.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sa=na&&ia(()=>ai.isReadableStream(new Response("").body)),la={stream:sa&&(e=>e.body)};var ua;ta&&(ua=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!la[e]&&(la[e]=ai.isFunction(ua[e])?t=>t[e]():(t,n)=>{throw new si(`Response type '${e}' is not supported`,si.ERR_NOT_SUPPORT,n)})}));const ca=async(e,t)=>{const n=ai.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ai.isBlob(e))return e.size;if(ai.isSpecCompliantForm(e)){const t=new Request(Ti.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ai.isArrayBufferView(e)||ai.isArrayBuffer(e)?e.byteLength:(ai.isURLSearchParams(e)&&(e+=""),ai.isString(e)?(await ra(e)).byteLength:void 0)})(t):n};var da=ta&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=Yi(e);u=u?(u+"").toLowerCase():"text";let f,h=Qi([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&aa&&"get"!==n&&"head"!==n&&0!==(g=await ca(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(ai.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Wi(g,Di(Ui(l)));r=ea(n.body,65536,e,t)}}ai.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f,p);const a=sa&&("stream"===u||"response"===u);if(sa&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=ai.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Wi(t,Di(Ui(s),!0))||[];i=new Response(ea(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let v=await la[ai.findKey(la,u)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{Bi(t,n,{data:v,headers:Fi.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new si("Network Error",si.ERR_NETWORK,e,f),{cause:t.cause||t});throw si.from(t,t&&t.code,e,f)}});const pa={http:null,xhr:Xi,fetch:da};ai.forEach(pa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const fa=e=>`- ${e}`,ha=e=>ai.isFunction(e)||null===e||!1===e;var ma=e=>{e=ai.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!ha(n)&&(r=pa[(t=String(n)).toLowerCase()],void 0===r))throw new si(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new si("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(fa).join("\n"):" "+fa(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function ga(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zi(null,e)}function va(e){ga(e),e.headers=Fi.from(e.headers),e.data=$i.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ma(e.adapter||Pi.adapter)(e).then(function(t){return ga(e),t.data=$i.call(e,e.transformResponse,t),t.headers=Fi.from(t.headers),t},function(t){return ji(t)||(ga(e),t&&t.response&&(t.response.data=$i.call(e,e.transformResponse,t.response),t.response.headers=Fi.from(t.response.headers))),Promise.reject(t)})}const ya="1.10.0",ba={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ba[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const wa={};ba.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ya+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new si(r(o," has been removed"+(t?" in "+t:"")),si.ERR_DEPRECATED);return t&&!wa[o]&&(wa[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ba.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var xa={assertOptions:function(e,t,n){if("object"!=typeof e)throw new si("options must be an object",si.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new si("option "+i+" must be "+n,si.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new si("Unknown option "+i,si.ERR_BAD_OPTION)}},validators:ba};const ka=xa.validators;let Sa=class{constructor(e){this.defaults=e||{},this.interceptors={request:new wi,response:new wi}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Gi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&xa.assertOptions(n,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),null!=r&&(ai.isFunction(r)?t.paramsSerializer={serialize:r}:xa.assertOptions(r,{encode:ka.function,serialize:ka.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xa.assertOptions(t,{baseUrl:ka.spelling("baseURL"),withXsrfToken:ka.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ai.merge(o.common,o[t.method]);o&&ai.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Fi.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[va.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let p=t;for(d=0;d<c;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=va.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return bi(Hi((e=Gi(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ai.forEach(["delete","get","head","options"],function(e){Sa.prototype[e]=function(t,n){return this.request(Gi(n||{},{method:e,url:t,data:(n||{}).data}))}}),ai.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Gi(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Sa.prototype[e]=t(),Sa.prototype[e+"Form"]=t(!0)});const Ea={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ea).forEach(([e,t])=>{Ea[t]=e});const Ca=function e(t){const n=new Sa(t),r=wo(Sa.prototype.request,n);return ai.extend(r,Sa.prototype,n,{allOwnKeys:!0}),ai.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gi(t,n))},r}(Pi);Ca.Axios=Sa,Ca.CanceledError=zi,Ca.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new zi(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Ca.isCancel=ji,Ca.VERSION=ya,Ca.toFormData=hi,Ca.AxiosError=si,Ca.Cancel=Ca.CanceledError,Ca.all=function(e){return Promise.all(e)},Ca.spread=function(e){return function(t){return e.apply(null,t)}},Ca.isAxiosError=function(e){return ai.isObject(e)&&!0===e.isAxiosError},Ca.mergeConfig=Gi,Ca.AxiosHeaders=Fi,Ca.formToJSON=e=>Ri(ai.isHTMLForm(e)?new FormData(e):e),Ca.getAdapter=ma,Ca.HttpStatusCode=Ea,Ca.default=Ca;const{Axios:Oa,AxiosError:_a,CanceledError:Ta,isCancel:Ra,CancelToken:Pa,VERSION:Aa,all:La,Cancel:Na,isAxiosError:Ma,spread:Ia,toFormData:Fa,AxiosHeaders:$a,HttpStatusCode:ja,formToJSON:za,getAdapter:Ba,mergeConfig:Da}=Ca,Wa="https://report-api.netcapital.pro",Ua=Ca.create({baseURL:Wa,headers:{"Content-Type":"application/json"}}),Va={},Ka=()=>{const e=Object.keys(Va);return e.length>0?e[0]:null},Ha={setBaseUrl(e){Ua.defaults.baseURL=e||Wa},setToken(e){e&&(Ua.defaults.headers.common.Authorization=`Bearer ${e}`)},loadDashboardMeta:async({dashboardId:e})=>{const{data:t}=await Ua.get(`/dashboard-meta/${e}`);return Va[e]={dashboards:t.dashboards||{},charts:t.charts||{},reports:t.reports||{},reportMetadata:t.reportMetadata||{},dateRanges:t.dateRanges||[]},Va[e]},getDashboard:async({id:e,dashboardId:t})=>{const n=t||Ka();if(n&&Va[n]?.dashboards?.[e])return Va[n].dashboards[e];const{data:r}=await Ua.get(`/entity/dashboards/${e}`);return r},getChart:async({id:e,dashboardId:t})=>{const n=t||Ka();if(n&&Va[n]?.charts?.[e])return Va[n].charts[e];const{data:r}=await Ua.get(`/entity/charts/${e}`);return r},getReport:async({id:e,dashboardId:t})=>{const n=t||Ka();if(n&&Va[n]?.reports?.[e])return Va[n].reports[e];const{data:r}=await Ua.get(`/entity/reports/${e}`);return r},getReportSchema:async({id:e,dashboardId:t,query:n={}})=>{const r=t||Ka();if(r&&Va[r]?.reportMetadata?.[e])return Va[r].reportMetadata[e];const{data:o}=await Ua.post(`/reports/${e}/metadata`,n);return o},runReport:async({id:e,query:t={}})=>{const{data:n}=await Ua.post(`/reports/${e}/run`,t);return n},getDateRanges:async({dashboardId:e}={})=>{const t=e||Ka();if(t&&Va[t]?.dateRanges)return Va[t].dateRanges;const{data:n}=await Ua.get("/globals/date-ranges");return n}},qa=Ur(e=>({headerRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},tableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},oddTableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},headerCell:{backgroundColor:"white",padding:"4px !important"}})),Ga={none:"YYYY-MM-dd",day:"MMM dd",week:"MMM dd",month:"YYYY MMM",year:"YYYY"};var Ya={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Xa=l.forwardRef(function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,u=e.component,c=e.display,d=void 0===c?"initial":c,h=e.gutterBottom,g=void 0!==h&&h,v=e.noWrap,y=void 0!==v&&v,b=e.paragraph,w=void 0!==b&&b,x=e.variant,k=void 0===x?"body1":x,S=e.variantMapping,E=void 0===S?Ya:S,C=p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),O=u||(w?"p":E[k]||Ya[k])||"span";return l.createElement(O,f({className:m(o.root,i,"inherit"!==k&&o[k],"initial"!==s&&o["color".concat(Kr(s))],y&&o.noWrap,g&&o.gutterBottom,w&&o.paragraph,"inherit"!==r&&o["align".concat(Kr(r))],"initial"!==d&&o["display".concat(Kr(d))]),ref:t},C))}),Qa=zr(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(Xa),Ja="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Za(){throw new Error("setTimeout has not been defined")}function es(){throw new Error("clearTimeout has not been defined")}var ts=Za,ns=es;function rs(e){if(ts===setTimeout)return setTimeout(e,0);if((ts===Za||!ts)&&setTimeout)return ts=setTimeout,setTimeout(e,0);try{return ts(e,0)}catch(t){try{return ts.call(null,e,0)}catch(t){return ts.call(this,e,0)}}}"function"==typeof Ja.setTimeout&&(ts=setTimeout),"function"==typeof Ja.clearTimeout&&(ns=clearTimeout);var os,is=[],as=!1,ss=-1;function ls(){as&&os&&(as=!1,os.length?is=os.concat(is):ss=-1,is.length&&us())}function us(){if(!as){var e=rs(ls);as=!0;for(var t=is.length;t;){for(os=is,is=[];++ss<t;)os&&os[ss].run();ss=-1,t=is.length}os=null,as=!1,function(e){if(ns===clearTimeout)return clearTimeout(e);if((ns===es||!ns)&&clearTimeout)return ns=clearTimeout,clearTimeout(e);try{return ns(e)}catch(t){try{return ns.call(null,e)}catch(t){return ns.call(this,e)}}}(e)}}function cs(e,t){this.fun=e,this.array=t}cs.prototype.run=function(){this.fun.apply(null,this.array)};function ds(){}var ps=ds,fs=ds,hs=ds,ms=ds,gs=ds,vs=ds,ys=ds;var bs=Ja.performance||{},ws=bs.now||bs.mozNow||bs.msNow||bs.oNow||bs.webkitNow||function(){return(new Date).getTime()};var xs=new Date;var ks,Ss={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];is.push(new cs(e,t)),1!==is.length||as||rs(us)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:ps,addListener:fs,once:hs,off:ms,removeListener:gs,removeAllListeners:vs,emit:ys,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*ws.call(bs),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-xs)/1e3}},Es={exports:{}};var Cs=(ks||(ks=1,function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){var r=Array.prototype,o=Object.prototype,i={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},a=/[&"'<>\\]/g;function s(e,t){return o.hasOwnProperty.call(e,t)}function l(e){return i[e]}function u(e,t,n){var r,o,i;if(e instanceof Error&&(e=(o=e).name+": "+o.message),Object.setPrototypeOf?(r=new Error(e),Object.setPrototypeOf(r,u.prototype)):(r=this,Object.defineProperty(r,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(r,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(r,this.constructor),o){var a=Object.getOwnPropertyDescriptor(o,"stack");(i=a&&(a.get||function(){return a.value}))||(i=function(){return o.stack})}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(r,"stack",{get:function(){return i.call(r)}}),Object.defineProperty(r,"cause",{value:o}),r.lineno=t,r.colno=n,r.firstUpdate=!0,r.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},r}function c(e){return"[object Function]"===o.toString.call(e)}function d(e){return"[object Array]"===o.toString.call(e)}function p(e){return"[object String]"===o.toString.call(e)}function f(e){return"[object Object]"===o.toString.call(e)}function h(e){var t,n=(t=e)?"string"==typeof t?t.split("."):[t]:[];return function(e){for(var t=e,r=0;r<n.length;r++){var o=n[r];if(!s(t,o))return;t=t[o]}return t}}function m(e){return Array.prototype.slice.call(e)}function g(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function v(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(t=e.exports={}).hasOwnProp=s,t._prettifyError=function(e,n,r){if(r.Update||(r=new t.TemplateError(r)),r.Update(e),!n){var o=r;(r=new Error(o.message)).name=o.name}return r},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),t.TemplateError=u,t.escape=function(e){return e.replace(a,l)},t.isFunction=c,t.isArray=d,t.isString=p,t.isObject=f,t.getAttrGetter=h,t.groupBy=function(e,t,n){for(var r={},o=c(t)?t:h(t),i=0;i<e.length;i++){var a=e[i],s=o(a,i);if(void 0===s&&!0===n)throw new TypeError('groupby: attribute "'+t+'" resolved to undefined');(r[s]||(r[s]=[])).push(a)}return r},t.toArray=m,t.without=function(e){var t=[];if(!e)return t;for(var n=e.length,r=m(arguments).slice(1),o=-1;++o<n;)-1===g(r,e[o])&&t.push(e[o]);return t},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},t.each=function(e,t,n){if(null!=e)if(r.forEach&&e.forEach===r.forEach)e.forEach(t,n);else if(e.length===+e.length)for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},t.map=function(e,t){var n=[];if(null==e)return n;if(r.map&&e.map===r.map)return e.map(t);for(var o=0;o<e.length;o++)n[n.length]=t(e[o],o);return e.length===+e.length&&(n.length=e.length),n},t.asyncIter=function(e,t,n){var r=-1;!function o(){++r<e.length?t(e[r],r,o,n):n()}()},t.asyncFor=function(e,t,n){var r=v(e||{}),o=r.length,i=-1;!function a(){i++;var s=r[i];i<o?t(s,e[s],i,o,a):n()}()},t.indexOf=g,t.keys=v,t._entries=function(e){return v(e).map(function(t){return[t,e[t]]})},t._values=function(e){return v(e).map(function(t){return e[t]})},t._assign=t.extend=function(e,t){return e=e||{},v(t).forEach(function(n){e[n]=t[n]}),e},t.inOperator=function(e,t){if(d(t)||p(t))return-1!==t.indexOf(e);if(f(t))return e in t;throw new Error('Cannot use "in" operator to search for "'+e+'" in unexpected types.')}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var s=n(16),l=n(0);function u(e,t,n){n=n||{},l.keys(n).forEach(function(t){var r,o;n[t]=(r=e.prototype[t],o=n[t],"function"!=typeof r||"function"!=typeof o?o:function(){var e=this.parent;this.parent=r;var t=o.apply(this,arguments);return this.parent=e,t})});var o=function(e){function n(){return e.apply(this,arguments)||this}return i(n,e),r(n,[{key:"typename",get:function(){return t}}]),n}(e);return l._assign(o.prototype,n),o}var c=function(){function e(){this.init.apply(this,arguments)}return e.prototype.init=function(){},e.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),u(this,e,t)},r(e,[{key:"typename",get:function(){return this.constructor.name}}]),e}(),d=function(e){function t(){var t,n;return(t=n=e.call(this)||this).init.apply(t,arguments),n}return i(t,e),t.prototype.init=function(){},t.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),u(this,e,t)},r(t,[{key:"typename",get:function(){return this.constructor.name}}]),t}(s);e.exports={Obj:c,EmitterObj:d}},function(e,t,n){var r=n(0),o=Array.from,i="function"==typeof Symbol&&Symbol.iterator&&"function"==typeof o,a=function(){function e(e,t){this.variables=Object.create(null),this.parent=e,this.topLevel=!1,this.isolateWrites=t}var t=e.prototype;return t.set=function(e,t,n){var r=e.split("."),o=this.variables,i=this;if(n&&(i=this.resolve(r[0],!0)))i.set(e,t);else{for(var a=0;a<r.length-1;a++){var s=r[a];o[s]||(o[s]={}),o=o[s]}o[r[r.length-1]]=t}},t.get=function(e){var t=this.variables[e];return void 0!==t?t:null},t.lookup=function(e){var t=this.parent,n=this.variables[e];return void 0!==n?n:t&&t.lookup(e)},t.resolve=function(e,t){var n=t&&this.isolateWrites?void 0:this.parent;return void 0!==this.variables[e]?this:n&&n.resolve(e)},t.push=function(t){return new e(this,t)},t.pop=function(){return this.parent},e}();function s(e){return e&&Object.prototype.hasOwnProperty.call(e,"__keywords")}function l(e){var t=e.length;return 0===t?0:s(e[t-1])?t-1:t}function u(e){if("string"!=typeof e)return e;this.val=e,this.length=e.length}u.prototype=Object.create(String.prototype,{length:{writable:!0,configurable:!0,value:0}}),u.prototype.valueOf=function(){return this.val},u.prototype.toString=function(){return this.val},e.exports={Frame:a,makeMacro:function(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a,u=l(o),c=function(e){var t=e.length;if(t){var n=e[t-1];if(s(n))return n}return{}}(o);if(u>e.length)a=o.slice(0,e.length),o.slice(a.length,u).forEach(function(e,n){n<t.length&&(c[t[n]]=e)}),a.push(c);else if(u<e.length){a=o.slice(0,u);for(var d=u;d<e.length;d++){var p=e[d];a.push(c[p]),delete c[p]}a.push(c)}else a=o;return n.apply(this,a)}},makeKeywordArgs:function(e){return e.__keywords=!0,e},numArgs:l,suppressValue:function(e,t){return e=null!=e?e:"",!t||e instanceof u||(e=r.escape(e.toString())),e},ensureDefined:function(e,t,n){if(null==e)throw new r.TemplateError("attempted to output null or undefined value",t+1,n+1);return e},memberLookup:function(e,t){if(null!=e)return"function"==typeof e[t]?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e[t].apply(e,r)}:e[t]},contextOrFrameLookup:function(e,t,n){var r=t.lookup(n);return void 0!==r?r:e.lookup(n)},callWrap:function(e,t,n,r){if(!e)throw new Error("Unable to call `"+t+"`, which is undefined or falsey");if("function"!=typeof e)throw new Error("Unable to call `"+t+"`, which is not a function");return e.apply(n,r)},handleError:function(e,t,n){return e.lineno?e:new r.TemplateError(e,t,n)},isArray:r.isArray,keys:r.keys,SafeString:u,copySafeness:function(e,t){return e instanceof u?new u(t):t.toString()},markSafe:function(e){var t=typeof e;return"string"===t?new u(e):"function"!==t?e:function(t){var n=e.apply(this,arguments);return"string"==typeof n?new u(n):n}},asyncEach:function(e,t,n,o){if(r.isArray(e)){var i=e.length;r.asyncIter(e,function(e,r,o){switch(t){case 1:n(e,r,i,o);break;case 2:n(e[0],e[1],r,i,o);break;case 3:n(e[0],e[1],e[2],r,i,o);break;default:e.push(r,i,o),n.apply(this,e)}},o)}else r.asyncFor(e,function(e,t,r,o,i){n(e,t,r,o,i)},o)},asyncAll:function(e,t,n,o){var i,a,s=0;function l(e,t){s++,a[e]=t,s===i&&o(null,a.join(""))}if(r.isArray(e))if(i=e.length,a=new Array(i),0===i)o(null,"");else for(var u=0;u<e.length;u++){var c=e[u];switch(t){case 1:n(c,u,i,l);break;case 2:n(c[0],c[1],u,i,l);break;case 3:n(c[0],c[1],c[2],u,i,l);break;default:c.push(u,i,l),n.apply(this,c)}}else{var d=r.keys(e||{});if(i=d.length,a=new Array(i),0===i)o(null,"");else for(var p=0;p<d.length;p++){var f=d[p];n(f,e[f],p,i,l)}}},inOperator:r.inOperator,fromIterator:function(e){return"object"!=typeof e||null===e||r.isArray(e)?e:i&&Symbol.iterator in e?o(e):e}}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t,n){e instanceof t&&n.push(e),e instanceof l&&e.findAll(t,n)}var l=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(e,t){for(var n=arguments,r=this,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];this.lineno=e,this.colno=t,this.fields.forEach(function(e,t){var o=n[t+2];void 0===o&&(o=null),r[e]=o})},n.findAll=function(e,t){var n=this;return t=t||[],this instanceof c?this.children.forEach(function(n){return s(n,e,t)}):this.fields.forEach(function(r){return s(n[r],e,t)}),t},n.iterFields=function(e){var t=this;this.fields.forEach(function(n){e(t[n],n)})},t}(n(1).Obj),u=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),r(t,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),t}(l),c=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(t,n,r){e.prototype.init.call(this,t,n,r||[])},n.addChild=function(e){this.children.push(e)},r(t,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),t}(l),d=c.extend("Root"),p=u.extend("Literal"),f=u.extend("Symbol"),h=c.extend("Group"),m=c.extend("Array"),g=l.extend("Pair",{fields:["key","value"]}),v=c.extend("Dict"),y=l.extend("LookupVal",{fields:["target","val"]}),b=l.extend("If",{fields:["cond","body","else_"]}),w=b.extend("IfAsync"),x=l.extend("InlineIf",{fields:["cond","body","else_"]}),k=l.extend("For",{fields:["arr","name","body","else_"]}),S=k.extend("AsyncEach"),E=k.extend("AsyncAll"),C=l.extend("Macro",{fields:["name","args","body"]}),O=C.extend("Caller"),_=l.extend("Import",{fields:["template","target","withContext"]}),T=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t,n,r,o,i){e.prototype.init.call(this,t,n,r,o||new c,i)},r(t,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),t}(l),R=l.extend("FunCall",{fields:["name","args"]}),P=R.extend("Filter"),A=P.extend("FilterAsync",{fields:["name","args","symbol"]}),L=v.extend("KeywordArgs"),N=l.extend("Block",{fields:["name","body"]}),M=l.extend("Super",{fields:["blockName","symbol"]}),I=l.extend("TemplateRef",{fields:["template"]}).extend("Extends"),F=l.extend("Include",{fields:["template","ignoreMissing"]}),$=l.extend("Set",{fields:["targets","value"]}),j=l.extend("Switch",{fields:["expr","cases","default"]}),z=l.extend("Case",{fields:["cond","body"]}),B=c.extend("Output"),D=l.extend("Capture",{fields:["body"]}),W=p.extend("TemplateData"),U=l.extend("UnaryOp",{fields:["target"]}),V=l.extend("BinOp",{fields:["left","right"]}),K=V.extend("In"),H=V.extend("Is"),q=V.extend("Or"),G=V.extend("And"),Y=U.extend("Not"),X=V.extend("Add"),Q=V.extend("Concat"),J=V.extend("Sub"),Z=V.extend("Mul"),ee=V.extend("Div"),te=V.extend("FloorDiv"),ne=V.extend("Mod"),re=V.extend("Pow"),oe=U.extend("Neg"),ie=U.extend("Pos"),ae=l.extend("Compare",{fields:["expr","ops"]}),se=l.extend("CompareOperand",{fields:["expr","type"]}),le=l.extend("CallExtension",{init:function(e,t,n,r){this.parent(),this.extName=e.__name||e,this.prop=t,this.args=n||new c,this.contentArgs=r||[],this.autoescape=e.autoescape},fields:["extName","prop","args","contentArgs"]}),ue=le.extend("CallExtensionAsync");function ce(e,t,n){var r=e.split("\n");r.forEach(function(e,o){e&&(n&&o>0||!n)&&Ss.stdout.write(" ".repeat(t));var i=o===r.length-1?"":"\n";Ss.stdout.write(""+e+i)})}e.exports={Node:l,Root:d,NodeList:c,Value:u,Literal:p,Symbol:f,Group:h,Array:m,Pair:g,Dict:v,Output:B,Capture:D,TemplateData:W,If:b,IfAsync:w,InlineIf:x,For:k,AsyncEach:S,AsyncAll:E,Macro:C,Caller:O,Import:_,FromImport:T,FunCall:R,Filter:P,FilterAsync:A,KeywordArgs:L,Block:N,Super:M,Extends:I,Include:F,Set:$,Switch:j,Case:z,LookupVal:y,BinOp:V,In:K,Is:H,Or:q,And:G,Not:Y,Add:X,Concat:Q,Sub:J,Mul:Z,Div:ee,FloorDiv:te,Mod:ne,Pow:re,Neg:oe,Pos:ie,Compare:ae,CompareOperand:se,CallExtension:le,CallExtensionAsync:ue,printNodes:function e(t,n){if(n=n||0,ce(t.typename+": ",n),t instanceof c)ce("\n"),t.children.forEach(function(t){e(t,n+2)});else if(t instanceof le)ce(t.extName+"."+t.prop+"\n"),t.args&&e(t.args,n+2),t.contentArgs&&t.contentArgs.forEach(function(t){e(t,n+2)});else{var r=[],o=null;t.iterFields(function(e,t){e instanceof l?r.push([t,e]):(o=o||{})[t]=e}),o?ce(JSON.stringify(o,null,2)+"\n",null,!0):ce("\n"),r.forEach(function(t){var r=t[0],o=t[1];ce("["+r+"] =>",n+2),e(o,n+4)})}}}},function(e,t){},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(8),i=n(17),a=n(3),s=n(0).TemplateError,l=n(2).Frame,u=n(1).Obj,c={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},i.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new s(e,t,n)},i._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},i._popBuffer=function(){this.buffer=this.bufferStack.pop()},i._emit=function(e){this.codebuf.push(e)},i._emitLine=function(e){this._emit(e+"\n")},i._emitLines=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e._emitLine(t)})},i._emitFuncBegin=function(e,t){this.buffer="output",this._scopeClosers="",this._emitLine("function "+t+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+e.lineno+";"),this._emitLine("var colno = "+e.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},i._emitFuncEnd=function(e){e||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},i._addScopeLevel=function(){this._scopeClosers+="})"},i._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},i._withScopedSyntax=function(e){var t=this._scopeClosers;this._scopeClosers="",e.call(this),this._closeScopeLevels(),this._scopeClosers=t},i._makeCallback=function(e){var t=this._tmpid();return"function("+t+(e?","+e:"")+") {\nif("+t+") { cb("+t+"); return; }"},i._tmpid=function(){return this.lastId++,"t_"+this.lastId},i._templateName=function(){return null==this.templateName?"undefined":JSON.stringify(this.templateName)},i._compileChildren=function(e,t){var n=this;e.children.forEach(function(e){n.compile(e,t)})},i._compileAggregate=function(e,t,n,r){var o=this;n&&this._emit(n),e.children.forEach(function(e,n){n>0&&o._emit(","),o.compile(e,t)}),r&&this._emit(r)},i._compileExpression=function(e,t){this.assertType(e,a.Literal,a.Symbol,a.Group,a.Array,a.Dict,a.FunCall,a.Caller,a.Filter,a.LookupVal,a.Compare,a.InlineIf,a.In,a.Is,a.And,a.Or,a.Not,a.Add,a.Concat,a.Sub,a.Mul,a.Div,a.FloorDiv,a.Mod,a.Pow,a.Neg,a.Pos,a.Compare,a.NodeList),this.compile(e,t)},i.assertType=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.some(function(t){return e instanceof t})||this.fail("assertType: invalid type: "+e.typename,e.lineno,e.colno)},i.compileCallExtension=function(e,t,n){var r=this,o=e.args,i=e.contentArgs,s="boolean"!=typeof e.autoescape||e.autoescape;if(n||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+e.extName+'")["'+e.prop+'"]('),this._emit("context"),(o||i)&&this._emit(","),o&&(o instanceof a.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),o.children.forEach(function(e,n){r._compileExpression(e,t),(n!==o.children.length-1||i.length)&&r._emit(",")})),i.length&&i.forEach(function(e,n){if(n>0&&r._emit(","),e){r._emitLine("function(cb) {"),r._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var o=r._pushBuffer();r._withScopedSyntax(function(){r.compile(e,t),r._emitLine("cb(null, "+o+");")}),r._popBuffer(),r._emitLine("return "+o+";"),r._emitLine("}")}else r._emit("null")}),n){var l=this._tmpid();this._emitLine(", "+this._makeCallback(l)),this._emitLine(this.buffer+" += runtime.suppressValue("+l+", "+s+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+s+" && env.opts.autoescape);\n")},i.compileCallExtensionAsync=function(e,t){this.compileCallExtension(e,t,!0)},i.compileNodeList=function(e,t){this._compileChildren(e,t)},i.compileLiteral=function(e){if("string"==typeof e.value){var t=e.value.replace(/\\/g,"\\\\");t=(t=(t=(t=(t=t.replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+t+'"')}else null===e.value?this._emit("null"):this._emit(e.value.toString())},i.compileSymbol=function(e,t){var n=e.value,r=t.lookup(n);r?this._emit(r):this._emit('runtime.contextOrFrameLookup(context, frame, "'+n+'")')},i.compileGroup=function(e,t){this._compileAggregate(e,t,"(",")")},i.compileArray=function(e,t){this._compileAggregate(e,t,"[","]")},i.compileDict=function(e,t){this._compileAggregate(e,t,"{","}")},i.compilePair=function(e,t){var n=e.key,r=e.value;n instanceof a.Symbol?n=new a.Literal(n.lineno,n.colno,n.value):n instanceof a.Literal&&"string"==typeof n.value||this.fail("compilePair: Dict keys must be strings or names",n.lineno,n.colno),this.compile(n,t),this._emit(": "),this._compileExpression(r,t)},i.compileInlineIf=function(e,t){this._emit("("),this.compile(e.cond,t),this._emit("?"),this.compile(e.body,t),this._emit(":"),null!==e.else_?this.compile(e.else_,t):this._emit('""'),this._emit(")")},i.compileIn=function(e,t){this._emit("runtime.inOperator("),this.compile(e.left,t),this._emit(","),this.compile(e.right,t),this._emit(")")},i.compileIs=function(e,t){var n=e.right.name?e.right.name.value:e.right.value;this._emit('env.getTest("'+n+'").call(context, '),this.compile(e.left,t),e.right.args&&(this._emit(","),this.compile(e.right.args,t)),this._emit(") === true")},i._binOpEmitter=function(e,t,n){this.compile(e.left,t),this._emit(n),this.compile(e.right,t)},i.compileOr=function(e,t){return this._binOpEmitter(e,t," || ")},i.compileAnd=function(e,t){return this._binOpEmitter(e,t," && ")},i.compileAdd=function(e,t){return this._binOpEmitter(e,t," + ")},i.compileConcat=function(e,t){return this._binOpEmitter(e,t,' + "" + ')},i.compileSub=function(e,t){return this._binOpEmitter(e,t," - ")},i.compileMul=function(e,t){return this._binOpEmitter(e,t," * ")},i.compileDiv=function(e,t){return this._binOpEmitter(e,t," / ")},i.compileMod=function(e,t){return this._binOpEmitter(e,t," % ")},i.compileNot=function(e,t){this._emit("!"),this.compile(e.target,t)},i.compileFloorDiv=function(e,t){this._emit("Math.floor("),this.compile(e.left,t),this._emit(" / "),this.compile(e.right,t),this._emit(")")},i.compilePow=function(e,t){this._emit("Math.pow("),this.compile(e.left,t),this._emit(", "),this.compile(e.right,t),this._emit(")")},i.compileNeg=function(e,t){this._emit("-"),this.compile(e.target,t)},i.compilePos=function(e,t){this._emit("+"),this.compile(e.target,t)},i.compileCompare=function(e,t){var n=this;this.compile(e.expr,t),e.ops.forEach(function(e){n._emit(" "+c[e.type]+" "),n.compile(e.expr,t)})},i.compileLookupVal=function(e,t){this._emit("runtime.memberLookup(("),this._compileExpression(e.target,t),this._emit("),"),this._compileExpression(e.val,t),this._emit(")")},i._getNodeName=function(e){switch(e.typename){case"Symbol":return e.value;case"FunCall":return"the return value of ("+this._getNodeName(e.name)+")";case"LookupVal":return this._getNodeName(e.target)+'["'+this._getNodeName(e.val)+'"]';case"Literal":return e.value.toString();default:return"--expression--"}},i.compileFunCall=function(e,t){this._emit("(lineno = "+e.lineno+", colno = "+e.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(e.name,t),this._emit(', "'+this._getNodeName(e.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(e.args,t,"[","])"),this._emit(")")},i.compileFilter=function(e,t){var n=e.name;this.assertType(n,a.Symbol),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emit(")")},i.compileFilterAsync=function(e,t){var n=e.name,r=e.symbol.value;this.assertType(n,a.Symbol),t.set(r,r),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emitLine(", "+this._makeCallback(r)),this._addScopeLevel()},i.compileKeywordArgs=function(e,t){this._emit("runtime.makeKeywordArgs("),this.compileDict(e,t),this._emit(")")},i.compileSet=function(e,t){var n=this,r=[];e.targets.forEach(function(e){var o=e.value,i=t.lookup(o);null==i&&(i=n._tmpid(),n._emitLine("var "+i+";")),r.push(i)}),e.value?(this._emit(r.join(" = ")+" = "),this._compileExpression(e.value,t),this._emitLine(";")):(this._emit(r.join(" = ")+" = "),this.compile(e.body,t),this._emitLine(";")),e.targets.forEach(function(e,t){var o=r[t],i=e.value;n._emitLine('frame.set("'+i+'", '+o+", true);"),n._emitLine("if(frame.topLevel) {"),n._emitLine('context.setVariable("'+i+'", '+o+");"),n._emitLine("}"),"_"!==i.charAt(0)&&(n._emitLine("if(frame.topLevel) {"),n._emitLine('context.addExport("'+i+'", '+o+");"),n._emitLine("}"))})},i.compileSwitch=function(e,t){var n=this;this._emit("switch ("),this.compile(e.expr,t),this._emit(") {"),e.cases.forEach(function(e,r){n._emit("case "),n.compile(e.cond,t),n._emit(": "),n.compile(e.body,t),e.body.children.length&&n._emitLine("break;")}),e.default&&(this._emit("default:"),this.compile(e.default,t)),this._emit("}")},i.compileIf=function(e,t,n){var r=this;this._emit("if("),this._compileExpression(e.cond,t),this._emitLine(") {"),this._withScopedSyntax(function(){r.compile(e.body,t),n&&r._emit("cb()")}),e.else_?(this._emitLine("}\nelse {"),this._withScopedSyntax(function(){r.compile(e.else_,t),n&&r._emit("cb()")})):n&&(this._emitLine("}\nelse {"),this._emit("cb()")),this._emitLine("}")},i.compileIfAsync=function(e,t){this._emit("(function(cb) {"),this.compileIf(e,t,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},i._emitLoopBindings=function(e,t,n,r){var o=this;[{name:"index",val:n+" + 1"},{name:"index0",val:n},{name:"revindex",val:r+" - "+n},{name:"revindex0",val:r+" - "+n+" - 1"},{name:"first",val:n+" === 0"},{name:"last",val:n+" === "+r+" - 1"},{name:"length",val:r}].forEach(function(e){o._emitLine('frame.set("loop.'+e.name+'", '+e.val+");")})},i.compileFor=function(e,t){var n=this,r=this._tmpid(),o=this._tmpid(),i=this._tmpid();if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+i+" = "),this._compileExpression(e.arr,t),this._emitLine(";"),this._emit("if("+i+") {"),this._emitLine(i+" = runtime.fromIterator("+i+");"),e.name instanceof a.Array){this._emitLine("var "+r+";"),this._emitLine("if(runtime.isArray("+i+")) {"),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for("+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),e.name.children.forEach(function(o,a){var s=n._tmpid();n._emitLine("var "+s+" = "+i+"["+r+"]["+a+"];"),n._emitLine('frame.set("'+o+'", '+i+"["+r+"]["+a+"]);"),t.set(e.name.children[a].value,s)}),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("} else {");var s=e.name.children,l=s[0],u=s[1],c=this._tmpid(),d=this._tmpid();t.set(l.value,c),t.set(u.value,d),this._emitLine(r+" = -1;"),this._emitLine("var "+o+" = runtime.keys("+i+").length;"),this._emitLine("for(var "+c+" in "+i+") {"),this._emitLine(r+"++;"),this._emitLine("var "+d+" = "+i+"["+c+"];"),this._emitLine('frame.set("'+l.value+'", '+c+");"),this._emitLine('frame.set("'+u.value+'", '+d+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("}")}else{var p=this._tmpid();t.set(e.name.value,p),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for(var "+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),this._emitLine("var "+p+" = "+i+"["+r+"];"),this._emitLine('frame.set("'+e.name.value+'", '+p+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}")}this._emitLine("}"),e.else_&&(this._emitLine("if (!"+o+") {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i._compileAsyncLoop=function(e,t,n){var r=this,o=this._tmpid(),i=this._tmpid(),s=this._tmpid(),l=n?"asyncAll":"asyncEach";if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+s+" = runtime.fromIterator("),this._compileExpression(e.arr,t),this._emitLine(");"),e.name instanceof a.Array){var u=e.name.children.length;this._emit("runtime."+l+"("+s+", "+u+", function("),e.name.children.forEach(function(e){r._emit(e.value+",")}),this._emit(o+","+i+",next) {"),e.name.children.forEach(function(e){var n=e.value;t.set(n,n),r._emitLine('frame.set("'+n+'", '+n+");")})}else{var c=e.name.value;this._emitLine("runtime."+l+"("+s+", 1, function("+c+", "+o+", "+i+",next) {"),this._emitLine('frame.set("'+c+'", '+c+");"),t.set(c,c)}this._emitLoopBindings(e,s,o,i),this._withScopedSyntax(function(){var i;n&&(i=r._pushBuffer()),r.compile(e.body,t),r._emitLine("next("+o+(i?","+i:"")+");"),n&&r._popBuffer()});var d=this._tmpid();this._emitLine("}, "+this._makeCallback(d)),this._addScopeLevel(),n&&this._emitLine(this.buffer+" += "+d+";"),e.else_&&(this._emitLine("if (!"+s+".length) {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i.compileAsyncEach=function(e,t){this._compileAsyncLoop(e,t)},i.compileAsyncAll=function(e,t){this._compileAsyncLoop(e,t,!0)},i._compileMacro=function(e,t){var n=this,r=[],o=null,i="macro_"+this._tmpid(),s=void 0!==t;e.args.children.forEach(function(t,i){i===e.args.children.length-1&&t instanceof a.Dict?o=t:(n.assertType(t,a.Symbol),r.push(t))});var u,c=[].concat(r.map(function(e){return"l_"+e.value}),["kwargs"]),d=r.map(function(e){return'"'+e.value+'"'}),p=(o&&o.children||[]).map(function(e){return'"'+e.key.value+'"'});u=s?t.push(!0):new l,this._emitLines("var "+i+" = runtime.makeMacro(","["+d.join(", ")+"], ","["+p.join(", ")+"], ","function ("+c.join(", ")+") {","var callerFrame = frame;","frame = "+(s?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),r.forEach(function(e){n._emitLine('frame.set("'+e.value+'", l_'+e.value+");"),u.set(e.value,"l_"+e.value)}),o&&o.children.forEach(function(e){var t=e.key.value;n._emit('frame.set("'+t+'", '),n._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+t+'")'),n._emit(' ? kwargs["'+t+'"] : '),n._compileExpression(e.value,u),n._emit(");")});var f=this._pushBuffer();return this._withScopedSyntax(function(){n.compile(e.body,u)}),this._emitLine("frame = "+(s?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+f+");"),this._emitLine("});"),this._popBuffer(),i},i.compileMacro=function(e,t){var n=this._compileMacro(e),r=e.name.value;t.set(r,n),t.parent?this._emitLine('frame.set("'+r+'", '+n+");"):("_"!==e.name.value.charAt(0)&&this._emitLine('context.addExport("'+r+'");'),this._emitLine('context.setVariable("'+r+'", '+n+");"))},i.compileCaller=function(e,t){this._emit("(function (){");var n=this._compileMacro(e,t);this._emit("return "+n+";})()")},i._compileGetTemplate=function(e,t,n,r){var o=this._tmpid(),i=this._templateName(),a=this._makeCallback(o),s=n?"true":"false",l=r?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(e.template,t),this._emitLine(", "+s+", "+i+", "+l+", "+a),o},i.compileImport=function(e,t){var n=e.target.value,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),t.set(n,r),t.parent?this._emitLine('frame.set("'+n+'", '+r+");"):this._emitLine('context.setVariable("'+n+'", '+r+");")},i.compileFromImport=function(e,t){var n=this,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),e.names.children.forEach(function(e){var o,i,s=n._tmpid();e instanceof a.Pair?(o=e.key.value,i=e.value.value):i=o=e.value,n._emitLine("if(Object.prototype.hasOwnProperty.call("+r+', "'+o+'")) {'),n._emitLine("var "+s+" = "+r+"."+o+";"),n._emitLine("} else {"),n._emitLine("cb(new Error(\"cannot import '"+o+"'\")); return;"),n._emitLine("}"),t.set(i,s),t.parent?n._emitLine('frame.set("'+i+'", '+s+");"):n._emitLine('context.setVariable("'+i+'", '+s+");")})},i.compileBlock=function(e){var t=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+e.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(t)),this._emitLine(this.buffer+" += "+t+";"),this._addScopeLevel()},i.compileSuper=function(e,t){var n=e.blockName.value,r=e.symbol.value,o=this._makeCallback(r);this._emitLine('context.getSuper(env, "'+n+'", b_'+n+", frame, runtime, "+o),this._emitLine(r+" = runtime.markSafe("+r+");"),this._addScopeLevel(),t.set(r,r)},i.compileExtends=function(e,t){var n=this._tmpid(),r=this._compileGetTemplate(e,t,!0,!1);this._emitLine("parentTemplate = "+r),this._emitLine("for(var "+n+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+n+", parentTemplate.blocks["+n+"]);"),this._emitLine("}"),this._addScopeLevel()},i.compileInclude=function(e,t){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var n=this._compileGetTemplate(e,t,!1,e.ignoreMissing);this._emitLine("callback(null,"+n+");});"),this._emitLine("});");var r=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(r)),this._emitLine("callback(null,"+r+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},i.compileTemplateData=function(e,t){this.compileLiteral(e,t)},i.compileCapture=function(e,t){var n=this,r=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=r},i.compileOutput=function(e,t){var n=this;e.children.forEach(function(r){r instanceof a.TemplateData?r.value&&(n._emit(n.buffer+" += "),n.compileLiteral(r,t),n._emitLine(";")):(n._emit(n.buffer+" += runtime.suppressValue("),n.throwOnUndefined&&n._emit("runtime.ensureDefined("),n.compile(r,t),n.throwOnUndefined&&n._emit(","+e.lineno+","+e.colno+")"),n._emit(", env.opts.autoescape);\n"))})},i.compileRoot=function(e,t){var n=this;t&&this.fail("compileRoot: root node can't have frame"),t=new l,this._emitFuncBegin(e,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(e,t),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var r=[],o=e.findAll(a.Block);o.forEach(function(e,t){var o=e.name.value;if(-1!==r.indexOf(o))throw new Error('Block "'+o+'" defined more than once.');r.push(o),n._emitFuncBegin(e,"b_"+o);var i=new l;n._emitLine("var frame = frame.push(true);"),n.compile(e.body,i),n._emitFuncEnd()}),this._emitLine("return {"),o.forEach(function(e,t){var r="b_"+e.name.value;n._emitLine(r+": "+r+",")}),this._emitLine("root: root\n};")},i.compile=function(e,t){var n=this["compile"+e.typename];n?n.call(this,e,t):this.fail("compile: Cannot compile node: "+e.typename,e.lineno,e.colno)},i.getCode=function(){return this.codebuf.join("")},o}(u);e.exports={compile:function(e,t,n,r,a){void 0===a&&(a={});var s=new d(r,a.throwOnUndefined),l=(n||[]).map(function(e){return e.preprocess}).filter(function(e){return!!e}).reduce(function(e,t){return t(e)},e);return s.compile(i.transform(o.parse(l,n,a),t,r)),s.getCode()},Compiler:d}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(4),i=n(1).EmitterObj;e.exports=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.resolve=function(e,t){return o.resolve(o.dirname(e),t)},a.isRelative=function(e){return 0===e.indexOf("./")||0===e.indexOf("../")},i}(i)},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(12),a=n(15),s=n(0),l=n(5),u=n(18),c=n(10),d=c.FileSystemLoader,p=c.WebLoader,f=c.PrecompiledLoader,h=n(20),m=n(21),g=n(1),v=g.Obj,y=g.EmitterObj,b=n(2),w=b.handleError,x=b.Frame,k=n(22);function S(e,t,n){i(function(){e(t,n)})}var E={type:"code",obj:{root:function(e,t,n,r,o){try{o(null,"")}catch(e){o(w(e,null,null))}}}},C=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t){var n=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=s.isArray(e)?e:[e]:d?this.loaders=[new d("views")]:p&&(this.loaders=[new p("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new f(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=m(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],s._entries(u).forEach(function(e){var t=e[0],r=e[1];return n.addFilter(t,r)}),s._entries(h).forEach(function(e){var t=e[0],r=e[1];return n.addTest(t,r)})},n._initLoaders=function(){var e=this;this.loaders.forEach(function(t){t.cache={},"function"==typeof t.on&&(t.on("update",function(n,r){t.cache[n]=null,e.emit("update",n,r,t)}),t.on("load",function(n,r){e.emit("load",n,r,t)}))})},n.invalidateCache=function(){this.loaders.forEach(function(e){e.cache={}})},n.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},n.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=s.without(this.extensionsList,t),delete this.extensions[e])},n.getExtension=function(e){return this.extensions[e]},n.hasExtension=function(e){return!!this.extensions[e]},n.addGlobal=function(e,t){return this.globals[e]=t,this},n.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},n.addFilter=function(e,t,n){var r=t;return n&&this.asyncFilters.push(e),this.filters[e]=r,this},n.getFilter=function(e){if(!this.filters[e])throw new Error("filter not found: "+e);return this.filters[e]},n.addTest=function(e,t){return this.tests[e]=t,this},n.getTest=function(e){if(!this.tests[e])throw new Error("test not found: "+e);return this.tests[e]},n.resolveTemplate=function(e,t,n){return e.isRelative&&t&&e.isRelative(n)&&e.resolve?e.resolve(t,n):n},n.getTemplate=function(e,t,n,r,o){var i,a=this,l=this,u=null;if(e&&e.raw&&(e=e.raw),s.isFunction(n)&&(o=n,n=null,t=t||!1),s.isFunction(t)&&(o=t,t=!1),e instanceof _)u=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var c=0;c<this.loaders.length;c++){var d=this.loaders[c];if(u=d.cache[this.resolveTemplate(d,n,e)])break}}return u?(t&&u.compile(),o?void o(null,u):u):(s.asyncIter(this.loaders,function(t,r,o,i){function a(e,n){e?i(e):n?(n.loader=t,i(null,n)):o()}e=l.resolveTemplate(t,n,e),t.async?t.getSource(e,a):a(null,t.getSource(e))},function(n,s){if(s||n||r||(n=new Error("template not found: "+e)),n){if(o)return void o(n);throw n}var l;s?(l=new _(s.src,a,s.path,t),s.noCache||(s.loader.cache[e]=l)):l=new _(E,a,"",t),o?o(null,l):i=l}),i)},n.express=function(e){return k(this,e)},n.render=function(e,t,n){s.isFunction(t)&&(n=t,t=null);var r=null;return this.getTemplate(e,function(e,o){if(e&&n)S(n,e);else{if(e)throw e;r=o.render(t,n)}}),r},n.renderString=function(e,t,n,r){return s.isFunction(n)&&(r=n,n={}),new _(e,this,(n=n||{}).path).render(t,r)},n.waterfall=function(e,t,n){return a(e,t,n)},t}(y),O=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n){var r=this;this.env=n||new C,this.ctx=s.extend({},e),this.blocks={},this.exported=[],s.keys(t).forEach(function(e){r.addBlock(e,t[e])})},n.lookup=function(e){return e in this.env.globals&&!(e in this.ctx)?this.env.globals[e]:this.ctx[e]},n.setVariable=function(e,t){this.ctx[e]=t},n.getVariables=function(){return this.ctx},n.addBlock=function(e,t){return this.blocks[e]=this.blocks[e]||[],this.blocks[e].push(t),this},n.getBlock=function(e){if(!this.blocks[e])throw new Error('unknown block "'+e+'"');return this.blocks[e][0]},n.getSuper=function(e,t,n,r,o,i){var a=s.indexOf(this.blocks[t]||[],n),l=this.blocks[t][a+1];if(-1===a||!l)throw new Error('no super block available for "'+t+'"');l(e,this,r,o,i)},n.addExport=function(e){this.exported.push(e)},n.getExported=function(){var e=this,t={};return this.exported.forEach(function(n){t[n]=e.ctx[n]}),t},t}(v),_=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n,r){if(this.env=t||new C,s.isObject(e))switch(e.type){case"code":this.tmplProps=e.obj;break;case"string":this.tmplStr=e.obj;break;default:throw new Error("Unexpected template object type "+e.type+"; expected 'code', or 'string'")}else{if(!s.isString(e))throw new Error("src must be a string or an object describing the source");this.tmplStr=e}if(this.path=n,r)try{this._compile()}catch(e){throw s._prettifyError(this.path,this.env.opts.dev,e)}else this.compiled=!1},n.render=function(e,t,n){var r=this;"function"==typeof e?(n=e,e={}):"function"==typeof t&&(n=t,t=null);var o=!t;try{this.compile()}catch(e){var i=s._prettifyError(this.path,this.env.opts.dev,e);if(n)return S(n,i);throw i}var a=new O(e||{},this.blocks,this.env),l=t?t.push(!0):new x;l.topLevel=!0;var u=null,c=!1;return this.rootRenderFunc(this.env,a,l,b,function(e,t){if(!c||!n||void 0===t)if(e&&(e=s._prettifyError(r.path,r.env.opts.dev,e),c=!0),n)o?S(n,e,t):n(e,t);else{if(e)throw e;u=t}}),u},n.getExported=function(e,t,n){"function"==typeof e&&(n=e,e={}),"function"==typeof t&&(n=t,t=null);try{this.compile()}catch(e){if(n)return n(e);throw e}var r=t?t.push():new x;r.topLevel=!0;var o=new O(e||{},this.blocks,this.env);this.rootRenderFunc(this.env,o,r,b,function(e){e?n(e,null):n(null,o.getExported())})},n.compile=function(){this.compiled||this._compile()},n._compile=function(){var e;if(this.tmplProps)e=this.tmplProps;else{var t=l.compile(this.tmplStr,this.env.asyncFilters,this.env.extensionsList,this.path,this.env.opts);e=new Function(t)()}this.blocks=this._getBlocks(e),this.rootRenderFunc=e.root,this.compiled=!0},n._getBlocks=function(e){var t={};return s.keys(e).forEach(function(n){"b_"===n.slice(0,2)&&(t[n.slice(2)]=e[n])}),t},t}(v);e.exports={Environment:C,Template:_}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(9),i=n(3),a=n(1).Obj,s=n(0),l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var l=a.prototype;return l.init=function(e){this.tokens=e,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},l.nextToken=function(e){var t;if(this.peeked){if(e||this.peeked.type!==o.TOKEN_WHITESPACE)return t=this.peeked,this.peeked=null,t;this.peeked=null}if(t=this.tokens.nextToken(),!e)for(;t&&t.type===o.TOKEN_WHITESPACE;)t=this.tokens.nextToken();return t},l.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},l.pushToken=function(e){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=e},l.error=function(e,t,n){if(void 0===t||void 0===n){var r=this.peekToken()||{};t=r.lineno,n=r.colno}return void 0!==t&&(t+=1),void 0!==n&&(n+=1),new s.TemplateError(e,t,n)},l.fail=function(e,t,n){throw this.error(e,t,n)},l.skip=function(e){var t=this.nextToken();return!(!t||t.type!==e)||(this.pushToken(t),!1)},l.expect=function(e){var t=this.nextToken();return t.type!==e&&this.fail("expected "+e+", got "+t.type,t.lineno,t.colno),t},l.skipValue=function(e,t){var n=this.nextToken();return!(!n||n.type!==e||n.value!==t)||(this.pushToken(n),!1)},l.skipSymbol=function(e){return this.skipValue(o.TOKEN_SYMBOL,e)},l.advanceAfterBlockEnd=function(e){var t;return e||((t=this.peekToken())||this.fail("unexpected end of file"),t.type!==o.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),e=this.nextToken().value),(t=this.nextToken())&&t.type===o.TOKEN_BLOCK_END?"-"===t.value.charAt(0)&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+e+" statement"),t},l.advanceAfterVariableEnd=function(){var e=this.nextToken();e&&e.type===o.TOKEN_VARIABLE_END?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.VARIABLE_END.length-1):(this.pushToken(e),this.fail("expected variable end"))},l.parseFor=function(){var e,t,n=this.peekToken();if(this.skipSymbol("for")?(e=new i.For(n.lineno,n.colno),t="endfor"):this.skipSymbol("asyncEach")?(e=new i.AsyncEach(n.lineno,n.colno),t="endeach"):this.skipSymbol("asyncAll")?(e=new i.AsyncAll(n.lineno,n.colno),t="endall"):this.fail("parseFor: expected for{Async}",n.lineno,n.colno),e.name=this.parsePrimary(),e.name instanceof i.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===o.TOKEN_COMMA){var r=e.name;for(e.name=new i.Array(r.lineno,r.colno),e.name.addChild(r);this.skip(o.TOKEN_COMMA);){var a=this.parsePrimary();e.name.addChild(a)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',n.lineno,n.colno),e.arr=this.parseExpression(),this.advanceAfterBlockEnd(n.value),e.body=this.parseUntilBlocks(t,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),e.else_=this.parseUntilBlocks(t)),this.advanceAfterBlockEnd(),e},l.parseMacro=function(){var e=this.peekToken();this.skipSymbol("macro")||this.fail("expected macro");var t=this.parsePrimary(!0),n=this.parseSignature(),r=new i.Macro(e.lineno,e.colno,t,n);return this.advanceAfterBlockEnd(e.value),r.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),r},l.parseCall=function(){var e=this.peekToken();this.skipSymbol("call")||this.fail("expected call");var t=this.parseSignature(!0)||new i.NodeList,n=this.parsePrimary();this.advanceAfterBlockEnd(e.value);var r=this.parseUntilBlocks("endcall");this.advanceAfterBlockEnd();var o=new i.Symbol(e.lineno,e.colno,"caller"),a=new i.Caller(e.lineno,e.colno,o,t,r),s=n.args.children;return s[s.length-1]instanceof i.KeywordArgs||s.push(new i.KeywordArgs),s[s.length-1].addChild(new i.Pair(e.lineno,e.colno,o,a)),new i.Output(e.lineno,e.colno,[n])},l.parseWithContext=function(){var e=this.peekToken(),t=null;return this.skipSymbol("with")?t=!0:this.skipSymbol("without")&&(t=!1),null!==t&&(this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",e.lineno,e.colno)),t},l.parseImport=function(){var e=this.peekToken();this.skipSymbol("import")||this.fail("parseImport: expected import",e.lineno,e.colno);var t=this.parseExpression();this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',e.lineno,e.colno);var n=this.parseExpression(),r=this.parseWithContext(),o=new i.Import(e.lineno,e.colno,t,n,r);return this.advanceAfterBlockEnd(e.value),o},l.parseFrom=function(){var e=this.peekToken();this.skipSymbol("from")||this.fail("parseFrom: expected from");var t=this.parseExpression();this.skipSymbol("import")||this.fail("parseFrom: expected import",e.lineno,e.colno);for(var n,r=new i.NodeList;;){var a=this.peekToken();if(a.type===o.TOKEN_BLOCK_END){r.children.length||this.fail("parseFrom: Expected at least one import name",e.lineno,e.colno),"-"===a.value.charAt(0)&&(this.dropLeadingWhitespace=!0),this.nextToken();break}r.children.length>0&&!this.skip(o.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var s=this.parsePrimary();if("_"===s.value.charAt(0)&&this.fail("parseFrom: names starting with an underscore cannot be imported",s.lineno,s.colno),this.skipSymbol("as")){var l=this.parsePrimary();r.addChild(new i.Pair(s.lineno,s.colno,s,l))}else r.addChild(s);n=this.parseWithContext()}return new i.FromImport(e.lineno,e.colno,t,r,n)},l.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var t=new i.Block(e.lineno,e.colno);t.name=this.parsePrimary(),t.name instanceof i.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(t.name.value);var n=this.peekToken();return n||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(n.value),t},l.parseExtends=function(){var e="extends",t=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var n=new i.Extends(t.lineno,t.colno);return n.template=this.parseExpression(),this.advanceAfterBlockEnd(t.value),n},l.parseInclude=function(){var e="include",t=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var n=new i.Include(t.lineno,t.colno);return n.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(n.ignoreMissing=!0),this.advanceAfterBlockEnd(t.value),n},l.parseIf=function(){var e,t=this.peekToken();this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?e=new i.If(t.lineno,t.colno):this.skipSymbol("ifAsync")?e=new i.IfAsync(t.lineno,t.colno):this.fail("parseIf: expected if, elif, or elseif",t.lineno,t.colno),e.cond=this.parseExpression(),this.advanceAfterBlockEnd(t.value),e.body=this.parseUntilBlocks("elif","elseif","else","endif");var n=this.peekToken();switch(n&&n.value){case"elseif":case"elif":e.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),e.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":e.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return e},l.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var t,n=new i.Set(e.lineno,e.colno,[]);(t=this.parsePrimary())&&(n.targets.push(t),this.skip(o.TOKEN_COMMA)););return this.skipValue(o.TOKEN_OPERATOR,"=")?(n.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(o.TOKEN_BLOCK_END)?(n.body=new i.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),n.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),n},l.parseSwitch=function(){var e="switch",t="endswitch",n="case",r="default",o=this.peekToken();this.skipSymbol(e)||this.skipSymbol(n)||this.skipSymbol(r)||this.fail('parseSwitch: expected "switch," "case" or "default"',o.lineno,o.colno);var a=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(n,r,t);var s,l=this.peekToken(),u=[];do{this.skipSymbol(n);var c=this.parseExpression();this.advanceAfterBlockEnd(e);var d=this.parseUntilBlocks(n,r,t);u.push(new i.Case(l.line,l.col,c,d)),l=this.peekToken()}while(l&&l.value===n);switch(l.value){case r:this.advanceAfterBlockEnd(),s=this.parseUntilBlocks(t),this.advanceAfterBlockEnd();break;case t:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new i.Switch(o.lineno,o.colno,a,u,s)},l.parseStatement=function(){var e=this.peekToken();if(e.type!==o.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&-1!==s.indexOf(this.breakOnBlocks,e.value))return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var t=0;t<this.extensions.length;t++){var n=this.extensions[t];if(-1!==s.indexOf(n.tags||[],e.value))return n.parse(this,i,o)}this.fail("unknown block tag: "+e.value,e.lineno,e.colno)}},l.parseRaw=function(e){for(var t="end"+(e=e||"raw"),n=new RegExp("([\\s\\S]*?){%\\s*("+e+"|"+t+")\\s*(?=%})%}"),r=1,o="",a=null,s=this.advanceAfterBlockEnd();(a=this.tokens._extractRegex(n))&&r>0;){var l=a[0],u=a[1],c=a[2];c===e?r+=1:c===t&&(r-=1),0===r?(o+=u,this.tokens.backN(l.length-u.length)):o+=l}return new i.Output(s.lineno,s.colno,[new i.TemplateData(s.lineno,s.colno,o)])},l.parsePostfix=function(e){for(var t,n=this.peekToken();n;){if(n.type===o.TOKEN_LEFT_PAREN)e=new i.FunCall(n.lineno,n.colno,e,this.parseSignature());else if(n.type===o.TOKEN_LEFT_BRACKET)(t=this.parseAggregate()).children.length>1&&this.fail("invalid index"),e=new i.LookupVal(n.lineno,n.colno,e,t.children[0]);else{if(n.type!==o.TOKEN_OPERATOR||"."!==n.value)break;this.nextToken();var r=this.nextToken();r.type!==o.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+r.value,r.lineno,r.colno),t=new i.Literal(r.lineno,r.colno,r.value),e=new i.LookupVal(n.lineno,n.colno,e,t)}n=this.peekToken()}return e},l.parseExpression=function(){return this.parseInlineIf()},l.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var t=this.parseOr(),n=e;(e=new i.InlineIf(e.lineno,e.colno)).body=n,e.cond=t,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},l.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var t=this.parseAnd();e=new i.Or(e.lineno,e.colno,e,t)}return e},l.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var t=this.parseNot();e=new i.And(e.lineno,e.colno,e,t)}return e},l.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new i.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},l.parseIn=function(){for(var e=this.parseIs();;){var t=this.nextToken();if(!t)break;var n=t.type===o.TOKEN_SYMBOL&&"not"===t.value;if(n||this.pushToken(t),!this.skipSymbol("in")){n&&this.pushToken(t);break}var r=this.parseIs();e=new i.In(e.lineno,e.colno,e,r),n&&(e=new i.Not(e.lineno,e.colno,e))}return e},l.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var t=this.skipSymbol("not"),n=this.parseCompare();e=new i.Is(e.lineno,e.colno,e,n),t&&(e=new i.Not(e.lineno,e.colno,e))}return e},l.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],t=this.parseConcat(),n=[];;){var r=this.nextToken();if(!r)break;if(-1===e.indexOf(r.value)){this.pushToken(r);break}n.push(new i.CompareOperand(r.lineno,r.colno,this.parseConcat(),r.value))}return n.length?new i.Compare(n[0].lineno,n[0].colno,t,n):t},l.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(o.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new i.Concat(e.lineno,e.colno,e,t)}return e},l.parseAdd=function(){for(var e=this.parseSub();this.skipValue(o.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new i.Add(e.lineno,e.colno,e,t)}return e},l.parseSub=function(){for(var e=this.parseMul();this.skipValue(o.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new i.Sub(e.lineno,e.colno,e,t)}return e},l.parseMul=function(){for(var e=this.parseDiv();this.skipValue(o.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new i.Mul(e.lineno,e.colno,e,t)}return e},l.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(o.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new i.Div(e.lineno,e.colno,e,t)}return e},l.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(o.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new i.FloorDiv(e.lineno,e.colno,e,t)}return e},l.parseMod=function(){for(var e=this.parsePow();this.skipValue(o.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new i.Mod(e.lineno,e.colno,e,t)}return e},l.parsePow=function(){for(var e=this.parseUnary();this.skipValue(o.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new i.Pow(e.lineno,e.colno,e,t)}return e},l.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(o.TOKEN_OPERATOR,"-")?new i.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(o.TOKEN_OPERATOR,"+")?new i.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},l.parsePrimary=function(e){var t,n=this.nextToken(),r=null;if(n?n.type===o.TOKEN_STRING?t=n.value:n.type===o.TOKEN_INT?t=parseInt(n.value,10):n.type===o.TOKEN_FLOAT?t=parseFloat(n.value):n.type===o.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===o.TOKEN_NONE?t=null:n.type===o.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),void 0!==t?r=new i.Literal(n.lineno,n.colno,t):n.type===o.TOKEN_SYMBOL?r=new i.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),r=this.parseAggregate()),e||(r=this.parsePostfix(r)),r)return r;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},l.parseFilterName=function(){for(var e=this.expect(o.TOKEN_SYMBOL),t=e.value;this.skipValue(o.TOKEN_OPERATOR,".");)t+="."+this.expect(o.TOKEN_SYMBOL).value;return new i.Symbol(e.lineno,e.colno,t)},l.parseFilterArgs=function(e){return this.peekToken().type===o.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},l.parseFilter=function(e){for(;this.skip(o.TOKEN_PIPE);){var t=this.parseFilterName();e=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},l.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var r=new i.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var o=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[r].concat(n)));return new i.Output(t.lineno,t.colno,[o])},l.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case o.TOKEN_LEFT_PAREN:e=new i.Group(t.lineno,t.colno);break;case o.TOKEN_LEFT_BRACKET:e=new i.Array(t.lineno,t.colno);break;case o.TOKEN_LEFT_CURLY:e=new i.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===o.TOKEN_RIGHT_PAREN||n===o.TOKEN_RIGHT_BRACKET||n===o.TOKEN_RIGHT_CURLY){this.nextToken();break}if(e.children.length>0&&(this.skip(o.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",t.lineno,t.colno)),e instanceof i.Dict){var r=this.parsePrimary();this.skip(o.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",t.lineno,t.colno);var a=this.parseExpression();e.addChild(new i.Pair(r.lineno,r.colno,r,a))}else{var s=this.parseExpression();e.addChild(s)}}return e},l.parseSignature=function(e,t){var n=this.peekToken();if(!t&&n.type!==o.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",n.lineno,n.colno)}n.type===o.TOKEN_LEFT_PAREN&&(n=this.nextToken());for(var r=new i.NodeList(n.lineno,n.colno),a=new i.KeywordArgs(n.lineno,n.colno),s=!1;;){if(n=this.peekToken(),!t&&n.type===o.TOKEN_RIGHT_PAREN){this.nextToken();break}if(t&&n.type===o.TOKEN_BLOCK_END)break;if(s&&!this.skip(o.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",n.lineno,n.colno);else{var l=this.parseExpression();this.skipValue(o.TOKEN_OPERATOR,"=")?a.addChild(new i.Pair(l.lineno,l.colno,l,this.parseExpression())):r.addChild(l)}s=!0}return a.children.length&&r.addChild(a),r},l.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.breakOnBlocks=n;var o=this.parse();return this.breakOnBlocks=e,o},l.parseNodes=function(){for(var e,t=[];e=this.nextToken();)if(e.type===o.TOKEN_DATA){var n=e.value,r=this.peekToken(),a=r&&r.value;this.dropLeadingWhitespace&&(n=n.replace(/^\s*/,""),this.dropLeadingWhitespace=!1),r&&(r.type===o.TOKEN_BLOCK_START&&"-"===a.charAt(a.length-1)||r.type===o.TOKEN_VARIABLE_START&&"-"===a.charAt(this.tokens.tags.VARIABLE_START.length)||r.type===o.TOKEN_COMMENT&&"-"===a.charAt(this.tokens.tags.COMMENT_START.length))&&(n=n.replace(/\s*$/,"")),t.push(new i.Output(e.lineno,e.colno,[new i.TemplateData(e.lineno,e.colno,n)]))}else if(e.type===o.TOKEN_BLOCK_START){this.dropLeadingWhitespace=!1;var s=this.parseStatement();if(!s)break;t.push(s)}else if(e.type===o.TOKEN_VARIABLE_START){var l=this.parseExpression();this.dropLeadingWhitespace=!1,this.advanceAfterVariableEnd(),t.push(new i.Output(e.lineno,e.colno,[l]))}else e.type===o.TOKEN_COMMENT?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.COMMENT_END.length-1):this.fail("Unexpected token at top-level: "+e.type,e.lineno,e.colno);return t},l.parse=function(){return new i.NodeList(0,0,this.parseNodes())},l.parseAsRoot=function(){return new i.Root(0,0,this.parseNodes())},a}(a);e.exports={parse:function(e,t,n){var r=new l(o.lex(e,n));return void 0!==t&&(r.extensions=t),r.parseAsRoot()},Parser:l}},function(e,t,n){var r=n(0),o=" \n\t\r ",i="()[]{}%*-+~/#,:|.<>=!",a="string",s="whitespace",l="data",u="block-start",c="block-end",d="variable-start",p="variable-end",f="comment",h="left-paren",m="right-paren",g="left-bracket",v="right-bracket",y="left-curly",b="right-curly",w="operator",x="comma",k="colon",S="tilde",E="pipe",C="float",O="boolean",_="none",T="symbol",R="regex";function P(e,t,n,r){return{type:e,value:t,lineno:n,colno:r}}var A=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var A=this.current();if(this.isFinished())return null;if('"'===A||"'"===A)return P(a,this._parseString(A),t,n);if(e=this._extract(o))return P(s,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(A=this.current())?this.forward():"\r"===A&&(this.forward(),"\n"===(A=this.current())?this.forward():this.back())),P(c,e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,P(p,e,t,n);if("r"===A&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var L="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}L+=this.current(),this.forward()}for(var N=["g","i","m","y"],M="";!this.isFinished()&&-1!==N.indexOf(this.current());)M+=this.current(),this.forward();return P(R,{body:L,flags:M},t,n)}if(-1!==i.indexOf(A)){this.forward();var I,F=["==","===","!=","!==","<=",">=","//","**"],$=A+this.current();switch(-1!==r.indexOf(F,$)&&(this.forward(),A=$,-1!==r.indexOf(F,$+this.current())&&(A=$+this.current(),this.forward())),A){case"(":I=h;break;case")":I=m;break;case"[":I=g;break;case"]":I=v;break;case"{":I=y;break;case"}":I=b;break;case",":I=x;break;case":":I=k;break;case"~":I=S;break;case"|":I=E;break;default:I=w}return P(I,A,t,n)}if((e=this._extractUntil(o+i)).match(/^[-+]?[0-9]+$/)){if("."===this.current()){this.forward();var j=this._extract("0123456789");return P(C,e+"."+j,t,n)}return P("int",e,t,n)}if(e.match(/^(true|false)$/))return P(O,e,t,n);if("none"===e)return P(_,e,t,n);if("null"===e)return P(_,e,t,n);if(e)return P(T,e,t,n);throw new Error("Unexpected value while parsing: "+e)}var z,B=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,P(u,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,P(d,e,t,n);e="";var D=!1;for(this._matches(this.tags.COMMENT_START)&&(D=!0,e=this._extractString(this.tags.COMMENT_START));null!==(z=this._extractUntil(B));){if(e+=z,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!D){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=e.length){var W=e.slice(-this.colno);if(/^\s+$/.test(W)&&!(e=e.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!D)throw new Error("unexpected end of comment");e+=this._extractString(this.tags.COMMENT_END);break}e+=this.current(),this.forward()}if(null===z&&D)throw new Error("expected end of comment, got end of file");return P(D?f:l,e,t,n)},t._parseString=function(e){this.forward();for(var t="";!this.isFinished()&&this.current()!==e;){var n=this.current();if("\\"===n){switch(this.forward(),this.current()){case"n":t+="\n";break;case"t":t+="\t";break;case"r":t+="\r";break;default:t+=this.current()}this.forward()}else t+=n,this.forward()}return this.forward(),t},t._matches=function(e){return this.index+e.length>this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var r=this.current();this.forward();for(var o=t.indexOf(this.current());(e&&-1===o||!e&&-1!==o)&&!this.isFinished();)r+=this.current(),this.forward(),o=t.indexOf(this.current());return r}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t<e;t++)this.forward()},t.forward=function(){this.index++,"\n"===this.previous()?(this.lineno++,this.colno=0):this.colno++},t.backN=function(e){for(var t=0;t<e;t++)this.back()},t.back=function(){if(this.index--,"\n"===this.current()){this.lineno--;var e=this.src.lastIndexOf("\n",this.index-1);this.colno=-1===e?this.index:this.index-e}else this.colno--},t.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},t.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},t.previous=function(){return this.str.charAt(this.index-1)},e}();e.exports={lex:function(e,t){return new A(e,t)},TOKEN_STRING:a,TOKEN_WHITESPACE:s,TOKEN_DATA:l,TOKEN_BLOCK_START:u,TOKEN_BLOCK_END:c,TOKEN_VARIABLE_START:d,TOKEN_VARIABLE_END:p,TOKEN_COMMENT:f,TOKEN_LEFT_PAREN:h,TOKEN_RIGHT_PAREN:m,TOKEN_LEFT_BRACKET:g,TOKEN_RIGHT_BRACKET:v,TOKEN_LEFT_CURLY:y,TOKEN_RIGHT_CURLY:b,TOKEN_OPERATOR:w,TOKEN_COMMA:x,TOKEN_COLON:k,TOKEN_TILDE:S,TOKEN_PIPE:E,TOKEN_INT:"int",TOKEN_FLOAT:C,TOKEN_BOOLEAN:O,TOKEN_NONE:_,TOKEN_SYMBOL:T,TOKEN_SPECIAL:"special",TOKEN_REGEX:R}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(6),i=n(19).PrecompiledLoader,a=function(e){var t,n;function o(t,n){var r;return(r=e.call(this)||this).baseURL=t||".",n=n||{},r.useCache=!!n.useCache,r.async=!!n.async,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.resolve=function(e,t){throw new Error("relative templates not support in the browser yet")},i.getSource=function(e,t){var n,r=this,o=this.useCache;return this.fetch(this.baseURL+"/"+e,function(i,a){if(i)if(t)t(i.content);else{if(404!==i.status)throw i.content;n=null}else n={src:a,path:e,noCache:!o},r.emit("load",e,n),t&&t(null,n)}),n},i.fetch=function(e,t){if("undefined"==typeof window)throw new Error("WebLoader can only by used in a browser");var n=new XMLHttpRequest,r=!0;n.onreadystatechange=function(){4===n.readyState&&r&&(r=!1,0===n.status||200===n.status?t(null,n.responseText):t({status:n.status,content:n.responseText}))},e+=(-1===e.indexOf("?")?"?":"&")+"s="+(new Date).getTime(),n.open("GET",e,this.async),n.send()},o}(o);e.exports={WebLoader:a,PrecompiledLoader:i}},function(e,t,n){var r,o=n(0),i=n(7),a=i.Environment,s=i.Template,l=n(6),u=n(10),c=n(23),d=n(5),p=n(8),f=n(9),h=n(2),m=n(3),g=n(25);function v(e,t){var n;return t=t||{},o.isObject(e)&&(t=e,e=null),u.FileSystemLoader?n=new u.FileSystemLoader(e,{watch:t.watch,noCache:t.noCache}):u.WebLoader&&(n=new u.WebLoader(e,{useCache:t.web&&t.web.useCache,async:t.web&&t.web.async})),r=new a(n,t),t&&t.express&&r.express(t.express),r}e.exports={Environment:a,Template:s,Loader:l,FileSystemLoader:u.FileSystemLoader,NodeResolveLoader:u.NodeResolveLoader,PrecompiledLoader:u.PrecompiledLoader,WebLoader:u.WebLoader,compiler:d,parser:p,lexer:f,runtime:h,lib:o,nodes:m,installJinjaCompat:g,configure:v,reset:function(){r=void 0},compile:function(e,t,n,o){return r||v(),new s(e,t,n,o)},render:function(e,t,n){return r||v(),r.render(e,t,n)},renderString:function(e,t,n){return r||v(),r.renderString(e,t,n)},precompile:c?c.precompile:void 0,precompileString:c?c.precompileString:void 0}},function(e,t,n){var r=n(13),o=[],i=[],a=r.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function s(e){var t;(t=o.length?o.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=s,l.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},function(e,t,n){(function(t){function n(e){o.length||r(),o[o.length]=e}e.exports=n;var r,o=[],i=0;function a(){for(;i<o.length;){var e=i;if(i+=1,o[e].call(),i>1024){for(var t=0,n=o.length-i;t<n;t++)o[t]=o[t+i];o.length-=i,i=0}}o.length=0,i=0}var s=void 0!==t?t:self,l=s.MutationObserver||s.WebKitMutationObserver;function u(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}r="function"==typeof l?function(e){var t=1,n=new l(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(a):u(a),n.requestFlush=r,n.makeRequestCallFromTimer=u}).call(t,n(14))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,o,i,a,s;o=function(){var e=Array.prototype.slice.call(arguments);"function"==typeof e[0]&&e[0].apply(null,e.splice(1))},i=function(e){"function"==typeof setImmediate?setImmediate(e):void 0!==Ss&&Ss.nextTick?Ss.nextTick(e):setTimeout(e,0)},a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t,n){var r=n?i:o;if(t=t||function(){},!a(e)){var s=new Error("First argument to waterfall must be an array of functions");return t(s)}if(!e.length)return t();var l=function(e){return function(n){if(n)t.apply(null,arguments),t=function(){};else{var o=Array.prototype.slice.call(arguments,1),i=e.next();i?o.push(l(i)):o.push(t),r(function(){e.apply(null,o)})}}};l(function(e){var t=function(n){var r=function(){return e.length&&e[n].apply(null,arguments),r.next()};return r.next=function(){return n<e.length-1?t(n+1):null},r};return t(0)}(e))()},void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):g(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)i(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(3),o=n(0),i=0;function a(){return"hole_"+i++}function s(e,t){for(var n=null,r=0;r<e.length;r++){var o=t(e[r]);o!==e[r]&&(n||(n=e.slice()),n[r]=o)}return n||e}function l(e,t,n){if(!(e instanceof r.Node))return e;if(!n){var o=t(e);if(o&&o!==e)return o}if(e instanceof r.NodeList){var i=s(e.children,function(e){return l(e,t,n)});i!==e.children&&(e=new r[e.typename](e.lineno,e.colno,i))}else if(e instanceof r.CallExtension){var a=l(e.args,t,n),u=s(e.contentArgs,function(e){return l(e,t,n)});a===e.args&&u===e.contentArgs||(e=new r[e.typename](e.extName,e.prop,a,u))}else{var c=e.fields.map(function(t){return e[t]}),d=s(c,function(e){return l(e,t,n)});d!==c&&(e=new r[e.typename](e.lineno,e.colno),d.forEach(function(t,n){e[e.fields[n]]=t}))}return n&&t(e)||e}function u(e,t){return l(e,t,!0)}function c(e,t,n){var i=[],s=u(n?e[n]:e,function(e){var n;return e instanceof r.Block?e:((e instanceof r.Filter&&-1!==o.indexOf(t,e.name.value)||e instanceof r.CallExtensionAsync)&&(n=new r.Symbol(e.lineno,e.colno,a()),i.push(new r.FilterAsync(e.lineno,e.colno,e.name,e.args,n))),n)});return n?e[n]=s:e=s,i.length?(i.push(e),new r.NodeList(e.lineno,e.colno,i)):e}function d(e,t){return function(e){return u(e,function(e){if(e instanceof r.If||e instanceof r.For){var t=!1;if(l(e,function(e){if(e instanceof r.FilterAsync||e instanceof r.IfAsync||e instanceof r.AsyncEach||e instanceof r.AsyncAll||e instanceof r.CallExtensionAsync)return t=!0,e}),t){if(e instanceof r.If)return new r.IfAsync(e.lineno,e.colno,e.cond,e.body,e.else_);if(e instanceof r.For&&!(e instanceof r.AsyncAll))return new r.AsyncEach(e.lineno,e.colno,e.arr,e.name,e.body,e.else_)}}})}(function(e){return l(e,function(e){if(e instanceof r.Block){var t=!1,n=a();e.body=l(e.body,function(e){if(e instanceof r.FunCall&&"super"===e.name.value)return t=!0,new r.Symbol(e.lineno,e.colno,n)}),t&&e.body.children.unshift(new r.Super(0,0,e.name,new r.Symbol(0,0,n)))}})}(function(e,t){return u(e,function(e){return e instanceof r.Output?c(e,t):e instanceof r.Set?c(e,t,"value"):e instanceof r.For?c(e,t,"arr"):e instanceof r.If?c(e,t,"cond"):e instanceof r.CallExtension?c(e,t,"args"):void 0})}(e,t)))}e.exports={transform:function(e,t){return d(e,t||[])}}},function(e,t,n){var r=n(0),o=n(2);function i(e,t){return null==e||!1===e?t:e}function a(e){return e!=e}function s(e){var t=(e=i(e,"")).toLowerCase();return o.copySafeness(e,t.charAt(0).toUpperCase()+t.slice(1))}function l(e){if(r.isString(e))return e.split("");if(r.isObject(e))return r._entries(e||{}).map(function(e){return{key:e[0],value:e[1]}});if(r.isArray(e))return e;throw new r.TemplateError("list filter: type not iterable")}function u(e){return function(t,n,o){void 0===n&&(n="truthy");var i=this,a=i.env.getTest(n);return r.toArray(t).filter(function(t){return a.call(i,t,o)===e})}}function c(e){return o.copySafeness(e,e.replace(/^\s*|\s*$/g,""))}(t=e.exports={}).abs=Math.abs,t.batch=function(e,t,n){var r,o=[],i=[];for(r=0;r<e.length;r++)r%t===0&&i.length&&(o.push(i),i=[]),i.push(e[r]);if(i.length){if(n)for(r=i.length;r<t;r++)i.push(n);o.push(i)}return o},t.capitalize=s,t.center=function(e,t){if(t=t||80,(e=i(e,"")).length>=t)return e;var n=t-e.length,a=r.repeat(" ",n/2-n%2),s=r.repeat(" ",n/2);return o.copySafeness(e,a+e+s)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,t,n){if(!r.isObject(e))throw new r.TemplateError("dictsort filter: val must be an object");var o,i=[];for(var a in e)i.push([a,e[a]]);if(void 0===n||"key"===n)o=0;else{if("value"!==n)throw new r.TemplateError("dictsort filter: You can only sort by either key or value");o=1}return i.sort(function(e,n){var i=e[o],a=n[o];return t||(r.isString(i)&&(i=i.toUpperCase()),r.isString(a)&&(a=a.toUpperCase())),i>a?1:i===a?0:-1}),i},t.dump=function(e,t){return JSON.stringify(e,null,t)},t.escape=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(r.escape(e.toString())))},t.safe=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(e.toString()))},t.first=function(e){return e[0]},t.forceescape=function(e){return e=null==e?"":e,o.markSafe(r.escape(e.toString()))},t.groupby=function(e,t){return r.groupBy(e,t,this.env.opts.throwOnUndefined)},t.indent=function(e,t,n){if(""===(e=i(e,"")))return"";t=t||4;var a=e.split("\n"),s=r.repeat(" ",t),l=a.map(function(e,t){return 0!==t||n?""+s+e:e}).join("\n");return o.copySafeness(e,l)},t.join=function(e,t,n){return t=t||"",n&&(e=r.map(e,function(e){return e[n]})),e.join(t)},t.last=function(e){return e[e.length-1]},t.length=function(e){var t=i(e,"");return void 0!==t?"function"==typeof Map&&t instanceof Map||"function"==typeof Set&&t instanceof Set?t.size:!r.isObject(t)||t instanceof o.SafeString?t.length:r.keys(t).length:0},t.list=l,t.lower=function(e){return(e=i(e,"")).toLowerCase()},t.nl2br=function(e){return null==e?"":o.copySafeness(e,e.replace(/\r\n|\n/g,"<br />\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.reject=u(!1),t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.select=u(!0),t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,r){var i=e;if(t instanceof RegExp)return e.replace(t,n);void 0===r&&(r=-1);var a="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof o.SafeString))return e;if(""===t)return a=n+e.split("").join(n)+n,o.copySafeness(e,a);var s=e.indexOf(t);if(0===r||-1===s)return e;for(var l=0,u=0;s>-1&&(-1===r||u<r);)a+=e.substring(l,s)+n,l=s+t.length,u++,s=e.indexOf(t,l);return l<e.length&&(a+=e.substring(l)),o.copySafeness(i,a)},t.reverse=function(e){var t;return(t=r.isString(e)?l(e):r.map(e,function(e){return e})).reverse(),r.isString(e)?o.copySafeness(e,t.join("")):t},t.round=function(e,t,n){t=t||0;var r=Math.pow(10,t);return("ceil"===n?Math.ceil:"floor"===n?Math.floor:Math.round)(e*r)/r},t.slice=function(e,t,n){for(var r=Math.floor(e.length/t),o=e.length%t,i=[],a=0,s=0;s<t;s++){var l=a+s*r;s<o&&a++;var u=a+(s+1)*r,c=e.slice(l,u);n&&s>=o&&c.push(n),i.push(c)}return i},t.sum=function(e,t,n){return void 0===n&&(n=0),t&&(e=r.map(e,function(e){return e[t]})),n+e.reduce(function(e,t){return e+t},0)},t.sort=o.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(e,t,n,o){var i=this,a=r.map(e,function(e){return e}),s=r.getAttrGetter(o);return a.sort(function(e,a){var l=o?s(e):e,u=o?s(a):a;if(i.env.opts.throwOnUndefined&&o&&(void 0===l||void 0===u))throw new TypeError('sort: attribute "'+o+'" resolved to undefined');return!n&&r.isString(l)&&r.isString(u)&&(l=l.toLowerCase(),u=u.toLowerCase()),l<u?t?1:-1:l>u?t?-1:1:0}),a}),t.string=function(e){return o.copySafeness(e,e)},t.striptags=function(e,t){var n=c((e=i(e,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),r="";return r=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),o.copySafeness(e,r)},t.title=function(e){var t=(e=i(e,"")).split(" ").map(function(e){return s(e)});return o.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,r){var a=e;if(t=t||255,(e=i(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var s=e.lastIndexOf(" ",t);-1===s&&(s=t),e=e.substring(0,s)}return e+=null!=r?r:"...",o.copySafeness(a,e)},t.upper=function(e){return(e=i(e,"")).toUpperCase()},t.urlencode=function(e){var t=encodeURIComponent;return r.isString(e)?t(e):(r.isArray(e)?e:r._entries(e)).map(function(e){var n=e[0],r=e[1];return t(n)+"="+t(r)}).join("&")};var d=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,p=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,h=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,t,n){a(t)&&(t=1/0);var r=!0===n?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var n=e.match(d),o=n?n[1]:e,i=o.substr(0,t);return f.test(o)?'<a href="'+o+'"'+r+">"+i+"</a>":h.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":p.test(o)?'<a href="mailto:'+o+'">'+o+"</a>":m.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":e}).join("")},t.wordcount=function(e){var t=(e=i(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return a(n)?t:n};var g=o.makeMacro(["value","default","base"],[],function(e,t,n){void 0===n&&(n=10);var r=parseInt(e,n);return a(r)?t:r});t.int=g,t.d=t.default,t.e=t.escape},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=function(e){var t,n;function o(t){var n;return(n=e.call(this)||this).precompiled=t||{},n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},o}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){var r=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t===0},t.escaped=function(e){return e instanceof r},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return e>=t},t.greaterthan=function(e,t){return e>t},t.gt=t.greaterthan,t.le=function(e,t){return e<=t},t.lessthan=function(e,t){return e<t},t.lt=t.lessthan,t.lower=function(e){return e.toLowerCase()===e},t.ne=function(e,t){return e!==t},t.null=function(e){return null===e},t.number=function(e){return"number"==typeof e},t.odd=function(e){return e%2==1},t.string=function(e){return"string"==typeof e},t.truthy=function(e){return!!e},t.undefined=function(e){return void 0===e},t.upper=function(e){return e.toUpperCase()===e},t.iterable=function(e){return"undefined"!=typeof Symbol?!!e[Symbol.iterator]:Array.isArray(e)||"string"==typeof e},t.mapping=function(e){var t=null!=e&&"object"==typeof e&&!Array.isArray(e);return Set?t&&!(e instanceof Set):t}},function(e,t,n){e.exports=function(){return{range:function(e,t,n){void 0===t?(t=e,e=0,n=1):n||(n=1);var r=[];if(n>0)for(var o=e;o<t;o+=n)r.push(o);else for(var i=e;i>t;i+=n)r.push(i);return r},cycler:function(){return function(e){var t=-1;return{current:null,reset:function(){t=-1,this.current=null},next:function(){return++t>=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(e){e=e||",";var t=!0;return function(){var n=t?"":e;return t=!1,n}}(e)}}}},function(e,t,n){var r=n(4);e.exports=function(e,t){function n(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=r.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return n.prototype.render=function(t,n){e.render(this.name,t,n)},t.set("view",n),t.set("nunjucksEnv",e),e}},function(e,t,n){var r=n(4),o=n(4),i=n(0)._prettifyError,a=n(5),s=n(7).Environment,l=n(24);function u(e,t){return!!Array.isArray(t)&&t.some(function(t){return e.match(t)})}function c(e,t){(t=t||{}).isString=!0;var n=t.env||new s([]),r=t.wrapper||l;if(!t.name)throw new Error('the "name" option is required when compiling a string');return r([d(e,t.name,n)],t)}function d(e,t,n){var r,o=(n=n||new s([])).asyncFilters,l=n.extensionsList;t=t.replace(/\\/g,"/");try{r=a.compile(e,o,l,t,n.opts)}catch(e){throw i(t,!1,e)}return{name:t,template:r}}e.exports={precompile:function(e,t){var n=(t=t||{}).env||new s([]),i=t.wrapper||l;if(t.isString)return c(e,t);var a=r.existsSync(e)&&r.statSync(e),p=[],f=[];if(a.isFile())p.push(d(r.readFileSync(e,"utf-8"),t.name||e,n));else if(a.isDirectory()){!function n(i){r.readdirSync(i).forEach(function(a){var s=o.join(i,a),l=s.substr(o.join(e,"/").length),c=r.statSync(s);c&&c.isDirectory()?u(l+="/",t.exclude)||n(s):u(l,t.include)&&f.push(s)})}(e);for(var h=0;h<f.length;h++){var m=f[h].replace(o.join(e,"/"),"");try{p.push(d(r.readFileSync(f[h],"utf-8"),m,n))}catch(e){if(!t.force)throw e;console.error(e)}}}return i(p,t)},precompileString:c}},function(e,t,n){e.exports=function(e,t){var n="";t=t||{};for(var r=0;r<e.length;r++){var o=JSON.stringify(e[r].name);n+="(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["+o+"] = (function() {\n"+e[r].template+"\n})();\n",t.asFunction&&(n+="return function(ctx, cb) { return nunjucks.render("+o+", ctx, cb); }\n"),n+="})();\n"}return n}},function(e,t,n){e.exports=function(){var e,t,n=this.runtime,r=this.lib,o=this.compiler.Compiler,i=this.parser.Parser,a=this.nodes,s=this.lexer,l=n.contextOrFrameLookup,u=n.memberLookup;function c(e){return{index:e.index,lineno:e.lineno,colno:e.colno}}if(o&&(e=o.prototype.assertType),i&&(t=i.prototype.parseAggregate),n.contextOrFrameLookup=function(e,t,n){var r=l.apply(this,arguments);if(void 0!==r)return r;switch(n){case"True":return!0;case"False":return!1;case"None":return null;default:return}},a&&o&&i){var d=a.Node.extend("Slice",{fields:["start","stop","step"],init:function(e,t,n,r,o){n=n||new a.Literal(e,t,null),r=r||new a.Literal(e,t,null),o=o||new a.Literal(e,t,1),this.parent(e,t,n,r,o)}});o.prototype.assertType=function(t){t instanceof d||e.apply(this,arguments)},o.prototype.compileSlice=function(e,t){this._emit("("),this._compileExpression(e.start,t),this._emit("),("),this._compileExpression(e.stop,t),this._emit("),("),this._compileExpression(e.step,t),this._emit(")")},i.prototype.parseAggregate=function(){var e=this,n=c(this.tokens);n.colno--,n.index--;try{return t.apply(this)}catch(t){var o=c(this.tokens),i=function(){return r._assign(e.tokens,o),t};r._assign(this.tokens,n),this.peeked=!1;var l=this.peekToken();if(l.type!==s.TOKEN_LEFT_BRACKET)throw i();this.nextToken();for(var u=new d(l.lineno,l.colno),p=!1,f=0;f<=u.fields.length&&!this.skip(s.TOKEN_RIGHT_BRACKET);f++){if(f===u.fields.length){if(!p)break;this.fail("parseSlice: too many slice components",l.lineno,l.colno)}this.skip(s.TOKEN_COLON)?p=!0:(u[u.fields[f]]=this.parseExpression(),p=this.skip(s.TOKEN_COLON)||p)}if(!p)throw i();return new a.Array(l.lineno,l.colno,[u])}}}function p(e,t,r,o){e=e||[],null===t&&(t=o<0?e.length-1:0),null===r?r=o<0?-1:e.length:r<0&&(r+=e.length),t<0&&(t+=e.length);for(var i=[],a=t;!(a<0||a>e.length||o>0&&a>=r||o<0&&a<=r);a+=o)i.push(n.memberLookup(e,a));return i}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h={pop:function(e){if(void 0===e)return this.pop();if(e>=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return this.splice(t,1);throw new Error("ValueError")},count:function(e){for(var t=0,n=0;n<this.length;n++)this[n]===e&&t++;return t},index:function(e){var t;if(-1===(t=this.indexOf(e)))throw new Error("ValueError");return t},find:function(e){return this.indexOf(e)},insert:function(e,t){return this.splice(e,0,t)}},m={items:function(){return r._entries(this)},values:function(){return r._values(this)},keys:function(){return r.keys(this)},get:function(e,t){var n=this[e];return void 0===n&&(n=t),n},has_key:function(e){return f(this,e)},pop:function(e,t){var n=this[e];if(void 0===n&&void 0!==t)n=t;else{if(void 0===n)throw new Error("KeyError");delete this[e]}return n},popitem:function(){var e=r.keys(this);if(!e.length)throw new Error("KeyError");var t=e[0],n=this[t];return delete this[t],[t,n]},setdefault:function(e,t){return void 0===t&&(t=null),e in this||(this[e]=t),this[e]},update:function(e){return r._assign(this,e),null}};return m.iteritems=m.items,m.itervalues=m.values,m.iterkeys=m.keys,n.memberLookup=function(e,t,n){return 4===arguments.length?p.apply(this,arguments):(e=e||{},r.isArray(e)&&f(h,t)?h[t].bind(e):r.isObject(e)&&f(m,t)?m[t].bind(e):u.apply(this,arguments))},function(){n.contextOrFrameLookup=l,n.memberLookup=u,o&&(o.prototype.assertType=e),i&&(i.prototype.parseAggregate=t)}}}])},e.exports=t()}(Es)),Es.exports),Os=t(Cs);const _s={GoogleChart:function({chart:e,source:t,view:n,report:r,schema:o,dashboard:i,query:a}){const[s,c]=u.useState([]),d=qa(),[p,f]=u.useState([]);l.useEffect(()=>{(async()=>{const e=await Ha.getDateRanges();f(e)})()},[]);const h=l.useMemo(()=>{const e="YYYY-MM-dd",t=a?.date_range?.name,n=p.find(e=>e.name===t);if(!n)return e;return Ga[n?.granularity]||e},[p,a]);return u.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];i.push(function(e,t){const n=[...t.doc.metrics,...t.doc.dimensions],r=e.columns.reduce((e,t)=>{const r=n.find(e=>e.name===t.name)||t;return e.push(r.title||r.name),e},[]);return r}(n,o));const a=bo(n,o);t?.forEach(e=>{const t=a(e);i.push(t)}),t?.length?c(i):c()},[e,t,n,r,o]),s?u.createElement(po,Wr({width:e?.doc.size?.width||"100%",height:i?e?.doc.size?.height||"300px":"100%",chartType:e?.doc.chart?.type,data:s,options:(t=>{if("Table"===e?.doc.chart?.type)return{...e?.doc.chart?.options,cssClassNames:d};if("AreaChart"===e?.doc.chart?.type){const n=e?.doc.chart?.options?.hAxis||{},r={...{ticks:t.slice(1).map(e=>e[0]),format:h},...n};return{...e?.doc.chart?.options,hAxis:r,focusTarget:"category"}}return e?.doc.chart?.options})(s)},e?.doc.chart?.props)):u.createElement("div",null)},LabelChart:function({chart:e,source:t,view:n,report:r,schema:o}){const[i,a]=u.useState([]),[s,l]=u.useState(),[c,d]=u.useState();return u.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];const s=bo(n,o);t.forEach(e=>i.push(s(e))),a(i);const u=e?.doc?.chart?.options||{},c=u?.index||0;if(i.length>0&&l(i[0][c]),u.subText?.format){Os.configure({autoescape:!1});const e=bo(n,o,"object")(t[0]),r=Os.renderString(u.subText?.format,e);d(r)}},[e,t,n,r,o]),u.createElement("div",{style:{display:"flex",justifyContent:"center",alignContent:"center",alignItems:"center",height:"100%",flexDirection:"column"}},u.createElement(Qa,{variant:"h6"},s?.f||s),u.createElement(Qa,{variant:"subtitle1"},c))}};function Ts(e,t){return void 0!==_s[e]?u.createElement(_s[e],t):u.createElement(Yr,t)}function Rs(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ps(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Rs(e.value)&&""!==e.value||t&&Rs(e.defaultValue)&&""!==e.defaultValue)}function As(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Ls=l.createContext();var Ns=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,u=void 0===s?"div":s,c=e.disabled,d=void 0!==c&&c,h=e.error,g=void 0!==h&&h,v=e.fullWidth,y=void 0!==v&&v,b=e.focused,w=e.hiddenLabel,x=void 0!==w&&w,k=e.margin,S=void 0===k?"none":k,E=e.required,C=void 0!==E&&E,O=e.size,_=e.variant,T=void 0===_?"standard":_,R=p(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),P=l.useState(function(){var e=!1;return n&&l.Children.forEach(n,function(t){if(As(t,["Input","Select"])){var n=As(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}}),e}),A=P[0],L=P[1],N=l.useState(function(){var e=!1;return n&&l.Children.forEach(n,function(t){As(t,["Input","Select"])&&Ps(t.props,!0)&&(e=!0)}),e}),M=N[0],I=N[1],F=l.useState(!1),$=F[0],j=F[1],z=void 0!==b?b:$;d&&z&&j(!1);var B=l.useCallback(function(){I(!0)},[]),D={adornedStart:A,setAdornedStart:L,color:a,disabled:d,error:g,filled:M,focused:z,fullWidth:y,hiddenLabel:x,margin:("small"===O?"dense":void 0)||S,onBlur:function(){j(!1)},onEmpty:l.useCallback(function(){I(!1)},[]),onFilled:B,onFocus:function(){j(!0)},registerEffect:undefined,required:C,variant:T};return l.createElement(Ls.Provider,{value:D},l.createElement(u,f({className:m(r.root,o,"none"!==S&&r["margin".concat(Kr(S))],y&&r.fullWidth),ref:t},R),n))}),Ms=zr({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(Ns);function Is(){return l.useContext(Ls)}function Fs(e){return e&&e.ownerDocument||document}var $s,js,zs,Bs,Ds={exports:{}},Ws={},Us={exports:{}},Vs={};function Ks(){return js||(js=1,Us.exports=($s||($s=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,L(x);else{var t=n(u);null!==t&&N(w,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,v(C),C=-1),f=!0;var i=p;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!T());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&N(w,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,O=5,_=-1;function T(){return!(e.unstable_now()-_<O)}function R(){if(null!==E){var t=e.unstable_now();_=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(R)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=R,k=function(){A.postMessage(null)}}else k=function(){g(R,0)};function L(e){E=e,S||(S=!0,k())}function N(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,L(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,N(w,i-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,L(x))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Vs)),Vs)),Us.exports}
|
|
15
|
+
*/var Yo,Xo=(qo||(qo=1,Yo=Go,function(e,t){Yo.exports?Yo.exports=t():e.numeral=t()}(Go.exports,function(){var e,t,n,r,o,i={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in i)if((s="function"==typeof i[o].regexps.unformat?i[o].regexps.unformat():i[o].regexps.unformat)&&n.match(s)){a=i[o].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new u(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof u},e._=t={numberToFormat:function(t,n,r){var o,i,s,l,u,c,d,p,f=a[e.options.currentLocale],h=!1,m=!1,g="",v=1e12,y=1e9,b=1e6,w="",x=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),s>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):s<v&&s>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):s<y&&s>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(s<b&&s>=1e3&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],u=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),w=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):w=e._.toFixed(t,u.length,r),l=w.split(".")[0],w=e._.includes(w,".")?f.delimiters.decimal+w.split(".")[1]:"",m&&0===Number(w.slice(1))&&(w="")):l=e._.toFixed(t,0,r),g&&!i&&Number(l)>=1e3&&g!==f.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),x=!0),l.length<o)for(var k=o-l.length;k>0;k--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(l=""),p=l+w+(g||""),h?p=(h&&x?"(":"")+p+(h&&x?")":""):c>=0?p=0===c?(x?"-":"+")+p:p+(x?"-":"+"):x&&(p="-"+p),p},stringToNumber:function(e){var t,n,r,o=a[l.currentLocale],i=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),i.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),u=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,u),t):u,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=l,e.formats=i,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,u,c;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(t){u=e.localeData(e.locale())}return i=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,!(null!==(c=t.match(/^[^\d]+/))&&(t=t.substr(1),c[0]!==i)||null!==(c=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),c[0]!==s.thousand&&c[0]!==s.million&&c[0]!==s.billion&&c[0]!==s.trillion)||(l=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=u.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,a,s=this._value,u=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)o=l.zeroFormat;else if(null===s&&null!==l.nullFormat)o=l.nullFormat;else{for(r in i)if(u.match(i[r].regexps.format)){a=i[r].format;break}o=(a=a||e._.numberToFormat)(s,u,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,o){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,o){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,i){var a,s,l,u=e._.includes(o,"ib")?r:n,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(s=Math.pow(u.base,a),l=Math.pow(u.base,a+1),null===t||0===t||t>=s&&t<l){c+=u.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,o,i)+c},unformat:function(t){var o,i,a=e._.stringToNumber(t);if(a){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){i=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){i=Math.pow(r.base,o);break}}a*=i||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],function(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})),Go.exports),Qo=t(Xo);function Jo(e,t,n="array"){const r=e.columns,o=[...t.doc.metrics,...t.doc.dimensions].reduce((e,t)=>(e[t.name]=t,e),{});return e=>{const t="array"===n?[]:{};return r.reduce((t,r)=>{const i=e[r.name],a=o[r.name];let s=i;return s="timestamp"===a.type?new Date(i):a.format?a.format&&a.prefix?{v:+i,f:a.prefix+" "+Qo(i).format(a.format)}:a.format?{v:+i,f:Qo(i).format(a.format)}:i:i,"array"===n?t.push(s):t[r.name]=s?.f||s,t},t)}}function Zo(e,t){return function(){return e.apply(t,arguments)}}const{toString:ei}=Object.prototype,{getPrototypeOf:ti}=Object,{iterator:ni,toStringTag:ri}=Symbol,oi=(e=>t=>{const n=ei.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ii=e=>(e=e.toLowerCase(),t=>oi(t)===e),ai=e=>t=>typeof t===e,{isArray:si}=Array,li=ai("undefined");const ui=ii("ArrayBuffer");const ci=ai("string"),di=ai("function"),pi=ai("number"),fi=e=>null!==e&&"object"==typeof e,hi=e=>{if("object"!==oi(e))return!1;const t=ti(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ri in e||ni in e)},mi=ii("Date"),gi=ii("File"),vi=ii("Blob"),yi=ii("FileList"),bi=ii("URLSearchParams"),[wi,xi,ki,Si]=["ReadableStream","Request","Response","Headers"].map(ii);function Ei(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),si(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ci(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Oi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ti=e=>!li(e)&&e!==Oi;const _i=(Ri="undefined"!=typeof Uint8Array&&ti(Uint8Array),e=>Ri&&e instanceof Ri);var Ri;const Pi=ii("HTMLFormElement"),Ai=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Li=ii("RegExp"),Ni=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ei(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Mi=ii("AsyncFunction"),Ii=(Fi="function"==typeof setImmediate,$i=di(Oi.postMessage),Fi?setImmediate:$i?((e,t)=>(Oi.addEventListener("message",({source:n,data:r})=>{n===Oi&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Oi.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Fi,$i;const ji="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Oi):"undefined"!=typeof process&&process.nextTick||Ii;var zi={isArray:si,isArrayBuffer:ui,isBuffer:function(e){return null!==e&&!li(e)&&null!==e.constructor&&!li(e.constructor)&&di(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||di(e.append)&&("formdata"===(t=oi(e))||"object"===t&&di(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ui(e.buffer),t},isString:ci,isNumber:pi,isBoolean:e=>!0===e||!1===e,isObject:fi,isPlainObject:hi,isReadableStream:wi,isRequest:xi,isResponse:ki,isHeaders:Si,isUndefined:li,isDate:mi,isFile:gi,isBlob:vi,isRegExp:Li,isFunction:di,isStream:e=>fi(e)&&di(e.pipe),isURLSearchParams:bi,isTypedArray:_i,isFileList:yi,forEach:Ei,merge:function e(){const{caseless:t}=Ti(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ci(n,o)||o;hi(n[i])&&hi(r)?n[i]=e(n[i],r):hi(r)?n[i]=e({},r):si(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ei(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ei(t,(t,r)=>{n&&di(t)?e[r]=Zo(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&ti(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oi,kindOfTest:ii,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(si(e))return e;let t=e.length;if(!pi(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ni]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Pi,hasOwnProperty:Ai,hasOwnProp:Ai,reduceDescriptors:Ni,freezeMethods:e=>{Ni(e,(t,n)=>{if(di(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];di(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return si(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ci,global:Oi,isContextDefined:Ti,isSpecCompliantForm:function(e){return!!(e&&di(e.append)&&"FormData"===e[ri]&&e[ni])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fi(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=si(e)?[]:{};return Ei(e,(e,t)=>{const i=n(e,r+1);!li(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Mi,isThenable:e=>e&&(fi(e)||di(e))&&di(e.then)&&di(e.catch),setImmediate:Ii,asap:ji,isIterable:e=>null!=e&&di(e[ni])};function Bi(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}zi.inherits(Bi,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:zi.toJSONObject(this.config),code:this.code,status:this.status}}});const Di=Bi.prototype,Wi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wi[e]={value:e}}),Object.defineProperties(Bi,Wi),Object.defineProperty(Di,"isAxiosError",{value:!0}),Bi.from=(e,t,n,r,o,i)=>{const a=Object.create(Di);return zi.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Bi.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Ui(e){return zi.isPlainObject(e)||zi.isArray(e)}function Vi(e){return zi.endsWith(e,"[]")?e.slice(0,-2):e}function Ki(e,t,n){return e?e.concat(t).map(function(e,t){return e=Vi(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Hi=zi.toFlatObject(zi,{},null,function(e){return/^is[A-Z]/.test(e)});function qi(e,t,n){if(!zi.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=zi.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!zi.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&zi.isSpecCompliantForm(t);if(!zi.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(zi.isDate(e))return e.toISOString();if(zi.isBoolean(e))return e.toString();if(!s&&zi.isBlob(e))throw new Bi("Blob is not supported. Use a Buffer instead.");return zi.isArrayBuffer(e)||zi.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(zi.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(zi.isArray(e)&&function(e){return zi.isArray(e)&&!e.some(Ui)}(e)||(zi.isFileList(e)||zi.endsWith(n,"[]"))&&(s=zi.toArray(e)))return n=Vi(n),s.forEach(function(e,r){!zi.isUndefined(e)&&null!==e&&t.append(!0===a?Ki([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ui(e)||(t.append(Ki(o,n,i),l(e)),!1)}const c=[],d=Object.assign(Hi,{defaultVisitor:u,convertValue:l,isVisitable:Ui});if(!zi.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!zi.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),zi.forEach(n,function(n,i){!0===(!(zi.isUndefined(n)||null===n)&&o.call(t,n,zi.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),c.pop()}}(e),t}function Gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Yi(e,t){this._pairs=[],e&&qi(e,this,t)}const Xi=Yi.prototype;function Qi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ji(e,t,n){if(!t)return e;const r=n&&n.encode||Qi;zi.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):zi.isURLSearchParams(t)?t.toString():new Yi(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Xi.append=function(e,t){this._pairs.push([e,t])},Xi.toString=function(e){const t=e?function(t){return e.call(this,t,Gi)}:Gi;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Zi{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){zi.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ta={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Yi,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const na="undefined"!=typeof window&&"undefined"!=typeof document,ra="object"==typeof navigator&&navigator||void 0,oa=na&&(!ra||["ReactNative","NativeScript","NS"].indexOf(ra.product)<0),ia="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,aa=na&&window.location.href||"http://localhost";var sa={...Object.freeze({__proto__:null,hasBrowserEnv:na,hasStandardBrowserEnv:oa,hasStandardBrowserWebWorkerEnv:ia,navigator:ra,origin:aa}),...ta};function la(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&zi.isArray(r)?r.length:i,s)return zi.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&zi.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&zi.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(zi.isFormData(e)&&zi.isFunction(e.entries)){const n={};return zi.forEachEntry(e,(e,r)=>{t(function(e){return zi.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const ua={transitional:ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=zi.isObject(e);o&&zi.isHTMLForm(e)&&(e=new FormData(e));if(zi.isFormData(e))return r?JSON.stringify(la(e)):e;if(zi.isArrayBuffer(e)||zi.isBuffer(e)||zi.isStream(e)||zi.isFile(e)||zi.isBlob(e)||zi.isReadableStream(e))return e;if(zi.isArrayBufferView(e))return e.buffer;if(zi.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qi(e,new sa.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return sa.isNode&&zi.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=zi.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qi(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(zi.isString(e))try{return(t||JSON.parse)(e),zi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ua.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(zi.isResponse(e)||zi.isReadableStream(e))return e;if(e&&zi.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Bi.from(e,Bi.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sa.classes.FormData,Blob:sa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zi.forEach(["delete","get","head","post","put","patch"],e=>{ua.headers[e]={}});const ca=zi.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const da=Symbol("internals");function pa(e){return e&&String(e).trim().toLowerCase()}function fa(e){return!1===e||null==e?e:zi.isArray(e)?e.map(fa):String(e)}function ha(e,t,n,r,o){return zi.isFunction(r)?r.call(this,t,n):(o&&(t=n),zi.isString(t)?zi.isString(r)?-1!==t.indexOf(r):zi.isRegExp(r)?r.test(t):void 0:void 0)}let ma=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=pa(t);if(!o)throw new Error("header name must be a non-empty string");const i=zi.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=fa(e))}const i=(e,t)=>zi.forEach(e,(e,n)=>o(e,n,t));if(zi.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(zi.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ca[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(zi.isObject(e)&&zi.isIterable(e)){let n,r,o={};for(const t of e){if(!zi.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?zi.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=pa(e)){const n=zi.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(zi.isFunction(t))return t.call(this,e,n);if(zi.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pa(e)){const n=zi.findKey(this,e);return!(!n||void 0===this[n]||t&&!ha(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=pa(e)){const o=zi.findKey(n,e);!o||t&&!ha(0,n[o],o,t)||(delete n[o],r=!0)}}return zi.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ha(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return zi.forEach(this,(r,o)=>{const i=zi.findKey(n,o);if(i)return t[i]=fa(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=fa(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return zi.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&zi.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[da]=this[da]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=pa(e);t[r]||(!function(e,t){const n=zi.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return zi.isArray(e)?e.forEach(r):r(e),this}};function ga(e,t){const n=this||ua,r=t||n,o=ma.from(r.headers);let i=r.data;return zi.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function va(e){return!(!e||!e.__CANCEL__)}function ya(e,t,n){Bi.call(this,null==e?"canceled":e,Bi.ERR_CANCELED,t,n),this.name="CanceledError"}function ba(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Bi("Request failed with status code "+n.status,[Bi.ERR_BAD_REQUEST,Bi.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zi.reduceDescriptors(ma.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),zi.freezeMethods(ma),zi.inherits(ya,Bi,{__CANCEL__:!0});const wa=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=u&&l-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},xa=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ka=e=>(...t)=>zi.asap(()=>e(...t));var Sa=sa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,sa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(sa.origin),sa.navigator&&/(msie|trident)/i.test(sa.navigator.userAgent)):()=>!0,Ea=sa.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];zi.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),zi.isString(r)&&a.push("path="+r),zi.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ca(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Oa=e=>e instanceof ma?{...e}:e;function Ta(e,t){t=t||{};const n={};function r(e,t,n,r){return zi.isPlainObject(e)&&zi.isPlainObject(t)?zi.merge.call({caseless:r},e,t):zi.isPlainObject(t)?zi.merge({},t):zi.isArray(t)?t.slice():t}function o(e,t,n,o){return zi.isUndefined(t)?zi.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!zi.isUndefined(t))return r(void 0,t)}function a(e,t){return zi.isUndefined(t)?zi.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Oa(e),Oa(t),0,!0)};return zi.forEach(Object.keys(Object.assign({},e,t)),function(r){const i=l[r]||o,a=i(e[r],t[r],r);zi.isUndefined(a)&&i!==s||(n[r]=a)}),n}var _a=e=>{const t=Ta({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ma.from(s),t.url=Ji(Ca(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),zi.isFormData(r))if(sa.hasStandardBrowserEnv||sa.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(sa.hasStandardBrowserEnv&&(o&&zi.isFunction(o)&&(o=o(t)),o||!1!==o&&Sa(t.url))){const e=i&&a&&Ea.read(a);e&&s.set(i,e)}return t};var Ra="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=_a(e);let o=r.data;const i=ma.from(r.headers).normalize();let a,s,l,u,c,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ma.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ba(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Bi("Request aborted",Bi.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Bi("Network Error",Bi.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ea;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Bi(t,o.clarifyTimeoutError?Bi.ETIMEDOUT:Bi.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&zi.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),zi.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),f&&([l,c]=wa(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,u]=wa(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new ya(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===sa.protocols.indexOf(v)?n(new Bi("Unsupported protocol "+v+":",Bi.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Pa=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Bi?t:new ya(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Bi(`timeout ${t} of ms exceeded`,Bi.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>zi.asap(a),s}},Aa=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},La=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Na=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of La(e))yield*Aa(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ma="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ia=Ma&&"function"==typeof ReadableStream,Fa=Ma&&("function"==typeof TextEncoder?($a=new TextEncoder,e=>$a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var $a;const ja=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},za=Ia&&ja(()=>{let e=!1;const t=new Request(sa.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=Ia&&ja(()=>zi.isReadableStream(new Response("").body)),Da={stream:Ba&&(e=>e.body)};var Wa;Ma&&(Wa=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Da[e]&&(Da[e]=zi.isFunction(Wa[e])?t=>t[e]():(t,n)=>{throw new Bi(`Response type '${e}' is not supported`,Bi.ERR_NOT_SUPPORT,n)})}));const Ua=async(e,t)=>{const n=zi.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(zi.isBlob(e))return e.size;if(zi.isSpecCompliantForm(e)){const t=new Request(sa.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return zi.isArrayBufferView(e)||zi.isArrayBuffer(e)?e.byteLength:(zi.isURLSearchParams(e)&&(e+=""),zi.isString(e)?(await Fa(e)).byteLength:void 0)})(t):n};var Va=Ma&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=_a(e);u=u?(u+"").toLowerCase():"text";let f,h=Pa([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&za&&"get"!==n&&"head"!==n&&0!==(g=await Ua(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(zi.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=xa(g,wa(ka(l)));r=Na(n.body,65536,e,t)}}zi.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f,p);const a=Ba&&("stream"===u||"response"===u);if(Ba&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=zi.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&xa(t,wa(ka(s),!0))||[];i=new Response(Na(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}u=u||"text";let v=await Da[zi.findKey(Da,u)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{ba(t,n,{data:v,headers:ma.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Bi("Network Error",Bi.ERR_NETWORK,e,f),{cause:t.cause||t});throw Bi.from(t,t&&t.code,e,f)}});const Ka={http:null,xhr:Ra,fetch:Va};zi.forEach(Ka,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ha=e=>`- ${e}`,qa=e=>zi.isFunction(e)||null===e||!1===e;var Ga=e=>{e=zi.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!qa(n)&&(r=Ka[(t=String(n)).toLowerCase()],void 0===r))throw new Bi(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Bi("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ha).join("\n"):" "+Ha(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Ya(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function Xa(e){Ya(e),e.headers=ma.from(e.headers),e.data=ga.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ga(e.adapter||ua.adapter)(e).then(function(t){return Ya(e),t.data=ga.call(e,e.transformResponse,t),t.headers=ma.from(t.headers),t},function(t){return va(t)||(Ya(e),t&&t.response&&(t.response.data=ga.call(e,e.transformResponse,t.response),t.response.headers=ma.from(t.response.headers))),Promise.reject(t)})}const Qa="1.10.0",Ja={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ja[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Za={};Ja.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Qa+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Bi(r(o," has been removed"+(t?" in "+t:"")),Bi.ERR_DEPRECATED);return t&&!Za[o]&&(Za[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Ja.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var es={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Bi("options must be an object",Bi.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Bi("option "+i+" must be "+n,Bi.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Bi("Unknown option "+i,Bi.ERR_BAD_OPTION)}},validators:Ja};const ts=es.validators;let ns=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zi,response:new Zi}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ta(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&es.assertOptions(n,{silentJSONParsing:ts.transitional(ts.boolean),forcedJSONParsing:ts.transitional(ts.boolean),clarifyTimeoutError:ts.transitional(ts.boolean)},!1),null!=r&&(zi.isFunction(r)?t.paramsSerializer={serialize:r}:es.assertOptions(r,{encode:ts.function,serialize:ts.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),es.assertOptions(t,{baseUrl:ts.spelling("baseURL"),withXsrfToken:ts.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&zi.merge(o.common,o[t.method]);o&&zi.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ma.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[Xa.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let p=t;for(d=0;d<c;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=Xa.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Ji(Ca((e=Ta(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};zi.forEach(["delete","get","head","options"],function(e){ns.prototype[e]=function(t,n){return this.request(Ta(n||{},{method:e,url:t,data:(n||{}).data}))}}),zi.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Ta(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ns.prototype[e]=t(),ns.prototype[e+"Form"]=t(!0)});const rs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rs).forEach(([e,t])=>{rs[t]=e});const os=function e(t){const n=new ns(t),r=Zo(ns.prototype.request,n);return zi.extend(r,ns.prototype,n,{allOwnKeys:!0}),zi.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ta(t,n))},r}(ua);os.Axios=ns,os.CanceledError=ya,os.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new ya(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},os.isCancel=va,os.VERSION=Qa,os.toFormData=qi,os.AxiosError=Bi,os.Cancel=os.CanceledError,os.all=function(e){return Promise.all(e)},os.spread=function(e){return function(t){return e.apply(null,t)}},os.isAxiosError=function(e){return zi.isObject(e)&&!0===e.isAxiosError},os.mergeConfig=Ta,os.AxiosHeaders=ma,os.formToJSON=e=>la(zi.isHTMLForm(e)?new FormData(e):e),os.getAdapter=Ga,os.HttpStatusCode=rs,os.default=os;const{Axios:is,AxiosError:as,CanceledError:ss,isCancel:ls,CancelToken:us,VERSION:cs,all:ds,Cancel:ps,isAxiosError:fs,spread:hs,toFormData:ms,AxiosHeaders:gs,HttpStatusCode:vs,formToJSON:ys,getAdapter:bs,mergeConfig:ws}=os,xs="https://report-api.netcapital.pro",ks=os.create({baseURL:xs,headers:{"Content-Type":"application/json"}}),Ss={},Es=()=>{const e=Object.keys(Ss);return e.length>0?e[0]:null},Cs={setBaseUrl(e){ks.defaults.baseURL=e||xs},setToken(e){e&&(ks.defaults.headers.common.Authorization=`Bearer ${e}`)},loadDashboardMeta:async({dashboardId:e})=>{const{data:t}=await ks.get(`/dashboard-meta/${e}`);return Ss[e]={dashboards:t.dashboards||{},charts:t.charts||{},reports:t.reports||{},reportMetadata:t.reportMetadata||{},dateRanges:t.dateRanges||[]},Ss[e]},getDashboard:async({id:e,dashboardId:t})=>{const n=t||Es();if(n&&Ss[n]?.dashboards?.[e])return Ss[n].dashboards[e];const{data:r}=await ks.get(`/entity/dashboards/${e}`);return r},getChart:async({id:e,dashboardId:t})=>{const n=t||Es();if(n&&Ss[n]?.charts?.[e])return Ss[n].charts[e];const{data:r}=await ks.get(`/entity/charts/${e}`);return r},getReport:async({id:e,dashboardId:t})=>{const n=t||Es();if(n&&Ss[n]?.reports?.[e])return Ss[n].reports[e];const{data:r}=await ks.get(`/entity/reports/${e}`);return r},getReportSchema:async({id:e,dashboardId:t,query:n={}})=>{const r=t||Es();if(r&&Ss[r]?.reportMetadata?.[e])return Ss[r].reportMetadata[e];const{data:o}=await ks.post(`/reports/${e}/metadata`,n);return o},runReport:async({id:e,query:t={}})=>{const{data:n}=await ks.post(`/reports/${e}/run`,t);return n},getDateRanges:async({dashboardId:e}={})=>{const t=e||Es();if(t&&Ss[t]?.dateRanges)return Ss[t].dateRanges;const{data:n}=await ks.get("/globals/date-ranges");return n}},Os=So(e=>({headerRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},tableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},oddTableRow:{fontFamily:e.typography.fontFamily,fontSize:e.typography.fontSize},headerCell:{backgroundColor:"white",padding:"4px !important"}})),Ts={none:"YYYY-MM-dd",day:"MMM dd",week:"MMM dd",month:"YYYY MMM",year:"YYYY"};var _s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Rs=l.forwardRef(function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,u=e.component,c=e.display,d=void 0===c?"initial":c,h=e.gutterBottom,g=void 0!==h&&h,v=e.noWrap,y=void 0!==v&&v,b=e.paragraph,w=void 0!==b&&b,x=e.variant,k=void 0===x?"body1":x,S=e.variantMapping,E=void 0===S?_s:S,C=p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),O=u||(w?"p":E[k]||_s[k])||"span";return l.createElement(O,f({className:m(o.root,i,"inherit"!==k&&o[k],"initial"!==s&&o["color".concat(Co(s))],y&&o.noWrap,g&&o.gutterBottom,w&&o.paragraph,"inherit"!==r&&o["align".concat(Co(r))],"initial"!==d&&o["display".concat(Co(d))]),ref:t},C))}),Ps=bo(function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},{name:"MuiTypography"})(Rs),As="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Ls(){throw new Error("setTimeout has not been defined")}function Ns(){throw new Error("clearTimeout has not been defined")}var Ms=Ls,Is=Ns;function Fs(e){if(Ms===setTimeout)return setTimeout(e,0);if((Ms===Ls||!Ms)&&setTimeout)return Ms=setTimeout,setTimeout(e,0);try{return Ms(e,0)}catch(t){try{return Ms.call(null,e,0)}catch(t){return Ms.call(this,e,0)}}}"function"==typeof As.setTimeout&&(Ms=setTimeout),"function"==typeof As.clearTimeout&&(Is=clearTimeout);var $s,js=[],zs=!1,Bs=-1;function Ds(){zs&&$s&&(zs=!1,$s.length?js=$s.concat(js):Bs=-1,js.length&&Ws())}function Ws(){if(!zs){var e=Fs(Ds);zs=!0;for(var t=js.length;t;){for($s=js,js=[];++Bs<t;)$s&&$s[Bs].run();Bs=-1,t=js.length}$s=null,zs=!1,function(e){if(Is===clearTimeout)return clearTimeout(e);if((Is===Ns||!Is)&&clearTimeout)return Is=clearTimeout,clearTimeout(e);try{return Is(e)}catch(t){try{return Is.call(null,e)}catch(t){return Is.call(this,e)}}}(e)}}function Us(e,t){this.fun=e,this.array=t}Us.prototype.run=function(){this.fun.apply(null,this.array)};function Vs(){}var Ks=Vs,Hs=Vs,qs=Vs,Gs=Vs,Ys=Vs,Xs=Vs,Qs=Vs;var Js=As.performance||{},Zs=Js.now||Js.mozNow||Js.msNow||Js.oNow||Js.webkitNow||function(){return(new Date).getTime()};var el=new Date;var tl,nl={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];js.push(new Us(e,t)),1!==js.length||zs||Fs(Ws)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ks,addListener:Hs,once:qs,off:Gs,removeListener:Ys,removeAllListeners:Xs,emit:Qs,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Zs.call(Js),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-el)/1e3}},rl={exports:{}};var ol=(tl||(tl=1,function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){var r=Array.prototype,o=Object.prototype,i={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},a=/[&"'<>\\]/g;function s(e,t){return o.hasOwnProperty.call(e,t)}function l(e){return i[e]}function u(e,t,n){var r,o,i;if(e instanceof Error&&(e=(o=e).name+": "+o.message),Object.setPrototypeOf?(r=new Error(e),Object.setPrototypeOf(r,u.prototype)):(r=this,Object.defineProperty(r,"message",{enumerable:!1,writable:!0,value:e})),Object.defineProperty(r,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(r,this.constructor),o){var a=Object.getOwnPropertyDescriptor(o,"stack");(i=a&&(a.get||function(){return a.value}))||(i=function(){return o.stack})}else{var s=new Error(e).stack;i=function(){return s}}return Object.defineProperty(r,"stack",{get:function(){return i.call(r)}}),Object.defineProperty(r,"cause",{value:o}),r.lineno=t,r.colno=n,r.firstUpdate=!0,r.Update=function(e){var t="("+(e||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?t+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(t+=" [Line "+this.lineno+"]")),t+="\n ",this.firstUpdate&&(t+=" "),this.message=t+(this.message||""),this.firstUpdate=!1,this},r}function c(e){return"[object Function]"===o.toString.call(e)}function d(e){return"[object Array]"===o.toString.call(e)}function p(e){return"[object String]"===o.toString.call(e)}function f(e){return"[object Object]"===o.toString.call(e)}function h(e){var t,n=(t=e)?"string"==typeof t?t.split("."):[t]:[];return function(e){for(var t=e,r=0;r<n.length;r++){var o=n[r];if(!s(t,o))return;t=t[o]}return t}}function m(e){return Array.prototype.slice.call(e)}function g(e,t,n){return Array.prototype.indexOf.call(e||[],t,n)}function v(e){var t=[];for(var n in e)s(e,n)&&t.push(n);return t}(t=e.exports={}).hasOwnProp=s,t._prettifyError=function(e,n,r){if(r.Update||(r=new t.TemplateError(r)),r.Update(e),!n){var o=r;(r=new Error(o.message)).name=o.name}return r},Object.setPrototypeOf?Object.setPrototypeOf(u.prototype,Error.prototype):u.prototype=Object.create(Error.prototype,{constructor:{value:u}}),t.TemplateError=u,t.escape=function(e){return e.replace(a,l)},t.isFunction=c,t.isArray=d,t.isString=p,t.isObject=f,t.getAttrGetter=h,t.groupBy=function(e,t,n){for(var r={},o=c(t)?t:h(t),i=0;i<e.length;i++){var a=e[i],s=o(a,i);if(void 0===s&&!0===n)throw new TypeError('groupby: attribute "'+t+'" resolved to undefined');(r[s]||(r[s]=[])).push(a)}return r},t.toArray=m,t.without=function(e){var t=[];if(!e)return t;for(var n=e.length,r=m(arguments).slice(1),o=-1;++o<n;)-1===g(r,e[o])&&t.push(e[o]);return t},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},t.each=function(e,t,n){if(null!=e)if(r.forEach&&e.forEach===r.forEach)e.forEach(t,n);else if(e.length===+e.length)for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)},t.map=function(e,t){var n=[];if(null==e)return n;if(r.map&&e.map===r.map)return e.map(t);for(var o=0;o<e.length;o++)n[n.length]=t(e[o],o);return e.length===+e.length&&(n.length=e.length),n},t.asyncIter=function(e,t,n){var r=-1;!function o(){++r<e.length?t(e[r],r,o,n):n()}()},t.asyncFor=function(e,t,n){var r=v(e||{}),o=r.length,i=-1;!function a(){i++;var s=r[i];i<o?t(s,e[s],i,o,a):n()}()},t.indexOf=g,t.keys=v,t._entries=function(e){return v(e).map(function(t){return[t,e[t]]})},t._values=function(e){return v(e).map(function(t){return e[t]})},t._assign=t.extend=function(e,t){return e=e||{},v(t).forEach(function(n){e[n]=t[n]}),e},t.inOperator=function(e,t){if(d(t)||p(t))return-1!==t.indexOf(e);if(f(t))return e in t;throw new Error('Cannot use "in" operator to search for "'+e+'" in unexpected types.')}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}var s=n(16),l=n(0);function u(e,t,n){n=n||{},l.keys(n).forEach(function(t){var r,o;n[t]=(r=e.prototype[t],o=n[t],"function"!=typeof r||"function"!=typeof o?o:function(){var e=this.parent;this.parent=r;var t=o.apply(this,arguments);return this.parent=e,t})});var o=function(e){function n(){return e.apply(this,arguments)||this}return i(n,e),r(n,[{key:"typename",get:function(){return t}}]),n}(e);return l._assign(o.prototype,n),o}var c=function(){function e(){this.init.apply(this,arguments)}return e.prototype.init=function(){},e.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),u(this,e,t)},r(e,[{key:"typename",get:function(){return this.constructor.name}}]),e}(),d=function(e){function t(){var t,n;return(t=n=e.call(this)||this).init.apply(t,arguments),n}return i(t,e),t.prototype.init=function(){},t.extend=function(e,t){return"object"==typeof e&&(t=e,e="anonymous"),u(this,e,t)},r(t,[{key:"typename",get:function(){return this.constructor.name}}]),t}(s);e.exports={Obj:c,EmitterObj:d}},function(e,t,n){var r=n(0),o=Array.from,i="function"==typeof Symbol&&Symbol.iterator&&"function"==typeof o,a=function(){function e(e,t){this.variables=Object.create(null),this.parent=e,this.topLevel=!1,this.isolateWrites=t}var t=e.prototype;return t.set=function(e,t,n){var r=e.split("."),o=this.variables,i=this;if(n&&(i=this.resolve(r[0],!0)))i.set(e,t);else{for(var a=0;a<r.length-1;a++){var s=r[a];o[s]||(o[s]={}),o=o[s]}o[r[r.length-1]]=t}},t.get=function(e){var t=this.variables[e];return void 0!==t?t:null},t.lookup=function(e){var t=this.parent,n=this.variables[e];return void 0!==n?n:t&&t.lookup(e)},t.resolve=function(e,t){var n=t&&this.isolateWrites?void 0:this.parent;return void 0!==this.variables[e]?this:n&&n.resolve(e)},t.push=function(t){return new e(this,t)},t.pop=function(){return this.parent},e}();function s(e){return e&&Object.prototype.hasOwnProperty.call(e,"__keywords")}function l(e){var t=e.length;return 0===t?0:s(e[t-1])?t-1:t}function u(e){if("string"!=typeof e)return e;this.val=e,this.length=e.length}u.prototype=Object.create(String.prototype,{length:{writable:!0,configurable:!0,value:0}}),u.prototype.valueOf=function(){return this.val},u.prototype.toString=function(){return this.val},e.exports={Frame:a,makeMacro:function(e,t,n){return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a,u=l(o),c=function(e){var t=e.length;if(t){var n=e[t-1];if(s(n))return n}return{}}(o);if(u>e.length)a=o.slice(0,e.length),o.slice(a.length,u).forEach(function(e,n){n<t.length&&(c[t[n]]=e)}),a.push(c);else if(u<e.length){a=o.slice(0,u);for(var d=u;d<e.length;d++){var p=e[d];a.push(c[p]),delete c[p]}a.push(c)}else a=o;return n.apply(this,a)}},makeKeywordArgs:function(e){return e.__keywords=!0,e},numArgs:l,suppressValue:function(e,t){return e=null!=e?e:"",!t||e instanceof u||(e=r.escape(e.toString())),e},ensureDefined:function(e,t,n){if(null==e)throw new r.TemplateError("attempted to output null or undefined value",t+1,n+1);return e},memberLookup:function(e,t){if(null!=e)return"function"==typeof e[t]?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e[t].apply(e,r)}:e[t]},contextOrFrameLookup:function(e,t,n){var r=t.lookup(n);return void 0!==r?r:e.lookup(n)},callWrap:function(e,t,n,r){if(!e)throw new Error("Unable to call `"+t+"`, which is undefined or falsey");if("function"!=typeof e)throw new Error("Unable to call `"+t+"`, which is not a function");return e.apply(n,r)},handleError:function(e,t,n){return e.lineno?e:new r.TemplateError(e,t,n)},isArray:r.isArray,keys:r.keys,SafeString:u,copySafeness:function(e,t){return e instanceof u?new u(t):t.toString()},markSafe:function(e){var t=typeof e;return"string"===t?new u(e):"function"!==t?e:function(t){var n=e.apply(this,arguments);return"string"==typeof n?new u(n):n}},asyncEach:function(e,t,n,o){if(r.isArray(e)){var i=e.length;r.asyncIter(e,function(e,r,o){switch(t){case 1:n(e,r,i,o);break;case 2:n(e[0],e[1],r,i,o);break;case 3:n(e[0],e[1],e[2],r,i,o);break;default:e.push(r,i,o),n.apply(this,e)}},o)}else r.asyncFor(e,function(e,t,r,o,i){n(e,t,r,o,i)},o)},asyncAll:function(e,t,n,o){var i,a,s=0;function l(e,t){s++,a[e]=t,s===i&&o(null,a.join(""))}if(r.isArray(e))if(i=e.length,a=new Array(i),0===i)o(null,"");else for(var u=0;u<e.length;u++){var c=e[u];switch(t){case 1:n(c,u,i,l);break;case 2:n(c[0],c[1],u,i,l);break;case 3:n(c[0],c[1],c[2],u,i,l);break;default:c.push(u,i,l),n.apply(this,c)}}else{var d=r.keys(e||{});if(i=d.length,a=new Array(i),0===i)o(null,"");else for(var p=0;p<d.length;p++){var f=d[p];n(f,e[f],p,i,l)}}},inOperator:r.inOperator,fromIterator:function(e){return"object"!=typeof e||null===e||r.isArray(e)?e:i&&Symbol.iterator in e?o(e):e}}},function(e,t,n){function r(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e,t,n){e instanceof t&&n.push(e),e instanceof l&&e.findAll(t,n)}var l=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(e,t){for(var n=arguments,r=this,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];this.lineno=e,this.colno=t,this.fields.forEach(function(e,t){var o=n[t+2];void 0===o&&(o=null),r[e]=o})},n.findAll=function(e,t){var n=this;return t=t||[],this instanceof c?this.children.forEach(function(n){return s(n,e,t)}):this.fields.forEach(function(r){return s(n[r],e,t)}),t},n.iterFields=function(e){var t=this;this.fields.forEach(function(n){e(t[n],n)})},t}(n(1).Obj),u=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),r(t,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),t}(l),c=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.init=function(t,n,r){e.prototype.init.call(this,t,n,r||[])},n.addChild=function(e){this.children.push(e)},r(t,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),t}(l),d=c.extend("Root"),p=u.extend("Literal"),f=u.extend("Symbol"),h=c.extend("Group"),m=c.extend("Array"),g=l.extend("Pair",{fields:["key","value"]}),v=c.extend("Dict"),y=l.extend("LookupVal",{fields:["target","val"]}),b=l.extend("If",{fields:["cond","body","else_"]}),w=b.extend("IfAsync"),x=l.extend("InlineIf",{fields:["cond","body","else_"]}),k=l.extend("For",{fields:["arr","name","body","else_"]}),S=k.extend("AsyncEach"),E=k.extend("AsyncAll"),C=l.extend("Macro",{fields:["name","args","body"]}),O=C.extend("Caller"),T=l.extend("Import",{fields:["template","target","withContext"]}),_=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t,n,r,o,i){e.prototype.init.call(this,t,n,r,o||new c,i)},r(t,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),t}(l),R=l.extend("FunCall",{fields:["name","args"]}),P=R.extend("Filter"),A=P.extend("FilterAsync",{fields:["name","args","symbol"]}),L=v.extend("KeywordArgs"),N=l.extend("Block",{fields:["name","body"]}),M=l.extend("Super",{fields:["blockName","symbol"]}),I=l.extend("TemplateRef",{fields:["template"]}).extend("Extends"),F=l.extend("Include",{fields:["template","ignoreMissing"]}),$=l.extend("Set",{fields:["targets","value"]}),j=l.extend("Switch",{fields:["expr","cases","default"]}),z=l.extend("Case",{fields:["cond","body"]}),B=c.extend("Output"),D=l.extend("Capture",{fields:["body"]}),W=p.extend("TemplateData"),U=l.extend("UnaryOp",{fields:["target"]}),V=l.extend("BinOp",{fields:["left","right"]}),K=V.extend("In"),H=V.extend("Is"),q=V.extend("Or"),G=V.extend("And"),Y=U.extend("Not"),X=V.extend("Add"),Q=V.extend("Concat"),J=V.extend("Sub"),Z=V.extend("Mul"),ee=V.extend("Div"),te=V.extend("FloorDiv"),ne=V.extend("Mod"),re=V.extend("Pow"),oe=U.extend("Neg"),ie=U.extend("Pos"),ae=l.extend("Compare",{fields:["expr","ops"]}),se=l.extend("CompareOperand",{fields:["expr","type"]}),le=l.extend("CallExtension",{init:function(e,t,n,r){this.parent(),this.extName=e.__name||e,this.prop=t,this.args=n||new c,this.contentArgs=r||[],this.autoescape=e.autoescape},fields:["extName","prop","args","contentArgs"]}),ue=le.extend("CallExtensionAsync");function ce(e,t,n){var r=e.split("\n");r.forEach(function(e,o){e&&(n&&o>0||!n)&&nl.stdout.write(" ".repeat(t));var i=o===r.length-1?"":"\n";nl.stdout.write(""+e+i)})}e.exports={Node:l,Root:d,NodeList:c,Value:u,Literal:p,Symbol:f,Group:h,Array:m,Pair:g,Dict:v,Output:B,Capture:D,TemplateData:W,If:b,IfAsync:w,InlineIf:x,For:k,AsyncEach:S,AsyncAll:E,Macro:C,Caller:O,Import:T,FromImport:_,FunCall:R,Filter:P,FilterAsync:A,KeywordArgs:L,Block:N,Super:M,Extends:I,Include:F,Set:$,Switch:j,Case:z,LookupVal:y,BinOp:V,In:K,Is:H,Or:q,And:G,Not:Y,Add:X,Concat:Q,Sub:J,Mul:Z,Div:ee,FloorDiv:te,Mod:ne,Pow:re,Neg:oe,Pos:ie,Compare:ae,CompareOperand:se,CallExtension:le,CallExtensionAsync:ue,printNodes:function e(t,n){if(n=n||0,ce(t.typename+": ",n),t instanceof c)ce("\n"),t.children.forEach(function(t){e(t,n+2)});else if(t instanceof le)ce(t.extName+"."+t.prop+"\n"),t.args&&e(t.args,n+2),t.contentArgs&&t.contentArgs.forEach(function(t){e(t,n+2)});else{var r=[],o=null;t.iterFields(function(e,t){e instanceof l?r.push([t,e]):(o=o||{})[t]=e}),o?ce(JSON.stringify(o,null,2)+"\n",null,!0):ce("\n"),r.forEach(function(t){var r=t[0],o=t[1];ce("["+r+"] =>",n+2),e(o,n+4)})}}}},function(e,t){},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(8),i=n(17),a=n(3),s=n(0).TemplateError,l=n(2).Frame,u=n(1).Obj,c={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.init=function(e,t){this.templateName=e,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=t},i.fail=function(e,t,n){throw void 0!==t&&(t+=1),void 0!==n&&(n+=1),new s(e,t,n)},i._pushBuffer=function(){var e=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=e,this._emit("var "+this.buffer+' = "";'),e},i._popBuffer=function(){this.buffer=this.bufferStack.pop()},i._emit=function(e){this.codebuf.push(e)},i._emitLine=function(e){this._emit(e+"\n")},i._emitLines=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e._emitLine(t)})},i._emitFuncBegin=function(e,t){this.buffer="output",this._scopeClosers="",this._emitLine("function "+t+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+e.lineno+";"),this._emitLine("var colno = "+e.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},i._emitFuncEnd=function(e){e||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},i._addScopeLevel=function(){this._scopeClosers+="})"},i._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},i._withScopedSyntax=function(e){var t=this._scopeClosers;this._scopeClosers="",e.call(this),this._closeScopeLevels(),this._scopeClosers=t},i._makeCallback=function(e){var t=this._tmpid();return"function("+t+(e?","+e:"")+") {\nif("+t+") { cb("+t+"); return; }"},i._tmpid=function(){return this.lastId++,"t_"+this.lastId},i._templateName=function(){return null==this.templateName?"undefined":JSON.stringify(this.templateName)},i._compileChildren=function(e,t){var n=this;e.children.forEach(function(e){n.compile(e,t)})},i._compileAggregate=function(e,t,n,r){var o=this;n&&this._emit(n),e.children.forEach(function(e,n){n>0&&o._emit(","),o.compile(e,t)}),r&&this._emit(r)},i._compileExpression=function(e,t){this.assertType(e,a.Literal,a.Symbol,a.Group,a.Array,a.Dict,a.FunCall,a.Caller,a.Filter,a.LookupVal,a.Compare,a.InlineIf,a.In,a.Is,a.And,a.Or,a.Not,a.Add,a.Concat,a.Sub,a.Mul,a.Div,a.FloorDiv,a.Mod,a.Pow,a.Neg,a.Pos,a.Compare,a.NodeList),this.compile(e,t)},i.assertType=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.some(function(t){return e instanceof t})||this.fail("assertType: invalid type: "+e.typename,e.lineno,e.colno)},i.compileCallExtension=function(e,t,n){var r=this,o=e.args,i=e.contentArgs,s="boolean"!=typeof e.autoescape||e.autoescape;if(n||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+e.extName+'")["'+e.prop+'"]('),this._emit("context"),(o||i)&&this._emit(","),o&&(o instanceof a.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),o.children.forEach(function(e,n){r._compileExpression(e,t),(n!==o.children.length-1||i.length)&&r._emit(",")})),i.length&&i.forEach(function(e,n){if(n>0&&r._emit(","),e){r._emitLine("function(cb) {"),r._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var o=r._pushBuffer();r._withScopedSyntax(function(){r.compile(e,t),r._emitLine("cb(null, "+o+");")}),r._popBuffer(),r._emitLine("return "+o+";"),r._emitLine("}")}else r._emit("null")}),n){var l=this._tmpid();this._emitLine(", "+this._makeCallback(l)),this._emitLine(this.buffer+" += runtime.suppressValue("+l+", "+s+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+s+" && env.opts.autoescape);\n")},i.compileCallExtensionAsync=function(e,t){this.compileCallExtension(e,t,!0)},i.compileNodeList=function(e,t){this._compileChildren(e,t)},i.compileLiteral=function(e){if("string"==typeof e.value){var t=e.value.replace(/\\/g,"\\\\");t=(t=(t=(t=(t=t.replace(/"/g,'\\"')).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t")).replace(/\u2028/g,"\\u2028"),this._emit('"'+t+'"')}else null===e.value?this._emit("null"):this._emit(e.value.toString())},i.compileSymbol=function(e,t){var n=e.value,r=t.lookup(n);r?this._emit(r):this._emit('runtime.contextOrFrameLookup(context, frame, "'+n+'")')},i.compileGroup=function(e,t){this._compileAggregate(e,t,"(",")")},i.compileArray=function(e,t){this._compileAggregate(e,t,"[","]")},i.compileDict=function(e,t){this._compileAggregate(e,t,"{","}")},i.compilePair=function(e,t){var n=e.key,r=e.value;n instanceof a.Symbol?n=new a.Literal(n.lineno,n.colno,n.value):n instanceof a.Literal&&"string"==typeof n.value||this.fail("compilePair: Dict keys must be strings or names",n.lineno,n.colno),this.compile(n,t),this._emit(": "),this._compileExpression(r,t)},i.compileInlineIf=function(e,t){this._emit("("),this.compile(e.cond,t),this._emit("?"),this.compile(e.body,t),this._emit(":"),null!==e.else_?this.compile(e.else_,t):this._emit('""'),this._emit(")")},i.compileIn=function(e,t){this._emit("runtime.inOperator("),this.compile(e.left,t),this._emit(","),this.compile(e.right,t),this._emit(")")},i.compileIs=function(e,t){var n=e.right.name?e.right.name.value:e.right.value;this._emit('env.getTest("'+n+'").call(context, '),this.compile(e.left,t),e.right.args&&(this._emit(","),this.compile(e.right.args,t)),this._emit(") === true")},i._binOpEmitter=function(e,t,n){this.compile(e.left,t),this._emit(n),this.compile(e.right,t)},i.compileOr=function(e,t){return this._binOpEmitter(e,t," || ")},i.compileAnd=function(e,t){return this._binOpEmitter(e,t," && ")},i.compileAdd=function(e,t){return this._binOpEmitter(e,t," + ")},i.compileConcat=function(e,t){return this._binOpEmitter(e,t,' + "" + ')},i.compileSub=function(e,t){return this._binOpEmitter(e,t," - ")},i.compileMul=function(e,t){return this._binOpEmitter(e,t," * ")},i.compileDiv=function(e,t){return this._binOpEmitter(e,t," / ")},i.compileMod=function(e,t){return this._binOpEmitter(e,t," % ")},i.compileNot=function(e,t){this._emit("!"),this.compile(e.target,t)},i.compileFloorDiv=function(e,t){this._emit("Math.floor("),this.compile(e.left,t),this._emit(" / "),this.compile(e.right,t),this._emit(")")},i.compilePow=function(e,t){this._emit("Math.pow("),this.compile(e.left,t),this._emit(", "),this.compile(e.right,t),this._emit(")")},i.compileNeg=function(e,t){this._emit("-"),this.compile(e.target,t)},i.compilePos=function(e,t){this._emit("+"),this.compile(e.target,t)},i.compileCompare=function(e,t){var n=this;this.compile(e.expr,t),e.ops.forEach(function(e){n._emit(" "+c[e.type]+" "),n.compile(e.expr,t)})},i.compileLookupVal=function(e,t){this._emit("runtime.memberLookup(("),this._compileExpression(e.target,t),this._emit("),"),this._compileExpression(e.val,t),this._emit(")")},i._getNodeName=function(e){switch(e.typename){case"Symbol":return e.value;case"FunCall":return"the return value of ("+this._getNodeName(e.name)+")";case"LookupVal":return this._getNodeName(e.target)+'["'+this._getNodeName(e.val)+'"]';case"Literal":return e.value.toString();default:return"--expression--"}},i.compileFunCall=function(e,t){this._emit("(lineno = "+e.lineno+", colno = "+e.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(e.name,t),this._emit(', "'+this._getNodeName(e.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(e.args,t,"[","])"),this._emit(")")},i.compileFilter=function(e,t){var n=e.name;this.assertType(n,a.Symbol),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emit(")")},i.compileFilterAsync=function(e,t){var n=e.name,r=e.symbol.value;this.assertType(n,a.Symbol),t.set(r,r),this._emit('env.getFilter("'+n.value+'").call(context, '),this._compileAggregate(e.args,t),this._emitLine(", "+this._makeCallback(r)),this._addScopeLevel()},i.compileKeywordArgs=function(e,t){this._emit("runtime.makeKeywordArgs("),this.compileDict(e,t),this._emit(")")},i.compileSet=function(e,t){var n=this,r=[];e.targets.forEach(function(e){var o=e.value,i=t.lookup(o);null==i&&(i=n._tmpid(),n._emitLine("var "+i+";")),r.push(i)}),e.value?(this._emit(r.join(" = ")+" = "),this._compileExpression(e.value,t),this._emitLine(";")):(this._emit(r.join(" = ")+" = "),this.compile(e.body,t),this._emitLine(";")),e.targets.forEach(function(e,t){var o=r[t],i=e.value;n._emitLine('frame.set("'+i+'", '+o+", true);"),n._emitLine("if(frame.topLevel) {"),n._emitLine('context.setVariable("'+i+'", '+o+");"),n._emitLine("}"),"_"!==i.charAt(0)&&(n._emitLine("if(frame.topLevel) {"),n._emitLine('context.addExport("'+i+'", '+o+");"),n._emitLine("}"))})},i.compileSwitch=function(e,t){var n=this;this._emit("switch ("),this.compile(e.expr,t),this._emit(") {"),e.cases.forEach(function(e,r){n._emit("case "),n.compile(e.cond,t),n._emit(": "),n.compile(e.body,t),e.body.children.length&&n._emitLine("break;")}),e.default&&(this._emit("default:"),this.compile(e.default,t)),this._emit("}")},i.compileIf=function(e,t,n){var r=this;this._emit("if("),this._compileExpression(e.cond,t),this._emitLine(") {"),this._withScopedSyntax(function(){r.compile(e.body,t),n&&r._emit("cb()")}),e.else_?(this._emitLine("}\nelse {"),this._withScopedSyntax(function(){r.compile(e.else_,t),n&&r._emit("cb()")})):n&&(this._emitLine("}\nelse {"),this._emit("cb()")),this._emitLine("}")},i.compileIfAsync=function(e,t){this._emit("(function(cb) {"),this.compileIf(e,t,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},i._emitLoopBindings=function(e,t,n,r){var o=this;[{name:"index",val:n+" + 1"},{name:"index0",val:n},{name:"revindex",val:r+" - "+n},{name:"revindex0",val:r+" - "+n+" - 1"},{name:"first",val:n+" === 0"},{name:"last",val:n+" === "+r+" - 1"},{name:"length",val:r}].forEach(function(e){o._emitLine('frame.set("loop.'+e.name+'", '+e.val+");")})},i.compileFor=function(e,t){var n=this,r=this._tmpid(),o=this._tmpid(),i=this._tmpid();if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+i+" = "),this._compileExpression(e.arr,t),this._emitLine(";"),this._emit("if("+i+") {"),this._emitLine(i+" = runtime.fromIterator("+i+");"),e.name instanceof a.Array){this._emitLine("var "+r+";"),this._emitLine("if(runtime.isArray("+i+")) {"),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for("+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),e.name.children.forEach(function(o,a){var s=n._tmpid();n._emitLine("var "+s+" = "+i+"["+r+"]["+a+"];"),n._emitLine('frame.set("'+o+'", '+i+"["+r+"]["+a+"]);"),t.set(e.name.children[a].value,s)}),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("} else {");var s=e.name.children,l=s[0],u=s[1],c=this._tmpid(),d=this._tmpid();t.set(l.value,c),t.set(u.value,d),this._emitLine(r+" = -1;"),this._emitLine("var "+o+" = runtime.keys("+i+").length;"),this._emitLine("for(var "+c+" in "+i+") {"),this._emitLine(r+"++;"),this._emitLine("var "+d+" = "+i+"["+c+"];"),this._emitLine('frame.set("'+l.value+'", '+c+");"),this._emitLine('frame.set("'+u.value+'", '+d+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}"),this._emitLine("}")}else{var p=this._tmpid();t.set(e.name.value,p),this._emitLine("var "+o+" = "+i+".length;"),this._emitLine("for(var "+r+"=0; "+r+" < "+i+".length; "+r+"++) {"),this._emitLine("var "+p+" = "+i+"["+r+"];"),this._emitLine('frame.set("'+e.name.value+'", '+p+");"),this._emitLoopBindings(e,i,r,o),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("}")}this._emitLine("}"),e.else_&&(this._emitLine("if (!"+o+") {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i._compileAsyncLoop=function(e,t,n){var r=this,o=this._tmpid(),i=this._tmpid(),s=this._tmpid(),l=n?"asyncAll":"asyncEach";if(t=t.push(),this._emitLine("frame = frame.push();"),this._emit("var "+s+" = runtime.fromIterator("),this._compileExpression(e.arr,t),this._emitLine(");"),e.name instanceof a.Array){var u=e.name.children.length;this._emit("runtime."+l+"("+s+", "+u+", function("),e.name.children.forEach(function(e){r._emit(e.value+",")}),this._emit(o+","+i+",next) {"),e.name.children.forEach(function(e){var n=e.value;t.set(n,n),r._emitLine('frame.set("'+n+'", '+n+");")})}else{var c=e.name.value;this._emitLine("runtime."+l+"("+s+", 1, function("+c+", "+o+", "+i+",next) {"),this._emitLine('frame.set("'+c+'", '+c+");"),t.set(c,c)}this._emitLoopBindings(e,s,o,i),this._withScopedSyntax(function(){var i;n&&(i=r._pushBuffer()),r.compile(e.body,t),r._emitLine("next("+o+(i?","+i:"")+");"),n&&r._popBuffer()});var d=this._tmpid();this._emitLine("}, "+this._makeCallback(d)),this._addScopeLevel(),n&&this._emitLine(this.buffer+" += "+d+";"),e.else_&&(this._emitLine("if (!"+s+".length) {"),this.compile(e.else_,t),this._emitLine("}")),this._emitLine("frame = frame.pop();")},i.compileAsyncEach=function(e,t){this._compileAsyncLoop(e,t)},i.compileAsyncAll=function(e,t){this._compileAsyncLoop(e,t,!0)},i._compileMacro=function(e,t){var n=this,r=[],o=null,i="macro_"+this._tmpid(),s=void 0!==t;e.args.children.forEach(function(t,i){i===e.args.children.length-1&&t instanceof a.Dict?o=t:(n.assertType(t,a.Symbol),r.push(t))});var u,c=[].concat(r.map(function(e){return"l_"+e.value}),["kwargs"]),d=r.map(function(e){return'"'+e.value+'"'}),p=(o&&o.children||[]).map(function(e){return'"'+e.key.value+'"'});u=s?t.push(!0):new l,this._emitLines("var "+i+" = runtime.makeMacro(","["+d.join(", ")+"], ","["+p.join(", ")+"], ","function ("+c.join(", ")+") {","var callerFrame = frame;","frame = "+(s?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),r.forEach(function(e){n._emitLine('frame.set("'+e.value+'", l_'+e.value+");"),u.set(e.value,"l_"+e.value)}),o&&o.children.forEach(function(e){var t=e.key.value;n._emit('frame.set("'+t+'", '),n._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+t+'")'),n._emit(' ? kwargs["'+t+'"] : '),n._compileExpression(e.value,u),n._emit(");")});var f=this._pushBuffer();return this._withScopedSyntax(function(){n.compile(e.body,u)}),this._emitLine("frame = "+(s?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+f+");"),this._emitLine("});"),this._popBuffer(),i},i.compileMacro=function(e,t){var n=this._compileMacro(e),r=e.name.value;t.set(r,n),t.parent?this._emitLine('frame.set("'+r+'", '+n+");"):("_"!==e.name.value.charAt(0)&&this._emitLine('context.addExport("'+r+'");'),this._emitLine('context.setVariable("'+r+'", '+n+");"))},i.compileCaller=function(e,t){this._emit("(function (){");var n=this._compileMacro(e,t);this._emit("return "+n+";})()")},i._compileGetTemplate=function(e,t,n,r){var o=this._tmpid(),i=this._templateName(),a=this._makeCallback(o),s=n?"true":"false",l=r?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(e.template,t),this._emitLine(", "+s+", "+i+", "+l+", "+a),o},i.compileImport=function(e,t){var n=e.target.value,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),t.set(n,r),t.parent?this._emitLine('frame.set("'+n+'", '+r+");"):this._emitLine('context.setVariable("'+n+'", '+r+");")},i.compileFromImport=function(e,t){var n=this,r=this._compileGetTemplate(e,t,!1,!1);this._addScopeLevel(),this._emitLine(r+".getExported("+(e.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(r)),this._addScopeLevel(),e.names.children.forEach(function(e){var o,i,s=n._tmpid();e instanceof a.Pair?(o=e.key.value,i=e.value.value):i=o=e.value,n._emitLine("if(Object.prototype.hasOwnProperty.call("+r+', "'+o+'")) {'),n._emitLine("var "+s+" = "+r+"."+o+";"),n._emitLine("} else {"),n._emitLine("cb(new Error(\"cannot import '"+o+"'\")); return;"),n._emitLine("}"),t.set(i,s),t.parent?n._emitLine('frame.set("'+i+'", '+s+");"):n._emitLine('context.setVariable("'+i+'", '+s+");")})},i.compileBlock=function(e){var t=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+e.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(t)),this._emitLine(this.buffer+" += "+t+";"),this._addScopeLevel()},i.compileSuper=function(e,t){var n=e.blockName.value,r=e.symbol.value,o=this._makeCallback(r);this._emitLine('context.getSuper(env, "'+n+'", b_'+n+", frame, runtime, "+o),this._emitLine(r+" = runtime.markSafe("+r+");"),this._addScopeLevel(),t.set(r,r)},i.compileExtends=function(e,t){var n=this._tmpid(),r=this._compileGetTemplate(e,t,!0,!1);this._emitLine("parentTemplate = "+r),this._emitLine("for(var "+n+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+n+", parentTemplate.blocks["+n+"]);"),this._emitLine("}"),this._addScopeLevel()},i.compileInclude=function(e,t){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var n=this._compileGetTemplate(e,t,!1,e.ignoreMissing);this._emitLine("callback(null,"+n+");});"),this._emitLine("});");var r=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(r)),this._emitLine("callback(null,"+r+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},i.compileTemplateData=function(e,t){this.compileLiteral(e,t)},i.compileCapture=function(e,t){var n=this,r=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){n.compile(e.body,t)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=r},i.compileOutput=function(e,t){var n=this;e.children.forEach(function(r){r instanceof a.TemplateData?r.value&&(n._emit(n.buffer+" += "),n.compileLiteral(r,t),n._emitLine(";")):(n._emit(n.buffer+" += runtime.suppressValue("),n.throwOnUndefined&&n._emit("runtime.ensureDefined("),n.compile(r,t),n.throwOnUndefined&&n._emit(","+e.lineno+","+e.colno+")"),n._emit(", env.opts.autoescape);\n"))})},i.compileRoot=function(e,t){var n=this;t&&this.fail("compileRoot: root node can't have frame"),t=new l,this._emitFuncBegin(e,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(e,t),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var r=[],o=e.findAll(a.Block);o.forEach(function(e,t){var o=e.name.value;if(-1!==r.indexOf(o))throw new Error('Block "'+o+'" defined more than once.');r.push(o),n._emitFuncBegin(e,"b_"+o);var i=new l;n._emitLine("var frame = frame.push(true);"),n.compile(e.body,i),n._emitFuncEnd()}),this._emitLine("return {"),o.forEach(function(e,t){var r="b_"+e.name.value;n._emitLine(r+": "+r+",")}),this._emitLine("root: root\n};")},i.compile=function(e,t){var n=this["compile"+e.typename];n?n.call(this,e,t):this.fail("compile: Cannot compile node: "+e.typename,e.lineno,e.colno)},i.getCode=function(){return this.codebuf.join("")},o}(u);e.exports={compile:function(e,t,n,r,a){void 0===a&&(a={});var s=new d(r,a.throwOnUndefined),l=(n||[]).map(function(e){return e.preprocess}).filter(function(e){return!!e}).reduce(function(e,t){return t(e)},e);return s.compile(i.transform(o.parse(l,n,a),t,r)),s.getCode()},Compiler:d}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(4),i=n(1).EmitterObj;e.exports=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var a=i.prototype;return a.resolve=function(e,t){return o.resolve(o.dirname(e),t)},a.isRelative=function(e){return 0===e.indexOf("./")||0===e.indexOf("../")},i}(i)},function(e,t,n){function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}var i=n(12),a=n(15),s=n(0),l=n(5),u=n(18),c=n(10),d=c.FileSystemLoader,p=c.WebLoader,f=c.PrecompiledLoader,h=n(20),m=n(21),g=n(1),v=g.Obj,y=g.EmitterObj,b=n(2),w=b.handleError,x=b.Frame,k=n(22);function S(e,t,n){i(function(){e(t,n)})}var E={type:"code",obj:{root:function(e,t,n,r,o){try{o(null,"")}catch(e){o(w(e,null,null))}}}},C=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t){var n=this;t=this.opts=t||{},this.opts.dev=!!t.dev,this.opts.autoescape=null==t.autoescape||t.autoescape,this.opts.throwOnUndefined=!!t.throwOnUndefined,this.opts.trimBlocks=!!t.trimBlocks,this.opts.lstripBlocks=!!t.lstripBlocks,this.loaders=[],e?this.loaders=s.isArray(e)?e:[e]:d?this.loaders=[new d("views")]:p&&(this.loaders=[new p("/views")]),"undefined"!=typeof window&&window.nunjucksPrecompiled&&this.loaders.unshift(new f(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=m(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],s._entries(u).forEach(function(e){var t=e[0],r=e[1];return n.addFilter(t,r)}),s._entries(h).forEach(function(e){var t=e[0],r=e[1];return n.addTest(t,r)})},n._initLoaders=function(){var e=this;this.loaders.forEach(function(t){t.cache={},"function"==typeof t.on&&(t.on("update",function(n,r){t.cache[n]=null,e.emit("update",n,r,t)}),t.on("load",function(n,r){e.emit("load",n,r,t)}))})},n.invalidateCache=function(){this.loaders.forEach(function(e){e.cache={}})},n.addExtension=function(e,t){return t.__name=e,this.extensions[e]=t,this.extensionsList.push(t),this},n.removeExtension=function(e){var t=this.getExtension(e);t&&(this.extensionsList=s.without(this.extensionsList,t),delete this.extensions[e])},n.getExtension=function(e){return this.extensions[e]},n.hasExtension=function(e){return!!this.extensions[e]},n.addGlobal=function(e,t){return this.globals[e]=t,this},n.getGlobal=function(e){if(void 0===this.globals[e])throw new Error("global not found: "+e);return this.globals[e]},n.addFilter=function(e,t,n){var r=t;return n&&this.asyncFilters.push(e),this.filters[e]=r,this},n.getFilter=function(e){if(!this.filters[e])throw new Error("filter not found: "+e);return this.filters[e]},n.addTest=function(e,t){return this.tests[e]=t,this},n.getTest=function(e){if(!this.tests[e])throw new Error("test not found: "+e);return this.tests[e]},n.resolveTemplate=function(e,t,n){return e.isRelative&&t&&e.isRelative(n)&&e.resolve?e.resolve(t,n):n},n.getTemplate=function(e,t,n,r,o){var i,a=this,l=this,u=null;if(e&&e.raw&&(e=e.raw),s.isFunction(n)&&(o=n,n=null,t=t||!1),s.isFunction(t)&&(o=t,t=!1),e instanceof T)u=e;else{if("string"!=typeof e)throw new Error("template names must be a string: "+e);for(var c=0;c<this.loaders.length;c++){var d=this.loaders[c];if(u=d.cache[this.resolveTemplate(d,n,e)])break}}return u?(t&&u.compile(),o?void o(null,u):u):(s.asyncIter(this.loaders,function(t,r,o,i){function a(e,n){e?i(e):n?(n.loader=t,i(null,n)):o()}e=l.resolveTemplate(t,n,e),t.async?t.getSource(e,a):a(null,t.getSource(e))},function(n,s){if(s||n||r||(n=new Error("template not found: "+e)),n){if(o)return void o(n);throw n}var l;s?(l=new T(s.src,a,s.path,t),s.noCache||(s.loader.cache[e]=l)):l=new T(E,a,"",t),o?o(null,l):i=l}),i)},n.express=function(e){return k(this,e)},n.render=function(e,t,n){s.isFunction(t)&&(n=t,t=null);var r=null;return this.getTemplate(e,function(e,o){if(e&&n)S(n,e);else{if(e)throw e;r=o.render(t,n)}}),r},n.renderString=function(e,t,n,r){return s.isFunction(n)&&(r=n,n={}),new T(e,this,(n=n||{}).path).render(t,r)},n.waterfall=function(e,t,n){return a(e,t,n)},t}(y),O=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n){var r=this;this.env=n||new C,this.ctx=s.extend({},e),this.blocks={},this.exported=[],s.keys(t).forEach(function(e){r.addBlock(e,t[e])})},n.lookup=function(e){return e in this.env.globals&&!(e in this.ctx)?this.env.globals[e]:this.ctx[e]},n.setVariable=function(e,t){this.ctx[e]=t},n.getVariables=function(){return this.ctx},n.addBlock=function(e,t){return this.blocks[e]=this.blocks[e]||[],this.blocks[e].push(t),this},n.getBlock=function(e){if(!this.blocks[e])throw new Error('unknown block "'+e+'"');return this.blocks[e][0]},n.getSuper=function(e,t,n,r,o,i){var a=s.indexOf(this.blocks[t]||[],n),l=this.blocks[t][a+1];if(-1===a||!l)throw new Error('no super block available for "'+t+'"');l(e,this,r,o,i)},n.addExport=function(e){this.exported.push(e)},n.getExported=function(){var e=this,t={};return this.exported.forEach(function(n){t[n]=e.ctx[n]}),t},t}(v),T=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.init=function(e,t,n,r){if(this.env=t||new C,s.isObject(e))switch(e.type){case"code":this.tmplProps=e.obj;break;case"string":this.tmplStr=e.obj;break;default:throw new Error("Unexpected template object type "+e.type+"; expected 'code', or 'string'")}else{if(!s.isString(e))throw new Error("src must be a string or an object describing the source");this.tmplStr=e}if(this.path=n,r)try{this._compile()}catch(e){throw s._prettifyError(this.path,this.env.opts.dev,e)}else this.compiled=!1},n.render=function(e,t,n){var r=this;"function"==typeof e?(n=e,e={}):"function"==typeof t&&(n=t,t=null);var o=!t;try{this.compile()}catch(e){var i=s._prettifyError(this.path,this.env.opts.dev,e);if(n)return S(n,i);throw i}var a=new O(e||{},this.blocks,this.env),l=t?t.push(!0):new x;l.topLevel=!0;var u=null,c=!1;return this.rootRenderFunc(this.env,a,l,b,function(e,t){if(!c||!n||void 0===t)if(e&&(e=s._prettifyError(r.path,r.env.opts.dev,e),c=!0),n)o?S(n,e,t):n(e,t);else{if(e)throw e;u=t}}),u},n.getExported=function(e,t,n){"function"==typeof e&&(n=e,e={}),"function"==typeof t&&(n=t,t=null);try{this.compile()}catch(e){if(n)return n(e);throw e}var r=t?t.push():new x;r.topLevel=!0;var o=new O(e||{},this.blocks,this.env);this.rootRenderFunc(this.env,o,r,b,function(e){e?n(e,null):n(null,o.getExported())})},n.compile=function(){this.compiled||this._compile()},n._compile=function(){var e;if(this.tmplProps)e=this.tmplProps;else{var t=l.compile(this.tmplStr,this.env.asyncFilters,this.env.extensionsList,this.path,this.env.opts);e=new Function(t)()}this.blocks=this._getBlocks(e),this.rootRenderFunc=e.root,this.compiled=!0},n._getBlocks=function(e){var t={};return s.keys(e).forEach(function(n){"b_"===n.slice(0,2)&&(t[n.slice(2)]=e[n])}),t},t}(v);e.exports={Environment:C,Template:T}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(9),i=n(3),a=n(1).Obj,s=n(0),l=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var l=a.prototype;return l.init=function(e){this.tokens=e,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},l.nextToken=function(e){var t;if(this.peeked){if(e||this.peeked.type!==o.TOKEN_WHITESPACE)return t=this.peeked,this.peeked=null,t;this.peeked=null}if(t=this.tokens.nextToken(),!e)for(;t&&t.type===o.TOKEN_WHITESPACE;)t=this.tokens.nextToken();return t},l.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},l.pushToken=function(e){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=e},l.error=function(e,t,n){if(void 0===t||void 0===n){var r=this.peekToken()||{};t=r.lineno,n=r.colno}return void 0!==t&&(t+=1),void 0!==n&&(n+=1),new s.TemplateError(e,t,n)},l.fail=function(e,t,n){throw this.error(e,t,n)},l.skip=function(e){var t=this.nextToken();return!(!t||t.type!==e)||(this.pushToken(t),!1)},l.expect=function(e){var t=this.nextToken();return t.type!==e&&this.fail("expected "+e+", got "+t.type,t.lineno,t.colno),t},l.skipValue=function(e,t){var n=this.nextToken();return!(!n||n.type!==e||n.value!==t)||(this.pushToken(n),!1)},l.skipSymbol=function(e){return this.skipValue(o.TOKEN_SYMBOL,e)},l.advanceAfterBlockEnd=function(e){var t;return e||((t=this.peekToken())||this.fail("unexpected end of file"),t.type!==o.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),e=this.nextToken().value),(t=this.nextToken())&&t.type===o.TOKEN_BLOCK_END?"-"===t.value.charAt(0)&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+e+" statement"),t},l.advanceAfterVariableEnd=function(){var e=this.nextToken();e&&e.type===o.TOKEN_VARIABLE_END?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.VARIABLE_END.length-1):(this.pushToken(e),this.fail("expected variable end"))},l.parseFor=function(){var e,t,n=this.peekToken();if(this.skipSymbol("for")?(e=new i.For(n.lineno,n.colno),t="endfor"):this.skipSymbol("asyncEach")?(e=new i.AsyncEach(n.lineno,n.colno),t="endeach"):this.skipSymbol("asyncAll")?(e=new i.AsyncAll(n.lineno,n.colno),t="endall"):this.fail("parseFor: expected for{Async}",n.lineno,n.colno),e.name=this.parsePrimary(),e.name instanceof i.Symbol||this.fail("parseFor: variable name expected for loop"),this.peekToken().type===o.TOKEN_COMMA){var r=e.name;for(e.name=new i.Array(r.lineno,r.colno),e.name.addChild(r);this.skip(o.TOKEN_COMMA);){var a=this.parsePrimary();e.name.addChild(a)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',n.lineno,n.colno),e.arr=this.parseExpression(),this.advanceAfterBlockEnd(n.value),e.body=this.parseUntilBlocks(t,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),e.else_=this.parseUntilBlocks(t)),this.advanceAfterBlockEnd(),e},l.parseMacro=function(){var e=this.peekToken();this.skipSymbol("macro")||this.fail("expected macro");var t=this.parsePrimary(!0),n=this.parseSignature(),r=new i.Macro(e.lineno,e.colno,t,n);return this.advanceAfterBlockEnd(e.value),r.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),r},l.parseCall=function(){var e=this.peekToken();this.skipSymbol("call")||this.fail("expected call");var t=this.parseSignature(!0)||new i.NodeList,n=this.parsePrimary();this.advanceAfterBlockEnd(e.value);var r=this.parseUntilBlocks("endcall");this.advanceAfterBlockEnd();var o=new i.Symbol(e.lineno,e.colno,"caller"),a=new i.Caller(e.lineno,e.colno,o,t,r),s=n.args.children;return s[s.length-1]instanceof i.KeywordArgs||s.push(new i.KeywordArgs),s[s.length-1].addChild(new i.Pair(e.lineno,e.colno,o,a)),new i.Output(e.lineno,e.colno,[n])},l.parseWithContext=function(){var e=this.peekToken(),t=null;return this.skipSymbol("with")?t=!0:this.skipSymbol("without")&&(t=!1),null!==t&&(this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",e.lineno,e.colno)),t},l.parseImport=function(){var e=this.peekToken();this.skipSymbol("import")||this.fail("parseImport: expected import",e.lineno,e.colno);var t=this.parseExpression();this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',e.lineno,e.colno);var n=this.parseExpression(),r=this.parseWithContext(),o=new i.Import(e.lineno,e.colno,t,n,r);return this.advanceAfterBlockEnd(e.value),o},l.parseFrom=function(){var e=this.peekToken();this.skipSymbol("from")||this.fail("parseFrom: expected from");var t=this.parseExpression();this.skipSymbol("import")||this.fail("parseFrom: expected import",e.lineno,e.colno);for(var n,r=new i.NodeList;;){var a=this.peekToken();if(a.type===o.TOKEN_BLOCK_END){r.children.length||this.fail("parseFrom: Expected at least one import name",e.lineno,e.colno),"-"===a.value.charAt(0)&&(this.dropLeadingWhitespace=!0),this.nextToken();break}r.children.length>0&&!this.skip(o.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",e.lineno,e.colno);var s=this.parsePrimary();if("_"===s.value.charAt(0)&&this.fail("parseFrom: names starting with an underscore cannot be imported",s.lineno,s.colno),this.skipSymbol("as")){var l=this.parsePrimary();r.addChild(new i.Pair(s.lineno,s.colno,s,l))}else r.addChild(s);n=this.parseWithContext()}return new i.FromImport(e.lineno,e.colno,t,r,n)},l.parseBlock=function(){var e=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",e.lineno,e.colno);var t=new i.Block(e.lineno,e.colno);t.name=this.parsePrimary(),t.name instanceof i.Symbol||this.fail("parseBlock: variable name expected",e.lineno,e.colno),this.advanceAfterBlockEnd(e.value),t.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(t.name.value);var n=this.peekToken();return n||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(n.value),t},l.parseExtends=function(){var e="extends",t=this.peekToken();this.skipSymbol(e)||this.fail("parseTemplateRef: expected "+e);var n=new i.Extends(t.lineno,t.colno);return n.template=this.parseExpression(),this.advanceAfterBlockEnd(t.value),n},l.parseInclude=function(){var e="include",t=this.peekToken();this.skipSymbol(e)||this.fail("parseInclude: expected "+e);var n=new i.Include(t.lineno,t.colno);return n.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(n.ignoreMissing=!0),this.advanceAfterBlockEnd(t.value),n},l.parseIf=function(){var e,t=this.peekToken();this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?e=new i.If(t.lineno,t.colno):this.skipSymbol("ifAsync")?e=new i.IfAsync(t.lineno,t.colno):this.fail("parseIf: expected if, elif, or elseif",t.lineno,t.colno),e.cond=this.parseExpression(),this.advanceAfterBlockEnd(t.value),e.body=this.parseUntilBlocks("elif","elseif","else","endif");var n=this.peekToken();switch(n&&n.value){case"elseif":case"elif":e.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),e.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":e.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return e},l.parseSet=function(){var e=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",e.lineno,e.colno);for(var t,n=new i.Set(e.lineno,e.colno,[]);(t=this.parsePrimary())&&(n.targets.push(t),this.skip(o.TOKEN_COMMA)););return this.skipValue(o.TOKEN_OPERATOR,"=")?(n.value=this.parseExpression(),this.advanceAfterBlockEnd(e.value)):this.skip(o.TOKEN_BLOCK_END)?(n.body=new i.Capture(e.lineno,e.colno,this.parseUntilBlocks("endset")),n.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",e.lineno,e.colno),n},l.parseSwitch=function(){var e="switch",t="endswitch",n="case",r="default",o=this.peekToken();this.skipSymbol(e)||this.skipSymbol(n)||this.skipSymbol(r)||this.fail('parseSwitch: expected "switch," "case" or "default"',o.lineno,o.colno);var a=this.parseExpression();this.advanceAfterBlockEnd(e),this.parseUntilBlocks(n,r,t);var s,l=this.peekToken(),u=[];do{this.skipSymbol(n);var c=this.parseExpression();this.advanceAfterBlockEnd(e);var d=this.parseUntilBlocks(n,r,t);u.push(new i.Case(l.line,l.col,c,d)),l=this.peekToken()}while(l&&l.value===n);switch(l.value){case r:this.advanceAfterBlockEnd(),s=this.parseUntilBlocks(t),this.advanceAfterBlockEnd();break;case t:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new i.Switch(o.lineno,o.colno,a,u,s)},l.parseStatement=function(){var e=this.peekToken();if(e.type!==o.TOKEN_SYMBOL&&this.fail("tag name expected",e.lineno,e.colno),this.breakOnBlocks&&-1!==s.indexOf(this.breakOnBlocks,e.value))return null;switch(e.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var t=0;t<this.extensions.length;t++){var n=this.extensions[t];if(-1!==s.indexOf(n.tags||[],e.value))return n.parse(this,i,o)}this.fail("unknown block tag: "+e.value,e.lineno,e.colno)}},l.parseRaw=function(e){for(var t="end"+(e=e||"raw"),n=new RegExp("([\\s\\S]*?){%\\s*("+e+"|"+t+")\\s*(?=%})%}"),r=1,o="",a=null,s=this.advanceAfterBlockEnd();(a=this.tokens._extractRegex(n))&&r>0;){var l=a[0],u=a[1],c=a[2];c===e?r+=1:c===t&&(r-=1),0===r?(o+=u,this.tokens.backN(l.length-u.length)):o+=l}return new i.Output(s.lineno,s.colno,[new i.TemplateData(s.lineno,s.colno,o)])},l.parsePostfix=function(e){for(var t,n=this.peekToken();n;){if(n.type===o.TOKEN_LEFT_PAREN)e=new i.FunCall(n.lineno,n.colno,e,this.parseSignature());else if(n.type===o.TOKEN_LEFT_BRACKET)(t=this.parseAggregate()).children.length>1&&this.fail("invalid index"),e=new i.LookupVal(n.lineno,n.colno,e,t.children[0]);else{if(n.type!==o.TOKEN_OPERATOR||"."!==n.value)break;this.nextToken();var r=this.nextToken();r.type!==o.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+r.value,r.lineno,r.colno),t=new i.Literal(r.lineno,r.colno,r.value),e=new i.LookupVal(n.lineno,n.colno,e,t)}n=this.peekToken()}return e},l.parseExpression=function(){return this.parseInlineIf()},l.parseInlineIf=function(){var e=this.parseOr();if(this.skipSymbol("if")){var t=this.parseOr(),n=e;(e=new i.InlineIf(e.lineno,e.colno)).body=n,e.cond=t,this.skipSymbol("else")?e.else_=this.parseOr():e.else_=null}return e},l.parseOr=function(){for(var e=this.parseAnd();this.skipSymbol("or");){var t=this.parseAnd();e=new i.Or(e.lineno,e.colno,e,t)}return e},l.parseAnd=function(){for(var e=this.parseNot();this.skipSymbol("and");){var t=this.parseNot();e=new i.And(e.lineno,e.colno,e,t)}return e},l.parseNot=function(){var e=this.peekToken();return this.skipSymbol("not")?new i.Not(e.lineno,e.colno,this.parseNot()):this.parseIn()},l.parseIn=function(){for(var e=this.parseIs();;){var t=this.nextToken();if(!t)break;var n=t.type===o.TOKEN_SYMBOL&&"not"===t.value;if(n||this.pushToken(t),!this.skipSymbol("in")){n&&this.pushToken(t);break}var r=this.parseIs();e=new i.In(e.lineno,e.colno,e,r),n&&(e=new i.Not(e.lineno,e.colno,e))}return e},l.parseIs=function(){var e=this.parseCompare();if(this.skipSymbol("is")){var t=this.skipSymbol("not"),n=this.parseCompare();e=new i.Is(e.lineno,e.colno,e,n),t&&(e=new i.Not(e.lineno,e.colno,e))}return e},l.parseCompare=function(){for(var e=["==","===","!=","!==","<",">","<=",">="],t=this.parseConcat(),n=[];;){var r=this.nextToken();if(!r)break;if(-1===e.indexOf(r.value)){this.pushToken(r);break}n.push(new i.CompareOperand(r.lineno,r.colno,this.parseConcat(),r.value))}return n.length?new i.Compare(n[0].lineno,n[0].colno,t,n):t},l.parseConcat=function(){for(var e=this.parseAdd();this.skipValue(o.TOKEN_TILDE,"~");){var t=this.parseAdd();e=new i.Concat(e.lineno,e.colno,e,t)}return e},l.parseAdd=function(){for(var e=this.parseSub();this.skipValue(o.TOKEN_OPERATOR,"+");){var t=this.parseSub();e=new i.Add(e.lineno,e.colno,e,t)}return e},l.parseSub=function(){for(var e=this.parseMul();this.skipValue(o.TOKEN_OPERATOR,"-");){var t=this.parseMul();e=new i.Sub(e.lineno,e.colno,e,t)}return e},l.parseMul=function(){for(var e=this.parseDiv();this.skipValue(o.TOKEN_OPERATOR,"*");){var t=this.parseDiv();e=new i.Mul(e.lineno,e.colno,e,t)}return e},l.parseDiv=function(){for(var e=this.parseFloorDiv();this.skipValue(o.TOKEN_OPERATOR,"/");){var t=this.parseFloorDiv();e=new i.Div(e.lineno,e.colno,e,t)}return e},l.parseFloorDiv=function(){for(var e=this.parseMod();this.skipValue(o.TOKEN_OPERATOR,"//");){var t=this.parseMod();e=new i.FloorDiv(e.lineno,e.colno,e,t)}return e},l.parseMod=function(){for(var e=this.parsePow();this.skipValue(o.TOKEN_OPERATOR,"%");){var t=this.parsePow();e=new i.Mod(e.lineno,e.colno,e,t)}return e},l.parsePow=function(){for(var e=this.parseUnary();this.skipValue(o.TOKEN_OPERATOR,"**");){var t=this.parseUnary();e=new i.Pow(e.lineno,e.colno,e,t)}return e},l.parseUnary=function(e){var t,n=this.peekToken();return t=this.skipValue(o.TOKEN_OPERATOR,"-")?new i.Neg(n.lineno,n.colno,this.parseUnary(!0)):this.skipValue(o.TOKEN_OPERATOR,"+")?new i.Pos(n.lineno,n.colno,this.parseUnary(!0)):this.parsePrimary(),e||(t=this.parseFilter(t)),t},l.parsePrimary=function(e){var t,n=this.nextToken(),r=null;if(n?n.type===o.TOKEN_STRING?t=n.value:n.type===o.TOKEN_INT?t=parseInt(n.value,10):n.type===o.TOKEN_FLOAT?t=parseFloat(n.value):n.type===o.TOKEN_BOOLEAN?"true"===n.value?t=!0:"false"===n.value?t=!1:this.fail("invalid boolean: "+n.value,n.lineno,n.colno):n.type===o.TOKEN_NONE?t=null:n.type===o.TOKEN_REGEX&&(t=new RegExp(n.value.body,n.value.flags)):this.fail("expected expression, got end of file"),void 0!==t?r=new i.Literal(n.lineno,n.colno,t):n.type===o.TOKEN_SYMBOL?r=new i.Symbol(n.lineno,n.colno,n.value):(this.pushToken(n),r=this.parseAggregate()),e||(r=this.parsePostfix(r)),r)return r;throw this.error("unexpected token: "+n.value,n.lineno,n.colno)},l.parseFilterName=function(){for(var e=this.expect(o.TOKEN_SYMBOL),t=e.value;this.skipValue(o.TOKEN_OPERATOR,".");)t+="."+this.expect(o.TOKEN_SYMBOL).value;return new i.Symbol(e.lineno,e.colno,t)},l.parseFilterArgs=function(e){return this.peekToken().type===o.TOKEN_LEFT_PAREN?this.parsePostfix(e).args.children:[]},l.parseFilter=function(e){for(;this.skip(o.TOKEN_PIPE);){var t=this.parseFilterName();e=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[e].concat(this.parseFilterArgs(e))))}return e},l.parseFilterStatement=function(){var e=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var t=this.parseFilterName(),n=this.parseFilterArgs(t);this.advanceAfterBlockEnd(e.value);var r=new i.Capture(t.lineno,t.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var o=new i.Filter(t.lineno,t.colno,t,new i.NodeList(t.lineno,t.colno,[r].concat(n)));return new i.Output(t.lineno,t.colno,[o])},l.parseAggregate=function(){var e,t=this.nextToken();switch(t.type){case o.TOKEN_LEFT_PAREN:e=new i.Group(t.lineno,t.colno);break;case o.TOKEN_LEFT_BRACKET:e=new i.Array(t.lineno,t.colno);break;case o.TOKEN_LEFT_CURLY:e=new i.Dict(t.lineno,t.colno);break;default:return null}for(;;){var n=this.peekToken().type;if(n===o.TOKEN_RIGHT_PAREN||n===o.TOKEN_RIGHT_BRACKET||n===o.TOKEN_RIGHT_CURLY){this.nextToken();break}if(e.children.length>0&&(this.skip(o.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",t.lineno,t.colno)),e instanceof i.Dict){var r=this.parsePrimary();this.skip(o.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",t.lineno,t.colno);var a=this.parseExpression();e.addChild(new i.Pair(r.lineno,r.colno,r,a))}else{var s=this.parseExpression();e.addChild(s)}}return e},l.parseSignature=function(e,t){var n=this.peekToken();if(!t&&n.type!==o.TOKEN_LEFT_PAREN){if(e)return null;this.fail("expected arguments",n.lineno,n.colno)}n.type===o.TOKEN_LEFT_PAREN&&(n=this.nextToken());for(var r=new i.NodeList(n.lineno,n.colno),a=new i.KeywordArgs(n.lineno,n.colno),s=!1;;){if(n=this.peekToken(),!t&&n.type===o.TOKEN_RIGHT_PAREN){this.nextToken();break}if(t&&n.type===o.TOKEN_BLOCK_END)break;if(s&&!this.skip(o.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",n.lineno,n.colno);else{var l=this.parseExpression();this.skipValue(o.TOKEN_OPERATOR,"=")?a.addChild(new i.Pair(l.lineno,l.colno,l,this.parseExpression())):r.addChild(l)}s=!0}return a.children.length&&r.addChild(a),r},l.parseUntilBlocks=function(){for(var e=this.breakOnBlocks,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.breakOnBlocks=n;var o=this.parse();return this.breakOnBlocks=e,o},l.parseNodes=function(){for(var e,t=[];e=this.nextToken();)if(e.type===o.TOKEN_DATA){var n=e.value,r=this.peekToken(),a=r&&r.value;this.dropLeadingWhitespace&&(n=n.replace(/^\s*/,""),this.dropLeadingWhitespace=!1),r&&(r.type===o.TOKEN_BLOCK_START&&"-"===a.charAt(a.length-1)||r.type===o.TOKEN_VARIABLE_START&&"-"===a.charAt(this.tokens.tags.VARIABLE_START.length)||r.type===o.TOKEN_COMMENT&&"-"===a.charAt(this.tokens.tags.COMMENT_START.length))&&(n=n.replace(/\s*$/,"")),t.push(new i.Output(e.lineno,e.colno,[new i.TemplateData(e.lineno,e.colno,n)]))}else if(e.type===o.TOKEN_BLOCK_START){this.dropLeadingWhitespace=!1;var s=this.parseStatement();if(!s)break;t.push(s)}else if(e.type===o.TOKEN_VARIABLE_START){var l=this.parseExpression();this.dropLeadingWhitespace=!1,this.advanceAfterVariableEnd(),t.push(new i.Output(e.lineno,e.colno,[l]))}else e.type===o.TOKEN_COMMENT?this.dropLeadingWhitespace="-"===e.value.charAt(e.value.length-this.tokens.tags.COMMENT_END.length-1):this.fail("Unexpected token at top-level: "+e.type,e.lineno,e.colno);return t},l.parse=function(){return new i.NodeList(0,0,this.parseNodes())},l.parseAsRoot=function(){return new i.Root(0,0,this.parseNodes())},a}(a);e.exports={parse:function(e,t,n){var r=new l(o.lex(e,n));return void 0!==t&&(r.extensions=t),r.parseAsRoot()},Parser:l}},function(e,t,n){var r=n(0),o=" \n\t\r ",i="()[]{}%*-+~/#,:|.<>=!",a="string",s="whitespace",l="data",u="block-start",c="block-end",d="variable-start",p="variable-end",f="comment",h="left-paren",m="right-paren",g="left-bracket",v="right-bracket",y="left-curly",b="right-curly",w="operator",x="comma",k="colon",S="tilde",E="pipe",C="float",O="boolean",T="none",_="symbol",R="regex";function P(e,t,n,r){return{type:e,value:t,lineno:n,colno:r}}var A=function(){function e(e,t){this.str=e,this.index=0,this.len=e.length,this.lineno=0,this.colno=0,this.in_code=!1;var n=(t=t||{}).tags||{};this.tags={BLOCK_START:n.blockStart||"{%",BLOCK_END:n.blockEnd||"%}",VARIABLE_START:n.variableStart||"{{",VARIABLE_END:n.variableEnd||"}}",COMMENT_START:n.commentStart||"{#",COMMENT_END:n.commentEnd||"#}"},this.trimBlocks=!!t.trimBlocks,this.lstripBlocks=!!t.lstripBlocks}var t=e.prototype;return t.nextToken=function(){var e,t=this.lineno,n=this.colno;if(this.in_code){var A=this.current();if(this.isFinished())return null;if('"'===A||"'"===A)return P(a,this._parseString(A),t,n);if(e=this._extract(o))return P(s,e,t,n);if((e=this._extractString(this.tags.BLOCK_END))||(e=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&("\n"===(A=this.current())?this.forward():"\r"===A&&(this.forward(),"\n"===(A=this.current())?this.forward():this.back())),P(c,e,t,n);if((e=this._extractString(this.tags.VARIABLE_END))||(e=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,P(p,e,t,n);if("r"===A&&"/"===this.str.charAt(this.index+1)){this.forwardN(2);for(var L="";!this.isFinished();){if("/"===this.current()&&"\\"!==this.previous()){this.forward();break}L+=this.current(),this.forward()}for(var N=["g","i","m","y"],M="";!this.isFinished()&&-1!==N.indexOf(this.current());)M+=this.current(),this.forward();return P(R,{body:L,flags:M},t,n)}if(-1!==i.indexOf(A)){this.forward();var I,F=["==","===","!=","!==","<=",">=","//","**"],$=A+this.current();switch(-1!==r.indexOf(F,$)&&(this.forward(),A=$,-1!==r.indexOf(F,$+this.current())&&(A=$+this.current(),this.forward())),A){case"(":I=h;break;case")":I=m;break;case"[":I=g;break;case"]":I=v;break;case"{":I=y;break;case"}":I=b;break;case",":I=x;break;case":":I=k;break;case"~":I=S;break;case"|":I=E;break;default:I=w}return P(I,A,t,n)}if((e=this._extractUntil(o+i)).match(/^[-+]?[0-9]+$/)){if("."===this.current()){this.forward();var j=this._extract("0123456789");return P(C,e+"."+j,t,n)}return P("int",e,t,n)}if(e.match(/^(true|false)$/))return P(O,e,t,n);if("none"===e)return P(T,e,t,n);if("null"===e)return P(T,e,t,n);if(e)return P(_,e,t,n);throw new Error("Unexpected value while parsing: "+e)}var z,B=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((e=this._extractString(this.tags.BLOCK_START+"-"))||(e=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,P(u,e,t,n);if((e=this._extractString(this.tags.VARIABLE_START+"-"))||(e=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,P(d,e,t,n);e="";var D=!1;for(this._matches(this.tags.COMMENT_START)&&(D=!0,e=this._extractString(this.tags.COMMENT_START));null!==(z=this._extractUntil(B));){if(e+=z,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!D){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=e.length){var W=e.slice(-this.colno);if(/^\s+$/.test(W)&&!(e=e.slice(0,-this.colno)).length)return this.nextToken()}break}if(this._matches(this.tags.COMMENT_END)){if(!D)throw new Error("unexpected end of comment");e+=this._extractString(this.tags.COMMENT_END);break}e+=this.current(),this.forward()}if(null===z&&D)throw new Error("expected end of comment, got end of file");return P(D?f:l,e,t,n)},t._parseString=function(e){this.forward();for(var t="";!this.isFinished()&&this.current()!==e;){var n=this.current();if("\\"===n){switch(this.forward(),this.current()){case"n":t+="\n";break;case"t":t+="\t";break;case"r":t+="\r";break;default:t+=this.current()}this.forward()}else t+=n,this.forward()}return this.forward(),t},t._matches=function(e){return this.index+e.length>this.len?null:this.str.slice(this.index,this.index+e.length)===e},t._extractString=function(e){return this._matches(e)?(this.forwardN(e.length),e):null},t._extractUntil=function(e){return this._extractMatching(!0,e||"")},t._extract=function(e){return this._extractMatching(!1,e)},t._extractMatching=function(e,t){if(this.isFinished())return null;var n=t.indexOf(this.current());if(e&&-1===n||!e&&-1!==n){var r=this.current();this.forward();for(var o=t.indexOf(this.current());(e&&-1===o||!e&&-1!==o)&&!this.isFinished();)r+=this.current(),this.forward(),o=t.indexOf(this.current());return r}return""},t._extractRegex=function(e){var t=this.currentStr().match(e);return t?(this.forwardN(t[0].length),t):null},t.isFinished=function(){return this.index>=this.len},t.forwardN=function(e){for(var t=0;t<e;t++)this.forward()},t.forward=function(){this.index++,"\n"===this.previous()?(this.lineno++,this.colno=0):this.colno++},t.backN=function(e){for(var t=0;t<e;t++)this.back()},t.back=function(){if(this.index--,"\n"===this.current()){this.lineno--;var e=this.src.lastIndexOf("\n",this.index-1);this.colno=-1===e?this.index:this.index-e}else this.colno--},t.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},t.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},t.previous=function(){return this.str.charAt(this.index-1)},e}();e.exports={lex:function(e,t){return new A(e,t)},TOKEN_STRING:a,TOKEN_WHITESPACE:s,TOKEN_DATA:l,TOKEN_BLOCK_START:u,TOKEN_BLOCK_END:c,TOKEN_VARIABLE_START:d,TOKEN_VARIABLE_END:p,TOKEN_COMMENT:f,TOKEN_LEFT_PAREN:h,TOKEN_RIGHT_PAREN:m,TOKEN_LEFT_BRACKET:g,TOKEN_RIGHT_BRACKET:v,TOKEN_LEFT_CURLY:y,TOKEN_RIGHT_CURLY:b,TOKEN_OPERATOR:w,TOKEN_COMMA:x,TOKEN_COLON:k,TOKEN_TILDE:S,TOKEN_PIPE:E,TOKEN_INT:"int",TOKEN_FLOAT:C,TOKEN_BOOLEAN:O,TOKEN_NONE:T,TOKEN_SYMBOL:_,TOKEN_SPECIAL:"special",TOKEN_REGEX:R}},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=n(6),i=n(19).PrecompiledLoader,a=function(e){var t,n;function o(t,n){var r;return(r=e.call(this)||this).baseURL=t||".",n=n||{},r.useCache=!!n.useCache,r.async=!!n.async,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n);var i=o.prototype;return i.resolve=function(e,t){throw new Error("relative templates not support in the browser yet")},i.getSource=function(e,t){var n,r=this,o=this.useCache;return this.fetch(this.baseURL+"/"+e,function(i,a){if(i)if(t)t(i.content);else{if(404!==i.status)throw i.content;n=null}else n={src:a,path:e,noCache:!o},r.emit("load",e,n),t&&t(null,n)}),n},i.fetch=function(e,t){if("undefined"==typeof window)throw new Error("WebLoader can only by used in a browser");var n=new XMLHttpRequest,r=!0;n.onreadystatechange=function(){4===n.readyState&&r&&(r=!1,0===n.status||200===n.status?t(null,n.responseText):t({status:n.status,content:n.responseText}))},e+=(-1===e.indexOf("?")?"?":"&")+"s="+(new Date).getTime(),n.open("GET",e,this.async),n.send()},o}(o);e.exports={WebLoader:a,PrecompiledLoader:i}},function(e,t,n){var r,o=n(0),i=n(7),a=i.Environment,s=i.Template,l=n(6),u=n(10),c=n(23),d=n(5),p=n(8),f=n(9),h=n(2),m=n(3),g=n(25);function v(e,t){var n;return t=t||{},o.isObject(e)&&(t=e,e=null),u.FileSystemLoader?n=new u.FileSystemLoader(e,{watch:t.watch,noCache:t.noCache}):u.WebLoader&&(n=new u.WebLoader(e,{useCache:t.web&&t.web.useCache,async:t.web&&t.web.async})),r=new a(n,t),t&&t.express&&r.express(t.express),r}e.exports={Environment:a,Template:s,Loader:l,FileSystemLoader:u.FileSystemLoader,NodeResolveLoader:u.NodeResolveLoader,PrecompiledLoader:u.PrecompiledLoader,WebLoader:u.WebLoader,compiler:d,parser:p,lexer:f,runtime:h,lib:o,nodes:m,installJinjaCompat:g,configure:v,reset:function(){r=void 0},compile:function(e,t,n,o){return r||v(),new s(e,t,n,o)},render:function(e,t,n){return r||v(),r.render(e,t,n)},renderString:function(e,t,n){return r||v(),r.renderString(e,t,n)},precompile:c?c.precompile:void 0,precompileString:c?c.precompileString:void 0}},function(e,t,n){var r=n(13),o=[],i=[],a=r.makeRequestCallFromTimer(function(){if(i.length)throw i.shift()});function s(e){var t;(t=o.length?o.pop():new l).task=e,r(t)}function l(){this.task=null}e.exports=s,l.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},function(e,t,n){(function(t){function n(e){o.length||r(),o[o.length]=e}e.exports=n;var r,o=[],i=0;function a(){for(;i<o.length;){var e=i;if(i+=1,o[e].call(),i>1024){for(var t=0,n=o.length-i;t<n;t++)o[t]=o[t+i];o.length-=i,i=0}}o.length=0,i=0}var s=void 0!==t?t:self,l=s.MutationObserver||s.WebKitMutationObserver;function u(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}r="function"==typeof l?function(e){var t=1,n=new l(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(a):u(a),n.requestFlush=r,n.makeRequestCallFromTimer=u}).call(t,n(14))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r,o,i,a,s;o=function(){var e=Array.prototype.slice.call(arguments);"function"==typeof e[0]&&e[0].apply(null,e.splice(1))},i=function(e){"function"==typeof setImmediate?setImmediate(e):void 0!==nl&&nl.nextTick?nl.nextTick(e):setTimeout(e,0)},a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e,t,n){var r=n?i:o;if(t=t||function(){},!a(e)){var s=new Error("First argument to waterfall must be an array of functions");return t(s)}if(!e.length)return t();var l=function(e){return function(n){if(n)t.apply(null,arguments),t=function(){};else{var o=Array.prototype.slice.call(arguments,1),i=e.next();i?o.push(l(i)):o.push(t),r(function(){e.apply(null,o)})}}};l(function(e){var t=function(n){var r=function(){return e.length&&e[n].apply(null,arguments),r.next()};return r.next=function(){return n<e.length-1?t(n+1):null},r};return t(0)}(e))()},void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r)},function(e,t,n){var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):g(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)i(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(3),o=n(0),i=0;function a(){return"hole_"+i++}function s(e,t){for(var n=null,r=0;r<e.length;r++){var o=t(e[r]);o!==e[r]&&(n||(n=e.slice()),n[r]=o)}return n||e}function l(e,t,n){if(!(e instanceof r.Node))return e;if(!n){var o=t(e);if(o&&o!==e)return o}if(e instanceof r.NodeList){var i=s(e.children,function(e){return l(e,t,n)});i!==e.children&&(e=new r[e.typename](e.lineno,e.colno,i))}else if(e instanceof r.CallExtension){var a=l(e.args,t,n),u=s(e.contentArgs,function(e){return l(e,t,n)});a===e.args&&u===e.contentArgs||(e=new r[e.typename](e.extName,e.prop,a,u))}else{var c=e.fields.map(function(t){return e[t]}),d=s(c,function(e){return l(e,t,n)});d!==c&&(e=new r[e.typename](e.lineno,e.colno),d.forEach(function(t,n){e[e.fields[n]]=t}))}return n&&t(e)||e}function u(e,t){return l(e,t,!0)}function c(e,t,n){var i=[],s=u(n?e[n]:e,function(e){var n;return e instanceof r.Block?e:((e instanceof r.Filter&&-1!==o.indexOf(t,e.name.value)||e instanceof r.CallExtensionAsync)&&(n=new r.Symbol(e.lineno,e.colno,a()),i.push(new r.FilterAsync(e.lineno,e.colno,e.name,e.args,n))),n)});return n?e[n]=s:e=s,i.length?(i.push(e),new r.NodeList(e.lineno,e.colno,i)):e}function d(e,t){return function(e){return u(e,function(e){if(e instanceof r.If||e instanceof r.For){var t=!1;if(l(e,function(e){if(e instanceof r.FilterAsync||e instanceof r.IfAsync||e instanceof r.AsyncEach||e instanceof r.AsyncAll||e instanceof r.CallExtensionAsync)return t=!0,e}),t){if(e instanceof r.If)return new r.IfAsync(e.lineno,e.colno,e.cond,e.body,e.else_);if(e instanceof r.For&&!(e instanceof r.AsyncAll))return new r.AsyncEach(e.lineno,e.colno,e.arr,e.name,e.body,e.else_)}}})}(function(e){return l(e,function(e){if(e instanceof r.Block){var t=!1,n=a();e.body=l(e.body,function(e){if(e instanceof r.FunCall&&"super"===e.name.value)return t=!0,new r.Symbol(e.lineno,e.colno,n)}),t&&e.body.children.unshift(new r.Super(0,0,e.name,new r.Symbol(0,0,n)))}})}(function(e,t){return u(e,function(e){return e instanceof r.Output?c(e,t):e instanceof r.Set?c(e,t,"value"):e instanceof r.For?c(e,t,"arr"):e instanceof r.If?c(e,t,"cond"):e instanceof r.CallExtension?c(e,t,"args"):void 0})}(e,t)))}e.exports={transform:function(e,t){return d(e,t||[])}}},function(e,t,n){var r=n(0),o=n(2);function i(e,t){return null==e||!1===e?t:e}function a(e){return e!=e}function s(e){var t=(e=i(e,"")).toLowerCase();return o.copySafeness(e,t.charAt(0).toUpperCase()+t.slice(1))}function l(e){if(r.isString(e))return e.split("");if(r.isObject(e))return r._entries(e||{}).map(function(e){return{key:e[0],value:e[1]}});if(r.isArray(e))return e;throw new r.TemplateError("list filter: type not iterable")}function u(e){return function(t,n,o){void 0===n&&(n="truthy");var i=this,a=i.env.getTest(n);return r.toArray(t).filter(function(t){return a.call(i,t,o)===e})}}function c(e){return o.copySafeness(e,e.replace(/^\s*|\s*$/g,""))}(t=e.exports={}).abs=Math.abs,t.batch=function(e,t,n){var r,o=[],i=[];for(r=0;r<e.length;r++)r%t===0&&i.length&&(o.push(i),i=[]),i.push(e[r]);if(i.length){if(n)for(r=i.length;r<t;r++)i.push(n);o.push(i)}return o},t.capitalize=s,t.center=function(e,t){if(t=t||80,(e=i(e,"")).length>=t)return e;var n=t-e.length,a=r.repeat(" ",n/2-n%2),s=r.repeat(" ",n/2);return o.copySafeness(e,a+e+s)},t.default=function(e,t,n){return n?e||t:void 0!==e?e:t},t.dictsort=function(e,t,n){if(!r.isObject(e))throw new r.TemplateError("dictsort filter: val must be an object");var o,i=[];for(var a in e)i.push([a,e[a]]);if(void 0===n||"key"===n)o=0;else{if("value"!==n)throw new r.TemplateError("dictsort filter: You can only sort by either key or value");o=1}return i.sort(function(e,n){var i=e[o],a=n[o];return t||(r.isString(i)&&(i=i.toUpperCase()),r.isString(a)&&(a=a.toUpperCase())),i>a?1:i===a?0:-1}),i},t.dump=function(e,t){return JSON.stringify(e,null,t)},t.escape=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(r.escape(e.toString())))},t.safe=function(e){return e instanceof o.SafeString?e:(e=null==e?"":e,o.markSafe(e.toString()))},t.first=function(e){return e[0]},t.forceescape=function(e){return e=null==e?"":e,o.markSafe(r.escape(e.toString()))},t.groupby=function(e,t){return r.groupBy(e,t,this.env.opts.throwOnUndefined)},t.indent=function(e,t,n){if(""===(e=i(e,"")))return"";t=t||4;var a=e.split("\n"),s=r.repeat(" ",t),l=a.map(function(e,t){return 0!==t||n?""+s+e:e}).join("\n");return o.copySafeness(e,l)},t.join=function(e,t,n){return t=t||"",n&&(e=r.map(e,function(e){return e[n]})),e.join(t)},t.last=function(e){return e[e.length-1]},t.length=function(e){var t=i(e,"");return void 0!==t?"function"==typeof Map&&t instanceof Map||"function"==typeof Set&&t instanceof Set?t.size:!r.isObject(t)||t instanceof o.SafeString?t.length:r.keys(t).length:0},t.list=l,t.lower=function(e){return(e=i(e,"")).toLowerCase()},t.nl2br=function(e){return null==e?"":o.copySafeness(e,e.replace(/\r\n|\n/g,"<br />\n"))},t.random=function(e){return e[Math.floor(Math.random()*e.length)]},t.reject=u(!1),t.rejectattr=function(e,t){return e.filter(function(e){return!e[t]})},t.select=u(!0),t.selectattr=function(e,t){return e.filter(function(e){return!!e[t]})},t.replace=function(e,t,n,r){var i=e;if(t instanceof RegExp)return e.replace(t,n);void 0===r&&(r=-1);var a="";if("number"==typeof t)t=""+t;else if("string"!=typeof t)return e;if("number"==typeof e&&(e=""+e),"string"!=typeof e&&!(e instanceof o.SafeString))return e;if(""===t)return a=n+e.split("").join(n)+n,o.copySafeness(e,a);var s=e.indexOf(t);if(0===r||-1===s)return e;for(var l=0,u=0;s>-1&&(-1===r||u<r);)a+=e.substring(l,s)+n,l=s+t.length,u++,s=e.indexOf(t,l);return l<e.length&&(a+=e.substring(l)),o.copySafeness(i,a)},t.reverse=function(e){var t;return(t=r.isString(e)?l(e):r.map(e,function(e){return e})).reverse(),r.isString(e)?o.copySafeness(e,t.join("")):t},t.round=function(e,t,n){t=t||0;var r=Math.pow(10,t);return("ceil"===n?Math.ceil:"floor"===n?Math.floor:Math.round)(e*r)/r},t.slice=function(e,t,n){for(var r=Math.floor(e.length/t),o=e.length%t,i=[],a=0,s=0;s<t;s++){var l=a+s*r;s<o&&a++;var u=a+(s+1)*r,c=e.slice(l,u);n&&s>=o&&c.push(n),i.push(c)}return i},t.sum=function(e,t,n){return void 0===n&&(n=0),t&&(e=r.map(e,function(e){return e[t]})),n+e.reduce(function(e,t){return e+t},0)},t.sort=o.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(e,t,n,o){var i=this,a=r.map(e,function(e){return e}),s=r.getAttrGetter(o);return a.sort(function(e,a){var l=o?s(e):e,u=o?s(a):a;if(i.env.opts.throwOnUndefined&&o&&(void 0===l||void 0===u))throw new TypeError('sort: attribute "'+o+'" resolved to undefined');return!n&&r.isString(l)&&r.isString(u)&&(l=l.toLowerCase(),u=u.toLowerCase()),l<u?t?1:-1:l>u?t?-1:1:0}),a}),t.string=function(e){return o.copySafeness(e,e)},t.striptags=function(e,t){var n=c((e=i(e,"")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,"")),r="";return r=t?n.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,"\n").replace(/\n\n\n+/g,"\n\n"):n.replace(/\s+/gi," "),o.copySafeness(e,r)},t.title=function(e){var t=(e=i(e,"")).split(" ").map(function(e){return s(e)});return o.copySafeness(e,t.join(" "))},t.trim=c,t.truncate=function(e,t,n,r){var a=e;if(t=t||255,(e=i(e,"")).length<=t)return e;if(n)e=e.substring(0,t);else{var s=e.lastIndexOf(" ",t);-1===s&&(s=t),e=e.substring(0,s)}return e+=null!=r?r:"...",o.copySafeness(a,e)},t.upper=function(e){return(e=i(e,"")).toUpperCase()},t.urlencode=function(e){var t=encodeURIComponent;return r.isString(e)?t(e):(r.isArray(e)?e:r._entries(e)).map(function(e){var n=e[0],r=e[1];return t(n)+"="+t(r)}).join("&")};var d=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,p=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,f=/^https?:\/\/.*$/,h=/^www\./,m=/\.(?:org|net|com)(?:\:|\/|$)/;t.urlize=function(e,t,n){a(t)&&(t=1/0);var r=!0===n?' rel="nofollow"':"";return e.split(/(\s+)/).filter(function(e){return e&&e.length}).map(function(e){var n=e.match(d),o=n?n[1]:e,i=o.substr(0,t);return f.test(o)?'<a href="'+o+'"'+r+">"+i+"</a>":h.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":p.test(o)?'<a href="mailto:'+o+'">'+o+"</a>":m.test(o)?'<a href="http://'+o+'"'+r+">"+i+"</a>":e}).join("")},t.wordcount=function(e){var t=(e=i(e,""))?e.match(/\w+/g):null;return t?t.length:null},t.float=function(e,t){var n=parseFloat(e);return a(n)?t:n};var g=o.makeMacro(["value","default","base"],[],function(e,t,n){void 0===n&&(n=10);var r=parseInt(e,n);return a(r)?t:r});t.int=g,t.d=t.default,t.e=t.escape},function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o=function(e){var t,n;function o(t){var n;return(n=e.call(this)||this).precompiled=t||{},n}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n),o.prototype.getSource=function(e){return this.precompiled[e]?{src:{type:"code",obj:this.precompiled[e]},path:e}:null},o}(n(6));e.exports={PrecompiledLoader:o}},function(e,t,n){var r=n(2).SafeString;t.callable=function(e){return"function"==typeof e},t.defined=function(e){return void 0!==e},t.divisibleby=function(e,t){return e%t===0},t.escaped=function(e){return e instanceof r},t.equalto=function(e,t){return e===t},t.eq=t.equalto,t.sameas=t.equalto,t.even=function(e){return e%2==0},t.falsy=function(e){return!e},t.ge=function(e,t){return e>=t},t.greaterthan=function(e,t){return e>t},t.gt=t.greaterthan,t.le=function(e,t){return e<=t},t.lessthan=function(e,t){return e<t},t.lt=t.lessthan,t.lower=function(e){return e.toLowerCase()===e},t.ne=function(e,t){return e!==t},t.null=function(e){return null===e},t.number=function(e){return"number"==typeof e},t.odd=function(e){return e%2==1},t.string=function(e){return"string"==typeof e},t.truthy=function(e){return!!e},t.undefined=function(e){return void 0===e},t.upper=function(e){return e.toUpperCase()===e},t.iterable=function(e){return"undefined"!=typeof Symbol?!!e[Symbol.iterator]:Array.isArray(e)||"string"==typeof e},t.mapping=function(e){var t=null!=e&&"object"==typeof e&&!Array.isArray(e);return Set?t&&!(e instanceof Set):t}},function(e,t,n){e.exports=function(){return{range:function(e,t,n){void 0===t?(t=e,e=0,n=1):n||(n=1);var r=[];if(n>0)for(var o=e;o<t;o+=n)r.push(o);else for(var i=e;i>t;i+=n)r.push(i);return r},cycler:function(){return function(e){var t=-1;return{current:null,reset:function(){t=-1,this.current=null},next:function(){return++t>=e.length&&(t=0),this.current=e[t],this.current}}}(Array.prototype.slice.call(arguments))},joiner:function(e){return function(e){e=e||",";var t=!0;return function(){var n=t?"":e;return t=!1,n}}(e)}}}},function(e,t,n){var r=n(4);e.exports=function(e,t){function n(e,t){if(this.name=e,this.path=e,this.defaultEngine=t.defaultEngine,this.ext=r.extname(e),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=("."!==this.defaultEngine[0]?".":"")+this.defaultEngine)}return n.prototype.render=function(t,n){e.render(this.name,t,n)},t.set("view",n),t.set("nunjucksEnv",e),e}},function(e,t,n){var r=n(4),o=n(4),i=n(0)._prettifyError,a=n(5),s=n(7).Environment,l=n(24);function u(e,t){return!!Array.isArray(t)&&t.some(function(t){return e.match(t)})}function c(e,t){(t=t||{}).isString=!0;var n=t.env||new s([]),r=t.wrapper||l;if(!t.name)throw new Error('the "name" option is required when compiling a string');return r([d(e,t.name,n)],t)}function d(e,t,n){var r,o=(n=n||new s([])).asyncFilters,l=n.extensionsList;t=t.replace(/\\/g,"/");try{r=a.compile(e,o,l,t,n.opts)}catch(e){throw i(t,!1,e)}return{name:t,template:r}}e.exports={precompile:function(e,t){var n=(t=t||{}).env||new s([]),i=t.wrapper||l;if(t.isString)return c(e,t);var a=r.existsSync(e)&&r.statSync(e),p=[],f=[];if(a.isFile())p.push(d(r.readFileSync(e,"utf-8"),t.name||e,n));else if(a.isDirectory()){!function n(i){r.readdirSync(i).forEach(function(a){var s=o.join(i,a),l=s.substr(o.join(e,"/").length),c=r.statSync(s);c&&c.isDirectory()?u(l+="/",t.exclude)||n(s):u(l,t.include)&&f.push(s)})}(e);for(var h=0;h<f.length;h++){var m=f[h].replace(o.join(e,"/"),"");try{p.push(d(r.readFileSync(f[h],"utf-8"),m,n))}catch(e){if(!t.force)throw e;console.error(e)}}}return i(p,t)},precompileString:c}},function(e,t,n){e.exports=function(e,t){var n="";t=t||{};for(var r=0;r<e.length;r++){var o=JSON.stringify(e[r].name);n+="(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["+o+"] = (function() {\n"+e[r].template+"\n})();\n",t.asFunction&&(n+="return function(ctx, cb) { return nunjucks.render("+o+", ctx, cb); }\n"),n+="})();\n"}return n}},function(e,t,n){e.exports=function(){var e,t,n=this.runtime,r=this.lib,o=this.compiler.Compiler,i=this.parser.Parser,a=this.nodes,s=this.lexer,l=n.contextOrFrameLookup,u=n.memberLookup;function c(e){return{index:e.index,lineno:e.lineno,colno:e.colno}}if(o&&(e=o.prototype.assertType),i&&(t=i.prototype.parseAggregate),n.contextOrFrameLookup=function(e,t,n){var r=l.apply(this,arguments);if(void 0!==r)return r;switch(n){case"True":return!0;case"False":return!1;case"None":return null;default:return}},a&&o&&i){var d=a.Node.extend("Slice",{fields:["start","stop","step"],init:function(e,t,n,r,o){n=n||new a.Literal(e,t,null),r=r||new a.Literal(e,t,null),o=o||new a.Literal(e,t,1),this.parent(e,t,n,r,o)}});o.prototype.assertType=function(t){t instanceof d||e.apply(this,arguments)},o.prototype.compileSlice=function(e,t){this._emit("("),this._compileExpression(e.start,t),this._emit("),("),this._compileExpression(e.stop,t),this._emit("),("),this._compileExpression(e.step,t),this._emit(")")},i.prototype.parseAggregate=function(){var e=this,n=c(this.tokens);n.colno--,n.index--;try{return t.apply(this)}catch(t){var o=c(this.tokens),i=function(){return r._assign(e.tokens,o),t};r._assign(this.tokens,n),this.peeked=!1;var l=this.peekToken();if(l.type!==s.TOKEN_LEFT_BRACKET)throw i();this.nextToken();for(var u=new d(l.lineno,l.colno),p=!1,f=0;f<=u.fields.length&&!this.skip(s.TOKEN_RIGHT_BRACKET);f++){if(f===u.fields.length){if(!p)break;this.fail("parseSlice: too many slice components",l.lineno,l.colno)}this.skip(s.TOKEN_COLON)?p=!0:(u[u.fields[f]]=this.parseExpression(),p=this.skip(s.TOKEN_COLON)||p)}if(!p)throw i();return new a.Array(l.lineno,l.colno,[u])}}}function p(e,t,r,o){e=e||[],null===t&&(t=o<0?e.length-1:0),null===r?r=o<0?-1:e.length:r<0&&(r+=e.length),t<0&&(t+=e.length);for(var i=[],a=t;!(a<0||a>e.length||o>0&&a>=r||o<0&&a<=r);a+=o)i.push(n.memberLookup(e,a));return i}function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h={pop:function(e){if(void 0===e)return this.pop();if(e>=this.length||e<0)throw new Error("KeyError");return this.splice(e,1)},append:function(e){return this.push(e)},remove:function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return this.splice(t,1);throw new Error("ValueError")},count:function(e){for(var t=0,n=0;n<this.length;n++)this[n]===e&&t++;return t},index:function(e){var t;if(-1===(t=this.indexOf(e)))throw new Error("ValueError");return t},find:function(e){return this.indexOf(e)},insert:function(e,t){return this.splice(e,0,t)}},m={items:function(){return r._entries(this)},values:function(){return r._values(this)},keys:function(){return r.keys(this)},get:function(e,t){var n=this[e];return void 0===n&&(n=t),n},has_key:function(e){return f(this,e)},pop:function(e,t){var n=this[e];if(void 0===n&&void 0!==t)n=t;else{if(void 0===n)throw new Error("KeyError");delete this[e]}return n},popitem:function(){var e=r.keys(this);if(!e.length)throw new Error("KeyError");var t=e[0],n=this[t];return delete this[t],[t,n]},setdefault:function(e,t){return void 0===t&&(t=null),e in this||(this[e]=t),this[e]},update:function(e){return r._assign(this,e),null}};return m.iteritems=m.items,m.itervalues=m.values,m.iterkeys=m.keys,n.memberLookup=function(e,t,n){return 4===arguments.length?p.apply(this,arguments):(e=e||{},r.isArray(e)&&f(h,t)?h[t].bind(e):r.isObject(e)&&f(m,t)?m[t].bind(e):u.apply(this,arguments))},function(){n.contextOrFrameLookup=l,n.memberLookup=u,o&&(o.prototype.assertType=e),i&&(i.prototype.parseAggregate=t)}}}])},e.exports=t()}(rl)),rl.exports),il=t(ol);const al={GoogleChart:function({chart:e,source:t,view:n,report:r,schema:o,dashboard:i,query:a}){const[s,c]=u.useState([]),d=Os(),[p,f]=u.useState([]);l.useEffect(()=>{(async()=>{const e=await Cs.getDateRanges();f(e)})()},[]);const h=l.useMemo(()=>{const e="YYYY-MM-dd",t=a?.date_range?.name,n=p.find(e=>e.name===t);if(!n)return e;return Ts[n?.granularity]||e},[p,a]);return u.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];i.push(function(e,t){const n=[...t.doc.metrics,...t.doc.dimensions],r=e.columns.reduce((e,t)=>{const r=n.find(e=>e.name===t.name)||t;return e.push(r.title||r.name),e},[]);return r}(n,o));const a=Jo(n,o);t?.forEach(e=>{const t=a(e);i.push(t)}),t?.length?c(i):c()},[e,t,n,r,o]),s?u.createElement("div",{style:{}},u.createElement(Ko,ko({width:e?.doc.size?.width||"100%",chartType:e?.doc.chart?.type,data:s,options:(t=>{if("Table"===e?.doc.chart?.type)return{...e?.doc.chart?.options,cssClassNames:d};if("AreaChart"===e?.doc.chart?.type){const n=e?.doc.chart?.options?.hAxis||{},r={...{ticks:t.slice(1).map(e=>e[0]),format:h},...n};return{...e?.doc.chart?.options,hAxis:r,focusTarget:"category"}}return e?.doc.chart?.options})(s)},e?.doc.chart?.props))):u.createElement("div",null)},LabelChart:function({chart:e,source:t,view:n,report:r,schema:o}){const[i,a]=u.useState([]),[s,l]=u.useState(),[c,d]=u.useState();return u.useEffect(()=>{if(!(e&&n&&t&&r&&o))return;let i=[];const s=Jo(n,o);t.forEach(e=>i.push(s(e))),a(i);const u=e?.doc?.chart?.options||{},c=u?.index||0;if(i.length>0&&l(i[0][c]),u.subText?.format){il.configure({autoescape:!1});const e=Jo(n,o,"object")(t[0]),r=il.renderString(u.subText?.format,e);d(r)}},[e,t,n,r,o]),u.createElement("div",{style:{display:"flex",justifyContent:"center",alignContent:"center",height:"100%",flexDirection:"column"}},u.createElement(Ps,{variant:"h6"},s?.f||s),u.createElement(Ps,{variant:"caption"},c))}};function sl(e,t){return void 0!==al[e]?u.createElement(al[e],t):u.createElement(Ro,t)}function ll(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ul(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(ll(e.value)&&""!==e.value||t&&ll(e.defaultValue)&&""!==e.defaultValue)}function cl(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var dl=l.createContext();var pl=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,s=e.component,u=void 0===s?"div":s,c=e.disabled,d=void 0!==c&&c,h=e.error,g=void 0!==h&&h,v=e.fullWidth,y=void 0!==v&&v,b=e.focused,w=e.hiddenLabel,x=void 0!==w&&w,k=e.margin,S=void 0===k?"none":k,E=e.required,C=void 0!==E&&E,O=e.size,T=e.variant,_=void 0===T?"standard":T,R=p(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),P=l.useState(function(){var e=!1;return n&&l.Children.forEach(n,function(t){if(cl(t,["Input","Select"])){var n=cl(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}}),e}),A=P[0],L=P[1],N=l.useState(function(){var e=!1;return n&&l.Children.forEach(n,function(t){cl(t,["Input","Select"])&&ul(t.props,!0)&&(e=!0)}),e}),M=N[0],I=N[1],F=l.useState(!1),$=F[0],j=F[1],z=void 0!==b?b:$;d&&z&&j(!1);var B=l.useCallback(function(){I(!0)},[]),D={adornedStart:A,setAdornedStart:L,color:a,disabled:d,error:g,filled:M,focused:z,fullWidth:y,hiddenLabel:x,margin:("small"===O?"dense":void 0)||S,onBlur:function(){j(!1)},onEmpty:l.useCallback(function(){I(!1)},[]),onFilled:B,onFocus:function(){j(!0)},registerEffect:undefined,required:C,variant:_};return l.createElement(dl.Provider,{value:D},l.createElement(u,f({className:m(r.root,o,"none"!==S&&r["margin".concat(Co(S))],y&&r.fullWidth),ref:t},R),n))}),fl=bo({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(pl);function hl(){return l.useContext(dl)}function ml(e){return e&&e.ownerDocument||document}var gl,vl,yl,bl,wl={exports:{}},xl={},kl={exports:{}},Sl={};function El(){return vl||(vl=1,kl.exports=(gl||(gl=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,L(x);else{var t=n(u);null!==t&&N(w,t.startTime-e)}}function x(t,o){h=!1,m&&(m=!1,v(C),C=-1),f=!0;var i=p;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!_());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&N(w,g.startTime-o),c=!1}return c}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,O=5,T=-1;function _(){return!(e.unstable_now()-T<O)}function R(){if(null!==E){var t=e.unstable_now();T=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(R)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=R,k=function(){A.postMessage(null)}}else k=function(){g(R,0)};function L(e){E=e,S||(S=!0,k())}function N(t,n){C=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,L(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(v(C),C=-1):m=!0,N(w,i-a))):(r.sortIndex=s,t(l,r),h||f||(h=!0,L(x))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Sl)),Sl)),kl.exports}
|
|
16
16
|
/**
|
|
17
17
|
* @license React
|
|
18
18
|
* react-dom.production.min.js
|
|
@@ -21,14 +21,14 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/function Hs(){if(zs)return Ws;zs=1;var e=s(),t=Ks();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){h[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(p,e)||!u.call(d,e)&&(c.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),L=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,I=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var $=!1;function j(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case w:return"Portal";case S:return"Profiler";case k:return"StrictMode";case _:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?J(e,t.type,n):t.hasOwnProperty("defaultValue")&&J(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function J(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Z=Array.isArray;function ee(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Z(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function re(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,le,ue=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return le(e,t)})}:le);function ce(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]})});var me=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,xe=null,ke=null;function Se(e){if(e=yo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Ce(){if(xe){var e=xe,t=ke;if(ke=xe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function _e(){}var Te=!1;function Re(e,t,n){if(Te)return e(t,n);Te=!0;try{return Oe(e,t,n)}finally{Te=!1,(null!==xe||null!==ke)&&(_e(),Ce())}}function Pe(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ae=!1;if(l)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(le){Ae=!1}function Ne(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Ie=null,Fe=!1,$e=null,je={onError:function(e){Me=!0,Ie=e}};function ze(e,t,n,r,o,i,a,s,l){Me=!1,Ie=null,Ne.apply(je,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function De(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Be(e)!==e)throw Error(n(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return We(i),e;if(a===o)return We(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ye=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/at|0)|0},it=Math.log,at=Math.LN2;var st=64,lt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ut(s):0!==(i&=a)&&(r=ut(i))}else 0!==(a=n&~o)?r=ut(a):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,wt,xt,kt,St,Et=!1,Ct=[],Ot=null,_t=null,Tt=null,Rt=new Map,Pt=new Map,At=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=yo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=vo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=De(n)))return e.blockedOn=t,void St(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function $t(e,t,n){Ft(e)&&n.delete(t)}function jt(){Et=!1,null!==Ot&&Ft(Ot)&&(Ot=null),null!==_t&&Ft(_t)&&(_t=null),null!==Tt&&Ft(Tt)&&(Tt=null),Rt.forEach($t),Pt.forEach($t)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jt)))}function Bt(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&zt(Ot,e),null!==_t&&zt(_t,e),null!==Tt&&zt(Tt,e),Rt.forEach(t),Pt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)It(n),null===n.blockedOn&&At.shift()}var Dt=y.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var o=vt,i=Dt.transition;Dt.transition=null;try{vt=1,Kt(e,t,n,r)}finally{vt=o,Dt.transition=i}}function Vt(e,t,n,r){var o=vt,i=Dt.transition;Dt.transition=null;try{vt=4,Kt(e,t,n,r)}finally{vt=o,Dt.transition=i}}function Kt(e,t,n,r){if(Wt){var o=qt(e,t,n,r);if(null===o)Wr(e,t,r,Ht,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Mt(Ot,e,t,n,r,o),!0;case"dragenter":return _t=Mt(_t,e,t,n,r,o),!0;case"mouseover":return Tt=Mt(Tt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=yo(o);if(null!==i&&bt(i),null===(i=qt(e,t,n,r))&&Wr(e,t,r,Ht,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Ht=null;function qt(e,t,n,r){if(Ht=null,null!==(e=vo(e=be(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=De(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Qe:return 1;case Je:return 4;case Ze:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Qt=null;function Jt(){if(Qt)return Qt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=I({},sn,{view:0,detail:0}),cn=nn(un),dn=I({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),pn=nn(dn),fn=nn(I({},dn,{dataTransfer:0})),hn=nn(I({},un,{relatedTarget:0})),mn=nn(I({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=I({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=nn(gn),yn=nn(I({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return kn}var En=I({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=nn(En),On=nn(I({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=nn(I({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Tn=nn(I({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=I({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=nn(Rn),An=[9,13,27,32],Ln=l&&"CompositionEvent"in window,Nn=null;l&&"documentMode"in document&&(Nn=document.documentMode);var Mn=l&&"TextEvent"in window&&!Nn,In=l&&(!Ln||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),$n=!1;function jn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Dn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Dn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Hn(e){Fr(e,0)}function qn(e){if(K(bo(e)))return e}function Gn(e,t){if("change"===e)return t}var Yn=!1;if(l){var Xn;if(l){var Qn="oninput"in document;if(!Qn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Qn="function"==typeof Jn.oninput}Xn=Qn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function Zn(){Vn&&(Vn.detachEvent("onpropertychange",er),Kn=Vn=null)}function er(e){if("value"===e.propertyName&&qn(Kn)){var t=[];Un(t,Kn,e,be(e)),Re(Hn,t)}}function tr(e,t,n){"focusin"===e?(Zn(),Kn=n,(Vn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Zn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function rr(e,t){if("click"===e)return qn(t)}function or(e,t){if("input"===e||"change"===e)return qn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!u.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lr(n,i);var a=lr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=l&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==H(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=Vr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},kr={};function Sr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Sr("animationend"),Cr=Sr("animationiteration"),Or=Sr("animationstart"),_r=Sr("transitionend"),Tr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Tr.set(e,t),i(t,[e])}for(var Ar=0;Ar<Rr.length;Ar++){var Lr=Rr[Ar];Pr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Pr(Er,"onAnimationEnd"),Pr(Cr,"onAnimationIteration"),Pr(Or,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(_r,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Ir(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var c=Ie;Me=!1,Ie=null,Fe||(Fe=!0,$e=c)}}(o,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,u),i=l}}}if(Fe)throw e=$e,Fe=!1,$e=null,e}function $r(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Dr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,jr("selectionchange",!1,t))}}function Dr(e,t,n,r){switch(Gt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=vo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=be(n),a=[];e:{var s=Tr.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=_n;break;case Er:case Cr:case Or:l=mn;break;case _r:l=Tn;break;case"scroll":l=cn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Pe(h,p))&&c.push(Ur(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(u=n.relatedTarget||n.fromElement)||!vo(u)&&!u[fo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vo(u):null)&&(u!==(d=Be(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:bo(l),f=null==u?s:bo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,vo(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=Kr(f))h++;for(f=0,m=p;m;m=Kr(m))f++;for(;0<h-f;)c=Kr(c),h--;for(;0<f-h;)p=Kr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Kr(c),p=Kr(p)}c=null}else c=null;null!==l&&Hr(a,s,l,c,!1),null!==u&&null!==d&&Hr(a,d,u,c,!0)}if("select"===(l=(s=r?bo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Gn;else if(Wn(s))if(Yn)g=or;else{g=nr;var v=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Un(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&J(s,"number",s.value)),v=r?bo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(a,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":yr(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=Jt()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Vr(r,b)).length&&(b=new yn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:($n=!0,Fn);case"textInput":return(e=t.data)===Fn&&$n?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Ln&&jn(e,t)?(e=Jt(),Qt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new yn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Fr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Pe(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Hr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Pe(n,i))&&a.unshift(Ur(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Gr,"")}function Xr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Qr(){}var Jr=null,Zr=null;function eo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var to="function"==typeof setTimeout?setTimeout:void 0,no="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,oo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ro?function(e){return ro.resolve(null).then(e).catch(io)}:to;function io(e){setTimeout(function(){throw e})}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function lo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var uo=Math.random().toString(36).slice(2),co="__reactFiber$"+uo,po="__reactProps$"+uo,fo="__reactContainer$"+uo,ho="__reactEvents$"+uo,mo="__reactListeners$"+uo,go="__reactHandles$"+uo;function vo(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fo]||n[co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lo(e);null!==e;){if(n=e[co])return n;e=lo(e)}return t}n=(e=n).parentNode}return null}function yo(e){return!(e=e[co]||e[fo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[po]||null}var xo=[],ko=-1;function So(e){return{current:e}}function Eo(e){0>ko||(e.current=xo[ko],xo[ko]=null,ko--)}function Co(e,t){ko++,xo[ko]=e.current,e.current=t}var Oo={},_o=So(Oo),To=So(!1),Ro=Oo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=(e=e.childContextTypes)}function Lo(){Eo(To),Eo(_o)}function No(e,t,r){if(_o.current!==Oo)throw Error(n(168));Co(_o,t),Co(To,r)}function Mo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,D(e)||"Unknown",i));return I({},r,o)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Ro=_o.current,Co(_o,e),Co(To,To.current),!0}function Fo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Mo(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(To),Eo(_o),Co(_o,e)):Eo(To),Co(To,r)}var $o=null,jo=!1,zo=!1;function Bo(e){null===$o?$o=[e]:$o.push(e)}function Do(){if(!zo&&null!==$o){zo=!0;var e=0,t=vt;try{var n=$o;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$o=null,jo=!1}catch(t){throw null!==$o&&($o=$o.slice(e+1)),Ke(Qe,Do),t}finally{vt=t,zo=!1}}return null}var Wo=[],Uo=0,Vo=null,Ko=0,Ho=[],qo=0,Go=null,Yo=1,Xo="";function Qo(e,t){Wo[Uo++]=Ko,Wo[Uo++]=Vo,Vo=e,Ko=t}function Jo(e,t,n){Ho[qo++]=Yo,Ho[qo++]=Xo,Ho[qo++]=Go,Go=e;var r=Yo;e=Xo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var i=32-ot(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-ot(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function Zo(e){null!==e.return&&(Qo(e,1),Jo(e,1,0))}function ei(e){for(;e===Vo;)Vo=Wo[--Uo],Wo[Uo]=null,Ko=Wo[--Uo],Wo[Uo]=null;for(;e===Go;)Go=Ho[--qo],Ho[qo]=null,Xo=Ho[--qo],Ho[qo]=null,Yo=Ho[--qo],Ho[qo]=null}var ti=null,ni=null,ri=!1,oi=null;function ii(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ai(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ti=e,ni=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ti=e,ni=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ti=e,ni=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function li(e){if(ri){var t=ni;if(t){var r=t;if(!ai(e,t)){if(si(e))throw Error(n(418));t=so(r.nextSibling);var o=ti;t&&ai(e,t)?ii(o,r):(e.flags=-4097&e.flags|2,ri=!1,ti=e)}}else{if(si(e))throw Error(n(418));e.flags=-4097&e.flags|2,ri=!1,ti=e}}}function ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ti=e}function ci(e){if(e!==ti)return!1;if(!ri)return ui(e),ri=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!eo(e.type,e.memoizedProps)),t&&(t=ni)){if(si(e))throw di(),Error(n(418));for(;t;)ii(e,t),t=so(t.nextSibling)}if(ui(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ni=so(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ni=null}}else ni=ti?so(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ni;e;)e=so(e.nextSibling)}function pi(){ni=ti=null,ri=!1}function fi(e){null===oi?oi=[e]:oi.push(e)}var hi=y.ReactCurrentBatchConfig;function mi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vi(e){return(0,e._init)(e._payload)}function yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&vi(o)===t.type)?((r=i(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Iu(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case w:return(t=zu(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(Z(t)||N(t))return(t=Fu(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?u(e,t,n,r):null;case w:return n.key===o?c(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(Z(n)||N(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(Z(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ri&&Qo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ri&&Qo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ri&&Qo(n,m),u}function g(i,s,l,u){var c=N(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ri&&Qo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ri&&Qo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ri&&Qo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&vi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=mi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=Fu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Iu(a.type,a.key,a.props,null,n.mode,l)).ref=mi(n,o,a),l.return=n,n=l)}return s(n);case w:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zu(a,n.mode,l)).return=n,n=o}return s(n);case P:return e(n,o,(c=a._init)(a._payload),l)}if(Z(a))return m(n,o,a,l);if(N(a))return g(n,o,a,l);gi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=ju(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var bi=yi(!0),wi=yi(!1),xi=So(null),ki=null,Si=null,Ei=null;function Ci(){Ei=Si=ki=null}function Oi(e){var t=xi.current;Eo(xi),e._currentValue=t}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){ki=e,Ei=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===ki)throw Error(n(308));Si=e,ki.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Pi=null;function Ai(e){null===Pi?Pi=[e]:Pi.push(e)}function Li(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=I({},d,p);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);$l|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ui={},Vi=So(Ui),Ki=So(Ui),Hi=So(Ui);function qi(e){if(e===Ui)throw Error(n(174));return e}function Gi(e,t){switch(Co(Hi,t),Co(Ki,e),Co(Vi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Vi),Co(Vi,t)}function Yi(){Eo(Vi),Eo(Ki),Eo(Hi)}function Xi(e){qi(Hi.current);var t=qi(Vi.current),n=ae(t,e.type);t!==n&&(Co(Ki,e),Co(Vi,n))}function Qi(e){Ki.current===e&&(Eo(Vi),Eo(Ki))}var Ji=So(0);function Zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ea=[];function ta(){for(var e=0;e<ea.length;e++)ea[e]._workInProgressVersionPrimary=null;ea.length=0}var na=y.ReactCurrentDispatcher,ra=y.ReactCurrentBatchConfig,oa=0,ia=null,aa=null,sa=null,la=!1,ua=!1,ca=0,da=0;function pa(){throw Error(n(321))}function fa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function ha(e,t,r,o,i,a){if(oa=a,ia=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=null===e||null===e.memoizedState?Qa:Ja,e=r(o,i),ua){a=0;do{if(ua=!1,ca=0,25<=a)throw Error(n(301));a+=1,sa=aa=null,t.updateQueue=null,na.current=Za,e=r(o,i)}while(ua)}if(na.current=Xa,t=null!==aa&&null!==aa.next,oa=0,sa=aa=ia=null,la=!1,t)throw Error(n(300));return e}function ma(){var e=0!==ca;return ca=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?ia.memoizedState=sa=e:sa=sa.next=e,sa}function va(){if(null===aa){var e=ia.alternate;e=null!==e?e.memoizedState:null}else e=aa.next;var t=null===sa?ia.memoizedState:sa.next;if(null!==t)sa=t,aa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(aa=e).memoizedState,baseState:aa.baseState,baseQueue:aa.baseQueue,queue:aa.queue,next:null},null===sa?ia.memoizedState=sa=e:sa=sa.next=e}return sa}function ya(e,t){return"function"==typeof t?t(e):t}function ba(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=aa,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((oa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,s=o):u=u.next=p,ia.lanes|=d,$l|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,ir(o,t.memoizedState)||(vs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ia.lanes|=a,$l|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ir(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function xa(){}function ka(e,t){var r=ia,o=va(),i=t(),a=!ir(o.memoizedState,i);if(a&&(o.memoizedState=i,vs=!0),o=o.queue,Ma(Ca.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Pl)throw Error(n(349));30&oa||Sa(r,t,i)}return i}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&_a(e)}function Ca(e,t,n){return n(function(){Oa(t)&&_a(e)})}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function _a(e){var t=Ni(e,1);null!==t&&ru(t,e,1,-1)}function Ta(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t.queue=e,e=e.dispatch=Ha.bind(null,ia,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return va().memoizedState}function Aa(e,t,n,r){var o=ga();ia.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var o=va();r=void 0===r?null:r;var i=void 0;if(null!==aa){var a=aa.memoizedState;if(i=a.destroy,null!==r&&fa(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}ia.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Na(e,t){return Aa(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Ia(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ja(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,$a.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Da(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&oa?(ir(n,t)||(n=ft(),ia.lanes|=n,$l|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n)}function Ua(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ra.transition;ra.transition={};try{e(!1),t()}finally{vt=n,ra.transition=r}}function Va(){return va().memoizedState}function Ka(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ga(t,n);else if(null!==(n=Li(e,t,n,r))){ru(n,e,r,tu()),Ya(n,t,r)}}function Ha(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ga(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,ir(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ai(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Li(e,t,o,r))&&(ru(n,e,r,o=tu()),Ya(n,t,r))}}function qa(e){var t=e.alternate;return e===ia||null!==t&&t===ia}function Ga(e,t){ua=la=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Xa={readContext:Ri,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Qa={readContext:Ri,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Na,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,ia,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:Ta,useDebugValue:za,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=Ta(!1),t=e[0];return e=Ua.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=ia,i=ga();if(ri){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Pl)throw Error(n(349));30&oa||Sa(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Na(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ga(),t=Pl.identifierPrefix;if(ri){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-ot(Yo)-1)).toString(32)+n),0<(n=ca++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ja={readContext:Ri,useCallback:Ba,useContext:Ri,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Ia,useLayoutEffect:Fa,useMemo:Da,useReducer:ba,useRef:Pa,useState:function(){return ba(ya)},useDebugValue:za,useDeferredValue:function(e){return Wa(va(),aa.memoizedState,e)},useTransition:function(){return[ba(ya)[0],va().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:Ba,useContext:Ri,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Ia,useLayoutEffect:Fa,useMemo:Da,useReducer:wa,useRef:Pa,useState:function(){return wa(ya)},useDebugValue:za,useDeferredValue:function(e){var t=va();return null===aa?t.memoizedState=e:Wa(t,aa.memoizedState,e)},useTransition:function(){return[wa(ya)[0],va().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function es(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=$i(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=$i(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=$i(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,r))&&(ru(t,e,r,n),zi(t,e,r))}};function rs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,i))}function os(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Ao(t)?Ro:_o.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function is(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ns.enqueueReplaceState(t,t.state,null)}function as(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Ao(t)?Ro:_o.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ts(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ns.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ss(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var cs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=$i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,Hl=r),us(0,t)},n}function ps(e,t,n){(n=$i(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){us(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function hs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ms(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$i(-1,1)).tag=2,ji(n,t,1))),n.lanes|=1),e)}var gs=y.ReactCurrentOwner,vs=!1;function ys(e,t,n,r){t.child=null===e?wi(t,null,n,r):bi(t,e.child,n,r)}function bs(e,t,n,r,o){n=n.render;var i=t.ref;return Ti(t,o),r=ha(e,t,n,r,i,o),n=ma(),null===e||vs?(ri&&n&&Zo(t),t.flags|=1,ys(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Vs(e,t,o)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ar(i,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Vs(e,t,o);131072&e.flags&&(vs=!0)}}return Es(e,t,n,r,o)}function ks(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Ml,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Ml,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Ml,Nl),Nl|=r;return ys(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Ao(n)?Ro:_o.current;return i=Po(t,i),Ti(t,o),n=ha(e,t,n,r,i,o),r=ma(),null===e||vs?(ri&&r&&Zo(t),t.flags|=1,ys(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function Cs(e,t,n,r,o){if(Ao(n)){var i=!0;Io(t)}else i=!1;if(Ti(t,o),null===t.stateNode)Us(e,t),os(t,n,r),as(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Po(t,u=Ao(n)?Ro:_o.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&is(t,a,r,u),Mi=!1;var p=t.memoizedState;a.state=p,Di(t,r,a,o),l=t.memoizedState,s!==r||p!==l||To.current||Mi?("function"==typeof c&&(ts(t,n,c,r),l=t.memoizedState),(s=Mi||rs(t,n,s,r,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:es(t.type,s),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Po(t,l=Ao(n)?Ro:_o.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&is(t,a,r,l),Mi=!1,p=t.memoizedState,a.state=p,Di(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||To.current||Mi?("function"==typeof f&&(ts(t,n,f,r),h=t.memoizedState),(u=Mi||rs(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,i,o)}function Os(e,t,n,r,o,i){Ss(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Vs(e,t,i);r=t.stateNode,gs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=bi(t,e.child,null,i),t.child=bi(t,null,s,i)):ys(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),Gi(e,t.containerInfo)}function Ts(e,t,n,r,o){return pi(),fi(o),t.flags|=256,ys(e,t,n,r),t.child}var Rs,Ps,As,Ls,Ns={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,r){var o,i=t.pendingProps,a=Ji.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(Ji,1&a),null===e)return li(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=$u(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Fu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(r),t.memoizedState=Ns,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,$s(e,t,s,o=ls(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=$u({mode:"visible",children:o.children},i,0,null),(a=Fu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&bi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ns,a);if(!(1&t.mode))return $s(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,$s(e,t,s,o=ls(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),vs||l){if(null!==(o=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ni(e,i),ru(o,e,i,-1))}return gu(),$s(e,t,s,o=ls(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ni=so(i.nextSibling),ti=t,ri=!0,oi=null,null!==e&&(Ho[qo++]=Yo,Ho[qo++]=Xo,Ho[qo++]=Go,Yo=e.id,Xo=e.overflow,Go=t),t=Fs(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Mu(o,s):(s=Fu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,i}return e=(s=e.child).sibling,i=Mu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=$u({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $s(e,t,n,r){return null!==r&&fi(r),bi(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ds(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ys(e,t,r.children,n),2&(r=Ji.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(Ji,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),$l|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hs(e,t){if(!ri)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,r){var i=t.pendingProps;switch(ei(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ao(t.type)&&Lo(),qs(t),null;case 3:return i=t.stateNode,Yi(),Eo(To),Eo(_o),ta(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ci(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oi&&(su(oi),oi=null))),Ps(e,t),qs(t),null;case 5:Qi(t);var a=qi(Hi.current);if(r=t.type,null!==e&&null!=t.stateNode)As(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return qs(t),null}if(e=qi(Vi.current),ci(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[co]=t,i[po]=s,e=!!(1&t.mode),r){case"dialog":$r("cancel",i),$r("close",i);break;case"iframe":case"object":case"embed":$r("load",i);break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],i);break;case"source":$r("error",i);break;case"img":case"image":case"link":$r("error",i),$r("load",i);break;case"details":$r("toggle",i);break;case"input":G(i,s),$r("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},$r("invalid",i);break;case"textarea":ne(i,s),$r("invalid",i)}for(var l in ge(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&$r("scroll",i)}switch(r){case"input":V(i),Q(i,s,!0);break;case"textarea":V(i),oe(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Qr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[co]=t,e[po]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,i),r){case"dialog":$r("cancel",e),$r("close",e),a=i;break;case"iframe":case"object":case"embed":$r("load",e),a=i;break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],e);a=i;break;case"source":$r("error",e),a=i;break;case"img":case"image":case"link":$r("error",e),$r("load",e),a=i;break;case"details":$r("toggle",e),a=i;break;case"input":G(e,i),a=q(e,i),$r("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=I({},i,{value:void 0}),$r("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),$r("invalid",e)}for(s in ge(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?he(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&ue(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ce(e,c):"number"==typeof c&&ce(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&$r("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":V(e),Q(e,i,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ee(e,!!i.multiple,s,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Qr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Hi.current),qi(Vi.current),ci(t)){if(i=t.stateNode,r=t.memoizedProps,i[co]=t,(s=i.nodeValue!==r)&&null!==(e=ti))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[co]=t,t.stateNode=i}return qs(t),null;case 13:if(Eo(Ji),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ri&&null!==ni&&1&t.mode&&!(128&t.flags))di(),pi(),t.flags|=98560,s=!1;else if(s=ci(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[co]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),s=!1}else null!==oi&&(su(oi),oi=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Ji.current?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Yi(),Ps(e,t),null===e&&Br(t.stateNode.containerInfo),qs(t),null;case 10:return Oi(t.type._context),qs(t),null;case 19:if(Eo(Ji),null===(s=t.memoizedState))return qs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Hs(s,!1);else{if(0!==Il||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Zi(e))){for(t.flags|=128,Hs(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Co(Ji,1&Ji.current|2),t.child}e=e.sibling}null!==s.tail&&Ye()>Ul&&(t.flags|=128,i=!0,Hs(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Zi(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ri)return qs(t),null}else 2*Ye()-s.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,i=!0,Hs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,r=Ji.current,Co(Ji,i?1&r|2:1&r),t):(qs(t),null);case 22:case 23:return pu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Nl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ys(e,t){switch(ei(t),t.tag){case 1:return Ao(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),Eo(To),Eo(_o),ta(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qi(t),null;case 13:if(Eo(Ji),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(Ji),null;case 4:return Yi(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},As=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Vi.current);var a,s=null;switch(n){case"input":i=q(e,i),r=q(e,r),s=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),s=[];break;case"textarea":i=te(e,i),r=te(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&$r("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Qs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[co],delete t[po],delete t[ho],delete t[mo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,pl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Qs||el(n,t);case 6:var r=dl,o=pl;dl=null,fl(e,t,n),pl=o,null!==(dl=r)&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(pl?(e=dl,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),Bt(e)):ao(dl,n.stateNode));break;case 4:r=dl,o=pl,dl=n.stateNode.containerInfo,pl=!0,fl(e,t,n),dl=r,pl=o;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&tl(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Qs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach(function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(n(160));hl(a,s,i),dl=null,pl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Cu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&o){try{rl(3,e,e.return),ol(3,e)}catch(t){Cu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&o&&null!==r&&el(r,r.return);break;case 5:if(gl(t,e),yl(e),512&o&&null!==r&&el(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){Cu(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),ve(l,s);var c=ve(l,a);for(s=0;s<u.length;s+=2){var d=u[s],p=u[s+1];"style"===d?he(i,p):"dangerouslySetInnerHTML"===d?ue(i,p):"children"===d?ce(i,p):v(i,d,p,c)}switch(l){case"input":X(i,a);break;case"textarea":re(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[po]=a}catch(t){Cu(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cu(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Wl=Ye())),4&o&&ml(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(t,e),yl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(h=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(o,r,e)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(p);continue}}null!==h?(h.return=f,Zs=h):kl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=fe("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gl(t,e),yl(e),4&o&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),cl(e,ll(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(n(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,wl(e)}function wl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Xs;var u=Qs;if(Xs=a,(Qs=l)&&!u)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Zs=l):Sl(o);for(;null!==i;)Zs=i,wl(i),i=i.sibling;Zs=o,Xs=s,Qs=u}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zs=i):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:es(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Qs||512&t.flags&&il(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Cu(t,i,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Cu(t,a,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var El,Cl=Math.ceil,Ol=y.ReactCurrentDispatcher,_l=y.ReactCurrentOwner,Tl=y.ReactCurrentBatchConfig,Rl=0,Pl=null,Al=null,Ll=0,Nl=0,Ml=So(0),Il=0,Fl=null,$l=0,jl=0,zl=0,Bl=null,Dl=null,Wl=0,Ul=1/0,Vl=null,Kl=!1,Hl=null,ql=null,Gl=!1,Yl=null,Xl=0,Ql=0,Jl=null,Zl=-1,eu=0;function tu(){return 6&Rl?Ye():-1!==Zl?Zl:Zl=Ye()}function nu(e){return 1&e.mode?2&Rl&&0!==Ll?Ll&-Ll:null!==hi.transition?(0===eu&&(eu=ft()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Gt(e.type):1}function ru(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));mt(e,r,o),2&Rl&&e===Pl||(e===Pl&&(!(2&Rl)&&(jl|=r),4===Il&&lu(e,Ll)),ou(e,o),1===r&&0===Rl&&!(1&t.mode)&&(Ul=Ye()+500,jo&&Do()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ot(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=dt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ct(e,e===Pl?Ll:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){jo=!0,Bo(e)}(uu.bind(null,e)):Bo(uu.bind(null,e)),oo(function(){!(6&Rl)&&Do()}),n=null;else{switch(yt(r)){case 1:n=Qe;break;case 4:n=Je;break;case 16:default:n=Ze;break;case 536870912:n=tt}n=Pu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,eu=0,6&Rl)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var o=ct(e,e===Pl?Ll:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=vu(e,o);else{t=o;var i=Rl;Rl|=2;var a=mu();for(Pl===e&&Ll===t||(Vl=null,Ul=Ye()+500,fu(e,t));;)try{bu();break}catch(t){hu(e,t)}Ci(),Ol.current=a,Rl=i,null!==Al?t=0:(Pl=null,Ll=0,t=Il)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(o=i,t=au(e,i))),1===t)throw r=Fl,fu(e,0),lu(e,o),ou(e,Ye()),r;if(6===t)lu(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ir(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vu(e,o),2===t&&(a=pt(e),0!==a&&(o=a,t=au(e,a))),1!==t)))throw r=Fl,fu(e,0),lu(e,o),ou(e,Ye()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:ku(e,Dl,Vl);break;case 3:if(lu(e,o),(130023424&o)===o&&10<(t=Wl+500-Ye())){if(0!==ct(e,0))break;if(((i=e.suspendedLanes)&o)!==o){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=to(ku.bind(null,e,Dl,Vl),t);break}ku(e,Dl,Vl);break;case 4:if(lu(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-ot(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Ye()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cl(o/1960))-o)){e.timeoutHandle=to(ku.bind(null,e,Dl,Vl),o);break}ku(e,Dl,Vl);break;default:throw Error(n(329))}}}return ou(e,Ye()),e.callbackNode===r?iu.bind(null,e):null}function au(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Dl,Dl=n,null!==t&&su(t)),e}function su(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function lu(e,t){for(t&=~zl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Rl)throw Error(n(327));Su();var t=ct(e,0);if(!(1&t))return ou(e,Ye()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=pt(e);0!==o&&(t=o,r=au(e,o))}if(1===r)throw r=Fl,fu(e,0),lu(e,t),ou(e,Ye()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Dl,Vl),ou(e,Ye()),null}function cu(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Ul=Ye()+500,jo&&Do())}}function du(e){null!==Yl&&0===Yl.tag&&!(6&Rl)&&Su();var t=Rl;Rl|=1;var n=Tl.transition,r=vt;try{if(Tl.transition=null,vt=1,e)return e()}finally{vt=r,Tl.transition=n,!(6&(Rl=t))&&Do()}}function pu(){Nl=Ml.current,Eo(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,no(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(ei(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Yi(),Eo(To),Eo(_o),ta();break;case 5:Qi(r);break;case 4:Yi();break;case 13:case 19:Eo(Ji);break;case 10:Oi(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Pl=e,Al=e=Mu(e.current,null),Ll=Nl=t,Il=0,Fl=null,zl=jl=$l=0,Dl=Bl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function hu(e,t){for(;;){var r=Al;try{if(Ci(),na.current=Xa,la){for(var o=ia.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}la=!1}if(oa=0,sa=aa=ia=null,ua=!1,ca=0,_l.current=null,null===r||null===r.return){Il=1,Fl=t,Al=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=hs(s);if(null!==h){h.flags&=-257,ms(h,s,l,0,t),1&h.mode&&fs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){fs(a,c,t),gu();break e}u=Error(n(426))}else if(ri&&1&l.mode){var v=hs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ms(v,s,l,0,t),fi(ss(u,l));break e}}a=u=ss(u,l),4!==Il&&(Il=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ds(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==ql&&ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Al===r&&null!==r&&(Al=r=r.return);continue}break}}function mu(){var e=Ol.current;return Ol.current=Xa,null===e?Xa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||!(268435455&$l)&&!(268435455&jl)||lu(Pl,Ll)}function vu(e,t){var r=Rl;Rl|=2;var o=mu();for(Pl===e&&Ll===t||(Vl=null,fu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Ci(),Rl=r,Ol.current=o,null!==Al)throw Error(n(261));return Pl=null,Ll=0,Il}function yu(){for(;null!==Al;)wu(Al)}function bu(){for(;null!==Al&&!qe();)wu(Al)}function wu(e){var t=El(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Al=t,_l.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gs(n,t,Nl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function ku(e,t,r){var o=vt,i=Tl.transition;try{Tl.transition=null,vt=1,function(e,t,r,o){do{Su()}while(null!==Yl);if(6&Rl)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pl&&(Al=Pl=null,Ll=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Gl||(Gl=!0,Pu(Ze,function(){return Su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=vt;vt=1;var l=Rl;Rl|=4,_l.current=null,function(e,t){if(Jr=Wt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==o&&3!==p.nodeType||(u=s+o),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===i&&(l=s),f===a&&++d===o&&(u=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},Wt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:es(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=nl,nl=!1}(e,r),vl(r,e),pr(Zr),Wt=!!Jr,Zr=Jr=null,e.current=r,bl(r),Ge(),Rl=l,vt=s,Tl.transition=a}else e.current=r;if(Gl&&(Gl=!1,Yl=e,Xl=i),a=e.pendingLanes,0===a&&(ql=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ye()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Kl)throw Kl=!1,e=Hl,Hl=null,e;!!(1&Xl)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Jl?Ql++:(Ql=0,Jl=e):Ql=0,Do()}(e,t,r,o)}finally{Tl.transition=i,vt=o}return null}function Su(){if(null!==Yl){var e=yt(Xl),t=Tl.transition,r=vt;try{if(Tl.transition=null,vt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,Xl=0,6&Rl)throw Error(n(331));var i=Rl;for(Rl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(16&Zs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,h=d.return;if(al(d),d===c){Zs=null;break}if(null!==f){f.return=h,Zs=f;break}Zs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(2048&(a=Zs).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zs=y;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(Rl=i,Do(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}o=!0}return o}finally{vt=r,Tl.transition=t}}return!1}function Eu(e,t,n){e=ji(e,t=ds(0,t=ss(n,t),1),1),t=tu(),null!==e&&(mt(e,1,t),ou(e,t))}function Cu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=ji(t,e=ps(t,e=ss(n,e),1),1),e=tu(),null!==t&&(mt(t,1,e),ou(t,e));break}}t=t.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ll&n)===n&&(4===Il||3===Il&&(130023424&Ll)===Ll&&500>Ye()-Wl?fu(e,0):zl|=n),ou(e,t)}function _u(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=tu();null!==(e=Ni(e,t))&&(mt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_u(e,n)}function Ru(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),_u(e,r)}function Pu(e,t){return Ke(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Au(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Fu(r.children,i,a,t);case k:s=8,i|=8;break;case S:return(e=Lu(12,r,t,2|i)).elementType=S,e.lanes=a,e;case _:return(e=Lu(13,r,t,i)).elementType=_,e.lanes=a,e;case T:return(e=Lu(19,r,t,i)).elementType=T,e.lanes=a,e;case A:return $u(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case C:s=9;break e;case O:s=11;break e;case R:s=14;break e;case P:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Lu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Fu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function $u(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,o,i,a,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function Wu(e){if(!e)return Oo;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ao(r))return Mo(e,r,t)}return t}function Uu(e,t,n,r,o,i,a,s,l){return(e=Du(n,r,!0,e,0,i,0,s,l)).context=Wu(null),n=e.current,(i=$i(r=tu(),o=nu(n))).callback=null!=t?t:null,ji(n,i,o),e.current.lanes=o,mt(e,o,r),ou(e,r),e}function Vu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=$i(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ji(o,t,a))&&(ru(e,o,a,i),zi(e,o,a)),a}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}El=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)vs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:_s(t),pi();break;case 5:Xi(t);break;case 1:Ao(t.type)&&Io(t);break;case 4:Gi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(Ji,1&Ji.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Co(Ji,1&Ji.current),null!==(e=Vs(e,t,n))?e.sibling:null);Co(Ji,1&Ji.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ds(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(Ji,Ji.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Vs(e,t,n)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,ri&&1048576&t.flags&&Jo(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Us(e,t),e=t.pendingProps;var i=Po(t,_o.current);Ti(t,r),i=ha(null,t,o,e,i,r);var a=ma();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(o)?(a=!0,Io(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ii(t),i.updater=ns,t.stateNode=i,i._reactInternals=t,as(t,o,e,r),t=Os(null,t,o,!0,a,r)):(t.tag=0,ri&&a&&Zo(t),ys(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===R)return 14}return 2}(o),e=es(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Cs(null,t,o,e,r);break e;case 11:t=bs(null,t,o,e,r);break e;case 14:t=ws(null,t,o,es(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:es(o,i),r);case 1:return o=t.type,i=t.pendingProps,Cs(e,t,o,i=t.elementType===o?i:es(o,i),r);case 3:e:{if(_s(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Fi(e,t),Di(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,o,r,i=ss(Error(n(423)),t));break e}if(o!==i){t=Ts(e,t,o,r,i=ss(Error(n(424)),t));break e}for(ni=so(t.stateNode.containerInfo.firstChild),ti=t,ri=!0,oi=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pi(),o===i){t=Vs(e,t,r);break e}ys(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&li(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,eo(o,i)?s=null:null!==a&&eo(o,a)&&(t.flags|=32),Ss(e,t),ys(e,t,s,r),t.child;case 6:return null===e&&li(t),null;case 13:return Is(e,t,r);case 4:return Gi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=bi(t,null,o,r):ys(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,bs(e,t,o,i=t.elementType===o?i:es(o,i),r);case 7:return ys(e,t,t.pendingProps,r),t.child;case 8:case 12:return ys(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Co(xi,o._currentValue),o._currentValue=s,null!==a)if(ir(a.value,s)){if(a.children===i.children&&!To.current){t=Vs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=$i(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),_i(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),_i(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ys(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ti(t,r),o=o(i=Ri(i)),t.flags|=1,ys(e,t,o,r),t.child;case 14:return i=es(o=t.type,t.pendingProps),ws(e,t,o,i=es(o.type,i),r);case 15:return xs(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:es(o,i),Us(e,t),t.tag=1,Ao(o)?(e=!0,Io(t)):e=!1,Ti(t,r),os(t,o,i),as(t,o,i,r),Os(null,t,o,!0,e,r);case 19:return Ds(e,t,r);case 22:return ks(e,t,r)}throw Error(n(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Ku(a);s.call(e)}}Vu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ku(a);i.call(e)}}var a=Uu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[fo]=a.current,Br(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Ku(l);s.call(e)}}var l=Du(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fo]=l.current,Br(8===e.nodeType?e.parentNode:e),du(function(){Vu(t,l,n,r)}),l}(n,t,e,o,r);return Ku(a)}Xu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Xu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Vu(null,e,null,null)}),t[fo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&It(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(gt(t,1|n),ou(t,Ye()),!(6&Rl)&&(Ul=Ye()+500,Do()))}break;case 13:du(function(){var t=Ni(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),qu(e,1)}},wt=function(e){if(13===e.tag){var t=Ni(e,134217728);if(null!==t)ru(t,e,134217728,tu());qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=Ni(e,t);if(null!==n)ru(n,e,t,tu());qu(e,t)}},kt=function(){return vt},St=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},we=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));K(o),X(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Oe=cu,_e=du;var tc={usingClientEntryPoint:!1,Events:[yo,bo,wo,Ee,Ce,cu]},nc={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{nt=oc.inject(rc),rt=oc}catch(le){}}return Ws.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,Ws.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ws.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=Gu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Du(e,1,!1,null,0,r,0,o,i),e[fo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Yu(t)},Ws.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},Ws.flushSync=function(e){return du(e)},Ws.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!0,r)},Ws.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Gu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,i,0,a,s),e[fo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Xu(t)},Ws.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!1,r)},Ws.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[fo]=null})}),!0)},Ws.unstable_batchedUpdates=cu,Ws.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,o)},Ws.version="18.3.1-next-f1338f8080-20240426",Ws}var qs=(Bs||(Bs=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),Ds.exports=Hs()),Ds.exports),Gs=t(qs);function Ys(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout(function(){e.apply(a,o)},n)}return r.clear=function(){clearTimeout(t)},r}function Xs(e){return Fs(e).defaultView||window}function Qs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},function(){})}function Js(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Zs(e,t){return l.useMemo(function(){return null==e&&null==t?null:function(n){Js(e,n),Js(t,n)}},[e,t])}var el="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,tl=l.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=l.useState(null),u=s[0],c=s[1],d=Zs(l.isValidElement(n)?n.ref:null,t);return el(function(){i||c(function(e){return e="function"==typeof e?e():e,qs.findDOMNode(e)}(r)||document.body)},[r,i]),el(function(){if(u&&!i)return Js(t,u),function(){Js(t,null)}},[t,u,i]),el(function(){a&&(u||i)&&a()},[a,u,i]),i?l.isValidElement(n)?l.cloneElement(n,{ref:d}):n:u?qs.createPortal(n,u):u}),nl="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function rl(e){var t=l.useRef(e);return nl(function(){t.current=e}),l.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function ol(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function il(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function al(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function sl(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(xt(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&il(e,r)})}function ll(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}function ul(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Fs(e);return t.body===e?Xs(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=ol();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(al(i)+a,"px"),n=Fs(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(al(e)+a,"px")})}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}var cl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return A(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&il(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);sl(t,e.mountNode,e.modalRef,r,!0);var o=ll(this.containers,function(e){return e.container===t});return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ll(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=ul(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ll(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&il(e.modalRef,!0),sl(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&il(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function dl(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,u=e.getDoc,c=e.isEnabled,d=e.open,p=l.useRef(),f=l.useRef(null),h=l.useRef(null),m=l.useRef(),g=l.useRef(null),v=l.useCallback(function(e){g.current=qs.findDOMNode(e)},[]),y=Zs(t.ref,v),b=l.useRef();return l.useEffect(function(){b.current=d},[d]),!b.current&&d&&"undefined"!=typeof window&&(m.current=u().activeElement),l.useEffect(function(){if(d){var e=Fs(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!i&&c()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval(function(){t()},50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[r,i,s,c,d]),l.createElement(l.Fragment,null,l.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),l.cloneElement(t,{ref:y}),l.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var pl={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},fl=l.forwardRef(function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=p(e,["invisible","open"]);return o?l.createElement("div",f({"aria-hidden":!0,ref:t},i,{style:f({},pl.root,r?pl.invisible:{},i.style)})):null});var hl=new cl,ml=l.forwardRef(function(e,t){var n=On(),r=T({name:"MuiModal",props:f({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?fl:o,a=r.BackdropProps,s=r.children,u=r.closeAfterTransition,c=void 0!==u&&u,d=r.container,h=r.disableAutoFocus,m=void 0!==h&&h,g=r.disableBackdropClick,v=void 0!==g&&g,y=r.disableEnforceFocus,b=void 0!==y&&y,w=r.disableEscapeKeyDown,x=void 0!==w&&w,k=r.disablePortal,S=void 0!==k&&k,E=r.disableRestoreFocus,C=void 0!==E&&E,O=r.disableScrollLock,_=void 0!==O&&O,R=r.hideBackdrop,P=void 0!==R&&R,A=r.keepMounted,L=void 0!==A&&A,N=r.manager,M=void 0===N?hl:N,I=r.onBackdropClick,F=r.onClose,$=r.onEscapeKeyDown,j=r.onRendered,z=r.open,B=p(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),D=l.useState(!0),W=D[0],U=D[1],V=l.useRef({}),K=l.useRef(null),H=l.useRef(null),q=Zs(H,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Fs(K.current)},X=function(){return V.current.modalRef=H.current,V.current.mountNode=K.current,V.current},Q=function(){M.mount(X(),{disableScrollLock:_}),H.current.scrollTop=0},J=rl(function(){var e=function(e){return e="function"==typeof e?e():e,qs.findDOMNode(e)}(d)||Y().body;M.add(X(),e),H.current&&Q()}),Z=l.useCallback(function(){return M.isTopModal(X())},[M]),ee=rl(function(e){K.current=e,e&&(j&&j(),z&&Z()?Q():il(H.current,!0))}),te=l.useCallback(function(){M.remove(X())},[M]);if(l.useEffect(function(){return function(){te()}},[te]),l.useEffect(function(){z?J():G&&c||te()},[z,te,G,c,J]),!L&&!z&&(!G||W))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:$r}),re={};return void 0===s.props.tabIndex&&(re.tabIndex=s.props.tabIndex||"-1"),G&&(re.onEnter=Qs(function(){U(!1)},s.props.onEnter),re.onExited=Qs(function(){U(!0),c&&te()},s.props.onExited)),l.createElement(tl,{ref:ee,container:d,disablePortal:S},l.createElement("div",f({ref:q,onKeyDown:function(e){"Escape"===e.key&&Z()&&($&&$(e),x||(e.stopPropagation(),F&&F(e,"escapeKeyDown")))},role:"presentation"},B,{style:f({},ne.root,!z&&W?ne.hidden:{},B.style)}),P?null:l.createElement(i,f({open:z,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),!v&&F&&F(e,"backdropClick"))}},a)),l.createElement(dl,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:C,getDoc:Y,isEnabled:Z,open:z},l.cloneElement(s,re))))}),gl=!1,vl=u.createContext(null),yl="unmounted",bl="exited",wl="entering",xl="entered",kl="exiting",Sl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=bl,r.appearStatus=wl):o=xl:o=t.unmountOnExit||t.mountOnEnter?yl:bl,r.state={status:o},r.nextCallback=null,r}N(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yl?{status:bl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==wl&&n!==xl&&(t=wl):n!==wl&&n!==xl||(t=kl)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===wl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Gs.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bl&&this.setState({status:yl})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Gs.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||gl?this.safeSetState({status:xl},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:wl},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:xl},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Gs.findDOMNode(this);t&&!gl?(this.props.onExit(r),this.safeSetState({status:kl},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:bl},function(){e.props.onExited(r)})})})):this.safeSetState({status:bl},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Gs.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yl)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(vl.Provider,{value:null},"function"==typeof n?n(e,r):u.cloneElement(u.Children.only(n),r))},t}(u.Component);function El(){}function Cl(e,t){var n=Object.create(null);return e&&l.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&l.isValidElement(e)?t(e):e}(e)}),n}function Ol(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _l(e,t,n){var r=Cl(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(l.isValidElement(a)){var s=i in t,u=i in r,c=t[i],d=l.isValidElement(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&l.isValidElement(c)&&(o[i]=l.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:Ol(a,"exit",e),enter:Ol(a,"enter",e)})):o[i]=l.cloneElement(a,{in:!1}):o[i]=l.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Ol(a,"exit",e),enter:Ol(a,"enter",e)})}}),o}Sl.contextType=vl,Sl.propTypes={},Sl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:El,onEntering:El,onEntered:El,onExit:El,onExiting:El,onExited:El},Sl.UNMOUNTED=yl,Sl.EXITED=bl,Sl.ENTERING=wl,Sl.ENTERED=xl,Sl.EXITING=kl;var Tl=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Rl=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(M(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}N(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Cl(n.children,function(e){return l.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Ol(e,"appear",n),enter:Ol(e,"enter",n),exit:Ol(e,"exit",n)})})):_l(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Cl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=f({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d(e,["component","childFactory"]),o=this.state.contextValue,i=Tl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?u.createElement(vl.Provider,{value:o},i):u.createElement(vl.Provider,{value:o},u.createElement(t,r,i))},t}(u.Component);Rl.propTypes={},Rl.defaultProps={component:"div",childFactory:function(e){return e}};function Pl(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Al(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Ll={entering:{opacity:1,transform:Al(1)},entered:{opacity:1,transform:"none"}},Nl=l.forwardRef(function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,h=e.onExiting,m=e.style,g=e.timeout,v=void 0===g?"auto":g,y=e.TransitionComponent,b=void 0===y?Sl:y,w=p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=l.useRef(),k=l.useRef(),S=Vr(),E=S.unstable_strictMode&&!o,C=l.useRef(null),O=Zs(n.ref,t),_=Zs(E?C:void 0,O),T=function(e){return function(t,n){if(e){var r=Ar(E?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=T(u),P=T(function(e,t){!function(e){e.scrollTop}(e);var n,r=Pl({style:m,timeout:v},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===v?(n=S.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)}),A=T(s),L=T(h),N=T(function(e){var t,n=Pl({style:m,timeout:v},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===v?(t=S.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Al(.75),c&&c(e)}),M=T(d);return l.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l.createElement(b,f({appear:!0,in:i,nodeRef:E?C:void 0,onEnter:P,onEntered:A,onEntering:R,onExit:N,onExited:M,onExiting:L,addEndListener:function(e,t){var n=E?e:t;"auto"===v&&(x.current=setTimeout(n,k.current||0))},timeout:"auto"===v?null:v},w),function(e,t){return l.cloneElement(n,f({style:f({opacity:0,transform:Al(.75),visibility:"exited"!==e||i?void 0:"hidden"},Ll[e],m,n.props.style),ref:_},t))})});function Ml(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Il(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Fl(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function $l(e){return"function"==typeof e?e():e}Nl.muiSupportAuto=!0;var jl=l.forwardRef(function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,u=void 0===s?"anchorEl":s,c=e.children,d=e.classes,h=e.className,g=e.container,v=e.elevation,y=void 0===v?8:v,b=e.getContentAnchorEl,w=e.marginThreshold,x=void 0===w?16:w,k=e.onEnter,S=e.onEntered,E=e.onEntering,C=e.onExit,O=e.onExited,_=e.onExiting,T=e.open,R=e.PaperProps,P=void 0===R?{}:R,A=e.transformOrigin,L=void 0===A?{vertical:"top",horizontal:"left"}:A,N=e.TransitionComponent,M=void 0===N?Nl:N,I=e.transitionDuration,F=void 0===I?"auto":I,$=e.TransitionProps,j=void 0===$?{}:$,z=p(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),B=l.useRef(),D=l.useCallback(function(e){if("anchorPosition"===u)return a;var t=$l(r),n=(t&&1===t.nodeType?t:Fs(B.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Ml(n,o),left:n.left+Il(n,i.horizontal)}},[r,i.horizontal,i.vertical,a,u]),W=l.useCallback(function(e){var t=0;if(b&&"anchorEl"===u){var n=b(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t},[i.vertical,u,b]),U=l.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Ml(e,L.vertical)+t,horizontal:Il(e,L.horizontal)}},[L.horizontal,L.vertical]),V=l.useCallback(function(e){var t=W(e),n={width:e.offsetWidth,height:e.offsetHeight},o=U(n,t);if("none"===u)return{top:null,left:null,transformOrigin:Fl(o)};var i=D(t),a=i.top-o.vertical,s=i.left-o.horizontal,l=a+n.height,c=s+n.width,d=Xs($l(r)),p=d.innerHeight-x,f=d.innerWidth-x;if(a<x){var h=a-x;a-=h,o.vertical+=h}else if(l>p){var m=l-p;a-=m,o.vertical+=m}if(s<x){var g=s-x;s-=g,o.horizontal+=g}else if(c>f){var v=c-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Fl(o)}},[r,u,D,W,U,x]),K=l.useCallback(function(){var e=B.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[V]),H=l.useCallback(function(e){B.current=qs.findDOMNode(e)},[]);l.useEffect(function(){T&&K()}),l.useImperativeHandle(n,function(){return T?{updatePosition:function(){K()}}:null},[T,K]),l.useEffect(function(){if(T){var e=Ys(function(){K()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[T,K]);var q=F;"auto"!==F||M.muiSupportAuto||(q=void 0);var G=g||(r?Fs($l(r)).body:void 0);return l.createElement(ml,f({container:G,open:T,ref:t,BackdropProps:{invisible:!0},className:m(d.root,h)},z),l.createElement(M,f({appear:!0,in:T,onEnter:k,onEntered:S,onExit:C,onExited:O,onExiting:_,timeout:q},j,{onEntering:Qs(function(e,t){E&&E(e,t),K()},j.onEntering)}),l.createElement(Dr,f({elevation:y,ref:H},P,{className:m(d.paper,P.className)}),c)))}),zl=zr({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(jl),Bl=l.createContext({}),Dl=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,u=void 0!==s&&s,c=e.disablePadding,d=void 0!==c&&c,h=e.subheader,g=p(e,["children","classes","className","component","dense","disablePadding","subheader"]),v=l.useMemo(function(){return{dense:u}},[u]);return l.createElement(Bl.Provider,{value:v},l.createElement(a,f({className:m(r.root,o,u&&r.dense,!d&&r.padding,h&&r.subheader),ref:t},g),h,n))}),Wl=zr({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Dl);function Ul(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Vl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Kl(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Hl(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Kl(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var ql="undefined"==typeof window?l.useEffect:l.useLayoutEffect,Gl=l.forwardRef(function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,s=e.children,u=e.className,c=e.disabledItemsFocusable,d=void 0!==c&&c,h=e.disableListWrap,m=void 0!==h&&h,g=e.onKeyDown,v=e.variant,y=void 0===v?"selectedMenu":v,b=p(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=l.useRef(null),x=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ql(function(){o&&w.current.focus()},[o]),l.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat(ol(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}},[]);var k=Zs(l.useCallback(function(e){w.current=qs.findDOMNode(e)},[]),t),S=-1;l.Children.forEach(s,function(e,t){l.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===S)&&(S=t))});var E=l.Children.map(s,function(e,t){if(t===S){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),l.cloneElement(e,n)}return e});return l.createElement(Wl,f({role:"menu",ref:k,className:u,onKeyDown:function(e){var t=w.current,n=e.key,r=Fs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Hl(t,r,m,d,Ul);else if("ArrowUp"===n)e.preventDefault(),Hl(t,r,m,d,Vl);else if("Home"===n)e.preventDefault(),Hl(t,null,m,d,Ul);else if("End"===n)e.preventDefault(),Hl(t,null,m,d,Vl);else if(1===n.length){var o=x.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Kl(r,o);o.previousKeyMatched&&(s||Hl(t,r,!1,d,Ul,o))?e.preventDefault():o.previousKeyMatched=!1}g&&g(e)},tabIndex:o?0:-1},b),E)}),Yl={vertical:"top",horizontal:"right"},Xl={vertical:"top",horizontal:"left"},Ql=l.forwardRef(function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,a=e.disableAutoFocusItem,s=void 0!==a&&a,u=e.MenuListProps,c=void 0===u?{}:u,d=e.onClose,h=e.onEntering,g=e.open,v=e.PaperProps,y=void 0===v?{}:v,b=e.PopoverClasses,w=e.transitionDuration,x=void 0===w?"auto":w,k=e.TransitionProps,S=(k=void 0===k?{}:k).onEntering,E=p(k,["onEntering"]),C=e.variant,O=void 0===C?"selectedMenu":C,_=p(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),T=Vr(),R=r&&!s&&g,P=l.useRef(null),A=l.useRef(null),L=-1;l.Children.map(o,function(e,t){l.isValidElement(e)&&(e.props.disabled||("menu"!==O&&e.props.selected||-1===L)&&(L=t))});var N=l.Children.map(o,function(e,t){return t===L?l.cloneElement(e,{ref:function(t){A.current=qs.findDOMNode(t),Js(e.ref,t)}}):e});return l.createElement(zl,f({getContentAnchorEl:function(){return A.current},classes:b,onClose:d,TransitionProps:f({onEntering:function(e,t){P.current&&P.current.adjustStyleForScrollbar(e,T),h&&h(e,t),S&&S(e,t)}},E),anchorOrigin:"rtl"===T.direction?Yl:Xl,transformOrigin:"rtl"===T.direction?Yl:Xl,PaperProps:f({},y,{classes:f({},y.classes,{root:i.paper})}),open:g,ref:t,transitionDuration:x},_),l.createElement(Gl,f({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:P,autoFocus:r&&(-1===L||s),autoFocusItem:R,variant:O},c,{className:m(i.list,c.className)}),N))}),Jl=zr({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Ql);function Zl(e,t){return"object"===g(t)&&null!==t?e===t:String(e)===String(t)}var eu=l.forwardRef(function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,i=e.children,a=e.classes,s=e.className,u=e.defaultValue,c=e.disabled,d=e.displayEmpty,h=e.IconComponent,g=e.inputRef,v=e.labelId,y=e.MenuProps,b=void 0===y?{}:y,w=e.multiple,k=e.name,S=e.onBlur,E=e.onChange,C=e.onClose,O=e.onFocus,_=e.onOpen,T=e.open,R=e.readOnly,P=e.renderValue,A=e.SelectDisplayProps,L=void 0===A?{}:A,N=e.tabIndex;e.type;var M=e.value,I=e.variant,F=void 0===I?"standard":I,$=p(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=function(e){var t=e.controlled,n=e.default,r=l.useRef(void 0!==t).current,o=l.useState(n),i=o[0],a=o[1];return[r?t:i,l.useCallback(function(e){r||a(e)},[])]}({controlled:M,default:u}),z=Ar(j,2),B=z[0],D=z[1],W=l.useRef(null),U=l.useState(null),V=U[0],K=U[1],H=l.useRef(null!=T).current,q=l.useState(),G=q[0],Y=q[1],X=l.useState(!1),Q=X[0],J=X[1],Z=Zs(t,g);l.useImperativeHandle(Z,function(){return{focus:function(){V.focus()},node:W.current,value:B}},[V,B]),l.useEffect(function(){r&&V&&V.focus()},[r,V]),l.useEffect(function(){if(V){var e=Fs(V).getElementById(v);if(e){var t=function(){getSelection().isCollapsed&&V.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[v,V]);var ee,te,ne=function(e,t){e?_&&_(t):C&&C(t),H||(Y(o?null:V.clientWidth),J(e))},re=l.Children.toArray(i),oe=function(e){return function(t){var n;if(w||ne(!1,t),w){n=Array.isArray(B)?B.slice():[];var r=B.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),B!==n&&(D(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:k}}),E(t,e)))}},ie=null!==V&&(H?T:Q);delete $["aria-invalid"];var ae=[],se=!1;(Ps({value:B})||d)&&(P?ee=P(B):se=!0);var le=re.map(function(e){if(!l.isValidElement(e))return null;var t;if(w){if(!Array.isArray(B))throw new Error(x(2));(t=B.some(function(t){return Zl(t,e.props.value)}))&&se&&ae.push(e.props.children)}else(t=Zl(B,e.props.value))&&se&&(te=e.props.children);return l.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:oe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});se&&(ee=w?ae.join(", "):te);var ue,ce=G;!o&&H&&V&&(ce=V.clientWidth),ue=void 0!==N?N:c?null:0;var de=L.id||(k?"mui-component-select-".concat(k):void 0);return l.createElement(l.Fragment,null,l.createElement("div",f({className:m(a.root,a.select,a.selectMenu,a[F],s,c&&a.disabled),ref:K,tabIndex:ue,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":ie?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[v,de].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:c||R?null:function(e){0===e.button&&(e.preventDefault(),V.focus(),ne(!0,e))},onBlur:function(e){!ie&&S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:k}}),S(e))},onFocus:O},L,{id:de}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ee),l.createElement("input",f({value:Array.isArray(B)?B.join(","):B,name:k,ref:W,"aria-hidden":!0,onChange:function(e){var t=re.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=re[t];D(n.props.value),E&&E(e,n)}},tabIndex:-1,className:a.nativeInput,autoFocus:r},$)),l.createElement(h,{className:m(a.icon,a["icon".concat(Kr(F))],ie&&a.iconOpen,c&&a.disabled)}),l.createElement(Jl,f({id:"menu-".concat(k||""),anchorEl:V,open:ie,onClose:function(e){ne(!1,e)}},b,{MenuListProps:f({"aria-labelledby":v,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:f({},b.PaperProps,{style:f({minWidth:ce},null!=b.PaperProps?b.PaperProps.style:null)})}),le))});function tu(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}var nu=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,u=void 0===s?"svg":s,c=e.fontSize,d=void 0===c?"medium":c,h=e.htmlColor,g=e.titleAccess,v=e.viewBox,y=void 0===v?"0 0 24 24":v,b=p(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return l.createElement(u,f({className:m(r.root,o,"inherit"!==a&&r["color".concat(Kr(a))],"default"!==d&&"medium"!==d&&r["fontSize".concat(Kr(d))]),focusable:"false",viewBox:y,color:h,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},b),n,g?l.createElement("title",null,g):null)});nu.muiName="SvgIcon";var ru=zr(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(nu);var ou,iu,au=(ou=l.createElement("path",{d:"M7 10l5 5 5-5z"}),(iu=function(e,t){return u.createElement(ru,f({ref:t},e),ou)}).muiName=ru.muiName,u.memo(u.forwardRef(iu)));function su(e,t){return parseInt(e[t],10)||0}var lu="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,uu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},cu=l.forwardRef(function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=e.maxRows,s=e.minRows,u=void 0===s?1:s,c=e.style,d=e.value,h=p(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=a||o,g=r||i||u,v=l.useRef(null!=d).current,y=l.useRef(null),b=Zs(t,y),w=l.useRef(null),x=l.useRef(0),k=l.useState({}),S=k[0],E=k[1],C=l.useCallback(function(){var t=y.current,n=window.getComputedStyle(t),r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=su(n,"padding-bottom")+su(n,"padding-top"),a=su(n,"border-bottom-width")+su(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,u=s;g&&(u=Math.max(Number(g)*l,u)),m&&(u=Math.min(Number(m)*l,u));var c=(u=Math.max(u,l))+("border-box"===o?i+a:0),d=Math.abs(u-s)<=1;E(function(e){return x.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:c}):e})},[m,g,e.placeholder]);l.useEffect(function(){var e=Ys(function(){x.current=0,C()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[C]),lu(function(){C()}),l.useEffect(function(){x.current=0},[d]);return l.createElement(l.Fragment,null,l.createElement("textarea",f({value:d,onChange:function(e){x.current=0,v||C(),n&&n(e)},ref:b,rows:g,style:f({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},c)},h)),l.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:f({},uu,c)}))}),du="undefined"==typeof window?l.useEffect:l.useLayoutEffect,pu=l.forwardRef(function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var s=e.defaultValue,u=e.disabled,c=e.endAdornment;e.error;var d=e.fullWidth,h=void 0!==d&&d,g=e.id,v=e.inputComponent,y=void 0===v?"input":v,b=e.inputProps,w=void 0===b?{}:b,k=e.inputRef;e.margin;var S=e.multiline,E=void 0!==S&&S,C=e.name,O=e.onBlur,_=e.onChange,T=e.onClick,R=e.onFocus,P=e.onKeyDown,A=e.onKeyUp,L=e.placeholder,N=e.readOnly,M=e.renderSuffix,I=e.rows,F=e.rowsMax,$=e.rowsMin,j=e.maxRows,z=e.minRows,B=e.startAdornment,D=e.type,W=void 0===D?"text":D,U=e.value,V=p(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),K=null!=w.value?w.value:U,H=l.useRef(null!=K).current,q=l.useRef(),G=l.useCallback(function(e){},[]),Y=Zs(w.ref,G),X=Zs(k,Y),Q=Zs(q,X),J=l.useState(!1),Z=J[0],ee=J[1],te=l.useContext(Ls),ne=tu({props:e,muiFormControl:te,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ne.focused=te?te.focused:Z,l.useEffect(function(){!te&&u&&Z&&(ee(!1),O&&O())},[te,u,Z,O]);var re=te&&te.onFilled,oe=te&&te.onEmpty,ie=l.useCallback(function(e){Ps(e)?re&&re():oe&&oe()},[re,oe]);du(function(){H&&ie({value:K})},[K,ie,H]);l.useEffect(function(){ie(q.current)},[]);var ae=y,se=f({},w,{ref:Q});"string"!=typeof ae?se=f({inputRef:Q,type:W},se,{ref:null}):E?!I||j||z||F||$?(se=f({minRows:I||z,rowsMax:F,maxRows:j},se),ae=cu):ae="textarea":se=f({type:W},se);return l.useEffect(function(){te&&te.setAdornedStart(Boolean(B))},[te,B]),l.createElement("div",f({className:m(i.root,i["color".concat(Kr(ne.color||"primary"))],a,ne.disabled&&i.disabled,ne.error&&i.error,h&&i.fullWidth,ne.focused&&i.focused,te&&i.formControl,E&&i.multiline,B&&i.adornedStart,c&&i.adornedEnd,"dense"===ne.margin&&i.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),T&&T(e)},ref:t},V),B,l.createElement(Ls.Provider,{value:null},l.createElement(ae,f({"aria-invalid":ne.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:s,disabled:ne.disabled,id:g,onAnimationStart:function(e){ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:C,placeholder:L,readOnly:N,required:ne.required,rows:I,value:K,onKeyDown:P,onKeyUp:A},se,{className:m(i.input,w.className,ne.disabled&&i.disabled,E&&i.inputMultiline,ne.hiddenLabel&&i.inputHiddenLabel,B&&i.inputAdornedStart,c&&i.inputAdornedEnd,"search"===W&&i.inputTypeSearch,"dense"===ne.margin&&i.inputMarginDense),onBlur:function(e){O&&O(e),w.onBlur&&w.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:function(e){if(!H){var t=e.target||q.current;if(null==t)throw new Error(x(1));ie({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];w.onChange&&w.onChange.apply(w,[e].concat(r)),_&&_.apply(void 0,[e].concat(r))},onFocus:function(e){ne.disabled?e.stopPropagation():(R&&R(e),w.onFocus&&w.onFocus(e),te&&te.onFocus?te.onFocus(e):ee(!0))}}))),c,M?M(f({},ne,{startAdornment:B})):null)}),fu=zr(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:f({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(pu),hu=l.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,h=void 0===d?"text":d,g=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return l.createElement(fu,f({classes:f({},r,{root:m(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:h},g))});hu.muiName="Input";var mu=zr(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(hu),gu=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,a=e.inputRef,s=e.variant,u=void 0===s?"standard":s,c=p(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return l.createElement(l.Fragment,null,l.createElement("select",f({className:m(n.root,n.select,n[u],r,o&&n.disabled),disabled:o,ref:a||t},c)),e.multiple?null:l.createElement(i,{className:m(n.icon,n["icon".concat(Kr(u))],o&&n.disabled)}))}),vu=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},yu=l.createElement(mu,null),bu=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?au:o,a=e.input,s=void 0===a?yu:a,u=e.inputProps;e.variant;var c=p(e,["children","classes","IconComponent","input","inputProps","variant"]),d=tu({props:e,muiFormControl:Is(),states:["variant"]});return l.cloneElement(s,f({inputComponent:gu,inputProps:f({children:n,classes:r,IconComponent:i,variant:d.variant,type:void 0},u,s?s.props.inputProps:{}),ref:t},c))});bu.muiName="Select",zr(vu,{name:"MuiNativeSelect"})(bu);var wu=l.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,h=void 0===d?"text":d,g=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return l.createElement(fu,f({classes:f({},r,{root:m(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:h},g))});wu.muiName="Input";var xu=zr(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(wu),ku=l.forwardRef(function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,s=e.style,u=p(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===Vr().direction?"right":"left";if(void 0!==o)return l.createElement("fieldset",f({"aria-hidden":!0,className:m(n.root,r),ref:t,style:s},u),l.createElement("legend",{className:m(n.legendLabelled,a&&n.legendNotched)},o?l.createElement("span",null,o):l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var d=i>0?.75*i+8:.01;return l.createElement("fieldset",f({"aria-hidden":!0,style:f(w({},"padding".concat(Kr(c)),8),s),className:m(n.root,r),ref:t},u),l.createElement("legend",{className:n.legend,style:{width:a?d:.01}},l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),Su=zr(function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(ku),Eu=l.forwardRef(function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,s=e.label,u=e.labelWidth,c=void 0===u?0:u,d=e.multiline,h=void 0!==d&&d,g=e.notched,v=e.type,y=void 0===v?"text":v,b=p(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return l.createElement(fu,f({renderSuffix:function(e){return l.createElement(Su,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:f({},n,{root:m(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:h,ref:t,type:y},b))});Eu.muiName="Input";var Cu=zr(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(Eu),Ou=vu,_u=l.createElement(mu,null),Tu=l.createElement(xu,null),Ru=l.forwardRef(function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,u=void 0!==s&&s,c=t.IconComponent,d=void 0===c?au:c,h=t.id,m=t.input,g=t.inputProps,v=t.label,y=t.labelId,b=t.labelWidth,w=void 0===b?0:b,x=t.MenuProps,k=t.multiple,S=void 0!==k&&k,E=t.native,C=void 0!==E&&E,O=t.onClose,_=t.onOpen,T=t.open,R=t.renderValue,P=t.SelectDisplayProps,A=t.variant,L=void 0===A?"standard":A,N=p(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=C?gu:eu,I=tu({props:t,muiFormControl:Is(),states:["variant"]}).variant||L,F=m||{standard:_u,outlined:l.createElement(Cu,{label:v,labelWidth:w}),filled:Tu}[I];return l.cloneElement(F,f({inputComponent:M,inputProps:f({children:i,IconComponent:d,variant:I,type:void 0,multiple:S},C?{id:h}:{autoWidth:o,displayEmpty:u,labelId:y,MenuProps:x,onClose:O,onOpen:_,open:T,renderValue:R,SelectDisplayProps:f({id:h},P)},g,{classes:g?xn({baseClasses:a,newClasses:g.classes,Component:e}):a},m?m.props.inputProps:{}),ref:n},N))});Ru.muiName="Select";var Pu=zr(Ou,{name:"MuiSelect"})(Ru),Au=!0,Lu=!1,Nu=null,Mu={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 Iu(e){e.metaKey||e.altKey||e.ctrlKey||(Au=!0)}function Fu(){Au=!1}function $u(){"hidden"===this.visibilityState&&Lu&&(Au=!0)}function ju(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Au||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Mu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function zu(){Lu=!0,window.clearTimeout(Nu),Nu=window.setTimeout(function(){Lu=!1},100)}function Bu(){var e=l.useCallback(function(e){var t,n=qs.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Iu,!0),t.addEventListener("mousedown",Fu,!0),t.addEventListener("pointerdown",Fu,!0),t.addEventListener("touchstart",Fu,!0),t.addEventListener("visibilitychange",$u,!0))},[]);return{isFocusVisible:ju,onBlurVisible:zu,ref:e}}var Du="undefined"==typeof window?l.useEffect:l.useLayoutEffect;function Wu(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,u=e.onExited,c=void 0===u?function(){}:u,d=e.timeout,p=l.useState(!1),f=p[0],h=p[1],g=m(t.ripple,t.rippleVisible,r&&t.ripplePulsate),v={width:a,height:a,top:-a/2+i,left:-a/2+o},y=m(t.child,f&&t.childLeaving,r&&t.childPulsate),b=rl(c);return Du(function(){if(!s){h(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}},[b,s,d]),l.createElement("span",{className:g,style:v},l.createElement("span",{className:y}))}var Uu=l.forwardRef(function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=p(e,["center","classes","className"]),s=l.useState([]),u=s[0],c=s[1],d=l.useRef(0),h=l.useRef(null);l.useEffect(function(){h.current&&(h.current(),h.current=null)},[u]);var g=l.useRef(!1),v=l.useRef(null),y=l.useRef(null),b=l.useRef(null);l.useEffect(function(){return function(){clearTimeout(v.current)}},[]);var w=l.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c(function(e){return[].concat(xt(e),[l.createElement(Wu,{key:d.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])}),d.current+=1,h.current=a},[o]),x=l.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var c,d,p,f=u?null:b.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,x=m.clientX,k=m.clientY;c=Math.round(x-h.left),d=Math.round(k-h.top)}if(s)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(p+=1);else{var S=2*Math.max(Math.abs((f?f.clientWidth:0)-c),c)+2,E=2*Math.max(Math.abs((f?f.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(S,2)+Math.pow(E,2))}e.touches?null===y.current&&(y.current=function(){w({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:n})},v.current=setTimeout(function(){y.current&&(y.current(),y.current=null)},80)):w({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:n})}},[r,w]),k=l.useCallback(function(){x({},{pulsate:!0})},[x]),S=l.useCallback(function(e,t){if(clearTimeout(v.current),"touchend"===e.type&&y.current)return e.persist(),y.current(),y.current=null,void(v.current=setTimeout(function(){S(e,t)}));y.current=null,c(function(e){return e.length>0?e.slice(1):e}),h.current=t},[]);return l.useImperativeHandle(t,function(){return{pulsate:k,start:x,stop:S}},[k,x,S]),l.createElement("span",f({className:m(o.root,i),ref:b},a),l.createElement(Rl,{component:null,exit:!0},u))}),Vu=zr(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(l.memo(Uu)),Ku=l.forwardRef(function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,u=e.className,c=e.component,d=void 0===c?"button":c,h=e.disabled,g=void 0!==h&&h,v=e.disableRipple,y=void 0!==v&&v,b=e.disableTouchRipple,w=void 0!==b&&b,x=e.focusRipple,k=void 0!==x&&x,S=e.focusVisibleClassName,E=e.onBlur,C=e.onClick,O=e.onFocus,_=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,P=e.onMouseDown,A=e.onMouseLeave,L=e.onMouseUp,N=e.onTouchEnd,M=e.onTouchMove,I=e.onTouchStart,F=e.onDragLeave,$=e.tabIndex,j=void 0===$?0:$,z=e.TouchRippleProps,B=e.type,D=void 0===B?"button":B,W=p(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=l.useRef(null);var V=l.useRef(null),K=l.useState(!1),H=K[0],q=K[1];g&&H&&q(!1);var G=Bu(),Y=G.isFocusVisible,X=G.onBlurVisible,Q=G.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return rl(function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0})}l.useImperativeHandle(n,function(){return{focusVisible:function(){q(!0),U.current.focus()}}},[]),l.useEffect(function(){H&&k&&!y&&V.current.pulsate()},[y,k,H]);var Z=J("start",P),ee=J("stop",F),te=J("stop",L),ne=J("stop",function(e){H&&e.preventDefault(),A&&A(e)}),re=J("start",I),oe=J("stop",N),ie=J("stop",M),ae=J("stop",function(e){H&&(X(e),q(!1)),E&&E(e)},!1),se=rl(function(e){U.current||(U.current=e.currentTarget),Y(e)&&(q(!0),_&&_(e)),O&&O(e)}),le=function(){var e=qs.findDOMNode(U.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=l.useRef(!1),ce=rl(function(e){k&&!ue.current&&H&&V.current&&" "===e.key&&(ue.current=!0,e.persist(),V.current.stop(e,function(){V.current.start(e)})),e.target===e.currentTarget&&le()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&le()&&"Enter"===e.key&&!g&&(e.preventDefault(),C&&C(e))}),de=rl(function(e){k&&" "===e.key&&V.current&&H&&!e.defaultPrevented&&(ue.current=!1,e.persist(),V.current.stop(e,function(){V.current.pulsate(e)})),R&&R(e),C&&e.target===e.currentTarget&&le()&&" "===e.key&&!e.defaultPrevented&&C(e)}),pe=d;"button"===pe&&W.href&&(pe="a");var fe={};"button"===pe?(fe.type=D,fe.disabled=g):("a"===pe&&W.href||(fe.role="button"),fe["aria-disabled"]=g);var he=Zs(r,t),me=Zs(Q,U),ge=Zs(he,me),ve=l.useState(!1),ye=ve[0],be=ve[1];l.useEffect(function(){be(!0)},[]);var we=ye&&!y&&!g;return l.createElement(pe,f({className:m(s.root,u,H&&[s.focusVisible,S],g&&s.disabled),onBlur:ae,onClick:C,onFocus:se,onKeyDown:ce,onKeyUp:de,onMouseDown:Z,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:oe,onTouchMove:ie,onTouchStart:re,ref:ge,tabIndex:g?-1:j},fe,W),a,we?l.createElement(Vu,f({ref:V,center:i},z)):null)}),Hu=zr({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Ku),qu="undefined"==typeof window?l.useEffect:l.useLayoutEffect,Gu=l.forwardRef(function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,u=e.children,c=e.classes,d=e.className,h=e.component,g=e.ContainerComponent,v=void 0===g?"li":g,y=e.ContainerProps,b=(y=void 0===y?{}:y).className,w=p(y,["className"]),x=e.dense,k=void 0!==x&&x,S=e.disabled,E=void 0!==S&&S,C=e.disableGutters,O=void 0!==C&&C,_=e.divider,T=void 0!==_&&_,R=e.focusVisibleClassName,P=e.selected,A=void 0!==P&&P,L=p(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),N=l.useContext(Bl),M={dense:k||N.dense||!1,alignItems:r},I=l.useRef(null);qu(function(){i&&I.current&&I.current.focus()},[i]);var F=l.Children.toArray(u),$=F.length&&As(F[F.length-1],["ListItemSecondaryAction"]),j=Zs(l.useCallback(function(e){I.current=qs.findDOMNode(e)},[]),t),z=f({className:m(c.root,d,M.dense&&c.dense,!O&&c.gutters,T&&c.divider,E&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,$&&c.secondaryAction,A&&c.selected),disabled:E},L),B=h||"li";return s&&(z.component=h||"div",z.focusVisibleClassName=m(c.focusVisible,R),B=Hu),$?(B=z.component||h?B:"div","li"===v&&("li"===B?B="div":"li"===z.component&&(z.component="div")),l.createElement(Bl.Provider,{value:M},l.createElement(v,f({className:m(c.container,b),ref:j},w),l.createElement(B,z,F),F.pop()))):l.createElement(Bl.Provider,{value:M},l.createElement(B,f({ref:j},z),F))}),Yu=zr(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(Gu),Xu=l.forwardRef(function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,s=e.disableGutters,u=void 0!==s&&s,c=e.ListItemClasses,d=e.role,h=void 0===d?"menuitem":d,g=e.selected,v=e.tabIndex,y=p(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==v?v:-1),l.createElement(Yu,f({button:!0,role:h,tabIndex:n,component:a,selected:g,disableGutters:u,classes:f({dense:r.dense},c),className:m(r.root,o,g&&r.selected,!u&&r.gutters),ref:t},y))}),Qu=zr(function(e){return{root:f({},e.typography.body1,w({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:f({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(Xu),Ju=new Map,Zu=new WeakMap,ec=0;function tc(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(n=e.root,n?(Zu.has(n)||(ec+=1,Zu.set(n,ec.toString())),Zu.get(n)):"0"):e[t]}`;var n}).toString()}function nc(e,t,n={},r=undefined){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){const t=tc(e);let n=Ju.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(t=>{t.forEach(t=>{var n;const i=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach(e=>{e(i,t)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Ju.set(t,n)}return n}(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),Ju.delete(o))}}const rc={black:"#000",white:"#fff"},oc="#e57373",ic="#ef5350",ac="#f44336",sc="#d32f2f",lc="#c62828",uc="#f3e5f5",cc="#ce93d8",dc="#ba68c8",pc="#ab47bc",fc="#9c27b0",hc="#7b1fa2",mc="#e3f2fd",gc="#90caf9",vc="#42a5f5",yc="#1976d2",bc="#1565c0",wc="#4fc3f7",xc="#29b6f6",kc="#03a9f4",Sc="#0288d1",Ec="#01579b",Cc="#81c784",Oc="#66bb6a",_c="#4caf50",Tc="#388e3c",Rc="#2e7d32",Pc="#1b5e20",Ac="#ffb74d",Lc="#ffa726",Nc="#ff9800",Mc="#f57c00",Ic="#e65100",Fc={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function $c(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var jc="$$material";var zc=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Bc="-ms-",Dc="-moz-",Wc="-webkit-",Uc="comm",Vc="rule",Kc="decl",Hc="@keyframes",qc=Math.abs,Gc=String.fromCharCode,Yc=Object.assign;function Xc(e){return e.trim()}function Qc(e,t,n){return e.replace(t,n)}function Jc(e,t){return e.indexOf(t)}function Zc(e,t){return 0|e.charCodeAt(t)}function ed(e,t,n){return e.slice(t,n)}function td(e){return e.length}function nd(e){return e.length}function rd(e,t){return t.push(e),e}var od=1,id=1,ad=0,sd=0,ld=0,ud="";function cd(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:od,column:id,length:a,return:""}}function dd(e,t){return Yc(cd("",null,null,"",null,null,0),e,{length:-e.length},t)}function pd(){return ld=sd>0?Zc(ud,--sd):0,id--,10===ld&&(id=1,od--),ld}function fd(){return ld=sd<ad?Zc(ud,sd++):0,id++,10===ld&&(id=1,od++),ld}function hd(){return Zc(ud,sd)}function md(){return sd}function gd(e,t){return ed(ud,e,t)}function vd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yd(e){return od=id=1,ad=td(ud=e),sd=0,[]}function bd(e){return ud="",e}function wd(e){return Xc(gd(sd-1,Sd(91===e?e+2:40===e?e+1:e)))}function xd(e){for(;(ld=hd())&&ld<33;)fd();return vd(e)>2||vd(ld)>3?"":" "}function kd(e,t){for(;--t&&fd()&&!(ld<48||ld>102||ld>57&&ld<65||ld>70&&ld<97););return gd(e,md()+(t<6&&32==hd()&&32==fd()))}function Sd(e){for(;fd();)switch(ld){case e:return sd;case 34:case 39:34!==e&&39!==e&&Sd(ld);break;case 40:41===e&&Sd(e);break;case 92:fd()}return sd}function Ed(e,t){for(;fd()&&e+ld!==57&&(e+ld!==84||47!==hd()););return"/*"+gd(t,sd-1)+"*"+Gc(47===e?e:fd())}function Cd(e){for(;!vd(hd());)fd();return gd(e,sd)}function Od(e){return bd(_d("",null,null,null,[""],e=yd(e),0,[0],e))}function _d(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,k=r,S=b;g;)switch(h=y,y=fd()){case 40:if(108!=h&&58==Zc(S,d-1)){-1!=Jc(S+=Qc(wd(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=wd(y);break;case 9:case 10:case 13:case 32:S+=xd(h);break;case 92:S+=kd(md()-1,7);continue;case 47:switch(hd()){case 42:case 47:rd(Rd(Ed(fd(),md()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=td(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=Qc(S,/\f/g,"")),f>0&&td(S)-d&&rd(f>32?Pd(S+";",r,n,d-1):Pd(Qc(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(rd(k=Td(S,t,n,u,c,o,s,b,w=[],x=[],d),i),123===y)if(0===c)_d(S,t,k,k,w,i,d,s,x);else switch(99===p&&110===Zc(S,3)?100:p){case 100:case 108:case 109:case 115:_d(e,k,k,r&&rd(Td(e,k,k,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:_d(S,k,k,k,[""],x,0,s,x)}}u=c=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+td(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==pd())continue;switch(S+=Gc(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(td(S)-1)*v,v=1;break;case 64:45===hd()&&(S+=wd(fd())),p=hd(),c=d=td(b=S+=Cd(md())),y++;break;case 45:45===h&&2==td(S)&&(m=0)}}return i}function Td(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,p=0===o?i:[""],f=nd(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=ed(e,d+1,d=qc(m=a[h])),b=e;v<f;++v)(b=Xc(m>0?p[v]+" "+y:Qc(y,/&\f/g,p[v])))&&(l[g++]=b);return cd(e,t,n,0===o?Vc:s,l,u,c)}function Rd(e,t,n){return cd(e,t,n,Uc,Gc(ld),ed(e,2,-2),0)}function Pd(e,t,n,r){return cd(e,t,n,Kc,ed(e,0,r),ed(e,r+1,-1),r)}function Ad(e,t){for(var n="",r=nd(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ld(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kc:return e.return=e.return||e.value;case Uc:return"";case Hc:return e.return=e.value+"{"+Ad(e.children,r)+"}";case Vc:e.value=e.props.join(",")}return td(n=Ad(e.children,r))?e.return=e.value+"{"+n+"}":""}function Nd(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Md=function(e,t,n){for(var r=0,o=0;r=o,o=hd(),38===r&&12===o&&(t[n]=1),!vd(o);)fd();return gd(e,sd)},Id=function(e,t){return bd(function(e,t){var n=-1,r=44;do{switch(vd(r)){case 0:38===r&&12===hd()&&(t[n]=1),e[n]+=Md(sd-1,t,n);break;case 2:e[n]+=wd(r);break;case 4:if(44===r){e[++n]=58===hd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Gc(r)}}while(r=fd());return e}(yd(e),t))},Fd=new WeakMap,$d=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Fd.get(n))&&!r){Fd.set(e,!0);for(var o=[],i=Id(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},jd=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zd(e,t){switch(function(e,t){return 45^Zc(e,0)?(((t<<2^Zc(e,0))<<2^Zc(e,1))<<2^Zc(e,2))<<2^Zc(e,3):0}(e,t)){case 5103:return Wc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wc+e+Dc+e+Bc+e+e;case 6828:case 4268:return Wc+e+Bc+e+e;case 6165:return Wc+e+Bc+"flex-"+e+e;case 5187:return Wc+e+Qc(e,/(\w+).+(:[^]+)/,Wc+"box-$1$2"+Bc+"flex-$1$2")+e;case 5443:return Wc+e+Bc+"flex-item-"+Qc(e,/flex-|-self/,"")+e;case 4675:return Wc+e+Bc+"flex-line-pack"+Qc(e,/align-content|flex-|-self/,"")+e;case 5548:return Wc+e+Bc+Qc(e,"shrink","negative")+e;case 5292:return Wc+e+Bc+Qc(e,"basis","preferred-size")+e;case 6060:return Wc+"box-"+Qc(e,"-grow","")+Wc+e+Bc+Qc(e,"grow","positive")+e;case 4554:return Wc+Qc(e,/([^-])(transform)/g,"$1"+Wc+"$2")+e;case 6187:return Qc(Qc(Qc(e,/(zoom-|grab)/,Wc+"$1"),/(image-set)/,Wc+"$1"),e,"")+e;case 5495:case 3959:return Qc(e,/(image-set\([^]*)/,Wc+"$1$`$1");case 4968:return Qc(Qc(e,/(.+:)(flex-)?(.*)/,Wc+"box-pack:$3"+Bc+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wc+e+e;case 4095:case 3583:case 4068:case 2532:return Qc(e,/(.+)-inline(.+)/,Wc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(td(e)-1-t>6)switch(Zc(e,t+1)){case 109:if(45!==Zc(e,t+4))break;case 102:return Qc(e,/(.+:)(.+)-([^]+)/,"$1"+Wc+"$2-$3$1"+Dc+(108==Zc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Jc(e,"stretch")?zd(Qc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Zc(e,t+1))break;case 6444:switch(Zc(e,td(e)-3-(~Jc(e,"!important")&&10))){case 107:return Qc(e,":",":"+Wc)+e;case 101:return Qc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Wc+(45===Zc(e,14)?"inline-":"")+"box$3$1"+Wc+"$2$3$1"+Bc+"$2box$3")+e}break;case 5936:switch(Zc(e,t+11)){case 114:return Wc+e+Bc+Qc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wc+e+Bc+Qc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wc+e+Bc+Qc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Wc+e+Bc+e+e}return e}var Bd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kc:e.return=zd(e.value,e.length);break;case Hc:return Ad([dd(e,{value:Qc(e.value,"@","@"+Wc)})],r);case Vc:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ad([dd(e,{props:[Qc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ad([dd(e,{props:[Qc(t,/:(plac\w+)/,":"+Wc+"input-$1")]}),dd(e,{props:[Qc(t,/:(plac\w+)/,":-moz-$1")]}),dd(e,{props:[Qc(t,/:(plac\w+)/,Bc+"input-$1")]})],r)}return""})}}],Dd=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Bd,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c=[Ld,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=nd(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([$d,jd].concat(i,c));o=function(e,t,n,r){l=n,function(e){Ad(Od(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new zc({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function Wd(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Ud=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Vd=function(e,t,n){Ud(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hd=/[A-Z]|^ms/g,qd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gd=function(e){return 45===e.charCodeAt(1)},Yd=function(e){return null!=e&&"boolean"!=typeof e},Xd=Nd(function(e){return Gd(e)?e:e.replace(Hd,"-$&").toLowerCase()}),Qd=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qd,function(e,t,n){return Zd={name:t,styles:n,next:Zd},t})}return 1===Kd[e]||Gd(e)||"number"!=typeof t||0===t?t:t+"px"};function Jd(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Zd={name:o.name,styles:o.styles,next:Zd},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Zd={name:a.name,styles:a.styles,next:Zd},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Jd(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Yd(s)&&(r+=Xd(i)+":"+Qd(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Jd(e,t,a);switch(i){case"animation":case"animationName":r+=Xd(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Yd(a[u])&&(r+=Xd(i)+":"+Qd(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Zd,l=n(e);return Zd=s,Jd(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Zd,ep=/label:\s*([^\s;{]+)\s*(;|$)/g;function tp(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Zd=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Jd(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Jd(n,t,e[a]),r)o+=i[a]}ep.lastIndex=0;for(var s,l="";null!==(s=ep.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Zd}}var np=!!c.useInsertionEffect&&c.useInsertionEffect,rp=np||function(e){return e()},op=np||l.useLayoutEffect,ip=l.createContext("undefined"!=typeof HTMLElement?Dd({key:"css"}):null);ip.Provider;var ap,sp,lp=function(e){return l.forwardRef(function(t,n){var r=l.useContext(ip);return e(t,r,n)})},up=l.createContext({}),cp={}.hasOwnProperty,dp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ud(t,n,r),rp(function(){return Vd(t,n,r)}),null},fp=lp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[dp],i=[r],a="";"string"==typeof e.className?a=Wd(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=tp(i,void 0,l.useContext(up));a+=t.key+"-"+s.name;var u={};for(var c in e)cp.call(e,c)&&"css"!==c&&c!==dp&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),l.createElement(l.Fragment,null,l.createElement(pp,{cache:t,serialized:s,isStringTag:"string"==typeof o}),l.createElement(o,u))}),hp=fp,mp=function(e,t){var n=arguments;if(null==t||!cp.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=hp,o[1]=function(e,t){var n={};for(var r in t)cp.call(t,r)&&(n[r]=t[r]);return n[dp]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return l.createElement.apply(null,o)};ap=mp||(mp={}),sp||(sp=ap.JSX||(ap.JSX={}));var gp=lp(function(e,t){var n=tp([e.styles],void 0,l.useContext(up)),r=l.useRef();return op(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),op(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Vd(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tp(t)}function yp(){var e=vp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var bp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wp=Nd(function(e){return bp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),xp=function(e){return"theme"!==e},kp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?wp:xp},Sp=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ep=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ud(t,n,r),rp(function(){return Vd(t,n,r)}),null},Cp=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Sp(t,n,i),u=s||kp(a),c=!u("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var m=d.length,g=1;g<m;g++)p.push(d[g],h[g])}var v=lp(function(e,t,n){var r=c&&e.as||a,i="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=l.useContext(up)}"string"==typeof e.className?i=Wd(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=tp(p.concat(d),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?kp(r):u,v={};for(var y in e)c&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=i,n&&(v.ref=n),l.createElement(l.Fragment,null,l.createElement(Ep,{cache:t,serialized:m,isStringTag:"string"==typeof r}),l.createElement(r,v))});return v.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=p,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(t,r){return e(t,f({},n,r,{shouldForwardProp:Sp(v,r,!0)})).apply(void 0,p)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Cp[e]=Cp(e)});var Op,_p,Tp={exports:{}},Rp={};var Pp=(_p||(_p=1,Tp.exports=function(){if(Op)return Rp;Op=1;var e=s(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Rp.Fragment=n,Rp.jsx=a,Rp.jsxs=a,Rp}()),Tp.exports);function Ap(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Pp.jsx(gp,{styles:r})}
|
|
24
|
+
*/function Cl(){if(yl)return xl;yl=1;var e=s(),t=El();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){h[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(p,e)||!u.call(d,e)&&(c.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(m,g);h[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),L=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var M,I=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var $=!1;function j(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case w:return"Portal";case S:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function D(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function H(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?J(e,t.type,n):t.hasOwnProperty("defaultValue")&&J(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function J(e,t,n){"number"===t&&H(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Z=Array.isArray;function ee(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Z(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function re(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ae(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,le,ue=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return le(e,t)})}:le);function ce(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(de).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]})});var me=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function be(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,xe=null,ke=null;function Se(e){if(e=yo(e)){if("function"!=typeof we)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),we(e.stateNode,e.type,t))}}function Ee(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Ce(){if(xe){var e=xe,t=ke;if(ke=xe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function Te(){}var _e=!1;function Re(e,t,n){if(_e)return e(t,n);_e=!0;try{return Oe(e,t,n)}finally{_e=!1,(null!==xe||null!==ke)&&(Te(),Ce())}}function Pe(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ae=!1;if(l)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(le){Ae=!1}function Ne(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Ie=null,Fe=!1,$e=null,je={onError:function(e){Me=!0,Ie=e}};function ze(e,t,n,r,o,i,a,s,l){Me=!1,Ie=null,Ne.apply(je,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function De(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Be(e)!==e)throw Error(n(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return We(i),e;if(a===o)return We(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,He=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Ge=t.unstable_requestPaint,Ye=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,Je=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=null,rt=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(it(e)/at|0)|0},it=Math.log,at=Math.LN2;var st=64,lt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ct(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ut(s):0!==(i&=a)&&(r=ut(i))}else 0!==(a=n&~o)?r=ut(a):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-ot(t)),r|=e[n],t&=~o;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var bt,wt,xt,kt,St,Et=!1,Ct=[],Ot=null,Tt=null,_t=null,Rt=new Map,Pt=new Map,At=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=yo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=vo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=De(n)))return e.blockedOn=t,void St(e.priority,function(){xt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function $t(e,t,n){Ft(e)&&n.delete(t)}function jt(){Et=!1,null!==Ot&&Ft(Ot)&&(Ot=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==_t&&Ft(_t)&&(_t=null),Rt.forEach($t),Pt.forEach($t)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jt)))}function Bt(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&zt(Ot,e),null!==Tt&&zt(Tt,e),null!==_t&&zt(_t,e),Rt.forEach(t),Pt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)It(n),null===n.blockedOn&&At.shift()}var Dt=y.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var o=vt,i=Dt.transition;Dt.transition=null;try{vt=1,Kt(e,t,n,r)}finally{vt=o,Dt.transition=i}}function Vt(e,t,n,r){var o=vt,i=Dt.transition;Dt.transition=null;try{vt=4,Kt(e,t,n,r)}finally{vt=o,Dt.transition=i}}function Kt(e,t,n,r){if(Wt){var o=qt(e,t,n,r);if(null===o)Wr(e,t,r,Ht,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Mt(Ot,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return _t=Mt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Lt.indexOf(e)){for(;null!==o;){var i=yo(o);if(null!==i&&bt(i),null===(i=qt(e,t,n,r))&&Wr(e,t,r,Ht,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Ht=null;function qt(e,t,n,r){if(Ht=null,null!==(e=vo(e=be(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=De(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ht=e,null}function Gt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Qe:return 1;case Je:return 4;case Ze:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Qt=null;function Jt(){if(Qt)return Qt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function Zt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=I({},sn,{view:0,detail:0}),cn=nn(un),dn=I({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),pn=nn(dn),fn=nn(I({},dn,{dataTransfer:0})),hn=nn(I({},un,{relatedTarget:0})),mn=nn(I({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=I({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=nn(gn),yn=nn(I({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return kn}var En=I({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Zt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?Zt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Zt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=nn(En),On=nn(I({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=nn(I({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),_n=nn(I({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=I({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=nn(Rn),An=[9,13,27,32],Ln=l&&"CompositionEvent"in window,Nn=null;l&&"documentMode"in document&&(Nn=document.documentMode);var Mn=l&&"TextEvent"in window&&!Nn,In=l&&(!Ln||Nn&&8<Nn&&11>=Nn),Fn=String.fromCharCode(32),$n=!1;function jn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Dn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Dn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Hn(e){Fr(e,0)}function qn(e){if(K(bo(e)))return e}function Gn(e,t){if("change"===e)return t}var Yn=!1;if(l){var Xn;if(l){var Qn="oninput"in document;if(!Qn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Qn="function"==typeof Jn.oninput}Xn=Qn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function Zn(){Vn&&(Vn.detachEvent("onpropertychange",er),Kn=Vn=null)}function er(e){if("value"===e.propertyName&&qn(Kn)){var t=[];Un(t,Kn,e,be(e)),Re(Hn,t)}}function tr(e,t,n){"focusin"===e?(Zn(),Kn=n,(Vn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Zn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function rr(e,t){if("click"===e)return qn(t)}function or(e,t){if("input"===e||"change"===e)return qn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!u.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=H();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=H((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lr(n,i);var a=lr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=l&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==H(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ar(gr,r)||(gr=r,0<(r=Vr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},kr={};function Sr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Sr("animationend"),Cr=Sr("animationiteration"),Or=Sr("animationstart"),Tr=Sr("transitionend"),_r=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){_r.set(e,t),i(t,[e])}for(var Ar=0;Ar<Rr.length;Ar++){var Lr=Rr[Ar];Pr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}Pr(Er,"onAnimationEnd"),Pr(Cr,"onAnimationIteration"),Pr(Or,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Tr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Ir(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var c=Ie;Me=!1,Ie=null,Fe||(Fe=!0,$e=c)}}(o,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,u),i=l}}}if(Fe)throw e=$e,Fe=!1,$e=null,e}function $r(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Dr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Mr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,jr("selectionchange",!1,t))}}function Dr(e,t,n,r){switch(Gt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=vo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=be(n),a=[];e:{var s=_r.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Zt(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Er:case Cr:case Or:l=mn;break;case Tr:l=_n;break;case"scroll":l=cn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Pe(h,p))&&c.push(Ur(h,m,f)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(u=n.relatedTarget||n.fromElement)||!vo(u)&&!u[fo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vo(u):null)&&(u!==(d=Be(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:bo(l),f=null==u?s:bo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,vo(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(p=u,h=0,f=c=l;f;f=Kr(f))h++;for(f=0,m=p;m;m=Kr(m))f++;for(;0<h-f;)c=Kr(c),h--;for(;0<f-h;)p=Kr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Kr(c),p=Kr(p)}c=null}else c=null;null!==l&&Hr(a,s,l,c,!1),null!==u&&null!==d&&Hr(a,d,u,c,!0)}if("select"===(l=(s=r?bo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Gn;else if(Wn(s))if(Yn)g=or;else{g=nr;var v=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Un(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&J(s,"number",s.value)),v=r?bo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(hr=v,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(a,n,o);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":yr(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=Jt()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Vr(r,b)).length&&(b=new yn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:($n=!0,Fn);case"textInput":return(e=t.data)===Fn&&$n?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Ln&&jn(e,t)?(e=Jt(),Qt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new yn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Fr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Pe(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Hr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Pe(n,i))&&a.unshift(Ur(n,l,s)):o||null!=(l=Pe(n,i))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Gr,"")}function Xr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Qr(){}var Jr=null,Zr=null;function eo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var to="function"==typeof setTimeout?setTimeout:void 0,no="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,oo="function"==typeof queueMicrotask?queueMicrotask:void 0!==ro?function(e){return ro.resolve(null).then(e).catch(io)}:to;function io(e){setTimeout(function(){throw e})}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function lo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var uo=Math.random().toString(36).slice(2),co="__reactFiber$"+uo,po="__reactProps$"+uo,fo="__reactContainer$"+uo,ho="__reactEvents$"+uo,mo="__reactListeners$"+uo,go="__reactHandles$"+uo;function vo(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fo]||n[co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lo(e);null!==e;){if(n=e[co])return n;e=lo(e)}return t}n=(e=n).parentNode}return null}function yo(e){return!(e=e[co]||e[fo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[po]||null}var xo=[],ko=-1;function So(e){return{current:e}}function Eo(e){0>ko||(e.current=xo[ko],xo[ko]=null,ko--)}function Co(e,t){ko++,xo[ko]=e.current,e.current=t}var Oo={},To=So(Oo),_o=So(!1),Ro=Oo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=(e=e.childContextTypes)}function Lo(){Eo(_o),Eo(To)}function No(e,t,r){if(To.current!==Oo)throw Error(n(168));Co(To,t),Co(_o,r)}function Mo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,D(e)||"Unknown",i));return I({},r,o)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Ro=To.current,Co(To,e),Co(_o,_o.current),!0}function Fo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Mo(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,Eo(_o),Eo(To),Co(To,e)):Eo(_o),Co(_o,r)}var $o=null,jo=!1,zo=!1;function Bo(e){null===$o?$o=[e]:$o.push(e)}function Do(){if(!zo&&null!==$o){zo=!0;var e=0,t=vt;try{var n=$o;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$o=null,jo=!1}catch(t){throw null!==$o&&($o=$o.slice(e+1)),Ke(Qe,Do),t}finally{vt=t,zo=!1}}return null}var Wo=[],Uo=0,Vo=null,Ko=0,Ho=[],qo=0,Go=null,Yo=1,Xo="";function Qo(e,t){Wo[Uo++]=Ko,Wo[Uo++]=Vo,Vo=e,Ko=t}function Jo(e,t,n){Ho[qo++]=Yo,Ho[qo++]=Xo,Ho[qo++]=Go,Go=e;var r=Yo;e=Xo;var o=32-ot(r)-1;r&=~(1<<o),n+=1;var i=32-ot(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-ot(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function Zo(e){null!==e.return&&(Qo(e,1),Jo(e,1,0))}function ei(e){for(;e===Vo;)Vo=Wo[--Uo],Wo[Uo]=null,Ko=Wo[--Uo],Wo[Uo]=null;for(;e===Go;)Go=Ho[--qo],Ho[qo]=null,Xo=Ho[--qo],Ho[qo]=null,Yo=Ho[--qo],Ho[qo]=null}var ti=null,ni=null,ri=!1,oi=null;function ii(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ai(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ti=e,ni=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ti=e,ni=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ti=e,ni=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function li(e){if(ri){var t=ni;if(t){var r=t;if(!ai(e,t)){if(si(e))throw Error(n(418));t=so(r.nextSibling);var o=ti;t&&ai(e,t)?ii(o,r):(e.flags=-4097&e.flags|2,ri=!1,ti=e)}}else{if(si(e))throw Error(n(418));e.flags=-4097&e.flags|2,ri=!1,ti=e}}}function ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ti=e}function ci(e){if(e!==ti)return!1;if(!ri)return ui(e),ri=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!eo(e.type,e.memoizedProps)),t&&(t=ni)){if(si(e))throw di(),Error(n(418));for(;t;)ii(e,t),t=so(t.nextSibling)}if(ui(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ni=so(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ni=null}}else ni=ti?so(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ni;e;)e=so(e.nextSibling)}function pi(){ni=ti=null,ri=!1}function fi(e){null===oi?oi=[e]:oi.push(e)}var hi=y.ReactCurrentBatchConfig;function mi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vi(e){return(0,e._init)(e._payload)}function yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=ju(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&vi(o)===t.type)?((r=i(t,n.props)).ref=mi(e,t,n),r.return=e,r):((r=Iu(n.type,n.key,n.props,null,e.mode,r)).ref=mi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=mi(e,null,t),n.return=e,n;case w:return(t=zu(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(Z(t)||N(t))return(t=Fu(t,e.mode,n,null)).return=e,t;gi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===o?u(e,t,n,r):null;case w:return n.key===o?c(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(Z(n)||N(n))return null!==o?null:d(e,t,n,r,null);gi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(Z(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);gi(t,r)}return null}function m(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(n,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(n,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return r(n,d),ri&&Qo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ri&&Qo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ri&&Qo(n,m),u}function g(i,s,l,u){var c=N(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return r(i,m),ri&&Qo(i,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(i,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ri&&Qo(i,g),c}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ri&&Qo(i,g),c}return function e(n,o,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case b:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){r(n,c.sibling),(o=i(c,a.props.children)).return=n,n=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&vi(u)===c.type){r(n,c.sibling),(o=i(c,a.props)).ref=mi(n,c,a),o.return=n,n=o;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===x?((o=Fu(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Iu(a.type,a.key,a.props,null,n.mode,l)).ref=mi(n,o,a),l.return=n,n=l)}return s(n);case w:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zu(a,n.mode,l)).return=n,n=o}return s(n);case P:return e(n,o,(c=a._init)(a._payload),l)}if(Z(a))return m(n,o,a,l);if(N(a))return g(n,o,a,l);gi(n,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=ju(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var bi=yi(!0),wi=yi(!1),xi=So(null),ki=null,Si=null,Ei=null;function Ci(){Ei=Si=ki=null}function Oi(e){var t=xi.current;Eo(xi),e._currentValue=t}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _i(e,t){ki=e,Ei=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(vs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===ki)throw Error(n(308));Si=e,ki.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Pi=null;function Ai(e){null===Pi?Pi=[e]:Pi.push(e)}function Li(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ni(e,r)}function Ni(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ni(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ni(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=I({},d,p);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);$l|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Ui={},Vi=So(Ui),Ki=So(Ui),Hi=So(Ui);function qi(e){if(e===Ui)throw Error(n(174));return e}function Gi(e,t){switch(Co(Hi,t),Co(Ki,e),Co(Vi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ae(null,"");break;default:t=ae(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Vi),Co(Vi,t)}function Yi(){Eo(Vi),Eo(Ki),Eo(Hi)}function Xi(e){qi(Hi.current);var t=qi(Vi.current),n=ae(t,e.type);t!==n&&(Co(Ki,e),Co(Vi,n))}function Qi(e){Ki.current===e&&(Eo(Vi),Eo(Ki))}var Ji=So(0);function Zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ea=[];function ta(){for(var e=0;e<ea.length;e++)ea[e]._workInProgressVersionPrimary=null;ea.length=0}var na=y.ReactCurrentDispatcher,ra=y.ReactCurrentBatchConfig,oa=0,ia=null,aa=null,sa=null,la=!1,ua=!1,ca=0,da=0;function pa(){throw Error(n(321))}function fa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function ha(e,t,r,o,i,a){if(oa=a,ia=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=null===e||null===e.memoizedState?Qa:Ja,e=r(o,i),ua){a=0;do{if(ua=!1,ca=0,25<=a)throw Error(n(301));a+=1,sa=aa=null,t.updateQueue=null,na.current=Za,e=r(o,i)}while(ua)}if(na.current=Xa,t=null!==aa&&null!==aa.next,oa=0,sa=aa=ia=null,la=!1,t)throw Error(n(300));return e}function ma(){var e=0!==ca;return ca=0,e}function ga(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?ia.memoizedState=sa=e:sa=sa.next=e,sa}function va(){if(null===aa){var e=ia.alternate;e=null!==e?e.memoizedState:null}else e=aa.next;var t=null===sa?ia.memoizedState:sa.next;if(null!==t)sa=t,aa=e;else{if(null===e)throw Error(n(310));e={memoizedState:(aa=e).memoizedState,baseState:aa.baseState,baseQueue:aa.baseQueue,queue:aa.queue,next:null},null===sa?ia.memoizedState=sa=e:sa=sa.next=e}return sa}function ya(e,t){return"function"==typeof t?t(e):t}function ba(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=aa,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((oa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=p,s=o):u=u.next=p,ia.lanes|=d,$l|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,ir(o,t.memoizedState)||(vs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ia.lanes|=a,$l|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=va(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ir(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function xa(){}function ka(e,t){var r=ia,o=va(),i=t(),a=!ir(o.memoizedState,i);if(a&&(o.memoizedState=i,vs=!0),o=o.queue,Ma(Ca.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(r.flags|=2048,Ra(9,Ea.bind(null,r,o,i,t),void 0,null),null===Pl)throw Error(n(349));30&oa||Sa(r,t,i)}return i}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Ta(e)}function Ca(e,t,n){return n(function(){Oa(t)&&Ta(e)})}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Ta(e){var t=Ni(e,1);null!==t&&ru(t,e,1,-1)}function _a(e){var t=ga();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t.queue=e,e=e.dispatch=Ha.bind(null,ia,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ia.updateQueue)?(t={lastEffect:null,stores:null},ia.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return va().memoizedState}function Aa(e,t,n,r){var o=ga();ia.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function La(e,t,n,r){var o=va();r=void 0===r?null:r;var i=void 0;if(null!==aa){var a=aa.memoizedState;if(i=a.destroy,null!==r&&fa(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}ia.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Na(e,t){return Aa(8390656,8,e,t)}function Ma(e,t){return La(2048,8,e,t)}function Ia(e,t){return La(4,2,e,t)}function Fa(e,t){return La(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ja(e,t,n){return n=null!=n?n.concat([e]):null,La(4,4,$a.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Da(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&oa?(ir(n,t)||(n=ft(),ia.lanes|=n,$l|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=n)}function Ua(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ra.transition;ra.transition={};try{e(!1),t()}finally{vt=n,ra.transition=r}}function Va(){return va().memoizedState}function Ka(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))Ga(t,n);else if(null!==(n=Li(e,t,n,r))){ru(n,e,r,tu()),Ya(n,t,r)}}function Ha(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))Ga(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,ir(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ai(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Li(e,t,o,r))&&(ru(n,e,r,o=tu()),Ya(n,t,r))}}function qa(e){var t=e.alternate;return e===ia||null!==t&&t===ia}function Ga(e,t){ua=la=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Xa={readContext:Ri,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Qa={readContext:Ri,useCallback:function(e,t){return ga().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Na,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=ga();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ga();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ka.bind(null,ia,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ga().memoizedState=e},useState:_a,useDebugValue:za,useDeferredValue:function(e){return ga().memoizedState=e},useTransition:function(){var e=_a(!1),t=e[0];return e=Ua.bind(null,e[1]),ga().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=ia,i=ga();if(ri){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Pl)throw Error(n(349));30&oa||Sa(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Na(Ca.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ea.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ga(),t=Pl.identifierPrefix;if(ri){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-ot(Yo)-1)).toString(32)+n),0<(n=ca++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=da++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ja={readContext:Ri,useCallback:Ba,useContext:Ri,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Ia,useLayoutEffect:Fa,useMemo:Da,useReducer:ba,useRef:Pa,useState:function(){return ba(ya)},useDebugValue:za,useDeferredValue:function(e){return Wa(va(),aa.memoizedState,e)},useTransition:function(){return[ba(ya)[0],va().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1},Za={readContext:Ri,useCallback:Ba,useContext:Ri,useEffect:Ma,useImperativeHandle:ja,useInsertionEffect:Ia,useLayoutEffect:Fa,useMemo:Da,useReducer:wa,useRef:Pa,useState:function(){return wa(ya)},useDebugValue:za,useDeferredValue:function(e){var t=va();return null===aa?t.memoizedState=e:Wa(t,aa.memoizedState,e)},useTransition:function(){return[wa(ya)[0],va().memoizedState]},useMutableSource:xa,useSyncExternalStore:ka,useId:Va,unstable_isNewReconciler:!1};function es(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=$i(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=$i(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=$i(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,r))&&(ru(t,e,r,n),zi(t,e,r))}};function rs(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,i))}function os(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=Ao(t)?Ro:To.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function is(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ns.enqueueReplaceState(t,t.state,null)}function as(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=Ao(t)?Ro:To.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(ts(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ns.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ss(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var cs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=$i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,Hl=r),us(0,t)},n}function ps(e,t,n){(n=$i(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){us(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function hs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ms(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=$i(-1,1)).tag=2,ji(n,t,1))),n.lanes|=1),e)}var gs=y.ReactCurrentOwner,vs=!1;function ys(e,t,n,r){t.child=null===e?wi(t,null,n,r):bi(t,e.child,n,r)}function bs(e,t,n,r,o){n=n.render;var i=t.ref;return _i(t,o),r=ha(e,t,n,r,i,o),n=ma(),null===e||vs?(ri&&n&&Zo(t),t.flags|=1,ys(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Ws(e,t,o)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ar(i,r)&&e.ref===t.ref){if(vs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Ws(e,t,o);131072&e.flags&&(vs=!0)}}return Es(e,t,n,r,o)}function ks(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Ml,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Ml,Nl),Nl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Ml,Nl),Nl|=r;return ys(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Ao(n)?Ro:To.current;return i=Po(t,i),_i(t,o),n=ha(e,t,n,r,i,o),r=ma(),null===e||vs?(ri&&r&&Zo(t),t.flags|=1,ys(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function Cs(e,t,n,r,o){if(Ao(n)){var i=!0;Io(t)}else i=!1;if(_i(t,o),null===t.stateNode)Ds(e,t),os(t,n,r),as(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Po(t,u=Ao(n)?Ro:To.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&is(t,a,r,u),Mi=!1;var p=t.memoizedState;a.state=p,Di(t,r,a,o),l=t.memoizedState,s!==r||p!==l||_o.current||Mi?("function"==typeof c&&(ts(t,n,c,r),l=t.memoizedState),(s=Mi||rs(t,n,s,r,p,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:es(t.type,s),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Po(t,l=Ao(n)?Ro:To.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&is(t,a,r,l),Mi=!1,p=t.memoizedState,a.state=p,Di(t,r,a,o);var h=t.memoizedState;s!==d||p!==h||_o.current||Mi?("function"==typeof f&&(ts(t,n,f,r),h=t.memoizedState),(u=Mi||rs(t,n,u,r,p,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,i,o)}function Os(e,t,n,r,o,i){Ss(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),Ws(e,t,i);r=t.stateNode,gs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=bi(t,e.child,null,i),t.child=bi(t,null,s,i)):ys(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ts(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),Gi(e,t.containerInfo)}function _s(e,t,n,r,o){return pi(),fi(o),t.flags|=256,ys(e,t,n,r),t.child}var Rs,Ps,As,Ls,Ns={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Is(e,t,r){var o,i=t.pendingProps,a=Ji.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(Ji,1&a),null===e)return li(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=$u(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Fu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(r),t.memoizedState=Ns,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,$s(e,t,s,o=ls(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=$u({mode:"visible",children:o.children},i,0,null),(a=Fu(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&bi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ns,a);if(!(1&t.mode))return $s(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,$s(e,t,s,o=ls(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),vs||l){if(null!==(o=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ni(e,i),ru(o,e,i,-1))}return gu(),$s(e,t,s,o=ls(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=_u.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ni=so(i.nextSibling),ti=t,ri=!0,oi=null,null!==e&&(Ho[qo++]=Yo,Ho[qo++]=Xo,Ho[qo++]=Go,Yo=e.id,Xo=e.overflow,Go=t),t=Fs(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Mu(o,s):(s=Fu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ns,i}return e=(s=e.child).sibling,i=Mu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=$u({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function $s(e,t,n,r){return null!==r&&fi(r),bi(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function js(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ys(e,t,r.children,n),2&(r=Ji.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&js(e,n,t);else if(19===e.tag)js(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(Ji,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ds(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),$l|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Us(e,t){if(!ri)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,r){var i=t.pendingProps;switch(ei(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Ao(t.type)&&Lo(),Vs(t),null;case 3:return i=t.stateNode,Yi(),Eo(_o),Eo(To),ta(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ci(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oi&&(su(oi),oi=null))),Ps(e,t),Vs(t),null;case 5:Qi(t);var a=qi(Hi.current);if(r=t.type,null!==e&&null!=t.stateNode)As(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Vs(t),null}if(e=qi(Vi.current),ci(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[co]=t,i[po]=s,e=!!(1&t.mode),r){case"dialog":$r("cancel",i),$r("close",i);break;case"iframe":case"object":case"embed":$r("load",i);break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],i);break;case"source":$r("error",i);break;case"img":case"image":case"link":$r("error",i),$r("load",i);break;case"details":$r("toggle",i);break;case"input":G(i,s),$r("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},$r("invalid",i);break;case"textarea":ne(i,s),$r("invalid",i)}for(var l in ge(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&$r("scroll",i)}switch(r){case"input":V(i),Q(i,s,!0);break;case"textarea":V(i),oe(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Qr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[co]=t,e[po]=i,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,i),r){case"dialog":$r("cancel",e),$r("close",e),a=i;break;case"iframe":case"object":case"embed":$r("load",e),a=i;break;case"video":case"audio":for(a=0;a<Nr.length;a++)$r(Nr[a],e);a=i;break;case"source":$r("error",e),a=i;break;case"img":case"image":case"link":$r("error",e),$r("load",e),a=i;break;case"details":$r("toggle",e),a=i;break;case"input":G(e,i),a=q(e,i),$r("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=I({},i,{value:void 0}),$r("invalid",e);break;case"textarea":ne(e,i),a=te(e,i),$r("invalid",e)}for(s in ge(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?he(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&ue(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ce(e,c):"number"==typeof c&&ce(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&$r("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":V(e),Q(e,i,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ee(e,!!i.multiple,s,!1):null!=i.defaultValue&&ee(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Qr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=qi(Hi.current),qi(Vi.current),ci(t)){if(i=t.stateNode,r=t.memoizedProps,i[co]=t,(s=i.nodeValue!==r)&&null!==(e=ti))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[co]=t,t.stateNode=i}return Vs(t),null;case 13:if(Eo(Ji),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ri&&null!==ni&&1&t.mode&&!(128&t.flags))di(),pi(),t.flags|=98560,s=!1;else if(s=ci(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[co]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),s=!1}else null!==oi&&(su(oi),oi=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Ji.current?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Yi(),Ps(e,t),null===e&&Br(t.stateNode.containerInfo),Vs(t),null;case 10:return Oi(t.type._context),Vs(t),null;case 19:if(Eo(Ji),null===(s=t.memoizedState))return Vs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Us(s,!1);else{if(0!==Il||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Zi(e))){for(t.flags|=128,Us(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Co(Ji,1&Ji.current|2),t.child}e=e.sibling}null!==s.tail&&Ye()>Ul&&(t.flags|=128,i=!0,Us(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Zi(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Us(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ri)return Vs(t),null}else 2*Ye()-s.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,i=!0,Us(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ye(),t.sibling=null,r=Ji.current,Co(Ji,i?1&r|2:1&r),t):(Vs(t),null);case 22:case 23:return pu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Nl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hs(e,t){switch(ei(t),t.tag){case 1:return Ao(t.type)&&Lo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),Eo(_o),Eo(To),ta(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qi(t),null;case 13:if(Eo(Ji),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(Ji),null;case 4:return Yi(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},As=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qi(Vi.current);var a,s=null;switch(n){case"input":i=q(e,i),r=q(e,r),s=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),s=[];break;case"textarea":i=te(e,i),r=te(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(c in ge(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&$r("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ls=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Gs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cu(e,t,n)}else n.current=null}function Js(e,t,n){try{n()}catch(n){Cu(e,t,n)}}var Zs=!1;function el(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Js(t,n,i)}o=o.next}while(o!==r)}}function tl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function rl(e){var t=e.alternate;null!==t&&(e.alternate=null,rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[co],delete t[po],delete t[ho],delete t[mo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function al(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(al(e,t,n),e=e.sibling;null!==e;)al(e,t,n),e=e.sibling}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}var ll=null,ul=!1;function cl(e,t,n){for(n=n.child;null!==n;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Gs||Qs(n,t);case 6:var r=ll,o=ul;ll=null,cl(e,t,n),ul=o,null!==(ll=r)&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ll.removeChild(n.stateNode));break;case 18:null!==ll&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),Bt(e)):ao(ll,n.stateNode));break;case 4:r=ll,o=ul,ll=n.stateNode.containerInfo,ul=!0,cl(e,t,n),ll=r,ul=o;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Js(n,t,a),o=o.next}while(o!==r)}cl(e,t,n);break;case 1:if(!Gs&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cu(n,t,e)}cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,cl(e,t,n),Gs=r):cl(e,t,n);break;default:cl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach(function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function fl(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ll=l.stateNode,ul=!1;break e;case 3:case 4:ll=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===ll)throw Error(n(160));dl(a,s,i),ll=null,ul=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Cu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}function hl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),ml(e),4&o){try{el(3,e,e.return),tl(3,e)}catch(t){Cu(e,e.return,t)}try{el(5,e,e.return)}catch(t){Cu(e,e.return,t)}}break;case 1:fl(t,e),ml(e),512&o&&null!==r&&Qs(r,r.return);break;case 5:if(fl(t,e),ml(e),512&o&&null!==r&&Qs(r,r.return),32&e.flags){var i=e.stateNode;try{ce(i,"")}catch(t){Cu(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),ve(l,s);var c=ve(l,a);for(s=0;s<u.length;s+=2){var d=u[s],p=u[s+1];"style"===d?he(i,p):"dangerouslySetInnerHTML"===d?ue(i,p):"children"===d?ce(i,p):v(i,d,p,c)}switch(l){case"input":X(i,a);break;case"textarea":re(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ee(i,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ee(i,!!a.multiple,a.defaultValue,!0):ee(i,!!a.multiple,a.multiple?[]:"",!1))}i[po]=a}catch(t){Cu(e,e.return,t)}}break;case 6:if(fl(t,e),ml(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Cu(e,e.return,t)}}break;case 3:if(fl(t,e),ml(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){Cu(e,e.return,t)}break;case 4:default:fl(t,e),ml(e);break;case 13:fl(t,e),ml(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Wl=Ye())),4&o&&pl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Gs=(c=Gs)||d,fl(t,e),Gs=c):fl(t,e),ml(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(p=Xs=d;null!==Xs;){switch(h=(f=Xs).child,f.tag){case 0:case 11:case 14:case 15:el(4,f,f.return);break;case 1:Qs(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cu(o,r,e)}}break;case 5:Qs(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==h?(h.return=f,Xs=h):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(u=p.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=fe("display",s))}catch(t){Cu(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(t){Cu(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fl(t,e),ml(e),4&o&&pl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ol(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ce(i,""),o.flags&=-33),sl(e,il(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;al(e,il(e),a);break;default:throw Error(n(161))}}catch(t){Cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Xs=e,vl(e)}function vl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=qs;var u=Gs;if(qs=a,(Gs=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?kl(o):null!==l?(l.return=a,Xs=l):kl(o);for(;null!==i;)Xs=i,vl(i),i=i.sibling;Xs=o,qs=s,Gs=u}bl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):bl(e)}}function bl(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||tl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Gs)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:es(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Gs||512&t.flags&&nl(t)}catch(e){Cu(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function kl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tl(4,t)}catch(e){Cu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cu(t,o,e)}}var i=t.return;try{nl(t)}catch(e){Cu(t,i,e)}break;case 5:var a=t.return;try{nl(t)}catch(e){Cu(t,a,e)}}}catch(e){Cu(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Sl,Cl=Math.ceil,Ol=y.ReactCurrentDispatcher,Tl=y.ReactCurrentOwner,_l=y.ReactCurrentBatchConfig,Rl=0,Pl=null,Al=null,Ll=0,Nl=0,Ml=So(0),Il=0,Fl=null,$l=0,jl=0,zl=0,Bl=null,Dl=null,Wl=0,Ul=1/0,Vl=null,Kl=!1,Hl=null,ql=null,Gl=!1,Yl=null,Xl=0,Ql=0,Jl=null,Zl=-1,eu=0;function tu(){return 6&Rl?Ye():-1!==Zl?Zl:Zl=Ye()}function nu(e){return 1&e.mode?2&Rl&&0!==Ll?Ll&-Ll:null!==hi.transition?(0===eu&&(eu=ft()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Gt(e.type):1}function ru(e,t,r,o){if(50<Ql)throw Ql=0,Jl=null,Error(n(185));mt(e,r,o),2&Rl&&e===Pl||(e===Pl&&(!(2&Rl)&&(jl|=r),4===Il&&lu(e,Ll)),ou(e,o),1===r&&0===Rl&&!(1&t.mode)&&(Ul=Ye()+500,jo&&Do()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-ot(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=dt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ct(e,e===Pl?Ll:0);if(0===r)null!==n&&He(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&He(n),1===t)0===e.tag?function(e){jo=!0,Bo(e)}(uu.bind(null,e)):Bo(uu.bind(null,e)),oo(function(){!(6&Rl)&&Do()}),n=null;else{switch(yt(r)){case 1:n=Qe;break;case 4:n=Je;break;case 16:default:n=Ze;break;case 536870912:n=tt}n=Pu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zl=-1,eu=0,6&Rl)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var o=ct(e,e===Pl?Ll:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=vu(e,o);else{t=o;var i=Rl;Rl|=2;var a=mu();for(Pl===e&&Ll===t||(Vl=null,Ul=Ye()+500,fu(e,t));;)try{bu();break}catch(t){hu(e,t)}Ci(),Ol.current=a,Rl=i,null!==Al?t=0:(Pl=null,Ll=0,t=Il)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(o=i,t=au(e,i))),1===t)throw r=Fl,fu(e,0),lu(e,o),ou(e,Ye()),r;if(6===t)lu(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ir(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vu(e,o),2===t&&(a=pt(e),0!==a&&(o=a,t=au(e,a))),1!==t)))throw r=Fl,fu(e,0),lu(e,o),ou(e,Ye()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:ku(e,Dl,Vl);break;case 3:if(lu(e,o),(130023424&o)===o&&10<(t=Wl+500-Ye())){if(0!==ct(e,0))break;if(((i=e.suspendedLanes)&o)!==o){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=to(ku.bind(null,e,Dl,Vl),t);break}ku(e,Dl,Vl);break;case 4:if(lu(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-ot(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Ye()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cl(o/1960))-o)){e.timeoutHandle=to(ku.bind(null,e,Dl,Vl),o);break}ku(e,Dl,Vl);break;default:throw Error(n(329))}}}return ou(e,Ye()),e.callbackNode===r?iu.bind(null,e):null}function au(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Dl,Dl=n,null!==t&&su(t)),e}function su(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function lu(e,t){for(t&=~zl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Rl)throw Error(n(327));Su();var t=ct(e,0);if(!(1&t))return ou(e,Ye()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=pt(e);0!==o&&(t=o,r=au(e,o))}if(1===r)throw r=Fl,fu(e,0),lu(e,t),ou(e,Ye()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Dl,Vl),ou(e,Ye()),null}function cu(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Ul=Ye()+500,jo&&Do())}}function du(e){null!==Yl&&0===Yl.tag&&!(6&Rl)&&Su();var t=Rl;Rl|=1;var n=_l.transition,r=vt;try{if(_l.transition=null,vt=1,e)return e()}finally{vt=r,_l.transition=n,!(6&(Rl=t))&&Do()}}function pu(){Nl=Ml.current,Eo(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,no(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(ei(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Lo();break;case 3:Yi(),Eo(_o),Eo(To),ta();break;case 5:Qi(r);break;case 4:Yi();break;case 13:case 19:Eo(Ji);break;case 10:Oi(r.type._context);break;case 22:case 23:pu()}n=n.return}if(Pl=e,Al=e=Mu(e.current,null),Ll=Nl=t,Il=0,Fl=null,zl=jl=$l=0,Dl=Bl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function hu(e,t){for(;;){var r=Al;try{if(Ci(),na.current=Xa,la){for(var o=ia.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}la=!1}if(oa=0,sa=aa=ia=null,ua=!1,ca=0,Tl.current=null,null===r||null===r.return){Il=1,Fl=t,Al=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=hs(s);if(null!==h){h.flags&=-257,ms(h,s,l,0,t),1&h.mode&&fs(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){fs(a,c,t),gu();break e}u=Error(n(426))}else if(ri&&1&l.mode){var v=hs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ms(v,s,l,0,t),fi(ss(u,l));break e}}a=u=ss(u,l),4!==Il&&(Il=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ds(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==ql&&ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}xu(r)}catch(e){t=e,Al===r&&null!==r&&(Al=r=r.return);continue}break}}function mu(){var e=Ol.current;return Ol.current=Xa,null===e?Xa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||!(268435455&$l)&&!(268435455&jl)||lu(Pl,Ll)}function vu(e,t){var r=Rl;Rl|=2;var o=mu();for(Pl===e&&Ll===t||(Vl=null,fu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(Ci(),Rl=r,Ol.current=o,null!==Al)throw Error(n(261));return Pl=null,Ll=0,Il}function yu(){for(;null!==Al;)wu(Al)}function bu(){for(;null!==Al&&!qe();)wu(Al)}function wu(e){var t=Sl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xu(e):Al=t,Tl.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hs(n,t)))return n.flags&=32767,void(Al=n);if(null===e)return Il=6,void(Al=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Nl)))return void(Al=n);if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Il&&(Il=5)}function ku(e,t,r){var o=vt,i=_l.transition;try{_l.transition=null,vt=1,function(e,t,r,o){do{Su()}while(null!==Yl);if(6&Rl)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-ot(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pl&&(Al=Pl=null,Ll=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Gl||(Gl=!0,Pu(Ze,function(){return Su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=vt;vt=1;var l=Rl;Rl|=4,Tl.current=null,function(e,t){if(Jr=Wt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==i&&3!==p.nodeType||(l=s+i),p!==a||0!==o&&3!==p.nodeType||(u=s+o),3===p.nodeType&&(s+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++c===i&&(l=s),f===a&&++d===o&&(u=s),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},Wt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:es(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){Cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=Zs,Zs=!1}(e,r),hl(r,e),pr(Zr),Wt=!!Jr,Zr=Jr=null,e.current=r,gl(r),Ge(),Rl=l,vt=s,_l.transition=a}else e.current=r;if(Gl&&(Gl=!1,Yl=e,Xl=i),a=e.pendingLanes,0===a&&(ql=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ou(e,Ye()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Kl)throw Kl=!1,e=Hl,Hl=null,e;!!(1&Xl)&&0!==e.tag&&Su(),a=e.pendingLanes,1&a?e===Jl?Ql++:(Ql=0,Jl=e):Ql=0,Do()}(e,t,r,o)}finally{_l.transition=i,vt=o}return null}function Su(){if(null!==Yl){var e=yt(Xl),t=_l.transition,r=vt;try{if(_l.transition=null,vt=16>e?16:e,null===Yl)var o=!1;else{if(e=Yl,Yl=null,Xl=0,6&Rl)throw Error(n(331));var i=Rl;for(Rl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:el(8,d,a)}var p=d.child;if(null!==p)p.return=d,Xs=p;else for(;null!==Xs;){var f=(d=Xs).sibling,h=d.return;if(rl(d),d===c){Xs=null;break}if(null!==f){f.return=h,Xs=f;break}Xs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:el(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:tl(9,l)}}catch(e){Cu(l,l.return,e)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Rl=i,Do(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}o=!0}return o}finally{vt=r,_l.transition=t}}return!1}function Eu(e,t,n){e=ji(e,t=ds(0,t=ss(n,t),1),1),t=tu(),null!==e&&(mt(e,1,t),ou(e,t))}function Cu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=ji(t,e=ps(t,e=ss(n,e),1),1),e=tu(),null!==t&&(mt(t,1,e),ou(t,e));break}}t=t.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Ll&n)===n&&(4===Il||3===Il&&(130023424&Ll)===Ll&&500>Ye()-Wl?fu(e,0):zl|=n),ou(e,t)}function Tu(e,t){0===t&&(1&e.mode?(t=lt,!(130023424&(lt<<=1))&&(lt=4194304)):t=1);var n=tu();null!==(e=Ni(e,t))&&(mt(e,t,n),ou(e,n))}function _u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tu(e,n)}function Ru(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Tu(e,r)}function Pu(e,t){return Ke(e,t)}function Au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,r){return new Au(e,t,n,r)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Lu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Nu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Fu(r.children,i,a,t);case k:s=8,i|=8;break;case S:return(e=Lu(12,r,t,2|i)).elementType=S,e.lanes=a,e;case T:return(e=Lu(13,r,t,i)).elementType=T,e.lanes=a,e;case _:return(e=Lu(19,r,t,i)).elementType=_,e.lanes=a,e;case A:return $u(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case C:s=9;break e;case O:s=11;break e;case R:s=14;break e;case P:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Lu(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Fu(e,t,n,r){return(e=Lu(7,e,r,t)).lanes=n,e}function $u(e,t,n,r){return(e=Lu(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,o,i,a,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Lu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function Wu(e){if(!e)return Oo;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ao(r))return Mo(e,r,t)}return t}function Uu(e,t,n,r,o,i,a,s,l){return(e=Du(n,r,!0,e,0,i,0,s,l)).context=Wu(null),n=e.current,(i=$i(r=tu(),o=nu(n))).callback=null!=t?t:null,ji(n,i,o),e.current.lanes=o,mt(e,o,r),ou(e,r),e}function Vu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=$i(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ji(o,t,a))&&(ru(e,o,a,i),zi(e,o,a)),a}function Ku(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}Sl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.current)vs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return vs=!1,function(e,t,n){switch(t.tag){case 3:Ts(t),pi();break;case 5:Xi(t);break;case 1:Ao(t.type)&&Io(t);break;case 4:Gi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(Ji,1&Ji.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Is(e,t,n):(Co(Ji,1&Ji.current),null!==(e=Ws(e,t,n))?e.sibling:null);Co(Ji,1&Ji.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(Ji,Ji.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return Ws(e,t,n)}(e,t,r);vs=!!(131072&e.flags)}else vs=!1,ri&&1048576&t.flags&&Jo(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ds(e,t),e=t.pendingProps;var i=Po(t,To.current);_i(t,r),i=ha(null,t,o,e,i,r);var a=ma();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(o)?(a=!0,Io(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ii(t),i.updater=ns,t.stateNode=i,i._reactInternals=t,as(t,o,e,r),t=Os(null,t,o,!0,a,r)):(t.tag=0,ri&&a&&Zo(t),ys(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ds(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Nu(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===R)return 14}return 2}(o),e=es(o,e),i){case 0:t=Es(null,t,o,e,r);break e;case 1:t=Cs(null,t,o,e,r);break e;case 11:t=bs(null,t,o,e,r);break e;case 14:t=ws(null,t,o,es(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Es(e,t,o,i=t.elementType===o?i:es(o,i),r);case 1:return o=t.type,i=t.pendingProps,Cs(e,t,o,i=t.elementType===o?i:es(o,i),r);case 3:e:{if(Ts(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Fi(e,t),Di(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=_s(e,t,o,r,i=ss(Error(n(423)),t));break e}if(o!==i){t=_s(e,t,o,r,i=ss(Error(n(424)),t));break e}for(ni=so(t.stateNode.containerInfo.firstChild),ti=t,ri=!0,oi=null,r=wi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pi(),o===i){t=Ws(e,t,r);break e}ys(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&li(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,eo(o,i)?s=null:null!==a&&eo(o,a)&&(t.flags|=32),Ss(e,t),ys(e,t,s,r),t.child;case 6:return null===e&&li(t),null;case 13:return Is(e,t,r);case 4:return Gi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=bi(t,null,o,r):ys(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,bs(e,t,o,i=t.elementType===o?i:es(o,i),r);case 7:return ys(e,t,t.pendingProps,r),t.child;case 8:case 12:return ys(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Co(xi,o._currentValue),o._currentValue=s,null!==a)if(ir(a.value,s)){if(a.children===i.children&&!_o.current){t=Ws(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=$i(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Ti(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Ti(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ys(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,_i(t,r),o=o(i=Ri(i)),t.flags|=1,ys(e,t,o,r),t.child;case 14:return i=es(o=t.type,t.pendingProps),ws(e,t,o,i=es(o.type,i),r);case 15:return xs(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:es(o,i),Ds(e,t),t.tag=1,Ao(o)?(e=!0,Io(t)):e=!1,_i(t,r),os(t,o,i),as(t,o,i,r),Os(null,t,o,!0,e,r);case 19:return Bs(e,t,r);case 22:return ks(e,t,r)}throw Error(n(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Ku(a);s.call(e)}}Vu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ku(a);i.call(e)}}var a=Uu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[fo]=a.current,Br(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Ku(l);s.call(e)}}var l=Du(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fo]=l.current,Br(8===e.nodeType?e.parentNode:e),du(function(){Vu(t,l,n,r)}),l}(n,t,e,o,r);return Ku(a)}Xu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Xu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Vu(null,e,null,null)}),t[fo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&It(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(gt(t,1|n),ou(t,Ye()),!(6&Rl)&&(Ul=Ye()+500,Do()))}break;case 13:du(function(){var t=Ni(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),qu(e,1)}},wt=function(e){if(13===e.tag){var t=Ni(e,134217728);if(null!==t)ru(t,e,134217728,tu());qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=Ni(e,t);if(null!==n)ru(n,e,t,tu());qu(e,t)}},kt=function(){return vt},St=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},we=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=wo(o);if(!i)throw Error(n(90));K(o),X(o,i)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Oe=cu,Te=du;var tc={usingClientEntryPoint:!1,Events:[yo,bo,wo,Ee,Ce,cu]},nc={findFiberByHostInstance:vo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{nt=oc.inject(rc),rt=oc}catch(le){}}return xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,xl.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},xl.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=Gu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Du(e,1,!1,null,0,r,0,o,i),e[fo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Yu(t)},xl.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},xl.flushSync=function(e){return du(e)},xl.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!0,r)},xl.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Gu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,i,0,a,s),e[fo]=t.current,Br(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Xu(t)},xl.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return ec(null,e,t,!1,r)},xl.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[fo]=null})}),!0)},xl.unstable_batchedUpdates=cu,xl.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,o)},xl.version="18.3.1-next-f1338f8080-20240426",xl}var Ol=(bl||(bl=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),wl.exports=Cl()),wl.exports),Tl=t(Ol);function _l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout(function(){e.apply(a,o)},n)}return r.clear=function(){clearTimeout(t)},r}function Rl(e){return ml(e).defaultView||window}function Pl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}},function(){})}function Al(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ll(e,t){return l.useMemo(function(){return null==e&&null==t?null:function(n){Al(e,n),Al(t,n)}},[e,t])}var Nl="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,Ml=l.forwardRef(function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=l.useState(null),u=s[0],c=s[1],d=Ll(l.isValidElement(n)?n.ref:null,t);return Nl(function(){i||c(function(e){return e="function"==typeof e?e():e,Ol.findDOMNode(e)}(r)||document.body)},[r,i]),Nl(function(){if(u&&!i)return Al(t,u),function(){Al(t,null)}},[t,u,i]),Nl(function(){a&&(u||i)&&a()},[a,u,i]),i?l.isValidElement(n)?l.cloneElement(n,{ref:d}):n:u?Ol.createPortal(n,u):u}),Il="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function Fl(e){var t=l.useRef(e);return Il(function(){t.current=e}),l.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function $l(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function jl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zl(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Bl(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(xt(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&jl(e,r)})}function Dl(e,t){var n=-1;return e.some(function(e,r){return!!t(e)&&(n=r,!0)}),n}function Wl(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=ml(e);return t.body===e?Rl(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=$l();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(zl(i)+a,"px"),n=ml(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(zl(e)+a,"px")})}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")}),r.forEach(function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)})}}var Ul=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return A(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&jl(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Bl(t,e.mountNode,e.modalRef,r,!0);var o=Dl(this.containers,function(e){return e.container===t});return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Dl(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];r.restore||(r.restore=Wl(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Dl(this.containers,function(t){return-1!==t.modals.indexOf(e)}),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&jl(e.modalRef,!0),Bl(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&jl(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Vl(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,u=e.getDoc,c=e.isEnabled,d=e.open,p=l.useRef(),f=l.useRef(null),h=l.useRef(null),m=l.useRef(),g=l.useRef(null),v=l.useCallback(function(e){g.current=Ol.findDOMNode(e)},[]),y=Ll(t.ref,v),b=l.useRef();return l.useEffect(function(){b.current=d},[d]),!b.current&&d&&"undefined"!=typeof window&&(m.current=u().activeElement),l.useEffect(function(){if(d){var e=ml(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!i&&c()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval(function(){t()},50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}},[r,i,s,c,d]),l.createElement(l.Fragment,null,l.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),l.cloneElement(t,{ref:y}),l.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var Kl={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Hl=l.forwardRef(function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=p(e,["invisible","open"]);return o?l.createElement("div",f({"aria-hidden":!0,ref:t},i,{style:f({},Kl.root,r?Kl.invisible:{},i.style)})):null});var ql=new Ul,Gl=l.forwardRef(function(e,t){var n=On(),r=_({name:"MuiModal",props:f({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Hl:o,a=r.BackdropProps,s=r.children,u=r.closeAfterTransition,c=void 0!==u&&u,d=r.container,h=r.disableAutoFocus,m=void 0!==h&&h,g=r.disableBackdropClick,v=void 0!==g&&g,y=r.disableEnforceFocus,b=void 0!==y&&y,w=r.disableEscapeKeyDown,x=void 0!==w&&w,k=r.disablePortal,S=void 0!==k&&k,E=r.disableRestoreFocus,C=void 0!==E&&E,O=r.disableScrollLock,T=void 0!==O&&O,R=r.hideBackdrop,P=void 0!==R&&R,A=r.keepMounted,L=void 0!==A&&A,N=r.manager,M=void 0===N?ql:N,I=r.onBackdropClick,F=r.onClose,$=r.onEscapeKeyDown,j=r.onRendered,z=r.open,B=p(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),D=l.useState(!0),W=D[0],U=D[1],V=l.useRef({}),K=l.useRef(null),H=l.useRef(null),q=Ll(H,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return ml(K.current)},X=function(){return V.current.modalRef=H.current,V.current.mountNode=K.current,V.current},Q=function(){M.mount(X(),{disableScrollLock:T}),H.current.scrollTop=0},J=Fl(function(){var e=function(e){return e="function"==typeof e?e():e,Ol.findDOMNode(e)}(d)||Y().body;M.add(X(),e),H.current&&Q()}),Z=l.useCallback(function(){return M.isTopModal(X())},[M]),ee=Fl(function(e){K.current=e,e&&(j&&j(),z&&Z()?Q():jl(H.current,!0))}),te=l.useCallback(function(){M.remove(X())},[M]);if(l.useEffect(function(){return function(){te()}},[te]),l.useEffect(function(){z?J():G&&c||te()},[z,te,G,c,J]),!L&&!z&&(!G||W))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:vo}),re={};return void 0===s.props.tabIndex&&(re.tabIndex=s.props.tabIndex||"-1"),G&&(re.onEnter=Pl(function(){U(!1)},s.props.onEnter),re.onExited=Pl(function(){U(!0),c&&te()},s.props.onExited)),l.createElement(Ml,{ref:ee,container:d,disablePortal:S},l.createElement("div",f({ref:q,onKeyDown:function(e){"Escape"===e.key&&Z()&&($&&$(e),x||(e.stopPropagation(),F&&F(e,"escapeKeyDown")))},role:"presentation"},B,{style:f({},ne.root,!z&&W?ne.hidden:{},B.style)}),P?null:l.createElement(i,f({open:z,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),!v&&F&&F(e,"backdropClick"))}},a)),l.createElement(Vl,{disableEnforceFocus:b,disableAutoFocus:m,disableRestoreFocus:C,getDoc:Y,isEnabled:Z,open:z},l.cloneElement(s,re))))}),Yl=!1,Xl=u.createContext(null),Ql="unmounted",Jl="exited",Zl="entering",eu="entered",tu="exiting",nu=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Jl,r.appearStatus=Zl):o=eu:o=t.unmountOnExit||t.mountOnEnter?Ql:Jl,r.state={status:o},r.nextCallback=null,r}N(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ql?{status:Jl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Zl&&n!==eu&&(t=Zl):n!==Zl&&n!==eu||(t=tu)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Tl.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jl&&this.setState({status:Ql})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Tl.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Yl?this.safeSetState({status:eu},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Zl},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:eu},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Tl.findDOMNode(this);t&&!Yl?(this.props.onExit(r),this.safeSetState({status:tu},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Jl},function(){e.props.onExited(r)})})})):this.safeSetState({status:Jl},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Tl.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ql)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=d(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(Xl.Provider,{value:null},"function"==typeof n?n(e,r):u.cloneElement(u.Children.only(n),r))},t}(u.Component);function ru(){}function ou(e,t){var n=Object.create(null);return e&&l.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&l.isValidElement(e)?t(e):e}(e)}),n}function iu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function au(e,t,n){var r=ou(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(l.isValidElement(a)){var s=i in t,u=i in r,c=t[i],d=l.isValidElement(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&l.isValidElement(c)&&(o[i]=l.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:iu(a,"exit",e),enter:iu(a,"enter",e)})):o[i]=l.cloneElement(a,{in:!1}):o[i]=l.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:iu(a,"exit",e),enter:iu(a,"enter",e)})}}),o}nu.contextType=Xl,nu.propTypes={},nu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ru,onEntering:ru,onEntered:ru,onExit:ru,onExiting:ru,onExited:ru},nu.UNMOUNTED=Ql,nu.EXITED=Jl,nu.ENTERING=Zl,nu.ENTERED=eu,nu.EXITING=tu;var su=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},lu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(M(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}N(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,ou(n.children,function(e){return l.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:iu(e,"appear",n),enter:iu(e,"enter",n),exit:iu(e,"exit",n)})})):au(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=ou(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=f({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=d(e,["component","childFactory"]),o=this.state.contextValue,i=su(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?u.createElement(Xl.Provider,{value:o},i):u.createElement(Xl.Provider,{value:o},u.createElement(t,r,i))},t}(u.Component);lu.propTypes={},lu.defaultProps={component:"div",childFactory:function(e){return e}};function uu(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function cu(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var du={entering:{opacity:1,transform:cu(1)},entered:{opacity:1,transform:"none"}},pu=l.forwardRef(function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,d=e.onExited,h=e.onExiting,m=e.style,g=e.timeout,v=void 0===g?"auto":g,y=e.TransitionComponent,b=void 0===y?nu:y,w=p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=l.useRef(),k=l.useRef(),S=Eo(),E=S.unstable_strictMode&&!o,C=l.useRef(null),O=Ll(n.ref,t),T=Ll(E?C:void 0,O),_=function(e){return function(t,n){if(e){var r=no(E?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=_(u),P=_(function(e,t){!function(e){e.scrollTop}(e);var n,r=uu({style:m,timeout:v},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===v?(n=S.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)}),A=_(s),L=_(h),N=_(function(e){var t,n=uu({style:m,timeout:v},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===v?(t=S.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=cu(.75),c&&c(e)}),M=_(d);return l.useEffect(function(){return function(){clearTimeout(x.current)}},[]),l.createElement(b,f({appear:!0,in:i,nodeRef:E?C:void 0,onEnter:P,onEntered:A,onEntering:R,onExit:N,onExited:M,onExiting:L,addEndListener:function(e,t){var n=E?e:t;"auto"===v&&(x.current=setTimeout(n,k.current||0))},timeout:"auto"===v?null:v},w),function(e,t){return l.cloneElement(n,f({style:f({opacity:0,transform:cu(.75),visibility:"exited"!==e||i?void 0:"hidden"},du[e],m,n.props.style),ref:T},t))})});function fu(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hu(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function mu(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function gu(e){return"function"==typeof e?e():e}pu.muiSupportAuto=!0;var vu=l.forwardRef(function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,u=void 0===s?"anchorEl":s,c=e.children,d=e.classes,h=e.className,g=e.container,v=e.elevation,y=void 0===v?8:v,b=e.getContentAnchorEl,w=e.marginThreshold,x=void 0===w?16:w,k=e.onEnter,S=e.onEntered,E=e.onEntering,C=e.onExit,O=e.onExited,T=e.onExiting,_=e.open,R=e.PaperProps,P=void 0===R?{}:R,A=e.transformOrigin,L=void 0===A?{vertical:"top",horizontal:"left"}:A,N=e.TransitionComponent,M=void 0===N?pu:N,I=e.transitionDuration,F=void 0===I?"auto":I,$=e.TransitionProps,j=void 0===$?{}:$,z=p(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),B=l.useRef(),D=l.useCallback(function(e){if("anchorPosition"===u)return a;var t=gu(r),n=(t&&1===t.nodeType?t:ml(B.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+fu(n,o),left:n.left+hu(n,i.horizontal)}},[r,i.horizontal,i.vertical,a,u]),W=l.useCallback(function(e){var t=0;if(b&&"anchorEl"===u){var n=b(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t},[i.vertical,u,b]),U=l.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:fu(e,L.vertical)+t,horizontal:hu(e,L.horizontal)}},[L.horizontal,L.vertical]),V=l.useCallback(function(e){var t=W(e),n={width:e.offsetWidth,height:e.offsetHeight},o=U(n,t);if("none"===u)return{top:null,left:null,transformOrigin:mu(o)};var i=D(t),a=i.top-o.vertical,s=i.left-o.horizontal,l=a+n.height,c=s+n.width,d=Rl(gu(r)),p=d.innerHeight-x,f=d.innerWidth-x;if(a<x){var h=a-x;a-=h,o.vertical+=h}else if(l>p){var m=l-p;a-=m,o.vertical+=m}if(s<x){var g=s-x;s-=g,o.horizontal+=g}else if(c>f){var v=c-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:mu(o)}},[r,u,D,W,U,x]),K=l.useCallback(function(){var e=B.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[V]),H=l.useCallback(function(e){B.current=Ol.findDOMNode(e)},[]);l.useEffect(function(){_&&K()}),l.useImperativeHandle(n,function(){return _?{updatePosition:function(){K()}}:null},[_,K]),l.useEffect(function(){if(_){var e=_l(function(){K()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[_,K]);var q=F;"auto"!==F||M.muiSupportAuto||(q=void 0);var G=g||(r?ml(gu(r)).body:void 0);return l.createElement(Gl,f({container:G,open:_,ref:t,BackdropProps:{invisible:!0},className:m(d.root,h)},z),l.createElement(M,f({appear:!0,in:_,onEnter:k,onEntered:S,onExit:C,onExited:O,onExiting:T,timeout:q},j,{onEntering:Pl(function(e,t){E&&E(e,t),K()},j.onEntering)}),l.createElement(xo,f({elevation:y,ref:H},P,{className:m(d.paper,P.className)}),c)))}),yu=bo({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(vu),bu=l.createContext({}),wu=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,u=void 0!==s&&s,c=e.disablePadding,d=void 0!==c&&c,h=e.subheader,g=p(e,["children","classes","className","component","dense","disablePadding","subheader"]),v=l.useMemo(function(){return{dense:u}},[u]);return l.createElement(bu.Provider,{value:v},l.createElement(a,f({className:m(r.root,o,u&&r.dense,!d&&r.padding,h&&r.subheader),ref:t},g),h,n))}),xu=bo({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(wu);function ku(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Su(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Eu(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Cu(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Eu(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var Ou="undefined"==typeof window?l.useEffect:l.useLayoutEffect,Tu=l.forwardRef(function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,s=e.children,u=e.className,c=e.disabledItemsFocusable,d=void 0!==c&&c,h=e.disableListWrap,m=void 0!==h&&h,g=e.onKeyDown,v=e.variant,y=void 0===v?"selectedMenu":v,b=p(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=l.useRef(null),x=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ou(function(){o&&w.current.focus()},[o]),l.useImperativeHandle(n,function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat($l(),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}},[]);var k=Ll(l.useCallback(function(e){w.current=Ol.findDOMNode(e)},[]),t),S=-1;l.Children.forEach(s,function(e,t){l.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===S)&&(S=t))});var E=l.Children.map(s,function(e,t){if(t===S){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),l.cloneElement(e,n)}return e});return l.createElement(xu,f({role:"menu",ref:k,className:u,onKeyDown:function(e){var t=w.current,n=e.key,r=ml(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Cu(t,r,m,d,ku);else if("ArrowUp"===n)e.preventDefault(),Cu(t,r,m,d,Su);else if("Home"===n)e.preventDefault(),Cu(t,null,m,d,ku);else if("End"===n)e.preventDefault(),Cu(t,null,m,d,Su);else if(1===n.length){var o=x.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&Eu(r,o);o.previousKeyMatched&&(s||Cu(t,r,!1,d,ku,o))?e.preventDefault():o.previousKeyMatched=!1}g&&g(e)},tabIndex:o?0:-1},b),E)}),_u={vertical:"top",horizontal:"right"},Ru={vertical:"top",horizontal:"left"},Pu=l.forwardRef(function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,a=e.disableAutoFocusItem,s=void 0!==a&&a,u=e.MenuListProps,c=void 0===u?{}:u,d=e.onClose,h=e.onEntering,g=e.open,v=e.PaperProps,y=void 0===v?{}:v,b=e.PopoverClasses,w=e.transitionDuration,x=void 0===w?"auto":w,k=e.TransitionProps,S=(k=void 0===k?{}:k).onEntering,E=p(k,["onEntering"]),C=e.variant,O=void 0===C?"selectedMenu":C,T=p(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),_=Eo(),R=r&&!s&&g,P=l.useRef(null),A=l.useRef(null),L=-1;l.Children.map(o,function(e,t){l.isValidElement(e)&&(e.props.disabled||("menu"!==O&&e.props.selected||-1===L)&&(L=t))});var N=l.Children.map(o,function(e,t){return t===L?l.cloneElement(e,{ref:function(t){A.current=Ol.findDOMNode(t),Al(e.ref,t)}}):e});return l.createElement(yu,f({getContentAnchorEl:function(){return A.current},classes:b,onClose:d,TransitionProps:f({onEntering:function(e,t){P.current&&P.current.adjustStyleForScrollbar(e,_),h&&h(e,t),S&&S(e,t)}},E),anchorOrigin:"rtl"===_.direction?_u:Ru,transformOrigin:"rtl"===_.direction?_u:Ru,PaperProps:f({},y,{classes:f({},y.classes,{root:i.paper})}),open:g,ref:t,transitionDuration:x},T),l.createElement(Tu,f({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:P,autoFocus:r&&(-1===L||s),autoFocusItem:R,variant:O},c,{className:m(i.list,c.className)}),N))}),Au=bo({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Pu);function Lu(e,t){return"object"===g(t)&&null!==t?e===t:String(e)===String(t)}var Nu=l.forwardRef(function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,i=e.children,a=e.classes,s=e.className,u=e.defaultValue,c=e.disabled,d=e.displayEmpty,h=e.IconComponent,g=e.inputRef,v=e.labelId,y=e.MenuProps,b=void 0===y?{}:y,w=e.multiple,k=e.name,S=e.onBlur,E=e.onChange,C=e.onClose,O=e.onFocus,T=e.onOpen,_=e.open,R=e.readOnly,P=e.renderValue,A=e.SelectDisplayProps,L=void 0===A?{}:A,N=e.tabIndex;e.type;var M=e.value,I=e.variant,F=void 0===I?"standard":I,$=p(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),j=function(e){var t=e.controlled,n=e.default,r=l.useRef(void 0!==t).current,o=l.useState(n),i=o[0],a=o[1];return[r?t:i,l.useCallback(function(e){r||a(e)},[])]}({controlled:M,default:u}),z=no(j,2),B=z[0],D=z[1],W=l.useRef(null),U=l.useState(null),V=U[0],K=U[1],H=l.useRef(null!=_).current,q=l.useState(),G=q[0],Y=q[1],X=l.useState(!1),Q=X[0],J=X[1],Z=Ll(t,g);l.useImperativeHandle(Z,function(){return{focus:function(){V.focus()},node:W.current,value:B}},[V,B]),l.useEffect(function(){r&&V&&V.focus()},[r,V]),l.useEffect(function(){if(V){var e=ml(V).getElementById(v);if(e){var t=function(){getSelection().isCollapsed&&V.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[v,V]);var ee,te,ne=function(e,t){e?T&&T(t):C&&C(t),H||(Y(o?null:V.clientWidth),J(e))},re=l.Children.toArray(i),oe=function(e){return function(t){var n;if(w||ne(!1,t),w){n=Array.isArray(B)?B.slice():[];var r=B.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),B!==n&&(D(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:k}}),E(t,e)))}},ie=null!==V&&(H?_:Q);delete $["aria-invalid"];var ae=[],se=!1;(ul({value:B})||d)&&(P?ee=P(B):se=!0);var le=re.map(function(e){if(!l.isValidElement(e))return null;var t;if(w){if(!Array.isArray(B))throw new Error(x(2));(t=B.some(function(t){return Lu(t,e.props.value)}))&&se&&ae.push(e.props.children)}else(t=Lu(B,e.props.value))&&se&&(te=e.props.children);return l.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:oe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});se&&(ee=w?ae.join(", "):te);var ue,ce=G;!o&&H&&V&&(ce=V.clientWidth),ue=void 0!==N?N:c?null:0;var de=L.id||(k?"mui-component-select-".concat(k):void 0);return l.createElement(l.Fragment,null,l.createElement("div",f({className:m(a.root,a.select,a.selectMenu,a[F],s,c&&a.disabled),ref:K,tabIndex:ue,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":ie?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[v,de].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:c||R?null:function(e){0===e.button&&(e.preventDefault(),V.focus(),ne(!0,e))},onBlur:function(e){!ie&&S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:k}}),S(e))},onFocus:O},L,{id:de}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ee)?l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ee),l.createElement("input",f({value:Array.isArray(B)?B.join(","):B,name:k,ref:W,"aria-hidden":!0,onChange:function(e){var t=re.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var n=re[t];D(n.props.value),E&&E(e,n)}},tabIndex:-1,className:a.nativeInput,autoFocus:r},$)),l.createElement(h,{className:m(a.icon,a["icon".concat(Co(F))],ie&&a.iconOpen,c&&a.disabled)}),l.createElement(Au,f({id:"menu-".concat(k||""),anchorEl:V,open:ie,onClose:function(e){ne(!1,e)}},b,{MenuListProps:f({"aria-labelledby":v,role:"listbox",disableListWrap:!0},b.MenuListProps),PaperProps:f({},b.PaperProps,{style:f({minWidth:ce},null!=b.PaperProps?b.PaperProps.style:null)})}),le))});function Mu(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce(function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e},{})}var Iu=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,s=e.component,u=void 0===s?"svg":s,c=e.fontSize,d=void 0===c?"medium":c,h=e.htmlColor,g=e.titleAccess,v=e.viewBox,y=void 0===v?"0 0 24 24":v,b=p(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return l.createElement(u,f({className:m(r.root,o,"inherit"!==a&&r["color".concat(Co(a))],"default"!==d&&"medium"!==d&&r["fontSize".concat(Co(d))]),focusable:"false",viewBox:y,color:h,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},b),n,g?l.createElement("title",null,g):null)});Iu.muiName="SvgIcon";var Fu=bo(function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},{name:"MuiSvgIcon"})(Iu);var $u,ju,zu=($u=l.createElement("path",{d:"M7 10l5 5 5-5z"}),(ju=function(e,t){return u.createElement(Fu,f({ref:t},e),$u)}).muiName=Fu.muiName,u.memo(u.forwardRef(ju)));function Bu(e,t){return parseInt(e[t],10)||0}var Du="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,Wu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Uu=l.forwardRef(function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=e.maxRows,s=e.minRows,u=void 0===s?1:s,c=e.style,d=e.value,h=p(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),m=a||o,g=r||i||u,v=l.useRef(null!=d).current,y=l.useRef(null),b=Ll(t,y),w=l.useRef(null),x=l.useRef(0),k=l.useState({}),S=k[0],E=k[1],C=l.useCallback(function(){var t=y.current,n=window.getComputedStyle(t),r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=Bu(n,"padding-bottom")+Bu(n,"padding-top"),a=Bu(n,"border-bottom-width")+Bu(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,u=s;g&&(u=Math.max(Number(g)*l,u)),m&&(u=Math.min(Number(m)*l,u));var c=(u=Math.max(u,l))+("border-box"===o?i+a:0),d=Math.abs(u-s)<=1;E(function(e){return x.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:c}):e})},[m,g,e.placeholder]);l.useEffect(function(){var e=_l(function(){x.current=0,C()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[C]),Du(function(){C()}),l.useEffect(function(){x.current=0},[d]);return l.createElement(l.Fragment,null,l.createElement("textarea",f({value:d,onChange:function(e){x.current=0,v||C(),n&&n(e)},ref:b,rows:g,style:f({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},c)},h)),l.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:f({},Wu,c)}))}),Vu="undefined"==typeof window?l.useEffect:l.useLayoutEffect,Ku=l.forwardRef(function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var s=e.defaultValue,u=e.disabled,c=e.endAdornment;e.error;var d=e.fullWidth,h=void 0!==d&&d,g=e.id,v=e.inputComponent,y=void 0===v?"input":v,b=e.inputProps,w=void 0===b?{}:b,k=e.inputRef;e.margin;var S=e.multiline,E=void 0!==S&&S,C=e.name,O=e.onBlur,T=e.onChange,_=e.onClick,R=e.onFocus,P=e.onKeyDown,A=e.onKeyUp,L=e.placeholder,N=e.readOnly,M=e.renderSuffix,I=e.rows,F=e.rowsMax,$=e.rowsMin,j=e.maxRows,z=e.minRows,B=e.startAdornment,D=e.type,W=void 0===D?"text":D,U=e.value,V=p(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),K=null!=w.value?w.value:U,H=l.useRef(null!=K).current,q=l.useRef(),G=l.useCallback(function(e){},[]),Y=Ll(w.ref,G),X=Ll(k,Y),Q=Ll(q,X),J=l.useState(!1),Z=J[0],ee=J[1],te=l.useContext(dl),ne=Mu({props:e,muiFormControl:te,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ne.focused=te?te.focused:Z,l.useEffect(function(){!te&&u&&Z&&(ee(!1),O&&O())},[te,u,Z,O]);var re=te&&te.onFilled,oe=te&&te.onEmpty,ie=l.useCallback(function(e){ul(e)?re&&re():oe&&oe()},[re,oe]);Vu(function(){H&&ie({value:K})},[K,ie,H]);l.useEffect(function(){ie(q.current)},[]);var ae=y,se=f({},w,{ref:Q});"string"!=typeof ae?se=f({inputRef:Q,type:W},se,{ref:null}):E?!I||j||z||F||$?(se=f({minRows:I||z,rowsMax:F,maxRows:j},se),ae=Uu):ae="textarea":se=f({type:W},se);return l.useEffect(function(){te&&te.setAdornedStart(Boolean(B))},[te,B]),l.createElement("div",f({className:m(i.root,i["color".concat(Co(ne.color||"primary"))],a,ne.disabled&&i.disabled,ne.error&&i.error,h&&i.fullWidth,ne.focused&&i.focused,te&&i.formControl,E&&i.multiline,B&&i.adornedStart,c&&i.adornedEnd,"dense"===ne.margin&&i.marginDense),onClick:function(e){q.current&&e.currentTarget===e.target&&q.current.focus(),_&&_(e)},ref:t},V),B,l.createElement(dl.Provider,{value:null},l.createElement(ae,f({"aria-invalid":ne.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:s,disabled:ne.disabled,id:g,onAnimationStart:function(e){ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:C,placeholder:L,readOnly:N,required:ne.required,rows:I,value:K,onKeyDown:P,onKeyUp:A},se,{className:m(i.input,w.className,ne.disabled&&i.disabled,E&&i.inputMultiline,ne.hiddenLabel&&i.inputHiddenLabel,B&&i.inputAdornedStart,c&&i.inputAdornedEnd,"search"===W&&i.inputTypeSearch,"dense"===ne.margin&&i.inputMarginDense),onBlur:function(e){O&&O(e),w.onBlur&&w.onBlur(e),te&&te.onBlur?te.onBlur(e):ee(!1)},onChange:function(e){if(!H){var t=e.target||q.current;if(null==t)throw new Error(x(1));ie({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];w.onChange&&w.onChange.apply(w,[e].concat(r)),T&&T.apply(void 0,[e].concat(r))},onFocus:function(e){ne.disabled?e.stopPropagation():(R&&R(e),w.onFocus&&w.onFocus(e),te&&te.onFocus?te.onFocus(e):ee(!0))}}))),c,M?M(f({},ne,{startAdornment:B})):null)}),Hu=bo(function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:f({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},{name:"MuiInputBase"})(Ku),qu=l.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,h=void 0===d?"text":d,g=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return l.createElement(Hu,f({classes:f({},r,{root:m(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:h},g))});qu.muiName="Input";var Gu=bo(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},{name:"MuiInput"})(qu),Yu=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,a=e.inputRef,s=e.variant,u=void 0===s?"standard":s,c=p(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return l.createElement(l.Fragment,null,l.createElement("select",f({className:m(n.root,n.select,n[u],r,o&&n.disabled),disabled:o,ref:a||t},c)),e.multiple?null:l.createElement(i,{className:m(n.icon,n["icon".concat(Co(u))],o&&n.disabled)}))}),Xu=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Qu=l.createElement(Gu,null),Ju=l.forwardRef(function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?zu:o,a=e.input,s=void 0===a?Qu:a,u=e.inputProps;e.variant;var c=p(e,["children","classes","IconComponent","input","inputProps","variant"]),d=Mu({props:e,muiFormControl:hl(),states:["variant"]});return l.cloneElement(s,f({inputComponent:Yu,inputProps:f({children:n,classes:r,IconComponent:i,variant:d.variant,type:void 0},u,s?s.props.inputProps:{}),ref:t},c))});Ju.muiName="Select",bo(Xu,{name:"MuiNativeSelect"})(Ju);var Zu=l.forwardRef(function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,s=void 0===a?"input":a,u=e.multiline,c=void 0!==u&&u,d=e.type,h=void 0===d?"text":d,g=p(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return l.createElement(Hu,f({classes:f({},r,{root:m(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:c,ref:t,type:h},g))});Zu.muiName="Input";var ec=bo(function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiFilledInput"})(Zu),tc=l.forwardRef(function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,s=e.style,u=p(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===Eo().direction?"right":"left";if(void 0!==o)return l.createElement("fieldset",f({"aria-hidden":!0,className:m(n.root,r),ref:t,style:s},u),l.createElement("legend",{className:m(n.legendLabelled,a&&n.legendNotched)},o?l.createElement("span",null,o):l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var d=i>0?.75*i+8:.01;return l.createElement("fieldset",f({"aria-hidden":!0,style:f(w({},"padding".concat(Co(c)),8),s),className:m(n.root,r),ref:t},u),l.createElement("legend",{className:n.legend,style:{width:a?d:.01}},l.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),nc=bo(function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},{name:"PrivateNotchedOutline"})(tc),rc=l.forwardRef(function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,s=e.label,u=e.labelWidth,c=void 0===u?0:u,d=e.multiline,h=void 0!==d&&d,g=e.notched,v=e.type,y=void 0===v?"text":v,b=p(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return l.createElement(Hu,f({renderSuffix:function(e){return l.createElement(nc,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==g?g:Boolean(e.startAdornment||e.filled||e.focused)})},classes:f({},n,{root:m(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:h,ref:t,type:y},b))});rc.muiName="Input";var oc=bo(function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},{name:"MuiOutlinedInput"})(rc),ic=Xu,ac=l.createElement(Gu,null),sc=l.createElement(ec,null),lc=l.forwardRef(function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,a=t.classes,s=t.displayEmpty,u=void 0!==s&&s,c=t.IconComponent,d=void 0===c?zu:c,h=t.id,m=t.input,g=t.inputProps,v=t.label,y=t.labelId,b=t.labelWidth,w=void 0===b?0:b,x=t.MenuProps,k=t.multiple,S=void 0!==k&&k,E=t.native,C=void 0!==E&&E,O=t.onClose,T=t.onOpen,_=t.open,R=t.renderValue,P=t.SelectDisplayProps,A=t.variant,L=void 0===A?"standard":A,N=p(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=C?Yu:Nu,I=Mu({props:t,muiFormControl:hl(),states:["variant"]}).variant||L,F=m||{standard:ac,outlined:l.createElement(oc,{label:v,labelWidth:w}),filled:sc}[I];return l.cloneElement(F,f({inputComponent:M,inputProps:f({children:i,IconComponent:d,variant:I,type:void 0,multiple:S},C?{id:h}:{autoWidth:o,displayEmpty:u,labelId:y,MenuProps:x,onClose:O,onOpen:T,open:_,renderValue:R,SelectDisplayProps:f({id:h},P)},g,{classes:g?xn({baseClasses:a,newClasses:g.classes,Component:e}):a},m?m.props.inputProps:{}),ref:n},N))});lc.muiName="Select";var uc=bo(ic,{name:"MuiSelect"})(lc),cc=!0,dc=!1,pc=null,fc={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 hc(e){e.metaKey||e.altKey||e.ctrlKey||(cc=!0)}function mc(){cc=!1}function gc(){"hidden"===this.visibilityState&&dc&&(cc=!0)}function vc(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return cc||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!fc[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function yc(){dc=!0,window.clearTimeout(pc),pc=window.setTimeout(function(){dc=!1},100)}function bc(){var e=l.useCallback(function(e){var t,n=Ol.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",hc,!0),t.addEventListener("mousedown",mc,!0),t.addEventListener("pointerdown",mc,!0),t.addEventListener("touchstart",mc,!0),t.addEventListener("visibilitychange",gc,!0))},[]);return{isFocusVisible:vc,onBlurVisible:yc,ref:e}}var wc="undefined"==typeof window?l.useEffect:l.useLayoutEffect;function xc(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,u=e.onExited,c=void 0===u?function(){}:u,d=e.timeout,p=l.useState(!1),f=p[0],h=p[1],g=m(t.ripple,t.rippleVisible,r&&t.ripplePulsate),v={width:a,height:a,top:-a/2+i,left:-a/2+o},y=m(t.child,f&&t.childLeaving,r&&t.childPulsate),b=Fl(c);return wc(function(){if(!s){h(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}},[b,s,d]),l.createElement("span",{className:g,style:v},l.createElement("span",{className:y}))}var kc=l.forwardRef(function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=p(e,["center","classes","className"]),s=l.useState([]),u=s[0],c=s[1],d=l.useRef(0),h=l.useRef(null);l.useEffect(function(){h.current&&(h.current(),h.current=null)},[u]);var g=l.useRef(!1),v=l.useRef(null),y=l.useRef(null),b=l.useRef(null);l.useEffect(function(){return function(){clearTimeout(v.current)}},[]);var w=l.useCallback(function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c(function(e){return[].concat(xt(e),[l.createElement(xc,{key:d.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])}),d.current+=1,h.current=a},[o]),x=l.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var c,d,p,f=u?null:b.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,x=m.clientX,k=m.clientY;c=Math.round(x-h.left),d=Math.round(k-h.top)}if(s)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(p+=1);else{var S=2*Math.max(Math.abs((f?f.clientWidth:0)-c),c)+2,E=2*Math.max(Math.abs((f?f.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(S,2)+Math.pow(E,2))}e.touches?null===y.current&&(y.current=function(){w({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:n})},v.current=setTimeout(function(){y.current&&(y.current(),y.current=null)},80)):w({pulsate:i,rippleX:c,rippleY:d,rippleSize:p,cb:n})}},[r,w]),k=l.useCallback(function(){x({},{pulsate:!0})},[x]),S=l.useCallback(function(e,t){if(clearTimeout(v.current),"touchend"===e.type&&y.current)return e.persist(),y.current(),y.current=null,void(v.current=setTimeout(function(){S(e,t)}));y.current=null,c(function(e){return e.length>0?e.slice(1):e}),h.current=t},[]);return l.useImperativeHandle(t,function(){return{pulsate:k,start:x,stop:S}},[k,x,S]),l.createElement("span",f({className:m(o.root,i),ref:b},a),l.createElement(lu,{component:null,exit:!0},u))}),Sc=bo(function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}},{flip:!1,name:"MuiTouchRipple"})(l.memo(kc)),Ec=l.forwardRef(function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,u=e.className,c=e.component,d=void 0===c?"button":c,h=e.disabled,g=void 0!==h&&h,v=e.disableRipple,y=void 0!==v&&v,b=e.disableTouchRipple,w=void 0!==b&&b,x=e.focusRipple,k=void 0!==x&&x,S=e.focusVisibleClassName,E=e.onBlur,C=e.onClick,O=e.onFocus,T=e.onFocusVisible,_=e.onKeyDown,R=e.onKeyUp,P=e.onMouseDown,A=e.onMouseLeave,L=e.onMouseUp,N=e.onTouchEnd,M=e.onTouchMove,I=e.onTouchStart,F=e.onDragLeave,$=e.tabIndex,j=void 0===$?0:$,z=e.TouchRippleProps,B=e.type,D=void 0===B?"button":B,W=p(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=l.useRef(null);var V=l.useRef(null),K=l.useState(!1),H=K[0],q=K[1];g&&H&&q(!1);var G=bc(),Y=G.isFocusVisible,X=G.onBlurVisible,Q=G.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return Fl(function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0})}l.useImperativeHandle(n,function(){return{focusVisible:function(){q(!0),U.current.focus()}}},[]),l.useEffect(function(){H&&k&&!y&&V.current.pulsate()},[y,k,H]);var Z=J("start",P),ee=J("stop",F),te=J("stop",L),ne=J("stop",function(e){H&&e.preventDefault(),A&&A(e)}),re=J("start",I),oe=J("stop",N),ie=J("stop",M),ae=J("stop",function(e){H&&(X(e),q(!1)),E&&E(e)},!1),se=Fl(function(e){U.current||(U.current=e.currentTarget),Y(e)&&(q(!0),T&&T(e)),O&&O(e)}),le=function(){var e=Ol.findDOMNode(U.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ue=l.useRef(!1),ce=Fl(function(e){k&&!ue.current&&H&&V.current&&" "===e.key&&(ue.current=!0,e.persist(),V.current.stop(e,function(){V.current.start(e)})),e.target===e.currentTarget&&le()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&le()&&"Enter"===e.key&&!g&&(e.preventDefault(),C&&C(e))}),de=Fl(function(e){k&&" "===e.key&&V.current&&H&&!e.defaultPrevented&&(ue.current=!1,e.persist(),V.current.stop(e,function(){V.current.pulsate(e)})),R&&R(e),C&&e.target===e.currentTarget&&le()&&" "===e.key&&!e.defaultPrevented&&C(e)}),pe=d;"button"===pe&&W.href&&(pe="a");var fe={};"button"===pe?(fe.type=D,fe.disabled=g):("a"===pe&&W.href||(fe.role="button"),fe["aria-disabled"]=g);var he=Ll(r,t),me=Ll(Q,U),ge=Ll(he,me),ve=l.useState(!1),ye=ve[0],be=ve[1];l.useEffect(function(){be(!0)},[]);var we=ye&&!y&&!g;return l.createElement(pe,f({className:m(s.root,u,H&&[s.focusVisible,S],g&&s.disabled),onBlur:ae,onClick:C,onFocus:se,onKeyDown:ce,onKeyUp:de,onMouseDown:Z,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:oe,onTouchMove:ie,onTouchStart:re,ref:ge,tabIndex:g?-1:j},fe,W),a,we?l.createElement(Sc,f({ref:V,center:i},z)):null)}),Cc=bo({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Ec),Oc="undefined"==typeof window?l.useEffect:l.useLayoutEffect,Tc=l.forwardRef(function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,u=e.children,c=e.classes,d=e.className,h=e.component,g=e.ContainerComponent,v=void 0===g?"li":g,y=e.ContainerProps,b=(y=void 0===y?{}:y).className,w=p(y,["className"]),x=e.dense,k=void 0!==x&&x,S=e.disabled,E=void 0!==S&&S,C=e.disableGutters,O=void 0!==C&&C,T=e.divider,_=void 0!==T&&T,R=e.focusVisibleClassName,P=e.selected,A=void 0!==P&&P,L=p(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),N=l.useContext(bu),M={dense:k||N.dense||!1,alignItems:r},I=l.useRef(null);Oc(function(){i&&I.current&&I.current.focus()},[i]);var F=l.Children.toArray(u),$=F.length&&cl(F[F.length-1],["ListItemSecondaryAction"]),j=Ll(l.useCallback(function(e){I.current=Ol.findDOMNode(e)},[]),t),z=f({className:m(c.root,d,M.dense&&c.dense,!O&&c.gutters,_&&c.divider,E&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,$&&c.secondaryAction,A&&c.selected),disabled:E},L),B=h||"li";return s&&(z.component=h||"div",z.focusVisibleClassName=m(c.focusVisible,R),B=Cc),$?(B=z.component||h?B:"div","li"===v&&("li"===B?B="div":"li"===z.component&&(z.component="div")),l.createElement(bu.Provider,{value:M},l.createElement(v,f({className:m(c.container,b),ref:j},w),l.createElement(B,z,F),F.pop()))):l.createElement(bu.Provider,{value:M},l.createElement(B,f({ref:j},z),F))}),_c=bo(function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},{name:"MuiListItem"})(Tc),Rc=l.forwardRef(function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,s=e.disableGutters,u=void 0!==s&&s,c=e.ListItemClasses,d=e.role,h=void 0===d?"menuitem":d,g=e.selected,v=e.tabIndex,y=p(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==v?v:-1),l.createElement(_c,f({button:!0,role:h,tabIndex:n,component:a,selected:g,disableGutters:u,classes:f({dense:r.dense},c),className:m(r.root,o,g&&r.selected,!u&&r.gutters),ref:t},y))}),Pc=bo(function(e){return{root:f({},e.typography.body1,w({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:f({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(Rc),Ac=new Map,Lc=new WeakMap,Nc=0;function Mc(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(n=e.root,n?(Lc.has(n)||(Nc+=1,Lc.set(n,Nc.toString())),Lc.get(n)):"0"):e[t]}`;var n}).toString()}function Ic(e,t,n={},r=undefined){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){const t=Mc(e);let n=Ac.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(t=>{t.forEach(t=>{var n;const i=t.isIntersecting&&o.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach(e=>{e(i,t)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Ac.set(t,n)}return n}(n),s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),Ac.delete(o))}}const Fc={black:"#000",white:"#fff"},$c="#e57373",jc="#ef5350",zc="#f44336",Bc="#d32f2f",Dc="#c62828",Wc="#f3e5f5",Uc="#ce93d8",Vc="#ba68c8",Kc="#ab47bc",Hc="#9c27b0",qc="#7b1fa2",Gc="#e3f2fd",Yc="#90caf9",Xc="#42a5f5",Qc="#1976d2",Jc="#1565c0",Zc="#4fc3f7",ed="#29b6f6",td="#03a9f4",nd="#0288d1",rd="#01579b",od="#81c784",id="#66bb6a",ad="#4caf50",sd="#388e3c",ld="#2e7d32",ud="#1b5e20",cd="#ffb74d",dd="#ffa726",pd="#ff9800",fd="#f57c00",hd="#e65100",md={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function gd(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var vd="$$material";var yd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),bd="-ms-",wd="-moz-",xd="-webkit-",kd="comm",Sd="rule",Ed="decl",Cd="@keyframes",Od=Math.abs,Td=String.fromCharCode,_d=Object.assign;function Rd(e){return e.trim()}function Pd(e,t,n){return e.replace(t,n)}function Ad(e,t){return e.indexOf(t)}function Ld(e,t){return 0|e.charCodeAt(t)}function Nd(e,t,n){return e.slice(t,n)}function Md(e){return e.length}function Id(e){return e.length}function Fd(e,t){return t.push(e),e}var $d=1,jd=1,zd=0,Bd=0,Dd=0,Wd="";function Ud(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$d,column:jd,length:a,return:""}}function Vd(e,t){return _d(Ud("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kd(){return Dd=Bd>0?Ld(Wd,--Bd):0,jd--,10===Dd&&(jd=1,$d--),Dd}function Hd(){return Dd=Bd<zd?Ld(Wd,Bd++):0,jd++,10===Dd&&(jd=1,$d++),Dd}function qd(){return Ld(Wd,Bd)}function Gd(){return Bd}function Yd(e,t){return Nd(Wd,e,t)}function Xd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qd(e){return $d=jd=1,zd=Md(Wd=e),Bd=0,[]}function Jd(e){return Wd="",e}function Zd(e){return Rd(Yd(Bd-1,np(91===e?e+2:40===e?e+1:e)))}function ep(e){for(;(Dd=qd())&&Dd<33;)Hd();return Xd(e)>2||Xd(Dd)>3?"":" "}function tp(e,t){for(;--t&&Hd()&&!(Dd<48||Dd>102||Dd>57&&Dd<65||Dd>70&&Dd<97););return Yd(e,Gd()+(t<6&&32==qd()&&32==Hd()))}function np(e){for(;Hd();)switch(Dd){case e:return Bd;case 34:case 39:34!==e&&39!==e&&np(Dd);break;case 40:41===e&&np(e);break;case 92:Hd()}return Bd}function rp(e,t){for(;Hd()&&e+Dd!==57&&(e+Dd!==84||47!==qd()););return"/*"+Yd(t,Bd-1)+"*"+Td(47===e?e:Hd())}function op(e){for(;!Xd(qd());)Hd();return Yd(e,Bd)}function ip(e){return Jd(ap("",null,null,null,[""],e=Qd(e),0,[0],e))}function ap(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,k=r,S=b;g;)switch(h=y,y=Hd()){case 40:if(108!=h&&58==Ld(S,d-1)){-1!=Ad(S+=Pd(Zd(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Zd(y);break;case 9:case 10:case 13:case 32:S+=ep(h);break;case 92:S+=tp(Gd()-1,7);continue;case 47:switch(qd()){case 42:case 47:Fd(lp(rp(Hd(),Gd()),t,n),l);break;default:S+="/"}break;case 123*m:s[u++]=Md(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(S=Pd(S,/\f/g,"")),f>0&&Md(S)-d&&Fd(f>32?up(S+";",r,n,d-1):up(Pd(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Fd(k=sp(S,t,n,u,c,o,s,b,w=[],x=[],d),i),123===y)if(0===c)ap(S,t,k,k,w,i,d,s,x);else switch(99===p&&110===Ld(S,3)?100:p){case 100:case 108:case 109:case 115:ap(e,k,k,r&&Fd(sp(e,k,k,0,0,o,s,b,o,w=[],d),x),o,x,d,s,r?w:x);break;default:ap(S,k,k,k,[""],x,0,s,x)}}u=c=f=0,m=v=1,b=S="",d=a;break;case 58:d=1+Md(S),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Kd())continue;switch(S+=Td(y),y*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Md(S)-1)*v,v=1;break;case 64:45===qd()&&(S+=Zd(Hd())),p=qd(),c=d=Md(b=S+=op(Gd())),y++;break;case 45:45===h&&2==Md(S)&&(m=0)}}return i}function sp(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,p=0===o?i:[""],f=Id(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Nd(e,d+1,d=Od(m=a[h])),b=e;v<f;++v)(b=Rd(m>0?p[v]+" "+y:Pd(y,/&\f/g,p[v])))&&(l[g++]=b);return Ud(e,t,n,0===o?Sd:s,l,u,c)}function lp(e,t,n){return Ud(e,t,n,kd,Td(Dd),Nd(e,2,-2),0)}function up(e,t,n,r){return Ud(e,t,n,Ed,Nd(e,0,r),Nd(e,r+1,-1),r)}function cp(e,t){for(var n="",r=Id(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dp(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ed:return e.return=e.return||e.value;case kd:return"";case Cd:return e.return=e.value+"{"+cp(e.children,r)+"}";case Sd:e.value=e.props.join(",")}return Md(n=cp(e.children,r))?e.return=e.value+"{"+n+"}":""}function pp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fp=function(e,t,n){for(var r=0,o=0;r=o,o=qd(),38===r&&12===o&&(t[n]=1),!Xd(o);)Hd();return Yd(e,Bd)},hp=function(e,t){return Jd(function(e,t){var n=-1,r=44;do{switch(Xd(r)){case 0:38===r&&12===qd()&&(t[n]=1),e[n]+=fp(Bd-1,t,n);break;case 2:e[n]+=Zd(r);break;case 4:if(44===r){e[++n]=58===qd()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Td(r)}}while(r=Hd());return e}(Qd(e),t))},mp=new WeakMap,gp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mp.get(n))&&!r){mp.set(e,!0);for(var o=[],i=hp(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},vp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yp(e,t){switch(function(e,t){return 45^Ld(e,0)?(((t<<2^Ld(e,0))<<2^Ld(e,1))<<2^Ld(e,2))<<2^Ld(e,3):0}(e,t)){case 5103:return xd+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xd+e+wd+e+bd+e+e;case 6828:case 4268:return xd+e+bd+e+e;case 6165:return xd+e+bd+"flex-"+e+e;case 5187:return xd+e+Pd(e,/(\w+).+(:[^]+)/,xd+"box-$1$2"+bd+"flex-$1$2")+e;case 5443:return xd+e+bd+"flex-item-"+Pd(e,/flex-|-self/,"")+e;case 4675:return xd+e+bd+"flex-line-pack"+Pd(e,/align-content|flex-|-self/,"")+e;case 5548:return xd+e+bd+Pd(e,"shrink","negative")+e;case 5292:return xd+e+bd+Pd(e,"basis","preferred-size")+e;case 6060:return xd+"box-"+Pd(e,"-grow","")+xd+e+bd+Pd(e,"grow","positive")+e;case 4554:return xd+Pd(e,/([^-])(transform)/g,"$1"+xd+"$2")+e;case 6187:return Pd(Pd(Pd(e,/(zoom-|grab)/,xd+"$1"),/(image-set)/,xd+"$1"),e,"")+e;case 5495:case 3959:return Pd(e,/(image-set\([^]*)/,xd+"$1$`$1");case 4968:return Pd(Pd(e,/(.+:)(flex-)?(.*)/,xd+"box-pack:$3"+bd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xd+e+e;case 4095:case 3583:case 4068:case 2532:return Pd(e,/(.+)-inline(.+)/,xd+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Md(e)-1-t>6)switch(Ld(e,t+1)){case 109:if(45!==Ld(e,t+4))break;case 102:return Pd(e,/(.+:)(.+)-([^]+)/,"$1"+xd+"$2-$3$1"+wd+(108==Ld(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?yp(Pd(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ld(e,t+1))break;case 6444:switch(Ld(e,Md(e)-3-(~Ad(e,"!important")&&10))){case 107:return Pd(e,":",":"+xd)+e;case 101:return Pd(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xd+(45===Ld(e,14)?"inline-":"")+"box$3$1"+xd+"$2$3$1"+bd+"$2box$3")+e}break;case 5936:switch(Ld(e,t+11)){case 114:return xd+e+bd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xd+e+bd+Pd(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xd+e+bd+Pd(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xd+e+bd+e+e}return e}var bp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ed:e.return=yp(e.value,e.length);break;case Cd:return cp([Vd(e,{value:Pd(e.value,"@","@"+xd)})],r);case Sd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cp([Vd(e,{props:[Pd(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cp([Vd(e,{props:[Pd(t,/:(plac\w+)/,":"+xd+"input-$1")]}),Vd(e,{props:[Pd(t,/:(plac\w+)/,":-moz-$1")]}),Vd(e,{props:[Pd(t,/:(plac\w+)/,bd+"input-$1")]})],r)}return""})}}],wp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||bp,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c=[dp,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Id(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([gp,vp].concat(i,c));o=function(e,t,n,r){l=n,function(e){cp(ip(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new yd({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function xp(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var kp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Sp=function(e,t,n){kp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ep={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cp=/[A-Z]|^ms/g,Op=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tp=function(e){return 45===e.charCodeAt(1)},_p=function(e){return null!=e&&"boolean"!=typeof e},Rp=pp(function(e){return Tp(e)?e:e.replace(Cp,"-$&").toLowerCase()}),Pp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Op,function(e,t,n){return Lp={name:t,styles:n,next:Lp},t})}return 1===Ep[e]||Tp(e)||"number"!=typeof t||0===t?t:t+"px"};function Ap(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Lp={name:o.name,styles:o.styles,next:Lp},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Lp={name:a.name,styles:a.styles,next:Lp},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ap(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":_p(s)&&(r+=Rp(i)+":"+Pp(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Ap(e,t,a);switch(i){case"animation":case"animationName":r+=Rp(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)_p(a[u])&&(r+=Rp(i)+":"+Pp(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Lp,l=n(e);return Lp=s,Ap(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Lp,Np=/label:\s*([^\s;{]+)\s*(;|$)/g;function Mp(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Lp=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ap(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Ap(n,t,e[a]),r)o+=i[a]}Np.lastIndex=0;for(var s,l="";null!==(s=Np.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Lp}}var Ip=!!c.useInsertionEffect&&c.useInsertionEffect,Fp=Ip||function(e){return e()},$p=Ip||l.useLayoutEffect,jp=l.createContext("undefined"!=typeof HTMLElement?wp({key:"css"}):null);jp.Provider;var zp,Bp,Dp=function(e){return l.forwardRef(function(t,n){var r=l.useContext(jp);return e(t,r,n)})},Wp=l.createContext({}),Up={}.hasOwnProperty,Vp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kp(t,n,r),Fp(function(){return Sp(t,n,r)}),null},Hp=Dp(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Vp],i=[r],a="";"string"==typeof e.className?a=xp(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Mp(i,void 0,l.useContext(Wp));a+=t.key+"-"+s.name;var u={};for(var c in e)Up.call(e,c)&&"css"!==c&&c!==Vp&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),l.createElement(l.Fragment,null,l.createElement(Kp,{cache:t,serialized:s,isStringTag:"string"==typeof o}),l.createElement(o,u))}),qp=Hp,Gp=function(e,t){var n=arguments;if(null==t||!Up.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=qp,o[1]=function(e,t){var n={};for(var r in t)Up.call(t,r)&&(n[r]=t[r]);return n[Vp]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return l.createElement.apply(null,o)};zp=Gp||(Gp={}),Bp||(Bp=zp.JSX||(zp.JSX={}));var Yp=Dp(function(e,t){var n=Mp([e.styles],void 0,l.useContext(Wp)),r=l.useRef();return $p(function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),$p(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Sp(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Xp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mp(t)}function Qp(){var e=Xp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Jp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zp=pp(function(e){return Jp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ef=function(e){return"theme"!==e},tf=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Zp:ef},nf=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},rf=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kp(t,n,r),Fp(function(){return Sp(t,n,r)}),null},of=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=nf(t,n,i),u=s||tf(a),c=!u("as");return function(){var d=arguments,p=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var m=d.length,g=1;g<m;g++)p.push(d[g],h[g])}var v=Dp(function(e,t,n){var r=c&&e.as||a,i="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=l.useContext(Wp)}"string"==typeof e.className?i=xp(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=Mp(p.concat(d),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=c&&void 0===s?tf(r):u,v={};for(var y in e)c&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=i,n&&(v.ref=n),l.createElement(l.Fragment,null,l.createElement(rf,{cache:t,serialized:m,isStringTag:"string"==typeof r}),l.createElement(r,v))});return v.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=p,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(t,r){return e(t,f({},n,r,{shouldForwardProp:nf(v,r,!0)})).apply(void 0,p)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){of[e]=of(e)});var af,sf,lf={exports:{}},uf={};var cf=(sf||(sf=1,lf.exports=function(){if(af)return uf;af=1;var e=s(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return uf.Fragment=n,uf.jsx=a,uf.jsxs=a,uf}()),lf.exports);function df(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return cf.jsx(Yp,{styles:r})}
|
|
25
25
|
/**
|
|
26
26
|
* @mui/styled-engine v7.3.5
|
|
27
27
|
*
|
|
28
28
|
* @license MIT
|
|
29
29
|
* This source code is licensed under the MIT license found in the
|
|
30
30
|
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/function Lp(e,t){return Cp(e,t)}const Np=[];function Mp(e){return Np[0]=e,tp(Np)}var Ip,Fp,$p={exports:{}},jp={};function zp(){if(Ip)return jp;Ip=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return h}}case t:return h}}}return jp.ContextConsumer=i,jp.ContextProvider=a,jp.Element=e,jp.ForwardRef=s,jp.Fragment=n,jp.Lazy=d,jp.Memo=c,jp.Portal=t,jp.Profiler=o,jp.StrictMode=r,jp.Suspense=l,jp.SuspenseList=u,jp.isContextConsumer=function(e){return h(e)===i},jp.isContextProvider=function(e){return h(e)===a},jp.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},jp.isForwardRef=function(e){return h(e)===s},jp.isFragment=function(e){return h(e)===n},jp.isLazy=function(e){return h(e)===d},jp.isMemo=function(e){return h(e)===c},jp.isPortal=function(e){return h(e)===t},jp.isProfiler=function(e){return h(e)===o},jp.isStrictMode=function(e){return h(e)===r},jp.isSuspense=function(e){return h(e)===l},jp.isSuspenseList=function(e){return h(e)===u},jp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},jp.typeOf=h,jp}function Bp(){return Fp||(Fp=1,$p.exports=zp()),$p.exports}var Dp=Bp();function Wp(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Up(e){if(l.isValidElement(e)||Dp.isValidElementType(e)||!Wp(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Up(e[n])}),t}function Vp(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Wp(e)&&Wp(t)&&Object.keys(t).forEach(o=>{l.isValidElement(t[o])||Dp.isValidElementType(t[o])?r[o]=t[o]:Wp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Wp(e[o])?r[o]=Vp(e[o],t[o],n):n.clone?r[o]=Wp(t[o])?Up(t[o]):t[o]:r[o]=t[o]}),r}function Kp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function Hp(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const qp={borderRadius:4};function Gp(e,t){return t?Vp(e,t,{clone:!1}):e}const Yp={xs:0,sm:600,md:900,lg:1200,xl:1536},Xp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yp[e]}px)`},Qp={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Yp[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jp(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xp;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Xp;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:Qp,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Yp).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function Zp(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ef(e){if("string"!=typeof e)throw new Error($c(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tf(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function nf(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:tf(e,n)||r,t&&(o=t(o,r,e)),o}function rf(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=tf(e.theme,r)||{};return Jp(e,i,e=>{let r=nf(a,o,e);return e===r&&"string"==typeof e&&(r=nf(a,o,`${t}${"default"===e?"":ef(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const of={m:"margin",p:"padding"},af={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lf=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!sf[e])return[e];e=sf[e]}const[t,n]=e.split(""),r=of[t],o=af[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),uf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function df(e,t,n,r){const o=tf(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function pf(e){return df(e,"spacing",8)}function ff(e,t){return"string"==typeof t||null==t?t:e(t)}function hf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=ff(t,n),e),{})}(lf(n),r);return Jp(e,e[n],o)}function mf(e,t){const n=pf(e.theme);return Object.keys(e).map(r=>hf(e,t,r,n)).reduce(Gp,{})}function gf(e){return mf(e,uf)}function vf(e){return mf(e,cf)}function yf(e=8,t=pf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function bf(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Gp(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function wf(e){return"number"!=typeof e?e:`${e}px solid`}function xf(e,t){return rf({prop:e,themeKey:"borders",transform:t})}gf.propTypes={},gf.filterProps=uf,vf.propTypes={},vf.filterProps=cf;const kf=xf("border",wf),Sf=xf("borderTop",wf),Ef=xf("borderRight",wf),Cf=xf("borderBottom",wf),Of=xf("borderLeft",wf),_f=xf("borderColor"),Tf=xf("borderTopColor"),Rf=xf("borderRightColor"),Pf=xf("borderBottomColor"),Af=xf("borderLeftColor"),Lf=xf("outline",wf),Nf=xf("outlineColor"),Mf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=df(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ff(t,e)});return Jp(e,e.borderRadius,n)}return null};Mf.propTypes={},Mf.filterProps=["borderRadius"],bf(kf,Sf,Ef,Cf,Of,_f,Tf,Rf,Pf,Af,Mf,Lf,Nf);const If=e=>{if(void 0!==e.gap&&null!==e.gap){const t=df(e.theme,"spacing",8),n=e=>({gap:ff(t,e)});return Jp(e,e.gap,n)}return null};If.propTypes={},If.filterProps=["gap"];const Ff=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=df(e.theme,"spacing",8),n=e=>({columnGap:ff(t,e)});return Jp(e,e.columnGap,n)}return null};Ff.propTypes={},Ff.filterProps=["columnGap"];const $f=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=df(e.theme,"spacing",8),n=e=>({rowGap:ff(t,e)});return Jp(e,e.rowGap,n)}return null};$f.propTypes={},$f.filterProps=["rowGap"];function jf(e,t){return"grey"===t?t:e}bf(If,Ff,$f,rf({prop:"gridColumn"}),rf({prop:"gridRow"}),rf({prop:"gridAutoFlow"}),rf({prop:"gridAutoColumns"}),rf({prop:"gridAutoRows"}),rf({prop:"gridTemplateColumns"}),rf({prop:"gridTemplateRows"}),rf({prop:"gridTemplateAreas"}),rf({prop:"gridArea"}));function zf(e){return e<=1&&0!==e?100*e+"%":e}bf(rf({prop:"color",themeKey:"palette",transform:jf}),rf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jf}),rf({prop:"backgroundColor",themeKey:"palette",transform:jf}));const Bf=rf({prop:"width",transform:zf}),Df=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Yp[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:zf(t)}};return Jp(e,e.maxWidth,t)}return null};Df.filterProps=["maxWidth"];const Wf=rf({prop:"minWidth",transform:zf}),Uf=rf({prop:"height",transform:zf}),Vf=rf({prop:"maxHeight",transform:zf}),Kf=rf({prop:"minHeight",transform:zf});rf({prop:"size",cssProperty:"width",transform:zf}),rf({prop:"size",cssProperty:"height",transform:zf});bf(Bf,Df,Wf,Uf,Vf,Kf,rf({prop:"boxSizing"}));const Hf={border:{themeKey:"borders",transform:wf},borderTop:{themeKey:"borders",transform:wf},borderRight:{themeKey:"borders",transform:wf},borderBottom:{themeKey:"borders",transform:wf},borderLeft:{themeKey:"borders",transform:wf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mf},color:{themeKey:"palette",transform:jf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jf},backgroundColor:{themeKey:"palette",transform:jf},p:{style:vf},pt:{style:vf},pr:{style:vf},pb:{style:vf},pl:{style:vf},px:{style:vf},py:{style:vf},padding:{style:vf},paddingTop:{style:vf},paddingRight:{style:vf},paddingBottom:{style:vf},paddingLeft:{style:vf},paddingX:{style:vf},paddingY:{style:vf},paddingInline:{style:vf},paddingInlineStart:{style:vf},paddingInlineEnd:{style:vf},paddingBlock:{style:vf},paddingBlockStart:{style:vf},paddingBlockEnd:{style:vf},m:{style:gf},mt:{style:gf},mr:{style:gf},mb:{style:gf},ml:{style:gf},mx:{style:gf},my:{style:gf},margin:{style:gf},marginTop:{style:gf},marginRight:{style:gf},marginBottom:{style:gf},marginLeft:{style:gf},marginX:{style:gf},marginY:{style:gf},marginInline:{style:gf},marginInlineStart:{style:gf},marginInlineEnd:{style:gf},marginBlock:{style:gf},marginBlockStart:{style:gf},marginBlockEnd:{style:gf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:If},rowGap:{style:$f},columnGap:{style:Ff},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:zf},maxWidth:{style:Df},minWidth:{transform:zf},height:{transform:zf},maxHeight:{transform:zf},minHeight:{transform:zf},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const qf=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=tf(n,s)||{};if(u)return u(o);return Jp(o,t,t=>{let n=nf(c,l,t);return t===n&&"string"==typeof t&&(n=nf(c,l,`${e}${"default"===t?"":ef(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Hf;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(a[n])u=Gp(u,e(n,i,o,a));else{const e=Jp({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=Gp(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=Gp(u,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Hp(o,Zp(l,u))}:Hp(o,Zp(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Gf(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Yf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=Vp({breakpoints:Kp(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:yf(o),shape:{...qp,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Gf,s=t.reduce((e,t)=>Vp(e,t),s),s.unstable_sxConfig={...Hf,...a?.unstable_sxConfig},s.unstable_sx=function(e){return qf({sx:e,theme:this})},s}function Xf(e=null){const t=l.useContext(up);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}qf.filterProps=["sx"];const Qf=Yf();function Jf(e=Qf){return Xf(e)}function Zf(e){const t=Mp(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function eh({styles:e,themeId:t,defaultTheme:n={}}){const r=Jf(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Zf("function"==typeof e?e(o):e)):Zf(i)),Pp.jsx(Ap,{styles:i})}function th(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Hf;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Wp(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}const nh=e=>e,rh=(()=>{let e=nh;return{configure(t){e=t},generate:t=>e(t),reset(){e=nh}}})();function oh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=oh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ih(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oh(e))&&(r&&(r+=" "),r+=t);return r}const ah={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sh(e,t,n="Mui"){const r=ah[t];return r?`${n}-${r}`:`${rh.generate(e)}-${t}`}function lh(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=sh(e,t,n)}),r}function uh(e){const{variants:t,...n}=e,r={variants:t,style:Mp(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=Mp(e.style))}),r}const ch=Yf();function dh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ph(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function fh(e){return e?(t,n)=>n[e]:null}function hh(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>hh(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?ph(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?ph(Mp(o),n):o}return mh(e,r.variants,[t],n)}return r?.isProcessed?n?ph(Mp(r.style),n):r.style:n?ph(Mp(r),n):r}function mh(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ph(Mp(a.style(o)),r):a.style(o))):n.push(r?ph(Mp(a.style),r):a.style)}return n}function gh(e,t){}function vh(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function yh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yh(e))&&(r&&(r+=" "),r+=t);return r}function wh(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=wh(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=bh(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}const xh="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function kh(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Sh(e){if(e.type)return e;if("#"===e.charAt(0))return Sh(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($c(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error($c(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const Eh=(e,t)=>{try{return(e=>{const t=Sh(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function Ch(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Oh(e){e=Sh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ch({type:s,values:l})}function _h(e){let t="hsl"===(e=Sh(e)).type||"hsla"===e.type?Sh(Oh(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Th(e,t){return e=Sh(e),t=kh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ch(e)}function Rh(e,t,n){try{return Th(e,t)}catch(t){return e}}function Ph(e,t){if(e=Sh(e),t=kh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ch(e)}function Ah(e,t,n){try{return Ph(e,t)}catch(t){return e}}function Lh(e,t){if(e=Sh(e),t=kh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ch(e)}function Nh(e,t,n){try{return Lh(e,t)}catch(t){return e}}function Mh(e,t,n){try{return function(e,t=.15){return _h(e)>.5?Ph(e,t):Lh(e,t)}(e,t)}catch(t){return e}}const Ih=l.createContext(),Fh=()=>l.useContext(Ih)??!1,$h=l.createContext(void 0);function jh({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?wh(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:wh(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:l.useContext($h)}})}let zh=0;const Bh={...c}.useId;function Dh(e){if(void 0!==Bh){const t=Bh();return e??t}return function(e){const[t,n]=l.useState(e),r=e||t;return l.useEffect(()=>{null==t&&(zh+=1,n(`mui-${zh}`))},[t]),r}(e)}const Wh={theme:void 0};function Uh(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Vh=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Kh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Vh(i,e,`var(${r})`,s),Vh(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Hh(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}function qh(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}function Gh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rc.white,default:rc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Yh=Gh();function Xh(){return{text:{primary:rc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Qh=Xh();function Jh(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Lh(e.main,o):"dark"===t&&(e.dark=Ph(e.main,i)))}function Zh(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function em(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:gc,light:mc,dark:vc}:{main:yc,light:vc,dark:bc}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:cc,light:uc,dark:pc}:{main:fc,light:dc,dark:hc}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ac,light:oc,dark:sc}:{main:sc,light:ic,dark:lc}}(t),u=e.info||function(e="light"){return"dark"===e?{main:xc,light:wc,dark:Sc}:{main:Sc,light:kc,dark:Ec}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Oc,light:Cc,dark:Tc}:{main:Rc,light:_c,dark:Pc}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Lc,light:Ac,dark:Mc}:{main:"#ed6c02",light:Nc,dark:Ic}}(t);function p(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=_h(e),r=_h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Qh.text.primary)>=n?Qh.text.primary:Yh.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error($c(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error($c(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(Zh(o,e,"light",i,r),Zh(o,e,"dark",a,r)):(Jh(e,"light",i,r),Jh(e,"dark",a,r)),e.contrastText||(e.contrastText=p(e.main)),e};let h;"light"===t?h=Gh():"dark"===t&&(h=Xh());return Vp({common:{...rc},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:c,name:"success"}),grey:Fc,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...h},i)}function tm(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const nm={textTransform:"uppercase"},rm='"Roboto", "Helvetica", "Arial", sans-serif';function om(e,t){const{fontFamily:n=rm,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,p=r/14,f=c||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===rm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...u};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,nm),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,nm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Vp({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function im(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const am=["none",im(0,2,1,-1,0,1,1,0,0,1,3,0),im(0,3,1,-2,0,2,2,0,0,1,5,0),im(0,3,3,-2,0,3,4,0,0,1,8,0),im(0,2,4,-1,0,4,5,0,0,1,10,0),im(0,3,5,-1,0,5,8,0,0,1,14,0),im(0,3,5,-1,0,6,10,0,0,1,18,0),im(0,4,5,-2,0,7,10,1,0,2,16,1),im(0,5,5,-3,0,8,10,1,0,3,14,2),im(0,5,6,-3,0,9,12,1,0,3,16,2),im(0,6,6,-3,0,10,14,1,0,4,18,3),im(0,6,7,-4,0,11,15,1,0,4,20,3),im(0,7,8,-4,0,12,17,2,0,5,22,4),im(0,7,8,-4,0,13,19,2,0,5,24,4),im(0,7,9,-4,0,14,21,2,0,5,26,4),im(0,8,9,-5,0,15,22,2,0,6,28,5),im(0,8,10,-5,0,16,24,2,0,6,30,5),im(0,8,11,-5,0,17,26,2,0,6,32,5),im(0,9,11,-5,0,18,28,2,0,7,34,6),im(0,9,12,-6,0,19,29,2,0,7,36,6),im(0,10,13,-6,0,20,31,3,0,8,38,7),im(0,10,13,-6,0,21,33,3,0,8,40,7),im(0,10,14,-6,0,22,35,3,0,8,42,7),im(0,11,14,-7,0,23,36,3,0,9,44,8),im(0,11,15,-7,0,24,38,3,0,9,46,8)],sm={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function um(e){return`${Math.round(e)}ms`}function cm(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function dm(e){const t={...sm,...e.easing},n={...lm,...e.duration};return{getAutoHeightDuration:cm,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:um(o)} ${i} ${"string"==typeof a?a:um(a)}`).join(",")},...e,easing:t,duration:n}}const pm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fm(e){return Wp(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function hm(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!fm(i)||o.startsWith("unstable_")?delete t[o]:Wp(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function mm(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function gm(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:Th(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${mm(n)})`:Lh(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${mm(n)})`:Ph(t,n)}})}function vm(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error($c(20));const d=em({...i,colorSpace:u}),p=Yf(e);let f=Vp(p,{mixins:(h=p.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:am.slice(),typography:om(d,s),transitions:dm(a),zIndex:{...pm}});var h,m;return f=Vp(f,c),f=t.reduce((e,t)=>Vp(e,t),f),f.unstable_sxConfig={...Hf,...c?.unstable_sxConfig},f.unstable_sx=function(e){return qf({sx:e,theme:this})},f.toRuntimeSource=hm,gm(f),f}function ym(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const bm=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=ym(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function wm(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function xm(e){return"dark"===e?bm:[]}function km(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Sm=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function Em(e,t,n){!e[t]&&n&&(e[t]=n)}function Cm(e){return"string"==typeof e&&e.startsWith("hsl")?Oh(e):e}function Om(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Eh(Cm(e[t])))}const _m=e=>{try{return e()}catch(e){}};function Tm(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=em({...t,colorSpace:o});return{palette:a,opacity:{...wm(a.mode),...n},overlays:r||xm(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=vm({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...wm(i),...n?.opacity},overlays:n?.overlays||xm(i)},s}function Rm(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=km,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],p=r||(n.light&&"light"!==d?"light":d),f=((e="mui")=>Uh(e))(i),{[p]:h,light:m,dark:g,...v}=n,y={...v};let b,w=h;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(w=!0),!w)throw new Error($c(21,p));a&&(b="oklch");const x=Tm(b,y,w,c,p);m&&!y.light&&Tm(b,y,m,void 0,"light"),g&&!y.dark&&Tm(b,y,g,void 0,"dark");let k={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:f,colorSchemes:y,font:{...tm(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(k.colorSchemes).forEach(e=>{const t=k.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};function r(e,t,n){if(b){let r;return e===Rh&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===Ah&&(r=`#000 ${(100*n).toFixed(0)}%`),e===Nh&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(Em(t.common,"background","#fff"),Em(t.common,"onBackground","#000")),"dark"===t.mode&&(Em(t.common,"background","#000"),Em(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){Em(t.Alert,"errorColor",r(Ah,t.error.light,.6)),Em(t.Alert,"infoColor",r(Ah,t.info.light,.6)),Em(t.Alert,"successColor",r(Ah,t.success.light,.6)),Em(t.Alert,"warningColor",r(Ah,t.warning.light,.6)),Em(t.Alert,"errorFilledBg",n("palette-error-main")),Em(t.Alert,"infoFilledBg",n("palette-info-main")),Em(t.Alert,"successFilledBg",n("palette-success-main")),Em(t.Alert,"warningFilledBg",n("palette-warning-main")),Em(t.Alert,"errorFilledColor",_m(()=>t.getContrastText(t.error.main))),Em(t.Alert,"infoFilledColor",_m(()=>t.getContrastText(t.info.main))),Em(t.Alert,"successFilledColor",_m(()=>t.getContrastText(t.success.main))),Em(t.Alert,"warningFilledColor",_m(()=>t.getContrastText(t.warning.main))),Em(t.Alert,"errorStandardBg",r(Nh,t.error.light,.9)),Em(t.Alert,"infoStandardBg",r(Nh,t.info.light,.9)),Em(t.Alert,"successStandardBg",r(Nh,t.success.light,.9)),Em(t.Alert,"warningStandardBg",r(Nh,t.warning.light,.9)),Em(t.Alert,"errorIconColor",n("palette-error-main")),Em(t.Alert,"infoIconColor",n("palette-info-main")),Em(t.Alert,"successIconColor",n("palette-success-main")),Em(t.Alert,"warningIconColor",n("palette-warning-main")),Em(t.AppBar,"defaultBg",n("palette-grey-100")),Em(t.Avatar,"defaultBg",n("palette-grey-400")),Em(t.Button,"inheritContainedBg",n("palette-grey-300")),Em(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),Em(t.Chip,"defaultBorder",n("palette-grey-400")),Em(t.Chip,"defaultAvatarColor",n("palette-grey-700")),Em(t.Chip,"defaultIconColor",n("palette-grey-700")),Em(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Em(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Em(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Em(t.LinearProgress,"primaryBg",r(Nh,t.primary.main,.62)),Em(t.LinearProgress,"secondaryBg",r(Nh,t.secondary.main,.62)),Em(t.LinearProgress,"errorBg",r(Nh,t.error.main,.62)),Em(t.LinearProgress,"infoBg",r(Nh,t.info.main,.62)),Em(t.LinearProgress,"successBg",r(Nh,t.success.main,.62)),Em(t.LinearProgress,"warningBg",r(Nh,t.warning.main,.62)),Em(t.Skeleton,"bg",b?r(Rh,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),Em(t.Slider,"primaryTrack",r(Nh,t.primary.main,.62)),Em(t.Slider,"secondaryTrack",r(Nh,t.secondary.main,.62)),Em(t.Slider,"errorTrack",r(Nh,t.error.main,.62)),Em(t.Slider,"infoTrack",r(Nh,t.info.main,.62)),Em(t.Slider,"successTrack",r(Nh,t.success.main,.62)),Em(t.Slider,"warningTrack",r(Nh,t.warning.main,.62));const e=b?r(Ah,t.background.default,.6825):Mh(t.background.default,.8);Em(t.SnackbarContent,"bg",e),Em(t.SnackbarContent,"color",_m(()=>b?Qh.text.primary:t.getContrastText(e))),Em(t.SpeedDialAction,"fabHoverBg",Mh(t.background.paper,.15)),Em(t.StepConnector,"border",n("palette-grey-400")),Em(t.StepContent,"border",n("palette-grey-400")),Em(t.Switch,"defaultColor",n("palette-common-white")),Em(t.Switch,"defaultDisabledColor",n("palette-grey-100")),Em(t.Switch,"primaryDisabledColor",r(Nh,t.primary.main,.62)),Em(t.Switch,"secondaryDisabledColor",r(Nh,t.secondary.main,.62)),Em(t.Switch,"errorDisabledColor",r(Nh,t.error.main,.62)),Em(t.Switch,"infoDisabledColor",r(Nh,t.info.main,.62)),Em(t.Switch,"successDisabledColor",r(Nh,t.success.main,.62)),Em(t.Switch,"warningDisabledColor",r(Nh,t.warning.main,.62)),Em(t.TableCell,"border",r(Nh,r(Rh,t.divider,1),.88)),Em(t.Tooltip,"bg",r(Rh,t.grey[700],.92))}if("dark"===t.mode){Em(t.Alert,"errorColor",r(Nh,t.error.light,.6)),Em(t.Alert,"infoColor",r(Nh,t.info.light,.6)),Em(t.Alert,"successColor",r(Nh,t.success.light,.6)),Em(t.Alert,"warningColor",r(Nh,t.warning.light,.6)),Em(t.Alert,"errorFilledBg",n("palette-error-dark")),Em(t.Alert,"infoFilledBg",n("palette-info-dark")),Em(t.Alert,"successFilledBg",n("palette-success-dark")),Em(t.Alert,"warningFilledBg",n("palette-warning-dark")),Em(t.Alert,"errorFilledColor",_m(()=>t.getContrastText(t.error.dark))),Em(t.Alert,"infoFilledColor",_m(()=>t.getContrastText(t.info.dark))),Em(t.Alert,"successFilledColor",_m(()=>t.getContrastText(t.success.dark))),Em(t.Alert,"warningFilledColor",_m(()=>t.getContrastText(t.warning.dark))),Em(t.Alert,"errorStandardBg",r(Ah,t.error.light,.9)),Em(t.Alert,"infoStandardBg",r(Ah,t.info.light,.9)),Em(t.Alert,"successStandardBg",r(Ah,t.success.light,.9)),Em(t.Alert,"warningStandardBg",r(Ah,t.warning.light,.9)),Em(t.Alert,"errorIconColor",n("palette-error-main")),Em(t.Alert,"infoIconColor",n("palette-info-main")),Em(t.Alert,"successIconColor",n("palette-success-main")),Em(t.Alert,"warningIconColor",n("palette-warning-main")),Em(t.AppBar,"defaultBg",n("palette-grey-900")),Em(t.AppBar,"darkBg",n("palette-background-paper")),Em(t.AppBar,"darkColor",n("palette-text-primary")),Em(t.Avatar,"defaultBg",n("palette-grey-600")),Em(t.Button,"inheritContainedBg",n("palette-grey-800")),Em(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),Em(t.Chip,"defaultBorder",n("palette-grey-700")),Em(t.Chip,"defaultAvatarColor",n("palette-grey-300")),Em(t.Chip,"defaultIconColor",n("palette-grey-300")),Em(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Em(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Em(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Em(t.LinearProgress,"primaryBg",r(Ah,t.primary.main,.5)),Em(t.LinearProgress,"secondaryBg",r(Ah,t.secondary.main,.5)),Em(t.LinearProgress,"errorBg",r(Ah,t.error.main,.5)),Em(t.LinearProgress,"infoBg",r(Ah,t.info.main,.5)),Em(t.LinearProgress,"successBg",r(Ah,t.success.main,.5)),Em(t.LinearProgress,"warningBg",r(Ah,t.warning.main,.5)),Em(t.Skeleton,"bg",b?r(Rh,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),Em(t.Slider,"primaryTrack",r(Ah,t.primary.main,.5)),Em(t.Slider,"secondaryTrack",r(Ah,t.secondary.main,.5)),Em(t.Slider,"errorTrack",r(Ah,t.error.main,.5)),Em(t.Slider,"infoTrack",r(Ah,t.info.main,.5)),Em(t.Slider,"successTrack",r(Ah,t.success.main,.5)),Em(t.Slider,"warningTrack",r(Ah,t.warning.main,.5));const e=b?r(Nh,t.background.default,.985):Mh(t.background.default,.98);Em(t.SnackbarContent,"bg",e),Em(t.SnackbarContent,"color",_m(()=>b?Yh.text.primary:t.getContrastText(e))),Em(t.SpeedDialAction,"fabHoverBg",Mh(t.background.paper,.15)),Em(t.StepConnector,"border",n("palette-grey-600")),Em(t.StepContent,"border",n("palette-grey-600")),Em(t.Switch,"defaultColor",n("palette-grey-300")),Em(t.Switch,"defaultDisabledColor",n("palette-grey-600")),Em(t.Switch,"primaryDisabledColor",r(Ah,t.primary.main,.55)),Em(t.Switch,"secondaryDisabledColor",r(Ah,t.secondary.main,.55)),Em(t.Switch,"errorDisabledColor",r(Ah,t.error.main,.55)),Em(t.Switch,"infoDisabledColor",r(Ah,t.info.main,.55)),Em(t.Switch,"successDisabledColor",r(Ah,t.success.main,.55)),Em(t.Switch,"warningDisabledColor",r(Ah,t.warning.main,.55)),Em(t.TableCell,"border",r(Ah,r(Rh,t.divider,1),.68)),Em(t.Tooltip,"bg",r(Rh,t.grey[700],.92))}Om(t.background,"default"),Om(t.background,"paper"),Om(t.common,"background"),Om(t.common,"onBackground"),Om(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&Em(t[e],"mainChannel",Eh(Cm(n.main))),n.light&&Em(t[e],"lightChannel",Eh(Cm(n.light))),n.dark&&Em(t[e],"darkChannel",Eh(Cm(n.dark))),n.contrastText&&Em(t[e],"contrastTextChannel",Eh(Cm(n.contrastText))),"text"===e&&(Om(t[e],"primary"),Om(t[e],"secondary")),"action"===e&&(n.active&&Om(t[e],"active"),n.selected&&Om(t[e],"selected")))})}),k=t.reduce((e,t)=>Vp(e,t),k);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Sm(k),enableContrastVars:a},{vars:C,generateThemeVars:O,generateStyleSheets:_}=function(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:p}=Kh(u,t);let f=p;const h={},{[l]:m,...g}=a;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Kh(n,t);f=Vp(f,i),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=Kh(m,t);f=Vp(f,r),h[l]={css:e,vars:n}}function v(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Vp(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(k,E);return k.vars=C,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([e,t])=>{k[e]=t}),k.generateThemeVars=O,k.generateStyleSheets=_,k.generateSpacing=function(){return yf(c.spacing,pf(this))},k.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...Hf,...c?.unstable_sxConfig},k.unstable_sx=function(e){return qf({sx:e,theme:this})},k.toRuntimeSource=hm,k}function Pm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:em({...!0===n?{}:n.palette,mode:t})})}function Am(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return vm(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=vm({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},Pm(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},Pm(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),Rm({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const Lm=Am();function Nm(){const e=Jf(Lm);return e[jc]||e}function Mm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Im=e=>Mm(e)&&"classes"!==e,Fm=function(e={}){const{themeId:t,defaultTheme:n=ch,rootShouldForwardProp:r=dh,slotShouldForwardProp:o=dh}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==qf));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=fh(vh(a)),...c}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let h=dh;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=Lp(e,{shouldForwardProp:h,label:gh(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return hh(t,e,t.theme.modularCssLayers?d:void 0)};if(Wp(e)){const t=uh(e);return function(e){return t.variants?hh(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?ph(t.style,d):t.style}}return e},v=(...t)=>{const r=[],o=t.map(g),a=[];if(r.push(i),n&&u&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=hh(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!p&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?mh(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),f||a.push(qf),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(v.withConfig=m.withConfig),v}}({themeId:jc,defaultTheme:Lm,rootShouldForwardProp:Im});function $m(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function jm(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jm(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jm(e))&&(r&&(r+=" "),r+=t);return r}function Bm(e){return Pp.jsx(eh,{...e,defaultTheme:Lm,themeId:jc})}const Dm=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Wh.theme=r.theme,o=uh(e(Wh)),t=o,n=r.theme),o}};function Wm(e){return jh(e)}function Um(e){return sh("MuiSvgIcon",e)}lh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vm=Fm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ef(n.color)}`],t[`fontSize${ef(n.fontSize)}`]]}})(Dm(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Km=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,h=l.isValidElement(r)&&"svg"===r.type,m={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h},g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return Hh({root:["root","inherit"!==t&&`color${ef(t)}`,`fontSize${ef(n)}`]},Um,r)})(m);return Pp.jsxs(Vm,{as:a,className:zm(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...f,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?Pp.jsx("title",{children:d}):null]})});function Hm(e,t){function n(t,n){return Pp.jsx(Km,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Km.muiName,l.memo(l.forwardRef(n))}function qm(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Gm(e){return e&&e.ownerDocument||document}function Ym(e){return Gm(e).defaultView||window}function Xm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Qm(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=l.useRef(void 0!==t),[a,s]=l.useState(n);return[i?t:a,l.useCallback(e=>{i||s(e)},[])]}function Jm(e){const t=l.useRef(e);return xh(()=>{t.current=e}),l.useRef((...e)=>(0,t.current)(...e)).current}function Zm(...e){const t=l.useRef(void 0),n=l.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return l.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function eg(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=zm(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=zm(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Km.muiName="SvgIcon";const tg={};function ng(e,t){const n=l.useRef(tg);return n.current===tg&&(n.current=e(t)),n}const rg=[];class og{static create(){return new og}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ig(){const e=ng(og.create).current;var t;return t=e.disposeEffect,l.useEffect(t,rg),e}const ag=e=>e.scrollTop;function sg(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function lg(e){return"string"==typeof e}function ug(e,t,n){return void 0===e||lg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function cg(e,t,n){return"function"==typeof e?e(t,n):e}function dg(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function pg(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function fg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bh(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=dg({...o,...r}),s=pg(r),l=pg(o),u=t(a),c=bh(u?.className,n?.className,i,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},p={...u,...n,...l,...s};return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function hg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=c[e]||r,h=cg(d[e],o),{props:{component:m,...g},internalRef:v}=fg({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=Zm(v,h?.ref,t.ref),b="root"===e?m||u:m;return[f,ug(f,{..."root"===e&&!u&&!c[e]&&a,..."root"!==e&&!c[e]&&a,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:y},o)]}function mg(e){return sh("MuiPaper",e)}lh("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gg=Fm("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Dm(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vg=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiPaper"}),r=Nm(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Hh({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},mg,o)})(c);return Pp.jsx(gg,{as:i,ownerState:c,className:zm(d.root,o),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${Th("#fff",ym(a))}, ${Th("#fff",ym(a))})`}},...u.style}})});function yg(e){try{return e.matches(":focus-visible")}catch(e){}return!1}class bg{static create(){return new bg}static use(){const e=ng(bg.create).current,[t,n]=l.useState(!1);return e.shouldMount=t,e.setShouldMount=n,l.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const wg=lh("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),xg=yp`
|
|
31
|
+
*/function pf(e,t){return of(e,t)}const ff=[];function hf(e){return ff[0]=e,Mp(ff)}var mf,gf,vf={exports:{}},yf={};function bf(){if(mf)return yf;mf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case i:return f;default:return h}}case t:return h}}}return yf.ContextConsumer=i,yf.ContextProvider=a,yf.Element=e,yf.ForwardRef=s,yf.Fragment=n,yf.Lazy=d,yf.Memo=c,yf.Portal=t,yf.Profiler=o,yf.StrictMode=r,yf.Suspense=l,yf.SuspenseList=u,yf.isContextConsumer=function(e){return h(e)===i},yf.isContextProvider=function(e){return h(e)===a},yf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},yf.isForwardRef=function(e){return h(e)===s},yf.isFragment=function(e){return h(e)===n},yf.isLazy=function(e){return h(e)===d},yf.isMemo=function(e){return h(e)===c},yf.isPortal=function(e){return h(e)===t},yf.isProfiler=function(e){return h(e)===o},yf.isStrictMode=function(e){return h(e)===r},yf.isSuspense=function(e){return h(e)===l},yf.isSuspenseList=function(e){return h(e)===u},yf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},yf.typeOf=h,yf}function wf(){return gf||(gf=1,vf.exports=bf()),vf.exports}var xf=wf();function kf(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Sf(e){if(l.isValidElement(e)||xf.isValidElementType(e)||!kf(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Sf(e[n])}),t}function Ef(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kf(e)&&kf(t)&&Object.keys(t).forEach(o=>{l.isValidElement(t[o])||xf.isValidElementType(t[o])?r[o]=t[o]:kf(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kf(e[o])?r[o]=Ef(e[o],t[o],n):n.clone?r[o]=kf(t[o])?Sf(t[o]):t[o]:r[o]=t[o]}),r}function Cf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return{keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}function Of(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const Tf={borderRadius:4};function _f(e,t){return t?Ef(e,t,{clone:!1}):e}const Rf={xs:0,sm:600,md:900,lg:1200,xl:1536},Pf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rf[e]}px)`},Af={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Rf[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Lf(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pf;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Pf;return Object.keys(t).reduce((o,i)=>{if(a=e.keys,"@"===(s=i)||s.startsWith("@")&&(a.some(e=>s.startsWith(`@${e}`))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}(r.containerQueries?r:Af,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||Rf).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}var a,s;return o},{})}return n(t)}function Nf(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Mf(e){if("string"!=typeof e)throw new Error(gd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function If(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ff(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:If(e,n)||r,t&&(o=t(o,r,e)),o}function $f(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=If(e.theme,r)||{};return Lf(e,i,e=>{let r=Ff(a,o,e);return e===r&&"string"==typeof e&&(r=Ff(a,o,`${t}${"default"===e?"":Mf(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const jf={m:"margin",p:"padding"},zf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Df=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Bf[e])return[e];e=Bf[e]}const[t,n]=e.split(""),r=jf[t],o=zf[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Wf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Uf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Vf(e,t,n,r){const o=If(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function Kf(e){return Vf(e,"spacing",8)}function Hf(e,t){return"string"==typeof t||null==t?t:e(t)}function qf(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Hf(t,n),e),{})}(Df(n),r);return Lf(e,e[n],o)}function Gf(e,t){const n=Kf(e.theme);return Object.keys(e).map(r=>qf(e,t,r,n)).reduce(_f,{})}function Yf(e){return Gf(e,Wf)}function Xf(e){return Gf(e,Uf)}function Qf(e=8,t=Kf({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}function Jf(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?_f(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Zf(e){return"number"!=typeof e?e:`${e}px solid`}function eh(e,t){return $f({prop:e,themeKey:"borders",transform:t})}Yf.propTypes={},Yf.filterProps=Wf,Xf.propTypes={},Xf.filterProps=Uf;const th=eh("border",Zf),nh=eh("borderTop",Zf),rh=eh("borderRight",Zf),oh=eh("borderBottom",Zf),ih=eh("borderLeft",Zf),ah=eh("borderColor"),sh=eh("borderTopColor"),lh=eh("borderRightColor"),uh=eh("borderBottomColor"),ch=eh("borderLeftColor"),dh=eh("outline",Zf),ph=eh("outlineColor"),fh=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Vf(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Hf(t,e)});return Lf(e,e.borderRadius,n)}return null};fh.propTypes={},fh.filterProps=["borderRadius"],Jf(th,nh,rh,oh,ih,ah,sh,lh,uh,ch,fh,dh,ph);const hh=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Vf(e.theme,"spacing",8),n=e=>({gap:Hf(t,e)});return Lf(e,e.gap,n)}return null};hh.propTypes={},hh.filterProps=["gap"];const mh=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Vf(e.theme,"spacing",8),n=e=>({columnGap:Hf(t,e)});return Lf(e,e.columnGap,n)}return null};mh.propTypes={},mh.filterProps=["columnGap"];const gh=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Vf(e.theme,"spacing",8),n=e=>({rowGap:Hf(t,e)});return Lf(e,e.rowGap,n)}return null};gh.propTypes={},gh.filterProps=["rowGap"];function vh(e,t){return"grey"===t?t:e}Jf(hh,mh,gh,$f({prop:"gridColumn"}),$f({prop:"gridRow"}),$f({prop:"gridAutoFlow"}),$f({prop:"gridAutoColumns"}),$f({prop:"gridAutoRows"}),$f({prop:"gridTemplateColumns"}),$f({prop:"gridTemplateRows"}),$f({prop:"gridTemplateAreas"}),$f({prop:"gridArea"}));function yh(e){return e<=1&&0!==e?100*e+"%":e}Jf($f({prop:"color",themeKey:"palette",transform:vh}),$f({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vh}),$f({prop:"backgroundColor",themeKey:"palette",transform:vh}));const bh=$f({prop:"width",transform:yh}),wh=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Rf[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:yh(t)}};return Lf(e,e.maxWidth,t)}return null};wh.filterProps=["maxWidth"];const xh=$f({prop:"minWidth",transform:yh}),kh=$f({prop:"height",transform:yh}),Sh=$f({prop:"maxHeight",transform:yh}),Eh=$f({prop:"minHeight",transform:yh});$f({prop:"size",cssProperty:"width",transform:yh}),$f({prop:"size",cssProperty:"height",transform:yh});Jf(bh,wh,xh,kh,Sh,Eh,$f({prop:"boxSizing"}));const Ch={border:{themeKey:"borders",transform:Zf},borderTop:{themeKey:"borders",transform:Zf},borderRight:{themeKey:"borders",transform:Zf},borderBottom:{themeKey:"borders",transform:Zf},borderLeft:{themeKey:"borders",transform:Zf},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zf},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:fh},color:{themeKey:"palette",transform:vh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vh},backgroundColor:{themeKey:"palette",transform:vh},p:{style:Xf},pt:{style:Xf},pr:{style:Xf},pb:{style:Xf},pl:{style:Xf},px:{style:Xf},py:{style:Xf},padding:{style:Xf},paddingTop:{style:Xf},paddingRight:{style:Xf},paddingBottom:{style:Xf},paddingLeft:{style:Xf},paddingX:{style:Xf},paddingY:{style:Xf},paddingInline:{style:Xf},paddingInlineStart:{style:Xf},paddingInlineEnd:{style:Xf},paddingBlock:{style:Xf},paddingBlockStart:{style:Xf},paddingBlockEnd:{style:Xf},m:{style:Yf},mt:{style:Yf},mr:{style:Yf},mb:{style:Yf},ml:{style:Yf},mx:{style:Yf},my:{style:Yf},margin:{style:Yf},marginTop:{style:Yf},marginRight:{style:Yf},marginBottom:{style:Yf},marginLeft:{style:Yf},marginX:{style:Yf},marginY:{style:Yf},marginInline:{style:Yf},marginInlineStart:{style:Yf},marginInlineEnd:{style:Yf},marginBlock:{style:Yf},marginBlockStart:{style:Yf},marginBlockEnd:{style:Yf},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:hh},rowGap:{style:gh},columnGap:{style:mh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yh},maxWidth:{style:wh},minWidth:{transform:yh},height:{transform:yh},maxHeight:{transform:yh},minHeight:{transform:yh},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Oh=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=If(n,s)||{};if(u)return u(o);return Lf(o,t,t=>{let n=Ff(c,l,t);return t===n&&"string"==typeof t&&(n=Ff(c,l,`${e}${"default"===t?"":Mf(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ch;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const s=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let u=s;return Object.keys(r).forEach(n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=i)if("object"==typeof i)if(a[n])u=_f(u,e(n,i,o,a));else{const e=Lf({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=_f(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=_f(u,e(n,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Of(o,Nf(l,u))}:Of(o,Nf(l,u))}return Array.isArray(r)?r.map(s):s(r)}}();function Th(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function _h(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=Ef({breakpoints:Cf(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Qf(o),shape:{...Tf,...i}},a);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(s),s.applyStyles=Th,s=t.reduce((e,t)=>Ef(e,t),s),s.unstable_sxConfig={...Ch,...a?.unstable_sxConfig},s.unstable_sx=function(e){return Oh({sx:e,theme:this})},s}function Rh(e=null){const t=l.useContext(Wp);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}Oh.filterProps=["sx"];const Ph=_h();function Ah(e=Ph){return Rh(e)}function Lh(e){const t=hf(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Nh({styles:e,themeId:t,defaultTheme:n={}}){const r=Ah(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>Lh("function"==typeof e?e(o):e)):Lh(i)),cf.jsx(df,{styles:i})}function Mh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ch;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return kf(n)?{...r,...n}:r}:{...r,...t},{...o,sx:i}}const Ih=e=>e,Fh=(()=>{let e=Ih;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ih}}})();function $h(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$h(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$h(e))&&(r&&(r+=" "),r+=t);return r}const zh={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bh(e,t,n="Mui"){const r=zh[t];return r?`${n}-${r}`:`${Fh.generate(e)}-${t}`}function Dh(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Bh(e,t,n)}),r}function Wh(e){const{variants:t,...n}=e,r={variants:t,style:hf(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=hf(e.style))}),r}const Uh=_h();function Vh(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Kh(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Hh(e){return e?(t,n)=>n[e]:null}function qh(e,t,n){const r="function"==typeof t?t(e):t;if(Array.isArray(r))return r.flatMap(t=>qh(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Kh(r.style,n):r.style;else{const{variants:e,...o}=r;t=n?Kh(hf(o),n):o}return Gh(e,r.variants,[t],n)}return r?.isProcessed?n?Kh(hf(r.style),n):r.style:n?Kh(hf(r),n):r}function Gh(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if("function"==typeof a.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"==typeof a.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Kh(hf(a.style(o)),r):a.style(o))):n.push(r?Kh(hf(a.style),r):a.style)}return n}function Yh(e,t){}function Xh(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function Qh(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jh(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qh(e))&&(r&&(r+=" "),r+=t);return r}function Zh(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)r[i]={...e[i],...r[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],a=t[i];if(a)if(o){r[i]={...a};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;r[i][t]=Zh(o[t],a[t],n)}}else r[i]=a;else r[i]=o||{}}else"className"===i&&n&&t.className?r.className=Jh(e?.className,t?.className):"style"===i&&n&&t.style?r.style={...e?.style,...t?.style}:void 0===r[i]&&(r[i]=e[i])}return r}const em="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;function tm(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function nm(e){if(e.type)return e;if("#"===e.charAt(0))return nm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(gd(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(gd(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}const rm=(e,t)=>{try{return(e=>{const t=nm(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function om(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function im(e){e=nm(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),om({type:s,values:l})}function am(e){let t="hsl"===(e=nm(e)).type||"hsla"===e.type?nm(im(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function sm(e,t){return e=nm(e),t=tm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,om(e)}function lm(e,t,n){try{return sm(e,t)}catch(t){return e}}function um(e,t){if(e=nm(e),t=tm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return om(e)}function cm(e,t,n){try{return um(e,t)}catch(t){return e}}function dm(e,t){if(e=nm(e),t=tm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return om(e)}function pm(e,t,n){try{return dm(e,t)}catch(t){return e}}function fm(e,t,n){try{return function(e,t=.15){return am(e)>.5?um(e,t):dm(e,t)}(e,t)}catch(t){return e}}const hm=l.createContext(),mm=()=>l.useContext(hm)??!1,gm=l.createContext(void 0);function vm({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Zh(o.defaultProps,r,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?r:Zh(o,r,t.components.mergeClassNameAndStyle)}({props:e,name:t,theme:{components:l.useContext(gm)}})}let ym=0;const bm={...c}.useId;function wm(e){if(void 0!==bm){const t=bm();return e??t}return function(e){const[t,n]=l.useState(e),r=e||t;return l.useEffect(()=>{null==t&&(ym+=1,n(`mui-${ym}`))},[t]),r}(e)}const xm={theme:void 0};function km(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Sm=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})};function Em(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};var s,l;return s=(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||r&&r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:l}),Sm(i,e,`var(${r})`,s),Sm(a,e,`var(${r}, ${l})`,s)}},l=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{(!l||l&&!l([...n,t]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):s([...n,t],o,r))})}(e),{css:o,vars:i,varsWithDefaults:a}}function Cm(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let e=0;e<i.length;e+=1){const r=i[e];r&&(a+=(!0===s?"":" ")+t(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[o]=a}return r}function Om(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}function Tm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fc.white,default:Fc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const _m=Tm();function Rm(){return{text:{primary:Fc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pm=Rm();function Am(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=dm(e.main,o):"dark"===t&&(e.dark=um(e.main,i)))}function Lm(e,t,n,r,o){const i=o.light||o,a=o.dark||1.5*o;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*i).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function Nm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||function(e="light"){return"dark"===e?{main:Yc,light:Gc,dark:Xc}:{main:Qc,light:Xc,dark:Jc}}(t),s=e.secondary||function(e="light"){return"dark"===e?{main:Uc,light:Wc,dark:Kc}:{main:Hc,light:Vc,dark:qc}}(t),l=e.error||function(e="light"){return"dark"===e?{main:zc,light:$c,dark:Bc}:{main:Bc,light:jc,dark:Dc}}(t),u=e.info||function(e="light"){return"dark"===e?{main:ed,light:Zc,dark:nd}:{main:nd,light:td,dark:rd}}(t),c=e.success||function(e="light"){return"dark"===e?{main:id,light:od,dark:sd}:{main:ld,light:ad,dark:ud}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:dd,light:cd,dark:fd}:{main:"#ed6c02",light:pd,dark:hd}}(t);function p(e){if(o)return function(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}(e);const t=function(e,t){const n=am(e),r=am(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Pm.text.primary)>=n?Pm.text.primary:_m.text.primary;return t}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(gd(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(gd(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(Lm(o,e,"light",i,r),Lm(o,e,"dark",a,r)):(Am(e,"light",i,r),Am(e,"dark",a,r)),e.contrastText||(e.contrastText=p(e.main)),e};let h;"light"===t?h=Tm():"dark"===t&&(h=Rm());return Ef({common:{...Fc},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:c,name:"success"}),grey:md,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...h},i)}function Mm(e){const t={};return Object.entries(e).forEach(e=>{const[n,r]=e;"object"==typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const Im={textTransform:"uppercase"},Fm='"Roboto", "Helvetica", "Arial", sans-serif';function $m(e,t){const{fontFamily:n=Fm,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,p=r/14,f=c||(e=>e/l*p+"rem"),h=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===Fm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...u};var a},m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,Im),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Im),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ef({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function jm(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const zm=["none",jm(0,2,1,-1,0,1,1,0,0,1,3,0),jm(0,3,1,-2,0,2,2,0,0,1,5,0),jm(0,3,3,-2,0,3,4,0,0,1,8,0),jm(0,2,4,-1,0,4,5,0,0,1,10,0),jm(0,3,5,-1,0,5,8,0,0,1,14,0),jm(0,3,5,-1,0,6,10,0,0,1,18,0),jm(0,4,5,-2,0,7,10,1,0,2,16,1),jm(0,5,5,-3,0,8,10,1,0,3,14,2),jm(0,5,6,-3,0,9,12,1,0,3,16,2),jm(0,6,6,-3,0,10,14,1,0,4,18,3),jm(0,6,7,-4,0,11,15,1,0,4,20,3),jm(0,7,8,-4,0,12,17,2,0,5,22,4),jm(0,7,8,-4,0,13,19,2,0,5,24,4),jm(0,7,9,-4,0,14,21,2,0,5,26,4),jm(0,8,9,-5,0,15,22,2,0,6,28,5),jm(0,8,10,-5,0,16,24,2,0,6,30,5),jm(0,8,11,-5,0,17,26,2,0,6,32,5),jm(0,9,11,-5,0,18,28,2,0,7,34,6),jm(0,9,12,-6,0,19,29,2,0,7,36,6),jm(0,10,13,-6,0,20,31,3,0,8,38,7),jm(0,10,13,-6,0,21,33,3,0,8,40,7),jm(0,10,14,-6,0,22,35,3,0,8,42,7),jm(0,11,14,-7,0,23,36,3,0,9,44,8),jm(0,11,15,-7,0,24,38,3,0,9,46,8)],Bm={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Dm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wm(e){return`${Math.round(e)}ms`}function Um(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Vm(e){const t={...Bm,...e.easing},n={...Dm,...e.duration};return{getAutoHeightDuration:Um,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Wm(o)} ${i} ${"string"==typeof a?a:Wm(a)}`).join(",")},...e,easing:t,duration:n}}const Km={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hm(e){return kf(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function qm(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let r=0;r<n.length;r++){const[o,i]=n[r];!Hm(i)||o.startsWith("unstable_")?delete t[o]:kf(i)&&(t[o]={...i},e(t[o]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Gm(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}function Ym(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:sm(t,(e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n})(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Gm(n)})`:dm(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Gm(n)})`:um(t,n)}})}function Xm(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:u,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(gd(20));const d=Nm({...i,colorSpace:u}),p=_h(e);let f=Ef(p,{mixins:(h=p.breakpoints,m=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:zm.slice(),typography:$m(d,s),transitions:Vm(a),zIndex:{...Km}});var h,m;return f=Ef(f,c),f=t.reduce((e,t)=>Ef(e,t),f),f.unstable_sxConfig={...Ch,...c?.unstable_sxConfig},f.unstable_sx=function(e){return Oh({sx:e,theme:this})},f.toRuntimeSource=qm,Ym(f),f}function Qm(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Jm=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Qm(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Zm(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function eg(e){return"dark"===e?Jm:[]}function tg(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var ng=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return(a=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${a?`${a}-`:""}overlays-${t}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(e=>{o[e]=n[e],delete n[e]}),"media"===i?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&"media"!==i)return`${r}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}var a;return r};function rg(e,t,n){!e[t]&&n&&(e[t]=n)}function og(e){return"string"==typeof e&&e.startsWith("hsl")?im(e):e}function ig(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rm(og(e[t])))}const ag=e=>{try{return e()}catch(e){}};function sg(e,t,n,r,o){if(!n)return;n=!0===n?{}:n;const i="dark"===o?"dark":"light";if(!r)return void(t[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Nm({...t,colorSpace:o});return{palette:a,opacity:{...Zm(a.mode),...n},overlays:r||eg(a.mode),...i}}({...n,palette:{mode:i,...n?.palette},colorSpace:e}));const{palette:a,...s}=Xm({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Zm(i),...n?.opacity},overlays:n?.overlays||eg(i)},s}function lg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=tg,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],p=r||(n.light&&"light"!==d?"light":d),f=((e="mui")=>km(e))(i),{[p]:h,light:m,dark:g,...v}=n,y={...v};let b,w=h;if(("dark"===p&&!("dark"in n)||"light"===p&&!("light"in n))&&(w=!0),!w)throw new Error(gd(21,p));a&&(b="oklch");const x=sg(b,y,w,c,p);m&&!y.light&&sg(b,y,m,void 0,"light"),g&&!y.dark&&sg(b,y,g,void 0,"dark");let k={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:f,colorSchemes:y,font:{...Mm(x.typography),...x.font},spacing:(S=c.spacing,"number"==typeof S?`${S}px`:"string"==typeof S||"function"==typeof S||Array.isArray(S)?S:"8px")};var S;Object.keys(k.colorSchemes).forEach(e=>{const t=k.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return f(e,t[r][o])};function r(e,t,n){if(b){let r;return e===lm&&(r=`transparent ${(100*(1-n)).toFixed(0)}%`),e===cm&&(r=`#000 ${(100*n).toFixed(0)}%`),e===pm&&(r=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if("light"===t.mode&&(rg(t.common,"background","#fff"),rg(t.common,"onBackground","#000")),"dark"===t.mode&&(rg(t.common,"background","#000"),rg(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){rg(t.Alert,"errorColor",r(cm,t.error.light,.6)),rg(t.Alert,"infoColor",r(cm,t.info.light,.6)),rg(t.Alert,"successColor",r(cm,t.success.light,.6)),rg(t.Alert,"warningColor",r(cm,t.warning.light,.6)),rg(t.Alert,"errorFilledBg",n("palette-error-main")),rg(t.Alert,"infoFilledBg",n("palette-info-main")),rg(t.Alert,"successFilledBg",n("palette-success-main")),rg(t.Alert,"warningFilledBg",n("palette-warning-main")),rg(t.Alert,"errorFilledColor",ag(()=>t.getContrastText(t.error.main))),rg(t.Alert,"infoFilledColor",ag(()=>t.getContrastText(t.info.main))),rg(t.Alert,"successFilledColor",ag(()=>t.getContrastText(t.success.main))),rg(t.Alert,"warningFilledColor",ag(()=>t.getContrastText(t.warning.main))),rg(t.Alert,"errorStandardBg",r(pm,t.error.light,.9)),rg(t.Alert,"infoStandardBg",r(pm,t.info.light,.9)),rg(t.Alert,"successStandardBg",r(pm,t.success.light,.9)),rg(t.Alert,"warningStandardBg",r(pm,t.warning.light,.9)),rg(t.Alert,"errorIconColor",n("palette-error-main")),rg(t.Alert,"infoIconColor",n("palette-info-main")),rg(t.Alert,"successIconColor",n("palette-success-main")),rg(t.Alert,"warningIconColor",n("palette-warning-main")),rg(t.AppBar,"defaultBg",n("palette-grey-100")),rg(t.Avatar,"defaultBg",n("palette-grey-400")),rg(t.Button,"inheritContainedBg",n("palette-grey-300")),rg(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),rg(t.Chip,"defaultBorder",n("palette-grey-400")),rg(t.Chip,"defaultAvatarColor",n("palette-grey-700")),rg(t.Chip,"defaultIconColor",n("palette-grey-700")),rg(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),rg(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),rg(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),rg(t.LinearProgress,"primaryBg",r(pm,t.primary.main,.62)),rg(t.LinearProgress,"secondaryBg",r(pm,t.secondary.main,.62)),rg(t.LinearProgress,"errorBg",r(pm,t.error.main,.62)),rg(t.LinearProgress,"infoBg",r(pm,t.info.main,.62)),rg(t.LinearProgress,"successBg",r(pm,t.success.main,.62)),rg(t.LinearProgress,"warningBg",r(pm,t.warning.main,.62)),rg(t.Skeleton,"bg",b?r(lm,t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),rg(t.Slider,"primaryTrack",r(pm,t.primary.main,.62)),rg(t.Slider,"secondaryTrack",r(pm,t.secondary.main,.62)),rg(t.Slider,"errorTrack",r(pm,t.error.main,.62)),rg(t.Slider,"infoTrack",r(pm,t.info.main,.62)),rg(t.Slider,"successTrack",r(pm,t.success.main,.62)),rg(t.Slider,"warningTrack",r(pm,t.warning.main,.62));const e=b?r(cm,t.background.default,.6825):fm(t.background.default,.8);rg(t.SnackbarContent,"bg",e),rg(t.SnackbarContent,"color",ag(()=>b?Pm.text.primary:t.getContrastText(e))),rg(t.SpeedDialAction,"fabHoverBg",fm(t.background.paper,.15)),rg(t.StepConnector,"border",n("palette-grey-400")),rg(t.StepContent,"border",n("palette-grey-400")),rg(t.Switch,"defaultColor",n("palette-common-white")),rg(t.Switch,"defaultDisabledColor",n("palette-grey-100")),rg(t.Switch,"primaryDisabledColor",r(pm,t.primary.main,.62)),rg(t.Switch,"secondaryDisabledColor",r(pm,t.secondary.main,.62)),rg(t.Switch,"errorDisabledColor",r(pm,t.error.main,.62)),rg(t.Switch,"infoDisabledColor",r(pm,t.info.main,.62)),rg(t.Switch,"successDisabledColor",r(pm,t.success.main,.62)),rg(t.Switch,"warningDisabledColor",r(pm,t.warning.main,.62)),rg(t.TableCell,"border",r(pm,r(lm,t.divider,1),.88)),rg(t.Tooltip,"bg",r(lm,t.grey[700],.92))}if("dark"===t.mode){rg(t.Alert,"errorColor",r(pm,t.error.light,.6)),rg(t.Alert,"infoColor",r(pm,t.info.light,.6)),rg(t.Alert,"successColor",r(pm,t.success.light,.6)),rg(t.Alert,"warningColor",r(pm,t.warning.light,.6)),rg(t.Alert,"errorFilledBg",n("palette-error-dark")),rg(t.Alert,"infoFilledBg",n("palette-info-dark")),rg(t.Alert,"successFilledBg",n("palette-success-dark")),rg(t.Alert,"warningFilledBg",n("palette-warning-dark")),rg(t.Alert,"errorFilledColor",ag(()=>t.getContrastText(t.error.dark))),rg(t.Alert,"infoFilledColor",ag(()=>t.getContrastText(t.info.dark))),rg(t.Alert,"successFilledColor",ag(()=>t.getContrastText(t.success.dark))),rg(t.Alert,"warningFilledColor",ag(()=>t.getContrastText(t.warning.dark))),rg(t.Alert,"errorStandardBg",r(cm,t.error.light,.9)),rg(t.Alert,"infoStandardBg",r(cm,t.info.light,.9)),rg(t.Alert,"successStandardBg",r(cm,t.success.light,.9)),rg(t.Alert,"warningStandardBg",r(cm,t.warning.light,.9)),rg(t.Alert,"errorIconColor",n("palette-error-main")),rg(t.Alert,"infoIconColor",n("palette-info-main")),rg(t.Alert,"successIconColor",n("palette-success-main")),rg(t.Alert,"warningIconColor",n("palette-warning-main")),rg(t.AppBar,"defaultBg",n("palette-grey-900")),rg(t.AppBar,"darkBg",n("palette-background-paper")),rg(t.AppBar,"darkColor",n("palette-text-primary")),rg(t.Avatar,"defaultBg",n("palette-grey-600")),rg(t.Button,"inheritContainedBg",n("palette-grey-800")),rg(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),rg(t.Chip,"defaultBorder",n("palette-grey-700")),rg(t.Chip,"defaultAvatarColor",n("palette-grey-300")),rg(t.Chip,"defaultIconColor",n("palette-grey-300")),rg(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),rg(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),rg(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),rg(t.LinearProgress,"primaryBg",r(cm,t.primary.main,.5)),rg(t.LinearProgress,"secondaryBg",r(cm,t.secondary.main,.5)),rg(t.LinearProgress,"errorBg",r(cm,t.error.main,.5)),rg(t.LinearProgress,"infoBg",r(cm,t.info.main,.5)),rg(t.LinearProgress,"successBg",r(cm,t.success.main,.5)),rg(t.LinearProgress,"warningBg",r(cm,t.warning.main,.5)),rg(t.Skeleton,"bg",b?r(lm,t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),rg(t.Slider,"primaryTrack",r(cm,t.primary.main,.5)),rg(t.Slider,"secondaryTrack",r(cm,t.secondary.main,.5)),rg(t.Slider,"errorTrack",r(cm,t.error.main,.5)),rg(t.Slider,"infoTrack",r(cm,t.info.main,.5)),rg(t.Slider,"successTrack",r(cm,t.success.main,.5)),rg(t.Slider,"warningTrack",r(cm,t.warning.main,.5));const e=b?r(pm,t.background.default,.985):fm(t.background.default,.98);rg(t.SnackbarContent,"bg",e),rg(t.SnackbarContent,"color",ag(()=>b?_m.text.primary:t.getContrastText(e))),rg(t.SpeedDialAction,"fabHoverBg",fm(t.background.paper,.15)),rg(t.StepConnector,"border",n("palette-grey-600")),rg(t.StepContent,"border",n("palette-grey-600")),rg(t.Switch,"defaultColor",n("palette-grey-300")),rg(t.Switch,"defaultDisabledColor",n("palette-grey-600")),rg(t.Switch,"primaryDisabledColor",r(cm,t.primary.main,.55)),rg(t.Switch,"secondaryDisabledColor",r(cm,t.secondary.main,.55)),rg(t.Switch,"errorDisabledColor",r(cm,t.error.main,.55)),rg(t.Switch,"infoDisabledColor",r(cm,t.info.main,.55)),rg(t.Switch,"successDisabledColor",r(cm,t.success.main,.55)),rg(t.Switch,"warningDisabledColor",r(cm,t.warning.main,.55)),rg(t.TableCell,"border",r(cm,r(lm,t.divider,1),.68)),rg(t.Tooltip,"bg",r(lm,t.grey[700],.92))}ig(t.background,"default"),ig(t.background,"paper"),ig(t.common,"background"),ig(t.common,"onBackground"),ig(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&rg(t[e],"mainChannel",rm(og(n.main))),n.light&&rg(t[e],"lightChannel",rm(og(n.light))),n.dark&&rg(t[e],"darkChannel",rm(og(n.dark))),n.contrastText&&rg(t[e],"contrastTextChannel",rm(og(n.contrastText))),"text"===e&&(ig(t[e],"primary"),ig(t[e],"secondary")),"action"===e&&(n.active&&ig(t[e],"active"),n.selected&&ig(t[e],"selected")))})}),k=t.reduce((e,t)=>Ef(e,t),k);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:ng(k),enableContrastVars:a},{vars:C,generateThemeVars:O,generateStyleSheets:T}=function(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:p}=Em(u,t);let f=p;const h={},{[l]:m,...g}=a;if(Object.entries(g||{}).forEach(([e,n])=>{const{vars:r,css:o,varsWithDefaults:i}=Em(n,t);f=Ef(f,i),h[e]={css:o,vars:r}}),m){const{css:e,vars:n,varsWithDefaults:r}=Em(m,t);f=Ef(f,r),h[l]={css:e,vars:n}}function v(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=Ef(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=a[o]?.palette?.mode,i=!r&&t?{colorScheme:t,...e}:{...e};s(n(o,{...i}),i)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=a[e]?.palette?.mode,i=!r&&o?{colorScheme:o,...t}:{...t};s(n(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}(k,E);return k.vars=C,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([e,t])=>{k[e]=t}),k.generateThemeVars=O,k.generateStyleSheets=T,k.generateSpacing=function(){return Qf(c.spacing,Kf(this))},k.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...Ch,...c?.unstable_sxConfig},k.unstable_sx=function(e){return Oh({sx:e,theme:this})},k.toRuntimeSource=qm,k}function ug(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Nm({...!0===n?{}:n.palette,mode:t})})}function cg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...a}=e,s=i||"light",l=o?.[s],u={...o,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in e))return Xm(e,...t);let r=n;"palette"in e||u[s]&&(!0!==u[s]?r=u[s].palette:"dark"===s&&(r={mode:"dark"}));const o=Xm({...e,palette:r},...t);return o.defaultColorScheme=s,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},ug(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},ug(o,"light",u.light)),o}return n||"light"in u||"light"!==s||(u.light=!0),lg({...a,colorSchemes:u,defaultColorScheme:s,..."boolean"!=typeof r&&r},...t)}const dg=cg();function pg(){const e=Ah(dg);return e[vd]||e}function fg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const hg=e=>fg(e)&&"classes"!==e,mg=function(e={}){const{themeId:t,defaultTheme:n=Uh,rootShouldForwardProp:r=Vh,slotShouldForwardProp:o=Vh}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,e=>e.filter(e=>e!==Oh));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:u=Hh(Xh(a)),...c}=t,d=n&&n.startsWith("Mui")||a?"components":"custom",p=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,f=l||!1;let h=Vh;"Root"===a||"root"===a?h=r:a?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=pf(e,{shouldForwardProp:h,label:Yh(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return qh(t,e,t.theme.modularCssLayers?d:void 0)};if(kf(e)){const t=Wh(e);return function(e){return t.variants?qh(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Kh(t.style,d):t.style}}return e},v=(...t)=>{const r=[],o=t.map(g),a=[];if(r.push(i),n&&u&&a.push(function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const t in r)o[t]=qh(e,r[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),n&&!p&&a.push(function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?Gh(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),f||a.push(Oh),Array.isArray(o[0])){const e=o.shift(),t=new Array(r.length).fill(""),n=new Array(a.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],r.unshift(i)}const s=[...r,...o,...a],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(v.withConfig=m.withConfig),v}}({themeId:vd,defaultTheme:dg,rootShouldForwardProp:hg});function gg(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function vg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=vg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=vg(e))&&(r&&(r+=" "),r+=t);return r}function bg(e){return cf.jsx(Nh,{...e,defaultTheme:dg,themeId:vd})}const wg=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(xm.theme=r.theme,o=Wh(e(xm)),t=o,n=r.theme),o}};function xg(e){return vm(e)}function kg(e){return Bh("MuiSvgIcon",e)}Dh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sg=mg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Mf(n.color)}`],t[`fontSize${Mf(n.fontSize)}`]]}})(wg(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Eg=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24",...f}=n,h=l.isValidElement(r)&&"svg"===r.type,m={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h},g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return Cm({root:["root","inherit"!==t&&`color${Mf(t)}`,`fontSize${Mf(n)}`]},kg,r)})(m);return cf.jsxs(Sg,{as:a,className:yg(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t,...g,...f,...h&&r.props,ownerState:m,children:[h?r.props.children:r,d?cf.jsx("title",{children:d}):null]})});function Cg(e,t){function n(t,n){return cf.jsx(Eg,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Eg.muiName,l.memo(l.forwardRef(n))}function Og(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Tg(e){return e&&e.ownerDocument||document}function _g(e){return Tg(e).defaultView||window}function Rg(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Pg(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=l.useRef(void 0!==t),[a,s]=l.useState(n);return[i?t:a,l.useCallback(e=>{i||s(e)},[])]}function Ag(e){const t=l.useRef(e);return em(()=>{t.current=e}),l.useRef((...e)=>(0,t.current)(...e)).current}function Lg(...e){const t=l.useRef(void 0),n=l.useCallback(t=>{const n=e.map(e=>{if(null==e)return null;if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return l.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}function Ng(e,t){if(!e)return t;function n(e,t){const n={};return Object.keys(t).forEach(r=>{(function(e,t){const n=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&n>=65&&n<=90&&"function"==typeof t})(r,t[r])&&"function"==typeof e[r]&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if("function"==typeof e||"function"==typeof t)return r=>{const o="function"==typeof t?t(r):t,i="function"==typeof e?e({...r,...o}):e,a=yg(r?.className,o?.className,i?.className),s=n(i,o);return{...o,...i,...s,...!!a&&{className:a},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const r=t,o=n(e,r),i=yg(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Eg.muiName="SvgIcon";const Mg={};function Ig(e,t){const n=l.useRef(Mg);return n.current===Mg&&(n.current=e(t)),n}const Fg=[];class $g{static create(){return new $g}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function jg(){const e=Ig($g.create).current;var t;return t=e.disposeEffect,l.useEffect(t,Fg),e}const zg=e=>e.scrollTop;function Bg(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Dg(e){return"string"==typeof e}function Wg(e,t,n){return void 0===e||Dg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ug(e,t,n){return"function"==typeof e?e(t,n):e}function Vg(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Kg(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function Hg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Jh(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Vg({...o,...r}),s=Kg(r),l=Kg(o),u=t(a),c=Jh(u?.className,n?.className,i,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},p={...u,...n,...l,...s};return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function qg(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=c[e]||r,h=Ug(d[e],o),{props:{component:m,...g},internalRef:v}=Hg({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=Lg(v,h?.ref,t.ref),b="root"===e?m||u:m;return[f,Wg(f,{..."root"===e&&!u&&!c[e]&&a,..."root"!==e&&!c[e]&&a,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:y},o)]}function Gg(e){return Bh("MuiPaper",e)}Dh("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yg=mg("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(wg(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Xg=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiPaper"}),r=pg(),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation",...u}=n,c={...n,component:i,elevation:a,square:s,variant:l},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Cm({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Gg,o)})(c);return cf.jsx(Yg,{as:i,ownerState:c,className:yg(d.root,o),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${sm("#fff",Qm(a))}, ${sm("#fff",Qm(a))})`}},...u.style}})});function Qg(e){try{return e.matches(":focus-visible")}catch(e){}return!1}class Jg{static create(){return new Jg}static use(){const e=Ig(Jg.create).current,[t,n]=l.useState(!1);return e.shouldMount=t,e.setShouldMount=n,l.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}const Zg=Dh("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ev=Qp`
|
|
32
32
|
0% {
|
|
33
33
|
transform: scale(0);
|
|
34
34
|
opacity: 0.1;
|
|
@@ -38,7 +38,7 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
38
38
|
transform: scale(1);
|
|
39
39
|
opacity: 0.3;
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`,tv=Qp`
|
|
42
42
|
0% {
|
|
43
43
|
opacity: 1;
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
46
46
|
100% {
|
|
47
47
|
opacity: 0;
|
|
48
48
|
}
|
|
49
|
-
`,
|
|
49
|
+
`,nv=Qp`
|
|
50
50
|
0% {
|
|
51
51
|
transform: scale(1);
|
|
52
52
|
}
|
|
@@ -58,23 +58,23 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
58
58
|
100% {
|
|
59
59
|
transform: scale(1);
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,rv=mg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ov=mg(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:u,timeout:c}=e,[d,p]=l.useState(!1),f=yg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},m=yg(n.child,d&&n.childLeaving,r&&n.childPulsate);return s||d||p(!0),l.useEffect(()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}},[u,s,c]),cf.jsx("span",{className:f,style:h,children:cf.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
62
62
|
opacity: 0;
|
|
63
63
|
position: absolute;
|
|
64
64
|
|
|
65
|
-
&.${
|
|
65
|
+
&.${Zg.rippleVisible} {
|
|
66
66
|
opacity: 0.3;
|
|
67
67
|
transform: scale(1);
|
|
68
|
-
animation-name: ${
|
|
68
|
+
animation-name: ${ev};
|
|
69
69
|
animation-duration: ${550}ms;
|
|
70
70
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
&.${
|
|
73
|
+
&.${Zg.ripplePulsate} {
|
|
74
74
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
& .${
|
|
77
|
+
& .${Zg.child} {
|
|
78
78
|
opacity: 1;
|
|
79
79
|
display: block;
|
|
80
80
|
width: 100%;
|
|
@@ -83,25 +83,25 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
83
83
|
background-color: currentColor;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
& .${
|
|
86
|
+
& .${Zg.childLeaving} {
|
|
87
87
|
opacity: 0;
|
|
88
|
-
animation-name: ${
|
|
88
|
+
animation-name: ${tv};
|
|
89
89
|
animation-duration: ${550}ms;
|
|
90
90
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
& .${
|
|
93
|
+
& .${Zg.childPulsate} {
|
|
94
94
|
position: absolute;
|
|
95
95
|
/* @noflip */
|
|
96
96
|
left: 0px;
|
|
97
97
|
top: 0;
|
|
98
|
-
animation-name: ${
|
|
98
|
+
animation-name: ${nv};
|
|
99
99
|
animation-duration: 2500ms;
|
|
100
100
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
101
101
|
animation-iteration-count: infinite;
|
|
102
102
|
animation-delay: 200ms;
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,iv=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i,...a}=n,[s,u]=l.useState([]),c=l.useRef(0),d=l.useRef(null);l.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const p=l.useRef(!1),f=jg(),h=l.useRef(null),m=l.useRef(null),g=l.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,cf.jsx(ov,{classes:{ripple:yg(o.ripple,Zg.ripple),rippleVisible:yg(o.rippleVisible,Zg.rippleVisible),ripplePulsate:yg(o.ripplePulsate,Zg.ripplePulsate),child:yg(o.child,Zg.child),childLeaving:yg(o.childLeaving,Zg.childLeaving),childPulsate:yg(o.childPulsate,Zg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=l.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[r,g,f]),y=l.useCallback(()=>{v({},{pulsate:!0})},[v]),b=l.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void f.start(0,()=>{b(e,t)});h.current=null,u(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return l.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),cf.jsx(rv,{className:yg(Zg.root,o.root,i),ref:m,...a,children:cf.jsx(lu,{component:null,exit:!0,children:s})})});function av(e){return Bh("MuiButtonBase",e)}const sv=Dh("MuiButtonBase",["root","disabled","focusVisible"]),lv=mg("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${sv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uv=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:f,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:v,onDragLeave:y,onFocus:b,onFocusVisible:w,onKeyDown:x,onKeyUp:k,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:O,onTouchMove:T,onTouchStart:_,tabIndex:R=0,TouchRippleProps:P,touchRippleRef:A,type:L,...N}=n,M=l.useRef(null),I=Jg.use(),F=Lg(I.ref,A),[$,j]=l.useState(!1);u&&$&&j(!1),l.useImperativeHandle(r,()=>({focusVisible:()=>{j(!0),M.current.focus()}}),[]);const z=I.shouldMount&&!c&&!u;l.useEffect(()=>{$&&p&&!c&&I.pulsate()},[c,p,$,I]);const B=cv(I,"start",S,d),D=cv(I,"stop",v,d),W=cv(I,"stop",y,d),U=cv(I,"stop",C,d),V=cv(I,"stop",e=>{$&&e.preventDefault(),E&&E(e)},d),K=cv(I,"start",_,d),H=cv(I,"stop",O,d),q=cv(I,"stop",T,d),G=cv(I,"stop",e=>{Qg(e.target)||j(!1),m&&m(e)},!1),Y=Ag(e=>{M.current||(M.current=e.currentTarget),Qg(e.target)&&(j(!0),w&&w(e)),b&&b(e)}),X=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},Q=Ag(e=>{p&&!e.repeat&&$&&" "===e.key&&I.stop(e,()=>{I.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))}),J=Ag(e=>{p&&" "===e.key&&$&&!e.defaultPrevented&&I.stop(e,()=>{I.pulsate(e)}),k&&k(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let Z=s;"button"===Z&&(N.href||N.to)&&(Z=h);const ee={};"button"===Z?(ee.type=void 0===L?"button":L,ee.disabled=u):(N.href||N.to||(ee.role="button"),u&&(ee["aria-disabled"]=u));const te=Lg(t,M),ne={...n,centerRipple:o,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:$},re=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Cm({root:["root",t&&"disabled",n&&"focusVisible"]},av,o);return n&&r&&(i.root+=` ${r}`),i})(ne);return cf.jsxs(lv,{as:Z,className:yg(re.root,a),ownerState:ne,onBlur:G,onClick:g,onContextMenu:D,onFocus:Y,onKeyDown:Q,onKeyUp:J,onMouseDown:B,onMouseLeave:V,onMouseUp:U,onDragLeave:W,onTouchEnd:H,onTouchMove:q,onTouchStart:K,ref:te,tabIndex:u?-1:R,type:L,...ee,...N,children:[i,z?cf.jsx(iv,{ref:F,center:o,...P}):null]})});function cv(e,t,n,r=!1){return Ag(o=>(n&&n(o),r||e[t](o),!0))}function dv(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function pv(e){return Bh("MuiCircularProgress",e)}Dh("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const fv=44,hv=Qp`
|
|
105
105
|
0% {
|
|
106
106
|
transform: rotate(0deg);
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
109
109
|
100% {
|
|
110
110
|
transform: rotate(360deg);
|
|
111
111
|
}
|
|
112
|
-
`,
|
|
112
|
+
`,mv=Qp`
|
|
113
113
|
0% {
|
|
114
114
|
stroke-dasharray: 1px, 200px;
|
|
115
115
|
stroke-dashoffset: 0;
|
|
@@ -124,8 +124,8 @@ var _BYGD_NC_REPORT_UI=function(){"use strict";function e(e,t){return t.forEach(
|
|
|
124
124
|
stroke-dasharray: 1px, 200px;
|
|
125
125
|
stroke-dashoffset: -126px;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
animation: ${
|
|
129
|
-
`:null,
|
|
130
|
-
animation: ${
|
|
131
|
-
`:null,zg=Fm("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ef(n.color)}`]]}})(Dm(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:$g||{animation:`${Ig} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Bg=Fm("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Dg=Fm("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ef(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Dm(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:jg||{animation:`${Fg} 1.4s ease-in-out infinite`}}]}))),Wg=Fm("circle",{name:"MuiCircularProgress",slot:"Track"})(Dm(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ug=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:s,thickness:u,value:c,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Hh({root:["root",n,`color${ef(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ef(n)}`,o&&"circleDisableShrink"]},Ng,t)})(f),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((Mg-u)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return Pp.jsx(zg,{className:zm(h.root,r),style:{width:s,height:s,...g,...l},ownerState:f,ref:t,role:"progressbar",...v,...p,children:Pp.jsxs(Bg,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?Pp.jsx(Wg,{className:h.track,ownerState:f,cx:Mg,cy:Mg,r:(Mg-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,Pp.jsx(Dg,{className:h.circle,style:m,ownerState:f,cx:Mg,cy:Mg,r:(Mg-u)/2,fill:"none",strokeWidth:u})]})})});function Vg(e){return sh("MuiIconButton",e)}const Kg=lh("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Hg=Fm(Pg,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${ef(n.color)}`],n.edge&&t[`edge${ef(n.edge)}`],t[`size${ef(n.size)}`]]}})(Dm(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Dm(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Kg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Kg.loading}`]:{color:"transparent"}}))),qg=Fm("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Gg=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium",id:c,loading:d=null,loadingIndicator:p,...f}=n,h=Dh(c),m=p??Pp.jsx(Ug,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:m,size:u},v=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Hh({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${ef(r)}`,o&&`edge${ef(o)}`,`size${ef(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Vg,t)})(g);return Pp.jsxs(Hg,{id:d?h:c,className:zm(v.root,i),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&Pp.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:Pp.jsx(qg,{className:v.loadingIndicator,ownerState:g,children:d&&m})}),o]})});var Yg=Hm(Pp.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Xg({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function Qg(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Jg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=Qg(u));const c=u?e.filter(e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Qg(r)),"start"===o?r.startsWith(u):r.includes(u)}):e;return"number"==typeof r?c.slice(0,r):c}}(),Zg=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),ev=[];function tv(e,t,n,r){if(t||null==e||r)return"";const o=n(e);return"string"==typeof o?o:""}function nv(e){const{unstable_isActiveElementInListbox:t=Zg,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(e.multiple?ev:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=Jg,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:k=e=>e.label??e,groupBy:S,handleHomeEndKeys:E=!e.freeSolo,id:C,includeInputInList:O=!1,inputValue:_,isOptionEqualToValue:T=(e,t)=>e===t,multiple:R=!1,onChange:P,onClose:A,onHighlightChange:L,onInputChange:N,onOpen:M,open:I,openOnFocus:F=!1,options:$,readOnly:j=!1,renderValue:z,selectOnFocus:B=!e.freeSolo,value:D}=e,W=Dh(C);let U=k;U=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const V=l.useRef(!1),K=l.useRef(!0),H=l.useRef(null),q=l.useRef(null),[G,Y]=l.useState(null),[X,Q]=l.useState(-1),J=o?0:-1,Z=l.useRef(J),ee=l.useRef(tv(d??D,R,U)).current,[te,ne]=Qm({controlled:D,default:d,name:c}),[re,oe]=Qm({controlled:_,default:ee,name:c,state:"inputValue"}),[ie,ae]=l.useState(!1),se=l.useCallback((e,t,n)=>{if(!(R?te.length<t.length:null!==t)&&!s)return;const r=tv(t,R,U,z);re!==r&&(oe(r),N&&N(e,r,n))},[U,re,R,N,oe,s,te,z]),[le,ue]=Qm({controlled:I,default:!1,name:c,state:"open"}),[ce,de]=l.useState(!0),pe=!R&&null!=te&&re===U(te),fe=le&&!j,he=fe?v($.filter(e=>!y||!(R?te:[te]).some(t=>null!==t&&T(e,t))),{inputValue:pe&&ce?"":re,getOptionLabel:U}):[],me=function(e){const t=l.useRef({});return l.useEffect(()=>{t.current=e}),t.current}({filteredOptions:he,value:te,inputValue:re});l.useEffect(()=>{const e=te!==me.value;ie&&!e||b&&!e||se(null,te,"reset")},[te,se,ie,me.value,b]);const ge=le&&he.length>0&&!j,ve=Jm(e=>{if(-1===e)H.current.focus();else{const t=z?"data-item-index":"data-tag-index";G.querySelector(`[${t}="${e}"]`).focus()}});l.useEffect(()=>{R&&X>te.length-1&&(Q(-1),ve(-1))},[te,R,X,ve]);const ye=Jm(({event:e,index:t,reason:r})=>{if(Z.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${W}-option-${t}`),L&&["mouse","keyboard","touch"].includes(r)&&L(e,-1===t?null:he[t],r),!q.current)return;const o=q.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let i=q.current;if("listbox"!==q.current.getAttribute("role")&&(i=q.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=q.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}}),be=Jm(({event:e,diff:t,direction:n="next",reason:o})=>{if(!fe)return;const i=function(e,t){if(!q.current||e<0||e>=he.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%he.length:(n-1+he.length)%he.length,n===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const n=Z.current+t;return n<0?-1===n&&O?-1:g&&-1!==Z.current||Math.abs(t)>1?0:e:n>e?n===e+1&&O?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ye({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)H.current.value=re;else{const e=U(he[i]);H.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}}),we=!Xg({array1:me.filteredOptions,array2:he,parser:U}),xe=l.useCallback(()=>{if(!fe)return;const e=(()=>{if(-1!==Z.current&&!Xg({array1:me.filteredOptions,array2:he,parser:U})&&me.inputValue===re&&(R?te.length===me.value.length&&me.value.every((e,t)=>U(te[t])===U(e)):(e=me.value,t=te,(e?U(e):"")===(t?U(t):"")))){const e=me.filteredOptions[Z.current];if(e)return he.findIndex(t=>U(t)===U(e))}var e,t;return-1})();if(-1!==e)return void(Z.current=e);const t=R?te[0]:te;if(0!==he.length&&null!=t){if(q.current){if(null!=t){const e=he[Z.current];if(R&&e&&-1!==te.findIndex(t=>T(e,t)))return;const n=he.findIndex(e=>T(e,t));return void(-1===n?be({diff:"reset"}):ye({index:n}))}Z.current>=he.length-1?ye({index:he.length-1}):ye({index:Z.current})}}else be({diff:"reset"})},[he.length,!R&&te,y,be,ye,fe,re,R]),ke=Jm(e=>{Xm(q,e),e&&xe()});l.useEffect(()=>{(we||fe)&&xe()},[xe,we,fe]);const Se=e=>{le||(ue(!0),de(!0),M&&M(e))},Ee=(e,t)=>{le&&(ue(!1),A&&A(e,t))},Ce=(e,t,n,r)=>{if(R){if(te.length===t.length&&te.every((e,n)=>e===t[n]))return}else if(te===t)return;P&&P(e,t,n,r),ne(t)},Oe=l.useRef(!1),_e=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(R){i=Array.isArray(te)?te.slice():[];const e=i.findIndex(e=>T(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}se(e,i,o),Ce(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ee(e,o),(!0===a||"touch"===a&&Oe.current||"mouse"===a&&!Oe.current)&&H.current.blur()};const Te=(e,t)=>{if(!R)return;""===re&&Ee(e,"toggleInput");let n=X;-1===X?""===re&&"previous"===t&&(n=te.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===te.length||"previous"===t&&-1===n)return-1;const e=z?"data-item-index":"data-tag-index",r=G.querySelector(`[${e}="${n}"]`);if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Q(n),ve(n)},Re=e=>{V.current=!0,oe(""),N&&N(e,"","clear"),Ce(e,R?[]:null,"clear")},Pe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===X||["ArrowLeft","ArrowRight"].includes(t.key)||(Q(-1),ve(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),be({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),be({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),be({diff:-5,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"PageDown":t.preventDefault(),be({diff:5,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowDown":t.preventDefault(),be({diff:1,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowUp":t.preventDefault(),be({diff:-1,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"ArrowLeft":!R&&z?ve(0):Te(t,"previous");break;case"ArrowRight":!R&&z?ve(-1):Te(t,"next");break;case"Enter":if(-1!==Z.current&&fe){const e=he[Z.current],n=!!w&&w(e);if(t.preventDefault(),n)return;_e(t,e,"selectOption"),r&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else b&&""!==re&&!1===pe&&(R&&t.preventDefault(),_e(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Ee(t,"escape")):u&&(""!==re||R&&te.length>0||z)&&(t.preventDefault(),t.stopPropagation(),Re(t));break;case"Backspace":if(R&&!j&&""===re&&te.length>0){const e=-1===X?te.length-1:X,n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})}R||!z||j||(ne(null),ve(-1));break;case"Delete":if(R&&!j&&""===re&&te.length>0&&-1!==X){const e=X,n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})}R||!z||j||(ne(null),ve(-1))}},Ae=e=>{ae(!0),F&&!V.current&&Se(e)},Le=e=>{t(q)?H.current.focus():(ae(!1),K.current=!0,V.current=!1,i&&-1!==Z.current&&fe?_e(e,he[Z.current],"blur"):i&&b&&""!==re?_e(e,re,"blur","freeSolo"):s&&se(e,te,"blur"),Ee(e,"blur"))},Ne=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),N&&N(e,t,"input")),""===t?p||R||Ce(e,null,"clear"):Se(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Z.current!==t&&ye({event:e,index:t,reason:"mouse"})},Ie=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Oe.current=!0},Fe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));_e(e,he[t],"selectOption"),Oe.current=!1},$e=e=>t=>{const n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})},je=e=>{Ce(e,null,"removeOption",{option:te})},ze=e=>{le?Ee(e,"toggleInput"):Se(e)},Be=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==W&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&K.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),K.current=!1)},We=e=>{h||""!==re&&le||ze(e)};let Ue=b&&re.length>0;Ue=Ue||(R?te.length>0:null!==te);let Ve=he;return S&&(Ve=he.reduce((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),h&&ie&&Le(),{getRootProps:(e={})=>({...e,onKeyDown:Pe(e),onMouseDown:Be,onClick:De}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:re,onBlur:Le,onFocus:Ae,onChange:Ne,onMouseDown:We,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${W}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:e=0}={})=>({...R&&{key:e},...z?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!j&&{onDelete:R?$e(e):je}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ze}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!j&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:ke,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(R?te:[te]).some(e=>null!=e&&T(t,e)),r=!!w&&w(t);return{key:x?.(t)??U(t),tabIndex:-1,role:"option",id:`${W}-option-${e}`,onMouseMove:Me,onClick:Fe,onTouchStart:Ie,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:W,inputValue:re,value:te,dirty:Ue,expanded:fe&&G,popupOpen:fe,focused:ie||-1!==X,anchorEl:G,setAnchorEl:Y,focusedItem:X,focusedTag:X,groupedOptions:Ve}}var rv="top",ov="bottom",iv="right",av="left",sv="auto",lv=[rv,ov,iv,av],uv="start",cv="end",dv="viewport",pv="popper",fv=lv.reduce(function(e,t){return e.concat([t+"-"+uv,t+"-"+cv])},[]),hv=[].concat(lv,[sv]).reduce(function(e,t){return e.concat([t,t+"-"+uv,t+"-"+cv])},[]),mv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function gv(e){return e?(e.nodeName||"").toLowerCase():null}function vv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yv(e){return e instanceof vv(e).Element||e instanceof Element}function bv(e){return e instanceof vv(e).HTMLElement||e instanceof HTMLElement}function wv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof vv(e).ShadowRoot||e instanceof ShadowRoot)}var xv={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];bv(o)&&gv(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});bv(r)&&gv(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function kv(e){return e.split("-")[0]}var Sv=Math.max,Ev=Math.min,Cv=Math.round;function Ov(){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 _v(){return!/^((?!chrome|android).)*safari/i.test(Ov())}function Tv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&bv(e)&&(o=e.offsetWidth>0&&Cv(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Cv(r.height)/e.offsetHeight||1);var a=(yv(e)?vv(e):window).visualViewport,s=!_v()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Rv(e){var t=Tv(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Av(e){return vv(e).getComputedStyle(e)}function Lv(e){return["table","td","th"].indexOf(gv(e))>=0}function Nv(e){return((yv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mv(e){return"html"===gv(e)?e:e.assignedSlot||e.parentNode||(wv(e)?e.host:null)||Nv(e)}function Iv(e){return bv(e)&&"fixed"!==Av(e).position?e.offsetParent:null}function Fv(e){for(var t=vv(e),n=Iv(e);n&&Lv(n)&&"static"===Av(n).position;)n=Iv(n);return n&&("html"===gv(n)||"body"===gv(n)&&"static"===Av(n).position)?t:n||function(e){var t=/firefox/i.test(Ov());if(/Trident/i.test(Ov())&&bv(e)&&"fixed"===Av(e).position)return null;var n=Mv(e);for(wv(n)&&(n=n.host);bv(n)&&["html","body"].indexOf(gv(n))<0;){var r=Av(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $v(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jv(e,t,n){return Sv(e,Ev(t,n))}function zv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bv(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Dv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=kv(n.placement),l=$v(s),u=[av,iv].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return zv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bv(e,lv))}(o.padding,n),d=Rv(i),p="y"===l?rv:av,f="y"===l?ov:iv,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=Fv(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[p],w=v-d[u]-c[f],x=v/2-d[u]/2+y,k=jv(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pv(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wv(e){return e.split("-")[1]}var Uv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vv(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=av,w=rv,x=window;if(u){var k=Fv(n),S="clientHeight",E="clientWidth";if(k===vv(n)&&"static"!==Av(k=Nv(n)).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth"),o===rv||(o===av||o===iv)&&i===cv)w=ov,m-=(d&&k===x&&x.visualViewport?x.visualViewport.height:k[S])-r.height,m*=l?1:-1;if(o===av||(o===rv||o===ov)&&i===cv)b=iv,f-=(d&&k===x&&x.visualViewport?x.visualViewport.width:k[E])-r.width,f*=l?1:-1}var C,O=Object.assign({position:s},u&&Uv),_=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Cv(n*o)/o||0,y:Cv(r*o)/o||0}}({x:f,y:m},vv(n)):{x:f,y:m};return f=_.x,m=_.y,l?Object.assign({},O,((C={})[w]=y?"0":"",C[b]=v?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var Kv={passive:!0};var Hv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=vv(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,Kv)}),s&&l.addEventListener("resize",n.update,Kv),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Kv)}),s&&l.removeEventListener("resize",n.update,Kv)}},data:{}},qv={left:"right",right:"left",bottom:"top",top:"bottom"};function Gv(e){return e.replace(/left|right|bottom|top/g,function(e){return qv[e]})}var Yv={start:"end",end:"start"};function Xv(e){return e.replace(/start|end/g,function(e){return Yv[e]})}function Qv(e){var t=vv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jv(e){return Tv(Nv(e)).left+Qv(e).scrollLeft}function Zv(e){var t=Av(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ey(e){return["html","body","#document"].indexOf(gv(e))>=0?e.ownerDocument.body:bv(e)&&Zv(e)?e:ey(Mv(e))}function ty(e,t){var n;void 0===t&&(t=[]);var r=ey(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=vv(r),a=o?[i].concat(i.visualViewport||[],Zv(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ty(Mv(a)))}function ny(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ry(e,t,n){return t===dv?ny(function(e,t){var n=vv(e),r=Nv(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=_v();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Jv(e),y:l}}(e,n)):yv(t)?function(e,t){var n=Tv(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ny(function(e){var t,n=Nv(e),r=Qv(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Sv(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Sv(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Jv(e),l=-r.scrollTop;return"rtl"===Av(o||n).direction&&(s+=Sv(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Nv(e)))}function oy(e,t,n,r){var o="clippingParents"===t?function(e){var t=ty(Mv(e)),n=["absolute","fixed"].indexOf(Av(e).position)>=0&&bv(e)?Fv(e):e;return yv(n)?t.filter(function(e){return yv(e)&&Pv(e,n)&&"body"!==gv(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=ry(e,n,r);return t.top=Sv(o.top,t.top),t.right=Ev(o.right,t.right),t.bottom=Ev(o.bottom,t.bottom),t.left=Sv(o.left,t.left),t},ry(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function iy(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?kv(o):null,a=o?Wv(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case rv:t={x:s,y:n.y-r.height};break;case ov:t={x:s,y:n.y+n.height};break;case iv:t={x:n.x+n.width,y:l};break;case av:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?$v(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case uv:t[u]=t[u]-(n[c]/2-r[c]/2);break;case cv:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ay(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?dv:u,d=n.elementContext,p=void 0===d?pv:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=zv("number"!=typeof g?g:Bv(g,lv)),y=p===pv?"reference":pv,b=e.rects.popper,w=e.elements[h?y:p],x=oy(yv(w)?w:w.contextElement||Nv(e.elements.popper),l,c,a),k=Tv(e.elements.reference),S=iy({reference:k,element:b,placement:o}),E=ny(Object.assign({},b,S)),C=p===pv?E:k,O={top:x.top-C.top+v.top,bottom:C.bottom-x.bottom+v.bottom,left:x.left-C.left+v.left,right:C.right-x.right+v.right},_=e.modifiersData.offset;if(p===pv&&_){var T=_[o];Object.keys(O).forEach(function(e){var t=[iv,ov].indexOf(e)>=0?1:-1,n=[rv,ov].indexOf(e)>=0?"y":"x";O[e]+=T[n]*t})}return O}function sy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?hv:l,c=Wv(r),d=c?s?fv:fv.filter(function(e){return Wv(e)===c}):lv,p=d.filter(function(e){return u.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=ay(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[kv(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var ly={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=kv(g),y=l||(v===g||!h?[Gv(g)]:function(e){if(kv(e)===sv)return[];var t=Gv(e);return[Xv(e),t,Xv(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(kv(n)===sv?sy(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,k=new Map,S=!0,E=b[0],C=0;C<b.length;C++){var O=b[C],_=kv(O),T=Wv(O)===uv,R=[rv,ov].indexOf(_)>=0,P=R?"width":"height",A=ay(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=R?T?iv:av:T?ov:rv;w[P]>x[P]&&(L=Gv(L));var N=Gv(L),M=[];if(i&&M.push(A[_]<=0),s&&M.push(A[L]<=0,A[N]<=0),M.every(function(e){return e})){E=O,S=!1;break}k.set(O,M)}if(S)for(var I=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},F=h?3:1;F>0;F--){if("break"===I(F))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function uy(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cy(e){return[rv,iv,ov,av].some(function(t){return e[t]>=0})}var dy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ay(t,{elementContext:"reference"}),s=ay(t,{altBoundary:!0}),l=uy(a,r),u=uy(s,o,i),c=cy(l),d=cy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var py={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=hv.reduce(function(e,n){return e[n]=function(e,t,n){var r=kv(e),o=[av,rv].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[av,iv].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var fy={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=iy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var hy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=ay(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=kv(t.placement),y=Wv(t.placement),b=!y,w=$v(v),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(k){if(i){var R,P="y"===w?rv:av,A="y"===w?ov:iv,L="y"===w?"height":"width",N=k[w],M=N+g[P],I=N-g[A],F=f?-E[L]/2:0,$=y===uv?S[L]:E[L],j=y===uv?-E[L]:-S[L],z=t.elements.arrow,B=f&&z?Rv(z):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=D[P],U=D[A],V=jv(0,S[L],B[L]),K=b?S[L]/2-F-V-W-O.mainAxis:$-V-W-O.mainAxis,H=b?-S[L]/2+F+V+U+O.mainAxis:j+V+U+O.mainAxis,q=t.elements.arrow&&Fv(t.elements.arrow),G=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Y=null!=(R=null==_?void 0:_[w])?R:0,X=N+H-Y,Q=jv(f?Ev(M,N+K-Y-G):M,N,f?Sv(I,X):I);k[w]=Q,T[w]=Q-N}if(s){var J,Z="x"===w?rv:av,ee="x"===w?ov:iv,te=k[x],ne="y"===x?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[rv,av].indexOf(v),ae=null!=(J=null==_?void 0:_[x])?J:0,se=ie?re:te-S[ne]-E[ne]-ae+O.altAxis,le=ie?te+S[ne]+E[ne]-ae-O.altAxis:oe,ue=f&&ie?function(e,t,n){var r=jv(e,t,n);return r>n?n:r}(se,te,le):jv(f?se:re,te,f?le:oe);k[x]=ue,T[x]=ue-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]};function my(e,t,n){void 0===n&&(n=!1);var r=bv(t),o=bv(t)&&function(e){var t=e.getBoundingClientRect(),n=Cv(t.width)/e.offsetWidth||1,r=Cv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Nv(t),a=Tv(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==gv(t)||Zv(i))&&(s=function(e){return e!==vv(e)&&bv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Qv(e);var t}(t)),bv(t)?((l=Tv(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Jv(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function gy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var vy={placement:"bottom",modifiers:[],strategy:"absolute"};function yy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function by(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?vy:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},vy,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:yv(e)?ty(e):e.contextElement?ty(e.contextElement):[],popper:ty(t)};var a,u,p=function(e){var t=gy(e);return mv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),u=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:r}),a=function(){};l.push(i||a)}}),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(yy(t,n)){s.rects={reference:my(t,Fv(n),"fixed"===s.options.strategy),popper:Rv(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!yy(e,t))return c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var wy=by({defaultModifiers:[Hv,fy,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:kv(t.placement),variation:Wv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Vv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xv,py,ly,hy,Dv,dy]});function xy(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:cg(n,r),{props:s,internalRef:l}=fg({...i,externalSlotProps:a});return ug(t,{...s,ref:Zm(l,a?.ref,e.additionalProps?.ref)},r)}function ky(e){return parseInt(l.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Sy=l.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=l.useState(null),s=Zm(l.isValidElement(n)?ky(n):null,t);if(xh(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),xh(()=>{if(i&&!o)return Xm(t,i),()=>{Xm(t,null)}},[t,i,o]),o){if(l.isValidElement(n)){const e={ref:s};return l.cloneElement(n,e)}return n}return i?qs.createPortal(n,i):i});function Ey(e){return sh("MuiPopper",e)}function Cy(e){return"function"==typeof e?e():e}lh("MuiPopper",["root"]);const Oy={},_y=l.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,v=l.useRef(null),y=Zm(v,t),b=l.useRef(null),w=Zm(b,d),x=l.useRef(w);xh(()=>{x.current=w},[w]),l.useImperativeHandle(d,()=>b.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[S,E]=l.useState(k),[C,O]=l.useState(Cy(n));l.useEffect(()=>{b.current&&b.current.forceUpdate()}),l.useEffect(()=>{n&&O(Cy(n))},[n]),xh(()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=wy(C,v.current,{placement:k,...c,modifiers:e});return x.current(t),()=>{t.destroy(),x.current(null)}},[C,i,a,s,c,k]);const _={placement:S};null!==h&&(_.TransitionProps=h);const T=(e=>{const{classes:t}=e;return Hh({root:["root"]},Ey,t)})(e),R=f.root??"div",P=xy({elementType:R,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:T.root});return Pp.jsx(R,{...P,children:"function"==typeof r?r(_):r})}),Ty=l.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Oy,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:v={},...y}=e,[b,w]=l.useState(!0);if(!s&&!c&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=Cy(n);x=e&&void 0!==e.nodeType?Gm(e).body:Gm(null).body}const k=c||!s||m&&!b?void 0:"none",S=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return Pp.jsx(Sy,{disablePortal:a,container:x,children:Pp.jsx(_y,{anchorEl:n,direction:i,disablePortal:a,modifiers:u,ref:t,open:m?!b:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:v,...y,style:{position:"fixed",top:0,left:0,display:k,...h},TransitionProps:S,children:r})})}),Ry=Fm(Ty,{name:"MuiPopper",slot:"Root"})({}),Py=l.forwardRef(function(e,t){const n=Fh(),r=Wm({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:v,slotProps:y,...b}=r,w=v?.root??a?.Root,x={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...b};return Pp.jsx(Ry,{as:i,direction:n?"rtl":"ltr",slots:{root:w},slotProps:y??s,...x,ref:t})});function Ay(e){return sh("MuiListSubheader",e)}lh("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ly=Fm("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ef(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Dm(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Ny=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1,...u}=n,c={...n,color:o,component:i,disableGutters:a,disableSticky:s,inset:l},d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return Hh({root:["root","default"!==n&&`color${ef(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},Ay,t)})(c);return Pp.jsx(Ly,{as:i,className:zm(d.root,r),ref:t,ownerState:c,...u})});Ny&&(Ny.muiSkipListHighlight=!0);var My=Hm(Pp.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Iy(e){return sh("MuiChip",e)}const Fy=lh("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),$y=Fm("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${Fy.avatar}`]:t.avatar},{[`& .${Fy.avatar}`]:t[`avatar${ef(s)}`]},{[`& .${Fy.avatar}`]:t[`avatarColor${ef(r)}`]},{[`& .${Fy.icon}`]:t.icon},{[`& .${Fy.icon}`]:t[`icon${ef(s)}`]},{[`& .${Fy.icon}`]:t[`iconColor${ef(o)}`]},{[`& .${Fy.deleteIcon}`]:t.deleteIcon},{[`& .${Fy.deleteIcon}`]:t[`deleteIcon${ef(s)}`]},{[`& .${Fy.deleteIcon}`]:t[`deleteIconColor${ef(r)}`]},{[`& .${Fy.deleteIcon}`]:t[`deleteIcon${ef(l)}Color${ef(r)}`]},t.root,t[`size${ef(s)}`],t[`color${ef(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${ef(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${ef(r)}`],t[l],t[`${l}${ef(r)}`]]}})(Dm(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Fy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Fy.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Fy.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Fy.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Fy.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Fy.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Fy.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Fy.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Fy.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Lg(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Fy.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${Fy.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${Fy.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Fy.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Lg(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Fy.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Fy.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Lg(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Fy.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Fy.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Fy.avatar}`]:{marginLeft:4},[`& .${Fy.avatarSmall}`]:{marginLeft:2},[`& .${Fy.icon}`]:{marginLeft:4},[`& .${Fy.iconSmall}`]:{marginLeft:2},[`& .${Fy.deleteIcon}`]:{marginRight:5},[`& .${Fy.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${Fy.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Fy.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Fy.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),jy=Fm("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ef(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function zy(e){return"Backspace"===e.key||"Delete"===e.key}const By=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:k={},...S}=n,E=Zm(l.useRef(null),t),C=e=>{e.stopPropagation(),h&&h(e)},O=!(!1===i||!f)||i,_=O||h?Pg:s||"div",T={...n,component:_,disabled:c,size:v,color:a,iconColor:l.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:O,variant:y},R=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e;return Hh({root:["root",l,n&&"disabled",`size${ef(r)}`,`color${ef(o)}`,s&&"clickable",s&&`clickableColor${ef(o)}`,a&&"deletable",a&&`deletableColor${ef(o)}`,`${l}${ef(o)}`],label:["label",`label${ef(r)}`],avatar:["avatar",`avatar${ef(r)}`,`avatarColor${ef(o)}`],icon:["icon",`icon${ef(r)}`,`iconColor${ef(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ef(r)}`,`deleteIconColor${ef(o)}`,`deleteIcon${ef(l)}Color${ef(o)}`]},Iy,t)})(T),P=_===Pg?{component:s||"div",focusVisibleClassName:R.focusVisible,...h&&{disableRipple:!0}}:{};let A=null;h&&(A=u&&l.isValidElement(u)?l.cloneElement(u,{className:zm(u.props.className,R.deleteIcon),onClick:C}):Pp.jsx(My,{className:R.deleteIcon,onClick:C}));let L=null;r&&l.isValidElement(r)&&(L=l.cloneElement(r,{className:zm(R.avatar,r.props.className)}));let N=null;d&&l.isValidElement(d)&&(N=l.cloneElement(d,{className:zm(R.icon,d.props.className)}));const M={slots:x,slotProps:k},[I,F]=hg("root",{elementType:$y,externalForwardedProps:{...M,...S},ownerState:T,shouldForwardComponentProp:!0,ref:E,className:zm(R.root,o),additionalProps:{disabled:!(!O||!c)||void 0,tabIndex:w&&c?-1:b,...P},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&zy(e)&&e.preventDefault(),m&&m(e)})(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&h&&zy(e)&&h(e),g&&g(e)})(t)}})}),[$,j]=hg("label",{elementType:jy,externalForwardedProps:M,ownerState:T,className:R.label});return Pp.jsxs(I,{as:_,...F,children:[L||N,Pp.jsx($,{...j,children:p}),A]})});function Dy(e){return parseInt(e,10)||0}const Wy={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Uy(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Vy=l.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...s}=e,{current:u}=l.useRef(null!=a),c=l.useRef(null),d=Zm(t,c),p=l.useRef(null),f=l.useRef(null),h=l.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=Ym(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Dy(i.paddingBottom)+Dy(i.paddingTop),l=Dy(i.borderBottomWidth)+Dy(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),m=Jm(()=>{const e=c.current,t=h();if(!e||!t||Uy(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=l.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Uy(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=l.useRef(-1);xh(()=>{const e=qm(g),t=c?.current;if(!t)return;const n=Ym(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),xh(()=>{g()});return Pp.jsxs(l.Fragment,{children:[Pp.jsx("textarea",{value:a,onChange:e=>{u||g();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:i,...s}),Pp.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Wy,...i,paddingTop:0,paddingBottom:0}})]})});function Ky({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Hy=l.createContext(void 0);function qy(){return l.useContext(Hy)}function Gy(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Yy(e,t=!1){return e&&(Gy(e.value)&&""!==e.value||t&&Gy(e.defaultValue)&&""!==e.defaultValue)}function Xy(e){return sh("MuiInputBase",e)}const Qy=lh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Jy;const Zy=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ef(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eb=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},tb=Fm("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zy})(Dm(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qy.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),nb=Fm("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eb})(Dm(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qy.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Qy.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),rb=function(e){return function(t){return Pp.jsx(Bm,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ob=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:w,margin:x,maxRows:k,minRows:S,multiline:E=!1,name:C,onBlur:O,onChange:_,onClick:T,onFocus:R,onKeyDown:P,onKeyUp:A,placeholder:L,readOnly:N,renderSuffix:M,rows:I,size:F,slotProps:$={},slots:j={},startAdornment:z,type:B="text",value:D,...W}=n,U=null!=b.value?b.value:D,{current:V}=l.useRef(null!=U),K=l.useRef(),H=l.useCallback(e=>{},[]),q=Zm(K,w,b.ref,H),[G,Y]=l.useState(!1),X=qy(),Q=Ky({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:G,l.useEffect(()=>{!X&&p&&G&&(Y(!1),O&&O())},[X,p,G,O]);const J=X&&X.onFilled,Z=X&&X.onEmpty,ee=l.useCallback(e=>{Yy(e)?J&&J():Z&&Z()},[J,Z]);xh(()=>{V&&ee({value:U})},[U,ee,V]);l.useEffect(()=>{ee(K.current)},[]);let te=y,ne=b;E&&"input"===te&&(ne=I?{type:void 0,minRows:I,maxRows:I,...ne}:{type:void 0,maxRows:k,minRows:S,...ne},te=Vy);l.useEffect(()=>{X&&X.setAdornedStart(Boolean(z))},[X,z]);const re={...n,color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:B},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Hh({root:["root",`color${ef(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ef(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Xy,t)})(re),ie=j.root||u.Root||tb,ae=$.root||c.root||{},se=j.input||u.Input||nb;return ne={...ne,...$.input??c.input},Pp.jsxs(l.Fragment,{children:[!f&&"function"==typeof rb&&(Jy||(Jy=Pp.jsx(rb,{}))),Pp.jsxs(ie,{...ae,ref:t,onClick:e=>{K.current&&e.currentTarget===e.target&&K.current.focus(),T&&T(e)},...W,...!lg(ie)&&{ownerState:{...re,...ae.ownerState}},className:zm(oe.root,ae.className,a,N&&"MuiInputBase-readOnly"),children:[z,Pp.jsx(Hy.Provider,{value:null,children:Pp.jsx(se,{"aria-invalid":Q.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:d,disabled:Q.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:C,placeholder:L,readOnly:N,required:Q.required,rows:I,value:U,onKeyDown:P,onKeyUp:A,type:B,...ne,...!lg(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:q,className:zm(oe.input,ne.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{O&&O(e),b.onBlur&&b.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||K.current;if(null==t)throw new Error($c(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),_&&_(e,...t)},onFocus:e=>{R&&R(e),b.onFocus&&b.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0)}})}),h,M?M({...Q,startAdornment:z}):null]})]})});function ib(e){return sh("MuiInput",e)}const ab={...Qy,...lh("MuiInput",["root","underline","input"])};function sb(e){return sh("MuiOutlinedInput",e)}const lb={...Qy,...lh("MuiOutlinedInput",["root","notchedOutline","input"])};function ub(e){return sh("MuiFilledInput",e)}const cb={...Qy,...lh("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};var db=Hm(Pp.jsx("path",{d:"M7 10l5 5 5-5z"}));function pb(e){return sh("MuiAutocomplete",e)}const fb=lh("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var hb,mb;const gb=Fm("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${fb.tag}`]:t.tag},{[`& .${fb.tag}`]:t[`tagSize${ef(s)}`]},{[`& .${fb.inputRoot}`]:t.inputRoot},{[`& .${fb.input}`]:t.input},{[`& .${fb.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${fb.focused} .${fb.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${fb.clearIndicator}`]:{visibility:"visible"}},[`& .${fb.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${fb.inputRoot}`]:{[`.${fb.hasPopupIcon}&, .${fb.hasClearIcon}&`]:{paddingRight:30},[`.${fb.hasPopupIcon}.${fb.hasClearIcon}&`]:{paddingRight:56},[`& .${fb.input}`]:{width:0,minWidth:30}},[`& .${ab.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ab.root}.${Qy.sizeSmall}`]:{[`& .${ab.input}`]:{padding:"2px 4px 3px 0"}},[`& .${lb.root}`]:{padding:9,[`.${fb.hasPopupIcon}&, .${fb.hasClearIcon}&`]:{paddingRight:39},[`.${fb.hasPopupIcon}.${fb.hasClearIcon}&`]:{paddingRight:65},[`& .${fb.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${fb.endAdornment}`]:{right:9}},[`& .${lb.root}.${Qy.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${fb.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${cb.root}`]:{paddingTop:19,paddingLeft:8,[`.${fb.hasPopupIcon}&, .${fb.hasClearIcon}&`]:{paddingRight:39},[`.${fb.hasPopupIcon}.${fb.hasClearIcon}&`]:{paddingRight:65},[`& .${cb.input}`]:{padding:"7px 4px"},[`& .${fb.endAdornment}`]:{right:9}},[`& .${cb.root}.${Qy.sizeSmall}`]:{paddingBottom:1,[`& .${cb.input}`]:{padding:"2.5px 4px"}},[`& .${Qy.hiddenLabel}`]:{paddingTop:8},[`& .${cb.root}.${Qy.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${fb.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${cb.root}.${Qy.hiddenLabel}.${Qy.sizeSmall}`]:{[`& .${fb.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${fb.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${fb.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${fb.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${fb.inputRoot}`]:{flexWrap:"wrap"}}}]}),vb=Fm("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),yb=Fm(Gg,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),bb=Fm(Gg,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),wb=Fm(Py,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fb.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Dm(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),xb=Fm(vg,{name:"MuiAutocomplete",slot:"Paper"})(Dm(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),kb=Fm("div",{name:"MuiAutocomplete",slot:"Loading"})(Dm(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Sb=Fm("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Dm(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Eb=Fm("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Dm(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${fb.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${fb.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${fb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${fb.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${fb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Cb=Fm(Ny,{name:"MuiAutocomplete",slot:"GroupLabel"})(Dm(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Ob=Fm("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${fb.option}`]:{paddingLeft:24}}),_b=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:s,className:u,clearIcon:c=hb||(hb=Pp.jsx(Yg,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:h="Close",componentsProps:m,defaultValue:g=(n.multiple?[]:null),disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:b=!1,disabledItemsFocusable:w=!1,disableListWrap:x=!1,disablePortal:k=!1,filterOptions:S,filterSelectedOptions:E=!1,forcePopupIcon:C="auto",freeSolo:O=!1,fullWidth:_=!1,getLimitTagsText:T=e=>`+${e}`,getOptionDisabled:R,getOptionKey:P,getOptionLabel:A,isOptionEqualToValue:L,groupBy:N,handleHomeEndKeys:M=!n.freeSolo,id:I,includeInputInList:F=!1,inputValue:$,limitTags:j=-1,ListboxComponent:z,ListboxProps:B,loading:D=!1,loadingText:W="Loading…",multiple:U=!1,noOptionsText:V="No options",onChange:K,onClose:H,onHighlightChange:q,onInputChange:G,onOpen:Y,open:X,openOnFocus:Q=!1,openText:J="Open",options:Z,PaperComponent:ee,PopperComponent:te,popupIcon:ne=mb||(mb=Pp.jsx(db,{})),readOnly:re=!1,renderGroup:oe,renderInput:ie,renderOption:ae,renderTags:se,renderValue:le,selectOnFocus:ue=!n.freeSolo,size:ce="medium",slots:de={},slotProps:pe={},value:fe,...he}=n,{getRootProps:me,getInputProps:ge,getInputLabelProps:ve,getPopupIndicatorProps:ye,getClearProps:be,getItemProps:we,getListboxProps:xe,getOptionProps:ke,value:Se,dirty:Ee,expanded:Ce,id:Oe,popupOpen:_e,focused:Te,focusedItem:Re,anchorEl:Pe,setAnchorEl:Ae,inputValue:Le,groupedOptions:Ne}=nv({...n,componentName:"Autocomplete"}),Me=!v&&!b&&Ee&&!re,Ie=(!O||!0===C)&&!1!==C,{onMouseDown:Fe}=ge(),{ref:$e,...je}=xe(),ze=A||(e=>e.label??e),Be={...n,disablePortal:k,expanded:Ce,focused:Te,fullWidth:_,getOptionLabel:ze,hasClearIcon:Me,hasPopupIcon:Ie,inputFocused:-1===Re,popupOpen:_e,size:ce},De=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e;return Hh({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ef(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},pb,t)})(Be),We={slots:{paper:ee,popper:te,...de},slotProps:{chip:s,listbox:B,...m,...pe}},[Ue,Ve]=hg("listbox",{elementType:Eb,externalForwardedProps:We,ownerState:Be,className:De.listbox,additionalProps:je,ref:$e}),[Ke,He]=hg("paper",{elementType:vg,externalForwardedProps:We,ownerState:Be,className:De.paper}),[qe,Ge]=hg("popper",{elementType:Py,externalForwardedProps:We,ownerState:Be,className:De.popper,additionalProps:{disablePortal:k,style:{width:Pe?Pe.clientWidth:null},role:"presentation",anchorEl:Pe,open:_e}});let Ye;const Xe=e=>({className:De.tag,disabled:b,...we(e)});if(U?Se.length>0&&(Ye=se?se(Se,Xe,Be):le?le(Se,Xe,Be):Se.map((e,t)=>{const{key:n,...r}=Xe({index:t});return Pp.jsx(By,{label:ze(e),size:ce,...r,...We.slotProps.chip},n)})):le&&null!=Se&&(Ye=le(Se,Xe,Be)),j>-1&&Array.isArray(Ye)){const e=Ye.length-j;!Te&&e>0&&(Ye=Ye.splice(0,j),Ye.push(Pp.jsx("span",{className:De.tag,children:T(e)},Ye.length)))}const Qe=oe||(e=>Pp.jsxs("li",{children:[Pp.jsx(Cb,{className:De.groupLabel,ownerState:Be,component:"div",children:e.group}),Pp.jsx(Ob,{className:De.groupUl,ownerState:Be,children:e.children})]},e.key)),Je=ae||((e,t)=>{const{key:n,...r}=e;return Pp.jsx("li",{...r,children:ze(t)},n)}),Ze=(e,t)=>{const n=ke({option:e,index:t});return Je({...n,className:De.option},e,{selected:n["aria-selected"],index:t,inputValue:Le},Be)},et=We.slotProps.clearIndicator,tt=We.slotProps.popupIndicator;return Pp.jsxs(l.Fragment,{children:[Pp.jsx(gb,{ref:t,className:zm(De.root,u),ownerState:Be,...me(he),children:ie({id:Oe,disabled:b,fullWidth:!0,size:"small"===ce?"small":void 0,InputLabelProps:ve(),InputProps:{ref:Ae,className:De.inputRoot,startAdornment:Ye,onMouseDown:e=>{e.target===e.currentTarget&&Fe(e)},...(Me||Ie)&&{endAdornment:Pp.jsxs(vb,{className:De.endAdornment,ownerState:Be,children:[Me?Pp.jsx(yb,{...be(),"aria-label":f,title:f,ownerState:Be,...et,className:zm(De.clearIndicator,et?.className),children:c}):null,Ie?Pp.jsx(bb,{...ye(),disabled:b,"aria-label":_e?h:J,title:_e?h:J,ownerState:Be,...tt,className:zm(De.popupIndicator,tt?.className),children:ne}):null]})}},inputProps:{className:De.input,disabled:b,readOnly:re,...ge()}})}),Pe?Pp.jsx(wb,{as:qe,...Ge,children:Pp.jsxs(xb,{as:Ke,...He,children:[D&&0===Ne.length?Pp.jsx(kb,{className:De.loading,ownerState:Be,children:W}):null,0!==Ne.length||O||D?null:Pp.jsx(Sb,{className:De.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),Ne.length>0?Pp.jsx(Ue,{as:z,...Ve,children:Ne.map((e,t)=>N?Qe({key:e.key,group:e.group,children:e.options.map((t,n)=>Ze(t,e.index+n))}):Ze(e,t))}):null]})}):null]})}),Tb={entering:{opacity:1},entered:{opacity:1}},Rb=l.forwardRef(function(e,t){const n=Nm(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=Sl,...b}=e,w=l.useRef(null),x=Zm(w,ky(a),t),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=k(p),E=k((e,t)=>{ag(e);const r=sg({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),C=k(d),O=k(m),_=k(e=>{const t=sg({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),T=k(h);return Pp.jsx(y,{appear:i,in:u,nodeRef:w,onEnter:E,onEntered:C,onEntering:S,onExit:_,onExited:T,onExiting:O,addEndListener:e=>{o&&o(w.current,e)},timeout:v,...b,children:(e,{ownerState:t,...n})=>l.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||u?void 0:"hidden",...Tb[e],...g,...a.props.style},ref:x,...n})})});function Pb(e){return sh("MuiBackdrop",e)}lh("MuiBackdrop",["root","invisible"]);const Ab=Fm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Lb=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Hh({root:["root",n&&"invisible"]},Pb,t)})(m),v={component:i,slots:{transition:p,root:l.Root,...d},slotProps:{...u,...c}},[y,b]=hg("root",{elementType:Ab,externalForwardedProps:v,className:zm(g.root,o),ownerState:m}),[w,x]=hg("transition",{elementType:Rb,externalForwardedProps:v,ownerState:m});return Pp.jsx(w,{in:s,timeout:f,...h,...x,children:Pp.jsx(y,{"aria-hidden":!0,...b,classes:g,ref:t,children:r})})}),Nb=lh("MuiBox",["root"]),Mb=Am(),Ib=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Lp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(qf);return l.forwardRef(function(e,a){const s=Jf(n),{className:l,component:u="div",...c}=th(e);return Pp.jsx(i,{as:u,ref:a,className:ih(l,o?o(r):r),theme:t&&s[t]||s,...c})})}({themeId:jc,defaultTheme:Mb,defaultClassName:Nb.root,generateClassName:rh.generate});function Fb(e){return sh("PrivateSwitchBase",e)}lh("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $b=Fm(Pg,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),jb=Fm("input",{name:"MuiSwitchBase",shouldForwardProp:Im})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zb=l.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:v,required:y=!1,tabIndex:b,type:w,value:x,slots:k={},slotProps:S={},...E}=e,[C,O]=Qm({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),_=qy();let T=a;_&&void 0===T&&(T=_.disabled);const R="checkbox"===w||"radio"===w,P={...e,checked:C,disabled:T,disableFocusRipple:s,edge:l},A=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Hh({root:["root",n&&"checked",r&&"disabled",o&&`edge${ef(o)}`],input:["input"]},Fb,t)})(P),L={slots:k,slotProps:{input:d,...S}},[N,M]=hg("root",{ref:t,elementType:$b,className:A.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...E},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),_&&_.onFocus&&_.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),_&&_.onBlur&&_.onBlur(e)})(t)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:T,role:void 0,tabIndex:null}}),[I,F]=hg("input",{ref:p,elementType:jb,className:A.input,externalForwardedProps:L,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;O(t),m&&m(e,t)})(t)}}),ownerState:P,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:T,id:R?c:void 0,name:f,readOnly:v,required:y,tabIndex:b,type:w,..."checkbox"===w&&void 0===x?{}:{value:x}}});return Pp.jsxs(N,{...M,children:[Pp.jsx(I,{...F}),C?o:u]})});var Bb=Hm(Pp.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),Db=Hm(Pp.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),Wb=Hm(Pp.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function Ub(e){return sh("MuiCheckbox",e)}const Vb=lh("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Kb=Fm(zb,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ef(n.size)}`],"default"!==n.color&&t[`color${ef(n.color)}`]]}})(Dm(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{[`&.${Vb.checked}, &.${Vb.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Vb.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Hb=Pp.jsx(Db,{}),qb=Pp.jsx(Bb,{}),Gb=Pp.jsx(Wb,{}),Yb=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Hb,color:o="primary",icon:i=qb,indeterminate:a=!1,indeterminateIcon:s=Gb,inputProps:u,size:c="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:h={},...m}=n,g=a?s:i,v=a?s:r,y={...n,disableRipple:d,color:o,indeterminate:a,size:c},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Hh({root:["root",n&&"indeterminate",`color${ef(r)}`,`size${ef(o)}`]},Ub,t);return{...t,...i}})(y),w=h.input??u,[x,k]=hg("root",{ref:t,elementType:Kb,className:zm(b.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...m},ownerState:y,additionalProps:{type:"checkbox",icon:l.cloneElement(g,{fontSize:g.props.fontSize??c}),checkedIcon:l.cloneElement(v,{fontSize:v.props.fontSize??c}),disableRipple:d,slots:f,slotProps:{input:eg("function"==typeof w?w(y):w,{"data-indeterminate":a})}}});return Pp.jsx(x,{...k,classes:b})});function Xb(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Qb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jb(e){return parseInt(Ym(e).getComputedStyle(e).paddingRight,10)||0}function Zb(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Qb(e,o)})}function ew(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function tw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Gm(e);return t.body===e?Ym(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Xb(Ym(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Jb(r)+e}px`;const t=Gm(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Jb(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Gm(r).body;else{const t=r.parentElement,n=Ym(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const nw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rw(e){const t=[],n=[];return Array.from(e.querySelectorAll(nw)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(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 t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ow(){return!0}function iw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=rw,isEnabled:a=ow,open:s}=e,u=l.useRef(!1),c=l.useRef(null),d=l.useRef(null),p=l.useRef(null),f=l.useRef(null),h=l.useRef(!1),m=l.useRef(null),g=Zm(ky(t),m),v=l.useRef(null);l.useEffect(()=>{s&&m.current&&(h.current=!n)},[n,s]),l.useEffect(()=>{if(!s||!m.current)return;const e=Gm(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[s]),l.useEffect(()=>{if(!s||!m.current)return;const e=Gm(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(m.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Pp.jsxs(l.Fragment,{children:[Pp.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Pp.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const aw=()=>{},sw=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Qb(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Zb(t,e.mount,e.modalRef,r,!0);const o=ew(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ew(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=tw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ew(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Qb(e.modalRef,t),Zb(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Qb(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:u,open:c,rootRef:d}=e,p=l.useRef({}),f=l.useRef(null),h=l.useRef(null),m=Zm(h,d),[g,v]=l.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{sw.mount(w(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=Jm(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Gm(f.current).body;sw.add(w(),e),h.current&&x()}),S=()=>sw.isTopModal(w()),E=Jm(e=>{f.current=e,e&&(c&&S()?x():h.current&&Qb(h.current,b))}),C=l.useCallback(()=>{sw.remove(w(),b)},[b]);l.useEffect(()=>()=>{C()},[C]),l.useEffect(()=>{c?k():y&&o||C()},[c,C,y,o,k]);const O=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},_=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=dg(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:O(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:_(t),open:c}},getTransitionProps:()=>({onEnter:$m(()=>{v(!1),i&&i()},s?.props.onEnter??aw),onExited:$m(()=>{v(!0),a&&a(),o&&C()},s?.props.onExited??aw)}),rootRef:m,portalRef:E,isTopModal:S,exited:g,hasTransition:y}}function uw(e){return sh("MuiModal",e)}lh("MuiModal",["root","hidden","backdrop"]);const cw=Fm("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Dm(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),dw=Fm(Lb,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),pw=l.forwardRef(function(e,t){const n=Wm({name:"MuiModal",props:e}),{BackdropComponent:r=dw,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:u,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:k,onTransitionEnter:S,onTransitionExited:E,open:C,slotProps:O={},slots:_={},theme:T,...R}=n,P={...n,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:w,keepMounted:x},{getRootProps:A,getBackdropProps:L,getTransitionProps:N,portalRef:M,isTopModal:I,exited:F,hasTransition:$}=lw({...P,rootRef:t}),j={...P,exited:F},z=(e=>{const{open:t,exited:n,classes:r}=e;return Hh({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uw,r)})(j),B={};if(void 0===u.props.tabIndex&&(B.tabIndex="-1"),$){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const D={slots:{root:p.Root,backdrop:p.Backdrop,..._},slotProps:{...f,...O}},[W,U]=hg("root",{ref:t,elementType:cw,externalForwardedProps:{...D,...R,component:d},getSlotProps:A,ownerState:j,className:zm(a,z?.root,!j.open&&j.exited&&z?.hidden)}),[V,K]=hg("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>L({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:zm(o?.className,z?.backdrop),ownerState:j});return x||C||$&&!F?Pp.jsx(Sy,{ref:M,container:c,disablePortal:v,children:Pp.jsxs(W,{...U,children:[!w&&r?Pp.jsx(V,{...K}):null,Pp.jsx(iw,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:y,isEnabled:I,open:C,children:l.cloneElement(u,B)})]})}):null}),fw=lh("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hw=Fm(tb,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zy(e,t),!n.disableUnderline&&t.underline]}})(Dm(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${cb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${cb.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${cb.disabled}, .${cb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cb.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),mw=Fm(nb,{name:"MuiFilledInput",slot:"Input",overridesResolver:eb})(Dm(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),gw=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:p="text",...f}=n,h={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:p},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l=Hh({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===i&&`size${ef(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},ub,t);return{...t,...l}})(n),g={root:{ownerState:h},input:{ownerState:h}},v=c??i?Vp(g,c??i):g,y=d.root??o.Root??hw,b=d.input??o.Input??mw;return Pp.jsx(ob,{slots:{root:y,input:b},slotProps:v,fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p,...f,classes:m})});function vw(e){return sh("MuiFormControl",e)}gw.muiName="Input",lh("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const yw=Fm("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ef(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),bw=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:g="outlined",...v}=n,y={...n,color:i,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:g},b=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return Hh({root:["root","none"!==n&&`margin${ef(n)}`,r&&"fullWidth"]},vw,t)})(y),[w,x]=l.useState(()=>{let e=!1;return r&&l.Children.forEach(r,t=>{if(!qh(t,["Input","Select"]))return;const n=qh(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[k,S]=l.useState(()=>{let e=!1;return r&&l.Children.forEach(r,t=>{qh(t,["Input","Select"])&&(Yy(t.props,!0)||Yy(t.props.inputProps,!0))&&(e=!0)}),e}),[E,C]=l.useState(!1);s&&E&&C(!1);const O=void 0===c||s?E:c;let _;l.useRef(!1);const T=l.useCallback(()=>{S(!0)},[]),R=l.useCallback(()=>{S(!1)},[]),P=l.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:i,disabled:s,error:u,filled:k,focused:O,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onFocus:()=>{C(!0)},onEmpty:R,onFilled:T,registerEffect:_,required:h,variant:g}),[w,i,s,u,k,O,d,p,_,R,T,h,m,g]);return Pp.jsx(Hy.Provider,{value:P,children:Pp.jsx(yw,{as:a,ownerState:y,className:zm(b.root,o),ref:t,...v,children:r})})});function ww(e){return sh("MuiFormHelperText",e)}const xw=lh("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var kw;const Sw=Fm("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ef(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Dm(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${xw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Ew=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:d,variant:p,...f}=n,h=Ky({props:n,muiFormControl:qy(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:i,contained:"filled"===h.variant||"outlined"===h.variant,variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete m.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e;return Hh({root:["root",o&&"disabled",i&&"error",r&&`size${ef(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},ww,t)})(m);return Pp.jsx(Sw,{as:i,className:zm(g.root,o),ref:t,...f,ownerState:m,children:" "===r?kw||(kw=Pp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function Cw(e){return sh("MuiFormLabel",e)}const Ow=lh("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_w=Fm("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(Dm(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{[`&.${Ow.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ow.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ow.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Tw=Fm("span",{name:"MuiFormLabel",slot:"Asterisk"})(Dm(({theme:e})=>({[`&.${Ow.error}`]:{color:(e.vars||e).palette.error.main}}))),Rw=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:s,error:l,filled:u,focused:c,required:d,...p}=n,f=Ky({props:n,muiFormControl:qy(),states:["color","required","focused","disabled","error","filled"]}),h={...n,color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},m=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e;return Hh({root:["root",`color${ef(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]},Cw,t)})(h);return Pp.jsxs(_w,{as:a,ownerState:h,className:zm(m.root,o),ref:t,...p,children:[r,f.required&&Pp.jsxs(Tw,{ownerState:h,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})});function Pw(e){return`scale(${e}, ${e**2})`}const Aw={entering:{opacity:1,transform:Pw(1)},entered:{opacity:1,transform:"none"}},Lw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nw=l.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Sl,...v}=e,y=ig(),b=l.useRef(),w=Nm(),x=l.useRef(null),k=Zm(x,ky(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=S(c),C=S((e,t)=>{ag(e);const{duration:n,delay:r,easing:o}=sg({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:Lw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),O=S(u),_=S(f),T=S(e=>{const{duration:t,delay:n,easing:r}=sg({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:Lw?o:.666*o,delay:Lw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Pw(.75),d&&d(e)}),R=S(p);return Pp.jsx(g,{appear:r,in:a,nodeRef:x,onEnter:C,onEntered:O,onEntering:E,onExit:T,onExited:R,onExiting:_,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m,...v,children:(e,{ownerState:t,...n})=>l.cloneElement(o,{style:{opacity:0,transform:Pw(.75),visibility:"exited"!==e||a?void 0:"hidden",...Aw[e],...h,...o.props.style},ref:k,...n})})});Nw&&(Nw.muiSupportAuto=!0);const Mw=Fm(tb,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zy(e,t),!n.disableUnderline&&t.underline]}})(Dm(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ab.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ab.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ab.disabled}, .${ab.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${ab.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Iw=Fm(nb,{name:"MuiInput",slot:"Input",overridesResolver:eb})({}),Fw=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=Hh({root:["root",!n&&"underline"],input:["input"]},ib,t);return{...t,...r}})(n),h={root:{ownerState:{disableUnderline:r}}},m=u??i?Vp(u??i,h):h,g=c.root??o.Root??Mw,v=c.input??o.Input??Iw;return Pp.jsx(ob,{slots:{root:g,input:v},slotProps:m,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:d,...p,classes:f})});function $w(e){return sh("MuiInputLabel",e)}Fw.muiName="Input",lh("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const jw=Fm(Rw,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ow.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Dm(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),zw=l.forwardRef(function(e,t){const n=Wm({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:s,...l}=n,u=qy();let c=i;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);const d=Ky({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l=Hh({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"medium"!==r&&`size${ef(r)}`,a],asterisk:[s&&"asterisk"]},$w,t);return{...t,...l}})(p);return Pp.jsx(jw,{"data-shrink":c,ref:t,className:zm(f.root,s),...l,ownerState:p,classes:f})}),Bw=l.createContext({});function Dw(e){return sh("MuiList",e)}lh("MuiList",["root","padding","dense","subheader"]);const Ww=Fm("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Uw=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:u,...c}=n,d=l.useMemo(()=>({dense:a}),[a]),p={...n,component:i,dense:a,disablePadding:s},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Hh({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dw,t)})(p);return Pp.jsx(Bw.Provider,{value:d,children:Pp.jsxs(Ww,{as:i,className:zm(f.root,o),ref:t,ownerState:p,...c,children:[u,r]})})}),Vw=lh("MuiListItemIcon",["root","alignItemsFlexStart"]),Kw=lh("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Hw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function qw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Gw(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function Yw(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gw(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Xw=l.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...p}=e,f=l.useRef(null),h=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xh(()=>{r&&f.current.focus()},[r]),l.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Xb(Ym(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=Zm(f,t);let g=-1;l.Children.forEach(i,(e,t)=>{l.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const v=l.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),l.cloneElement(e,t)}return e});return Pp.jsx(Uw,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=Gm(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Yw(t,r,u,s,Hw);else if("ArrowUp"===n)e.preventDefault(),Yw(t,r,u,s,qw);else if("Home"===n)e.preventDefault(),Yw(t,null,u,s,Hw);else if("End"===n)e.preventDefault(),Yw(t,null,u,s,qw);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Gw(r,o);o.previousKeyMatched&&(l||Yw(t,r,!1,s,Hw,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...p,children:v})});function Qw(e){return sh("MuiPopover",e)}function Jw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Zw(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ex(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function tx(e){return"function"==typeof e?e():e}lh("MuiPopover",["root","paper"]);const nx=Fm(pw,{name:"MuiPopover",slot:"Root"})({}),rx=Fm(vg,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ox=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:u,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:g={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:k=!1,...S}=n,E=l.useRef(),C={...n,anchorOrigin:i,anchorReference:s,elevation:p,marginThreshold:f,transformOrigin:y,TransitionComponent:b,transitionDuration:w,TransitionProps:x},O=(e=>{const{classes:t}=e;return Hh({root:["root"],paper:["paper"]},Qw,t)})(C),_=l.useCallback(()=>{if("anchorPosition"===s)return a;const e=tx(o),t=(e&&1===e.nodeType?e:Gm(E.current).body).getBoundingClientRect();return{top:t.top+Jw(t,i.vertical),left:t.left+Zw(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),T=l.useCallback(e=>({vertical:Jw(e,y.vertical),horizontal:Zw(e,y.horizontal)}),[y.horizontal,y.vertical]),R=l.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===s)return{top:null,left:null,transformOrigin:ex(n)};const r=_();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,u=a+t.width,c=Ym(tx(o)),d=c.innerHeight-f,p=c.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&l>d){const e=l-d;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(u>p){const e=u-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:ex(n)}},[o,s,_,T,f]),[P,A]=l.useState(h),L=l.useCallback(()=>{const e=E.current;if(!e)return;const t=R(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[R]);l.useEffect(()=>(k&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[o,k,L]);l.useEffect(()=>{h&&L()}),l.useImperativeHandle(r,()=>h?{updatePosition:()=>{L()}}:null,[h,L]),l.useEffect(()=>{if(!h)return;const e=qm(()=>{L()}),t=Ym(tx(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,L]);let N=w;const M={slots:{transition:b,...g},slotProps:{transition:x,paper:m,...v}},[I,F]=hg("transition",{elementType:Nw,externalForwardedProps:M,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),L()},onExited:t=>{e.onExited?.(t),A(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||I.muiSupportAuto||(N=void 0);const $=d||(o?Gm(tx(o)).body:void 0),[j,{slots:z,slotProps:B,...D}]=hg("root",{ref:t,elementType:nx,externalForwardedProps:{...M,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:eg("function"==typeof v.backdrop?v.backdrop(C):v.backdrop,{invisible:!0})},container:$,open:h},ownerState:C,className:zm(O.root,c)}),[W,U]=hg("paper",{ref:E,className:O.paper,elementType:rx,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:P?void 0:{opacity:0}},ownerState:C});return Pp.jsx(j,{...D,...!lg(j)&&{slots:z,slotProps:B,disableScrollLock:k},children:Pp.jsx(I,{...F,timeout:N,children:Pp.jsx(W,{...U,children:u})})})});function ix(e){return sh("MuiMenu",e)}lh("MuiMenu",["root","paper","list"]);const ax={vertical:"top",horizontal:"right"},sx={vertical:"top",horizontal:"left"},lx=Fm(ox,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),ux=Fm(rx,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cx=Fm(Xw,{name:"MuiMenu",slot:"List"})({outline:0}),dx=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:u,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:h,...m}={},variant:g="selectedMenu",slots:v={},slotProps:y={},...b}=n,w=Fh(),x={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:m,variant:g},k=(e=>{const{classes:t}=e;return Hh({root:["root"],paper:["paper"],list:["list"]},ix,t)})(x),S=r&&!a&&c,E=l.useRef(null);let C=-1;l.Children.map(o,(e,t)=>{l.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))});const O={slots:v,slotProps:{list:s,transition:m,paper:d,...y}},_=xy({elementType:v.root,externalSlotProps:y.root,ownerState:x,className:[k.root,i]}),[T,R]=hg("paper",{className:k.paper,elementType:ux,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:x}),[P,A]=hg("list",{className:zm(k.list,s.className),elementType:cx,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:x}),L="function"==typeof O.slotProps.transition?O.slotProps.transition(x):O.slotProps.transition;return Pp.jsx(lx,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?ax:sx,slots:{root:v.root,paper:T,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:_,paper:R,backdrop:"function"==typeof y.backdrop?y.backdrop(x):y.backdrop,transition:{...L,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),h&&h(e,t)})(...e),L?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:f,ownerState:x,...b,classes:p,children:Pp.jsx(P,{actions:E,autoFocus:r&&(-1===C||a),autoFocusItem:S,variant:g,...A,children:o})})});function px(e){return sh("MuiMenuItem",e)}const fx=lh("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hx=Fm(Pg,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(Dm(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fx.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${fx.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${fx.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${fx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fw.inset}`]:{marginLeft:52},[`& .${Kw.root}`]:{marginTop:0,marginBottom:0},[`& .${Kw.inset}`]:{paddingLeft:36},[`& .${Vw.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Vw.root} svg`]:{fontSize:"1.25rem"}}}]}))),mx=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p,...f}=n,h=l.useContext(Bw),m=l.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),g=l.useRef(null);xh(()=>{r&&g.current&&g.current.focus()},[r]);const v={...n,dense:m.dense,divider:a,disableGutters:s},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Hh({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},px,a);return{...a,...s}})(n),b=Zm(g,t);let w;return n.disabled||(w=void 0!==d?d:-1),Pp.jsx(Bw.Provider,{value:m,children:Pp.jsx(hx,{ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:zm(y.focusVisible,u),className:zm(y.root,p),...f,ownerState:v,classes:y})})});function gx(e){return sh("MuiNativeSelect",e)}const vx=lh("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),yx=Fm("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${vx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),bx=Fm(yx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Im,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vx.multiple}`]:t.multiple}]}})({}),wx=Fm("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${vx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xx=Fm(wx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ef(n.variant)}`],n.open&&t.iconOpen]}})({}),kx=l.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard",...u}=e,c={...e,disabled:r,variant:s,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Hh({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ef(n)}`,i&&"iconOpen",r&&"disabled"]},gx,t)})(c);return Pp.jsxs(l.Fragment,{children:[Pp.jsx(bx,{ownerState:c,className:zm(d.select,n),disabled:r,ref:a||t,...u}),e.multiple?null:Pp.jsx(xx,{as:i,ownerState:c,className:d.icon})]})});var Sx;const Ex=Fm("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Im})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Cx=Fm("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Im})(Dm(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const Ox=Fm(tb,{shouldForwardProp:e=>Im(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zy})(Dm(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lb.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${lb.focused} .${lb.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Lg()).map(([t])=>({props:{color:t},style:{[`&.${lb.focused} .${lb.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lb.error} .${lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lb.disabled} .${lb.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),_x=Fm(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=null!=o&&""!==o,l={...e,notched:i,withLabel:s};return Pp.jsx(Ex,{"aria-hidden":!0,className:r,ownerState:l,...a,children:Pp.jsx(Cx,{ownerState:l,children:s?Pp.jsx("span",{children:o}):Sx||(Sx=Pp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Dm(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Tx=Fm(nb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eb})(Dm(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Rx=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:s=!1,notched:u,slots:c={},slotProps:d={},type:p="text",...f}=n,h=(e=>{const{classes:t}=e,n=Hh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sb,t);return{...t,...n}})(n),m=qy(),g=Ky({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:s,size:g.size,type:p},y=c.root??r.Root??Ox,b=c.input??r.Input??Tx,[w,x]=hg("notchedOutline",{elementType:_x,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:null!=a&&""!==a&&g.required?Pp.jsxs(l.Fragment,{children:[a," ","*"]}):a}});return Pp.jsx(ob,{slots:{root:y,input:b},slotProps:d,renderSuffix:e=>Pp.jsx(w,{...x,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:s,ref:t,type:p,...f,classes:{...h,notchedOutline:null}})});function Px(e){return sh("MuiSelect",e)}Rx.muiName="Input";const Ax=lh("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lx;const Nx=Fm(yx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ax.select}`]:t.select},{[`&.${Ax.select}`]:t[n.variant]},{[`&.${Ax.error}`]:t.error},{[`&.${Ax.multiple}`]:t.multiple}]}})({[`&.${Ax.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mx=Fm(wx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ef(n.variant)}`],n.open&&t.iconOpen]}})({}),Ix=Fm("input",{shouldForwardProp:e=>Mm(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Fx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function $x(e){return null==e||"string"==typeof e&&!e.trim()}const jx=l.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:y,name:b,onBlur:w,onChange:x,onClose:k,onFocus:S,onOpen:E,open:C,readOnly:O,renderValue:_,required:T,SelectDisplayProps:R={},tabIndex:P,type:A,value:L,variant:N="standard",...M}=e,[I,F]=Qm({controlled:L,default:c,name:"Select"}),[$,j]=Qm({controlled:C,default:u,name:"Select"}),z=l.useRef(null),B=l.useRef(null),[D,W]=l.useState(null),{current:U}=l.useRef(null!=C),[V,K]=l.useState(),H=Zm(t,m),q=l.useCallback(e=>{B.current=e,e&&W(e)},[]),G=D?.parentNode;l.useImperativeHandle(H,()=>({focus:()=>{B.current.focus()},node:z.current,value:I}),[I]),l.useEffect(()=>{u&&$&&D&&!U&&(K(i?null:G.clientWidth),B.current.focus())},[D,i]),l.useEffect(()=>{o&&B.current.focus()},[o]),l.useEffect(()=>{if(!g)return;const e=Gm(B.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?E&&E(t):k&&k(t),U||(K(i?null:G.clientWidth),j(e))},X=l.Children.toArray(a),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(I)?I.slice():[];const t=I.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),I!==n&&(F(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),x(o,e)}y||Y(!1,t)}},J=null!==D&&$;let Z,ee;delete M["aria-invalid"];const te=[];let ne=!1;(Yy({value:I})||p)&&(_?Z=_(I):ne=!0);const re=X.map(e=>{if(!l.isValidElement(e))return null;let t;if(y){if(!Array.isArray(I))throw new Error($c(2));t=I.some(t=>Fx(t,e.props.value)),t&&ne&&te.push(e.props.children)}else t=Fx(I,e.props.value),t&&ne&&(ee=e.props.children);return l.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ne&&(Z=y?0===te.length?null:te.reduce((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e),[]):ee);let oe,ie=V;!i&&U&&D&&(ie=G.clientWidth),oe=void 0!==P?P:d?null:0;const ae=R.id||(b?`mui-component-select-${b}`:void 0),se={...e,variant:N,value:I,open:J,error:f},le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Hh({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ef(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Px,t)})(se),ue={...v.PaperProps,..."function"==typeof v.slotProps?.paper?v.slotProps.paper(se):v.slotProps?.paper},ce={...v.MenuListProps,..."function"==typeof v.slotProps?.list?v.slotProps.list(se):v.slotProps?.list},de=Dh();return Pp.jsxs(l.Fragment,{children:[Pp.jsx(Nx,{as:"div",ref:q,tabIndex:oe,role:"combobox","aria-controls":J?de:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":T?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{if(!O){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||O?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),Y(!0,e))},onBlur:e=>{!J&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:b}}),w(e))},onFocus:S,...R,ownerState:se,className:zm(R.className,le.select,s),id:ae,children:$x(Z)?Lx||(Lx=Pp.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Z}),Pp.jsx(Ix,{"aria-invalid":f,value:Array.isArray(I)?I.join(","):I,name:b,ref:z,"aria-hidden":!0,onChange:e=>{const t=X.find(t=>t.props.value===e.target.value);void 0!==t&&(F(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:o,required:T,...M,ownerState:se}),Pp.jsx(Mx,{as:h,className:le.icon,ownerState:se}),Pp.jsx(dx,{id:`menu-${b||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:de,...ce},paper:{...ue,style:{minWidth:ie,...null!=ue?ue.style:null}}},children:re})]})}),zx={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Im(e)&&"variant"!==e},Bx=Fm(Fw,zx)(""),Dx=Fm(Rx,zx)(""),Wx=Fm(gw,zx)(""),Ux=l.forwardRef(function(e,t){const n=Wm({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=db,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:w,open:x,renderValue:k,SelectDisplayProps:S,variant:E="outlined",...C}=n,O=y?kx:jx,_=Ky({props:n,muiFormControl:qy(),states:["variant","error"]}),T=_.variant||E,R={...n,variant:T,classes:i},P=(e=>{const{classes:t}=e,n=Hh({root:["root"]},Px,t);return{...t,...n}})(R),{root:A,...L}=P,N=p||{standard:Pp.jsx(Bx,{ownerState:R}),outlined:Pp.jsx(Dx,{label:h,ownerState:R}),filled:Pp.jsx(Wx,{ownerState:R})}[T],M=Zm(t,ky(N));return Pp.jsx(l.Fragment,{children:l.cloneElement(N,{inputComponent:O,inputProps:{children:o,error:_.error,IconComponent:c,variant:T,type:void 0,multiple:v,...y?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:w,open:x,renderValue:k,SelectDisplayProps:{id:d,...S}},...f,classes:f?Vp(L,f.classes):L,...p?p.props.inputProps:{}},...(v&&y||u)&&"outlined"===T?{notched:!0}:{},ref:M,className:zm(N.props.className,a,P.root),...!p&&{variant:T},...C})})});function Vx(e){return sh("MuiTextField",e)}Ux.muiName="Select",lh("MuiTextField",["root"]);const Kx={standard:Fw,filled:gw,outlined:Rx},Hx=Fm(bw,{name:"MuiTextField",slot:"Root"})({}),qx=l.forwardRef(function(e,t){const n=Wm({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:w,minRows:x,multiline:k=!1,name:S,onBlur:E,onChange:C,onFocus:O,placeholder:_,required:T=!1,rows:R,select:P=!1,SelectProps:A,slots:L={},slotProps:N={},type:M,value:I,variant:F="outlined",...$}=n,j={...n,autoFocus:o,color:s,disabled:u,error:c,fullWidth:p,multiline:k,required:T,select:P,variant:F},z=(e=>{const{classes:t}=e;return Hh({root:["root"]},Vx,t)})(j),B=Dh(h),D=f&&B?`${B}-helper-text`:void 0,W=b&&B?`${B}-label`:void 0,U=Kx[F],V={slots:L,slotProps:{input:v,inputLabel:m,htmlInput:g,formHelperText:d,select:A,...N}},K={},H=V.slotProps.inputLabel;"outlined"===F&&(H&&void 0!==H.shrink&&(K.notched=H.shrink),K.label=b),P&&(A&&A.native||(K.id=void 0),K["aria-describedby"]=void 0);const[q,G]=hg("root",{elementType:Hx,shouldForwardComponentProp:!0,externalForwardedProps:{...V,...$},ownerState:j,className:zm(z.root,a),ref:t,additionalProps:{disabled:u,error:c,fullWidth:p,required:T,color:s,variant:F}}),[Y,X]=hg("input",{elementType:U,externalForwardedProps:V,additionalProps:K,ownerState:j}),[Q,J]=hg("inputLabel",{elementType:zw,externalForwardedProps:V,ownerState:j}),[Z,ee]=hg("htmlInput",{elementType:"input",externalForwardedProps:V,ownerState:j}),[te,ne]=hg("formHelperText",{elementType:Ew,externalForwardedProps:V,ownerState:j}),[re,oe]=hg("select",{elementType:Ux,externalForwardedProps:V,ownerState:j}),ie=Pp.jsx(Y,{"aria-describedby":D,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:k,name:S,rows:R,maxRows:w,minRows:x,type:M,value:I,id:B,inputRef:y,onBlur:E,onChange:C,onFocus:O,placeholder:_,inputProps:ee,slots:{input:L.htmlInput?Z:void 0},...X});return Pp.jsxs(q,{...G,children:[null!=b&&""!==b&&Pp.jsx(Q,{htmlFor:B,id:W,...J,children:b}),P?Pp.jsx(re,{"aria-describedby":D,id:B,labelId:W,value:I,input:ie,...oe,children:i}):ie,f&&Pp.jsx(te,{id:D,...ne,children:f})]})});var Gx=Hm(Pp.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),Yx=Hm(Pp.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));const Xx=l.createElement(Gx,{fontSize:"small"}),Qx=l.createElement(Yx,{fontSize:"small"});function Jx({items:e,selectedKeys:t,defaultSelectedKeys:n,onChange:r,inputValue:o,defaultInputValue:i,onInputChange:a,debounceMs:s=300,label:u,placeholder:c,loading:d,disabled:p,size:f="small",error:h,helperText:m,limitTags:g=3,disableClearable:v,id:y,textFieldProps:b}){const w=l.useMemo(()=>Array.isArray(e)?e:[],[e]),x=Array.isArray(t),[k,S]=l.useState(Array.isArray(n)?n:[]),E=x?t:k,C=l.useMemo(()=>{const e=new Map;for(const t of w)e.set(t&&t.key,t);return e},[w]),O=l.useMemo(()=>(Array.isArray(E)?E:[]).map(e=>C.get(e)).filter(Boolean),[E,C]),_="string"==typeof o,[T,R]=l.useState("string"==typeof i?i:""),P=_?o:T,A=function(e,t=300){const n=l.useRef(e),r=l.useRef(null);return n.current=e,l.useEffect(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),l.useCallback((...e)=>{n.current&&(r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n.current&&n.current(...e)},t))},[t])}(e=>{a&&a(e)},s),L=O;return l.createElement(bw,{fullWidth:!0,error:h,disabled:p},l.createElement(_b,{openOnFocus:!0,forcePopupIcon:!0,id:y,multiple:!0,disableCloseOnSelect:!0,options:w,value:L,inputValue:P,getOptionLabel:e=>e&&"object"==typeof e?e.value??"":"",isOptionEqualToValue:(e,t)=>e&&t&&e.key===t.key,loading:d,limitTags:g,disableClearable:v,onChange:(e,t)=>{const n=Array.isArray(t)?t.map(e=>e&&e.key):[];x||S(n),r&&r(n,Array.isArray(t)?t:[])},onInputChange:(e,t,n)=>{_||R(t??""),"input"===n?A(t??""):"clear"===n&&A("")},renderOption:(e,t,{selected:n})=>l.createElement("li",Wr({},e,{key:t&&t.key||Math.random().toString(36)}),l.createElement(Yb,{icon:Xx,checkedIcon:Qx,style:{marginRight:8},checked:!!n}),t&&t.value),renderTags:(e,t)=>(Array.isArray(e)?e:[]).map((e,n)=>l.createElement(By,Wr({},t({index:n}),{key:e&&e.key||n,label:e&&e.value||""}))),renderInput:e=>l.createElement(qx,Wr({},e,{label:u,placeholder:c,InputProps:{...e.InputProps,endAdornment:l.createElement(l.Fragment,null,d?l.createElement(Ug,{size:18}):null,e.InputProps.endAdornment)},size:f},b))}),m?l.createElement(Ew,null,m):null)}const Zx=({filter:e,channel:t,query:n})=>{const[r,o]=l.useState([]),[i,a]=l.useState([]),[s,c]=l.useState(!1),[d,p]=l.useState("");return l.useEffect(()=>{a(n?.filter?.[e?.filter]||[])},[n]),l.useEffect(()=>{(async()=>{c(!0);const t=await async function(e,t){return t?.source?(await Ha.runReport({id:t.source})).map(e=>({key:e[t.field],value:e[t.field]})):[]}(0,e);o(t),c(!1)})()},[d]),u.createElement("div",{style:{display:"flex"}},u.createElement("div",{style:{maxWidth:640,minWidth:200}},u.createElement(Jx,{id:e?.title,label:e?.title,placeholder:"Type to search…",items:r,selectedKeys:i,onChange:(n,r)=>{a(n),t.emit("filterChanged",e,{[e.filter]:n})},onInputChange:e=>{p(e)},loading:s,debounceMs:300,helperText:i.length?`${i.length} selected`:""})))};function ek({items:e,value:t,label:n,onChange:r,sx:o={width:"100%"}}){const i=e.some(e=>e.key===t)?t:"";return u.createElement(Ib,{sx:o},u.createElement(bw,{fullWidth:!0},u.createElement(zw,{id:"demo-simple-select-label"},n),u.createElement(Ux,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:i,label:n,onChange:r,MenuProps:{style:{maxHeight:"300px"}},size:"small"},e.map(e=>{const{key:t,value:n}=e;return u.createElement(mx,{key:t,value:t},n)}))))}const tk=({filter:e,channel:t,query:n})=>{const[r,o]=l.useState([]),[i,a]=l.useState("");return l.useEffect(()=>{a(n?.date_range?.name)},[n]),l.useEffect(()=>{(async()=>{const t=(await Ha.getDateRanges()).filter(t=>!(e.allowedOptions.length>0)||e.allowedOptions.some(e=>e===t.name)).map(e=>({key:e.name,value:e.title}));o(t)})()},[]),u.createElement("div",{style:{minWidth:"200px",maxWidth:"640px"}},u.createElement(ek,{items:r,value:i,label:e?.title,onChange:(n,r)=>{const o=n.target.value;a(o),t.emit("filterChanged",e,{date_range:{name:o}})}}))},nk=({filters:e=[],channel:t,query:n})=>u.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"}},e.map(e=>"multi-select"===e.type?u.createElement(Zx,{key:e.title,channel:t,filter:e,query:n}):"date-range"===e.type?u.createElement(tk,{key:e.title,channel:t,filter:e,query:n}):null));var rk,ok={exports:{}};var ik=(rk||(rk=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ok)),ok.exports),ak=t(ik),sk=e=>u.useRef(e||new ak).current,lk=e=>{const t=u.useState({}),n=u.useCallback((n,r)=>{let o={...t.current,...r};for(var i in t.current=o,o)"date_range"===i||o[i].length||delete o[i];e?.emit("mergedFilterChanged",{value:o})},[e]);u.useEffect(()=>(e?.on("filterChanged",n),()=>{e?.off("filterChanged",n)}),[e])},uk=({id:e,cache:t,dashboard:n,channel:r,...o})=>{const[i,a]=u.useState(),[s,c]=u.useState(),[d,p]=u.useState(),[f,h]=u.useState(),[m,g]=u.useState(Ts()),[v,y]=u.useState(),[b,w]=u.useState(0),[x,k]=u.useState(!1),[S,E]=u.useState(),[C,O]=u.useState(!1),_=u.useRef({value:o?.filter}),[T,R]=u.useState({}),{ref:P,inView:A}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:u,onChange:c}={}){var d;const[p,f]=l.useState(null),h=l.useRef(c),m=l.useRef(s),[g,v]=l.useState({inView:!!s,entry:void 0});h.current=c,l.useEffect(()=>{if(void 0===m.current&&(m.current=s),a||!p)return;let l;return l=nc(p,(e,t)=>{const n=m.current;m.current=e,(void 0!==n||e)&&(v({inView:e,entry:t}),h.current&&h.current(e,t),t.isIntersecting&&i&&l&&(l(),l=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{l&&l()}},[Array.isArray(e)?e.toString():e,p,o,r,i,a,n,u,t]);const y=null==(d=g.entry)?void 0:d.target,b=l.useRef(void 0);p||!y||i||a||b.current===y||(b.current=y,v({inView:!!s,entry:void 0}),m.current=s);const w=[f,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({threshold:.1,delay:1e3}),L=sk(r);lk(L);const N=u.useCallback(e=>{const t=e.target.value;w(t),y(i.doc.view[t])},[i]);u.useEffect(()=>{e&&(async()=>{const n=e,r=t?.[n]||await Ha.getChart({id:n}),i=r.doc.source?.id,s=i?t?.[i]||await Ha.getReport({id:i}):void 0,l=t?.[`schema_${i}`]||o?.schema||await Ha.getReportSchema({id:i}),u=r.doc?.view?.[0];w(0),c(s),a(r),y(u),p(l),O(!0)})().catch(e=>{console.error(e.message)})},[e]),u.useEffect(()=>{i&&f&&(!i?.doc?.source?.id||s)&&d&&(async()=>{g(Ts(i.doc.chart?.component,{view:v,source:f,chart:i,report:s,schema:d,dashboard:n,query:T}))})().catch(e=>{console.error(e.message)})},[i,f,v,s,d]);const M=e=>{const t={...s?.doc.query.filter||{},...o?.filter,...e?.value},n=t.date_range||s?.doc.query.date_range;if(delete t.date_range,O(!1),E(),k(!0),"context"===i?.doc?.source?.type)return h({filter:t}),void k(!1);const r={filter:t,date_range:n,parameters:o?.params};R(r),Ha.runReport({id:s.id,query:r}).then(e=>{h(i.doc.source.reverse?e.reverse():e)}).catch(e=>{h([])}).finally(()=>{k(!1)})},I=e=>{_.current=e,A?M(e):(E(e),O(!0))};return u.useEffect(()=>(L?.on("mergedFilterChanged",I),()=>{L?.off("mergedFilterChanged",I)}),[L,s,i,A]),u.useEffect(()=>{A&&C&&M(S)},[A,C]),u.createElement(Dr,{ref:P,style:{margin:"4px",padding:"16px",flexGrow:n?void 0:1,display:"flex",flexDirection:"column",gap:"16px"},elevation:0},u.createElement(Yr,{style:{visibility:x?"visible":"hidden"}}),u.createElement("div",{style:{display:"flex"}},u.createElement("div",null,i&&u.createElement("div",{style:{display:"flex",alignItems:"center",lineHeight:0}},u.createElement(Qa,{noWrap:!0,variant:"h6"},o?.title||i.doc.name," "))),u.createElement("div",{style:{flexGrow:1}}),u.createElement("div",null,i?.doc?.view?.length>1&&u.createElement(Ms,null,u.createElement(Pu,{labelId:"date-range-select-label",id:"date-range-select",value:b,onChange:N,style:{fontSize:"12px"},disableUnderline:!0},i.doc.view.map((e,t)=>u.createElement(Qu,{key:t,value:t},e.title)))))),u.createElement("div",{style:{minHeight:i?.doc?.size?.height||(n?"300px":"0"),position:"relative",paddingTop:i?.doc?.size?.vpad,paddingBottom:i?.doc?.size?.vpad,flexGrow:n?void 0:1}},u.createElement(nk,{filters:i?.doc?.filters,channel:L,query:T}),m))},ck=[0,1,2,3,4,5,6,7,8,9,10],dk=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function pk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var fk=l.forwardRef(function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,s=e.className,u=e.component,c=void 0===u?"div":u,d=e.container,h=void 0!==d&&d,g=e.direction,v=void 0===g?"row":g,y=e.item,b=void 0!==y&&y,w=e.justify,x=e.justifyContent,k=void 0===x?"flex-start":x,S=e.lg,E=void 0!==S&&S,C=e.md,O=void 0!==C&&C,_=e.sm,T=void 0!==_&&_,R=e.spacing,P=void 0===R?0:R,A=e.wrap,L=void 0===A?"wrap":A,N=e.xl,M=void 0!==N&&N,I=e.xs,F=void 0!==I&&I,$=e.zeroMinWidth,j=void 0!==$&&$,z=p(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=m(a.root,s,h&&[a.container,0!==P&&a["spacing-xs-".concat(String(P))]],b&&a.item,j&&a.zeroMinWidth,"row"!==v&&a["direction-xs-".concat(String(v))],"wrap"!==L&&a["wrap-xs-".concat(String(L))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==(w||k)&&a["justify-content-xs-".concat(String(w||k))],!1!==F&&a["grid-xs-".concat(String(F))],!1!==T&&a["grid-sm-".concat(String(T))],!1!==O&&a["grid-md-".concat(String(O))],!1!==E&&a["grid-lg-".concat(String(E))],!1!==M&&a["grid-xl-".concat(String(M))]);return l.createElement(c,f({className:B,ref:t},z))}),hk=zr(function(e){return f({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return ck.forEach(function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(pk(o,2)),width:"calc(100% + ".concat(pk(o),")"),"& > $item":{padding:pk(o,2)}})}),n}(e,"xs"),e.breakpoints.keys.reduce(function(t,n){return function(e,t,n){var r={};dk.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?f(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))},{name:"MuiGrid"})(fk),mk=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,u=e.fixed,c=void 0!==u&&u,d=e.maxWidth,h=void 0===d?"lg":d,g=p(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return l.createElement(i,f({className:m(n.root,r,c&&n.fixed,s&&n.disableGutters,!1!==h&&n["maxWidth".concat(Kr(String(h)))]),ref:t},g))}),gk=zr(function(e){return{root:w({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce(function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t},{}),maxWidthXs:w({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:w({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:w({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:w({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:w({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}},{name:"MuiContainer"})(mk);var vk={Chart:uk,Dashboard:function({id:e="sample_dashboard",token:t,params:n,base_url:r}){const[o,i]=u.useState(),[a]=u.useState(),[s,l]=u.useState([]),c=u.useRef({}),d=sk();lk(d);const p=async e=>{const t=e?.doc?.rows||[],n=[];for(let e=0;e<t.length;e++){const r=t[e];r.columns?.forEach(e=>{if(e.override?.filter?.length){const t={};e.override.filter.forEach(e=>{e.hasOwnProperty("value")&&(t[e.field]=[e.value])}),e.filter=t}}),n.push(r)}l(n)};return u.useEffect(()=>{e&&(async()=>{Ha.setBaseUrl(r),Ha.setToken(t),await Ha.loadDashboardMeta({dashboardId:e});const n=await Ha.getDashboard({id:e});c.current[n?.id]=n,i(n),await p(n)})().catch(e=>console.error(e.message))},[e]),u.createElement(gk,null,u.createElement(hk,{container:!0},s?.map((e,r)=>u.createElement(hk,{key:r,container:!0,item:!0},e?.columns?.map((e,r)=>u.createElement(hk,Wr({key:r,item:!0},e.layout),u.createElement(uk,{token:t,cache:c.current,id:e.id,dashboard:o,schema:a,channel:null,title:e.title,filter:e.filter,params:n})))))))}};return vk}();
|
|
127
|
+
`,gv="string"!=typeof hv?Xp`
|
|
128
|
+
animation: ${hv} 1.4s linear infinite;
|
|
129
|
+
`:null,vv="string"!=typeof mv?Xp`
|
|
130
|
+
animation: ${mv} 1.4s ease-in-out infinite;
|
|
131
|
+
`:null,yv=mg("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Mf(n.color)}`]]}})(wg(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gv||{animation:`${hv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bv=mg("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),wv=mg("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Mf(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(wg(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:vv||{animation:`${mv} 1.4s ease-in-out infinite`}}]}))),xv=mg("circle",{name:"MuiCircularProgress",slot:"Track"})(wg(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),kv=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:s,thickness:u,value:c,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Cm({root:["root",n,`color${Mf(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Mf(n)}`,o&&"circleDisableShrink"]},pv,t)})(f),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((fv-u)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return cf.jsx(yv,{className:yg(h.root,r),style:{width:s,height:s,...g,...l},ownerState:f,ref:t,role:"progressbar",...v,...p,children:cf.jsxs(bv,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?cf.jsx(xv,{className:h.track,ownerState:f,cx:fv,cy:fv,r:(fv-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,cf.jsx(wv,{className:h.circle,style:m,ownerState:f,cx:fv,cy:fv,r:(fv-u)/2,fill:"none",strokeWidth:u})]})})});function Sv(e){return Bh("MuiIconButton",e)}const Ev=Dh("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Cv=mg(uv,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Mf(n.color)}`],n.edge&&t[`edge${Mf(n.edge)}`],t[`size${Mf(n.size)}`]]}})(wg(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),wg(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Ev.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ev.loading}`]:{color:"transparent"}}))),Ov=mg("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Tv=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium",id:c,loading:d=null,loadingIndicator:p,...f}=n,h=wm(c),m=p??cf.jsx(kv,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:s,disableFocusRipple:l,loading:d,loadingIndicator:m,size:u},v=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Cm({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Mf(r)}`,o&&`edge${Mf(o)}`,`size${Mf(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Sv,t)})(g);return cf.jsxs(Cv,{id:d?h:c,className:yg(v.root,i),centerRipple:!0,focusRipple:!l,disabled:s||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&cf.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:cf.jsx(Ov,{className:v.loadingIndicator,ownerState:g,children:d&&m})}),o]})});var _v=Cg(cf.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));function Rv({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function Pv(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const Av=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=Pv(u));const c=u?e.filter(e=>{let r=(i||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Pv(r)),"start"===o?r.startsWith(u):r.includes(u)}):e;return"number"==typeof r?c.slice(0,r):c}}(),Lv=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),Nv=[];function Mv(e,t,n,r){if(t||null==e||r)return"";const o=n(e);return"string"==typeof o?o:""}function Iv(e){const{unstable_isActiveElementInListbox:t=Lv,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(e.multiple?Nv:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=Av,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:w,getOptionKey:x,getOptionLabel:k=e=>e.label??e,groupBy:S,handleHomeEndKeys:E=!e.freeSolo,id:C,includeInputInList:O=!1,inputValue:T,isOptionEqualToValue:_=(e,t)=>e===t,multiple:R=!1,onChange:P,onClose:A,onHighlightChange:L,onInputChange:N,onOpen:M,open:I,openOnFocus:F=!1,options:$,readOnly:j=!1,renderValue:z,selectOnFocus:B=!e.freeSolo,value:D}=e,W=wm(C);let U=k;U=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const V=l.useRef(!1),K=l.useRef(!0),H=l.useRef(null),q=l.useRef(null),[G,Y]=l.useState(null),[X,Q]=l.useState(-1),J=o?0:-1,Z=l.useRef(J),ee=l.useRef(Mv(d??D,R,U)).current,[te,ne]=Pg({controlled:D,default:d,name:c}),[re,oe]=Pg({controlled:T,default:ee,name:c,state:"inputValue"}),[ie,ae]=l.useState(!1),se=l.useCallback((e,t,n)=>{if(!(R?te.length<t.length:null!==t)&&!s)return;const r=Mv(t,R,U,z);re!==r&&(oe(r),N&&N(e,r,n))},[U,re,R,N,oe,s,te,z]),[le,ue]=Pg({controlled:I,default:!1,name:c,state:"open"}),[ce,de]=l.useState(!0),pe=!R&&null!=te&&re===U(te),fe=le&&!j,he=fe?v($.filter(e=>!y||!(R?te:[te]).some(t=>null!==t&&_(e,t))),{inputValue:pe&&ce?"":re,getOptionLabel:U}):[],me=function(e){const t=l.useRef({});return l.useEffect(()=>{t.current=e}),t.current}({filteredOptions:he,value:te,inputValue:re});l.useEffect(()=>{const e=te!==me.value;ie&&!e||b&&!e||se(null,te,"reset")},[te,se,ie,me.value,b]);const ge=le&&he.length>0&&!j,ve=Ag(e=>{if(-1===e)H.current.focus();else{const t=z?"data-item-index":"data-tag-index";G.querySelector(`[${t}="${e}"]`).focus()}});l.useEffect(()=>{R&&X>te.length-1&&(Q(-1),ve(-1))},[te,R,X,ve]);const ye=Ag(({event:e,index:t,reason:r})=>{if(Z.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${W}-option-${t}`),L&&["mouse","keyboard","touch"].includes(r)&&L(e,-1===t?null:he[t],r),!q.current)return;const o=q.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let i=q.current;if("listbox"!==q.current.getAttribute("role")&&(i=q.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=q.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${n}-focused`),"keyboard"===r&&a.classList.add(`${n}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}}),be=Ag(({event:e,diff:t,direction:n="next",reason:o})=>{if(!fe)return;const i=function(e,t){if(!q.current||e<0||e>=he.length)return-1;let n=e;for(;;){const r=q.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%he.length:(n-1+he.length)%he.length,n===e)return-1}}((()=>{const e=he.length-1;if("reset"===t)return J;if("start"===t)return 0;if("end"===t)return e;const n=Z.current+t;return n<0?-1===n&&O?-1:g&&-1!==Z.current||Math.abs(t)>1?0:e:n>e?n===e+1&&O?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ye({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)H.current.value=re;else{const e=U(he[i]);H.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}}),we=!Rv({array1:me.filteredOptions,array2:he,parser:U}),xe=l.useCallback(()=>{if(!fe)return;const e=(()=>{if(-1!==Z.current&&!Rv({array1:me.filteredOptions,array2:he,parser:U})&&me.inputValue===re&&(R?te.length===me.value.length&&me.value.every((e,t)=>U(te[t])===U(e)):(e=me.value,t=te,(e?U(e):"")===(t?U(t):"")))){const e=me.filteredOptions[Z.current];if(e)return he.findIndex(t=>U(t)===U(e))}var e,t;return-1})();if(-1!==e)return void(Z.current=e);const t=R?te[0]:te;if(0!==he.length&&null!=t){if(q.current){if(null!=t){const e=he[Z.current];if(R&&e&&-1!==te.findIndex(t=>_(e,t)))return;const n=he.findIndex(e=>_(e,t));return void(-1===n?be({diff:"reset"}):ye({index:n}))}Z.current>=he.length-1?ye({index:he.length-1}):ye({index:Z.current})}}else be({diff:"reset"})},[he.length,!R&&te,y,be,ye,fe,re,R]),ke=Ag(e=>{Rg(q,e),e&&xe()});l.useEffect(()=>{(we||fe)&&xe()},[xe,we,fe]);const Se=e=>{le||(ue(!0),de(!0),M&&M(e))},Ee=(e,t)=>{le&&(ue(!1),A&&A(e,t))},Ce=(e,t,n,r)=>{if(R){if(te.length===t.length&&te.every((e,n)=>e===t[n]))return}else if(te===t)return;P&&P(e,t,n,r),ne(t)},Oe=l.useRef(!1),Te=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(R){i=Array.isArray(te)?te.slice():[];const e=i.findIndex(e=>_(t,e));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}se(e,i,o),Ce(e,i,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||Ee(e,o),(!0===a||"touch"===a&&Oe.current||"mouse"===a&&!Oe.current)&&H.current.blur()};const _e=(e,t)=>{if(!R)return;""===re&&Ee(e,"toggleInput");let n=X;-1===X?""===re&&"previous"===t&&(n=te.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===te.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===te.length||"previous"===t&&-1===n)return-1;const e=z?"data-item-index":"data-tag-index",r=G.querySelector(`[${e}="${n}"]`);if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Q(n),ve(n)},Re=e=>{V.current=!0,oe(""),N&&N(e,"","clear"),Ce(e,R?[]:null,"clear")},Pe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===X||["ArrowLeft","ArrowRight"].includes(t.key)||(Q(-1),ve(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),be({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),be({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),be({diff:-5,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"PageDown":t.preventDefault(),be({diff:5,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowDown":t.preventDefault(),be({diff:1,direction:"next",reason:"keyboard",event:t}),Se(t);break;case"ArrowUp":t.preventDefault(),be({diff:-1,direction:"previous",reason:"keyboard",event:t}),Se(t);break;case"ArrowLeft":!R&&z?ve(0):_e(t,"previous");break;case"ArrowRight":!R&&z?ve(-1):_e(t,"next");break;case"Enter":if(-1!==Z.current&&fe){const e=he[Z.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Te(t,e,"selectOption"),r&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else b&&""!==re&&!1===pe&&(R&&t.preventDefault(),Te(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Ee(t,"escape")):u&&(""!==re||R&&te.length>0||z)&&(t.preventDefault(),t.stopPropagation(),Re(t));break;case"Backspace":if(R&&!j&&""===re&&te.length>0){const e=-1===X?te.length-1:X,n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})}R||!z||j||(ne(null),ve(-1));break;case"Delete":if(R&&!j&&""===re&&te.length>0&&-1!==X){const e=X,n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})}R||!z||j||(ne(null),ve(-1))}},Ae=e=>{ae(!0),F&&!V.current&&Se(e)},Le=e=>{t(q)?H.current.focus():(ae(!1),K.current=!0,V.current=!1,i&&-1!==Z.current&&fe?Te(e,he[Z.current],"blur"):i&&b&&""!==re?Te(e,re,"blur","freeSolo"):s&&se(e,te,"blur"),Ee(e,"blur"))},Ne=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),N&&N(e,t,"input")),""===t?p||R||Ce(e,null,"clear"):Se(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Z.current!==t&&ye({event:e,index:t,reason:"mouse"})},Ie=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Oe.current=!0},Fe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Te(e,he[t],"selectOption"),Oe.current=!1},$e=e=>t=>{const n=te.slice();n.splice(e,1),Ce(t,n,"removeOption",{option:te[e]})},je=e=>{Ce(e,null,"removeOption",{option:te})},ze=e=>{le?Ee(e,"toggleInput"):Se(e)},Be=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==W&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&K.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),K.current=!1)},We=e=>{h||""!==re&&le||ze(e)};let Ue=b&&re.length>0;Ue=Ue||(R?te.length>0:null!==te);let Ve=he;return S&&(Ve=he.reduce((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),h&&ie&&Le(),{getRootProps:(e={})=>({...e,onKeyDown:Pe(e),onMouseDown:Be,onClick:De}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:re,onBlur:Le,onFocus:Ae,onChange:Ne,onMouseDown:We,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ge?`${W}-listbox`:void 0,"aria-expanded":ge,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getItemProps:({index:e=0}={})=>({...R&&{key:e},...z?{"data-item-index":e}:{"data-tag-index":e},tabIndex:-1,...!j&&{onDelete:R?$e(e):je}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ze}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!j&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:ke,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(R?te:[te]).some(e=>null!=e&&_(t,e)),r=!!w&&w(t);return{key:x?.(t)??U(t),tabIndex:-1,role:"option",id:`${W}-option-${e}`,onMouseMove:Me,onClick:Fe,onTouchStart:Ie,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:W,inputValue:re,value:te,dirty:Ue,expanded:fe&&G,popupOpen:fe,focused:ie||-1!==X,anchorEl:G,setAnchorEl:Y,focusedItem:X,focusedTag:X,groupedOptions:Ve}}var Fv="top",$v="bottom",jv="right",zv="left",Bv="auto",Dv=[Fv,$v,jv,zv],Wv="start",Uv="end",Vv="viewport",Kv="popper",Hv=Dv.reduce(function(e,t){return e.concat([t+"-"+Wv,t+"-"+Uv])},[]),qv=[].concat(Dv,[Bv]).reduce(function(e,t){return e.concat([t,t+"-"+Wv,t+"-"+Uv])},[]),Gv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Yv(e){return e?(e.nodeName||"").toLowerCase():null}function Xv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qv(e){return e instanceof Xv(e).Element||e instanceof Element}function Jv(e){return e instanceof Xv(e).HTMLElement||e instanceof HTMLElement}function Zv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Xv(e).ShadowRoot||e instanceof ShadowRoot)}var ey={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Jv(o)&&Yv(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Jv(r)&&Yv(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function ty(e){return e.split("-")[0]}var ny=Math.max,ry=Math.min,oy=Math.round;function iy(){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 ay(){return!/^((?!chrome|android).)*safari/i.test(iy())}function sy(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jv(e)&&(o=e.offsetWidth>0&&oy(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&oy(r.height)/e.offsetHeight||1);var a=(Qv(e)?Xv(e):window).visualViewport,s=!ay()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function ly(e){var t=sy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cy(e){return Xv(e).getComputedStyle(e)}function dy(e){return["table","td","th"].indexOf(Yv(e))>=0}function py(e){return((Qv(e)?e.ownerDocument:e.document)||window.document).documentElement}function fy(e){return"html"===Yv(e)?e:e.assignedSlot||e.parentNode||(Zv(e)?e.host:null)||py(e)}function hy(e){return Jv(e)&&"fixed"!==cy(e).position?e.offsetParent:null}function my(e){for(var t=Xv(e),n=hy(e);n&&dy(n)&&"static"===cy(n).position;)n=hy(n);return n&&("html"===Yv(n)||"body"===Yv(n)&&"static"===cy(n).position)?t:n||function(e){var t=/firefox/i.test(iy());if(/Trident/i.test(iy())&&Jv(e)&&"fixed"===cy(e).position)return null;var n=fy(e);for(Zv(n)&&(n=n.host);Jv(n)&&["html","body"].indexOf(Yv(n))<0;){var r=cy(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function gy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vy(e,t,n){return ny(e,ry(t,n))}function yy(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function by(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wy={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ty(n.placement),l=gy(s),u=[zv,jv].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return yy("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:by(e,Dv))}(o.padding,n),d=ly(i),p="y"===l?Fv:zv,f="y"===l?$v:jv,h=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],g=my(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=c[p],w=v-d[u]-c[f],x=v/2-d[u]/2+y,k=vy(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&uy(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xy(e){return e.split("-")[1]}var ky={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=zv,w=Fv,x=window;if(u){var k=my(n),S="clientHeight",E="clientWidth";if(k===Xv(n)&&"static"!==cy(k=py(n)).position&&"absolute"===s&&(S="scrollHeight",E="scrollWidth"),o===Fv||(o===zv||o===jv)&&i===Uv)w=$v,m-=(d&&k===x&&x.visualViewport?x.visualViewport.height:k[S])-r.height,m*=l?1:-1;if(o===zv||(o===Fv||o===$v)&&i===Uv)b=jv,f-=(d&&k===x&&x.visualViewport?x.visualViewport.width:k[E])-r.width,f*=l?1:-1}var C,O=Object.assign({position:s},u&&ky),T=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:oy(n*o)/o||0,y:oy(r*o)/o||0}}({x:f,y:m},Xv(n)):{x:f,y:m};return f=T.x,m=T.y,l?Object.assign({},O,((C={})[w]=y?"0":"",C[b]=v?"0":"",C.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},O,((t={})[w]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var Ey={passive:!0};var Cy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Xv(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",n.update,Ey)}),s&&l.addEventListener("resize",n.update,Ey),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",n.update,Ey)}),s&&l.removeEventListener("resize",n.update,Ey)}},data:{}},Oy={left:"right",right:"left",bottom:"top",top:"bottom"};function Ty(e){return e.replace(/left|right|bottom|top/g,function(e){return Oy[e]})}var _y={start:"end",end:"start"};function Ry(e){return e.replace(/start|end/g,function(e){return _y[e]})}function Py(e){var t=Xv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ay(e){return sy(py(e)).left+Py(e).scrollLeft}function Ly(e){var t=cy(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ny(e){return["html","body","#document"].indexOf(Yv(e))>=0?e.ownerDocument.body:Jv(e)&&Ly(e)?e:Ny(fy(e))}function My(e,t){var n;void 0===t&&(t=[]);var r=Ny(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Xv(r),a=o?[i].concat(i.visualViewport||[],Ly(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(My(fy(a)))}function Iy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Fy(e,t,n){return t===Vv?Iy(function(e,t){var n=Xv(e),r=py(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=ay();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ay(e),y:l}}(e,n)):Qv(t)?function(e,t){var n=sy(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Iy(function(e){var t,n=py(e),r=Py(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ny(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ny(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Ay(e),l=-r.scrollTop;return"rtl"===cy(o||n).direction&&(s+=ny(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(py(e)))}function $y(e,t,n,r){var o="clippingParents"===t?function(e){var t=My(fy(e)),n=["absolute","fixed"].indexOf(cy(e).position)>=0&&Jv(e)?my(e):e;return Qv(n)?t.filter(function(e){return Qv(e)&&uy(e,n)&&"body"!==Yv(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(t,n){var o=Fy(e,n,r);return t.top=ny(o.top,t.top),t.right=ry(o.right,t.right),t.bottom=ry(o.bottom,t.bottom),t.left=ny(o.left,t.left),t},Fy(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function jy(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ty(o):null,a=o?xy(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Fv:t={x:s,y:n.y-r.height};break;case $v:t={x:s,y:n.y+n.height};break;case jv:t={x:n.x+n.width,y:l};break;case zv:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?gy(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case Wv:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Uv:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function zy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,u=n.rootBoundary,c=void 0===u?Vv:u,d=n.elementContext,p=void 0===d?Kv:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=yy("number"!=typeof g?g:by(g,Dv)),y=p===Kv?"reference":Kv,b=e.rects.popper,w=e.elements[h?y:p],x=$y(Qv(w)?w:w.contextElement||py(e.elements.popper),l,c,a),k=sy(e.elements.reference),S=jy({reference:k,element:b,placement:o}),E=Iy(Object.assign({},b,S)),C=p===Kv?E:k,O={top:x.top-C.top+v.top,bottom:C.bottom-x.bottom+v.bottom,left:x.left-C.left+v.left,right:C.right-x.right+v.right},T=e.modifiersData.offset;if(p===Kv&&T){var _=T[o];Object.keys(O).forEach(function(e){var t=[jv,$v].indexOf(e)>=0?1:-1,n=[Fv,$v].indexOf(e)>=0?"y":"x";O[e]+=_[n]*t})}return O}function By(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?qv:l,c=xy(r),d=c?s?Hv:Hv.filter(function(e){return xy(e)===c}):Dv,p=d.filter(function(e){return u.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=zy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ty(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var Dy={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=ty(g),y=l||(v===g||!h?[Ty(g)]:function(e){if(ty(e)===Bv)return[];var t=Ty(e);return[Ry(e),t,Ry(t)]}(g)),b=[g].concat(y).reduce(function(e,n){return e.concat(ty(n)===Bv?By(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,x=t.rects.popper,k=new Map,S=!0,E=b[0],C=0;C<b.length;C++){var O=b[C],T=ty(O),_=xy(O)===Wv,R=[Fv,$v].indexOf(T)>=0,P=R?"width":"height",A=zy(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=R?_?jv:zv:_?$v:Fv;w[P]>x[P]&&(L=Ty(L));var N=Ty(L),M=[];if(i&&M.push(A[T]<=0),s&&M.push(A[L]<=0,A[N]<=0),M.every(function(e){return e})){E=O,S=!1;break}k.set(O,M)}if(S)for(var I=function(e){var t=b.find(function(t){var n=k.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},F=h?3:1;F>0;F--){if("break"===I(F))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Wy(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Uy(e){return[Fv,jv,$v,zv].some(function(t){return e[t]>=0})}var Vy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=zy(t,{elementContext:"reference"}),s=zy(t,{altBoundary:!0}),l=Wy(a,r),u=Wy(s,o,i),c=Uy(l),d=Uy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Ky={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=qv.reduce(function(e,n){return e[n]=function(e,t,n){var r=ty(e),o=[zv,Fv].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[zv,jv].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var Hy={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=jy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};var qy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=zy(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=ty(t.placement),y=xy(t.placement),b=!y,w=gy(v),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(i){var R,P="y"===w?Fv:zv,A="y"===w?$v:jv,L="y"===w?"height":"width",N=k[w],M=N+g[P],I=N-g[A],F=f?-E[L]/2:0,$=y===Wv?S[L]:E[L],j=y===Wv?-E[L]:-S[L],z=t.elements.arrow,B=f&&z?ly(z):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=D[P],U=D[A],V=vy(0,S[L],B[L]),K=b?S[L]/2-F-V-W-O.mainAxis:$-V-W-O.mainAxis,H=b?-S[L]/2+F+V+U+O.mainAxis:j+V+U+O.mainAxis,q=t.elements.arrow&&my(t.elements.arrow),G=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Y=null!=(R=null==T?void 0:T[w])?R:0,X=N+H-Y,Q=vy(f?ry(M,N+K-Y-G):M,N,f?ny(I,X):I);k[w]=Q,_[w]=Q-N}if(s){var J,Z="x"===w?Fv:zv,ee="x"===w?$v:jv,te=k[x],ne="y"===x?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Fv,zv].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-S[ne]-E[ne]-ae+O.altAxis,le=ie?te+S[ne]+E[ne]-ae-O.altAxis:oe,ue=f&&ie?function(e,t,n){var r=vy(e,t,n);return r>n?n:r}(se,te,le):vy(f?se:re,te,f?le:oe);k[x]=ue,_[x]=ue-te}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Gy(e,t,n){void 0===n&&(n=!1);var r=Jv(t),o=Jv(t)&&function(e){var t=e.getBoundingClientRect(),n=oy(t.width)/e.offsetWidth||1,r=oy(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=py(t),a=sy(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Yv(t)||Ly(i))&&(s=function(e){return e!==Xv(e)&&Jv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Py(e);var t}(t)),Jv(t)?((l=sy(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ay(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Yy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var Xy={placement:"bottom",modifiers:[],strategy:"absolute"};function Qy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Jy(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Xy:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xy,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Qv(e)?My(e):e.contextElement?My(e.contextElement):[],popper:My(t)};var a,u,p=function(e){var t=Yy(e);return Gv.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((a=[].concat(r,s.options.modifiers),u=a.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return s.orderedModifiers=p.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:r}),a=function(){};l.push(i||a)}}),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(Qy(t,n)){s.rects={reference:Gy(t,my(n),"fixed"===s.options.strategy),popper:ly(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){c.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){d(),u=!0}};if(!Qy(e,t))return c;function d(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var Zy=Jy({defaultModifiers:[Cy,Hy,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,u={placement:ty(t.placement),variation:xy(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Sy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Sy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ey,Ky,Dy,qy,wy,Vy]});function eb(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Ug(n,r),{props:s,internalRef:l}=Hg({...i,externalSlotProps:a});return Wg(t,{...s,ref:Lg(l,a?.ref,e.additionalProps?.ref)},r)}function tb(e){return parseInt(l.version,10)>=19?e?.props?.ref||null:e?.ref||null}const nb=l.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=l.useState(null),s=Lg(l.isValidElement(n)?tb(n):null,t);if(em(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),em(()=>{if(i&&!o)return Rg(t,i),()=>{Rg(t,null)}},[t,i,o]),o){if(l.isValidElement(n)){const e={ref:s};return l.cloneElement(n,e)}return n}return i?Ol.createPortal(n,i):i});function rb(e){return Bh("MuiPopper",e)}function ob(e){return"function"==typeof e?e():e}Dh("MuiPopper",["root"]);const ib={},ab=l.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h,ownerState:m,...g}=e,v=l.useRef(null),y=Lg(v,t),b=l.useRef(null),w=Lg(b,d),x=l.useRef(w);em(()=>{x.current=w},[w]),l.useImperativeHandle(d,()=>b.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,o),[S,E]=l.useState(k),[C,O]=l.useState(ob(n));l.useEffect(()=>{b.current&&b.current.forceUpdate()}),l.useEffect(()=>{n&&O(ob(n))},[n]),em(()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=Zy(C,v.current,{placement:k,...c,modifiers:e});return x.current(t),()=>{t.destroy(),x.current(null)}},[C,i,a,s,c,k]);const T={placement:S};null!==h&&(T.TransitionProps=h);const _=(e=>{const{classes:t}=e;return Cm({root:["root"]},rb,t)})(e),R=f.root??"div",P=eb({elementType:R,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:_.root});return cf.jsx(R,{...P,children:"function"==typeof r?r(T):r})}),sb=l.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=ib,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:v={},...y}=e,[b,w]=l.useState(!0);if(!s&&!c&&(!m||b))return null;let x;if(o)x=o;else if(n){const e=ob(n);x=e&&void 0!==e.nodeType?Tg(e).body:Tg(null).body}const k=c||!s||m&&!b?void 0:"none",S=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return cf.jsx(nb,{disablePortal:a,container:x,children:cf.jsx(ab,{anchorEl:n,direction:i,disablePortal:a,modifiers:u,ref:t,open:m?!b:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:v,...y,style:{position:"fixed",top:0,left:0,display:k,...h},TransitionProps:S,children:r})})}),lb=mg(sb,{name:"MuiPopper",slot:"Root"})({}),ub=l.forwardRef(function(e,t){const n=mm(),r=xg({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:v,slotProps:y,...b}=r,w=v?.root??a?.Root,x={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...b};return cf.jsx(lb,{as:i,direction:n?"rtl":"ltr",slots:{root:w},slotProps:y??s,...x,ref:t})});function cb(e){return Bh("MuiListSubheader",e)}Dh("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const db=mg("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Mf(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(wg(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),pb=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1,...u}=n,c={...n,color:o,component:i,disableGutters:a,disableSticky:s,inset:l},d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e;return Cm({root:["root","default"!==n&&`color${Mf(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]},cb,t)})(c);return cf.jsx(db,{as:i,className:yg(d.root,r),ref:t,ownerState:c,...u})});pb&&(pb.muiSkipListHighlight=!0);var fb=Cg(cf.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function hb(e){return Bh("MuiChip",e)}const mb=Dh("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),gb=mg("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${mb.avatar}`]:t.avatar},{[`& .${mb.avatar}`]:t[`avatar${Mf(s)}`]},{[`& .${mb.avatar}`]:t[`avatarColor${Mf(r)}`]},{[`& .${mb.icon}`]:t.icon},{[`& .${mb.icon}`]:t[`icon${Mf(s)}`]},{[`& .${mb.icon}`]:t[`iconColor${Mf(o)}`]},{[`& .${mb.deleteIcon}`]:t.deleteIcon},{[`& .${mb.deleteIcon}`]:t[`deleteIcon${Mf(s)}`]},{[`& .${mb.deleteIcon}`]:t[`deleteIconColor${Mf(r)}`]},{[`& .${mb.deleteIcon}`]:t[`deleteIcon${Mf(l)}Color${Mf(r)}`]},t.root,t[`size${Mf(s)}`],t[`color${Mf(r)}`],i&&t.clickable,i&&"default"!==r&&t[`clickableColor${Mf(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${Mf(r)}`],t[l],t[`${l}${Mf(r)}`]]}})(wg(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mb.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${mb.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mb.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mb.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mb.icon}`]:{marginLeft:5,marginRight:-6},[`& .${mb.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${mb.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${mb.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(dv(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${mb.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${mb.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${mb.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${mb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(dv(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${mb.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${mb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dv(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${mb.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mb.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mb.avatar}`]:{marginLeft:4},[`& .${mb.avatarSmall}`]:{marginLeft:2},[`& .${mb.icon}`]:{marginLeft:4},[`& .${mb.iconSmall}`]:{marginLeft:2},[`& .${mb.deleteIcon}`]:{marginRight:5},[`& .${mb.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${mb.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${mb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${mb.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),vb=mg("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Mf(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yb(e){return"Backspace"===e.key||"Delete"===e.key}const bb=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:i,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:f,onDelete:h,onKeyDown:m,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,slots:x={},slotProps:k={},...S}=n,E=Lg(l.useRef(null),t),C=e=>{e.stopPropagation(),h&&h(e)},O=!(!1===i||!f)||i,T=O||h?uv:s||"div",_={...n,component:T,disabled:c,size:v,color:a,iconColor:l.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:O,variant:y},R=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e;return Cm({root:["root",l,n&&"disabled",`size${Mf(r)}`,`color${Mf(o)}`,s&&"clickable",s&&`clickableColor${Mf(o)}`,a&&"deletable",a&&`deletableColor${Mf(o)}`,`${l}${Mf(o)}`],label:["label",`label${Mf(r)}`],avatar:["avatar",`avatar${Mf(r)}`,`avatarColor${Mf(o)}`],icon:["icon",`icon${Mf(r)}`,`iconColor${Mf(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Mf(r)}`,`deleteIconColor${Mf(o)}`,`deleteIcon${Mf(l)}Color${Mf(o)}`]},hb,t)})(_),P=T===uv?{component:s||"div",focusVisibleClassName:R.focusVisible,...h&&{disableRipple:!0}}:{};let A=null;h&&(A=u&&l.isValidElement(u)?l.cloneElement(u,{className:yg(u.props.className,R.deleteIcon),onClick:C}):cf.jsx(fb,{className:R.deleteIcon,onClick:C}));let L=null;r&&l.isValidElement(r)&&(L=l.cloneElement(r,{className:yg(R.avatar,r.props.className)}));let N=null;d&&l.isValidElement(d)&&(N=l.cloneElement(d,{className:yg(R.icon,d.props.className)}));const M={slots:x,slotProps:k},[I,F]=qg("root",{elementType:gb,externalForwardedProps:{...M,...S},ownerState:_,shouldForwardComponentProp:!0,ref:E,className:yg(R.root,o),additionalProps:{disabled:!(!O||!c)||void 0,tabIndex:w&&c?-1:b,...P},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),(e=>{e.currentTarget===e.target&&yb(e)&&e.preventDefault(),m&&m(e)})(t)},onKeyUp:t=>{e.onKeyUp?.(t),(e=>{e.currentTarget===e.target&&h&&yb(e)&&h(e),g&&g(e)})(t)}})}),[$,j]=qg("label",{elementType:vb,externalForwardedProps:M,ownerState:_,className:R.label});return cf.jsxs(I,{as:T,...F,children:[L||N,cf.jsx($,{...j,children:p}),A]})});function wb(e){return parseInt(e,10)||0}const xb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Sb=l.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...s}=e,{current:u}=l.useRef(null!=a),c=l.useRef(null),d=Lg(t,c),p=l.useRef(null),f=l.useRef(null),h=l.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const i=_g(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=wb(i.paddingBottom)+wb(i.paddingTop),l=wb(i.borderBottomWidth)+wb(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[r,o,e.placeholder]),m=Ag(()=>{const e=c.current,t=h();if(!e||!t||kb(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=l.useCallback(()=>{const e=c.current,t=h();if(!e||!t||kb(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=l.useRef(-1);em(()=>{const e=Og(g),t=c?.current;if(!t)return;const n=_g(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),em(()=>{g()});return cf.jsxs(l.Fragment,{children:[cf.jsx("textarea",{value:a,onChange:e=>{u||g();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:o,style:i,...s}),cf.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...xb,...i,paddingTop:0,paddingBottom:0}})]})});function Eb({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Cb=l.createContext(void 0);function Ob(){return l.useContext(Cb)}function Tb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _b(e,t=!1){return e&&(Tb(e.value)&&""!==e.value||t&&Tb(e.defaultValue)&&""!==e.defaultValue)}function Rb(e){return Bh("MuiInputBase",e)}const Pb=Dh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ab;const Lb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Mf(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nb=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Mb=mg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Lb})(wg(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Pb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Ib=mg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nb})(wg(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Pb.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Pb.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Fb=function(e){return function(t){return cf.jsx(bg,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),$b=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,error:m,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:w,margin:x,maxRows:k,minRows:S,multiline:E=!1,name:C,onBlur:O,onChange:T,onClick:_,onFocus:R,onKeyDown:P,onKeyUp:A,placeholder:L,readOnly:N,renderSuffix:M,rows:I,size:F,slotProps:$={},slots:j={},startAdornment:z,type:B="text",value:D,...W}=n,U=null!=b.value?b.value:D,{current:V}=l.useRef(null!=U),K=l.useRef(),H=l.useCallback(e=>{},[]),q=Lg(K,w,b.ref,H),[G,Y]=l.useState(!1),X=Ob(),Q=Eb({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:G,l.useEffect(()=>{!X&&p&&G&&(Y(!1),O&&O())},[X,p,G,O]);const J=X&&X.onFilled,Z=X&&X.onEmpty,ee=l.useCallback(e=>{_b(e)?J&&J():Z&&Z()},[J,Z]);em(()=>{V&&ee({value:U})},[U,ee,V]);l.useEffect(()=>{ee(K.current)},[]);let te=y,ne=b;E&&"input"===te&&(ne=I?{type:void 0,minRows:I,maxRows:I,...ne}:{type:void 0,maxRows:k,minRows:S,...ne},te=Sb);l.useEffect(()=>{X&&X.setAdornedStart(Boolean(z))},[X,z]);const re={...n,color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:B},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Cm({root:["root",`color${Mf(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Mf(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Rb,t)})(re),ie=j.root||u.Root||Mb,ae=$.root||c.root||{},se=j.input||u.Input||Ib;return ne={...ne,...$.input??c.input},cf.jsxs(l.Fragment,{children:[!f&&"function"==typeof Fb&&(Ab||(Ab=cf.jsx(Fb,{}))),cf.jsxs(ie,{...ae,ref:t,onClick:e=>{K.current&&e.currentTarget===e.target&&K.current.focus(),_&&_(e)},...W,...!Dg(ie)&&{ownerState:{...re,...ae.ownerState}},className:yg(oe.root,ae.className,a,N&&"MuiInputBase-readOnly"),children:[z,cf.jsx(Cb.Provider,{value:null,children:cf.jsx(se,{"aria-invalid":Q.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:d,disabled:Q.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:C,placeholder:L,readOnly:N,required:Q.required,rows:I,value:U,onKeyDown:P,onKeyUp:A,type:B,...ne,...!Dg(se)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:q,className:yg(oe.input,ne.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{O&&O(e),b.onBlur&&b.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||K.current;if(null==t)throw new Error(gd(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),T&&T(e,...t)},onFocus:e=>{R&&R(e),b.onFocus&&b.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0)}})}),h,M?M({...Q,startAdornment:z}):null]})]})});function jb(e){return Bh("MuiInput",e)}const zb={...Pb,...Dh("MuiInput",["root","underline","input"])};function Bb(e){return Bh("MuiOutlinedInput",e)}const Db={...Pb,...Dh("MuiOutlinedInput",["root","notchedOutline","input"])};function Wb(e){return Bh("MuiFilledInput",e)}const Ub={...Pb,...Dh("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};var Vb=Cg(cf.jsx("path",{d:"M7 10l5 5 5-5z"}));function Kb(e){return Bh("MuiAutocomplete",e)}const Hb=Dh("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var qb,Gb;const Yb=mg("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Hb.tag}`]:t.tag},{[`& .${Hb.tag}`]:t[`tagSize${Mf(s)}`]},{[`& .${Hb.inputRoot}`]:t.inputRoot},{[`& .${Hb.input}`]:t.input},{[`& .${Hb.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Hb.focused} .${Hb.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Hb.clearIndicator}`]:{visibility:"visible"}},[`& .${Hb.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Hb.inputRoot}`]:{[`.${Hb.hasPopupIcon}&, .${Hb.hasClearIcon}&`]:{paddingRight:30},[`.${Hb.hasPopupIcon}.${Hb.hasClearIcon}&`]:{paddingRight:56},[`& .${Hb.input}`]:{width:0,minWidth:30}},[`& .${zb.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${zb.root}.${Pb.sizeSmall}`]:{[`& .${zb.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Db.root}`]:{padding:9,[`.${Hb.hasPopupIcon}&, .${Hb.hasClearIcon}&`]:{paddingRight:39},[`.${Hb.hasPopupIcon}.${Hb.hasClearIcon}&`]:{paddingRight:65},[`& .${Hb.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Hb.endAdornment}`]:{right:9}},[`& .${Db.root}.${Pb.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Hb.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ub.root}`]:{paddingTop:19,paddingLeft:8,[`.${Hb.hasPopupIcon}&, .${Hb.hasClearIcon}&`]:{paddingRight:39},[`.${Hb.hasPopupIcon}.${Hb.hasClearIcon}&`]:{paddingRight:65},[`& .${Ub.input}`]:{padding:"7px 4px"},[`& .${Hb.endAdornment}`]:{right:9}},[`& .${Ub.root}.${Pb.sizeSmall}`]:{paddingBottom:1,[`& .${Ub.input}`]:{padding:"2.5px 4px"}},[`& .${Pb.hiddenLabel}`]:{paddingTop:8},[`& .${Ub.root}.${Pb.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Hb.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ub.root}.${Pb.hiddenLabel}.${Pb.sizeSmall}`]:{[`& .${Hb.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Hb.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Hb.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Hb.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Hb.inputRoot}`]:{flexWrap:"wrap"}}}]}),Xb=mg("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Qb=mg(Tv,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Jb=mg(Tv,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Zb=mg(ub,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hb.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(wg(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),ew=mg(Xg,{name:"MuiAutocomplete",slot:"Paper"})(wg(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),tw=mg("div",{name:"MuiAutocomplete",slot:"Loading"})(wg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),nw=mg("div",{name:"MuiAutocomplete",slot:"NoOptions"})(wg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),rw=mg("ul",{name:"MuiAutocomplete",slot:"Listbox"})(wg(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Hb.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Hb.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Hb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Hb.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Hb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),ow=mg(pb,{name:"MuiAutocomplete",slot:"GroupLabel"})(wg(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),iw=mg("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Hb.option}`]:{paddingLeft:24}}),aw=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,ChipProps:s,className:u,clearIcon:c=qb||(qb=cf.jsx(_v,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:h="Close",componentsProps:m,defaultValue:g=(n.multiple?[]:null),disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:b=!1,disabledItemsFocusable:w=!1,disableListWrap:x=!1,disablePortal:k=!1,filterOptions:S,filterSelectedOptions:E=!1,forcePopupIcon:C="auto",freeSolo:O=!1,fullWidth:T=!1,getLimitTagsText:_=e=>`+${e}`,getOptionDisabled:R,getOptionKey:P,getOptionLabel:A,isOptionEqualToValue:L,groupBy:N,handleHomeEndKeys:M=!n.freeSolo,id:I,includeInputInList:F=!1,inputValue:$,limitTags:j=-1,ListboxComponent:z,ListboxProps:B,loading:D=!1,loadingText:W="Loading…",multiple:U=!1,noOptionsText:V="No options",onChange:K,onClose:H,onHighlightChange:q,onInputChange:G,onOpen:Y,open:X,openOnFocus:Q=!1,openText:J="Open",options:Z,PaperComponent:ee,PopperComponent:te,popupIcon:ne=Gb||(Gb=cf.jsx(Vb,{})),readOnly:re=!1,renderGroup:oe,renderInput:ie,renderOption:ae,renderTags:se,renderValue:le,selectOnFocus:ue=!n.freeSolo,size:ce="medium",slots:de={},slotProps:pe={},value:fe,...he}=n,{getRootProps:me,getInputProps:ge,getInputLabelProps:ve,getPopupIndicatorProps:ye,getClearProps:be,getItemProps:we,getListboxProps:xe,getOptionProps:ke,value:Se,dirty:Ee,expanded:Ce,id:Oe,popupOpen:Te,focused:_e,focusedItem:Re,anchorEl:Pe,setAnchorEl:Ae,inputValue:Le,groupedOptions:Ne}=Iv({...n,componentName:"Autocomplete"}),Me=!v&&!b&&Ee&&!re,Ie=(!O||!0===C)&&!1!==C,{onMouseDown:Fe}=ge(),{ref:$e,...je}=xe(),ze=A||(e=>e.label??e),Be={...n,disablePortal:k,expanded:Ce,focused:_e,fullWidth:T,getOptionLabel:ze,hasClearIcon:Me,hasPopupIcon:Ie,inputFocused:-1===Re,popupOpen:Te,size:ce},De=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e;return Cm({root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Mf(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},Kb,t)})(Be),We={slots:{paper:ee,popper:te,...de},slotProps:{chip:s,listbox:B,...m,...pe}},[Ue,Ve]=qg("listbox",{elementType:rw,externalForwardedProps:We,ownerState:Be,className:De.listbox,additionalProps:je,ref:$e}),[Ke,He]=qg("paper",{elementType:Xg,externalForwardedProps:We,ownerState:Be,className:De.paper}),[qe,Ge]=qg("popper",{elementType:ub,externalForwardedProps:We,ownerState:Be,className:De.popper,additionalProps:{disablePortal:k,style:{width:Pe?Pe.clientWidth:null},role:"presentation",anchorEl:Pe,open:Te}});let Ye;const Xe=e=>({className:De.tag,disabled:b,...we(e)});if(U?Se.length>0&&(Ye=se?se(Se,Xe,Be):le?le(Se,Xe,Be):Se.map((e,t)=>{const{key:n,...r}=Xe({index:t});return cf.jsx(bb,{label:ze(e),size:ce,...r,...We.slotProps.chip},n)})):le&&null!=Se&&(Ye=le(Se,Xe,Be)),j>-1&&Array.isArray(Ye)){const e=Ye.length-j;!_e&&e>0&&(Ye=Ye.splice(0,j),Ye.push(cf.jsx("span",{className:De.tag,children:_(e)},Ye.length)))}const Qe=oe||(e=>cf.jsxs("li",{children:[cf.jsx(ow,{className:De.groupLabel,ownerState:Be,component:"div",children:e.group}),cf.jsx(iw,{className:De.groupUl,ownerState:Be,children:e.children})]},e.key)),Je=ae||((e,t)=>{const{key:n,...r}=e;return cf.jsx("li",{...r,children:ze(t)},n)}),Ze=(e,t)=>{const n=ke({option:e,index:t});return Je({...n,className:De.option},e,{selected:n["aria-selected"],index:t,inputValue:Le},Be)},et=We.slotProps.clearIndicator,tt=We.slotProps.popupIndicator;return cf.jsxs(l.Fragment,{children:[cf.jsx(Yb,{ref:t,className:yg(De.root,u),ownerState:Be,...me(he),children:ie({id:Oe,disabled:b,fullWidth:!0,size:"small"===ce?"small":void 0,InputLabelProps:ve(),InputProps:{ref:Ae,className:De.inputRoot,startAdornment:Ye,onMouseDown:e=>{e.target===e.currentTarget&&Fe(e)},...(Me||Ie)&&{endAdornment:cf.jsxs(Xb,{className:De.endAdornment,ownerState:Be,children:[Me?cf.jsx(Qb,{...be(),"aria-label":f,title:f,ownerState:Be,...et,className:yg(De.clearIndicator,et?.className),children:c}):null,Ie?cf.jsx(Jb,{...ye(),disabled:b,"aria-label":Te?h:J,title:Te?h:J,ownerState:Be,...tt,className:yg(De.popupIndicator,tt?.className),children:ne}):null]})}},inputProps:{className:De.input,disabled:b,readOnly:re,...ge()}})}),Pe?cf.jsx(Zb,{as:qe,...Ge,children:cf.jsxs(ew,{as:Ke,...He,children:[D&&0===Ne.length?cf.jsx(tw,{className:De.loading,ownerState:Be,children:W}):null,0!==Ne.length||O||D?null:cf.jsx(nw,{className:De.noOptions,ownerState:Be,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),Ne.length>0?cf.jsx(Ue,{as:z,...Ve,children:Ne.map((e,t)=>N?Qe({key:e.key,group:e.group,children:e.options.map((t,n)=>Ze(t,e.index+n))}):Ze(e,t))}):null]})}):null]})}),sw={entering:{opacity:1},entered:{opacity:1}},lw=l.forwardRef(function(e,t){const n=pg(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=nu,...b}=e,w=l.useRef(null),x=Lg(w,tb(a),t),k=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},S=k(p),E=k((e,t)=>{zg(e);const r=Bg({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),C=k(d),O=k(m),T=k(e=>{const t=Bg({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),_=k(h);return cf.jsx(y,{appear:i,in:u,nodeRef:w,onEnter:E,onEntered:C,onEntering:S,onExit:T,onExited:_,onExiting:O,addEndListener:e=>{o&&o(w.current,e)},timeout:v,...b,children:(e,{ownerState:t,...n})=>l.cloneElement(a,{style:{opacity:0,visibility:"exited"!==e||u?void 0:"hidden",...sw[e],...g,...a.props.style},ref:x,...n})})});function uw(e){return Bh("MuiBackdrop",e)}Dh("MuiBackdrop",["root","invisible"]);const cw=mg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),dw=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:s,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Cm({root:["root",n&&"invisible"]},uw,t)})(m),v={component:i,slots:{transition:p,root:l.Root,...d},slotProps:{...u,...c}},[y,b]=qg("root",{elementType:cw,externalForwardedProps:v,className:yg(g.root,o),ownerState:m}),[w,x]=qg("transition",{elementType:lw,externalForwardedProps:v,ownerState:m});return cf.jsx(w,{in:s,timeout:f,...h,...x,children:cf.jsx(y,{"aria-hidden":!0,...b,classes:g,ref:t,children:r})})}),pw=Dh("MuiBox",["root"]),fw=cg(),hw=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=pf("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Oh);return l.forwardRef(function(e,a){const s=Ah(n),{className:l,component:u="div",...c}=Mh(e);return cf.jsx(i,{as:u,ref:a,className:jh(l,o?o(r):r),theme:t&&s[t]||s,...c})})}({themeId:vd,defaultTheme:fw,defaultClassName:pw.root,generateClassName:Fh.generate});function mw(e){return Bh("PrivateSwitchBase",e)}Dh("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const gw=mg(uv,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),vw=mg("input",{name:"MuiSwitchBase",shouldForwardProp:hg})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),yw=l.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:u,id:c,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:v,required:y=!1,tabIndex:b,type:w,value:x,slots:k={},slotProps:S={},...E}=e,[C,O]=Pg({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),T=Ob();let _=a;T&&void 0===_&&(_=T.disabled);const R="checkbox"===w||"radio"===w,P={...e,checked:C,disabled:_,disableFocusRipple:s,edge:l},A=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Cm({root:["root",n&&"checked",r&&"disabled",o&&`edge${Mf(o)}`],input:["input"]},mw,t)})(P),L={slots:k,slotProps:{input:d,...S}},[N,M]=qg("root",{ref:t,elementType:gw,className:A.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...E},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),T&&T.onFocus&&T.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),T&&T.onBlur&&T.onBlur(e)})(t)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:_,role:void 0,tabIndex:null}}),[I,F]=qg("input",{ref:p,elementType:vw,className:A.input,externalForwardedProps:L,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;O(t),m&&m(e,t)})(t)}}),ownerState:P,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:_,id:R?c:void 0,name:f,readOnly:v,required:y,tabIndex:b,type:w,..."checkbox"===w&&void 0===x?{}:{value:x}}});return cf.jsxs(N,{...M,children:[cf.jsx(I,{...F}),C?o:u]})});var bw=Cg(cf.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),ww=Cg(cf.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),xw=Cg(cf.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function kw(e){return Bh("MuiCheckbox",e)}const Sw=Dh("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ew=mg(yw,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Mf(n.size)}`],"default"!==n.color&&t[`color${Mf(n.color)}`]]}})(wg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{[`&.${Sw.checked}, &.${Sw.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Sw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Cw=cf.jsx(ww,{}),Ow=cf.jsx(bw,{}),Tw=cf.jsx(xw,{}),_w=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiCheckbox"}),{checkedIcon:r=Cw,color:o="primary",icon:i=Ow,indeterminate:a=!1,indeterminateIcon:s=Tw,inputProps:u,size:c="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:h={},...m}=n,g=a?s:i,v=a?s:r,y={...n,disableRipple:d,color:o,indeterminate:a,size:c},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Cm({root:["root",n&&"indeterminate",`color${Mf(r)}`,`size${Mf(o)}`]},kw,t);return{...t,...i}})(y),w=h.input??u,[x,k]=qg("root",{ref:t,elementType:Ew,className:yg(b.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...m},ownerState:y,additionalProps:{type:"checkbox",icon:l.cloneElement(g,{fontSize:g.props.fontSize??c}),checkedIcon:l.cloneElement(v,{fontSize:v.props.fontSize??c}),disableRipple:d,slots:f,slotProps:{input:Ng("function"==typeof w?w(y):w,{"data-indeterminate":a})}}});return cf.jsx(x,{...k,classes:b})});function Rw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Pw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Aw(e){return parseInt(_g(e).getComputedStyle(e).paddingRight,10)||0}function Lw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Pw(e,o)})}function Nw(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Mw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Tg(e);return t.body===e?_g(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Rw(_g(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Aw(r)+e}px`;const t=Tg(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Aw(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Tg(r).body;else{const t=r.parentElement,n=_g(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Iw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fw(e){const t=[],n=[];return Array.from(e.querySelectorAll(Iw)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(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 t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function $w(){return!0}function jw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Fw,isEnabled:a=$w,open:s}=e,u=l.useRef(!1),c=l.useRef(null),d=l.useRef(null),p=l.useRef(null),f=l.useRef(null),h=l.useRef(!1),m=l.useRef(null),g=Lg(tb(t),m),v=l.useRef(null);l.useEffect(()=>{s&&m.current&&(h.current=!n)},[n,s]),l.useEffect(()=>{if(!s||!m.current)return;const e=Tg(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[s]),l.useEffect(()=>{if(!s||!m.current)return;const e=Tg(m.current),t=t=>{v.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(m.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return cf.jsxs(l.Fragment,{children:[cf.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),cf.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const zw=()=>{},Bw=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Pw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Lw(t,e.mount,e.modalRef,r,!0);const o=Nw(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Nw(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Mw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nw(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Pw(e.modalRef,t),Lw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Pw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:s,onClose:u,open:c,rootRef:d}=e,p=l.useRef({}),f=l.useRef(null),h=l.useRef(null),m=Lg(h,d),[g,v]=l.useState(!c),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const w=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),x=()=>{Bw.mount(w(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=Ag(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Tg(f.current).body;Bw.add(w(),e),h.current&&x()}),S=()=>Bw.isTopModal(w()),E=Ag(e=>{f.current=e,e&&(c&&S()?x():h.current&&Pw(h.current,b))}),C=l.useCallback(()=>{Bw.remove(w(),b)},[b]);l.useEffect(()=>()=>{C()},[C]),l.useEffect(()=>{c?k():y&&o||C()},[c,C,y,o,k]);const O=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},T=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Vg(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:O(r),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:T(t),open:c}},getTransitionProps:()=>({onEnter:gg(()=>{v(!1),i&&i()},s?.props.onEnter??zw),onExited:gg(()=>{v(!0),a&&a(),o&&C()},s?.props.onExited??zw)}),rootRef:m,portalRef:E,isTopModal:S,exited:g,hasTransition:y}}function Ww(e){return Bh("MuiModal",e)}Dh("MuiModal",["root","hidden","backdrop"]);const Uw=mg("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(wg(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Vw=mg(dw,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Kw=l.forwardRef(function(e,t){const n=xg({name:"MuiModal",props:e}),{BackdropComponent:r=Vw,BackdropProps:o,classes:i,className:a,closeAfterTransition:s=!1,children:u,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:x=!1,onClose:k,onTransitionEnter:S,onTransitionExited:E,open:C,slotProps:O={},slots:T={},theme:_,...R}=n,P={...n,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:w,keepMounted:x},{getRootProps:A,getBackdropProps:L,getTransitionProps:N,portalRef:M,isTopModal:I,exited:F,hasTransition:$}=Dw({...P,rootRef:t}),j={...P,exited:F},z=(e=>{const{open:t,exited:n,classes:r}=e;return Cm({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ww,r)})(j),B={};if(void 0===u.props.tabIndex&&(B.tabIndex="-1"),$){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const D={slots:{root:p.Root,backdrop:p.Backdrop,...T},slotProps:{...f,...O}},[W,U]=qg("root",{ref:t,elementType:Uw,externalForwardedProps:{...D,...R,component:d},getSlotProps:A,ownerState:j,className:yg(a,z?.root,!j.open&&j.exited&&z?.hidden)}),[V,K]=qg("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>L({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:yg(o?.className,z?.backdrop),ownerState:j});return x||C||$&&!F?cf.jsx(nb,{ref:M,container:c,disablePortal:v,children:cf.jsxs(W,{...U,children:[!w&&r?cf.jsx(V,{...K}):null,cf.jsx(jw,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:y,isEnabled:I,open:C,children:l.cloneElement(u,B)})]})}):null}),Hw=Dh("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qw=mg(Mb,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lb(e,t),!n.disableUnderline&&t.underline]}})(wg(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ub.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ub.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ub.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ub.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ub.disabled}, .${Ub.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ub.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),Gw=mg(Ib,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nb})(wg(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Yw=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,hiddenLabel:s,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:p="text",...f}=n,h={...n,disableUnderline:r,fullWidth:a,inputComponent:l,multiline:u,type:p},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l=Cm({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===i&&`size${Mf(i)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},Wb,t);return{...t,...l}})(n),g={root:{ownerState:h},input:{ownerState:h}},v=c??i?Ef(g,c??i):g,y=d.root??o.Root??qw,b=d.input??o.Input??Gw;return cf.jsx($b,{slots:{root:y,input:b},slotProps:v,fullWidth:a,inputComponent:l,multiline:u,ref:t,type:p,...f,classes:m})});function Xw(e){return Bh("MuiFormControl",e)}Yw.muiName="Input",Dh("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Qw=mg("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Mf(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Jw=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiFormControl"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:h=!1,size:m="medium",variant:g="outlined",...v}=n,y={...n,color:i,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:p,margin:f,required:h,size:m,variant:g},b=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return Cm({root:["root","none"!==n&&`margin${Mf(n)}`,r&&"fullWidth"]},Xw,t)})(y),[w,x]=l.useState(()=>{let e=!1;return r&&l.Children.forEach(r,t=>{if(!Om(t,["Input","Select"]))return;const n=Om(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}),e}),[k,S]=l.useState(()=>{let e=!1;return r&&l.Children.forEach(r,t=>{Om(t,["Input","Select"])&&(_b(t.props,!0)||_b(t.props.inputProps,!0))&&(e=!0)}),e}),[E,C]=l.useState(!1);s&&E&&C(!1);const O=void 0===c||s?E:c;let T;l.useRef(!1);const _=l.useCallback(()=>{S(!0)},[]),R=l.useCallback(()=>{S(!1)},[]),P=l.useMemo(()=>({adornedStart:w,setAdornedStart:x,color:i,disabled:s,error:u,filled:k,focused:O,fullWidth:d,hiddenLabel:p,size:m,onBlur:()=>{C(!1)},onFocus:()=>{C(!0)},onEmpty:R,onFilled:_,registerEffect:T,required:h,variant:g}),[w,i,s,u,k,O,d,p,T,R,_,h,m,g]);return cf.jsx(Cb.Provider,{value:P,children:cf.jsx(Qw,{as:a,ownerState:y,className:yg(b.root,o),ref:t,...v,children:r})})});function Zw(e){return Bh("MuiFormHelperText",e)}const ex=Dh("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tx;const nx=mg("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Mf(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(wg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ex.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ex.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),rx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p",disabled:a,error:s,filled:l,focused:u,margin:c,required:d,variant:p,...f}=n,h=Eb({props:n,muiFormControl:Ob(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...n,component:i,contained:"filled"===h.variant||"outlined"===h.variant,variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete m.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e;return Cm({root:["root",o&&"disabled",i&&"error",r&&`size${Mf(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]},Zw,t)})(m);return cf.jsx(nx,{as:i,className:yg(g.root,o),ref:t,...f,ownerState:m,children:" "===r?tx||(tx=cf.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});function ox(e){return Bh("MuiFormLabel",e)}const ix=Dh("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ax=mg("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(wg(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{[`&.${ix.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ix.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ix.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),sx=mg("span",{name:"MuiFormLabel",slot:"Asterisk"})(wg(({theme:e})=>({[`&.${ix.error}`]:{color:(e.vars||e).palette.error.main}}))),lx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiFormLabel"}),{children:r,className:o,color:i,component:a="label",disabled:s,error:l,filled:u,focused:c,required:d,...p}=n,f=Eb({props:n,muiFormControl:Ob(),states:["color","required","focused","disabled","error","filled"]}),h={...n,color:f.color||"primary",component:a,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},m=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e;return Cm({root:["root",`color${Mf(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]},ox,t)})(h);return cf.jsxs(ax,{as:a,ownerState:h,className:yg(m.root,o),ref:t,...p,children:[r,f.required&&cf.jsxs(sx,{ownerState:h,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})});function ux(e){return`scale(${e}, ${e**2})`}const cx={entering:{opacity:1,transform:ux(1)},entered:{opacity:1,transform:"none"}},dx="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),px=l.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=nu,...v}=e,y=jg(),b=l.useRef(),w=pg(),x=l.useRef(null),k=Lg(x,tb(o),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=S(c),C=S((e,t)=>{zg(e);const{duration:n,delay:r,easing:o}=Bg({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:r}),w.transitions.create("transform",{duration:dx?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),O=S(u),T=S(f),_=S(e=>{const{duration:t,delay:n,easing:r}=Bg({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:n}),w.transitions.create("transform",{duration:dx?o:.666*o,delay:dx?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ux(.75),d&&d(e)}),R=S(p);return cf.jsx(g,{appear:r,in:a,nodeRef:x,onEnter:C,onEntered:O,onEntering:E,onExit:_,onExited:R,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m,...v,children:(e,{ownerState:t,...n})=>l.cloneElement(o,{style:{opacity:0,transform:ux(.75),visibility:"exited"!==e||a?void 0:"hidden",...cx[e],...h,...o.props.style},ref:k,...n})})});px&&(px.muiSupportAuto=!0);const fx=mg(Mb,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lb(e,t),!n.disableUnderline&&t.underline]}})(wg(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zb.disabled}, .${zb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${zb.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),hx=mg(Ib,{name:"MuiInput",slot:"Input",overridesResolver:Nb})({}),mx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:i,fullWidth:a=!1,inputComponent:s="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=Cm({root:["root",!n&&"underline"],input:["input"]},jb,t);return{...t,...r}})(n),h={root:{ownerState:{disableUnderline:r}}},m=u??i?Ef(u??i,h):h,g=c.root??o.Root??fx,v=c.input??o.Input??hx;return cf.jsx($b,{slots:{root:g,input:v},slotProps:m,fullWidth:a,inputComponent:s,multiline:l,ref:t,type:d,...p,classes:f})});function gx(e){return Bh("MuiInputLabel",e)}mx.muiName="Input",Dh("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vx=mg(lx,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ix.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(wg(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),yx=l.forwardRef(function(e,t){const n=xg({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:i,variant:a,className:s,...l}=n,u=Ob();let c=i;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);const d=Eb({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l=Cm({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"medium"!==r&&`size${Mf(r)}`,a],asterisk:[s&&"asterisk"]},gx,t);return{...t,...l}})(p);return cf.jsx(vx,{"data-shrink":c,ref:t,className:yg(f.root,s),...l,ownerState:p,classes:f})}),bx=l.createContext({});function wx(e){return Bh("MuiList",e)}Dh("MuiList",["root","padding","dense","subheader"]);const xx=mg("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),kx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:u,...c}=n,d=l.useMemo(()=>({dense:a}),[a]),p={...n,component:i,dense:a,disablePadding:s},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Cm({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},wx,t)})(p);return cf.jsx(bx.Provider,{value:d,children:cf.jsxs(xx,{as:i,className:yg(f.root,o),ref:t,ownerState:p,...c,children:[u,r]})})}),Sx=Dh("MuiListItemIcon",["root","alignItemsFlexStart"]),Ex=Dh("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Cx(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ox(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tx(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function _x(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Tx(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Rx=l.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...p}=e,f=l.useRef(null),h=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});em(()=>{r&&f.current.focus()},[r]),l.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Rw(_g(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=Lg(f,t);let g=-1;l.Children.forEach(i,(e,t)=>{l.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===t&&(g+=1,g>=i.length&&(g=-1))});const v=l.Children.map(i,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),l.cloneElement(e,t)}return e});return cf.jsx(kx,{role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=Tg(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_x(t,r,u,s,Cx);else if("ArrowUp"===n)e.preventDefault(),_x(t,r,u,s,Ox);else if("Home"===n)e.preventDefault(),_x(t,null,u,s,Cx);else if("End"===n)e.preventDefault(),_x(t,null,u,s,Ox);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&Tx(r,o);o.previousKeyMatched&&(l||_x(t,r,!1,s,Cx,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...p,children:v})});function Px(e){return Bh("MuiPopover",e)}function Ax(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Lx(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Nx(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Mx(e){return"function"==typeof e?e():e}Dh("MuiPopover",["root","paper"]);const Ix=mg(Kw,{name:"MuiPopover",slot:"Root"})({}),Fx=mg(Xg,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$x=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:u,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},slots:g={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:x={},disableScrollLock:k=!1,...S}=n,E=l.useRef(),C={...n,anchorOrigin:i,anchorReference:s,elevation:p,marginThreshold:f,transformOrigin:y,TransitionComponent:b,transitionDuration:w,TransitionProps:x},O=(e=>{const{classes:t}=e;return Cm({root:["root"],paper:["paper"]},Px,t)})(C),T=l.useCallback(()=>{if("anchorPosition"===s)return a;const e=Mx(o),t=(e&&1===e.nodeType?e:Tg(E.current).body).getBoundingClientRect();return{top:t.top+Ax(t,i.vertical),left:t.left+Lx(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,s]),_=l.useCallback(e=>({vertical:Ax(e,y.vertical),horizontal:Lx(e,y.horizontal)}),[y.horizontal,y.vertical]),R=l.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=_(t);if("none"===s)return{top:null,left:null,transformOrigin:Nx(n)};const r=T();let i=r.top-n.vertical,a=r.left-n.horizontal;const l=i+t.height,u=a+t.width,c=_g(Mx(o)),d=c.innerHeight-f,p=c.innerWidth-f;if(null!==f&&i<f){const e=i-f;i-=e,n.vertical+=e}else if(null!==f&&l>d){const e=l-d;i-=e,n.vertical+=e}if(null!==f&&a<f){const e=a-f;a-=e,n.horizontal+=e}else if(u>p){const e=u-p;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Nx(n)}},[o,s,T,_,f]),[P,A]=l.useState(h),L=l.useCallback(()=>{const e=E.current;if(!e)return;const t=R(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)},[R]);l.useEffect(()=>(k&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)),[o,k,L]);l.useEffect(()=>{h&&L()}),l.useImperativeHandle(r,()=>h?{updatePosition:()=>{L()}}:null,[h,L]),l.useEffect(()=>{if(!h)return;const e=Og(()=>{L()}),t=_g(Mx(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,L]);let N=w;const M={slots:{transition:b,...g},slotProps:{transition:x,paper:m,...v}},[I,F]=qg("transition",{elementType:px,externalForwardedProps:M,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),L()},onExited:t=>{e.onExited?.(t),A(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||I.muiSupportAuto||(N=void 0);const $=d||(o?Tg(Mx(o)).body:void 0),[j,{slots:z,slotProps:B,...D}]=qg("root",{ref:t,elementType:Ix,externalForwardedProps:{...M,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Ng("function"==typeof v.backdrop?v.backdrop(C):v.backdrop,{invisible:!0})},container:$,open:h},ownerState:C,className:yg(O.root,c)}),[W,U]=qg("paper",{ref:E,className:O.paper,elementType:Fx,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:P?void 0:{opacity:0}},ownerState:C});return cf.jsx(j,{...D,...!Dg(j)&&{slots:z,slotProps:B,disableScrollLock:k},children:cf.jsx(I,{...F,timeout:N,children:cf.jsx(W,{...U,children:u})})})});function jx(e){return Bh("MuiMenu",e)}Dh("MuiMenu",["root","paper","list"]);const zx={vertical:"top",horizontal:"right"},Bx={vertical:"top",horizontal:"left"},Dx=mg($x,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),Wx=mg(Fx,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ux=mg(Rx,{name:"MuiMenu",slot:"List"})({outline:0}),Vx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:u,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:h,...m}={},variant:g="selectedMenu",slots:v={},slotProps:y={},...b}=n,w=mm(),x={...n,autoFocus:r,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:m,variant:g},k=(e=>{const{classes:t}=e;return Cm({root:["root"],paper:["paper"],list:["list"]},jx,t)})(x),S=r&&!a&&c,E=l.useRef(null);let C=-1;l.Children.map(o,(e,t)=>{l.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))});const O={slots:v,slotProps:{list:s,transition:m,paper:d,...y}},T=eb({elementType:v.root,externalSlotProps:y.root,ownerState:x,className:[k.root,i]}),[_,R]=qg("paper",{className:k.paper,elementType:Wx,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:x}),[P,A]=qg("list",{className:yg(k.list,s.className),elementType:Ux,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:x}),L="function"==typeof O.slotProps.transition?O.slotProps.transition(x):O.slotProps.transition;return cf.jsx(Dx,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?zx:Bx,slots:{root:v.root,paper:_,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:T,paper:R,backdrop:"function"==typeof y.backdrop?y.backdrop(x):y.backdrop,transition:{...L,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),h&&h(e,t)})(...e),L?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:f,ownerState:x,...b,classes:p,children:cf.jsx(P,{actions:E,autoFocus:r&&(-1===C||a),autoFocusItem:S,variant:g,...A,children:o})})});function Kx(e){return Bh("MuiMenuItem",e)}const Hx=Dh("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qx=mg(uv,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(wg(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Hx.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Hx.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Hx.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Hx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hw.inset}`]:{marginLeft:52},[`& .${Ex.root}`]:{marginTop:0,marginBottom:0},[`& .${Ex.inset}`]:{paddingLeft:36},[`& .${Sx.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Sx.root} svg`]:{fontSize:"1.25rem"}}}]}))),Gx=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p,...f}=n,h=l.useContext(bx),m=l.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),g=l.useRef(null);em(()=>{r&&g.current&&g.current.focus()},[r]);const v={...n,dense:m.dense,divider:a,disableGutters:s},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=Cm({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Kx,a);return{...a,...s}})(n),b=Lg(g,t);let w;return n.disabled||(w=void 0!==d?d:-1),cf.jsx(bx.Provider,{value:m,children:cf.jsx(qx,{ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:yg(y.focusVisible,u),className:yg(y.root,p),...f,ownerState:v,classes:y})})});function Yx(e){return Bh("MuiNativeSelect",e)}const Xx=Dh("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qx=mg("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Xx.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Jx=mg(Qx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hg,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xx.multiple}`]:t.multiple}]}})({}),Zx=mg("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Xx.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),ek=mg(Zx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Mf(n.variant)}`],n.open&&t.iconOpen]}})({}),tk=l.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard",...u}=e,c={...e,disabled:r,variant:s,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Cm({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Mf(n)}`,i&&"iconOpen",r&&"disabled"]},Yx,t)})(c);return cf.jsxs(l.Fragment,{children:[cf.jsx(Jx,{ownerState:c,className:yg(d.select,n),disabled:r,ref:a||t,...u}),e.multiple?null:cf.jsx(ek,{as:i,ownerState:c,className:d.icon})]})});var nk;const rk=mg("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:hg})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ok=mg("legend",{name:"MuiNotchedOutlined",shouldForwardProp:hg})(wg(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const ik=mg(Mb,{shouldForwardProp:e=>hg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lb})(wg(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Db.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Db.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Db.focused} .${Db.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dv()).map(([t])=>({props:{color:t},style:{[`&.${Db.focused} .${Db.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Db.error} .${Db.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Db.disabled} .${Db.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),ak=mg(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,s=null!=o&&""!==o,l={...e,notched:i,withLabel:s};return cf.jsx(rk,{"aria-hidden":!0,className:r,ownerState:l,...a,children:cf.jsx(ok,{ownerState:l,children:s?cf.jsx("span",{children:o}):nk||(nk=cf.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(wg(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),sk=mg(Ib,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nb})(wg(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),lk=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:s=!1,notched:u,slots:c={},slotProps:d={},type:p="text",...f}=n,h=(e=>{const{classes:t}=e,n=Cm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bb,t);return{...t,...n}})(n),m=Ob(),g=Eb({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:s,size:g.size,type:p},y=c.root??r.Root??ik,b=c.input??r.Input??sk,[w,x]=qg("notchedOutline",{elementType:ak,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:null!=a&&""!==a&&g.required?cf.jsxs(l.Fragment,{children:[a," ","*"]}):a}});return cf.jsx($b,{slots:{root:y,input:b},slotProps:d,renderSuffix:e=>cf.jsx(w,{...x,notched:void 0!==u?u:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:s,ref:t,type:p,...f,classes:{...h,notchedOutline:null}})});function uk(e){return Bh("MuiSelect",e)}lk.muiName="Input";const ck=Dh("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dk;const pk=mg(Qx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ck.select}`]:t.select},{[`&.${ck.select}`]:t[n.variant]},{[`&.${ck.error}`]:t.error},{[`&.${ck.multiple}`]:t.multiple}]}})({[`&.${ck.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fk=mg(Zx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Mf(n.variant)}`],n.open&&t.iconOpen]}})({}),hk=mg("input",{shouldForwardProp:e=>fg(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function mk(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function gk(e){return null==e||"string"==typeof e&&!e.trim()}const vk=l.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:i,children:a,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:y,name:b,onBlur:w,onChange:x,onClose:k,onFocus:S,onOpen:E,open:C,readOnly:O,renderValue:T,required:_,SelectDisplayProps:R={},tabIndex:P,type:A,value:L,variant:N="standard",...M}=e,[I,F]=Pg({controlled:L,default:c,name:"Select"}),[$,j]=Pg({controlled:C,default:u,name:"Select"}),z=l.useRef(null),B=l.useRef(null),[D,W]=l.useState(null),{current:U}=l.useRef(null!=C),[V,K]=l.useState(),H=Lg(t,m),q=l.useCallback(e=>{B.current=e,e&&W(e)},[]),G=D?.parentNode;l.useImperativeHandle(H,()=>({focus:()=>{B.current.focus()},node:z.current,value:I}),[I]),l.useEffect(()=>{u&&$&&D&&!U&&(K(i?null:G.clientWidth),B.current.focus())},[D,i]),l.useEffect(()=>{o&&B.current.focus()},[o]),l.useEffect(()=>{if(!g)return;const e=Tg(B.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?E&&E(t):k&&k(t),U||(K(i?null:G.clientWidth),j(e))},X=l.Children.toArray(a),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(I)?I.slice():[];const t=I.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),I!==n&&(F(n),x)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),x(o,e)}y||Y(!1,t)}},J=null!==D&&$;let Z,ee;delete M["aria-invalid"];const te=[];let ne=!1;(_b({value:I})||p)&&(T?Z=T(I):ne=!0);const re=X.map(e=>{if(!l.isValidElement(e))return null;let t;if(y){if(!Array.isArray(I))throw new Error(gd(2));t=I.some(t=>mk(t,e.props.value)),t&&ne&&te.push(e.props.children)}else t=mk(I,e.props.value),t&&ne&&(ee=e.props.children);return l.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ne&&(Z=y?0===te.length?null:te.reduce((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e),[]):ee);let oe,ie=V;!i&&U&&D&&(ie=G.clientWidth),oe=void 0!==P?P:d?null:0;const ae=R.id||(b?`mui-component-select-${b}`:void 0),se={...e,variant:N,value:I,open:J,error:f},le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Cm({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Mf(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},uk,t)})(se),ue={...v.PaperProps,..."function"==typeof v.slotProps?.paper?v.slotProps.paper(se):v.slotProps?.paper},ce={...v.MenuListProps,..."function"==typeof v.slotProps?.list?v.slotProps.list(se):v.slotProps?.list},de=wm();return cf.jsxs(l.Fragment,{children:[cf.jsx(pk,{as:"div",ref:q,tabIndex:oe,role:"combobox","aria-controls":J?de:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":_?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{if(!O){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||O?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),Y(!0,e))},onBlur:e=>{!J&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:b}}),w(e))},onFocus:S,...R,ownerState:se,className:yg(R.className,le.select,s),id:ae,children:gk(Z)?dk||(dk=cf.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Z}),cf.jsx(hk,{"aria-invalid":f,value:Array.isArray(I)?I.join(","):I,name:b,ref:z,"aria-hidden":!0,onChange:e=>{const t=X.find(t=>t.props.value===e.target.value);void 0!==t&&(F(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:o,required:_,...M,ownerState:se}),cf.jsx(fk,{as:h,className:le.icon,ownerState:se}),cf.jsx(Vx,{id:`menu-${b||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:de,...ce},paper:{...ue,style:{minWidth:ie,...null!=ue?ue.style:null}}},children:re})]})}),yk={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>hg(e)&&"variant"!==e},bk=mg(mx,yk)(""),wk=mg(lk,yk)(""),xk=mg(Yw,yk)(""),kk=l.forwardRef(function(e,t){const n=xg({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Vb,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:w,open:x,renderValue:k,SelectDisplayProps:S,variant:E="outlined",...C}=n,O=y?tk:vk,T=Eb({props:n,muiFormControl:Ob(),states:["variant","error"]}),_=T.variant||E,R={...n,variant:_,classes:i},P=(e=>{const{classes:t}=e,n=Cm({root:["root"]},uk,t);return{...t,...n}})(R),{root:A,...L}=P,N=p||{standard:cf.jsx(bk,{ownerState:R}),outlined:cf.jsx(wk,{label:h,ownerState:R}),filled:cf.jsx(xk,{ownerState:R})}[_],M=Lg(t,tb(N));return cf.jsx(l.Fragment,{children:l.cloneElement(N,{inputComponent:O,inputProps:{children:o,error:T.error,IconComponent:c,variant:_,type:void 0,multiple:v,...y?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:w,open:x,renderValue:k,SelectDisplayProps:{id:d,...S}},...f,classes:f?Ef(L,f.classes):L,...p?p.props.inputProps:{}},...(v&&y||u)&&"outlined"===_?{notched:!0}:{},ref:M,className:yg(N.props.className,a,P.root),...!p&&{variant:_},...C})})});function Sk(e){return Bh("MuiTextField",e)}kk.muiName="Select",Dh("MuiTextField",["root"]);const Ek={standard:mx,filled:Yw,outlined:lk},Ck=mg(Jw,{name:"MuiTextField",slot:"Root"})({}),Ok=l.forwardRef(function(e,t){const n=xg({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:h,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:w,minRows:x,multiline:k=!1,name:S,onBlur:E,onChange:C,onFocus:O,placeholder:T,required:_=!1,rows:R,select:P=!1,SelectProps:A,slots:L={},slotProps:N={},type:M,value:I,variant:F="outlined",...$}=n,j={...n,autoFocus:o,color:s,disabled:u,error:c,fullWidth:p,multiline:k,required:_,select:P,variant:F},z=(e=>{const{classes:t}=e;return Cm({root:["root"]},Sk,t)})(j),B=wm(h),D=f&&B?`${B}-helper-text`:void 0,W=b&&B?`${B}-label`:void 0,U=Ek[F],V={slots:L,slotProps:{input:v,inputLabel:m,htmlInput:g,formHelperText:d,select:A,...N}},K={},H=V.slotProps.inputLabel;"outlined"===F&&(H&&void 0!==H.shrink&&(K.notched=H.shrink),K.label=b),P&&(A&&A.native||(K.id=void 0),K["aria-describedby"]=void 0);const[q,G]=qg("root",{elementType:Ck,shouldForwardComponentProp:!0,externalForwardedProps:{...V,...$},ownerState:j,className:yg(z.root,a),ref:t,additionalProps:{disabled:u,error:c,fullWidth:p,required:_,color:s,variant:F}}),[Y,X]=qg("input",{elementType:U,externalForwardedProps:V,additionalProps:K,ownerState:j}),[Q,J]=qg("inputLabel",{elementType:yx,externalForwardedProps:V,ownerState:j}),[Z,ee]=qg("htmlInput",{elementType:"input",externalForwardedProps:V,ownerState:j}),[te,ne]=qg("formHelperText",{elementType:rx,externalForwardedProps:V,ownerState:j}),[re,oe]=qg("select",{elementType:kk,externalForwardedProps:V,ownerState:j}),ie=cf.jsx(Y,{"aria-describedby":D,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:p,multiline:k,name:S,rows:R,maxRows:w,minRows:x,type:M,value:I,id:B,inputRef:y,onBlur:E,onChange:C,onFocus:O,placeholder:T,inputProps:ee,slots:{input:L.htmlInput?Z:void 0},...X});return cf.jsxs(q,{...G,children:[null!=b&&""!==b&&cf.jsx(Q,{htmlFor:B,id:W,...J,children:b}),P?cf.jsx(re,{"aria-describedby":D,id:B,labelId:W,value:I,input:ie,...oe,children:i}):ie,f&&cf.jsx(te,{id:D,...ne,children:f})]})});var Tk=Cg(cf.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),_k=Cg(cf.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));const Rk=l.createElement(Tk,{fontSize:"small"}),Pk=l.createElement(_k,{fontSize:"small"});function Ak({items:e,selectedKeys:t,defaultSelectedKeys:n,onChange:r,inputValue:o,defaultInputValue:i,onInputChange:a,debounceMs:s=300,label:u,placeholder:c,loading:d,disabled:p,size:f="small",error:h,helperText:m,limitTags:g=3,disableClearable:v,id:y,textFieldProps:b}){const w=l.useMemo(()=>Array.isArray(e)?e:[],[e]),x=Array.isArray(t),[k,S]=l.useState(Array.isArray(n)?n:[]),E=x?t:k,C=l.useMemo(()=>{const e=new Map;for(const t of w)e.set(t&&t.key,t);return e},[w]),O=l.useMemo(()=>(Array.isArray(E)?E:[]).map(e=>C.get(e)).filter(Boolean),[E,C]),T="string"==typeof o,[_,R]=l.useState("string"==typeof i?i:""),P=T?o:_,A=function(e,t=300){const n=l.useRef(e),r=l.useRef(null);return n.current=e,l.useEffect(()=>()=>{r.current&&window.clearTimeout(r.current)},[]),l.useCallback((...e)=>{n.current&&(r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n.current&&n.current(...e)},t))},[t])}(e=>{a&&a(e)},s),L=O;return l.createElement(Jw,{fullWidth:!0,error:h,disabled:p},l.createElement(aw,{openOnFocus:!0,forcePopupIcon:!0,id:y,multiple:!0,disableCloseOnSelect:!0,options:w,value:L,inputValue:P,getOptionLabel:e=>e&&"object"==typeof e?e.value??"":"",isOptionEqualToValue:(e,t)=>e&&t&&e.key===t.key,loading:d,limitTags:g,disableClearable:v,onChange:(e,t)=>{const n=Array.isArray(t)?t.map(e=>e&&e.key):[];x||S(n),r&&r(n,Array.isArray(t)?t:[])},onInputChange:(e,t,n)=>{T||R(t??""),"input"===n?A(t??""):"clear"===n&&A("")},renderOption:(e,t,{selected:n})=>l.createElement("li",ko({},e,{key:t&&t.key||Math.random().toString(36)}),l.createElement(_w,{icon:Rk,checkedIcon:Pk,style:{marginRight:8},checked:!!n}),t&&t.value),renderTags:(e,t)=>(Array.isArray(e)?e:[]).map((e,n)=>l.createElement(bb,ko({},t({index:n}),{key:e&&e.key||n,label:e&&e.value||""}))),renderInput:e=>l.createElement(Ok,ko({},e,{label:u,placeholder:c,InputProps:{...e.InputProps,endAdornment:l.createElement(l.Fragment,null,d?l.createElement(kv,{size:18}):null,e.InputProps.endAdornment)},size:f},b))}),m?l.createElement(rx,null,m):null)}const Lk=({filter:e,channel:t,query:n})=>{const[r,o]=l.useState([]),[i,a]=l.useState([]),[s,c]=l.useState(!1),[d,p]=l.useState("");return l.useEffect(()=>{a(n?.filter?.[e?.filter]||[])},[n]),l.useEffect(()=>{(async()=>{c(!0);const t=await async function(e,t){return t?.source?(await Cs.runReport({id:t.source})).map(e=>({key:e[t.field],value:e[t.field]})):[]}(0,e);o(t),c(!1)})()},[d]),u.createElement("div",{style:{display:"flex"}},u.createElement("div",{style:{maxWidth:640,minWidth:200}},u.createElement(Ak,{id:e?.title,label:e?.title,placeholder:"Type to search…",items:r,selectedKeys:i,onChange:(n,r)=>{a(n),t.emit("filterChanged",e,{[e.filter]:n})},onInputChange:e=>{p(e)},loading:s,debounceMs:300,helperText:i.length?`${i.length} selected`:""})))};function Nk({items:e,value:t,label:n,onChange:r,sx:o={width:"100%"}}){const i=e.some(e=>e.key===t)?t:"";return u.createElement(hw,{sx:o},u.createElement(Jw,{fullWidth:!0},u.createElement(yx,{id:"demo-simple-select-label"},n),u.createElement(kk,{labelId:"demo-simple-select-label",id:"demo-simple-select",value:i,label:n,onChange:r,MenuProps:{style:{maxHeight:"300px"}},size:"small"},e.map(e=>{const{key:t,value:n}=e;return u.createElement(Gx,{key:t,value:t},n)}))))}const Mk=({filter:e,channel:t,query:n})=>{const[r,o]=l.useState([]),[i,a]=l.useState("");return l.useEffect(()=>{a(n?.date_range?.name)},[n]),l.useEffect(()=>{(async()=>{const t=(await Cs.getDateRanges()).filter(t=>!(e.allowedOptions.length>0)||e.allowedOptions.some(e=>e===t.name)).map(e=>({key:e.name,value:e.title}));o(t)})()},[]),u.createElement("div",{style:{minWidth:"200px",maxWidth:"640px"}},u.createElement(Nk,{items:r,value:i,label:e?.title,onChange:(n,r)=>{const o=n.target.value;a(o),t.emit("filterChanged",e,{date_range:{name:o}})}}))},Ik=({filters:e=[],channel:t,query:n})=>u.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"}},e.map(e=>"multi-select"===e.type?u.createElement(Lk,{key:e.title,channel:t,filter:e,query:n}):"date-range"===e.type?u.createElement(Mk,{key:e.title,channel:t,filter:e,query:n}):null));var Fk,$k={exports:{}};var jk=(Fk||(Fk=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var p,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}($k)),$k.exports),zk=t(jk),Bk=e=>u.useRef(e||new zk).current,Dk=e=>{const t=u.useState({}),n=u.useCallback((n,r)=>{let o={...t.current,...r};for(var i in t.current=o,o)"date_range"===i||o[i].length||delete o[i];e?.emit("mergedFilterChanged",{value:o})},[e]);u.useEffect(()=>(e?.on("filterChanged",n),()=>{e?.off("filterChanged",n)}),[e])},Wk=({id:e,cache:t,dashboard:n,channel:r,...o})=>{const[i,a]=u.useState(),[s,c]=u.useState(),[d,p]=u.useState(),[f,h]=u.useState(),[m,g]=u.useState(sl()),[v,y]=u.useState(),[b,w]=u.useState(0),[x,k]=u.useState(!1),[S,E]=u.useState(),[C,O]=u.useState(!1),T=u.useRef({value:o?.filter}),[_,R]=u.useState({}),{ref:P,inView:A}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:i,skip:a,initialInView:s,fallbackInView:u,onChange:c}={}){var d;const[p,f]=l.useState(null),h=l.useRef(c),m=l.useRef(s),[g,v]=l.useState({inView:!!s,entry:void 0});h.current=c,l.useEffect(()=>{if(void 0===m.current&&(m.current=s),a||!p)return;let l;return l=Ic(p,(e,t)=>{const n=m.current;m.current=e,(void 0!==n||e)&&(v({inView:e,entry:t}),h.current&&h.current(e,t),t.isIntersecting&&i&&l&&(l(),l=void 0))},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},u),()=>{l&&l()}},[Array.isArray(e)?e.toString():e,p,o,r,i,a,n,u,t]);const y=null==(d=g.entry)?void 0:d.target,b=l.useRef(void 0);p||!y||i||a||b.current===y||(b.current=y,v({inView:!!s,entry:void 0}),m.current=s);const w=[f,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({threshold:.1,delay:1e3}),L=Bk(r);Dk(L);const N=u.useCallback(e=>{const t=e.target.value;w(t),y(i.doc.view[t])},[i]);u.useEffect(()=>{e&&(async()=>{const n=e,r=t?.[n]||await Cs.getChart({id:n}),i=r.doc.source?.id,s=i?t?.[i]||await Cs.getReport({id:i}):void 0,l=t?.[`schema_${i}`]||o?.schema||await Cs.getReportSchema({id:i}),u=r.doc?.view?.[0];w(0),c(s),a(r),y(u),p(l),O(!0)})().catch(e=>{console.error(e.message)})},[e]),u.useEffect(()=>{i&&f&&(!i?.doc?.source?.id||s)&&d&&(async()=>{g(sl(i.doc.chart?.component,{view:v,source:f,chart:i,report:s,schema:d,dashboard:n,query:_}))})().catch(e=>{console.error(e.message)})},[i,f,v,s,d]);const M=e=>{const t={...s?.doc.query.filter||{},...o?.filter,...e?.value},n=t.date_range||s?.doc.query.date_range;if(delete t.date_range,O(!1),E(),k(!0),"context"===i?.doc?.source?.type)return h({filter:t}),void k(!1);const r={filter:t,date_range:n,parameters:o?.params};R(r),Cs.runReport({id:s.id,query:r}).then(e=>{h(i.doc.source.reverse?e.reverse():e)}).catch(e=>{h([])}).finally(()=>{k(!1)})},I=e=>{T.current=e,A?M(e):(E(e),O(!0))};return u.useEffect(()=>(L?.on("mergedFilterChanged",I),()=>{L?.off("mergedFilterChanged",I)}),[L,s,i,A]),u.useEffect(()=>{A&&C&&M(S)},[A,C]),u.createElement(xo,{ref:P,style:{padding:"16px",paddingTop:0,flexGrow:1,borderRadius:12,display:"flex",flexDirection:"column",gap:"16px"},elevation:2},u.createElement(Ro,{style:{visibility:x?"visible":"hidden"}}),u.createElement("div",{style:{display:"flex"}},u.createElement("div",null,i&&u.createElement("div",{style:{display:"flex",alignItems:"center",lineHeight:0}},u.createElement(Ps,{noWrap:!0,variant:"caption"},o?.title||i.doc.name," "))),u.createElement("div",{style:{flexGrow:1}}),u.createElement("div",null,i?.doc?.view?.length>1&&u.createElement(fl,null,u.createElement(uc,{labelId:"date-range-select-label",id:"date-range-select",value:b,onChange:N,style:{fontSize:"12px"},disableUnderline:!0},i.doc.view.map((e,t)=>u.createElement(Pc,{key:t,value:t},e.title)))))),u.createElement("div",{style:{position:"relative",flexGrow:n?void 0:1,display:"flex",flexDirection:"column"}},u.createElement(Ik,{filters:i?.doc?.filters,channel:L,query:_}),m))},Uk=[0,1,2,3,4,5,6,7,8,9,10],Vk=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Kk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Hk=l.forwardRef(function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,s=e.className,u=e.component,c=void 0===u?"div":u,d=e.container,h=void 0!==d&&d,g=e.direction,v=void 0===g?"row":g,y=e.item,b=void 0!==y&&y,w=e.justify,x=e.justifyContent,k=void 0===x?"flex-start":x,S=e.lg,E=void 0!==S&&S,C=e.md,O=void 0!==C&&C,T=e.sm,_=void 0!==T&&T,R=e.spacing,P=void 0===R?0:R,A=e.wrap,L=void 0===A?"wrap":A,N=e.xl,M=void 0!==N&&N,I=e.xs,F=void 0!==I&&I,$=e.zeroMinWidth,j=void 0!==$&&$,z=p(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),B=m(a.root,s,h&&[a.container,0!==P&&a["spacing-xs-".concat(String(P))]],b&&a.item,j&&a.zeroMinWidth,"row"!==v&&a["direction-xs-".concat(String(v))],"wrap"!==L&&a["wrap-xs-".concat(String(L))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==(w||k)&&a["justify-content-xs-".concat(String(w||k))],!1!==F&&a["grid-xs-".concat(String(F))],!1!==_&&a["grid-sm-".concat(String(_))],!1!==O&&a["grid-md-".concat(String(O))],!1!==E&&a["grid-lg-".concat(String(E))],!1!==M&&a["grid-xl-".concat(String(M))]);return l.createElement(c,f({className:B,ref:t},z))}),qk=bo(function(e){return f({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Uk.forEach(function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Kk(o,2)),width:"calc(100% + ".concat(Kk(o),")"),"& > $item":{padding:Kk(o,2)}})}),n}(e,"xs"),e.breakpoints.keys.reduce(function(t,n){return function(e,t,n){var r={};Vk.forEach(function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}}),"xs"===n?f(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t},{}))},{name:"MuiGrid"})(Hk),Gk=function(e){var t=function(t){var n=e(t);return t.css?f({},Lr(n,e(f({theme:t.theme},t.css))),Dr(t.css,[e.filterProps])):t.sx?f({},Lr(n,e(f({theme:t.theme},t.sx))),Dr(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(xt(e.filterProps)),t}(jr(Br,Wr,Ur,Vr,Hr,Kr,qr,to,co,po)),Yk=function(e){var t=Kn(e);return function(e,n){return t(e,f({defaultTheme:yo},n))}}("div")(Gk,{name:"MuiBox"}),Xk=l.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.disableGutters,s=void 0!==a&&a,u=e.fixed,c=void 0!==u&&u,d=e.maxWidth,h=void 0===d?"lg":d,g=p(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return l.createElement(i,f({className:m(n.root,r,c&&n.fixed,s&&n.disableGutters,!1!==h&&n["maxWidth".concat(Co(String(h)))]),ref:t},g))}),Qk=bo(function(e){return{root:w({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce(function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t},{}),maxWidthXs:w({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:w({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:w({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:w({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:w({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}},{name:"MuiContainer"})(Xk);var Jk={Chart:Wk,Dashboard:function({id:e="sample_dashboard",token:t,params:n,base_url:r}){const[o,i]=u.useState(),[a]=u.useState(),[s,l]=u.useState([]),c=u.useRef({}),d=Bk();Dk(d);const p=async e=>{const t=e?.doc?.rows||[],n=[];for(let e=0;e<t.length;e++){const r=t[e];r.columns?.forEach(e=>{if(e.override?.filter?.length){const t={};e.override.filter.forEach(e=>{e.hasOwnProperty("value")&&(t[e.field]=[e.value])}),e.filter=t}}),n.push(r)}l(n)};return u.useEffect(()=>{e&&(async()=>{Cs.setBaseUrl(r),Cs.setToken(t),await Cs.loadDashboardMeta({dashboardId:e});const n=await Cs.getDashboard({id:e});c.current[n?.id]=n,i(n),await p(n)})().catch(e=>console.error(e.message))},[e]),u.createElement(Qk,null,u.createElement(qk,{container:!0,spacing:2},s?.map((e,r)=>u.createElement(qk,{key:r,container:!0,item:!0,alignItems:"stretch",spacing:2},e?.columns?.map((e,r)=>u.createElement(qk,{key:r,item:!0,xs:!0,style:{display:"flex"}},u.createElement(Yk,{style:{flex:1,display:"flex",flexDirection:"column"}},u.createElement(Wk,{token:t,cache:c.current,id:e.id,dashboard:o,schema:a,channel:null,title:e.title,filter:e.filter,params:n}))))))))}};return Jk}();
|