mirador-dl-plugin 1.0.0-alpha.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,174 +0,0 @@
1
- (function(qe,de){typeof exports=="object"&&typeof module<"u"?de(exports,require("react"),require("mirador"),require("@emotion/styled"),require("@emotion/react"),require("@mui/system"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","mirador","@emotion/styled","@emotion/react","@mui/system","react-dom"],de):(qe=typeof globalThis<"u"?globalThis:qe||self,de(qe.MiradorDlPlugin={},qe.React,qe.mirador,qe.emStyled,qe.react,qe.system,qe.ReactDOM))})(this,function(qe,de,He,yd,Lt,yt,Ft){"use strict";function wa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const O=wa(de),bd=wa(Ft);var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ft={},sn={exports:{}},Ia;function un(){return Ia||(Ia=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sn)),sn.exports}var cn={exports:{}},$a;function _d(){return $a||($a=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)({}).hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(cn)),cn.exports}var ln={exports:{}},Aa;function xd(){return Aa||(Aa=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.indexOf(i)!==-1)continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ln)),ln.exports}var mr={exports:{}},vr={exports:{}},se={};/** @license React v16.13.1
2
- * react-is.production.min.js
3
- *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */var Na;function Ed(){if(Na)return se;Na=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var N=_.$$typeof;switch(N){case t:switch(_=_.type,_){case c:case d:case n:case i:case o:case g:return _;default:switch(_=_&&_.$$typeof,_){case u:case p:case v:case y:case s:return _;default:return N}}case r:return N}}}function P(_){return S(_)===d}return se.AsyncMode=c,se.ConcurrentMode=d,se.ContextConsumer=u,se.ContextProvider=s,se.Element=t,se.ForwardRef=p,se.Fragment=n,se.Lazy=v,se.Memo=y,se.Portal=r,se.Profiler=i,se.StrictMode=o,se.Suspense=g,se.isAsyncMode=function(_){return P(_)||S(_)===c},se.isConcurrentMode=P,se.isContextConsumer=function(_){return S(_)===u},se.isContextProvider=function(_){return S(_)===s},se.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},se.isForwardRef=function(_){return S(_)===p},se.isFragment=function(_){return S(_)===n},se.isLazy=function(_){return S(_)===v},se.isMemo=function(_){return S(_)===y},se.isPortal=function(_){return S(_)===r},se.isProfiler=function(_){return S(_)===i},se.isStrictMode=function(_){return S(_)===o},se.isSuspense=function(_){return S(_)===g},se.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===d||_===i||_===o||_===g||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===y||_.$$typeof===s||_.$$typeof===u||_.$$typeof===p||_.$$typeof===b||_.$$typeof===T||_.$$typeof===R||_.$$typeof===l)},se.typeOf=S,se}var ue={};/** @license React v16.13.1
9
- * react-is.development.js
10
- *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
12
- *
13
- * This source code is licensed under the MIT license found in the
14
- * LICENSE file in the root directory of this source tree.
15
- */var Ma;function Td(){return Ma||(Ma=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(j){return typeof j=="string"||typeof j=="function"||j===n||j===d||j===i||j===o||j===g||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===v||j.$$typeof===y||j.$$typeof===s||j.$$typeof===u||j.$$typeof===p||j.$$typeof===b||j.$$typeof===T||j.$$typeof===R||j.$$typeof===l)}function P(j){if(typeof j=="object"&&j!==null){var be=j.$$typeof;switch(be){case t:var ge=j.type;switch(ge){case c:case d:case n:case i:case o:case g:return ge;default:var Pe=ge&&ge.$$typeof;switch(Pe){case u:case p:case v:case y:case s:return Pe;default:return be}}case r:return be}}}var _=c,N=d,f=u,E=s,x=t,w=p,$=n,F=v,k=y,L=r,V=i,q=o,G=g,ee=!1;function Ae(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(j)||P(j)===c}function I(j){return P(j)===d}function D(j){return P(j)===u}function Q(j){return P(j)===s}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function z(j){return P(j)===p}function H(j){return P(j)===n}function K(j){return P(j)===v}function Y(j){return P(j)===y}function W(j){return P(j)===r}function U(j){return P(j)===i}function J(j){return P(j)===o}function ye(j){return P(j)===g}ue.AsyncMode=_,ue.ConcurrentMode=N,ue.ContextConsumer=f,ue.ContextProvider=E,ue.Element=x,ue.ForwardRef=w,ue.Fragment=$,ue.Lazy=F,ue.Memo=k,ue.Portal=L,ue.Profiler=V,ue.StrictMode=q,ue.Suspense=G,ue.isAsyncMode=Ae,ue.isConcurrentMode=I,ue.isContextConsumer=D,ue.isContextProvider=Q,ue.isElement=X,ue.isForwardRef=z,ue.isFragment=H,ue.isLazy=K,ue.isMemo=Y,ue.isPortal=W,ue.isProfiler=U,ue.isStrictMode=J,ue.isSuspense=ye,ue.isValidElementType=S,ue.typeOf=P}()),ue}var ka;function Da(){return ka||(ka=1,process.env.NODE_ENV==="production"?vr.exports=Ed():vr.exports=Td()),vr.exports}/*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var dn,ja;function Rd(){if(ja)return dn;ja=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dn=o()?Object.assign:function(i,s){for(var u,c=n(i),d,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var g in u)t.call(u,g)&&(c[g]=u[g]);if(e){d=e(u);for(var h=0;h<d.length;h++)r.call(u,d[h])&&(c[d[h]]=u[d[h]])}}return c},dn}var fn,qa;function pn(){if(qa)return fn;qa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fn=e,fn}var hn,La;function Fa(){return La||(La=1,hn=Function.call.bind(Object.prototype.hasOwnProperty)),hn}var gn,Ba;function Cd(){if(Ba)return gn;Ba=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pn(),r={},n=Fa();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,u,c,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(n(i,p)){var g;try{if(typeof i[p]!="function"){var h=Error((c||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}g=i[p](s,p,c,u,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var y=d?d():"";e("Failed "+u+" type: "+g.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},gn=o,gn}var mn,Va;function Sd(){if(Va)return mn;Va=1;var e=Da(),t=Rd(),r=pn(),n=Fa(),o=Cd(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return mn=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(I){var D=I&&(d&&I[d]||I[p]);if(typeof D=="function")return D}var h="<<anonymous>>",y={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:R(),arrayOf:S,element:P(),elementType:_(),instanceOf:N,node:w(),objectOf:E,oneOf:f,oneOfType:x,shape:F,exact:k};function v(I,D){return I===D?I!==0||1/I===1/D:I!==I&&D!==D}function l(I,D){this.message=I,this.data=D&&typeof D=="object"?D:{},this.stack=""}l.prototype=Error.prototype;function b(I){if(process.env.NODE_ENV!=="production")var D={},Q=0;function X(H,K,Y,W,U,J,ye){if(W=W||h,J=J||Y,ye!==r){if(c){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var be=W+":"+Y;!D[be]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[be]=!0,Q++)}}return K[Y]==null?H?K[Y]===null?new l("The "+U+" `"+J+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new l("The "+U+" `"+J+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:I(K,Y,W,U,J)}var z=X.bind(null,!1);return z.isRequired=X.bind(null,!0),z}function T(I){function D(Q,X,z,H,K,Y){var W=Q[X],U=q(W);if(U!==I){var J=G(W);return new l("Invalid "+H+" `"+K+"` of type "+("`"+J+"` supplied to `"+z+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return b(D)}function R(){return b(s)}function S(I){function D(Q,X,z,H,K){if(typeof I!="function")return new l("Property `"+K+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var Y=Q[X];if(!Array.isArray(Y)){var W=q(Y);return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected an array."))}for(var U=0;U<Y.length;U++){var J=I(Y,U,z,H,K+"["+U+"]",r);if(J instanceof Error)return J}return null}return b(D)}function P(){function I(D,Q,X,z,H){var K=D[Q];if(!u(K)){var Y=q(K);return new l("Invalid "+z+" `"+H+"` of type "+("`"+Y+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return b(I)}function _(){function I(D,Q,X,z,H){var K=D[Q];if(!e.isValidElementType(K)){var Y=q(K);return new l("Invalid "+z+" `"+H+"` of type "+("`"+Y+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return b(I)}function N(I){function D(Q,X,z,H,K){if(!(Q[X]instanceof I)){var Y=I.name||h,W=Ae(Q[X]);return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected ")+("instance of `"+Y+"`."))}return null}return b(D)}function f(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function D(Q,X,z,H,K){for(var Y=Q[X],W=0;W<I.length;W++)if(v(Y,I[W]))return null;var U=JSON.stringify(I,function(ye,j){var be=G(j);return be==="symbol"?String(j):j});return new l("Invalid "+H+" `"+K+"` of value `"+String(Y)+"` "+("supplied to `"+z+"`, expected one of "+U+"."))}return b(D)}function E(I){function D(Q,X,z,H,K){if(typeof I!="function")return new l("Property `"+K+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type "+("`"+W+"` supplied to `"+z+"`, expected an object."));for(var U in Y)if(n(Y,U)){var J=I(Y,U,z,H,K+"."+U,r);if(J instanceof Error)return J}return null}return b(D)}function x(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<I.length;D++){var Q=I[D];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(Q)+" at index "+D+"."),s}function X(z,H,K,Y,W){for(var U=[],J=0;J<I.length;J++){var ye=I[J],j=ye(z,H,K,Y,W,r);if(j==null)return null;j.data&&n(j.data,"expectedType")&&U.push(j.data.expectedType)}var be=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new l("Invalid "+Y+" `"+W+"` supplied to "+("`"+K+"`"+be+"."))}return b(X)}function w(){function I(D,Q,X,z,H){return L(D[Q])?null:new l("Invalid "+z+" `"+H+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return b(I)}function $(I,D,Q,X,z){return new l((I||"React class")+": "+D+" type `"+Q+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function F(I){function D(Q,X,z,H,K){var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type `"+W+"` "+("supplied to `"+z+"`, expected `object`."));for(var U in I){var J=I[U];if(typeof J!="function")return $(z,H,K,U,G(J));var ye=J(Y,U,z,H,K+"."+U,r);if(ye)return ye}return null}return b(D)}function k(I){function D(Q,X,z,H,K){var Y=Q[X],W=q(Y);if(W!=="object")return new l("Invalid "+H+" `"+K+"` of type `"+W+"` "+("supplied to `"+z+"`, expected `object`."));var U=t({},Q[X],I);for(var J in U){var ye=I[J];if(n(I,J)&&typeof ye!="function")return $(z,H,K,J,G(ye));if(!ye)return new l("Invalid "+H+" `"+K+"` key `"+J+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(Q[X],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var j=ye(Y,J,z,H,K+"."+J,r);if(j)return j}return null}return b(D)}function L(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(L);if(I===null||u(I))return!0;var D=g(I);if(D){var Q=D.call(I),X;if(D!==I.entries){for(;!(X=Q.next()).done;)if(!L(X.value))return!1}else for(;!(X=Q.next()).done;){var z=X.value;if(z&&!L(z[1]))return!1}}else return!1;return!0;default:return!1}}function V(I,D){return I==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function q(I){var D=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":V(D,I)?"symbol":D}function G(I){if(typeof I>"u"||I===null)return""+I;var D=q(I);if(D==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return D}function ee(I){var D=G(I);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Ae(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},mn}var vn,za;function Od(){if(za)return vn;za=1;var e=pn();function t(){}function r(){}return r.resetWarningCache=t,vn=function(){function n(s,u,c,d,p,g){if(g!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},vn}var Wa;function Pd(){if(Wa)return mr.exports;if(Wa=1,process.env.NODE_ENV!=="production"){var e=Da(),t=!0;mr.exports=Sd()(e.isElement,t)}else mr.exports=Od()();return mr.exports}var wd=Pd();const a=gr(wd);function Id(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]}function $d(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ad=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($d(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Id(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),De="-ms-",yr="-moz-",ie="-webkit-",Ua="comm",yn="rule",bn="decl",Nd="@import",Ga="@keyframes",Md="@layer",kd=Math.abs,br=String.fromCharCode,Dd=Object.assign;function jd(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Ka(e){return e.trim()}function qd(e,t){return(e=t.exec(e))?e[0]:e}function ae(e,t,r){return e.replace(t,r)}function _n(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function Bt(e,t,r){return e.slice(t,r)}function Xe(e){return e.length}function xn(e){return e.length}function _r(e,t){return t.push(e),e}function Ld(e,t){return e.map(t).join("")}var xr=1,bt=1,Ha=0,Le=0,Se=0,_t="";function Er(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:xr,column:bt,length:s,return:""}}function Vt(e,t){return Dd(Er("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fd(){return Se}function Bd(){return Se=Le>0?Me(_t,--Le):0,bt--,Se===10&&(bt=1,xr--),Se}function Be(){return Se=Le<Ha?Me(_t,Le++):0,bt++,Se===10&&(bt=1,xr++),Se}function Je(){return Me(_t,Le)}function Tr(){return Le}function zt(e,t){return Bt(_t,e,t)}function Wt(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 Ya(e){return xr=bt=1,Ha=Xe(_t=e),Le=0,[]}function Xa(e){return _t="",e}function Rr(e){return Ka(zt(Le-1,En(e===91?e+2:e===40?e+1:e)))}function Vd(e){for(;(Se=Je())&&Se<33;)Be();return Wt(e)>2||Wt(Se)>3?"":" "}function zd(e,t){for(;--t&&Be()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return zt(e,Tr()+(t<6&&Je()==32&&Be()==32))}function En(e){for(;Be();)switch(Se){case e:return Le;case 34:case 39:e!==34&&e!==39&&En(Se);break;case 40:e===41&&En(e);break;case 92:Be();break}return Le}function Wd(e,t){for(;Be()&&e+Se!==57;)if(e+Se===84&&Je()===47)break;return"/*"+zt(t,Le-1)+"*"+br(e===47?e:Be())}function Ud(e){for(;!Wt(Je());)Be();return zt(e,Le)}function Gd(e){return Xa(Cr("",null,null,null,[""],e=Ya(e),0,[0],e))}function Cr(e,t,r,n,o,i,s,u,c){for(var d=0,p=0,g=s,h=0,y=0,v=0,l=1,b=1,T=1,R=0,S="",P=o,_=i,N=n,f=S;b;)switch(v=R,R=Be()){case 40:if(v!=108&&Me(f,g-1)==58){_n(f+=ae(Rr(R),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:f+=Rr(R);break;case 9:case 10:case 13:case 32:f+=Vd(v);break;case 92:f+=zd(Tr()-1,7);continue;case 47:switch(Je()){case 42:case 47:_r(Kd(Wd(Be(),Tr()),t,r),c);break;default:f+="/"}break;case 123*l:u[d++]=Xe(f)*T;case 125*l:case 59:case 0:switch(R){case 0:case 125:b=0;case 59+p:T==-1&&(f=ae(f,/\f/g,"")),y>0&&Xe(f)-g&&_r(y>32?Za(f+";",n,r,g-1):Za(ae(f," ","")+";",n,r,g-2),c);break;case 59:f+=";";default:if(_r(N=Ja(f,t,r,d,p,o,u,S,P=[],_=[],g),i),R===123)if(p===0)Cr(f,t,N,N,P,i,g,u,_);else switch(h===99&&Me(f,3)===110?100:h){case 100:case 108:case 109:case 115:Cr(e,N,N,n&&_r(Ja(e,N,N,0,0,o,u,S,o,P=[],g),_),o,_,g,u,n?P:_);break;default:Cr(f,N,N,N,[""],_,0,u,_)}}d=p=y=0,l=T=1,S=f="",g=s;break;case 58:g=1+Xe(f),y=v;default:if(l<1){if(R==123)--l;else if(R==125&&l++==0&&Bd()==125)continue}switch(f+=br(R),R*l){case 38:T=p>0?1:(f+="\f",-1);break;case 44:u[d++]=(Xe(f)-1)*T,T=1;break;case 64:Je()===45&&(f+=Rr(Be())),h=Je(),p=g=Xe(S=f+=Ud(Tr())),R++;break;case 45:v===45&&Xe(f)==2&&(l=0)}}return i}function Ja(e,t,r,n,o,i,s,u,c,d,p){for(var g=o-1,h=o===0?i:[""],y=xn(h),v=0,l=0,b=0;v<n;++v)for(var T=0,R=Bt(e,g+1,g=kd(l=s[v])),S=e;T<y;++T)(S=Ka(l>0?h[T]+" "+R:ae(R,/&\f/g,h[T])))&&(c[b++]=S);return Er(e,t,r,o===0?yn:u,c,d,p)}function Kd(e,t,r){return Er(e,t,r,Ua,br(Fd()),Bt(e,2,-2),0)}function Za(e,t,r,n){return Er(e,t,r,bn,Bt(e,0,n),Bt(e,n+1,-1),n)}function xt(e,t){for(var r="",n=xn(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Hd(e,t,r,n){switch(e.type){case Md:if(e.children.length)break;case Nd:case bn:return e.return=e.return||e.value;case Ua:return"";case Ga:return e.return=e.value+"{"+xt(e.children,n)+"}";case yn:e.value=e.props.join(",")}return Xe(r=xt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Yd(e){var t=xn(e);return function(r,n,o,i){for(var s="",u=0;u<t;u++)s+=e[u](r,n,o,i)||"";return s}}function Xd(e){return function(t){t.root||(t=t.return)&&e(t)}}var Jd=function(t,r,n){for(var o=0,i=0;o=i,i=Je(),o===38&&i===12&&(r[n]=1),!Wt(i);)Be();return zt(t,Le)},Zd=function(t,r){var n=-1,o=44;do switch(Wt(o)){case 0:o===38&&Je()===12&&(r[n]=1),t[n]+=Jd(Le-1,r,n);break;case 2:t[n]+=Rr(o);break;case 4:if(o===44){t[++n]=Je()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=br(o)}while(o=Be());return t},Qd=function(t,r){return Xa(Zd(Ya(t),r))},Qa=new WeakMap,ef=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qa.get(n))&&!o){Qa.set(t,!0);for(var i=[],s=Qd(r,i),u=n.props,c=0,d=0;c<s.length;c++)for(var p=0;p<u.length;p++,d++)t.props[d]=i[c]?s[c].replace(/&\f/g,u[p]):u[p]+" "+s[c]}}},tf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function es(e,t){switch(jd(e,t)){case 5103:return ie+"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 ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+yr+e+De+e+e;case 6828:case 4268:return ie+e+De+e+e;case 6165:return ie+e+De+"flex-"+e+e;case 5187:return ie+e+ae(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+De+"flex-$1$2")+e;case 5443:return ie+e+De+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return ie+e+De+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+De+ae(e,"shrink","negative")+e;case 5292:return ie+e+De+ae(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+ae(e,"-grow","")+ie+e+De+ae(e,"grow","positive")+e;case 4554:return ie+ae(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+De+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,ie+"$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(Xe(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+yr+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_n(e,"stretch")?es(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Xe(e)-3-(~_n(e,"!important")&&10))){case 107:return ae(e,":",":"+ie)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Me(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+De+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+De+e+e}return e}var rf=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bn:t.return=es(t.value,t.length);break;case Ga:return xt([Vt(t,{value:ae(t.value,"@","@"+ie)})],o);case yn:if(t.length)return Ld(t.props,function(i){switch(qd(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xt([Vt(t,{props:[ae(i,/:(read-\w+)/,":"+yr+"$1")]})],o);case"::placeholder":return xt([Vt(t,{props:[ae(i,/:(plac\w+)/,":"+ie+"input-$1")]}),Vt(t,{props:[ae(i,/:(plac\w+)/,":"+yr+"$1")]}),Vt(t,{props:[ae(i,/:(plac\w+)/,De+"input-$1")]})],o)}return""})}},nf=[rf],of=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(l){var b=l.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||nf,i={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var b=l.getAttribute("data-emotion").split(" "),T=1;T<b.length;T++)i[b[T]]=!0;u.push(l)});var c,d=[ef,tf];{var p,g=[Hd,Xd(function(l){p.insert(l)})],h=Yd(d.concat(o,g)),y=function(b){return xt(Gd(b),h)};c=function(b,T,R,S){p=R,y(b?b+"{"+T.styles+"}":T.styles),S&&(v.inserted[T.name]=!0)}}var v={key:r,sheet:new Ad({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return v.sheet.hydrate(u),v},Sr={exports:{}},Ut={};/**
21
- * @license React
22
- * react-jsx-runtime.production.min.js
23
- *
24
- * Copyright (c) Facebook, Inc. and its affiliates.
25
- *
26
- * This source code is licensed under the MIT license found in the
27
- * LICENSE file in the root directory of this source tree.
28
- */var ts;function af(){if(ts)return Ut;ts=1;var e=de,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=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 s(u,c,d){var p,g={},h=null,y=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(y=c.ref);for(p in c)n.call(c,p)&&!i.hasOwnProperty(p)&&(g[p]=c[p]);if(u&&u.defaultProps)for(p in c=u.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:t,type:u,key:h,ref:y,props:g,_owner:o.current}}return Ut.Fragment=r,Ut.jsx=s,Ut.jsxs=s,Ut}var Gt={};/**
29
- * @license React
30
- * react-jsx-runtime.development.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */var rs;function sf(){return rs||(rs=1,process.env.NODE_ENV!=="production"&&function(){var e=de,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,l="@@iterator";function b(m){if(m===null||typeof m!="object")return null;var A=v&&m[v]||m[l];return typeof A=="function"?A:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(m){{for(var A=arguments.length,B=new Array(A>1?A-1:0),Z=1;Z<A;Z++)B[Z-1]=arguments[Z];S("error",m,B)}}function S(m,A,B){{var Z=T.ReactDebugCurrentFrame,le=Z.getStackAddendum();le!==""&&(A+="%s",B=B.concat([le]));var me=B.map(function(oe){return String(oe)});me.unshift("Warning: "+A),Function.prototype.apply.call(console[m],console,me)}}var P=!1,_=!1,N=!1,f=!1,E=!1,x;x=Symbol.for("react.module.reference");function w(m){return!!(typeof m=="string"||typeof m=="function"||m===n||m===i||E||m===o||m===d||m===p||f||m===y||P||_||N||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===g||m.$$typeof===s||m.$$typeof===u||m.$$typeof===c||m.$$typeof===x||m.getModuleId!==void 0))}function $(m,A,B){var Z=m.displayName;if(Z)return Z;var le=A.displayName||A.name||"";return le!==""?B+"("+le+")":B}function F(m){return m.displayName||"Context"}function k(m){if(m==null)return null;if(typeof m.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case u:var A=m;return F(A)+".Consumer";case s:var B=m;return F(B._context)+".Provider";case c:return $(m,m.render,"ForwardRef");case g:var Z=m.displayName||null;return Z!==null?Z:k(m.type)||"Memo";case h:{var le=m,me=le._payload,oe=le._init;try{return k(oe(me))}catch{return null}}}return null}var L=Object.assign,V=0,q,G,ee,Ae,I,D,Q;function X(){}X.__reactDisabledLog=!0;function z(){{if(V===0){q=console.log,G=console.info,ee=console.warn,Ae=console.error,I=console.group,D=console.groupCollapsed,Q=console.groupEnd;var m={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}V++}}function H(){{if(V--,V===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},m,{value:q}),info:L({},m,{value:G}),warn:L({},m,{value:ee}),error:L({},m,{value:Ae}),group:L({},m,{value:I}),groupCollapsed:L({},m,{value:D}),groupEnd:L({},m,{value:Q})})}V<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=T.ReactCurrentDispatcher,Y;function W(m,A,B){{if(Y===void 0)try{throw Error()}catch(le){var Z=le.stack.trim().match(/\n( *(at )?)/);Y=Z&&Z[1]||""}return`
37
- `+Y+m}}var U=!1,J;{var ye=typeof WeakMap=="function"?WeakMap:Map;J=new ye}function j(m,A){if(!m||U)return"";{var B=J.get(m);if(B!==void 0)return B}var Z;U=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=K.current,K.current=null,z();try{if(A){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Fe){Z=Fe}Reflect.construct(m,[],oe)}else{try{oe.call()}catch(Fe){Z=Fe}m.call(oe.prototype)}}else{try{throw Error()}catch(Fe){Z=Fe}m()}}catch(Fe){if(Fe&&Z&&typeof Fe.stack=="string"){for(var re=Fe.stack.split(`
38
- `),je=Z.stack.split(`
39
- `),Ce=re.length-1,we=je.length-1;Ce>=1&&we>=0&&re[Ce]!==je[we];)we--;for(;Ce>=1&&we>=0;Ce--,we--)if(re[Ce]!==je[we]){if(Ce!==1||we!==1)do if(Ce--,we--,we<0||re[Ce]!==je[we]){var Ke=`
40
- `+re[Ce].replace(" at new "," at ");return m.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",m.displayName)),typeof m=="function"&&J.set(m,Ke),Ke}while(Ce>=1&&we>=0);break}}}finally{U=!1,K.current=me,H(),Error.prepareStackTrace=le}var qt=m?m.displayName||m.name:"",vt=qt?W(qt):"";return typeof m=="function"&&J.set(m,vt),vt}function be(m,A,B){return j(m,!1)}function ge(m){var A=m.prototype;return!!(A&&A.isReactComponent)}function Pe(m,A,B){if(m==null)return"";if(typeof m=="function")return j(m,ge(m));if(typeof m=="string")return W(m);switch(m){case d:return W("Suspense");case p:return W("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case c:return be(m.render);case g:return Pe(m.type,A,B);case h:{var Z=m,le=Z._payload,me=Z._init;try{return Pe(me(le),A,B)}catch{}}}return""}var ze=Object.prototype.hasOwnProperty,at={},kt=T.ReactDebugCurrentFrame;function lt(m){if(m){var A=m._owner,B=Pe(m.type,m._source,A?A.type:null);kt.setExtraStackFrame(B)}else kt.setExtraStackFrame(null)}function cr(m,A,B,Z,le){{var me=Function.call.bind(ze);for(var oe in m)if(me(m,oe)){var re=void 0;try{if(typeof m[oe]!="function"){var je=Error((Z||"React class")+": "+B+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}re=m[oe](A,oe,Z,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ce){re=Ce}re&&!(re instanceof Error)&&(lt(le),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",B,oe,typeof re),lt(null)),re instanceof Error&&!(re.message in at)&&(at[re.message]=!0,lt(le),R("Failed %s type: %s",B,re.message),lt(null))}}}var lr=Array.isArray;function dr(m){return lr(m)}function Ea(m){{var A=typeof Symbol=="function"&&Symbol.toStringTag,B=A&&m[Symbol.toStringTag]||m.constructor.name||"Object";return B}}function Dt(m){try{return dt(m),!1}catch{return!0}}function dt(m){return""+m}function on(m){if(Dt(m))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ea(m)),dt(m)}var fr=T.ReactCurrentOwner,Ta={key:!0,ref:!0,__self:!0,__source:!0},te,pr;function Ra(m){if(ze.call(m,"ref")){var A=Object.getOwnPropertyDescriptor(m,"ref").get;if(A&&A.isReactWarning)return!1}return m.ref!==void 0}function an(m){if(ze.call(m,"key")){var A=Object.getOwnPropertyDescriptor(m,"key").get;if(A&&A.isReactWarning)return!1}return m.key!==void 0}function ld(m,A){typeof m.ref=="string"&&fr.current}function ky(m,A){{var B=function(){te||(te=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};B.isReactWarning=!0,Object.defineProperty(m,"key",{get:B,configurable:!0})}}function Dy(m,A){{var B=function(){pr||(pr=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",A))};B.isReactWarning=!0,Object.defineProperty(m,"ref",{get:B,configurable:!0})}}var jy=function(m,A,B,Z,le,me,oe){var re={$$typeof:t,type:m,key:A,ref:B,props:oe,_owner:me};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function qy(m,A,B,Z,le){{var me,oe={},re=null,je=null;B!==void 0&&(on(B),re=""+B),an(A)&&(on(A.key),re=""+A.key),Ra(A)&&(je=A.ref,ld(A,le));for(me in A)ze.call(A,me)&&!Ta.hasOwnProperty(me)&&(oe[me]=A[me]);if(m&&m.defaultProps){var Ce=m.defaultProps;for(me in Ce)oe[me]===void 0&&(oe[me]=Ce[me])}if(re||je){var we=typeof m=="function"?m.displayName||m.name||"Unknown":m;re&&ky(oe,we),je&&Dy(oe,we)}return jy(m,re,je,le,Z,fr.current,oe)}}var Ca=T.ReactCurrentOwner,dd=T.ReactDebugCurrentFrame;function jt(m){if(m){var A=m._owner,B=Pe(m.type,m._source,A?A.type:null);dd.setExtraStackFrame(B)}else dd.setExtraStackFrame(null)}var Sa;Sa=!1;function Oa(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function fd(){{if(Ca.current){var m=k(Ca.current.type);if(m)return`
41
-
42
- Check the render method of \``+m+"`."}return""}}function Ly(m){return""}var pd={};function Fy(m){{var A=fd();if(!A){var B=typeof m=="string"?m:m.displayName||m.name;B&&(A=`
43
-
44
- Check the top-level render call using <`+B+">.")}return A}}function hd(m,A){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var B=Fy(A);if(pd[B])return;pd[B]=!0;var Z="";m&&m._owner&&m._owner!==Ca.current&&(Z=" It was passed a child from "+k(m._owner.type)+"."),jt(m),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',B,Z),jt(null)}}function gd(m,A){{if(typeof m!="object")return;if(dr(m))for(var B=0;B<m.length;B++){var Z=m[B];Oa(Z)&&hd(Z,A)}else if(Oa(m))m._store&&(m._store.validated=!0);else if(m){var le=b(m);if(typeof le=="function"&&le!==m.entries)for(var me=le.call(m),oe;!(oe=me.next()).done;)Oa(oe.value)&&hd(oe.value,A)}}}function By(m){{var A=m.type;if(A==null||typeof A=="string")return;var B;if(typeof A=="function")B=A.propTypes;else if(typeof A=="object"&&(A.$$typeof===c||A.$$typeof===g))B=A.propTypes;else return;if(B){var Z=k(A);cr(B,m.props,"prop",Z,m)}else if(A.PropTypes!==void 0&&!Sa){Sa=!0;var le=k(A);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof A.getDefaultProps=="function"&&!A.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vy(m){{for(var A=Object.keys(m.props),B=0;B<A.length;B++){var Z=A[B];if(Z!=="children"&&Z!=="key"){jt(m),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),jt(null);break}}m.ref!==null&&(jt(m),R("Invalid attribute `ref` supplied to `React.Fragment`."),jt(null))}}var md={};function vd(m,A,B,Z,le,me){{var oe=w(m);if(!oe){var re="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Ly();je?re+=je:re+=fd();var Ce;m===null?Ce="null":dr(m)?Ce="array":m!==void 0&&m.$$typeof===t?(Ce="<"+(k(m.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):Ce=typeof m,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ce,re)}var we=qy(m,A,B,le,me);if(we==null)return we;if(oe){var Ke=A.children;if(Ke!==void 0)if(Z)if(dr(Ke)){for(var qt=0;qt<Ke.length;qt++)gd(Ke[qt],m);Object.freeze&&Object.freeze(Ke)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else gd(Ke,m)}if(ze.call(A,"key")){var vt=k(m),Fe=Object.keys(A).filter(function(Hy){return Hy!=="key"}),Pa=Fe.length>0?"{key: someKey, "+Fe.join(": ..., ")+": ...}":"{key: someKey}";if(!md[vt+Pa]){var Ky=Fe.length>0?"{"+Fe.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
45
- let props = %s;
46
- <%s {...props} />
47
- React keys must be passed directly to JSX without using spread:
48
- let props = %s;
49
- <%s key={someKey} {...props} />`,Pa,vt,Ky,vt),md[vt+Pa]=!0}}return m===n?Vy(we):By(we),we}}function zy(m,A,B){return vd(m,A,B,!0)}function Wy(m,A,B){return vd(m,A,B,!1)}var Uy=Wy,Gy=zy;Gt.Fragment=n,Gt.jsx=Uy,Gt.jsxs=Gy}()),Gt}var ns;function os(){return ns||(ns=1,process.env.NODE_ENV==="production"?Sr.exports=af():Sr.exports=sf()),Sr.exports}var M=os();let Tn;typeof document=="object"&&(Tn=of({key:"css",prepend:!0}));function is(e){const{injectFirst:t,children:r}=e;return t&&Tn?M.jsx(Lt.CacheProvider,{value:Tn,children:r}):r}process.env.NODE_ENV!=="production"&&(is.propTypes={children:a.node,injectFirst:a.bool});function uf(e){return e==null||Object.keys(e).length===0}function as(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(uf(o)?r:o):t;return M.jsx(Lt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(as.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});/**
50
- * @mui/styled-engine v5.16.14
51
- *
52
- * @license MIT
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */function cf(e,t){const r=yd(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
56
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const lf=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},df=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:as,StyledEngineProvider:is,ThemeContext:Lt.ThemeContext,css:Lt.css,default:cf,internal_processStyles:lf,keyframes:Lt.keyframes},Symbol.toStringTag,{value:"Module"})),ff=tt(df);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(null,arguments)}function st(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ss(e){if(O.isValidElement(e)||!st(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ss(e[r])}),t}function Ze(e,t,r={clone:!0}){const n=r.clone?C({},e):e;return st(e)&&st(t)&&Object.keys(t).forEach(o=>{O.isValidElement(t[o])?n[o]=t[o]:st(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&st(e[o])?n[o]=Ze(e[o],t[o],r):r.clone?n[o]=st(t[o])?ss(t[o]):t[o]:n[o]=t[o]}),n}const pf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Ze,isPlainObject:st},Symbol.toStringTag,{value:"Module"})));function Kt(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const hf=Object.freeze(Object.defineProperty({__proto__:null,default:Kt},Symbol.toStringTag,{value:"Module"}));function fe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const gf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:fe},Symbol.toStringTag,{value:"Module"})));var Or={exports:{}},pe={};/**
57
- * @license React
58
- * react-is.production.js
59
- *
60
- * Copyright (c) Meta Platforms, Inc. and affiliates.
61
- *
62
- * This source code is licensed under the MIT license found in the
63
- * LICENSE file in the root directory of this source tree.
64
- */var us;function mf(){if(us)return pe;us=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");function v(l){if(typeof l=="object"&&l!==null){var b=l.$$typeof;switch(b){case e:switch(l=l.type,l){case r:case o:case n:case c:case d:return l;default:switch(l=l&&l.$$typeof,l){case s:case u:case g:case p:return l;case i:return l;default:return b}}case t:return b}}}return pe.ContextConsumer=i,pe.ContextProvider=s,pe.Element=e,pe.ForwardRef=u,pe.Fragment=r,pe.Lazy=g,pe.Memo=p,pe.Portal=t,pe.Profiler=o,pe.StrictMode=n,pe.Suspense=c,pe.SuspenseList=d,pe.isContextConsumer=function(l){return v(l)===i},pe.isContextProvider=function(l){return v(l)===s},pe.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},pe.isForwardRef=function(l){return v(l)===u},pe.isFragment=function(l){return v(l)===r},pe.isLazy=function(l){return v(l)===g},pe.isMemo=function(l){return v(l)===p},pe.isPortal=function(l){return v(l)===t},pe.isProfiler=function(l){return v(l)===o},pe.isStrictMode=function(l){return v(l)===n},pe.isSuspense=function(l){return v(l)===c},pe.isSuspenseList=function(l){return v(l)===d},pe.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===c||l===d||l===h||typeof l=="object"&&l!==null&&(l.$$typeof===g||l.$$typeof===p||l.$$typeof===s||l.$$typeof===i||l.$$typeof===u||l.$$typeof===y||l.getModuleId!==void 0)},pe.typeOf=v,pe}var he={};/**
65
- * @license React
66
- * react-is.development.js
67
- *
68
- * Copyright (c) Meta Platforms, Inc. and affiliates.
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE file in the root directory of this source tree.
72
- */var cs;function vf(){return cs||(cs=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(typeof l=="object"&&l!==null){var b=l.$$typeof;switch(b){case t:switch(l=l.type,l){case n:case i:case o:case d:case p:return l;default:switch(l=l&&l.$$typeof,l){case u:case c:case h:case g:return l;case s:return l;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");he.ContextConsumer=s,he.ContextProvider=u,he.Element=t,he.ForwardRef=c,he.Fragment=n,he.Lazy=h,he.Memo=g,he.Portal=r,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.SuspenseList=p,he.isContextConsumer=function(l){return e(l)===s},he.isContextProvider=function(l){return e(l)===u},he.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},he.isForwardRef=function(l){return e(l)===c},he.isFragment=function(l){return e(l)===n},he.isLazy=function(l){return e(l)===h},he.isMemo=function(l){return e(l)===g},he.isPortal=function(l){return e(l)===r},he.isProfiler=function(l){return e(l)===i},he.isStrictMode=function(l){return e(l)===o},he.isSuspense=function(l){return e(l)===d},he.isSuspenseList=function(l){return e(l)===p},he.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===i||l===o||l===d||l===p||l===y||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===g||l.$$typeof===u||l.$$typeof===s||l.$$typeof===c||l.$$typeof===v||l.getModuleId!==void 0)},he.typeOf=e}()),he}var ls;function yf(){return ls||(ls=1,process.env.NODE_ENV==="production"?Or.exports=mf():Or.exports=vf()),Or.exports}var ds=yf();const bf=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fs(e){const t=`${e}`.match(bf);return t&&t[1]||""}function ps(e,t=""){return e.displayName||e.name||fs(e)||t}function hs(e,t,r){const n=ps(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function _f(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ps(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ds.ForwardRef:return hs(e,e.render,"ForwardRef");case ds.Memo:return hs(e,e.type,"memo");default:return}}}const xf=tt(Object.freeze(Object.defineProperty({__proto__:null,default:_f,getFunctionName:fs},Symbol.toStringTag,{value:"Module"})));function ce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}const Ef=["values","unit","step"],Tf=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>C({},r,{[n.key]:n.val}),{})};function gs(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=ce(e,Ef),i=Tf(t),s=Object.keys(i);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function d(h,y){const v=s.indexOf(y);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:y)-n/100}${r})`}function p(h){return s.indexOf(h)+1<s.length?d(h,s[s.indexOf(h)+1]):u(h)}function g(h){const y=s.indexOf(h);return y===0?u(s[1]):y===s.length-1?c(s[y]):d(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return C({keys:s,values:i,up:u,down:c,between:d,only:p,not:g,unit:r},o)}const Rf={borderRadius:4},ut=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function Ht(e,t){return t?Ze(e,t,{clone:!1}):e}const Rn={xs:0,sm:600,md:900,lg:1200,xl:1536},ms={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rn[e]}px)`};function rt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||ms;return t.reduce((s,u,c)=>(s[i.up(i.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const i=n.breakpoints||ms;return Object.keys(t).reduce((s,u)=>{if(Object.keys(i.values||Rn).indexOf(u)!==-1){const c=i.up(u);s[c]=r(t[u],u)}else{const c=u;s[c]=t[c]}return s},{})}return r(t)}function Cf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Sf(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Pr(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function wr(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Pr(e,r)||n,t&&(o=t(o,n,e)),o}function Re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const u=s[t],c=s.theme,d=Pr(c,n)||{};return rt(s,u,g=>{let h=wr(d,o,g);return g===h&&typeof g=="string"&&(h=wr(d,o,`${t}${g==="default"?"":fe(g)}`,g)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ut}:{},i.filterProps=[t],i}function Of(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Pf={m:"margin",p:"padding"},wf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},If=Of(e=>{if(e.length>2)if(vs[e])e=vs[e];else return[e];const[t,r]=e.split(""),n=Pf[t],o=wf[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Ir=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$f=[...Ir,...$r];function Yt(e,t,r,n){var o;const i=(o=Pr(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
73
- `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
74
- `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
75
- `)),()=>{})}function ys(e){return Yt(e,"spacing",8,"spacing")}function Xt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Af(e,t){return r=>e.reduce((n,o)=>(n[o]=Xt(t,r),n),{})}function Nf(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=If(r),i=Af(o,n),s=e[r];return rt(e,s,i)}function bs(e,t){const r=ys(e.theme);return Object.keys(e).map(n=>Nf(e,t,n,r)).reduce(Ht,{})}function Ee(e){return bs(e,Ir)}Ee.propTypes=process.env.NODE_ENV!=="production"?Ir.reduce((e,t)=>(e[t]=ut,e),{}):{},Ee.filterProps=Ir;function Te(e){return bs(e,$r)}Te.propTypes=process.env.NODE_ENV!=="production"?$r.reduce((e,t)=>(e[t]=ut,e),{}):{},Te.filterProps=$r,process.env.NODE_ENV!=="production"&&$f.reduce((e,t)=>(e[t]=ut,e),{});function Mf(e=8){if(e.mui)return e;const t=ys({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Ar(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Ht(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function We(e){return typeof e!="number"?e:`${e}px solid`}function Ue(e,t){return Re({prop:e,themeKey:"borders",transform:t})}const kf=Ue("border",We),Df=Ue("borderTop",We),jf=Ue("borderRight",We),qf=Ue("borderBottom",We),Lf=Ue("borderLeft",We),Ff=Ue("borderColor"),Bf=Ue("borderTopColor"),Vf=Ue("borderRightColor"),zf=Ue("borderBottomColor"),Wf=Ue("borderLeftColor"),Uf=Ue("outline",We),Gf=Ue("outlineColor"),Nr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Xt(t,n)});return rt(e,e.borderRadius,r)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ut}:{},Nr.filterProps=["borderRadius"],Ar(kf,Df,jf,qf,Lf,Ff,Bf,Vf,zf,Wf,Nr,Uf,Gf);const Mr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yt(e.theme,"spacing",8,"gap"),r=n=>({gap:Xt(t,n)});return rt(e,e.gap,r)}return null};Mr.propTypes=process.env.NODE_ENV!=="production"?{gap:ut}:{},Mr.filterProps=["gap"];const kr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Xt(t,n)});return rt(e,e.columnGap,r)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ut}:{},kr.filterProps=["columnGap"];const Dr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Xt(t,n)});return rt(e,e.rowGap,r)}return null};Dr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ut}:{},Dr.filterProps=["rowGap"];const Kf=Re({prop:"gridColumn"}),Hf=Re({prop:"gridRow"}),Yf=Re({prop:"gridAutoFlow"}),Xf=Re({prop:"gridAutoColumns"}),Jf=Re({prop:"gridAutoRows"}),Zf=Re({prop:"gridTemplateColumns"}),Qf=Re({prop:"gridTemplateRows"}),ep=Re({prop:"gridTemplateAreas"}),tp=Re({prop:"gridArea"});Ar(Mr,kr,Dr,Kf,Hf,Yf,Xf,Jf,Zf,Qf,ep,tp);function Et(e,t){return t==="grey"?t:e}const rp=Re({prop:"color",themeKey:"palette",transform:Et}),np=Re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Et}),op=Re({prop:"backgroundColor",themeKey:"palette",transform:Et});Ar(rp,np,op);function Ve(e){return e<=1&&e!==0?`${e*100}%`:e}const ip=Re({prop:"width",transform:Ve}),Cn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Rn[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ve(r)}};return rt(e,e.maxWidth,t)}return null};Cn.filterProps=["maxWidth"];const ap=Re({prop:"minWidth",transform:Ve}),sp=Re({prop:"height",transform:Ve}),up=Re({prop:"maxHeight",transform:Ve}),cp=Re({prop:"minHeight",transform:Ve});Re({prop:"size",cssProperty:"width",transform:Ve}),Re({prop:"size",cssProperty:"height",transform:Ve});const lp=Re({prop:"boxSizing"});Ar(ip,Cn,ap,sp,up,cp,lp);const Jt={border:{themeKey:"borders",transform:We},borderTop:{themeKey:"borders",transform:We},borderRight:{themeKey:"borders",transform:We},borderBottom:{themeKey:"borders",transform:We},borderLeft:{themeKey:"borders",transform:We},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:We},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nr},color:{themeKey:"palette",transform:Et},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Et},backgroundColor:{themeKey:"palette",transform:Et},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Mr},rowGap:{style:Dr},columnGap:{style:kr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ve},maxWidth:{style:Cn},minWidth:{transform:Ve},height:{transform:Ve},maxHeight:{transform:Ve},minHeight:{transform:Ve},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dp(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function fp(e,t){return typeof e=="function"?e(t):e}function _s(){function e(r,n,o,i){const s={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:p,style:g}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const h=Pr(o,d)||{};return g?g(s):rt(s,n,v=>{let l=wr(h,p,v);return v===l&&typeof v=="string"&&(l=wr(h,p,`${r}${v==="default"?"":fe(v)}`,v)),c===!1?l:{[c]:l}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:Jt;function u(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const p=Cf(i.breakpoints),g=Object.keys(p);let h=p;return Object.keys(d).forEach(y=>{const v=fp(d[y],i);if(v!=null)if(typeof v=="object")if(s[y])h=Ht(h,e(y,v,i,s));else{const l=rt({theme:i},v,b=>({[y]:b}));dp(l,v)?h[y]=t({sx:v,theme:i}):h=Ht(h,l)}else h=Ht(h,e(y,v,i,s))}),Sf(g,h)}return Array.isArray(o)?o.map(u):u(o)}return t}const jr=_s();jr.filterProps=["sx"];function xs(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const pp=["breakpoints","palette","spacing","shape"];function Es(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=ce(e,pp),u=gs(r),c=Mf(o);let d=Ze({breakpoints:u,direction:"ltr",components:{},palette:C({mode:"light"},n),spacing:c,shape:C({},Rf,i)},s);return d.applyStyles=xs,d=t.reduce((p,g)=>Ze(p,g),d),d.unstable_sxConfig=C({},Jt,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(g){return jr({sx:g,theme:this})},d}const hp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Es,private_createBreakpoints:gs,unstable_applyStyles:xs},Symbol.toStringTag,{value:"Module"}))),gp=["sx"],mp=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Jt;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ts(e){const{sx:t}=e,r=ce(e,gp),{systemProps:n,otherProps:o}=mp(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const u=t(...s);return st(u)?C({},n,u):n}:i=C({},n,t),C({},o,{sx:i})}const vp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:jr,extendSxProp:Ts,unstable_createStyleFunctionSx:_s,unstable_defaultSxConfig:Jt},Symbol.toStringTag,{value:"Module"})));var Rs;function yp(){if(Rs)return ft;Rs=1;var e=un();Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=N,ft.shouldForwardProp=b,ft.systemDefaultTheme=void 0;var t=e(_d()),r=e(xd()),n=y(ff),o=pf,i=e(gf),s=e(xf),u=e(hp),c=e(vp);const d=["ownerState"],p=["variants"],g=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(f){if(typeof WeakMap!="function")return null;var E=new WeakMap,x=new WeakMap;return(h=function(w){return w?x:E})(f)}function y(f,E){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var x=h(E);if(x&&x.has(f))return x.get(f);var w={__proto__:null},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in f)if(F!=="default"&&Object.prototype.hasOwnProperty.call(f,F)){var k=$?Object.getOwnPropertyDescriptor(f,F):null;k&&(k.get||k.set)?Object.defineProperty(w,F,k):w[F]=f[F]}return w.default=f,x&&x.set(f,w),w}function v(f){return Object.keys(f).length===0}function l(f){return typeof f=="string"&&f.charCodeAt(0)>96}function b(f){return f!=="ownerState"&&f!=="theme"&&f!=="sx"&&f!=="as"}const T=ft.systemDefaultTheme=(0,u.default)(),R=f=>f&&f.charAt(0).toLowerCase()+f.slice(1);function S({defaultTheme:f,theme:E,themeId:x}){return v(E)?f:E[x]||E}function P(f){return f?(E,x)=>x[f]:null}function _(f,E){let{ownerState:x}=E,w=(0,r.default)(E,d);const $=typeof f=="function"?f((0,t.default)({ownerState:x},w)):f;if(Array.isArray($))return $.flatMap(F=>_(F,(0,t.default)({ownerState:x},w)));if($&&typeof $=="object"&&Array.isArray($.variants)){const{variants:F=[]}=$;let L=(0,r.default)($,p);return F.forEach(V=>{let q=!0;typeof V.props=="function"?q=V.props((0,t.default)({ownerState:x},w,x)):Object.keys(V.props).forEach(G=>{(x==null?void 0:x[G])!==V.props[G]&&w[G]!==V.props[G]&&(q=!1)}),q&&(Array.isArray(L)||(L=[L]),L.push(typeof V.style=="function"?V.style((0,t.default)({ownerState:x},w,x)):V.style))}),L}return $}function N(f={}){const{themeId:E,defaultTheme:x=T,rootShouldForwardProp:w=b,slotShouldForwardProp:$=b}=f,F=k=>(0,c.default)((0,t.default)({},k,{theme:S((0,t.default)({},k,{defaultTheme:x,themeId:E}))}));return F.__mui_systemSx=!0,(k,L={})=>{(0,n.internal_processStyles)(k,W=>W.filter(U=>!(U!=null&&U.__mui_systemSx)));const{name:V,slot:q,skipVariantsResolver:G,skipSx:ee,overridesResolver:Ae=P(R(q))}=L,I=(0,r.default)(L,g),D=G!==void 0?G:q&&q!=="Root"&&q!=="root"||!1,Q=ee||!1;let X;process.env.NODE_ENV!=="production"&&V&&(X=`${V}-${R(q||"Root")}`);let z=b;q==="Root"||q==="root"?z=w:q?z=$:l(k)&&(z=void 0);const H=(0,n.default)(k,(0,t.default)({shouldForwardProp:z,label:X},I)),K=W=>typeof W=="function"&&W.__emotion_real!==W||(0,o.isPlainObject)(W)?U=>_(W,(0,t.default)({},U,{theme:S({theme:U.theme,defaultTheme:x,themeId:E})})):W,Y=(W,...U)=>{let J=K(W);const ye=U?U.map(K):[];V&&Ae&&ye.push(ge=>{const Pe=S((0,t.default)({},ge,{defaultTheme:x,themeId:E}));if(!Pe.components||!Pe.components[V]||!Pe.components[V].styleOverrides)return null;const ze=Pe.components[V].styleOverrides,at={};return Object.entries(ze).forEach(([kt,lt])=>{at[kt]=_(lt,(0,t.default)({},ge,{theme:Pe}))}),Ae(ge,at)}),V&&!D&&ye.push(ge=>{var Pe;const ze=S((0,t.default)({},ge,{defaultTheme:x,themeId:E})),at=ze==null||(Pe=ze.components)==null||(Pe=Pe[V])==null?void 0:Pe.variants;return _({variants:at},(0,t.default)({},ge,{theme:ze}))}),Q||ye.push(F);const j=ye.length-U.length;if(Array.isArray(W)&&j>0){const ge=new Array(j).fill("");J=[...W,...ge],J.raw=[...W.raw,...ge]}const be=H(J,...ye);if(process.env.NODE_ENV!=="production"){let ge;V&&(ge=`${V}${(0,i.default)(q||"")}`),ge===void 0&&(ge=`Styled(${(0,s.default)(k)})`),be.displayName=ge}return k.muiName&&(be.muiName=k.muiName),be};return H.withConfig&&(Y.withConfig=H.withConfig),Y}}return ft}var bp=yp();const _p=gr(bp),Cs=e=>e,Ss=(()=>{let e=Cs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cs}}})(),xp={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 Ie(e,t,r="Mui"){const n=xp[t];return n?`${r}-${n}`:`${Ss.generate(e)}-${t}`}function Ep(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var xe={};const Tp=tt(hf);function Rp(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Cp=tt(Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"})));var Os;function Sp(){if(Os)return xe;Os=1;var e=un();Object.defineProperty(xe,"__esModule",{value:!0}),xe.alpha=v,xe.blend=N,xe.colorChannel=void 0,xe.darken=b,xe.decomposeColor=s,xe.emphasize=P,xe.getContrastRatio=y,xe.getLuminance=h,xe.hexToRgb=o,xe.hslToRgb=g,xe.lighten=R,xe.private_safeAlpha=l,xe.private_safeColorChannel=void 0,xe.private_safeDarken=T,xe.private_safeEmphasize=_,xe.private_safeLighten=S,xe.recomposeColor=d,xe.rgbToHex=p;var t=e(Tp),r=e(Cp);function n(f,E=0,x=1){return process.env.NODE_ENV!=="production"&&(f<E||f>x)&&console.error(`MUI: The value provided ${f} is out of range [${E}, ${x}].`),(0,r.default)(f,E,x)}function o(f){f=f.slice(1);const E=new RegExp(`.{1,${f.length>=6?2:1}}`,"g");let x=f.match(E);return x&&x[0].length===1&&(x=x.map(w=>w+w)),x?`rgb${x.length===4?"a":""}(${x.map((w,$)=>$<3?parseInt(w,16):Math.round(parseInt(w,16)/255*1e3)/1e3).join(", ")})`:""}function i(f){const E=f.toString(16);return E.length===1?`0${E}`:E}function s(f){if(f.type)return f;if(f.charAt(0)==="#")return s(o(f));const E=f.indexOf("("),x=f.substring(0,E);if(["rgb","rgba","hsl","hsla","color"].indexOf(x)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${f}\` color.
76
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,f));let w=f.substring(E+1,f.length-1),$;if(x==="color"){if(w=w.split(" "),$=w.shift(),w.length===4&&w[3].charAt(0)==="/"&&(w[3]=w[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf($)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${$}\` color space.
77
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,$))}else w=w.split(",");return w=w.map(F=>parseFloat(F)),{type:x,values:w,colorSpace:$}}const u=f=>{const E=s(f);return E.values.slice(0,3).map((x,w)=>E.type.indexOf("hsl")!==-1&&w!==0?`${x}%`:x).join(" ")};xe.colorChannel=u;const c=(f,E)=>{try{return u(f)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),f}};xe.private_safeColorChannel=c;function d(f){const{type:E,colorSpace:x}=f;let{values:w}=f;return E.indexOf("rgb")!==-1?w=w.map(($,F)=>F<3?parseInt($,10):$):E.indexOf("hsl")!==-1&&(w[1]=`${w[1]}%`,w[2]=`${w[2]}%`),E.indexOf("color")!==-1?w=`${x} ${w.join(" ")}`:w=`${w.join(", ")}`,`${E}(${w})`}function p(f){if(f.indexOf("#")===0)return f;const{values:E}=s(f);return`#${E.map((x,w)=>i(w===3?Math.round(255*x):x)).join("")}`}function g(f){f=s(f);const{values:E}=f,x=E[0],w=E[1]/100,$=E[2]/100,F=w*Math.min($,1-$),k=(q,G=(q+x/30)%12)=>$-F*Math.max(Math.min(G-3,9-G,1),-1);let L="rgb";const V=[Math.round(k(0)*255),Math.round(k(8)*255),Math.round(k(4)*255)];return f.type==="hsla"&&(L+="a",V.push(E[3])),d({type:L,values:V})}function h(f){f=s(f);let E=f.type==="hsl"||f.type==="hsla"?s(g(f)).values:f.values;return E=E.map(x=>(f.type!=="color"&&(x/=255),x<=.03928?x/12.92:((x+.055)/1.055)**2.4)),Number((.2126*E[0]+.7152*E[1]+.0722*E[2]).toFixed(3))}function y(f,E){const x=h(f),w=h(E);return(Math.max(x,w)+.05)/(Math.min(x,w)+.05)}function v(f,E){return f=s(f),E=n(E),(f.type==="rgb"||f.type==="hsl")&&(f.type+="a"),f.type==="color"?f.values[3]=`/${E}`:f.values[3]=E,d(f)}function l(f,E,x){try{return v(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function b(f,E){if(f=s(f),E=n(E),f.type.indexOf("hsl")!==-1)f.values[2]*=1-E;else if(f.type.indexOf("rgb")!==-1||f.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)f.values[x]*=1-E;return d(f)}function T(f,E,x){try{return b(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function R(f,E){if(f=s(f),E=n(E),f.type.indexOf("hsl")!==-1)f.values[2]+=(100-f.values[2])*E;else if(f.type.indexOf("rgb")!==-1)for(let x=0;x<3;x+=1)f.values[x]+=(255-f.values[x])*E;else if(f.type.indexOf("color")!==-1)for(let x=0;x<3;x+=1)f.values[x]+=(1-f.values[x])*E;return d(f)}function S(f,E,x){try{return R(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function P(f,E=.15){return h(f)>.5?b(f,E):R(f,E)}function _(f,E,x){try{return P(f,E)}catch{return x&&process.env.NODE_ENV!=="production"&&console.warn(x),f}}function N(f,E,x,w=1){const $=(V,q)=>Math.round((V**(1/w)*(1-x)+q**(1/w)*x)**w),F=s(f),k=s(E),L=[$(F.values[0],k.values[0]),$(F.values[1],k.values[1]),$(F.values[2],k.values[2])];return d({type:"rgb",values:L})}return xe}var $e=Sp();const Zt={black:"#000",white:"#fff"},Op={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"},Tt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ct={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},St={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ot={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Pp=["mode","contrastThreshold","tonalOffset"],Ps={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:Zt.white,default:Zt.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}},Sn={text:{primary:Zt.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:Zt.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 ws(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=$e.lighten(e.main,o):t==="dark"&&(e.dark=$e.darken(e.main,i)))}function wp(e="light"){return e==="dark"?{main:Ct[200],light:Ct[50],dark:Ct[400]}:{main:Ct[700],light:Ct[400],dark:Ct[800]}}function Ip(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[500],light:Tt[300],dark:Tt[700]}}function $p(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function Ap(e="light"){return e==="dark"?{main:St[400],light:St[300],dark:St[700]}:{main:St[700],light:St[500],dark:St[900]}}function Np(e="light"){return e==="dark"?{main:Ot[400],light:Ot[300],dark:Ot[700]}:{main:Ot[800],light:Ot[500],dark:Ot[900]}}function Mp(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:"#ed6c02",light:Qt[500],dark:Qt[900]}}function kp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ce(e,Pp),i=e.primary||wp(t),s=e.secondary||Ip(t),u=e.error||$p(t),c=e.info||Ap(t),d=e.success||Np(t),p=e.warning||Mp(t);function g(l){const b=$e.getContrastRatio(l,Sn.text.primary)>=r?Sn.text.primary:Ps.text.primary;if(process.env.NODE_ENV!=="production"){const T=$e.getContrastRatio(l,b);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${b} on ${l}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
78
- `))}return b}const h=({color:l,name:b,mainShade:T=500,lightShade:R=300,darkShade:S=700})=>{if(l=C({},l),!l.main&&l[T]&&(l.main=l[T]),!l.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
79
- The color object needs to have a \`main\` property or a \`${T}\` property.`:Kt(11,b?` (${b})`:"",T));if(typeof l.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
80
- \`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
81
-
82
- Did you intend to use one of the following approaches?
83
-
84
- import { green } from "@mui/material/colors";
85
-
86
- const theme1 = createTheme({ palette: {
87
- primary: green,
88
- } });
89
-
90
- const theme2 = createTheme({ palette: {
91
- primary: { main: green[500] },
92
- } });`:Kt(12,b?` (${b})`:"",JSON.stringify(l.main)));return ws(l,"light",R,n),ws(l,"dark",S,n),l.contrastText||(l.contrastText=g(l.main)),l},y={dark:Sn,light:Ps};return process.env.NODE_ENV!=="production"&&(y[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ze(C({common:C({},Zt),mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:Op,contrastThreshold:r,getContrastText:g,augmentColor:h,tonalOffset:n},y[t]),o)}const Dp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function jp(e){return Math.round(e*1e5)/1e5}const Is={textTransform:"uppercase"},$s='"Roboto", "Helvetica", "Arial", sans-serif';function qp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=$s,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:g}=r,h=ce(r,Dp);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=o/14,v=g||(T=>`${T/d*y}rem`),l=(T,R,S,P,_)=>C({fontFamily:n,fontWeight:T,fontSize:v(R),lineHeight:S},n===$s?{letterSpacing:`${jp(P/R)}em`}:{},_,p),b={h1:l(i,96,1.167,-1.5),h2:l(i,60,1.2,-.5),h3:l(s,48,1.167,0),h4:l(s,34,1.235,.25),h5:l(s,24,1.334,0),h6:l(u,20,1.6,.15),subtitle1:l(s,16,1.75,.15),subtitle2:l(u,14,1.57,.1),body1:l(s,16,1.5,.15),body2:l(s,14,1.43,.15),button:l(u,14,1.75,.4,Is),caption:l(s,12,1.66,.4),overline:l(s,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ze(C({htmlFontSize:d,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:c},b),h,{clone:!1})}const Lp=.2,Fp=.14,Bp=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Lp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bp})`].join(",")}const Vp=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],zp=["duration","easing","delay"],Wp={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)"},Up={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function As(e){return`${Math.round(e)}ms`}function Gp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Kp(e){const t=C({},Wp,e.easing),r=C({},Up,e.duration);return C({getAutoHeightDuration:Gp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:u=t.easeInOut,delay:c=0}=i,d=ce(i,zp);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",g=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(s)&&!p(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!g(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
93
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof s=="string"?s:As(s)} ${u} ${typeof c=="string"?c:As(c)}`).join(",")}},e,{easing:t,duration:r})}const Hp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Xp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=ce(e,Yp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Kt(18));const u=kp(n),c=Es(e);let d=Ze(c,{mixins:Ep(c.breakpoints,r),palette:u,shadows:Vp.slice(),typography:qp(u,i),transitions:Kp(o),zIndex:C({},Hp)});if(d=Ze(d,s),d=t.reduce((p,g)=>Ze(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(h,y)=>{let v;for(v in h){const l=h[v];if(p.indexOf(v)!==-1&&Object.keys(l).length>0){if(process.env.NODE_ENV!=="production"){const b=Ie("",v);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:l}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
- `))}h[v]={}}}};Object.keys(d.components).forEach(h=>{const y=d.components[h].styleOverrides;y&&h.indexOf("Mui")===0&&g(y,h)})}return d.unstable_sxConfig=C({},Jt,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(g){return jr({sx:g,theme:this})},d}const Ns=Xp(),Ms="$$material";function Jp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>Jp(e)&&e!=="classes",ve=_p({themeId:Ms,defaultTheme:Ns,rootShouldForwardProp:On});function ks(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ks(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ks(e))&&(n&&(n+=" "),n+=t);return n}function ke(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const u=t(s);u!==""&&i.push(u),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function qr(e,t){const r=C({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=C({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=C({},i),Object.keys(o).forEach(s=>{r[n][s]=qr(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Zp=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function Qp(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?qr(o.defaultProps,n):!o.styleOverrides&&!o.variants?qr(o,n):n}function eh({props:e,name:t}){const r=O.useContext(Zp);return Qp({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Ne(e){return eh(e)}const Qe=O.createContext({});process.env.NODE_ENV!=="production"&&(Qe.displayName="ListContext");const th=a.oneOfType([a.func,a.object]);function er(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function rh(e){const{prototype:t={}}=e;return!!t.isReactComponent}function nh(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let u;return typeof i=="function"&&!rh(i)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pn=er(a.elementType,nh);function Lr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ye(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Lr(r,t)})},e)}const Pt=typeof window<"u"?O.useLayoutEffect:O.useEffect;function pt(e){const t=O.useRef(e);return Pt(()=>{t.current=e}),O.useRef((...r)=>(0,t.current)(...r)).current}const Ds={};function oh(e,t){const r=O.useRef(Ds);return r.current===Ds&&(r.current=e(t)),r}const ih=[];function ah(e){O.useEffect(e,ih)}class Fr{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Fr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function sh(){const e=oh(Fr.create).current;return ah(e.disposeEffect),e}let Br=!0,wn=!1;const uh=new Fr,ch={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 lh(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&ch[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function dh(e){e.metaKey||e.altKey||e.ctrlKey||(Br=!0)}function In(){Br=!1}function fh(){this.visibilityState==="hidden"&&wn&&(Br=!0)}function ph(e){e.addEventListener("keydown",dh,!0),e.addEventListener("mousedown",In,!0),e.addEventListener("pointerdown",In,!0),e.addEventListener("touchstart",In,!0),e.addEventListener("visibilitychange",fh,!0)}function hh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Br||lh(t)}function $n(){const e=O.useCallback(o=>{o!=null&&ph(o.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(wn=!0,uh.start(100,()=>{wn=!1}),t.current=!1,!0):!1}function n(o){return hh(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},An(e,t)}function js(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,An(e,t)}const qs={disabled:!1};var gh=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.shape({enter:a.number,exit:a.number,appear:a.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&a.oneOfType([a.string,a.shape({enter:a.string,exit:a.string,active:a.string}),a.shape({enter:a.string,enterDone:a.string,enterActive:a.string,exit:a.string,exitDone:a.string,exitActive:a.string})]);const Vr=de.createContext(null);var mh=function(t){return t.scrollTop},tr="unmounted",ht="exited",gt="entering",wt="entered",Nn="exiting",nt=function(e){js(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,u=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?u?(c=ht,i.appearStatus=gt):c=wt:n.unmountOnExit||n.mountOnEnter?c=tr:c=ht,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===tr?{status:ht}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==gt&&s!==wt&&(i=gt):(s===gt||s===wt)&&(i=Nn)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,u;return i=s=u=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,u=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:u}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===gt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ft.findDOMNode(this);s&&mh(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ht&&this.setState({status:tr})},r.performEnter=function(o){var i=this,s=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[Ft.findDOMNode(this),u],d=c[0],p=c[1],g=this.getTimeouts(),h=u?g.appear:g.enter;if(!o&&!s||qs.disabled){this.safeSetState({status:wt},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:gt},function(){i.props.onEntering(d,p),i.onTransitionEnd(h,function(){i.safeSetState({status:wt},function(){i.props.onEntered(d,p)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:Ft.findDOMNode(this);if(!i||qs.disabled){this.safeSetState({status:ht},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Nn},function(){o.props.onExiting(u),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ht},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ft.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],p=c[1];this.props.addEndListener(d,p)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===tr)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var u=ce(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(Vr.Provider,{value:null},typeof s=="function"?s(o,u):de.cloneElement(de.Children.only(s),u))},t}(de.Component);nt.contextType=Vr,nt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:a.shape({current:typeof Element>"u"?a.any:function(e,t,r,n,o,i){var s=e[t];return a.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:a.oneOfType([a.func.isRequired,a.element.isRequired]).isRequired,in:a.bool,mountOnEnter:a.bool,unmountOnExit:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,timeout:function(t){var r=gh;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:a.func,onEnter:a.func,onEntering:a.func,onEntered:a.func,onExit:a.func,onExiting:a.func,onExited:a.func}:{};function It(){}nt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:It,onEntering:It,onEntered:It,onExit:It,onExiting:It,onExited:It},nt.UNMOUNTED=tr,nt.EXITED=ht,nt.ENTERING=gt,nt.ENTERED=wt,nt.EXITING=Nn;function vh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mn(e,t){var r=function(i){return t&&de.isValidElement(i)?t(i):i},n=Object.create(null);return e&&de.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function yh(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,u={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var d=n[c][s];u[n[c][s]]=r(d)}u[c]=r(c)}for(s=0;s<o.length;s++)u[o[s]]=r(o[s]);return u}function mt(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bh(e,t){return Mn(e.children,function(r){return de.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:mt(r,"appear",e),enter:mt(r,"enter",e),exit:mt(r,"exit",e)})})}function _h(e,t,r){var n=Mn(e.children),o=yh(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(de.isValidElement(s)){var u=i in t,c=i in n,d=t[i],p=de.isValidElement(d)&&!d.props.in;c&&(!u||p)?o[i]=de.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:mt(s,"exit",e),enter:mt(s,"enter",e)}):!c&&u&&!p?o[i]=de.cloneElement(s,{in:!1}):c&&u&&de.isValidElement(d)&&(o[i]=de.cloneElement(s,{onExited:r.bind(null,s),in:d.props.in,exit:mt(s,"exit",e),enter:mt(s,"enter",e)}))}}),o}var xh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Eh={component:"div",childFactory:function(t){return t}},kn=function(e){js(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(vh(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,u=i.handleExited,c=i.firstRender;return{children:c?bh(o,u):_h(o,s,u),firstRender:!1}},r.handleExited=function(o,i){var s=Mn(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(u){var c=C({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,u=ce(o,["component","childFactory"]),c=this.state.contextValue,d=xh(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,i===null?de.createElement(Vr.Provider,{value:c},d):de.createElement(Vr.Provider,{value:c},de.createElement(i,u,d))},t}(de.Component);kn.propTypes=process.env.NODE_ENV!=="production"?{component:a.any,children:a.node,appear:a.bool,enter:a.bool,exit:a.bool,childFactory:a.func}:{},kn.defaultProps=Eh;function Ls(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:u,onExited:c,timeout:d}=e,[p,g]=O.useState(!1),h=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=ne(r.child,p&&r.childLeaving,n&&r.childPulsate);return!u&&!p&&g(!0),O.useEffect(()=>{if(!u&&c!=null){const l=setTimeout(c,d);return()=>{clearTimeout(l)}}},[c,u,d]),M.jsx("span",{className:h,style:y,children:M.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(Ls.propTypes={classes:a.object.isRequired,className:a.string,in:a.bool,onExited:a.func,pulsate:a.bool,rippleSize:a.number,rippleX:a.number,rippleY:a.number,timeout:a.number.isRequired});function Oe(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ie(e,o,r)}),n}const Ge=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Th=["center","classes","className"];let zr=e=>e,Fs,Bs,Vs,zs;const Dn=550,Rh=80,Ch=yt.keyframes(Fs||(Fs=zr`
95
- 0% {
96
- transform: scale(0);
97
- opacity: 0.1;
98
- }
99
-
100
- 100% {
101
- transform: scale(1);
102
- opacity: 0.3;
103
- }
104
- `)),Sh=yt.keyframes(Bs||(Bs=zr`
105
- 0% {
106
- opacity: 1;
107
- }
108
-
109
- 100% {
110
- opacity: 0;
111
- }
112
- `)),Oh=yt.keyframes(Vs||(Vs=zr`
113
- 0% {
114
- transform: scale(1);
115
- }
116
-
117
- 50% {
118
- transform: scale(0.92);
119
- }
120
-
121
- 100% {
122
- transform: scale(1);
123
- }
124
- `)),Ph=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wh=ve(Ls,{name:"MuiTouchRipple",slot:"Ripple"})(zs||(zs=zr`
125
- opacity: 0;
126
- position: absolute;
127
-
128
- &.${0} {
129
- opacity: 0.3;
130
- transform: scale(1);
131
- animation-name: ${0};
132
- animation-duration: ${0}ms;
133
- animation-timing-function: ${0};
134
- }
135
-
136
- &.${0} {
137
- animation-duration: ${0}ms;
138
- }
139
-
140
- & .${0} {
141
- opacity: 1;
142
- display: block;
143
- width: 100%;
144
- height: 100%;
145
- border-radius: 50%;
146
- background-color: currentColor;
147
- }
148
-
149
- & .${0} {
150
- opacity: 0;
151
- animation-name: ${0};
152
- animation-duration: ${0}ms;
153
- animation-timing-function: ${0};
154
- }
155
-
156
- & .${0} {
157
- position: absolute;
158
- /* @noflip */
159
- left: 0px;
160
- top: 0;
161
- animation-name: ${0};
162
- animation-duration: 2500ms;
163
- animation-timing-function: ${0};
164
- animation-iteration-count: infinite;
165
- animation-delay: 200ms;
166
- }
167
- `),Ge.rippleVisible,Ch,Dn,({theme:e})=>e.transitions.easing.easeInOut,Ge.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ge.child,Ge.childLeaving,Sh,Dn,({theme:e})=>e.transitions.easing.easeInOut,Ge.childPulsate,Oh,({theme:e})=>e.transitions.easing.easeInOut),Ws=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=n,u=ce(n,Th),[c,d]=O.useState([]),p=O.useRef(0),g=O.useRef(null);O.useEffect(()=>{g.current&&(g.current(),g.current=null)},[c]);const h=O.useRef(!1),y=sh(),v=O.useRef(null),l=O.useRef(null),b=O.useCallback(P=>{const{pulsate:_,rippleX:N,rippleY:f,rippleSize:E,cb:x}=P;d(w=>[...w,M.jsx(wh,{classes:{ripple:ne(i.ripple,Ge.ripple),rippleVisible:ne(i.rippleVisible,Ge.rippleVisible),ripplePulsate:ne(i.ripplePulsate,Ge.ripplePulsate),child:ne(i.child,Ge.child),childLeaving:ne(i.childLeaving,Ge.childLeaving),childPulsate:ne(i.childPulsate,Ge.childPulsate)},timeout:Dn,pulsate:_,rippleX:N,rippleY:f,rippleSize:E},p.current)]),p.current+=1,g.current=x},[i]),T=O.useCallback((P={},_={},N=()=>{})=>{const{pulsate:f=!1,center:E=o||_.pulsate,fakeElement:x=!1}=_;if((P==null?void 0:P.type)==="mousedown"&&h.current){h.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(h.current=!0);const w=x?null:l.current,$=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,k,L;if(E||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)F=Math.round($.width/2),k=Math.round($.height/2);else{const{clientX:V,clientY:q}=P.touches&&P.touches.length>0?P.touches[0]:P;F=Math.round(V-$.left),k=Math.round(q-$.top)}if(E)L=Math.sqrt((2*$.width**2+$.height**2)/3),L%2===0&&(L+=1);else{const V=Math.max(Math.abs((w?w.clientWidth:0)-F),F)*2+2,q=Math.max(Math.abs((w?w.clientHeight:0)-k),k)*2+2;L=Math.sqrt(V**2+q**2)}P!=null&&P.touches?v.current===null&&(v.current=()=>{b({pulsate:f,rippleX:F,rippleY:k,rippleSize:L,cb:N})},y.start(Rh,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:f,rippleX:F,rippleY:k,rippleSize:L,cb:N})},[o,b,y]),R=O.useCallback(()=>{T({},{pulsate:!0})},[T]),S=O.useCallback((P,_)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{S(P,_)});return}v.current=null,d(N=>N.length>0?N.slice(1):N),g.current=_},[y]);return O.useImperativeHandle(r,()=>({pulsate:R,start:T,stop:S}),[R,T,S]),M.jsx(Ph,C({className:ne(Ge.root,i.root,s),ref:l},u,{children:M.jsx(kn,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Ws.propTypes={center:a.bool,classes:a.object,className:a.string});function Ih(e){return Ie("MuiButtonBase",e)}const $h=Oe("MuiButtonBase",["root","disabled","focusVisible"]),Ah=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Nh=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,s=ke({root:["root",t&&"disabled",r&&"focusVisible"]},Ih,o);return r&&n&&(s.root+=` ${n}`),s},Mh=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${$h.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Wr=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:u,component:c="button",disabled:d=!1,disableRipple:p=!1,disableTouchRipple:g=!1,focusRipple:h=!1,LinkComponent:y="a",onBlur:v,onClick:l,onContextMenu:b,onDragLeave:T,onFocus:R,onFocusVisible:S,onKeyDown:P,onKeyUp:_,onMouseDown:N,onMouseLeave:f,onMouseUp:E,onTouchEnd:x,onTouchMove:w,onTouchStart:$,tabIndex:F=0,TouchRippleProps:k,touchRippleRef:L,type:V}=n,q=ce(n,Ah),G=O.useRef(null),ee=O.useRef(null),Ae=Ye(ee,L),{isFocusVisibleRef:I,onFocus:D,onBlur:Q,ref:X}=$n(),[z,H]=O.useState(!1);d&&z&&H(!1),O.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),G.current.focus()}}),[]);const[K,Y]=O.useState(!1);O.useEffect(()=>{Y(!0)},[]);const W=K&&!p&&!d;O.useEffect(()=>{z&&h&&!p&&K&&ee.current.pulsate()},[p,h,z,K]);function U(te,pr,Ra=g){return pt(an=>(pr&&pr(an),!Ra&&ee.current&&ee.current[te](an),!0))}const J=U("start",N),ye=U("stop",b),j=U("stop",T),be=U("stop",E),ge=U("stop",te=>{z&&te.preventDefault(),f&&f(te)}),Pe=U("start",$),ze=U("stop",x),at=U("stop",w),kt=U("stop",te=>{Q(te),I.current===!1&&H(!1),v&&v(te)},!1),lt=pt(te=>{G.current||(G.current=te.currentTarget),D(te),I.current===!0&&(H(!0),S&&S(te)),R&&R(te)}),cr=()=>{const te=G.current;return c&&c!=="button"&&!(te.tagName==="A"&&te.href)},lr=O.useRef(!1),dr=pt(te=>{h&&!lr.current&&z&&ee.current&&te.key===" "&&(lr.current=!0,ee.current.stop(te,()=>{ee.current.start(te)})),te.target===te.currentTarget&&cr()&&te.key===" "&&te.preventDefault(),P&&P(te),te.target===te.currentTarget&&cr()&&te.key==="Enter"&&!d&&(te.preventDefault(),l&&l(te))}),Ea=pt(te=>{h&&te.key===" "&&ee.current&&z&&!te.defaultPrevented&&(lr.current=!1,ee.current.stop(te,()=>{ee.current.pulsate(te)})),_&&_(te),l&&te.target===te.currentTarget&&cr()&&te.key===" "&&!te.defaultPrevented&&l(te)});let Dt=c;Dt==="button"&&(q.href||q.to)&&(Dt=y);const dt={};Dt==="button"?(dt.type=V===void 0?"button":V,dt.disabled=d):(!q.href&&!q.to&&(dt.role="button"),d&&(dt["aria-disabled"]=d));const on=Ye(r,X,G);process.env.NODE_ENV!=="production"&&O.useEffect(()=>{W&&!ee.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
168
- `))},[W]);const fr=C({},n,{centerRipple:i,component:c,disabled:d,disableRipple:p,disableTouchRipple:g,focusRipple:h,tabIndex:F,focusVisible:z}),Ta=Nh(fr);return M.jsxs(Mh,C({as:Dt,className:ne(Ta.root,u),ownerState:fr,onBlur:kt,onClick:l,onContextMenu:ye,onFocus:lt,onKeyDown:dr,onKeyUp:Ea,onMouseDown:J,onMouseLeave:ge,onMouseUp:be,onDragLeave:j,onTouchEnd:ze,onTouchMove:at,onTouchStart:Pe,ref:on,tabIndex:d?-1:F,type:V},dt,q,{children:[s,W?M.jsx(Ws,C({ref:Ae,center:i},k)):null]}))});process.env.NODE_ENV!=="production"&&(Wr.propTypes={action:th,centerRipple:a.bool,children:a.node,classes:a.object,className:a.string,component:Pn,disabled:a.bool,disableRipple:a.bool,disableTouchRipple:a.bool,focusRipple:a.bool,focusVisibleClassName:a.string,href:a.any,LinkComponent:a.elementType,onBlur:a.func,onClick:a.func,onContextMenu:a.func,onDragLeave:a.func,onFocus:a.func,onFocusVisible:a.func,onKeyDown:a.func,onKeyUp:a.func,onMouseDown:a.func,onMouseLeave:a.func,onMouseUp:a.func,onTouchEnd:a.func,onTouchMove:a.func,onTouchStart:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,TouchRippleProps:a.object,touchRippleRef:a.oneOfType([a.func,a.shape({current:a.shape({pulsate:a.func.isRequired,start:a.func.isRequired,stop:a.func.isRequired})})]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string])});const Us=Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function kh(e){return Ie("MuiListItemIcon",e)}const Gs=Oe("MuiListItemIcon",["root","alignItemsFlexStart"]),Dh=["className"],jh=e=>{const{alignItems:t,classes:r}=e;return ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},kh,r)},qh=ve("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>C({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Ks=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemIcon"}),{className:o}=n,i=ce(n,Dh),s=O.useContext(Qe),u=C({},n,{alignItems:s.alignItems}),c=jh(u);return M.jsx(qh,C({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(Ks.propTypes={children:a.node,classes:a.object,className:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Lh(e){return Ie("MuiTypography",e)}Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Fh=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bh=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e,u={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ke(u,Lh,s)},Vh=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${fe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Hs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zh={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wh=e=>zh[e]||e,et=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiTypography"}),o=Wh(n.color),i=Ts(C({},n,{color:o})),{align:s="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:g=!1,variant:h="body1",variantMapping:y=Hs}=i,v=ce(i,Fh),l=C({},i,{align:s,color:o,className:u,component:c,gutterBottom:d,noWrap:p,paragraph:g,variant:h,variantMapping:y}),b=c||(g?"p":y[h]||Hs[h])||"span",T=Bh(l);return M.jsx(Vh,C({as:b,ref:r,ownerState:l,className:ne(T.root,u)},v))});process.env.NODE_ENV!=="production"&&(et.propTypes={align:a.oneOf(["center","inherit","justify","left","right"]),children:a.node,classes:a.object,className:a.string,component:a.elementType,gutterBottom:a.bool,noWrap:a.bool,paragraph:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string]),variantMapping:a.object});function Uh(e){return Ie("MuiListItemText",e)}const Ur=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Gh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Kh=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return ke({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Uh,t)},Hh=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ur.primary}`]:t.primary},{[`& .${Ur.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>C({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),jn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:u=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:g}=n,h=ce(n,Gh),{dense:y}=O.useContext(Qe);let v=c??o,l=p;const b=C({},n,{disableTypography:s,inset:u,primary:!!v,secondary:!!l,dense:y}),T=Kh(b);return v!=null&&v.type!==et&&!s&&(v=M.jsx(et,C({variant:y?"body2":"body1",className:T.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),l!=null&&l.type!==et&&!s&&(l=M.jsx(et,C({variant:"body2",className:T.secondary,color:"text.secondary",display:"block"},g,{children:l}))),M.jsxs(Hh,C({className:ne(T.root,i),ownerState:b,ref:r},h,{children:[v,l]}))});process.env.NODE_ENV!=="production"&&(jn.propTypes={children:a.node,classes:a.object,className:a.string,disableTypography:a.bool,inset:a.bool,primary:a.node,primaryTypographyProps:a.object,secondary:a.node,secondaryTypographyProps:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Yh(e){return Ie("MuiMenuItem",e)}const rr=Oe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jh=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Zh=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,c=ke({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Yh,s);return C({},s,c)},Qh=ve(Wr,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Jh})(({theme:e,ownerState:t})=>C({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Us.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Us.inset}`]:{marginLeft:52},[`& .${Ur.root}`]:{marginTop:0,marginBottom:0},[`& .${Ur.inset}`]:{paddingLeft:36},[`& .${Gs.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&C({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gs.root} svg`]:{fontSize:"1.25rem"}}))),Ys=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:g,className:h}=n,y=ce(n,Xh),v=O.useContext(Qe),l=O.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),b=O.useRef(null);Pt(()=>{o&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const T=C({},n,{dense:l.dense,divider:u,disableGutters:c}),R=Zh(n),S=Ye(b,r);let P;return n.disabled||(P=g!==void 0?g:-1),M.jsx(Qe.Provider,{value:l,children:M.jsx(Qh,C({ref:S,role:p,tabIndex:P,component:i,focusVisibleClassName:ne(R.focusVisible,d),className:ne(R.root,h)},y,{ownerState:T,classes:R}))})});process.env.NODE_ENV!=="production"&&(Ys.propTypes={autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disabled:a.bool,disableGutters:a.bool,divider:a.bool,focusVisibleClassName:a.string,role:a.string,selected:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number});var nr={},qn={};function eg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Xs(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let u;const c=i.type;return typeof c=="function"&&!eg(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Gr=er(a.element,Xs);Gr.isRequired=er(a.element.isRequired,Xs);const tg="exact-prop: ​";function Js(e){return process.env.NODE_ENV==="production"?e:C({},e,{[tg]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Zs(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Ln(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function rg(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function ng(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const u=o||"<<anonymous>>",c=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${c}\` of \`${u}\` is deprecated. ${t}`):null}}function Fn(e,t){var r,n;return O.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function ot(e){return e&&e.ownerDocument||document}function Kr(e){return ot(e).defaultView||window}function og(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?C({},t.propTypes):null;return o=>(i,s,u,c,d,...p)=>{const g=d||s,h=r==null?void 0:r[g];if(h){const y=h(i,s,u,c,d,...p);if(y)return y}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${g}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}let Qs=0;function ig(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(Qs+=1,r(`mui-${Qs}`))},[t]),n}const eu=O.useId;function tu(e){if(eu!==void 0){const t=eu();return e??t}return ig(e)}function ag(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function sg({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=O.useRef(e!==void 0),[i,s]=O.useState(t),u=o?e:i;if(process.env.NODE_ENV!=="production"){O.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
169
- `))},[n,r,e]);const{current:d}=O.useRef(t);O.useEffect(()=>{!o&&!Object.is(d,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
170
- `))},[JSON.stringify(t)])}const c=O.useCallback(d=>{o||s(d)},[]);return[u,c]}function ug(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function cg(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function lg(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const dg=Number.isInteger||lg;function ru(e,t,r,n){const o=e[t];if(o==null||!dg(o)){const i=cg(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function nu(e,t,...r){return e[t]===void 0?null:ru(e,t,...r)}function Bn(){return null}nu.isRequired=ru,Bn.isRequired=Bn;const fg=process.env.NODE_ENV==="production"?Bn:nu;function Vn(e){return typeof e=="string"}function pg(e,t,r){return e===void 0||Vn(e)?t:C({},t,{ownerState:C({},t.ownerState,r)})}function ou(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function iu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function hg(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=ne(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v=C({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),l=C({},r,o,n);return y.length>0&&(l.className=y),Object.keys(v).length>0&&(l.style=v),{props:l,internalRef:void 0}}const s=ou(C({},o,n)),u=iu(n),c=iu(o),d=t(s),p=ne(d==null?void 0:d.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),g=C({},d==null?void 0:d.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=C({},d,r,c,u);return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:d.ref}}function gg(e,t,r){return typeof e=="function"?e(t,r):e}const mg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function au(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=ce(e,mg),u=i?{}:gg(n,o),{props:c,internalRef:d}=hg(C({},s,{externalSlotProps:u})),p=Ye(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return pg(r,C({},c,{ref:p}),o)}function zn(e){if(parseInt(O.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}function vg(e){return Ie("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(r)}`]};return ke(o,vg,n)},_g=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${fe(r.color)}`],t[`fontSize${fe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,u,c,d,p,g,h,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(g=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?g:{action:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Hr=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:h="0 0 24 24"}=n,y=ce(n,yg),v=O.isValidElement(o)&&o.type==="svg",l=C({},n,{color:s,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:v}),b={};p||(b.viewBox=h);const T=bg(l);return M.jsxs(_g,C({as:u,className:ne(T.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:r},b,y,v&&o.props,{ownerState:l,children:[v?o.props.children:o,g?M.jsx("title",{children:g}):null]}))});process.env.NODE_ENV!=="production"&&(Hr.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),htmlColor:a.string,inheritViewBox:a.bool,shapeRendering:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),titleAccess:a.string,viewBox:a.string}),Hr.muiName="SvgIcon";function xg(e,t){function r(n,o){return M.jsx(Hr,C({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Hr.muiName,O.memo(O.forwardRef(r))}const Eg=tt(Object.freeze(Object.defineProperty({__proto__:null,capitalize:fe,createChainedFunction:Ln,createSvgIcon:xg,debounce:rg,deprecatedPropType:ng,isMuiElement:Fn,ownerDocument:ot,ownerWindow:Kr,requirePropFactory:og,setRef:Lr,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
171
- `)),Ss.configure(e)}},unstable_useEnhancedEffect:Pt,unstable_useId:tu,unsupportedProp:ag,useControlled:sg,useEventCallback:pt,useForkRef:Ye,useIsFocusVisible:$n},Symbol.toStringTag,{value:"Module"})));var su;function Tg(){return su||(su=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Eg}(qn)),qn}var uu;function Rg(){if(uu)return nr;uu=1;var e=un();Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var t=e(Tg()),r=os();return nr.default=(0,t.default)((0,r.jsx)("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),nr}var Cg=Rg();const Sg=gr(Cg),cu={de:{"mirador-dl-plugin":{close:"Schließen",download:"Download",other_download:"Andere Download-Optionen",whole_image:"Gesamtes Bild ({{width}} x {{height}}px)",zoomed_region:"Aktueller Bildausschnitt ({{width}} x {{height}}px)"}},en:{"mirador-dl-plugin":{close:"Close",download:"Download",other_download:"Other download options",whole_image:"Whole image ({{width}} x {{height}}px)",zoomed_region:"Zoomed region ({{width}} x {{height}}px)"}},et:{"mirador-dl-plugin":{close:"Sulge",download:"Lae alla",other_download:"Teised allalaadimise valikud",whole_image:"Kogu pilt ({{width}} x {{height}}px)",zoomed_region:"Suurendatud piirkond ({{width}} x {{height}}px)"}},fr:{"mirador-dl-plugin":{close:"Fermer",download:"Télécharger",other_download:"Autres options de téléchargement",whole_image:"Image entière ({{width}} x {{height}}px)",zoomed_region:"Région zoomée ({{width}} x {{height}}px)"}}},Og=(e={},t)=>t.type==="OPEN_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:t.dialogType}}:t.type==="CLOSE_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:null}}:e,Pg=(e,{windowId:t})=>({openDownloadDialog:()=>e({type:"OPEN_WINDOW_DIALOG",windowId:t,dialogType:"download"})});function lu({handleClose:e=()=>{},openDownloadDialog:t=()=>{}}){const r=de.useCallback(()=>{t(),e()},[e,t]),{t:n}=He.useTranslation();return M.jsxs(Ys,{onClick:r,children:[M.jsx(Ks,{children:M.jsx(Sg,{})}),M.jsx(jn,{primaryTypographyProps:{variant:"body1"},children:n("mirador-dl-plugin.download")})]})}lu.propTypes={handleClose:a.func,openDownloadDialog:a.func};const du={target:"WindowTopBarPluginMenu",mode:"add",name:"MiradorDownloadPlugin",component:lu,config:{translations:cu},mapDispatchToProps:Pg,reducers:{windowDialogs:Og}};function wg(e){const t=ot(e);return t.body===e?Kr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function or(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fu(e){return parseInt(Kr(e).getComputedStyle(e).paddingRight,10)||0}function Ig(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function pu(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,s=>{const u=i.indexOf(s)===-1,c=!Ig(s);u&&c&&or(s,o)})}function Wn(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function $g(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(wg(n)){const s=ug(ot(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${fu(n)+s}px`;const u=ot(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${fu(c)+s}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=ot(n).body;else{const s=n.parentElement,u=Kr(n);i=(s==null?void 0:s.nodeName)==="HTML"&&u.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:s,property:u})=>{i?s.style.setProperty(u,i):s.style.removeProperty(u)})}}function Ag(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Ng{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&or(t.modalRef,!1);const o=Ag(r);pu(r,t.mount,t.modalRef,o,!0);const i=Wn(this.containers,s=>s.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Wn(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=$g(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Wn(this.containers,s=>s.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&or(t.modalRef,r),pu(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&or(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Mg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kg(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Dg(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function jg(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Dg(e))}function qg(e){const t=[],r=[];return Array.from(e.querySelectorAll(Mg)).forEach((n,o)=>{const i=kg(n);i===-1||!jg(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function Lg(){return!0}function Yr(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=qg,isEnabled:s=Lg,open:u}=e,c=O.useRef(!1),d=O.useRef(null),p=O.useRef(null),g=O.useRef(null),h=O.useRef(null),y=O.useRef(!1),v=O.useRef(null),l=Ye(zn(t),v),b=O.useRef(null);O.useEffect(()=>{!u||!v.current||(y.current=!r)},[r,u]),O.useEffect(()=>{if(!u||!v.current)return;const S=ot(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
172
- `)),v.current.setAttribute("tabIndex","-1")),y.current&&v.current.focus()),()=>{o||(g.current&&g.current.focus&&(c.current=!0,g.current.focus()),g.current=null)}},[u]),O.useEffect(()=>{if(!u||!v.current)return;const S=ot(v.current),P=f=>{b.current=f,!(n||!s()||f.key!=="Tab")&&S.activeElement===v.current&&f.shiftKey&&(c.current=!0,p.current&&p.current.focus())},_=()=>{const f=v.current;if(f===null)return;if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(f.contains(S.activeElement)||n&&S.activeElement!==d.current&&S.activeElement!==p.current)return;if(S.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!y.current)return;let E=[];if((S.activeElement===d.current||S.activeElement===p.current)&&(E=i(v.current)),E.length>0){var x,w;const $=!!((x=b.current)!=null&&x.shiftKey&&((w=b.current)==null?void 0:w.key)==="Tab"),F=E[0],k=E[E.length-1];typeof F!="string"&&typeof k!="string"&&($?k.focus():F.focus())}else f.focus()};S.addEventListener("focusin",_),S.addEventListener("keydown",P,!0);const N=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(N),S.removeEventListener("focusin",_),S.removeEventListener("keydown",P,!0)}},[r,n,o,s,u,i]);const T=S=>{g.current===null&&(g.current=S.relatedTarget),y.current=!0,h.current=S.target;const P=t.props.onFocus;P&&P(S)},R=S=>{g.current===null&&(g.current=S.relatedTarget),y.current=!0};return M.jsxs(O.Fragment,{children:[M.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:d,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:l,onFocus:T}),M.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Yr.propTypes={children:Gr,disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableRestoreFocus:a.bool,getTabbable:a.func,isEnabled:a.func,open:a.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Yr.propTypes=Js(Yr.propTypes));function Fg(e){return typeof e=="function"?e():e}const Xr=O.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[s,u]=O.useState(null),c=Ye(O.isValidElement(n)?zn(n):null,r);if(Pt(()=>{i||u(Fg(o)||document.body)},[o,i]),Pt(()=>{if(s&&!i)return Lr(r,s),()=>{Lr(r,null)}},[r,s,i]),i){if(O.isValidElement(n)){const d={ref:c};return O.cloneElement(n,d)}return M.jsx(O.Fragment,{children:n})}return M.jsx(O.Fragment,{children:s&&bd.createPortal(n,s)})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:a.node,container:a.oneOfType([Zs,a.func]),disablePortal:a.bool}),process.env.NODE_ENV!=="production"&&(Xr.propTypes=Js(Xr.propTypes));function Un(){const e=yt.useTheme(Ns);return process.env.NODE_ENV!=="production"&&O.useDebugValue(e),e[Ms]||e}const Bg=e=>e.scrollTop;function hu(e,t){var r,n;const{timeout:o,easing:i,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:s.transitionDelay}}const Vg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zg={entering:{opacity:1},entered:{opacity:1}},Gn=O.forwardRef(function(t,r){const n=Un(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:u,easing:c,in:d,onEnter:p,onEntered:g,onEntering:h,onExit:y,onExited:v,onExiting:l,style:b,timeout:T=o,TransitionComponent:R=nt}=t,S=ce(t,Vg),P=O.useRef(null),_=Ye(P,zn(u),r),N=L=>V=>{if(L){const q=P.current;V===void 0?L(q):L(q,V)}},f=N(h),E=N((L,V)=>{Bg(L);const q=hu({style:b,timeout:T,easing:c},{mode:"enter"});L.style.webkitTransition=n.transitions.create("opacity",q),L.style.transition=n.transitions.create("opacity",q),p&&p(L,V)}),x=N(g),w=N(l),$=N(L=>{const V=hu({style:b,timeout:T,easing:c},{mode:"exit"});L.style.webkitTransition=n.transitions.create("opacity",V),L.style.transition=n.transitions.create("opacity",V),y&&y(L)}),F=N(v),k=L=>{i&&i(P.current,L)};return M.jsx(R,C({appear:s,in:d,nodeRef:P,onEnter:E,onEntered:x,onEntering:f,onExit:$,onExited:F,onExiting:w,addEndListener:k,timeout:T},S,{children:(L,V)=>O.cloneElement(u,C({style:C({opacity:0,visibility:L==="exited"&&!d?"hidden":void 0},zg[L],b,u.props.style),ref:_},V))}))});process.env.NODE_ENV!=="production"&&(Gn.propTypes={addEndListener:a.func,appear:a.bool,children:Gr.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function Wg(e){return Ie("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const Ug=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Gg=e=>{const{classes:t,invisible:r}=e;return ke({root:["root",r&&"invisible"]},Wg,t)},Kg=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>C({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"},e.invisible&&{backgroundColor:"transparent"})),Kn=O.forwardRef(function(t,r){var n,o,i;const s=Ne({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:p={},componentsProps:g={},invisible:h=!1,open:y,slotProps:v={},slots:l={},TransitionComponent:b=Gn,transitionDuration:T}=s,R=ce(s,Ug),S=C({},s,{component:d,invisible:h}),P=Gg(S),_=(n=v.root)!=null?n:g.root;return M.jsx(b,C({in:y,timeout:T},R,{children:M.jsx(Kg,C({"aria-hidden":!0},_,{as:(o=(i=l.root)!=null?i:p.Root)!=null?o:d,className:ne(P.root,c,_==null?void 0:_.className),ownerState:C({},S,_==null?void 0:_.ownerState),classes:P,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(Kn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),invisible:a.bool,open:a.bool.isRequired,slotProps:a.shape({root:a.object}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function Hg(e){return typeof e=="function"?e():e}function Yg(e){return e?e.props.hasOwnProperty("in"):!1}const Xg=new Ng;function Jg(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Xg,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:u,children:c,onClose:d,open:p,rootRef:g}=e,h=O.useRef({}),y=O.useRef(null),v=O.useRef(null),l=Ye(v,g),[b,T]=O.useState(!p),R=Yg(c);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const P=()=>ot(y.current),_=()=>(h.current.modalRef=v.current,h.current.mount=y.current,h.current),N=()=>{o.mount(_(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},f=pt(()=>{const q=Hg(t)||P().body;o.add(_(),q),v.current&&N()}),E=O.useCallback(()=>o.isTopModal(_()),[o]),x=pt(q=>{y.current=q,q&&(p&&E()?N():v.current&&or(v.current,S))}),w=O.useCallback(()=>{o.remove(_(),S)},[S,o]);O.useEffect(()=>()=>{w()},[w]),O.useEffect(()=>{p?f():(!R||!i)&&w()},[p,w,R,i,f]);const $=q=>G=>{var ee;(ee=q.onKeyDown)==null||ee.call(q,G),!(G.key!=="Escape"||G.which===229||!E())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},F=q=>G=>{var ee;(ee=q.onClick)==null||ee.call(q,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(q={})=>{const G=ou(e);delete G.onTransitionEnter,delete G.onTransitionExited;const ee=C({},G,q);return C({role:"presentation"},ee,{onKeyDown:$(ee),ref:l})},getBackdropProps:(q={})=>{const G=q;return C({"aria-hidden":!0},G,{onClick:F(G),open:p})},getTransitionProps:()=>{const q=()=>{T(!1),s&&s()},G=()=>{T(!0),u&&u(),i&&w()};return{onEnter:Ln(q,c==null?void 0:c.props.onEnter),onExited:Ln(G,c==null?void 0:c.props.onExited)}},rootRef:l,portalRef:x,isTopModal:E,exited:b,hasTransition:R}}function Zg(e){return Ie("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const Qg=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],em=e=>{const{open:t,exited:r,classes:n}=e;return ke({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Zg,n)},tm=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),rm=ve(Kn,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gu=O.forwardRef(function(t,r){var n,o,i,s,u,c;const d=Ne({name:"MuiModal",props:t}),{BackdropComponent:p=rm,BackdropProps:g,className:h,closeAfterTransition:y=!1,children:v,container:l,component:b,components:T={},componentsProps:R={},disableAutoFocus:S=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:_=!1,disablePortal:N=!1,disableRestoreFocus:f=!1,disableScrollLock:E=!1,hideBackdrop:x=!1,keepMounted:w=!1,onBackdropClick:$,open:F,slotProps:k,slots:L}=d,V=ce(d,Qg),q=C({},d,{closeAfterTransition:y,disableAutoFocus:S,disableEnforceFocus:P,disableEscapeKeyDown:_,disablePortal:N,disableRestoreFocus:f,disableScrollLock:E,hideBackdrop:x,keepMounted:w}),{getRootProps:G,getBackdropProps:ee,getTransitionProps:Ae,portalRef:I,isTopModal:D,exited:Q,hasTransition:X}=Jg(C({},q,{rootRef:r})),z=C({},q,{exited:Q}),H=em(z),K={};if(v.props.tabIndex===void 0&&(K.tabIndex="-1"),X){const{onEnter:be,onExited:ge}=Ae();K.onEnter=be,K.onExited=ge}const Y=(n=(o=L==null?void 0:L.root)!=null?o:T.Root)!=null?n:tm,W=(i=(s=L==null?void 0:L.backdrop)!=null?s:T.Backdrop)!=null?i:p,U=(u=k==null?void 0:k.root)!=null?u:R.root,J=(c=k==null?void 0:k.backdrop)!=null?c:R.backdrop,ye=au({elementType:Y,externalSlotProps:U,externalForwardedProps:V,getSlotProps:G,additionalProps:{ref:r,as:b},ownerState:z,className:ne(h,U==null?void 0:U.className,H==null?void 0:H.root,!z.open&&z.exited&&(H==null?void 0:H.hidden))}),j=au({elementType:W,externalSlotProps:J,additionalProps:g,getSlotProps:be=>ee(C({},be,{onClick:ge=>{$&&$(ge),be!=null&&be.onClick&&be.onClick(ge)}})),className:ne(J==null?void 0:J.className,g==null?void 0:g.className,H==null?void 0:H.backdrop),ownerState:z});return!w&&!F&&(!X||Q)?null:M.jsx(Xr,{ref:I,container:l,disablePortal:N,children:M.jsxs(Y,C({},ye,{children:[!x&&p?M.jsx(W,C({},j)):null,M.jsx(Yr,{disableEnforceFocus:P,disableAutoFocus:S,disableRestoreFocus:f,isEnabled:D,open:F,children:O.cloneElement(v,K)})]}))})});process.env.NODE_ENV!=="production"&&(gu.propTypes={BackdropComponent:a.elementType,BackdropProps:a.object,children:Gr.isRequired,classes:a.object,className:a.string,closeAfterTransition:a.bool,component:a.elementType,components:a.shape({Backdrop:a.elementType,Root:a.elementType}),componentsProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([Zs,a.func]),disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableEscapeKeyDown:a.bool,disablePortal:a.bool,disableRestoreFocus:a.bool,disableScrollLock:a.bool,hideBackdrop:a.bool,keepMounted:a.bool,onBackdropClick:a.func,onClose:a.func,onTransitionEnter:a.func,onTransitionExited:a.func,open:a.bool.isRequired,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const mu=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function nm(e){return Ie("MuiPaper",e)}Oe("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 om=["className","component","elevation","square","variant"],im=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ke(i,nm,o)},am=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return C({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&C({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${$e.alpha("#fff",mu(t.elevation))}, ${$e.alpha("#fff",mu(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Hn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:s=1,square:u=!1,variant:c="elevation"}=n,d=ce(n,om),p=C({},n,{component:i,elevation:s,square:u,variant:c}),g=im(p);return process.env.NODE_ENV!=="production"&&Un().shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
173
- `)),M.jsx(am,C({as:i,ownerState:p,className:ne(g.root,o),ref:r},d))});process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,elevation:er(fg,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["elevation","outlined"]),a.string])});function sm(e){return Ie("MuiDialog",e)}const Yn=Oe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Xn=O.createContext({});process.env.NODE_ENV!=="production"&&(Xn.displayName="DialogContext");const um=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],cm=ve(Kn,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lm=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${fe(r)}`],paper:["paper",`paperScroll${fe(r)}`,`paperWidth${fe(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return ke(s,sm,t)},dm=ve(gu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),fm=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${fe(r.scroll)}`]]}})(({ownerState:e})=>C({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),pm=ve(Hn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${fe(r.scroll)}`],t[`paperWidth${fe(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>C({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Yn.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Yn.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Yn.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),vu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialog"}),o=Un(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":u,BackdropComponent:c,BackdropProps:d,children:p,className:g,disableEscapeKeyDown:h=!1,fullScreen:y=!1,fullWidth:v=!1,maxWidth:l="sm",onBackdropClick:b,onClick:T,onClose:R,open:S,PaperComponent:P=Hn,PaperProps:_={},scroll:N="paper",TransitionComponent:f=Gn,transitionDuration:E=i,TransitionProps:x}=n,w=ce(n,um),$=C({},n,{disableEscapeKeyDown:h,fullScreen:y,fullWidth:v,maxWidth:l,scroll:N}),F=lm($),k=O.useRef(),L=ee=>{k.current=ee.target===ee.currentTarget},V=ee=>{T&&T(ee),k.current&&(k.current=null,b&&b(ee),R&&R(ee,"backdropClick"))},q=tu(u),G=O.useMemo(()=>({titleId:q}),[q]);return M.jsx(dm,C({className:ne(F.root,g),closeAfterTransition:!0,components:{Backdrop:cm},componentsProps:{backdrop:C({transitionDuration:E,as:c},d)},disableEscapeKeyDown:h,onClose:R,open:S,ref:r,onClick:V,ownerState:$},w,{children:M.jsx(f,C({appear:!0,in:S,timeout:E,role:"presentation"},x,{children:M.jsx(fm,{className:ne(F.container),onMouseDown:L,ownerState:$,children:M.jsx(pm,C({as:P,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":q},_,{className:ne(F.paper,_.className),ownerState:$,children:M.jsx(Xn.Provider,{value:G,children:p})}))})}))}))});process.env.NODE_ENV!=="production"&&(vu.propTypes={"aria-describedby":a.string,"aria-labelledby":a.string,BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,disableEscapeKeyDown:a.bool,fullScreen:a.bool,fullWidth:a.bool,maxWidth:a.oneOfType([a.oneOf(["xs","sm","md","lg","xl",!1]),a.string]),onBackdropClick:a.func,onClick:a.func,onClose:a.func,open:a.bool.isRequired,PaperComponent:a.elementType,PaperProps:a.object,scroll:a.oneOf(["body","paper"]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function hm(e){return Ie("MuiDialogTitle",e)}Oe("MuiDialogTitle",["root"]);const gm=["className","id"],mm=e=>{const{classes:t}=e;return ke({root:["root"]},hm,t)},vm=ve(et,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),yu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=n,s=ce(n,gm),u=n,c=mm(u),{titleId:d=i}=O.useContext(Xn);return M.jsx(vm,C({component:"h2",className:ne(c.root,o),ownerState:u,ref:r,variant:"h6",id:i??d},s))});process.env.NODE_ENV!=="production"&&(yu.propTypes={children:a.node,classes:a.object,className:a.string,id:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function ym(e){return Ie("MuiDialogActions",e)}Oe("MuiDialogActions",["root","spacing"]);const bm=["className","disableSpacing"],_m=e=>{const{classes:t,disableSpacing:r}=e;return ke({root:["root",!r&&"spacing"]},ym,t)},xm=ve("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>C({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),bu=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=n,s=ce(n,bm),u=C({},n,{disableSpacing:i}),c=_m(u);return M.jsx(xm,C({className:ne(c.root,o),ownerState:u,ref:r},s))});process.env.NODE_ENV!=="production"&&(bu.propTypes={children:a.node,classes:a.object,className:a.string,disableSpacing:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Em(e){return Ie("MuiButton",e)}const Jr=Oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),_u=O.createContext({});process.env.NODE_ENV!=="production"&&(_u.displayName="ButtonGroupContext");const xu=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(xu.displayName="ButtonGroupButtonContext");const Tm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rm=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:s}=e,u={root:["root",i,`${i}${fe(t)}`,`size${fe(o)}`,`${i}Size${fe(o)}`,`color${fe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fe(o)}`],endIcon:["icon","endIcon",`iconSize${fe(o)}`]},c=ke(u,Em,s);return C({},s,c)},Eu=e=>C({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Cm=ve(Wr,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${fe(r.color)}`],t[`size${fe(r.size)}`],t[`${r.variant}Size${fe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return C({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:$e.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jr.focusVisible}`]:C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jr.disabled}`]:C({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${$e.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jr.disabled}`]:{boxShadow:"none"}}),Sm=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Eu(e))),Om=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${fe(r.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Eu(e))),Tu=O.forwardRef(function(t,r){const n=O.useContext(_u),o=O.useContext(xu),i=qr(n,t),s=Ne({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:p,disabled:g=!1,disableElevation:h=!1,disableFocusRipple:y=!1,endIcon:v,focusVisibleClassName:l,fullWidth:b=!1,size:T="medium",startIcon:R,type:S,variant:P="text"}=s,_=ce(s,Tm),N=C({},s,{color:c,component:d,disabled:g,disableElevation:h,disableFocusRipple:y,fullWidth:b,size:T,type:S,variant:P}),f=Rm(N),E=R&&M.jsx(Sm,{className:f.startIcon,ownerState:N,children:R}),x=v&&M.jsx(Om,{className:f.endIcon,ownerState:N,children:v}),w=o||"";return M.jsxs(Cm,C({ownerState:N,className:ne(n.className,f.root,p,w),component:d,disabled:g,focusRipple:!y,focusVisibleClassName:ne(f.focusVisible,l),ref:r,type:S},_,{classes:f,children:[E,u,x]}))});process.env.NODE_ENV!=="production"&&(Tu.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","success","error","info","warning"]),a.string]),component:a.elementType,disabled:a.bool,disableElevation:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,endIcon:a.node,focusVisibleClassName:a.string,fullWidth:a.bool,href:a.string,size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),startIcon:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});function Pm(e){return Ie("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const wm=["children","className","component","dense","disablePadding","subheader"],Im=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ke({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Pm,t)},$m=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Jn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,p=ce(n,wm),g=O.useMemo(()=>({dense:u}),[u]),h=C({},n,{component:s,dense:u,disablePadding:c}),y=Im(h);return M.jsx(Qe.Provider,{value:g,children:M.jsxs($m,C({as:s,className:ne(y.root,i),ref:r,ownerState:h},p,{children:[d,o]}))})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disablePadding:a.bool,subheader:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Am(e){return Ie("MuiLink",e)}const Nm=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Ru={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mm=e=>Ru[e]||e,km=({theme:e,ownerState:t})=>{const r=Mm(t.color),n=yt.getPath(e,`palette.${r}`,!1)||t.color,o=yt.getPath(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:$e.alpha(n,.4)},Dm=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],jm=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${fe(o)}`,r==="button"&&"button",n&&"focusVisible"]};return ke(i,Am,t)},qm=ve(et,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${fe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>C({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&C({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:km({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Nm.focusVisible}`]:{outline:"auto"}})),$t=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:s="a",onBlur:u,onFocus:c,TypographyClasses:d,underline:p="always",variant:g="inherit",sx:h}=n,y=ce(n,Dm),{isFocusVisibleRef:v,onBlur:l,onFocus:b,ref:T}=$n(),[R,S]=O.useState(!1),P=Ye(r,T),_=x=>{l(x),v.current===!1&&S(!1),u&&u(x)},N=x=>{b(x),v.current===!0&&S(!0),c&&c(x)},f=C({},n,{color:i,component:s,focusVisible:R,underline:p,variant:g}),E=jm(f);return M.jsx(qm,C({color:i,className:ne(E.root,o),classes:d,component:s,onBlur:_,onFocus:N,ref:P,ownerState:f,variant:g,sx:[...Object.keys(Ru).includes(i)?[]:[{color:i}],...Array.isArray(h)?h:[h]]},y))});process.env.NODE_ENV!=="production"&&($t.propTypes={children:a.node,classes:a.object,className:a.string,color:a.any,component:Pn,onBlur:a.func,onFocus:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TypographyClasses:a.object,underline:a.oneOf(["always","hover","none"]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string])});function Lm(e){return Ie("MuiListItem",e)}const At=Oe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Fm=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Bm(e){return Ie("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const Vm=["className"],zm=e=>{const{disableGutters:t,classes:r}=e;return ke({root:["root",t&&"disableGutters"]},Bm,r)},Wm=ve("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>C({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zn=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,i=ce(n,Vm),s=O.useContext(Qe),u=C({},n,{disableGutters:s.disableGutters}),c=zm(u);return M.jsx(Wm,C({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(Zn.propTypes={children:a.node,classes:a.object,className:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])}),Zn.muiName="ListItemSecondaryAction";const Um=["className"],Gm=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Km=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},Hm=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:s,disablePadding:u,divider:c,hasSecondaryAction:d,selected:p}=e;return ke({root:["root",o&&"dense",!s&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",p&&"selected"],container:["container"]},Lm,n)},Ym=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:Km})(({theme:e,ownerState:t})=>C({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&C({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Fm.root}`]:{paddingRight:48}},{[`&.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${At.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${At.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${At.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$e.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Xm=ve("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nt=O.forwardRef(function(t,r){const n=Ne({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:s=!1,children:u,className:c,component:d,components:p={},componentsProps:g={},ContainerComponent:h="li",ContainerProps:{className:y}={},dense:v=!1,disabled:l=!1,disableGutters:b=!1,disablePadding:T=!1,divider:R=!1,focusVisibleClassName:S,secondaryAction:P,selected:_=!1,slotProps:N={},slots:f={}}=n,E=ce(n.ContainerProps,Um),x=ce(n,Gm),w=O.useContext(Qe),$=O.useMemo(()=>({dense:v||w.dense||!1,alignItems:o,disableGutters:b}),[o,w.dense,v,b]),F=O.useRef(null);Pt(()=>{i&&(F.current?F.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))},[i]);const k=O.Children.toArray(u),L=k.length&&Fn(k[k.length-1],["ListItemSecondaryAction"]),V=C({},n,{alignItems:o,autoFocus:i,button:s,dense:$.dense,disabled:l,disableGutters:b,disablePadding:T,divider:R,hasSecondaryAction:L,selected:_}),q=Hm(V),G=Ye(F,r),ee=f.root||p.Root||Ym,Ae=N.root||g.root||{},I=C({className:ne(q.root,Ae.className,c),disabled:l},x);let D=d||"li";return s&&(I.component=d||"div",I.focusVisibleClassName=ne(At.focusVisible,S),D=Wr),L?(D=!I.component&&!d?"div":D,h==="li"&&(D==="li"?D="div":I.component==="li"&&(I.component="div")),M.jsx(Qe.Provider,{value:$,children:M.jsxs(Xm,C({as:h,className:ne(q.container,y),ref:G,ownerState:V},E,{children:[M.jsx(ee,C({},Ae,!Vn(ee)&&{as:D,ownerState:C({},V,Ae.ownerState)},I,{children:k})),k.pop()]}))})):M.jsx(Qe.Provider,{value:$,children:M.jsxs(ee,C({},Ae,{as:D,ref:G},!Vn(ee)&&{ownerState:C({},V,Ae.ownerState)},I,{children:[k,P&&M.jsx(Zn,{children:P})]}))})});process.env.NODE_ENV!=="production"&&(Nt.propTypes={alignItems:a.oneOf(["center","flex-start"]),autoFocus:a.bool,button:a.bool,children:er(a.node,e=>{const t=O.Children.toArray(e.children);let r=-1;for(let n=t.length-1;n>=0;n-=1){const o=t[n];if(Fn(o,["ListItemSecondaryAction"])){r=n;break}}return r!==-1&&r!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),ContainerComponent:Pn,ContainerProps:a.object,dense:a.bool,disabled:a.bool,disableGutters:a.bool,disablePadding:a.bool,divider:a.bool,focusVisibleClassName:a.string,secondaryAction:a.node,selected:a.bool,slotProps:a.shape({root:a.object}),slots:a.shape({root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});class Qn extends de.Component{render(){const{rendering:t}=this.props;return M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsxs(jn,{primaryTypographyProps:{variant:"body1"},children:[M.jsx($t,{href:t.id,download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t.getLabel().getValue()}),t.getFormat()&&t.getFormat().value&&` (${t.getFormat().value})`]})},t.id)}}Qn.propTypes={rendering:a.shape({id:a.string.isRequired,getLabel:a.func.isRequired,getFormat:a.func.isRequired}).isRequired};function Cu({renderings:e}){const{t}=He.useTranslation();return M.jsxs(M.Fragment,{children:[M.jsx(et,{variant:"h3",sx:{marginTop:"20px"},children:t("mirador-dl-plugin.other_download")}),M.jsx(Jn,{children:e.map(r=>M.jsx(Qn,{rendering:r},r.id))})]})}Cu.propTypes={renderings:a.array.isRequired};var eo,Su;function Jm(){if(Su)return eo;Su=1;function e(){this.__data__=[],this.size=0}return eo=e,eo}var to,Ou;function Pu(){if(Ou)return to;Ou=1;function e(t,r){return t===r||t!==t&&r!==r}return to=e,to}var ro,wu;function Zr(){if(wu)return ro;wu=1;var e=Pu();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return ro=t,ro}var no,Iu;function Zm(){if(Iu)return no;Iu=1;var e=Zr(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var u=i.length-1;return s==u?i.pop():r.call(i,s,1),--this.size,!0}return no=n,no}var oo,$u;function Qm(){if($u)return oo;$u=1;var e=Zr();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return oo=t,oo}var io,Au;function ev(){if(Au)return io;Au=1;var e=Zr();function t(r){return e(this.__data__,r)>-1}return io=t,io}var ao,Nu;function tv(){if(Nu)return ao;Nu=1;var e=Zr();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return ao=t,ao}var so,Mu;function Qr(){if(Mu)return so;Mu=1;var e=Jm(),t=Zm(),r=Qm(),n=ev(),o=tv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,so=i,so}var uo,ku;function rv(){if(ku)return uo;ku=1;var e=Qr();function t(){this.__data__=new e,this.size=0}return uo=t,uo}var co,Du;function nv(){if(Du)return co;Du=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return co=e,co}var lo,ju;function ov(){if(ju)return lo;ju=1;function e(t){return this.__data__.get(t)}return lo=e,lo}var fo,qu;function iv(){if(qu)return fo;qu=1;function e(t){return this.__data__.has(t)}return fo=e,fo}var po,Lu;function Fu(){if(Lu)return po;Lu=1;var e=typeof hr=="object"&&hr&&hr.Object===Object&&hr;return po=e,po}var ho,Bu;function it(){if(Bu)return ho;Bu=1;var e=Fu(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ho=r,ho}var go,Vu;function en(){if(Vu)return go;Vu=1;var e=it(),t=e.Symbol;return go=t,go}var mo,zu;function av(){if(zu)return mo;zu=1;var e=en(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(s){var u=r.call(s,o),c=s[o];try{s[o]=void 0;var d=!0}catch{}var p=n.call(s);return d&&(u?s[o]=c:delete s[o]),p}return mo=i,mo}var vo,Wu;function sv(){if(Wu)return vo;Wu=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return vo=r,vo}var yo,Uu;function ir(){if(Uu)return yo;Uu=1;var e=en(),t=av(),r=sv(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?o:n:i&&i in Object(u)?t(u):r(u)}return yo=s,yo}var bo,Gu;function _o(){if(Gu)return bo;Gu=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return bo=e,bo}var xo,Ku;function Hu(){if(Ku)return xo;Ku=1;var e=ir(),t=_o(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(u){if(!t(u))return!1;var c=e(u);return c==n||c==o||c==r||c==i}return xo=s,xo}var Eo,Yu;function uv(){if(Yu)return Eo;Yu=1;var e=it(),t=e["__core-js_shared__"];return Eo=t,Eo}var To,Xu;function cv(){if(Xu)return To;Xu=1;var e=uv(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return To=r,To}var Ro,Ju;function Zu(){if(Ju)return Ro;Ju=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ro=r,Ro}var Co,Qu;function lv(){if(Qu)return Co;Qu=1;var e=Hu(),t=cv(),r=_o(),n=Zu(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(h){if(!r(h)||t(h))return!1;var y=e(h)?p:i;return y.test(n(h))}return Co=g,Co}var So,ec;function dv(){if(ec)return So;ec=1;function e(t,r){return t==null?void 0:t[r]}return So=e,So}var Oo,tc;function Mt(){if(tc)return Oo;tc=1;var e=lv(),t=dv();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return Oo=r,Oo}var Po,rc;function wo(){if(rc)return Po;rc=1;var e=Mt(),t=it(),r=e(t,"Map");return Po=r,Po}var Io,nc;function tn(){if(nc)return Io;nc=1;var e=Mt(),t=e(Object,"create");return Io=t,Io}var $o,oc;function fv(){if(oc)return $o;oc=1;var e=tn();function t(){this.__data__=e?e(null):{},this.size=0}return $o=t,$o}var Ao,ic;function pv(){if(ic)return Ao;ic=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ao=e,Ao}var No,ac;function hv(){if(ac)return No;ac=1;var e=tn(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var s=this.__data__;if(e){var u=s[i];return u===t?void 0:u}return n.call(s,i)?s[i]:void 0}return No=o,No}var Mo,sc;function gv(){if(sc)return Mo;sc=1;var e=tn(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Mo=n,Mo}var ko,uc;function mv(){if(uc)return ko;uc=1;var e=tn(),t="__lodash_hash_undefined__";function r(n,o){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&o===void 0?t:o,this}return ko=r,ko}var Do,cc;function vv(){if(cc)return Do;cc=1;var e=fv(),t=pv(),r=hv(),n=gv(),o=mv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Do=i,Do}var jo,lc;function yv(){if(lc)return jo;lc=1;var e=vv(),t=Qr(),r=wo();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return jo=n,jo}var qo,dc;function bv(){if(dc)return qo;dc=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return qo=e,qo}var Lo,fc;function rn(){if(fc)return Lo;fc=1;var e=bv();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return Lo=t,Lo}var Fo,pc;function _v(){if(pc)return Fo;pc=1;var e=rn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Fo=t,Fo}var Bo,hc;function xv(){if(hc)return Bo;hc=1;var e=rn();function t(r){return e(this,r).get(r)}return Bo=t,Bo}var Vo,gc;function Ev(){if(gc)return Vo;gc=1;var e=rn();function t(r){return e(this,r).has(r)}return Vo=t,Vo}var zo,mc;function Tv(){if(mc)return zo;mc=1;var e=rn();function t(r,n){var o=e(this,r),i=o.size;return o.set(r,n),this.size+=o.size==i?0:1,this}return zo=t,zo}var Wo,vc;function Uo(){if(vc)return Wo;vc=1;var e=yv(),t=_v(),r=xv(),n=Ev(),o=Tv();function i(s){var u=-1,c=s==null?0:s.length;for(this.clear();++u<c;){var d=s[u];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Wo=i,Wo}var Go,yc;function Rv(){if(yc)return Go;yc=1;var e=Qr(),t=wo(),r=Uo(),n=200;function o(i,s){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([i,s]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(i,s),this.size=u.size,this}return Go=o,Go}var Ko,bc;function _c(){if(bc)return Ko;bc=1;var e=Qr(),t=rv(),r=nv(),n=ov(),o=iv(),i=Rv();function s(u){var c=this.__data__=new e(u);this.size=c.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=o,s.prototype.set=i,Ko=s,Ko}var Ho,xc;function Cv(){if(xc)return Ho;xc=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ho=t,Ho}var Yo,Ec;function Sv(){if(Ec)return Yo;Ec=1;function e(t){return this.__data__.has(t)}return Yo=e,Yo}var Xo,Tc;function Rc(){if(Tc)return Xo;Tc=1;var e=Uo(),t=Cv(),r=Sv();function n(o){var i=-1,s=o==null?0:o.length;for(this.__data__=new e;++i<s;)this.add(o[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Xo=n,Xo}var Jo,Cc;function Ov(){if(Cc)return Jo;Cc=1;function e(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}return Jo=e,Jo}var Zo,Sc;function Oc(){if(Sc)return Zo;Sc=1;function e(t,r){return t.has(r)}return Zo=e,Zo}var Qo,Pc;function wc(){if(Pc)return Qo;Pc=1;var e=Rc(),t=Ov(),r=Oc(),n=1,o=2;function i(s,u,c,d,p,g){var h=c&n,y=s.length,v=u.length;if(y!=v&&!(h&&v>y))return!1;var l=g.get(s),b=g.get(u);if(l&&b)return l==u&&b==s;var T=-1,R=!0,S=c&o?new e:void 0;for(g.set(s,u),g.set(u,s);++T<y;){var P=s[T],_=u[T];if(d)var N=h?d(_,P,T,u,s,g):d(P,_,T,s,u,g);if(N!==void 0){if(N)continue;R=!1;break}if(S){if(!t(u,function(f,E){if(!r(S,E)&&(P===f||p(P,f,c,d,g)))return S.push(E)})){R=!1;break}}else if(!(P===_||p(P,_,c,d,g))){R=!1;break}}return g.delete(s),g.delete(u),R}return Qo=i,Qo}var ei,Ic;function Pv(){if(Ic)return ei;Ic=1;var e=it(),t=e.Uint8Array;return ei=t,ei}var ti,$c;function wv(){if($c)return ti;$c=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,i){n[++r]=[i,o]}),n}return ti=e,ti}var ri,Ac;function ni(){if(Ac)return ri;Ac=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return ri=e,ri}var oi,Nc;function Iv(){if(Nc)return oi;Nc=1;var e=en(),t=Pv(),r=Pu(),n=wc(),o=wv(),i=ni(),s=1,u=2,c="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Map]",h="[object Number]",y="[object RegExp]",v="[object Set]",l="[object String]",b="[object Symbol]",T="[object ArrayBuffer]",R="[object DataView]",S=e?e.prototype:void 0,P=S?S.valueOf:void 0;function _(N,f,E,x,w,$,F){switch(E){case R:if(N.byteLength!=f.byteLength||N.byteOffset!=f.byteOffset)return!1;N=N.buffer,f=f.buffer;case T:return!(N.byteLength!=f.byteLength||!$(new t(N),new t(f)));case c:case d:case h:return r(+N,+f);case p:return N.name==f.name&&N.message==f.message;case y:case l:return N==f+"";case g:var k=o;case v:var L=x&s;if(k||(k=i),N.size!=f.size&&!L)return!1;var V=F.get(N);if(V)return V==f;x|=u,F.set(N,f);var q=n(k(N),k(f),x,w,$,F);return F.delete(N),q;case b:if(P)return P.call(N)==P.call(f)}return!1}return oi=_,oi}var ii,Mc;function $v(){if(Mc)return ii;Mc=1;function e(t,r){for(var n=-1,o=r.length,i=t.length;++n<o;)t[i+n]=r[n];return t}return ii=e,ii}var ai,kc;function ct(){if(kc)return ai;kc=1;var e=Array.isArray;return ai=e,ai}var si,Dc;function Av(){if(Dc)return si;Dc=1;var e=$v(),t=ct();function r(n,o,i){var s=o(n);return t(n)?s:e(s,i(n))}return si=r,si}var ui,jc;function Nv(){if(jc)return ui;jc=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=0,s=[];++n<o;){var u=t[n];r(u,n,t)&&(s[i++]=u)}return s}return ui=e,ui}var ci,qc;function Mv(){if(qc)return ci;qc=1;function e(){return[]}return ci=e,ci}var li,Lc;function kv(){if(Lc)return li;Lc=1;var e=Nv(),t=Mv(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(s){return s==null?[]:(s=Object(s),e(o(s),function(u){return n.call(s,u)}))}:t;return li=i,li}var di,Fc;function Dv(){if(Fc)return di;Fc=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return di=e,di}var fi,Bc;function ar(){if(Bc)return fi;Bc=1;function e(t){return t!=null&&typeof t=="object"}return fi=e,fi}var pi,Vc;function jv(){if(Vc)return pi;Vc=1;var e=ir(),t=ar(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return pi=n,pi}var hi,zc;function Wc(){if(zc)return hi;zc=1;var e=jv(),t=ar(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(s){return t(s)&&n.call(s,"callee")&&!o.call(s,"callee")};return hi=i,hi}var sr={exports:{}},gi,Uc;function qv(){if(Uc)return gi;Uc=1;function e(){return!1}return gi=e,gi}sr.exports;var Gc;function Kc(){return Gc||(Gc=1,function(e,t){var r=it(),n=qv(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d}(sr,sr.exports)),sr.exports}var mi,Hc;function Yc(){if(Hc)return mi;Hc=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,o){var i=typeof n;return o=o??e,!!o&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<o}return mi=r,mi}var vi,Xc;function yi(){if(Xc)return vi;Xc=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return vi=t,vi}var bi,Jc;function Lv(){if(Jc)return bi;Jc=1;var e=ir(),t=yi(),r=ar(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",g="[object Object]",h="[object RegExp]",y="[object Set]",v="[object String]",l="[object WeakMap]",b="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",P="[object Int8Array]",_="[object Int16Array]",N="[object Int32Array]",f="[object Uint8Array]",E="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",$={};$[R]=$[S]=$[P]=$[_]=$[N]=$[f]=$[E]=$[x]=$[w]=!0,$[n]=$[o]=$[b]=$[i]=$[T]=$[s]=$[u]=$[c]=$[d]=$[p]=$[g]=$[h]=$[y]=$[v]=$[l]=!1;function F(k){return r(k)&&t(k.length)&&!!$[e(k)]}return bi=F,bi}var _i,Zc;function Fv(){if(Zc)return _i;Zc=1;function e(t){return function(r){return t(r)}}return _i=e,_i}var ur={exports:{}};ur.exports;var Qc;function Bv(){return Qc||(Qc=1,function(e,t){var r=Fu(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,u=function(){try{var c=o&&o.require&&o.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(ur,ur.exports)),ur.exports}var xi,el;function tl(){if(el)return xi;el=1;var e=Lv(),t=Fv(),r=Bv(),n=r&&r.isTypedArray,o=n?t(n):e;return xi=o,xi}var Ei,rl;function Vv(){if(rl)return Ei;rl=1;var e=Dv(),t=Wc(),r=ct(),n=Kc(),o=Yc(),i=tl(),s=Object.prototype,u=s.hasOwnProperty;function c(d,p){var g=r(d),h=!g&&t(d),y=!g&&!h&&n(d),v=!g&&!h&&!y&&i(d),l=g||h||y||v,b=l?e(d.length,String):[],T=b.length;for(var R in d)(p||u.call(d,R))&&!(l&&(R=="length"||y&&(R=="offset"||R=="parent")||v&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||o(R,T)))&&b.push(R);return b}return Ei=c,Ei}var Ti,nl;function zv(){if(nl)return Ti;nl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return Ti=t,Ti}var Ri,ol;function Wv(){if(ol)return Ri;ol=1;function e(t,r){return function(n){return t(r(n))}}return Ri=e,Ri}var Ci,il;function Uv(){if(il)return Ci;il=1;var e=Wv(),t=e(Object.keys,Object);return Ci=t,Ci}var Si,al;function Gv(){if(al)return Si;al=1;var e=zv(),t=Uv(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&s.push(u);return s}return Si=o,Si}var Oi,sl;function Kv(){if(sl)return Oi;sl=1;var e=Hu(),t=yi();function r(n){return n!=null&&t(n.length)&&!e(n)}return Oi=r,Oi}var Pi,ul;function cl(){if(ul)return Pi;ul=1;var e=Vv(),t=Gv(),r=Kv();function n(o){return r(o)?e(o):t(o)}return Pi=n,Pi}var wi,ll;function Hv(){if(ll)return wi;ll=1;var e=Av(),t=kv(),r=cl();function n(o){return e(o,r,t)}return wi=n,wi}var Ii,dl;function Yv(){if(dl)return Ii;dl=1;var e=Hv(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(i,s,u,c,d,p){var g=u&t,h=e(i),y=h.length,v=e(s),l=v.length;if(y!=l&&!g)return!1;for(var b=y;b--;){var T=h[b];if(!(g?T in s:n.call(s,T)))return!1}var R=p.get(i),S=p.get(s);if(R&&S)return R==s&&S==i;var P=!0;p.set(i,s),p.set(s,i);for(var _=g;++b<y;){T=h[b];var N=i[T],f=s[T];if(c)var E=g?c(f,N,T,s,i,p):c(N,f,T,i,s,p);if(!(E===void 0?N===f||d(N,f,u,c,p):E)){P=!1;break}_||(_=T=="constructor")}if(P&&!_){var x=i.constructor,w=s.constructor;x!=w&&"constructor"in i&&"constructor"in s&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(P=!1)}return p.delete(i),p.delete(s),P}return Ii=o,Ii}var $i,fl;function Xv(){if(fl)return $i;fl=1;var e=Mt(),t=it(),r=e(t,"DataView");return $i=r,$i}var Ai,pl;function Jv(){if(pl)return Ai;pl=1;var e=Mt(),t=it(),r=e(t,"Promise");return Ai=r,Ai}var Ni,hl;function gl(){if(hl)return Ni;hl=1;var e=Mt(),t=it(),r=e(t,"Set");return Ni=r,Ni}var Mi,ml;function Zv(){if(ml)return Mi;ml=1;var e=Mt(),t=it(),r=e(t,"WeakMap");return Mi=r,Mi}var ki,vl;function Qv(){if(vl)return ki;vl=1;var e=Xv(),t=wo(),r=Jv(),n=gl(),o=Zv(),i=ir(),s=Zu(),u="[object Map]",c="[object Object]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",h="[object DataView]",y=s(e),v=s(t),l=s(r),b=s(n),T=s(o),R=i;return(e&&R(new e(new ArrayBuffer(1)))!=h||t&&R(new t)!=u||r&&R(r.resolve())!=d||n&&R(new n)!=p||o&&R(new o)!=g)&&(R=function(S){var P=i(S),_=P==c?S.constructor:void 0,N=_?s(_):"";if(N)switch(N){case y:return h;case v:return u;case l:return d;case b:return p;case T:return g}return P}),ki=R,ki}var Di,yl;function ey(){if(yl)return Di;yl=1;var e=_c(),t=wc(),r=Iv(),n=Yv(),o=Qv(),i=ct(),s=Kc(),u=tl(),c=1,d="[object Arguments]",p="[object Array]",g="[object Object]",h=Object.prototype,y=h.hasOwnProperty;function v(l,b,T,R,S,P){var _=i(l),N=i(b),f=_?p:o(l),E=N?p:o(b);f=f==d?g:f,E=E==d?g:E;var x=f==g,w=E==g,$=f==E;if($&&s(l)){if(!s(b))return!1;_=!0,x=!1}if($&&!x)return P||(P=new e),_||u(l)?t(l,b,T,R,S,P):r(l,b,f,T,R,S,P);if(!(T&c)){var F=x&&y.call(l,"__wrapped__"),k=w&&y.call(b,"__wrapped__");if(F||k){var L=F?l.value():l,V=k?b.value():b;return P||(P=new e),S(L,V,T,R,P)}}return $?(P||(P=new e),n(l,b,T,R,S,P)):!1}return Di=v,Di}var ji,bl;function _l(){if(bl)return ji;bl=1;var e=ey(),t=ar();function r(n,o,i,s,u){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,i,s,r,u)}return ji=r,ji}var qi,xl;function ty(){if(xl)return qi;xl=1;var e=_c(),t=_l(),r=1,n=2;function o(i,s,u,c){var d=u.length,p=d,g=!c;if(i==null)return!p;for(i=Object(i);d--;){var h=u[d];if(g&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++d<p;){h=u[d];var y=h[0],v=i[y],l=h[1];if(g&&h[2]){if(v===void 0&&!(y in i))return!1}else{var b=new e;if(c)var T=c(v,l,y,i,s,b);if(!(T===void 0?t(l,v,r|n,c,b):T))return!1}}return!0}return qi=o,qi}var Li,El;function Tl(){if(El)return Li;El=1;var e=_o();function t(r){return r===r&&!e(r)}return Li=t,Li}var Fi,Rl;function ry(){if(Rl)return Fi;Rl=1;var e=Tl(),t=cl();function r(n){for(var o=t(n),i=o.length;i--;){var s=o[i],u=n[s];o[i]=[s,u,e(u)]}return o}return Fi=r,Fi}var Bi,Cl;function Sl(){if(Cl)return Bi;Cl=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Bi=e,Bi}var Vi,Ol;function ny(){if(Ol)return Vi;Ol=1;var e=ty(),t=ry(),r=Sl();function n(o){var i=t(o);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(s){return s===o||e(s,o,i)}}return Vi=n,Vi}var zi,Pl;function Wi(){if(Pl)return zi;Pl=1;var e=ir(),t=ar(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return zi=n,zi}var Ui,wl;function Gi(){if(wl)return Ui;wl=1;var e=ct(),t=Wi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,s){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||s!=null&&i in Object(s)}return Ui=o,Ui}var Ki,Il;function oy(){if(Il)return Ki;Il=1;var e=Uo(),t="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var s=arguments,u=o?o.apply(this,s):s[0],c=i.cache;if(c.has(u))return c.get(u);var d=n.apply(this,s);return i.cache=c.set(u,d)||c,d};return i.cache=new(r.Cache||e),i}return r.Cache=e,Ki=r,Ki}var Hi,$l;function iy(){if($l)return Hi;$l=1;var e=oy(),t=500;function r(n){var o=e(n,function(s){return i.size===t&&i.clear(),s}),i=o.cache;return o}return Hi=r,Hi}var Yi,Al;function ay(){if(Al)return Yi;Al=1;var e=iy(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(s,u,c,d){i.push(c?d.replace(r,"$1"):u||s)}),i});return Yi=n,Yi}var Xi,Nl;function sy(){if(Nl)return Xi;Nl=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n<o;)i[n]=r(t[n],n,t);return i}return Xi=e,Xi}var Ji,Ml;function uy(){if(Ml)return Ji;Ml=1;var e=en(),t=sy(),r=ct(),n=Wi(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function s(u){if(typeof u=="string")return u;if(r(u))return t(u,s)+"";if(n(u))return i?i.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return Ji=s,Ji}var Zi,kl;function cy(){if(kl)return Zi;kl=1;var e=uy();function t(r){return r==null?"":e(r)}return Zi=t,Zi}var Qi,Dl;function jl(){if(Dl)return Qi;Dl=1;var e=ct(),t=Gi(),r=ay(),n=cy();function o(i,s){return e(i)?i:t(i,s)?[i]:r(n(i))}return Qi=o,Qi}var ea,ql;function nn(){if(ql)return ea;ql=1;var e=Wi();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ea=t,ea}var ta,Ll;function Fl(){if(Ll)return ta;Ll=1;var e=jl(),t=nn();function r(n,o){o=e(o,n);for(var i=0,s=o.length;n!=null&&i<s;)n=n[t(o[i++])];return i&&i==s?n:void 0}return ta=r,ta}var ra,Bl;function ly(){if(Bl)return ra;Bl=1;var e=Fl();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return ra=t,ra}var na,Vl;function dy(){if(Vl)return na;Vl=1;function e(t,r){return t!=null&&r in Object(t)}return na=e,na}var oa,zl;function fy(){if(zl)return oa;zl=1;var e=jl(),t=Wc(),r=ct(),n=Yc(),o=yi(),i=nn();function s(u,c,d){c=e(c,u);for(var p=-1,g=c.length,h=!1;++p<g;){var y=i(c[p]);if(!(h=u!=null&&d(u,y)))break;u=u[y]}return h||++p!=g?h:(g=u==null?0:u.length,!!g&&o(g)&&n(y,g)&&(r(u)||t(u)))}return oa=s,oa}var ia,Wl;function py(){if(Wl)return ia;Wl=1;var e=dy(),t=fy();function r(n,o){return n!=null&&t(n,o,e)}return ia=r,ia}var aa,Ul;function hy(){if(Ul)return aa;Ul=1;var e=_l(),t=ly(),r=py(),n=Gi(),o=Tl(),i=Sl(),s=nn(),u=1,c=2;function d(p,g){return n(p)&&o(g)?i(s(p),g):function(h){var y=t(h,p);return y===void 0&&y===g?r(h,p):e(g,y,u|c)}}return aa=d,aa}var sa,Gl;function gy(){if(Gl)return sa;Gl=1;function e(t){return t}return sa=e,sa}var ua,Kl;function my(){if(Kl)return ua;Kl=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ua=e,ua}var ca,Hl;function vy(){if(Hl)return ca;Hl=1;var e=Fl();function t(r){return function(n){return e(n,r)}}return ca=t,ca}var la,Yl;function yy(){if(Yl)return la;Yl=1;var e=my(),t=vy(),r=Gi(),n=nn();function o(i){return r(i)?e(n(i)):t(i)}return la=o,la}var da,Xl;function by(){if(Xl)return da;Xl=1;var e=ny(),t=hy(),r=gy(),n=ct(),o=yy();function i(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):o(s)}return da=i,da}var fa,Jl;function _y(){if(Jl)return fa;Jl=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s<i;)if(r(t[s],s,t))return s;return-1}return fa=e,fa}var pa,Zl;function xy(){if(Zl)return pa;Zl=1;function e(t){return t!==t}return pa=e,pa}var ha,Ql;function Ey(){if(Ql)return ha;Ql=1;function e(t,r,n){for(var o=n-1,i=t.length;++o<i;)if(t[o]===r)return o;return-1}return ha=e,ha}var ga,ed;function Ty(){if(ed)return ga;ed=1;var e=_y(),t=xy(),r=Ey();function n(o,i,s){return i===i?r(o,i,s):e(o,t,s)}return ga=n,ga}var ma,td;function Ry(){if(td)return ma;td=1;var e=Ty();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return ma=t,ma}var va,rd;function Cy(){if(rd)return va;rd=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o<i;)if(n(r,t[o]))return!0;return!1}return va=e,va}var ya,nd;function Sy(){if(nd)return ya;nd=1;function e(){}return ya=e,ya}var ba,od;function Oy(){if(od)return ba;od=1;var e=gl(),t=Sy(),r=ni(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return ba=o,ba}var _a,id;function Py(){if(id)return _a;id=1;var e=Rc(),t=Ry(),r=Cy(),n=Oc(),o=Oy(),i=ni(),s=200;function u(c,d,p){var g=-1,h=t,y=c.length,v=!0,l=[],b=l;if(p)v=!1,h=r;else if(y>=s){var T=d?null:o(c);if(T)return i(T);v=!1,h=n,b=new e}else b=d?[]:l;e:for(;++g<y;){var R=c[g],S=d?d(R):R;if(R=p||R!==0?R:0,v&&S===S){for(var P=b.length;P--;)if(b[P]===S)continue e;d&&b.push(S),l.push(R)}else h(b,S,p)||(b!==l&&b.push(S),l.push(R))}return l}return _a=u,_a}var xa,ad;function wy(){if(ad)return xa;ad=1;var e=by(),t=Py();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return xa=r,xa}var Iy=wy();const $y=gr(Iy);class sd extends de.Component{zoomedImageLabel(){const{t}=this.props,r=this.currentBounds();return t("mirador-dl-plugin.zoomed_region",{width:Math.floor(r.width),height:Math.floor(r.height)})}fullImageLabel(){const{canvas:t,t:r}=this.props;return r("mirador-dl-plugin.whole_image",{width:t.getWidth(),height:t.getHeight()})}smallImageLabel(){const{canvas:t,t:r}=this.props,n=Math.floor(1e3*t.getHeight()/t.getWidth());return r("mirador-dl-plugin.whole_image",{width:1e3,height:n})}zoomedImageUrl(){const{canvas:t}=this.props,r=this.currentBounds();return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,`/${r.x},${r.y},${r.width},${r.height}/full/0/`)}?download=true`}imageUrlForSize(t){const{canvas:r}=this.props;return`${r.getCanonicalImageUri(t.width)}?download=true`}fullImageUrl(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri().replace(/\/full\/.*\/0\//,"/full/full/0/")}?download=true`}thousandPixelWideImage(){const{canvas:t}=this.props;return`${t.getCanonicalImageUri("1000")}?download=true`}osdViewport(){const{windowId:t}=this.props;return He.OSDReferences.get(t).current.viewport}currentBounds(){const t=this.osdViewport().getBounds();return Object.keys(t).reduce((r,n)=>(r[n]=Math.ceil(t[n]),r),{})}definedSizesRestrictsDownload(){const{infoResponse:t}=this.props;if(!t.json)return!1;const{height:r,width:n}=t.json;return this.definedSizes().length!==1?!1:this.definedSizes()[0].width<=n&&this.definedSizes()[0].height<=r}displayCurrentZoomLink(){const{restrictDownloadOnSizeDefinition:t,infoResponse:r,viewType:n}=this.props;if(n!=="single"||t&&this.definedSizesRestrictsDownload()||!(r&&r.json))return!1;const o=this.currentBounds();return o.height<r.json.height&&o.width<r.json.width&&o.x>=0&&o.y>=0}definedSizes(){const{infoResponse:t}=this.props;return t&&t.json&&t.json.sizes?$y(t.json.sizes,r=>`${r.width}${r.height}`):[]}fullImageLink(){return M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.fullImageUrl(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.fullImageLabel()})},this.fullImageUrl())}thousandPixelWideLink(){const{canvas:t}=this.props;return t.getWidth()<1e3?"":M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.thousandPixelWideImage(),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.smallImageLabel()})},this.thousandPixelWideImage())}linksForDefinedSizes(){const{t}=this.props;return this.definedSizes().map(r=>M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.imageUrlForSize(r),rel:"noopener noreferrer",target:"_blank",variant:"body1",children:t("mirador-dl-plugin.whole_image",{width:r.width,height:r.height})})},`${r.width}${r.height}`))}render(){const{canvas:t,canvasLabel:r}=this.props;return M.jsxs(M.Fragment,{children:[M.jsx(et,{noWrap:!0,variant:"h3",sx:{marginTop:"20px"},children:r}),M.jsxs(Jn,{children:[this.displayCurrentZoomLink()&&M.jsx(Nt,{disableGutters:!0,divider:!0,children:M.jsx($t,{href:this.zoomedImageUrl(),download:!0,rel:"noopener noreferrer",target:"_blank",variant:"body1",children:this.zoomedImageLabel()})}),this.definedSizes().length===0&&[this.fullImageLink(),this.thousandPixelWideLink()],this.definedSizes().length>0&&this.linksForDefinedSizes(),t.getRenderings().map(n=>M.jsx(Qn,{rendering:n},n.id))]})]})}}sd.propTypes={canvas:a.shape({id:a.string.isRequired,getCanonicalImageUri:a.func.isRequired,getHeight:a.func.isRequired,getRenderings:a.func.isRequired,getWidth:a.func.isRequired}).isRequired,canvasLabel:a.string.isRequired,infoResponse:a.shape({json:a.shape({height:a.number,sizes:a.arrayOf(a.shape({height:a.number,width:a.number})),width:a.number})}).isRequired,restrictDownloadOnSizeDefinition:a.bool.isRequired,t:a.func.isRequired,viewType:a.string.isRequired,windowId:a.string.isRequired};const Ay=(e,{windowId:t})=>({closeDialog:()=>e({type:"CLOSE_WINDOW_DIALOG",windowId:t})}),Ny=(e,{windowId:t})=>({canvases:He.getVisibleCanvases(e,{windowId:t}),canvasLabel:r=>He.getCanvasLabel(e,{canvasId:r,windowId:t}),containerId:He.getContainerId(e),infoResponse:r=>He.selectInfoResponse(e,{windowId:t,canvasId:r})||{},manifest:He.getManifestoInstance(e,{windowId:t}),restrictDownloadOnSizeDefinition:e.config.miradorDownloadPlugin&&e.config.miradorDownloadPlugin.restrictDownloadOnSizeDefinition,open:e.windowDialogs[t]&&e.windowDialogs[t].openDialog==="download",viewType:He.getWindowViewType(e,{windowId:t})});function ud({canvases:e=[],canvasLabel:t,closeDialog:r,containerId:n,infoResponse:o,manifest:i=void 0,open:s=!1,restrictDownloadOnSizeDefinition:u=!1,viewType:c,windowId:d}){const{t:p}=He.useTranslation(),g=de.useMemo(()=>i&&i.getSequences()&&i.getSequences()[0]&&i.getSequences()[0].getRenderings()?i.getSequences()[0].getRenderings():[],[i]);return s?M.jsxs(vu,{"data-testid":"dialog-content",container:document.querySelector(`#${n} .mirador-viewer`),disableEnforceFocus:!0,onClose:r,open:s,scroll:"paper",fullWidth:!0,maxWidth:"xs",children:[M.jsx(yu,{sx:{paddingBottom:0},children:M.jsx(et,{variant:"h2",component:"span",children:p("mirador-dl-plugin.download")})}),M.jsxs(He.ScrollIndicatedDialogContent,{children:[e.map(h=>M.jsx(sd,{canvas:h,canvasLabel:t(h.id),infoResponse:o(h.id),restrictDownloadOnSizeDefinition:u,t:p,viewType:c,windowId:d},h.id)),g.length>0&&M.jsx(Cu,{renderings:g,t:p})]}),M.jsx(bu,{children:M.jsx(Tu,{onClick:r,color:"primary",children:p("mirador-dl-plugin.close")})})]}):""}ud.propTypes={canvasLabel:a.func.isRequired,canvases:a.arrayOf(a.shape({id:a.string,index:a.number})),closeDialog:a.func.isRequired,containerId:a.string.isRequired,infoResponse:a.func.isRequired,manifest:a.shape({getSequences:a.func}),open:a.bool,restrictDownloadOnSizeDefinition:a.bool,viewType:a.string.isRequired,windowId:a.string.isRequired};const cd={target:"Window",mode:"add",name:"MiradorDownloadDialog",component:ud,config:{translations:cu},mapDispatchToProps:Ay,mapStateToProps:Ny},My=[du,cd];qe.default=My,qe.miradorDownloadDialogPlugin=cd,qe.miradorDownloadPlugin=du,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
174
- //# sourceMappingURL=mirador-dl-plugin.js.map