mirador-dl-plugin 1.0.0-alpha.3 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mirador-dl-plugin.es.js +737 -11535
- package/dist/mirador-dl-plugin.es.js.map +1 -1
- package/package.json +22 -21
- package/dist/mirador-dl-plugin.js +0 -188
- package/dist/mirador-dl-plugin.js.map +0 -1
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
(function(Ke,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("react"),require("mirador"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","mirador","react-dom"],ae):(Ke=typeof globalThis<"u"?globalThis:Ke||self,ae(Ke.MiradorDlPlugin={},Ke.React,Ke.mirador,Ke.ReactDOM))})(this,function(Ke,ae,Xe,zt){"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 S=Wa(ae),Jd=Wa(zt);var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ot(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 mt={},pn={exports:{}},Ua;function hn(){return Ua||(Ua=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}(pn)),pn.exports}var mn={exports:{}},Ga;function Zd(){return Ga||(Ga=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}(mn)),mn.exports}var gn={exports:{}},Ya;function Qd(){return Ya||(Ya=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.includes(i))continue;o[i]=r[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gn)),gn.exports}function w(){return w=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},w.apply(null,arguments)}function ef(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 tf(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 rf=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(tf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ef(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}(),qe="-ms-",_r="-moz-",se="-webkit-",Ha="comm",yn="rule",vn="decl",nf="@import",Ka="@keyframes",of="@layer",af=Math.abs,xr=String.fromCharCode,sf=Object.assign;function uf(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function Xa(e){return e.trim()}function cf(e,t){return(e=t.exec(e))?e[0]:e}function ue(e,t,r){return e.replace(t,r)}function bn(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Vt(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function _n(e){return e.length}function Er(e,t){return t.push(e),e}function lf(e,t){return e.map(t).join("")}var Tr=1,xt=1,Ja=0,Fe=0,Ie=0,Et="";function Sr(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Tr,column:xt,length:a,return:""}}function Wt(e,t){return sf(Sr("",null,null,"",null,null,0),e,{length:-e.length},t)}function df(){return Ie}function ff(){return Ie=Fe>0?De(Et,--Fe):0,xt--,Ie===10&&(xt=1,Tr--),Ie}function ze(){return Ie=Fe<Ja?De(Et,Fe++):0,xt++,Ie===10&&(xt=1,Tr++),Ie}function Qe(){return De(Et,Fe)}function Rr(){return Fe}function Ut(e,t){return Vt(Et,e,t)}function Gt(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 Za(e){return Tr=xt=1,Ja=Ze(Et=e),Fe=0,[]}function Qa(e){return Et="",e}function Cr(e){return Xa(Ut(Fe-1,xn(e===91?e+2:e===40?e+1:e)))}function pf(e){for(;(Ie=Qe())&&Ie<33;)ze();return Gt(e)>2||Gt(Ie)>3?"":" "}function hf(e,t){for(;--t&&ze()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Ut(e,Rr()+(t<6&&Qe()==32&&ze()==32))}function xn(e){for(;ze();)switch(Ie){case e:return Fe;case 34:case 39:e!==34&&e!==39&&xn(Ie);break;case 40:e===41&&xn(e);break;case 92:ze();break}return Fe}function mf(e,t){for(;ze()&&e+Ie!==57;)if(e+Ie===84&&Qe()===47)break;return"/*"+Ut(t,Fe-1)+"*"+xr(e===47?e:ze())}function gf(e){for(;!Gt(Qe());)ze();return Ut(e,Fe)}function yf(e){return Qa(Or("",null,null,null,[""],e=Za(e),0,[0],e))}function Or(e,t,r,n,o,i,a,u,c){for(var d=0,f=0,p=a,m=0,b=0,v=0,l=1,_=1,E=1,C=0,T="",x=o,y=i,$=n,h=T;_;)switch(v=C,C=ze()){case 40:if(v!=108&&De(h,p-1)==58){bn(h+=ue(Cr(C),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:h+=Cr(C);break;case 9:case 10:case 13:case 32:h+=pf(v);break;case 92:h+=hf(Rr()-1,7);continue;case 47:switch(Qe()){case 42:case 47:Er(vf(mf(ze(),Rr()),t,r),c);break;default:h+="/"}break;case 123*l:u[d++]=Ze(h)*E;case 125*l:case 59:case 0:switch(C){case 0:case 125:_=0;case 59+f:E==-1&&(h=ue(h,/\f/g,"")),b>0&&Ze(h)-p&&Er(b>32?ts(h+";",n,r,p-1):ts(ue(h," ","")+";",n,r,p-2),c);break;case 59:h+=";";default:if(Er($=es(h,t,r,d,f,o,u,T,x=[],y=[],p),i),C===123)if(f===0)Or(h,t,$,$,x,i,p,u,y);else switch(m===99&&De(h,3)===110?100:m){case 100:case 108:case 109:case 115:Or(e,$,$,n&&Er(es(e,$,$,0,0,o,u,T,o,x=[],p),y),o,y,p,u,n?x:y);break;default:Or(h,$,$,$,[""],y,0,u,y)}}d=f=b=0,l=E=1,T=h="",p=a;break;case 58:p=1+Ze(h),b=v;default:if(l<1){if(C==123)--l;else if(C==125&&l++==0&&ff()==125)continue}switch(h+=xr(C),C*l){case 38:E=f>0?1:(h+="\f",-1);break;case 44:u[d++]=(Ze(h)-1)*E,E=1;break;case 64:Qe()===45&&(h+=Cr(ze())),m=Qe(),f=p=Ze(T=h+=gf(Rr())),C++;break;case 45:v===45&&Ze(h)==2&&(l=0)}}return i}function es(e,t,r,n,o,i,a,u,c,d,f){for(var p=o-1,m=o===0?i:[""],b=_n(m),v=0,l=0,_=0;v<n;++v)for(var E=0,C=Vt(e,p+1,p=af(l=a[v])),T=e;E<b;++E)(T=Xa(l>0?m[E]+" "+C:ue(C,/&\f/g,m[E])))&&(c[_++]=T);return Sr(e,t,r,o===0?yn:u,c,d,f)}function vf(e,t,r){return Sr(e,t,r,Ha,xr(df()),Vt(e,2,-2),0)}function ts(e,t,r,n){return Sr(e,t,r,vn,Vt(e,0,n),Vt(e,n+1,-1),n)}function Tt(e,t){for(var r="",n=_n(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function bf(e,t,r,n){switch(e.type){case of:if(e.children.length)break;case nf:case vn:return e.return=e.return||e.value;case Ha:return"";case Ka:return e.return=e.value+"{"+Tt(e.children,n)+"}";case yn:e.value=e.props.join(",")}return Ze(r=Tt(e.children,n))?e.return=e.value+"{"+r+"}":""}function _f(e){var t=_n(e);return function(r,n,o,i){for(var a="",u=0;u<t;u++)a+=e[u](r,n,o,i)||"";return a}}function xf(e){return function(t){t.root||(t=t.return)&&e(t)}}function rs(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ef=function(t,r,n){for(var o=0,i=0;o=i,i=Qe(),o===38&&i===12&&(r[n]=1),!Gt(i);)ze();return Ut(t,Fe)},Tf=function(t,r){var n=-1,o=44;do switch(Gt(o)){case 0:o===38&&Qe()===12&&(r[n]=1),t[n]+=Ef(Fe-1,r,n);break;case 2:t[n]+=Cr(o);break;case 4:if(o===44){t[++n]=Qe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=xr(o)}while(o=ze());return t},Sf=function(t,r){return Qa(Tf(Za(t),r))},ns=new WeakMap,Rf=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&&!ns.get(n))&&!o){ns.set(t,!0);for(var i=[],a=Sf(r,i),u=n.props,c=0,d=0;c<a.length;c++)for(var f=0;f<u.length;f++,d++)t.props[d]=i[c]?a[c].replace(/&\f/g,u[f]):u[f]+" "+a[c]}}},Cf=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function os(e,t){switch(uf(e,t)){case 5103:return se+"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 se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+_r+e+qe+e+e;case 6828:case 4268:return se+e+qe+e+e;case 6165:return se+e+qe+"flex-"+e+e;case 5187:return se+e+ue(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return se+e+qe+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return se+e+qe+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+qe+ue(e,"shrink","negative")+e;case 5292:return se+e+qe+ue(e,"basis","preferred-size")+e;case 6060:return se+"box-"+ue(e,"-grow","")+se+e+qe+ue(e,"grow","positive")+e;case 4554:return se+ue(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,se+"$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(Ze(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+_r+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bn(e,"stretch")?os(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Ze(e)-3-(~bn(e,"!important")&&10))){case 107:return ue(e,":",":"+se)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(De(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+qe+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+qe+e+e}return e}var Of=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vn:t.return=os(t.value,t.length);break;case Ka:return Tt([Wt(t,{value:ue(t.value,"@","@"+se)})],o);case yn:if(t.length)return lf(t.props,function(i){switch(cf(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tt([Wt(t,{props:[ue(i,/:(read-\w+)/,":"+_r+"$1")]})],o);case"::placeholder":return Tt([Wt(t,{props:[ue(i,/:(plac\w+)/,":"+se+"input-$1")]}),Wt(t,{props:[ue(i,/:(plac\w+)/,":"+_r+"$1")]}),Wt(t,{props:[ue(i,/:(plac\w+)/,qe+"input-$1")]})],o)}return""})}},Pf=[Of],is=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 _=l.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||Pf,i={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var _=l.getAttribute("data-emotion").split(" "),E=1;E<_.length;E++)i[_[E]]=!0;u.push(l)});var c,d=[Rf,Cf];{var f,p=[bf,xf(function(l){f.insert(l)})],m=_f(d.concat(o,p)),b=function(_){return Tt(yf(_),m)};c=function(_,E,C,T){f=C,b(_?_+"{"+E.styles+"}":E.styles),T&&(v.inserted[E.name]=!0)}}var v={key:r,sheet:new rf({key:r,container:a,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},Pr={exports:{}},ce={};/** @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 as;function wf(){if(as)return ce;as=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,a=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,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case d:case n:case i:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case u:case f:case v:case b:case a:return y;default:return $}}case r:return $}}}function x(y){return T(y)===d}return ce.AsyncMode=c,ce.ConcurrentMode=d,ce.ContextConsumer=u,ce.ContextProvider=a,ce.Element=t,ce.ForwardRef=f,ce.Fragment=n,ce.Lazy=v,ce.Memo=b,ce.Portal=r,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=p,ce.isAsyncMode=function(y){return x(y)||T(y)===c},ce.isConcurrentMode=x,ce.isContextConsumer=function(y){return T(y)===u},ce.isContextProvider=function(y){return T(y)===a},ce.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},ce.isForwardRef=function(y){return T(y)===f},ce.isFragment=function(y){return T(y)===n},ce.isLazy=function(y){return T(y)===v},ce.isMemo=function(y){return T(y)===b},ce.isPortal=function(y){return T(y)===r},ce.isProfiler=function(y){return T(y)===i},ce.isStrictMode=function(y){return T(y)===o},ce.isSuspense=function(y){return T(y)===p},ce.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===i||y===o||y===p||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===b||y.$$typeof===a||y.$$typeof===u||y.$$typeof===f||y.$$typeof===_||y.$$typeof===E||y.$$typeof===C||y.$$typeof===l)},ce.typeOf=T,ce}var le={};/** @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 ss;function If(){return ss||(ss=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,a=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,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(P){return typeof P=="string"||typeof P=="function"||P===n||P===d||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===b||P.$$typeof===a||P.$$typeof===u||P.$$typeof===f||P.$$typeof===_||P.$$typeof===E||P.$$typeof===C||P.$$typeof===l)}function x(P){if(typeof P=="object"&&P!==null){var ge=P.$$typeof;switch(ge){case t:var ie=P.type;switch(ie){case c:case d:case n:case i:case o:case p:return ie;default:var Se=ie&&ie.$$typeof;switch(Se){case u:case f:case v:case b:case a:return Se;default:return ge}}case r:return ge}}}var y=c,$=d,h=u,O=a,R=t,I=f,M=n,F=v,D=b,L=r,B=i,q=o,G=p,Z=!1;function Pe(P){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(P)||x(P)===c}function A(P){return x(P)===d}function j(P){return x(P)===u}function Q(P){return x(P)===a}function X(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){return x(P)===f}function H(P){return x(P)===n}function Y(P){return x(P)===v}function K(P){return x(P)===b}function W(P){return x(P)===r}function U(P){return x(P)===i}function J(P){return x(P)===o}function be(P){return x(P)===p}le.AsyncMode=y,le.ConcurrentMode=$,le.ContextConsumer=h,le.ContextProvider=O,le.Element=R,le.ForwardRef=I,le.Fragment=M,le.Lazy=F,le.Memo=D,le.Portal=L,le.Profiler=B,le.StrictMode=q,le.Suspense=G,le.isAsyncMode=Pe,le.isConcurrentMode=A,le.isContextConsumer=j,le.isContextProvider=Q,le.isElement=X,le.isForwardRef=V,le.isFragment=H,le.isLazy=Y,le.isMemo=K,le.isPortal=W,le.isProfiler=U,le.isStrictMode=J,le.isSuspense=be,le.isValidElementType=T,le.typeOf=x}()),le}var us;function $f(){return us||(us=1,process.env.NODE_ENV==="production"?Pr.exports=wf():Pr.exports=If()),Pr.exports}var En,cs;function Af(){if(cs)return En;cs=1;var e=$f(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(v){return e.isMemo(v)?o:i[v.$$typeof]||t}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function b(v,l,_){if(typeof l!="string"){if(m){var E=p(l);E&&E!==m&&b(v,E,_)}var C=c(l);d&&(C=C.concat(d(l)));for(var T=a(v),x=a(l),y=0;y<C.length;++y){var $=C[y];if(!r[$]&&!(_&&_[$])&&!(x&&x[$])&&!(T&&T[$])){var h=f(l,$);try{u(v,$,h)}catch{}}}}return v}return En=b,En}Af();var Mf=!0;function ls(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Tn=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Mf===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Sn=function(t,r,n){Tn(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Nf(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Df=/[A-Z]|^ms/g,jf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ds=function(t){return t.charCodeAt(1)===45},fs=function(t){return t!=null&&typeof t!="boolean"},Rn=rs(function(e){return ds(e)?e:e.replace(Df,"-$&").toLowerCase()}),ps=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jf,function(n,o,i){return et={name:o,styles:i,next:et},o})}return kf[t]!==1&&!ds(t)&&typeof r=="number"&&r!==0?r+"px":r};function Yt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return et={name:o.name,styles:o.styles,next:et},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)et={name:a.name,styles:a.styles,next:et},a=a.next;var u=i.styles+";";return u}return qf(e,t,r)}case"function":{if(e!==void 0){var c=et,d=r(e);return et=c,Yt(e,t,d)}break}}var f=r;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function qf(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Yt(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var u=a;t!=null&&t[u]!==void 0?n+=i+"{"+t[u]+"}":fs(u)&&(n+=Rn(i)+":"+ps(i,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)fs(a[c])&&(n+=Rn(i)+":"+ps(i,a[c])+";");else{var d=Yt(e,t,a);switch(i){case"animation":case"animationName":{n+=Rn(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var hs=/label:\s*([^\s;{]+)\s*(;|$)/g,et;function wr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";et=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Yt(r,t,i);else{var a=i;o+=a[0]}for(var u=1;u<e.length;u++)if(o+=Yt(r,t,e[u]),n){var c=i;o+=c[u]}hs.lastIndex=0;for(var d="",f;(f=hs.exec(o))!==null;)d+="-"+f[1];var p=Nf(o)+d;return{name:p,styles:o,next:et}}var Lf=function(t){return t()},ms=S.useInsertionEffect?S.useInsertionEffect:!1,gs=ms||Lf,ys=ms||S.useLayoutEffect,vs=S.createContext(typeof HTMLElement<"u"?is({key:"css"}):null),Ff=vs.Provider,Cn=function(t){return ae.forwardRef(function(r,n){var o=ae.useContext(vs);return t(r,o,n)})},Ht=S.createContext({}),On={}.hasOwnProperty,Pn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Bf=function(t,r){var n={};for(var o in r)On.call(r,o)&&(n[o]=r[o]);return n[Pn]=t,n},zf=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tn(r,n,o),gs(function(){return Sn(r,n,o)}),null},Vf=Cn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Pn],i=[n],a="";typeof e.className=="string"?a=ls(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var u=wr(i,void 0,S.useContext(Ht));a+=t.key+"-"+u.name;var c={};for(var d in e)On.call(e,d)&&d!=="css"&&d!==Pn&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),S.createElement(S.Fragment,null,S.createElement(zf,{cache:t,serialized:u,isStringTag:typeof o=="string"}),S.createElement(o,c))}),Wf=Vf,bs=function(t,r){var n=arguments;if(r==null||!On.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Wf,i[1]=Bf(t,r);for(var a=2;a<o;a++)i[a]=n[a];return S.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(bs||(bs={}));var Uf=Cn(function(e,t){var r=e.styles,n=wr([r],void 0,S.useContext(Ht)),o=S.useRef();return ys(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,u],function(){a.flush()}},[t]),ys(function(){var i=o.current,a=i[0],u=i[1];if(u){i[1]=!1;return}if(n.next!==void 0&&Sn(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function _s(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wr(t)}function Ir(){var e=_s.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Gf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Yf=rs(function(e){return Gf.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Hf=Yf,Kf=function(t){return t!=="theme"},xs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Hf:Kf},Es=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Xf=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Tn(r,n,o),gs(function(){return Sn(r,n,o)}),null},Jf=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var u=Es(t,r,n),c=u||xs(o),d=!c("as");return function(){var f=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{var m=f[0];p.push(m[0]);for(var b=f.length,v=1;v<b;v++)p.push(f[v],m[v])}var l=Cn(function(_,E,C){var T=d&&_.as||o,x="",y=[],$=_;if(_.theme==null){$={};for(var h in _)$[h]=_[h];$.theme=S.useContext(Ht)}typeof _.className=="string"?x=ls(E.registered,y,_.className):_.className!=null&&(x=_.className+" ");var O=wr(p.concat(y),E.registered,$);x+=E.key+"-"+O.name,a!==void 0&&(x+=" "+a);var R=d&&u===void 0?xs(T):c,I={};for(var M in _)d&&M==="as"||R(M)&&(I[M]=_[M]);return I.className=x,C&&(I.ref=C),S.createElement(S.Fragment,null,S.createElement(Xf,{cache:E,serialized:O,isStringTag:typeof T=="string"}),S.createElement(T,I))});return l.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",l.defaultProps=t.defaultProps,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_styles=p,l.__emotion_forwardProp=u,Object.defineProperty(l,"toString",{value:function(){return"."+a}}),l.withComponent=function(_,E){var C=e(_,w({},r,E,{shouldForwardProp:Es(l,E,!0)}));return C.apply(void 0,p)},l}},Zf=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],wn=Jf.bind(null);Zf.forEach(function(e){wn[e]=wn(e)});var $r={exports:{}},Ar={exports:{}},de={};/** @license React v16.13.1
|
|
16
|
-
* react-is.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var Ts;function Qf(){if(Ts)return de;Ts=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,a=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,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(y){if(typeof y=="object"&&y!==null){var $=y.$$typeof;switch($){case t:switch(y=y.type,y){case c:case d:case n:case i:case o:case p:return y;default:switch(y=y&&y.$$typeof,y){case u:case f:case v:case b:case a:return y;default:return $}}case r:return $}}}function x(y){return T(y)===d}return de.AsyncMode=c,de.ConcurrentMode=d,de.ContextConsumer=u,de.ContextProvider=a,de.Element=t,de.ForwardRef=f,de.Fragment=n,de.Lazy=v,de.Memo=b,de.Portal=r,de.Profiler=i,de.StrictMode=o,de.Suspense=p,de.isAsyncMode=function(y){return x(y)||T(y)===c},de.isConcurrentMode=x,de.isContextConsumer=function(y){return T(y)===u},de.isContextProvider=function(y){return T(y)===a},de.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},de.isForwardRef=function(y){return T(y)===f},de.isFragment=function(y){return T(y)===n},de.isLazy=function(y){return T(y)===v},de.isMemo=function(y){return T(y)===b},de.isPortal=function(y){return T(y)===r},de.isProfiler=function(y){return T(y)===i},de.isStrictMode=function(y){return T(y)===o},de.isSuspense=function(y){return T(y)===p},de.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===d||y===i||y===o||y===p||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===b||y.$$typeof===a||y.$$typeof===u||y.$$typeof===f||y.$$typeof===_||y.$$typeof===E||y.$$typeof===C||y.$$typeof===l)},de.typeOf=T,de}var fe={};/** @license React v16.13.1
|
|
23
|
-
* react-is.development.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var Ss;function ep(){return Ss||(Ss=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,a=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,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(P){return typeof P=="string"||typeof P=="function"||P===n||P===d||P===i||P===o||P===p||P===m||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===b||P.$$typeof===a||P.$$typeof===u||P.$$typeof===f||P.$$typeof===_||P.$$typeof===E||P.$$typeof===C||P.$$typeof===l)}function x(P){if(typeof P=="object"&&P!==null){var ge=P.$$typeof;switch(ge){case t:var ie=P.type;switch(ie){case c:case d:case n:case i:case o:case p:return ie;default:var Se=ie&&ie.$$typeof;switch(Se){case u:case f:case v:case b:case a:return Se;default:return ge}}case r:return ge}}}var y=c,$=d,h=u,O=a,R=t,I=f,M=n,F=v,D=b,L=r,B=i,q=o,G=p,Z=!1;function Pe(P){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(P)||x(P)===c}function A(P){return x(P)===d}function j(P){return x(P)===u}function Q(P){return x(P)===a}function X(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){return x(P)===f}function H(P){return x(P)===n}function Y(P){return x(P)===v}function K(P){return x(P)===b}function W(P){return x(P)===r}function U(P){return x(P)===i}function J(P){return x(P)===o}function be(P){return x(P)===p}fe.AsyncMode=y,fe.ConcurrentMode=$,fe.ContextConsumer=h,fe.ContextProvider=O,fe.Element=R,fe.ForwardRef=I,fe.Fragment=M,fe.Lazy=F,fe.Memo=D,fe.Portal=L,fe.Profiler=B,fe.StrictMode=q,fe.Suspense=G,fe.isAsyncMode=Pe,fe.isConcurrentMode=A,fe.isContextConsumer=j,fe.isContextProvider=Q,fe.isElement=X,fe.isForwardRef=V,fe.isFragment=H,fe.isLazy=Y,fe.isMemo=K,fe.isPortal=W,fe.isProfiler=U,fe.isStrictMode=J,fe.isSuspense=be,fe.isValidElementType=T,fe.typeOf=x}()),fe}var Rs;function Cs(){return Rs||(Rs=1,process.env.NODE_ENV==="production"?Ar.exports=Qf():Ar.exports=ep()),Ar.exports}/*
|
|
30
|
-
object-assign
|
|
31
|
-
(c) Sindre Sorhus
|
|
32
|
-
@license MIT
|
|
33
|
-
*/var In,Os;function tp(){if(Os)return In;Os=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 a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return In=o()?Object.assign:function(i,a){for(var u,c=n(i),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var p in u)t.call(u,p)&&(c[p]=u[p]);if(e){d=e(u);for(var m=0;m<d.length;m++)r.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},In}var $n,Ps;function An(){if(Ps)return $n;Ps=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $n=e,$n}var Mn,ws;function Is(){return ws||(ws=1,Mn=Function.call.bind(Object.prototype.hasOwnProperty)),Mn}var Nn,$s;function rp(){if($s)return Nn;$s=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=An(),r={},n=Is();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[f](a,f,c,u,null,t)}catch(v){p=v}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+p.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Nn=o,Nn}var kn,As;function np(){if(As)return kn;As=1;var e=Cs(),t=tp(),r=An(),n=Is(),o=rp(),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 a(){return null}return kn=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(A){var j=A&&(d&&A[d]||A[f]);if(typeof j=="function")return j}var m="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:C(),arrayOf:T,element:x(),elementType:y(),instanceOf:$,node:I(),objectOf:O,oneOf:h,oneOfType:R,shape:F,exact:D};function v(A,j){return A===j?A!==0||1/A===1/j:A!==A&&j!==j}function l(A,j){this.message=A,this.data=j&&typeof j=="object"?j:{},this.stack=""}l.prototype=Error.prototype;function _(A){if(process.env.NODE_ENV!=="production")var j={},Q=0;function X(H,Y,K,W,U,J,be){if(W=W||m,J=J||K,be!==r){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=W+":"+K;!j[ge]&&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."),j[ge]=!0,Q++)}}return Y[K]==null?H?Y[K]===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:A(Y,K,W,U,J)}var V=X.bind(null,!1);return V.isRequired=X.bind(null,!0),V}function E(A){function j(Q,X,V,H,Y,K){var W=Q[X],U=q(W);if(U!==A){var J=G(W);return new l("Invalid "+H+" `"+Y+"` of type "+("`"+J+"` supplied to `"+V+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return _(j)}function C(){return _(a)}function T(A){function j(Q,X,V,H,Y){if(typeof A!="function")return new l("Property `"+Y+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var K=Q[X];if(!Array.isArray(K)){var W=q(K);return new l("Invalid "+H+" `"+Y+"` of type "+("`"+W+"` supplied to `"+V+"`, expected an array."))}for(var U=0;U<K.length;U++){var J=A(K,U,V,H,Y+"["+U+"]",r);if(J instanceof Error)return J}return null}return _(j)}function x(){function A(j,Q,X,V,H){var Y=j[Q];if(!u(Y)){var K=q(Y);return new l("Invalid "+V+" `"+H+"` of type "+("`"+K+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return _(A)}function y(){function A(j,Q,X,V,H){var Y=j[Q];if(!e.isValidElementType(Y)){var K=q(Y);return new l("Invalid "+V+" `"+H+"` of type "+("`"+K+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return _(A)}function $(A){function j(Q,X,V,H,Y){if(!(Q[X]instanceof A)){var K=A.name||m,W=Pe(Q[X]);return new l("Invalid "+H+" `"+Y+"` of type "+("`"+W+"` supplied to `"+V+"`, expected ")+("instance of `"+K+"`."))}return null}return _(j)}function h(A){if(!Array.isArray(A))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.")),a;function j(Q,X,V,H,Y){for(var K=Q[X],W=0;W<A.length;W++)if(v(K,A[W]))return null;var U=JSON.stringify(A,function(be,P){var ge=G(P);return ge==="symbol"?String(P):P});return new l("Invalid "+H+" `"+Y+"` of value `"+String(K)+"` "+("supplied to `"+V+"`, expected one of "+U+"."))}return _(j)}function O(A){function j(Q,X,V,H,Y){if(typeof A!="function")return new l("Property `"+Y+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var K=Q[X],W=q(K);if(W!=="object")return new l("Invalid "+H+" `"+Y+"` of type "+("`"+W+"` supplied to `"+V+"`, expected an object."));for(var U in K)if(n(K,U)){var J=A(K,U,V,H,Y+"."+U,r);if(J instanceof Error)return J}return null}return _(j)}function R(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var j=0;j<A.length;j++){var Q=A[j];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(Q)+" at index "+j+"."),a}function X(V,H,Y,K,W){for(var U=[],J=0;J<A.length;J++){var be=A[J],P=be(V,H,Y,K,W,r);if(P==null)return null;P.data&&n(P.data,"expectedType")&&U.push(P.data.expectedType)}var ge=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new l("Invalid "+K+" `"+W+"` supplied to "+("`"+Y+"`"+ge+"."))}return _(X)}function I(){function A(j,Q,X,V,H){return L(j[Q])?null:new l("Invalid "+V+" `"+H+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return _(A)}function M(A,j,Q,X,V){return new l((A||"React class")+": "+j+" type `"+Q+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function F(A){function j(Q,X,V,H,Y){var K=Q[X],W=q(K);if(W!=="object")return new l("Invalid "+H+" `"+Y+"` of type `"+W+"` "+("supplied to `"+V+"`, expected `object`."));for(var U in A){var J=A[U];if(typeof J!="function")return M(V,H,Y,U,G(J));var be=J(K,U,V,H,Y+"."+U,r);if(be)return be}return null}return _(j)}function D(A){function j(Q,X,V,H,Y){var K=Q[X],W=q(K);if(W!=="object")return new l("Invalid "+H+" `"+Y+"` of type `"+W+"` "+("supplied to `"+V+"`, expected `object`."));var U=t({},Q[X],A);for(var J in U){var be=A[J];if(n(A,J)&&typeof be!="function")return M(V,H,Y,J,G(be));if(!be)return new l("Invalid "+H+" `"+Y+"` key `"+J+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(Q[X],null," ")+`
|
|
34
|
-
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var P=be(K,J,V,H,Y+"."+J,r);if(P)return P}return null}return _(j)}function L(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(L);if(A===null||u(A))return!0;var j=p(A);if(j){var Q=j.call(A),X;if(j!==A.entries){for(;!(X=Q.next()).done;)if(!L(X.value))return!1}else for(;!(X=Q.next()).done;){var V=X.value;if(V&&!L(V[1]))return!1}}else return!1;return!0;default:return!1}}function B(A,j){return A==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function q(A){var j=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":B(j,A)?"symbol":j}function G(A){if(typeof A>"u"||A===null)return""+A;var j=q(A);if(j==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return j}function Z(A){var j=G(A);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function Pe(A){return!A.constructor||!A.constructor.name?m:A.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},kn}var Dn,Ms;function op(){if(Ms)return Dn;Ms=1;var e=An();function t(){}function r(){}return r.resetWarningCache=t,Dn=function(){function n(a,u,c,d,f,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}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},Dn}var Ns;function ip(){if(Ns)return $r.exports;if(Ns=1,process.env.NODE_ENV!=="production"){var e=Cs(),t=!0;$r.exports=np()(e.isElement,t)}else $r.exports=op()();return $r.exports}var ap=ip();const s=br(ap);var Mr={exports:{}},Kt={};/**
|
|
35
|
-
* @license React
|
|
36
|
-
* react-jsx-runtime.production.min.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var ks;function sp(){if(ks)return Kt;ks=1;var e=ae,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 a(u,c,d){var f,p={},m=null,b=null;d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(b=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(p[f]=c[f]);if(u&&u.defaultProps)for(f in c=u.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:u,key:m,ref:b,props:p,_owner:o.current}}return Kt.Fragment=r,Kt.jsx=a,Kt.jsxs=a,Kt}var Xt={};/**
|
|
43
|
-
* @license React
|
|
44
|
-
* react-jsx-runtime.development.js
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var Ds;function up(){return Ds||(Ds=1,process.env.NODE_ENV!=="production"&&function(){var e=ae,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"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.iterator,l="@@iterator";function _(g){if(g===null||typeof g!="object")return null;var N=v&&g[v]||g[l];return typeof N=="function"?N:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(g){{for(var N=arguments.length,z=new Array(N>1?N-1:0),ee=1;ee<N;ee++)z[ee-1]=arguments[ee];T("error",g,z)}}function T(g,N,z){{var ee=E.ReactDebugCurrentFrame,he=ee.getStackAddendum();he!==""&&(N+="%s",z=z.concat([he]));var _e=z.map(function(oe){return String(oe)});_e.unshift("Warning: "+N),Function.prototype.apply.call(console[g],console,_e)}}var x=!1,y=!1,$=!1,h=!1,O=!1,R;R=Symbol.for("react.module.reference");function I(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===i||O||g===o||g===d||g===f||h||g===b||x||y||$||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===p||g.$$typeof===a||g.$$typeof===u||g.$$typeof===c||g.$$typeof===R||g.getModuleId!==void 0))}function M(g,N,z){var ee=g.displayName;if(ee)return ee;var he=N.displayName||N.name||"";return he!==""?z+"("+he+")":z}function F(g){return g.displayName||"Context"}function D(g){if(g==null)return null;if(typeof g.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case u:var N=g;return F(N)+".Consumer";case a:var z=g;return F(z._context)+".Provider";case c:return M(g,g.render,"ForwardRef");case p:var ee=g.displayName||null;return ee!==null?ee:D(g.type)||"Memo";case m:{var he=g,_e=he._payload,oe=he._init;try{return D(oe(_e))}catch{return null}}}return null}var L=Object.assign,B=0,q,G,Z,Pe,A,j,Q;function X(){}X.__reactDisabledLog=!0;function V(){{if(B===0){q=console.log,G=console.info,Z=console.warn,Pe=console.error,A=console.group,j=console.groupCollapsed,Q=console.groupEnd;var g={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}B++}}function H(){{if(B--,B===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},g,{value:q}),info:L({},g,{value:G}),warn:L({},g,{value:Z}),error:L({},g,{value:Pe}),group:L({},g,{value:A}),groupCollapsed:L({},g,{value:j}),groupEnd:L({},g,{value:Q})})}B<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=E.ReactCurrentDispatcher,K;function W(g,N,z){{if(K===void 0)try{throw Error()}catch(he){var ee=he.stack.trim().match(/\n( *(at )?)/);K=ee&&ee[1]||""}return`
|
|
51
|
-
`+K+g}}var U=!1,J;{var be=typeof WeakMap=="function"?WeakMap:Map;J=new be}function P(g,N){if(!g||U)return"";{var z=J.get(g);if(z!==void 0)return z}var ee;U=!0;var he=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _e;_e=Y.current,Y.current=null,V();try{if(N){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(Be){ee=Be}Reflect.construct(g,[],oe)}else{try{oe.call()}catch(Be){ee=Be}g.call(oe.prototype)}}else{try{throw Error()}catch(Be){ee=Be}g()}}catch(Be){if(Be&&ee&&typeof Be.stack=="string"){for(var re=Be.stack.split(`
|
|
52
|
-
`),Le=ee.stack.split(`
|
|
53
|
-
`),we=re.length-1,Ae=Le.length-1;we>=1&&Ae>=0&&re[we]!==Le[Ae];)Ae--;for(;we>=1&&Ae>=0;we--,Ae--)if(re[we]!==Le[Ae]){if(we!==1||Ae!==1)do if(we--,Ae--,Ae<0||re[we]!==Le[Ae]){var He=`
|
|
54
|
-
`+re[we].replace(" at new "," at ");return g.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",g.displayName)),typeof g=="function"&&J.set(g,He),He}while(we>=1&&Ae>=0);break}}}finally{U=!1,Y.current=_e,H(),Error.prepareStackTrace=he}var Bt=g?g.displayName||g.name:"",_t=Bt?W(Bt):"";return typeof g=="function"&&J.set(g,_t),_t}function ge(g,N,z){return P(g,!1)}function ie(g){var N=g.prototype;return!!(N&&N.isReactComponent)}function Se(g,N,z){if(g==null)return"";if(typeof g=="function")return P(g,ie(g));if(typeof g=="string")return W(g);switch(g){case d:return W("Suspense");case f:return W("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return ge(g.render);case p:return Se(g.type,N,z);case m:{var ee=g,he=ee._payload,_e=ee._init;try{return Se(_e(he),N,z)}catch{}}}return""}var We=Object.prototype.hasOwnProperty,ct={},qt=E.ReactDebugCurrentFrame;function pt(g){if(g){var N=g._owner,z=Se(g.type,g._source,N?N.type:null);qt.setExtraStackFrame(z)}else qt.setExtraStackFrame(null)}function pr(g,N,z,ee,he){{var _e=Function.call.bind(We);for(var oe in g)if(_e(g,oe)){var re=void 0;try{if(typeof g[oe]!="function"){var Le=Error((ee||"React class")+": "+z+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}re=g[oe](N,oe,ee,z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(pt(he),C("%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).",ee||"React class",z,oe,typeof re),pt(null)),re instanceof Error&&!(re.message in ct)&&(ct[re.message]=!0,pt(he),C("Failed %s type: %s",z,re.message),pt(null))}}}var hr=Array.isArray;function mr(g){return hr(g)}function ja(g){{var N=typeof Symbol=="function"&&Symbol.toStringTag,z=N&&g[Symbol.toStringTag]||g.constructor.name||"Object";return z}}function Lt(g){try{return ht(g),!1}catch{return!0}}function ht(g){return""+g}function dn(g){if(Lt(g))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ja(g)),ht(g)}var gr=E.ReactCurrentOwner,qa={key:!0,ref:!0,__self:!0,__source:!0},te,yr;function La(g){if(We.call(g,"ref")){var N=Object.getOwnPropertyDescriptor(g,"ref").get;if(N&&N.isReactWarning)return!1}return g.ref!==void 0}function fn(g){if(We.call(g,"key")){var N=Object.getOwnPropertyDescriptor(g,"key").get;if(N&&N.isReactWarning)return!1}return g.key!==void 0}function Vd(g,N){typeof g.ref=="string"&&gr.current}function qb(g,N){{var z=function(){te||(te=!0,C("%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)",N))};z.isReactWarning=!0,Object.defineProperty(g,"key",{get:z,configurable:!0})}}function Lb(g,N){{var z=function(){yr||(yr=!0,C("%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)",N))};z.isReactWarning=!0,Object.defineProperty(g,"ref",{get:z,configurable:!0})}}var Fb=function(g,N,z,ee,he,_e,oe){var re={$$typeof:t,type:g,key:N,ref:z,props:oe,_owner:_e};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:ee}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Bb(g,N,z,ee,he){{var _e,oe={},re=null,Le=null;z!==void 0&&(dn(z),re=""+z),fn(N)&&(dn(N.key),re=""+N.key),La(N)&&(Le=N.ref,Vd(N,he));for(_e in N)We.call(N,_e)&&!qa.hasOwnProperty(_e)&&(oe[_e]=N[_e]);if(g&&g.defaultProps){var we=g.defaultProps;for(_e in we)oe[_e]===void 0&&(oe[_e]=we[_e])}if(re||Le){var Ae=typeof g=="function"?g.displayName||g.name||"Unknown":g;re&&qb(oe,Ae),Le&&Lb(oe,Ae)}return Fb(g,re,Le,he,ee,gr.current,oe)}}var Fa=E.ReactCurrentOwner,Wd=E.ReactDebugCurrentFrame;function Ft(g){if(g){var N=g._owner,z=Se(g.type,g._source,N?N.type:null);Wd.setExtraStackFrame(z)}else Wd.setExtraStackFrame(null)}var Ba;Ba=!1;function za(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Ud(){{if(Fa.current){var g=D(Fa.current.type);if(g)return`
|
|
55
|
-
|
|
56
|
-
Check the render method of \``+g+"`."}return""}}function zb(g){return""}var Gd={};function Vb(g){{var N=Ud();if(!N){var z=typeof g=="string"?g:g.displayName||g.name;z&&(N=`
|
|
57
|
-
|
|
58
|
-
Check the top-level render call using <`+z+">.")}return N}}function Yd(g,N){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var z=Vb(N);if(Gd[z])return;Gd[z]=!0;var ee="";g&&g._owner&&g._owner!==Fa.current&&(ee=" It was passed a child from "+D(g._owner.type)+"."),Ft(g),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',z,ee),Ft(null)}}function Hd(g,N){{if(typeof g!="object")return;if(mr(g))for(var z=0;z<g.length;z++){var ee=g[z];za(ee)&&Yd(ee,N)}else if(za(g))g._store&&(g._store.validated=!0);else if(g){var he=_(g);if(typeof he=="function"&&he!==g.entries)for(var _e=he.call(g),oe;!(oe=_e.next()).done;)za(oe.value)&&Yd(oe.value,N)}}}function Wb(g){{var N=g.type;if(N==null||typeof N=="string")return;var z;if(typeof N=="function")z=N.propTypes;else if(typeof N=="object"&&(N.$$typeof===c||N.$$typeof===p))z=N.propTypes;else return;if(z){var ee=D(N);pr(z,g.props,"prop",ee,g)}else if(N.PropTypes!==void 0&&!Ba){Ba=!0;var he=D(N);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof N.getDefaultProps=="function"&&!N.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ub(g){{for(var N=Object.keys(g.props),z=0;z<N.length;z++){var ee=N[z];if(ee!=="children"&&ee!=="key"){Ft(g),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Ft(null);break}}g.ref!==null&&(Ft(g),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var Kd={};function Xd(g,N,z,ee,he,_e){{var oe=I(g);if(!oe){var re="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).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 Le=zb();Le?re+=Le:re+=Ud();var we;g===null?we="null":mr(g)?we="array":g!==void 0&&g.$$typeof===t?(we="<"+(D(g.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof g,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var Ae=Bb(g,N,z,he,_e);if(Ae==null)return Ae;if(oe){var He=N.children;if(He!==void 0)if(ee)if(mr(He)){for(var Bt=0;Bt<He.length;Bt++)Hd(He[Bt],g);Object.freeze&&Object.freeze(He)}else C("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 Hd(He,g)}if(We.call(N,"key")){var _t=D(g),Be=Object.keys(N).filter(function(Jb){return Jb!=="key"}),Va=Be.length>0?"{key: someKey, "+Be.join(": ..., ")+": ...}":"{key: someKey}";if(!Kd[_t+Va]){var Xb=Be.length>0?"{"+Be.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
|
|
59
|
-
let props = %s;
|
|
60
|
-
<%s {...props} />
|
|
61
|
-
React keys must be passed directly to JSX without using spread:
|
|
62
|
-
let props = %s;
|
|
63
|
-
<%s key={someKey} {...props} />`,Va,_t,Xb,_t),Kd[_t+Va]=!0}}return g===n?Ub(Ae):Wb(Ae),Ae}}function Gb(g,N,z){return Xd(g,N,z,!0)}function Yb(g,N,z){return Xd(g,N,z,!1)}var Hb=Yb,Kb=Gb;Xt.Fragment=n,Xt.jsx=Hb,Xt.jsxs=Kb}()),Xt}var js;function qs(){return js||(js=1,process.env.NODE_ENV==="production"?Mr.exports=sp():Mr.exports=up()),Mr.exports}var k=qs();let jn;typeof document=="object"&&(jn=is({key:"css",prepend:!0}));function Ls(e){const{injectFirst:t,children:r}=e;return t&&jn?k.jsx(Ff,{value:jn,children:r}):r}process.env.NODE_ENV!=="production"&&(Ls.propTypes={children:s.node,injectFirst:s.bool});function cp(e){return e==null||Object.keys(e).length===0}function Fs(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(cp(o)?r:o):t;return k.jsx(Uf,{styles:n})}process.env.NODE_ENV!=="production"&&(Fs.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
64
|
-
* @mui/styled-engine v5.16.14
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/function lp(e,t){const r=wn(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(`
|
|
70
|
-
`)):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 dp=ot(Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Fs,StyledEngineProvider:Ls,ThemeContext:Ht,css:_s,default:lp,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Ir},Symbol.toStringTag,{value:"Module"})));function lt(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 Bs(e){if(S.isValidElement(e)||!lt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Bs(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?w({},e):e;return lt(e)&<(t)&&Object.keys(t).forEach(o=>{S.isValidElement(t[o])?n[o]=t[o]:lt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&<(e[o])?n[o]=tt(e[o],t[o],r):r.clone?n[o]=lt(t[o])?Bs(t[o]):t[o]:n[o]=t[o]}),n}const fp=ot(Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:lt},Symbol.toStringTag,{value:"Module"})));function Jt(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 pp=Object.freeze(Object.defineProperty({__proto__:null,default:Jt},Symbol.toStringTag,{value:"Module"}));function me(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const hp=ot(Object.freeze(Object.defineProperty({__proto__:null,default:me},Symbol.toStringTag,{value:"Module"})));var Nr={exports:{}},ye={};/**
|
|
71
|
-
* @license React
|
|
72
|
-
* react-is.production.js
|
|
73
|
-
*
|
|
74
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the MIT license found in the
|
|
77
|
-
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var zs;function mp(){if(zs)return ye;zs=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"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function v(l){if(typeof l=="object"&&l!==null){var _=l.$$typeof;switch(_){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 a:case u:case p:case f:return l;case i:return l;default:return _}}case t:return _}}}return ye.ContextConsumer=i,ye.ContextProvider=a,ye.Element=e,ye.ForwardRef=u,ye.Fragment=r,ye.Lazy=p,ye.Memo=f,ye.Portal=t,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=d,ye.isContextConsumer=function(l){return v(l)===i},ye.isContextProvider=function(l){return v(l)===a},ye.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},ye.isForwardRef=function(l){return v(l)===u},ye.isFragment=function(l){return v(l)===r},ye.isLazy=function(l){return v(l)===p},ye.isMemo=function(l){return v(l)===f},ye.isPortal=function(l){return v(l)===t},ye.isProfiler=function(l){return v(l)===o},ye.isStrictMode=function(l){return v(l)===n},ye.isSuspense=function(l){return v(l)===c},ye.isSuspenseList=function(l){return v(l)===d},ye.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===c||l===d||l===m||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===f||l.$$typeof===a||l.$$typeof===i||l.$$typeof===u||l.$$typeof===b||l.getModuleId!==void 0)},ye.typeOf=v,ye}var ve={};/**
|
|
79
|
-
* @license React
|
|
80
|
-
* react-is.development.js
|
|
81
|
-
*
|
|
82
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the MIT license found in the
|
|
85
|
-
* LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/var Vs;function gp(){return Vs||(Vs=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(typeof l=="object"&&l!==null){var _=l.$$typeof;switch(_){case t:switch(l=l.type,l){case n:case i:case o:case d:case f:return l;default:switch(l=l&&l.$$typeof,l){case u:case c:case m:case p:return l;case a:return l;default:return _}}case r:return _}}}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"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");ve.ContextConsumer=a,ve.ContextProvider=u,ve.Element=t,ve.ForwardRef=c,ve.Fragment=n,ve.Lazy=m,ve.Memo=p,ve.Portal=r,ve.Profiler=i,ve.StrictMode=o,ve.Suspense=d,ve.SuspenseList=f,ve.isContextConsumer=function(l){return e(l)===a},ve.isContextProvider=function(l){return e(l)===u},ve.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},ve.isForwardRef=function(l){return e(l)===c},ve.isFragment=function(l){return e(l)===n},ve.isLazy=function(l){return e(l)===m},ve.isMemo=function(l){return e(l)===p},ve.isPortal=function(l){return e(l)===r},ve.isProfiler=function(l){return e(l)===i},ve.isStrictMode=function(l){return e(l)===o},ve.isSuspense=function(l){return e(l)===d},ve.isSuspenseList=function(l){return e(l)===f},ve.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===i||l===o||l===d||l===f||l===b||typeof l=="object"&&l!==null&&(l.$$typeof===m||l.$$typeof===p||l.$$typeof===u||l.$$typeof===a||l.$$typeof===c||l.$$typeof===v||l.getModuleId!==void 0)},ve.typeOf=e}()),ve}var Ws;function yp(){return Ws||(Ws=1,process.env.NODE_ENV==="production"?Nr.exports=mp():Nr.exports=gp()),Nr.exports}var Us=yp();const vp=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gs(e){const t=`${e}`.match(vp);return t&&t[1]||""}function Ys(e,t=""){return e.displayName||e.name||Gs(e)||t}function Hs(e,t,r){const n=Ys(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function bp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ys(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Us.ForwardRef:return Hs(e,e.render,"ForwardRef");case Us.Memo:return Hs(e,e.type,"memo");default:return}}}const _p=ot(Object.freeze(Object.defineProperty({__proto__:null,default:bp,getFunctionName:Gs},Symbol.toStringTag,{value:"Module"})));function pe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}const xp=["values","unit","step"],Ep=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)=>w({},r,{[n.key]:n.val}),{})};function Ks(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=pe(e,xp),i=Ep(t),a=Object.keys(i);function u(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function d(m,b){const v=a.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:b)-n/100}${r})`}function f(m){return a.indexOf(m)+1<a.length?d(m,a[a.indexOf(m)+1]):u(m)}function p(m){const b=a.indexOf(m);return b===0?u(a[1]):b===a.length-1?c(a[b]):d(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return w({keys:a,values:i,up:u,down:c,between:d,only:f,not:p,unit:r},o)}const Tp={borderRadius:4},dt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Zt(e,t){return t?tt(e,t,{clone:!1}):e}const qn={xs:0,sm:600,md:900,lg:1200,xl:1536},Xs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qn[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Xs;return t.reduce((a,u,c)=>(a[i.up(i.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const i=n.breakpoints||Xs;return Object.keys(t).reduce((a,u)=>{if(Object.keys(i.values||qn).indexOf(u)!==-1){const c=i.up(u);a[c]=r(t[u],u)}else{const c=u;a[c]=t[c]}return a},{})}return r(t)}function Sp(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Rp(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function St(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 kr(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=St(e,r)||n,t&&(o=t(o,n,e)),o}function Oe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const u=a[t],c=a.theme,d=St(c,n)||{};return it(a,u,p=>{let m=kr(d,o,p);return p===m&&typeof p=="string"&&(m=kr(d,o,`${t}${p==="default"?"":me(p)}`,p)),r===!1?m:{[r]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:dt}:{},i.filterProps=[t],i}function Cp(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Op={m:"margin",p:"padding"},Pp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Js={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wp=Cp(e=>{if(e.length>2)if(Js[e])e=Js[e];else return[e];const[t,r]=e.split(""),n=Op[t],o=Pp[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Dr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ip=[...Dr,...jr];function Qt(e,t,r,n){var o;const i=(o=St(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
87
|
-
`)):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(`
|
|
88
|
-
`))),i[a]):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(`
|
|
89
|
-
`)),()=>{})}function Zs(e){return Qt(e,"spacing",8,"spacing")}function er(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 $p(e,t){return r=>e.reduce((n,o)=>(n[o]=er(t,r),n),{})}function Ap(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=wp(r),i=$p(o,n),a=e[r];return it(e,a,i)}function Qs(e,t){const r=Zs(e.theme);return Object.keys(e).map(n=>Ap(e,t,n,r)).reduce(Zt,{})}function Re(e){return Qs(e,Dr)}Re.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=dt,e),{}):{},Re.filterProps=Dr;function Ce(e){return Qs(e,jr)}Ce.propTypes=process.env.NODE_ENV!=="production"?jr.reduce((e,t)=>(e[t]=dt,e),{}):{},Ce.filterProps=jr,process.env.NODE_ENV!=="production"&&Ip.reduce((e,t)=>(e[t]=dt,e),{});function Mp(e=8){if(e.mui)return e;const t=Zs({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 a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function qr(...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]?Zt(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 Ue(e){return typeof e!="number"?e:`${e}px solid`}function Ge(e,t){return Oe({prop:e,themeKey:"borders",transform:t})}const Np=Ge("border",Ue),kp=Ge("borderTop",Ue),Dp=Ge("borderRight",Ue),jp=Ge("borderBottom",Ue),qp=Ge("borderLeft",Ue),Lp=Ge("borderColor"),Fp=Ge("borderTopColor"),Bp=Ge("borderRightColor"),zp=Ge("borderBottomColor"),Vp=Ge("borderLeftColor"),Wp=Ge("outline",Ue),Up=Ge("outlineColor"),Lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qt(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:er(t,n)});return it(e,e.borderRadius,r)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:dt}:{},Lr.filterProps=["borderRadius"],qr(Np,kp,Dp,jp,qp,Lp,Fp,Bp,zp,Vp,Lr,Wp,Up);const Fr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qt(e.theme,"spacing",8,"gap"),r=n=>({gap:er(t,n)});return it(e,e.gap,r)}return null};Fr.propTypes=process.env.NODE_ENV!=="production"?{gap:dt}:{},Fr.filterProps=["gap"];const Br=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qt(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:er(t,n)});return it(e,e.columnGap,r)}return null};Br.propTypes=process.env.NODE_ENV!=="production"?{columnGap:dt}:{},Br.filterProps=["columnGap"];const zr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qt(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:er(t,n)});return it(e,e.rowGap,r)}return null};zr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:dt}:{},zr.filterProps=["rowGap"];const Gp=Oe({prop:"gridColumn"}),Yp=Oe({prop:"gridRow"}),Hp=Oe({prop:"gridAutoFlow"}),Kp=Oe({prop:"gridAutoColumns"}),Xp=Oe({prop:"gridAutoRows"}),Jp=Oe({prop:"gridTemplateColumns"}),Zp=Oe({prop:"gridTemplateRows"}),Qp=Oe({prop:"gridTemplateAreas"}),eh=Oe({prop:"gridArea"});qr(Fr,Br,zr,Gp,Yp,Hp,Kp,Xp,Jp,Zp,Qp,eh);function Rt(e,t){return t==="grey"?t:e}const th=Oe({prop:"color",themeKey:"palette",transform:Rt}),rh=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rt}),nh=Oe({prop:"backgroundColor",themeKey:"palette",transform:Rt});qr(th,rh,nh);function Ve(e){return e<=1&&e!==0?`${e*100}%`:e}const oh=Oe({prop:"width",transform:Ve}),Ln=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])||qn[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 it(e,e.maxWidth,t)}return null};Ln.filterProps=["maxWidth"];const ih=Oe({prop:"minWidth",transform:Ve}),ah=Oe({prop:"height",transform:Ve}),sh=Oe({prop:"maxHeight",transform:Ve}),uh=Oe({prop:"minHeight",transform:Ve});Oe({prop:"size",cssProperty:"width",transform:Ve}),Oe({prop:"size",cssProperty:"height",transform:Ve});const ch=Oe({prop:"boxSizing"});qr(oh,Ln,ih,ah,sh,uh,ch);const tr={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lr},color:{themeKey:"palette",transform:Rt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rt},backgroundColor:{themeKey:"palette",transform:Rt},p:{style:Ce},pt:{style:Ce},pr:{style:Ce},pb:{style:Ce},pl:{style:Ce},px:{style:Ce},py:{style:Ce},padding:{style:Ce},paddingTop:{style:Ce},paddingRight:{style:Ce},paddingBottom:{style:Ce},paddingLeft:{style:Ce},paddingX:{style:Ce},paddingY:{style:Ce},paddingInline:{style:Ce},paddingInlineStart:{style:Ce},paddingInlineEnd:{style:Ce},paddingBlock:{style:Ce},paddingBlockStart:{style:Ce},paddingBlockEnd:{style:Ce},m:{style:Re},mt:{style:Re},mr:{style:Re},mb:{style:Re},ml:{style:Re},mx:{style:Re},my:{style:Re},margin:{style:Re},marginTop:{style:Re},marginRight:{style:Re},marginBottom:{style:Re},marginLeft:{style:Re},marginX:{style:Re},marginY:{style:Re},marginInline:{style:Re},marginInlineStart:{style:Re},marginInlineEnd:{style:Re},marginBlock:{style:Re},marginBlockStart:{style:Re},marginBlockEnd:{style:Re},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:Fr},rowGap:{style:zr},columnGap:{style:Br},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:Ln},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 lh(...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 dh(e,t){return typeof e=="function"?e(t):e}function eu(){function e(r,n,o,i){const a={[r]:n,theme:o},u=i[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:f,style:p}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const m=St(o,d)||{};return p?p(a):it(a,n,v=>{let l=kr(m,f,v);return v===l&&typeof v=="string"&&(l=kr(m,f,`${r}${v==="default"?"":me(v)}`,v)),c===!1?l:{[c]:l}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:tr;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 f=Sp(i.breakpoints),p=Object.keys(f);let m=f;return Object.keys(d).forEach(b=>{const v=dh(d[b],i);if(v!=null)if(typeof v=="object")if(a[b])m=Zt(m,e(b,v,i,a));else{const l=it({theme:i},v,_=>({[b]:_}));lh(l,v)?m[b]=t({sx:v,theme:i}):m=Zt(m,l)}else m=Zt(m,e(b,v,i,a))}),Rp(p,m)}return Array.isArray(o)?o.map(u):u(o)}return t}const Vr=eu();Vr.filterProps=["sx"];function tu(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 fh=["breakpoints","palette","spacing","shape"];function Fn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=pe(e,fh),u=Ks(r),c=Mp(o);let d=tt({breakpoints:u,direction:"ltr",components:{},palette:w({mode:"light"},n),spacing:c,shape:w({},Tp,i)},a);return d.applyStyles=tu,d=t.reduce((f,p)=>tt(f,p),d),d.unstable_sxConfig=w({},tr,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(p){return Vr({sx:p,theme:this})},d}const ph=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Fn,private_createBreakpoints:Ks,unstable_applyStyles:tu},Symbol.toStringTag,{value:"Module"}))),hh=["sx"],mh=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:tr;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function ru(e){const{sx:t}=e,r=pe(e,hh),{systemProps:n,otherProps:o}=mh(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const u=t(...a);return lt(u)?w({},n,u):n}:i=w({},n,t),w({},o,{sx:i})}const gh=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Vr,extendSxProp:ru,unstable_createStyleFunctionSx:eu,unstable_defaultSxConfig:tr},Symbol.toStringTag,{value:"Module"})));var nu;function yh(){if(nu)return mt;nu=1;var e=hn();Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=$,mt.shouldForwardProp=_,mt.systemDefaultTheme=void 0;var t=e(Zd()),r=e(Qd()),n=b(dp),o=fp,i=e(hp),a=e(_p),u=e(ph),c=e(gh);const d=["ownerState"],f=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m(h){if(typeof WeakMap!="function")return null;var O=new WeakMap,R=new WeakMap;return(m=function(I){return I?R:O})(h)}function b(h,O){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var R=m(O);if(R&&R.has(h))return R.get(h);var I={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in h)if(F!=="default"&&Object.prototype.hasOwnProperty.call(h,F)){var D=M?Object.getOwnPropertyDescriptor(h,F):null;D&&(D.get||D.set)?Object.defineProperty(I,F,D):I[F]=h[F]}return I.default=h,R&&R.set(h,I),I}function v(h){return Object.keys(h).length===0}function l(h){return typeof h=="string"&&h.charCodeAt(0)>96}function _(h){return h!=="ownerState"&&h!=="theme"&&h!=="sx"&&h!=="as"}const E=mt.systemDefaultTheme=(0,u.default)(),C=h=>h&&h.charAt(0).toLowerCase()+h.slice(1);function T({defaultTheme:h,theme:O,themeId:R}){return v(O)?h:O[R]||O}function x(h){return h?(O,R)=>R[h]:null}function y(h,O){let{ownerState:R}=O,I=(0,r.default)(O,d);const M=typeof h=="function"?h((0,t.default)({ownerState:R},I)):h;if(Array.isArray(M))return M.flatMap(F=>y(F,(0,t.default)({ownerState:R},I)));if(M&&typeof M=="object"&&Array.isArray(M.variants)){const{variants:F=[]}=M;let L=(0,r.default)(M,f);return F.forEach(B=>{let q=!0;typeof B.props=="function"?q=B.props((0,t.default)({ownerState:R},I,R)):Object.keys(B.props).forEach(G=>{(R==null?void 0:R[G])!==B.props[G]&&I[G]!==B.props[G]&&(q=!1)}),q&&(Array.isArray(L)||(L=[L]),L.push(typeof B.style=="function"?B.style((0,t.default)({ownerState:R},I,R)):B.style))}),L}return M}function $(h={}){const{themeId:O,defaultTheme:R=E,rootShouldForwardProp:I=_,slotShouldForwardProp:M=_}=h,F=D=>(0,c.default)((0,t.default)({},D,{theme:T((0,t.default)({},D,{defaultTheme:R,themeId:O}))}));return F.__mui_systemSx=!0,(D,L={})=>{(0,n.internal_processStyles)(D,W=>W.filter(U=>!(U!=null&&U.__mui_systemSx)));const{name:B,slot:q,skipVariantsResolver:G,skipSx:Z,overridesResolver:Pe=x(C(q))}=L,A=(0,r.default)(L,p),j=G!==void 0?G:q&&q!=="Root"&&q!=="root"||!1,Q=Z||!1;let X;process.env.NODE_ENV!=="production"&&B&&(X=`${B}-${C(q||"Root")}`);let V=_;q==="Root"||q==="root"?V=I:q?V=M:l(D)&&(V=void 0);const H=(0,n.default)(D,(0,t.default)({shouldForwardProp:V,label:X},A)),Y=W=>typeof W=="function"&&W.__emotion_real!==W||(0,o.isPlainObject)(W)?U=>y(W,(0,t.default)({},U,{theme:T({theme:U.theme,defaultTheme:R,themeId:O})})):W,K=(W,...U)=>{let J=Y(W);const be=U?U.map(Y):[];B&&Pe&&be.push(ie=>{const Se=T((0,t.default)({},ie,{defaultTheme:R,themeId:O}));if(!Se.components||!Se.components[B]||!Se.components[B].styleOverrides)return null;const We=Se.components[B].styleOverrides,ct={};return Object.entries(We).forEach(([qt,pt])=>{ct[qt]=y(pt,(0,t.default)({},ie,{theme:Se}))}),Pe(ie,ct)}),B&&!j&&be.push(ie=>{var Se;const We=T((0,t.default)({},ie,{defaultTheme:R,themeId:O})),ct=We==null||(Se=We.components)==null||(Se=Se[B])==null?void 0:Se.variants;return y({variants:ct},(0,t.default)({},ie,{theme:We}))}),Q||be.push(F);const P=be.length-U.length;if(Array.isArray(W)&&P>0){const ie=new Array(P).fill("");J=[...W,...ie],J.raw=[...W.raw,...ie]}const ge=H(J,...be);if(process.env.NODE_ENV!=="production"){let ie;B&&(ie=`${B}${(0,i.default)(q||"")}`),ie===void 0&&(ie=`Styled(${(0,a.default)(D)})`),ge.displayName=ie}return D.muiName&&(ge.muiName=D.muiName),ge};return H.withConfig&&(K.withConfig=H.withConfig),K}}return mt}var vh=yh();const bh=br(vh),ou=e=>e,iu=(()=>{let e=ou;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ou}}})(),_h={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 Me(e,t,r="Mui"){const n=_h[t];return n?`${r}-${n}`:`${iu.generate(e)}-${t}`}function xh(e,t){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Te={};const Eh=ot(pp);function Th(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Sh=ot(Object.freeze(Object.defineProperty({__proto__:null,default:Th},Symbol.toStringTag,{value:"Module"})));var au;function Rh(){if(au)return Te;au=1;var e=hn();Object.defineProperty(Te,"__esModule",{value:!0}),Te.alpha=v,Te.blend=$,Te.colorChannel=void 0,Te.darken=_,Te.decomposeColor=a,Te.emphasize=x,Te.getContrastRatio=b,Te.getLuminance=m,Te.hexToRgb=o,Te.hslToRgb=p,Te.lighten=C,Te.private_safeAlpha=l,Te.private_safeColorChannel=void 0,Te.private_safeDarken=E,Te.private_safeEmphasize=y,Te.private_safeLighten=T,Te.recomposeColor=d,Te.rgbToHex=f;var t=e(Eh),r=e(Sh);function n(h,O=0,R=1){return process.env.NODE_ENV!=="production"&&(h<O||h>R)&&console.error(`MUI: The value provided ${h} is out of range [${O}, ${R}].`),(0,r.default)(h,O,R)}function o(h){h=h.slice(1);const O=new RegExp(`.{1,${h.length>=6?2:1}}`,"g");let R=h.match(O);return R&&R[0].length===1&&(R=R.map(I=>I+I)),R?`rgb${R.length===4?"a":""}(${R.map((I,M)=>M<3?parseInt(I,16):Math.round(parseInt(I,16)/255*1e3)/1e3).join(", ")})`:""}function i(h){const O=h.toString(16);return O.length===1?`0${O}`:O}function a(h){if(h.type)return h;if(h.charAt(0)==="#")return a(o(h));const O=h.indexOf("("),R=h.substring(0,O);if(["rgb","rgba","hsl","hsla","color"].indexOf(R)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${h}\` color.
|
|
90
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,h));let I=h.substring(O+1,h.length-1),M;if(R==="color"){if(I=I.split(" "),M=I.shift(),I.length===4&&I[3].charAt(0)==="/"&&(I[3]=I[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(M)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${M}\` color space.
|
|
91
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,M))}else I=I.split(",");return I=I.map(F=>parseFloat(F)),{type:R,values:I,colorSpace:M}}const u=h=>{const O=a(h);return O.values.slice(0,3).map((R,I)=>O.type.indexOf("hsl")!==-1&&I!==0?`${R}%`:R).join(" ")};Te.colorChannel=u;const c=(h,O)=>{try{return u(h)}catch{return O&&process.env.NODE_ENV!=="production"&&console.warn(O),h}};Te.private_safeColorChannel=c;function d(h){const{type:O,colorSpace:R}=h;let{values:I}=h;return O.indexOf("rgb")!==-1?I=I.map((M,F)=>F<3?parseInt(M,10):M):O.indexOf("hsl")!==-1&&(I[1]=`${I[1]}%`,I[2]=`${I[2]}%`),O.indexOf("color")!==-1?I=`${R} ${I.join(" ")}`:I=`${I.join(", ")}`,`${O}(${I})`}function f(h){if(h.indexOf("#")===0)return h;const{values:O}=a(h);return`#${O.map((R,I)=>i(I===3?Math.round(255*R):R)).join("")}`}function p(h){h=a(h);const{values:O}=h,R=O[0],I=O[1]/100,M=O[2]/100,F=I*Math.min(M,1-M),D=(q,G=(q+R/30)%12)=>M-F*Math.max(Math.min(G-3,9-G,1),-1);let L="rgb";const B=[Math.round(D(0)*255),Math.round(D(8)*255),Math.round(D(4)*255)];return h.type==="hsla"&&(L+="a",B.push(O[3])),d({type:L,values:B})}function m(h){h=a(h);let O=h.type==="hsl"||h.type==="hsla"?a(p(h)).values:h.values;return O=O.map(R=>(h.type!=="color"&&(R/=255),R<=.03928?R/12.92:((R+.055)/1.055)**2.4)),Number((.2126*O[0]+.7152*O[1]+.0722*O[2]).toFixed(3))}function b(h,O){const R=m(h),I=m(O);return(Math.max(R,I)+.05)/(Math.min(R,I)+.05)}function v(h,O){return h=a(h),O=n(O),(h.type==="rgb"||h.type==="hsl")&&(h.type+="a"),h.type==="color"?h.values[3]=`/${O}`:h.values[3]=O,d(h)}function l(h,O,R){try{return v(h,O)}catch{return R&&process.env.NODE_ENV!=="production"&&console.warn(R),h}}function _(h,O){if(h=a(h),O=n(O),h.type.indexOf("hsl")!==-1)h.values[2]*=1-O;else if(h.type.indexOf("rgb")!==-1||h.type.indexOf("color")!==-1)for(let R=0;R<3;R+=1)h.values[R]*=1-O;return d(h)}function E(h,O,R){try{return _(h,O)}catch{return R&&process.env.NODE_ENV!=="production"&&console.warn(R),h}}function C(h,O){if(h=a(h),O=n(O),h.type.indexOf("hsl")!==-1)h.values[2]+=(100-h.values[2])*O;else if(h.type.indexOf("rgb")!==-1)for(let R=0;R<3;R+=1)h.values[R]+=(255-h.values[R])*O;else if(h.type.indexOf("color")!==-1)for(let R=0;R<3;R+=1)h.values[R]+=(1-h.values[R])*O;return d(h)}function T(h,O,R){try{return C(h,O)}catch{return R&&process.env.NODE_ENV!=="production"&&console.warn(R),h}}function x(h,O=.15){return m(h)>.5?_(h,O):C(h,O)}function y(h,O,R){try{return x(h,O)}catch{return R&&process.env.NODE_ENV!=="production"&&console.warn(R),h}}function $(h,O,R,I=1){const M=(B,q)=>Math.round((B**(1/I)*(1-R)+q**(1/I)*R)**I),F=a(h),D=a(O),L=[M(F.values[0],D.values[0]),M(F.values[1],D.values[1]),M(F.values[2],D.values[2])];return d({type:"rgb",values:L})}return Te}var Ne=Rh();const rr={black:"#000",white:"#fff"},Ch={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"},Ct={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ot={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},nr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Pt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},It={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Oh=["mode","contrastThreshold","tonalOffset"],su={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:rr.white,default:rr.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}},Bn={text:{primary:rr.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:rr.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 uu(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=Ne.lighten(e.main,o):t==="dark"&&(e.dark=Ne.darken(e.main,i)))}function Ph(e="light"){return e==="dark"?{main:Pt[200],light:Pt[50],dark:Pt[400]}:{main:Pt[700],light:Pt[400],dark:Pt[800]}}function wh(e="light"){return e==="dark"?{main:Ct[200],light:Ct[50],dark:Ct[400]}:{main:Ct[500],light:Ct[300],dark:Ct[700]}}function Ih(e="light"){return e==="dark"?{main:Ot[500],light:Ot[300],dark:Ot[700]}:{main:Ot[700],light:Ot[400],dark:Ot[800]}}function $h(e="light"){return e==="dark"?{main:wt[400],light:wt[300],dark:wt[700]}:{main:wt[700],light:wt[500],dark:wt[900]}}function Ah(e="light"){return e==="dark"?{main:It[400],light:It[300],dark:It[700]}:{main:It[800],light:It[500],dark:It[900]}}function Mh(e="light"){return e==="dark"?{main:nr[400],light:nr[300],dark:nr[700]}:{main:"#ed6c02",light:nr[500],dark:nr[900]}}function Nh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pe(e,Oh),i=e.primary||Ph(t),a=e.secondary||wh(t),u=e.error||Ih(t),c=e.info||$h(t),d=e.success||Ah(t),f=e.warning||Mh(t);function p(l){const _=Ne.getContrastRatio(l,Bn.text.primary)>=r?Bn.text.primary:su.text.primary;if(process.env.NODE_ENV!=="production"){const E=Ne.getContrastRatio(l,_);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${_} 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(`
|
|
92
|
-
`))}return _}const m=({color:l,name:_,mainShade:E=500,lightShade:C=300,darkShade:T=700})=>{if(l=w({},l),!l.main&&l[E]&&(l.main=l[E]),!l.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
93
|
-
The color object needs to have a \`main\` property or a \`${E}\` property.`:Jt(11,_?` (${_})`:"",E));if(typeof l.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
94
|
-
\`color.main\` should be a string, but \`${JSON.stringify(l.main)}\` was provided instead.
|
|
95
|
-
|
|
96
|
-
Did you intend to use one of the following approaches?
|
|
97
|
-
|
|
98
|
-
import { green } from "@mui/material/colors";
|
|
99
|
-
|
|
100
|
-
const theme1 = createTheme({ palette: {
|
|
101
|
-
primary: green,
|
|
102
|
-
} });
|
|
103
|
-
|
|
104
|
-
const theme2 = createTheme({ palette: {
|
|
105
|
-
primary: { main: green[500] },
|
|
106
|
-
} });`:Jt(12,_?` (${_})`:"",JSON.stringify(l.main)));return uu(l,"light",C,n),uu(l,"dark",T,n),l.contrastText||(l.contrastText=p(l.main)),l},b={dark:Bn,light:su};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(w({common:w({},rr),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:f,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:Ch,contrastThreshold:r,getContrastText:p,augmentColor:m,tonalOffset:n},b[t]),o)}const kh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Dh(e){return Math.round(e*1e5)/1e5}const cu={textTransform:"uppercase"},lu='"Roboto", "Helvetica", "Arial", sans-serif';function jh(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=lu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=r,m=pe(r,kh);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 b=o/14,v=p||(E=>`${E/d*b}rem`),l=(E,C,T,x,y)=>w({fontFamily:n,fontWeight:E,fontSize:v(C),lineHeight:T},n===lu?{letterSpacing:`${Dh(x/C)}em`}:{},y,f),_={h1:l(i,96,1.167,-1.5),h2:l(i,60,1.2,-.5),h3:l(a,48,1.167,0),h4:l(a,34,1.235,.25),h5:l(a,24,1.334,0),h6:l(u,20,1.6,.15),subtitle1:l(a,16,1.75,.15),subtitle2:l(u,14,1.57,.1),body1:l(a,16,1.5,.15),body2:l(a,14,1.43,.15),button:l(u,14,1.75,.4,cu),caption:l(a,12,1.66,.4),overline:l(a,12,2.66,1,cu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(w({htmlFontSize:d,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c},_),m,{clone:!1})}const qh=.2,Lh=.14,Fh=.12;function Ee(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Lh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Fh})`].join(",")}const Bh=["none",Ee(0,2,1,-1,0,1,1,0,0,1,3,0),Ee(0,3,1,-2,0,2,2,0,0,1,5,0),Ee(0,3,3,-2,0,3,4,0,0,1,8,0),Ee(0,2,4,-1,0,4,5,0,0,1,10,0),Ee(0,3,5,-1,0,5,8,0,0,1,14,0),Ee(0,3,5,-1,0,6,10,0,0,1,18,0),Ee(0,4,5,-2,0,7,10,1,0,2,16,1),Ee(0,5,5,-3,0,8,10,1,0,3,14,2),Ee(0,5,6,-3,0,9,12,1,0,3,16,2),Ee(0,6,6,-3,0,10,14,1,0,4,18,3),Ee(0,6,7,-4,0,11,15,1,0,4,20,3),Ee(0,7,8,-4,0,12,17,2,0,5,22,4),Ee(0,7,8,-4,0,13,19,2,0,5,24,4),Ee(0,7,9,-4,0,14,21,2,0,5,26,4),Ee(0,8,9,-5,0,15,22,2,0,6,28,5),Ee(0,8,10,-5,0,16,24,2,0,6,30,5),Ee(0,8,11,-5,0,17,26,2,0,6,32,5),Ee(0,9,11,-5,0,18,28,2,0,7,34,6),Ee(0,9,12,-6,0,19,29,2,0,7,36,6),Ee(0,10,13,-6,0,20,31,3,0,8,38,7),Ee(0,10,13,-6,0,21,33,3,0,8,40,7),Ee(0,10,14,-6,0,22,35,3,0,8,42,7),Ee(0,11,14,-7,0,23,36,3,0,9,44,8),Ee(0,11,15,-7,0,24,38,3,0,9,46,8)],zh=["duration","easing","delay"],Vh={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)"},Wh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function du(e){return`${Math.round(e)}ms`}function Uh(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Gh(e){const t=w({},Vh,e.easing),r=w({},Wh,e.duration);return w({getAutoHeightDuration:Uh,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:u=t.easeInOut,delay:c=0}=i,d=pe(i,zh);if(process.env.NODE_ENV!=="production"){const f=m=>typeof m=="string",p=m=>!isNaN(parseFloat(m));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(u)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!f(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(`
|
|
107
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:du(a)} ${u} ${typeof c=="string"?c:du(c)}`).join(",")}},e,{easing:t,duration:r})}const Yh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Hh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=pe(e,Hh);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.":Jt(18));const u=Nh(n),c=Fn(e);let d=tt(c,{mixins:xh(c.breakpoints,r),palette:u,shadows:Bh.slice(),typography:jh(u,i),transitions:Gh(o),zIndex:w({},Yh)});if(d=tt(d,a),d=t.reduce((f,p)=>tt(f,p),d),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(m,b)=>{let v;for(v in m){const l=m[v];if(f.indexOf(v)!==-1&&Object.keys(l).length>0){if(process.env.NODE_ENV!=="production"){const _=Me("",v);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${_}' syntax:`,JSON.stringify({root:{[`&.${_}`]:l}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
108
|
-
`))}m[v]={}}}};Object.keys(d.components).forEach(m=>{const b=d.components[m].styleOverrides;b&&m.indexOf("Mui")===0&&p(b,m)})}return d.unstable_sxConfig=w({},tr,a==null?void 0:a.unstable_sxConfig),d.unstable_sx=function(p){return Vr({sx:p,theme:this})},d}const fu=Kh(),pu="$$material";function Xh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zn=e=>Xh(e)&&e!=="classes",xe=bh({themeId:pu,defaultTheme:fu,rootShouldForwardProp:zn});function hu(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=hu(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=hu(e))&&(n&&(n+=" "),n+=t);return n}function je(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const u=t(a);u!==""&&i.push(u),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}function Wr(e,t){const r=w({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=w({},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]=w({},i),Object.keys(o).forEach(a=>{r[n][a]=Wr(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}const Jh=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Zh(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?Wr(o.defaultProps,n):!o.styleOverrides&&!o.variants?Wr(o,n):n}function Qh({props:e,name:t}){const r=S.useContext(Jh);return Zh({props:e,name:t,theme:{components:r}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ke(e){return Qh(e)}const rt=S.createContext({});process.env.NODE_ENV!=="production"&&(rt.displayName="ListContext");const em=s.oneOfType([s.func,s.object]);function or(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function tm(e){const{prototype:t={}}=e;return!!t.isReactComponent}function rm(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;return typeof i=="function"&&!tm(i)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` 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 Vn=or(s.elementType,rm);function Ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Je(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Ur(r,t)})},e)}const $t=typeof window<"u"?S.useLayoutEffect:S.useEffect;function gt(e){const t=S.useRef(e);return $t(()=>{t.current=e}),S.useRef((...r)=>(0,t.current)(...r)).current}const mu={};function nm(e,t){const r=S.useRef(mu);return r.current===mu&&(r.current=e(t)),r}const om=[];function im(e){S.useEffect(e,om)}class Gr{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Gr}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function am(){const e=nm(Gr.create).current;return im(e.disposeEffect),e}let Yr=!0,Wn=!1;const sm=new Gr,um={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 cm(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&um[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function lm(e){e.metaKey||e.altKey||e.ctrlKey||(Yr=!0)}function Un(){Yr=!1}function dm(){this.visibilityState==="hidden"&&Wn&&(Yr=!0)}function fm(e){e.addEventListener("keydown",lm,!0),e.addEventListener("mousedown",Un,!0),e.addEventListener("pointerdown",Un,!0),e.addEventListener("touchstart",Un,!0),e.addEventListener("visibilitychange",dm,!0)}function pm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Yr||cm(t)}function Gn(){const e=S.useCallback(o=>{o!=null&&fm(o.ownerDocument)},[]),t=S.useRef(!1);function r(){return t.current?(Wn=!0,sm.start(100,()=>{Wn=!1}),t.current=!1,!0):!1}function n(o){return pm(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Yn(e,t)}function gu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yn(e,t)}const yu={disabled:!1};var hm=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Hr=ae.createContext(null);var mm=function(t){return t.scrollTop},ir="unmounted",yt="exited",vt="entering",At="entered",Hn="exiting",at=function(e){gu(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,u=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?u?(c=yt,i.appearStatus=vt):c=At:n.unmountOnExit||n.mountOnEnter?c=ir:c=yt,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===ir?{status:yt}: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 a=this.state.status;this.props.in?a!==vt&&a!==At&&(i=vt):(a===vt||a===At)&&(i=Hn)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,u;return i=a=u=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:u}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:zt.findDOMNode(this);a&&mm(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yt&&this.setState({status:ir})},r.performEnter=function(o){var i=this,a=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[zt.findDOMNode(this),u],d=c[0],f=c[1],p=this.getTimeouts(),m=u?p.appear:p.enter;if(!o&&!a||yu.disabled){this.safeSetState({status:At},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:vt},function(){i.props.onEntering(d,f),i.onTransitionEnd(m,function(){i.safeSetState({status:At},function(){i.props.onEntered(d,f)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:zt.findDOMNode(this);if(!i||yu.disabled){this.safeSetState({status:yt},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Hn},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:yt},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,a=!0;return this.nextCallback=function(u){a&&(a=!1,i.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:zt.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ir)return null;var i=this.props,a=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=pe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(Hr.Provider,{value:null},typeof a=="function"?a(o,u):ae.cloneElement(ae.Children.only(a),u))},t}(ae.Component);at.contextType=Hr,at.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,r,n,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var r=hm;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:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Mt(){}at.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mt,onEntering:Mt,onEntered:Mt,onExit:Mt,onExiting:Mt,onExited:Mt},at.UNMOUNTED=ir,at.EXITED=yt,at.ENTERING=vt,at.ENTERED=At,at.EXITING=Hn;function gm(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){var r=function(i){return t&&ae.isValidElement(i)?t(i):i},n=Object.create(null);return e&&ae.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ym(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,u={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var d=n[c][a];u[n[c][a]]=r(d)}u[c]=r(c)}for(a=0;a<o.length;a++)u[o[a]]=r(o[a]);return u}function bt(e,t,r){return r[t]!=null?r[t]:e.props[t]}function vm(e,t){return Kn(e.children,function(r){return ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:bt(r,"appear",e),enter:bt(r,"enter",e),exit:bt(r,"exit",e)})})}function bm(e,t,r){var n=Kn(e.children),o=ym(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(ae.isValidElement(a)){var u=i in t,c=i in n,d=t[i],f=ae.isValidElement(d)&&!d.props.in;c&&(!u||f)?o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}):!c&&u&&!f?o[i]=ae.cloneElement(a,{in:!1}):c&&u&&ae.isValidElement(d)&&(o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:d.props.in,exit:bt(a,"exit",e),enter:bt(a,"enter",e)}))}}),o}var _m=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xm={component:"div",childFactory:function(t){return t}},Xn=function(e){gu(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(gm(i));return i.state={contextValue:{isMounting:!0},handleExited:a,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 a=i.children,u=i.handleExited,c=i.firstRender;return{children:c?vm(o,u):bm(o,a,u),firstRender:!1}},r.handleExited=function(o,i){var a=Kn(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(u){var c=w({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,u=pe(o,["component","childFactory"]),c=this.state.contextValue,d=_m(this.state.children).map(a);return delete u.appear,delete u.enter,delete u.exit,i===null?ae.createElement(Hr.Provider,{value:c},d):ae.createElement(Hr.Provider,{value:c},ae.createElement(i,u,d))},t}(ae.Component);Xn.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},Xn.defaultProps=xm;function Em(e){return Object.keys(e).length===0}function Tm(e=null){const t=S.useContext(Ht);return!t||Em(t)?e:t}const Sm=Fn();function Rm(e=Sm){return Tm(e)}function $e(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Me(e,o,r)}),n}function Cm(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vu(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let u;const c=i.type;return typeof c=="function"&&!Cm(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${a}\` 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 Kr=or(s.element,vu);Kr.isRequired=or(s.element.isRequired,vu);const Om="exact-prop: ";function bu(e){return process.env.NODE_ENV==="production"?e:w({},e,{[Om]: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 _u(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Jn(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Pm(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 wm(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,a)=>{const u=o||"<<anonymous>>",c=a||n;return typeof r[n]<"u"?new Error(`The ${i} \`${c}\` of \`${u}\` is deprecated. ${t}`):null}}function Zn(e,t){var r,n;return S.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 st(e){return e&&e.ownerDocument||document}function Xr(e){return st(e).defaultView||window}function Im(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?w({},t.propTypes):null;return o=>(i,a,u,c,d,...f)=>{const p=d||a,m=r==null?void 0:r[p];if(m){const b=m(i,a,u,c,d,...f);if(b)return b}return typeof i[a]<"u"&&!i[o]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}let xu=0;function $m(e){const[t,r]=S.useState(e),n=e||t;return S.useEffect(()=>{t==null&&(xu+=1,r(`mui-${xu}`))},[t]),n}const Eu=S.useId;function Tu(e){if(Eu!==void 0){const t=Eu();return e??t}return $m(e)}function Am(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 Mm({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=S.useRef(e!==void 0),[i,a]=S.useState(t),u=o?e:i;if(process.env.NODE_ENV!=="production"){S.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(`
|
|
109
|
-
`))},[n,r,e]);const{current:d}=S.useRef(t);S.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(`
|
|
110
|
-
`))},[JSON.stringify(t)])}const c=S.useCallback(d=>{o||a(d)},[]);return[u,c]}function Nm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function km(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 Dm(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const jm=Number.isInteger||Dm;function Su(e,t,r,n){const o=e[t];if(o==null||!jm(o)){const i=km(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Ru(e,t,...r){return e[t]===void 0?null:Su(e,t,...r)}function Qn(){return null}Ru.isRequired=Su,Qn.isRequired=Qn;const qm=process.env.NODE_ENV==="production"?Qn:Ru;function eo(e){return typeof e=="string"}function Lm(e,t,r){return e===void 0||eo(e)?t:w({},t,{ownerState:w({},t.ownerState,r)})}function Cu(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 Ou(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 Fm(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const b=ne(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v=w({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),l=w({},r,o,n);return b.length>0&&(l.className=b),Object.keys(v).length>0&&(l.style=v),{props:l,internalRef:void 0}}const a=Cu(w({},o,n)),u=Ou(n),c=Ou(o),d=t(a),f=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),p=w({},d==null?void 0:d.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=w({},d,r,c,u);return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:d.ref}}function Bm(e,t,r){return typeof e=="function"?e(t,r):e}const zm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pu(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=pe(e,zm),u=i?{}:Bm(n,o),{props:c,internalRef:d}=Fm(w({},a,{externalSlotProps:u})),f=Je(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return Lm(r,w({},c,{ref:f}),o)}function to(e){if(parseInt(S.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 wu(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:u,onExited:c,timeout:d}=e,[f,p]=S.useState(!1),m=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},v=ne(r.child,f&&r.childLeaving,n&&r.childPulsate);return!u&&!f&&p(!0),S.useEffect(()=>{if(!u&&c!=null){const l=setTimeout(c,d);return()=>{clearTimeout(l)}}},[c,u,d]),k.jsx("span",{className:m,style:b,children:k.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(wu.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const Ye=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vm=["center","classes","className"];let Jr=e=>e,Iu,$u,Au,Mu;const ro=550,Wm=80,Um=Ir(Iu||(Iu=Jr`
|
|
111
|
-
0% {
|
|
112
|
-
transform: scale(0);
|
|
113
|
-
opacity: 0.1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
100% {
|
|
117
|
-
transform: scale(1);
|
|
118
|
-
opacity: 0.3;
|
|
119
|
-
}
|
|
120
|
-
`)),Gm=Ir($u||($u=Jr`
|
|
121
|
-
0% {
|
|
122
|
-
opacity: 1;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
100% {
|
|
126
|
-
opacity: 0;
|
|
127
|
-
}
|
|
128
|
-
`)),Ym=Ir(Au||(Au=Jr`
|
|
129
|
-
0% {
|
|
130
|
-
transform: scale(1);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
50% {
|
|
134
|
-
transform: scale(0.92);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
100% {
|
|
138
|
-
transform: scale(1);
|
|
139
|
-
}
|
|
140
|
-
`)),Hm=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Km=xe(wu,{name:"MuiTouchRipple",slot:"Ripple"})(Mu||(Mu=Jr`
|
|
141
|
-
opacity: 0;
|
|
142
|
-
position: absolute;
|
|
143
|
-
|
|
144
|
-
&.${0} {
|
|
145
|
-
opacity: 0.3;
|
|
146
|
-
transform: scale(1);
|
|
147
|
-
animation-name: ${0};
|
|
148
|
-
animation-duration: ${0}ms;
|
|
149
|
-
animation-timing-function: ${0};
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&.${0} {
|
|
153
|
-
animation-duration: ${0}ms;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
& .${0} {
|
|
157
|
-
opacity: 1;
|
|
158
|
-
display: block;
|
|
159
|
-
width: 100%;
|
|
160
|
-
height: 100%;
|
|
161
|
-
border-radius: 50%;
|
|
162
|
-
background-color: currentColor;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
& .${0} {
|
|
166
|
-
opacity: 0;
|
|
167
|
-
animation-name: ${0};
|
|
168
|
-
animation-duration: ${0}ms;
|
|
169
|
-
animation-timing-function: ${0};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
& .${0} {
|
|
173
|
-
position: absolute;
|
|
174
|
-
/* @noflip */
|
|
175
|
-
left: 0px;
|
|
176
|
-
top: 0;
|
|
177
|
-
animation-name: ${0};
|
|
178
|
-
animation-duration: 2500ms;
|
|
179
|
-
animation-timing-function: ${0};
|
|
180
|
-
animation-iteration-count: infinite;
|
|
181
|
-
animation-delay: 200ms;
|
|
182
|
-
}
|
|
183
|
-
`),Ye.rippleVisible,Um,ro,({theme:e})=>e.transitions.easing.easeInOut,Ye.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ye.child,Ye.childLeaving,Gm,ro,({theme:e})=>e.transitions.easing.easeInOut,Ye.childPulsate,Ym,({theme:e})=>e.transitions.easing.easeInOut),Nu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,u=pe(n,Vm),[c,d]=S.useState([]),f=S.useRef(0),p=S.useRef(null);S.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=S.useRef(!1),b=am(),v=S.useRef(null),l=S.useRef(null),_=S.useCallback(x=>{const{pulsate:y,rippleX:$,rippleY:h,rippleSize:O,cb:R}=x;d(I=>[...I,k.jsx(Km,{classes:{ripple:ne(i.ripple,Ye.ripple),rippleVisible:ne(i.rippleVisible,Ye.rippleVisible),ripplePulsate:ne(i.ripplePulsate,Ye.ripplePulsate),child:ne(i.child,Ye.child),childLeaving:ne(i.childLeaving,Ye.childLeaving),childPulsate:ne(i.childPulsate,Ye.childPulsate)},timeout:ro,pulsate:y,rippleX:$,rippleY:h,rippleSize:O},f.current)]),f.current+=1,p.current=R},[i]),E=S.useCallback((x={},y={},$=()=>{})=>{const{pulsate:h=!1,center:O=o||y.pulsate,fakeElement:R=!1}=y;if((x==null?void 0:x.type)==="mousedown"&&m.current){m.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(m.current=!0);const I=R?null:l.current,M=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,D,L;if(O||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)F=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:B,clientY:q}=x.touches&&x.touches.length>0?x.touches[0]:x;F=Math.round(B-M.left),D=Math.round(q-M.top)}if(O)L=Math.sqrt((2*M.width**2+M.height**2)/3),L%2===0&&(L+=1);else{const B=Math.max(Math.abs((I?I.clientWidth:0)-F),F)*2+2,q=Math.max(Math.abs((I?I.clientHeight:0)-D),D)*2+2;L=Math.sqrt(B**2+q**2)}x!=null&&x.touches?v.current===null&&(v.current=()=>{_({pulsate:h,rippleX:F,rippleY:D,rippleSize:L,cb:$})},b.start(Wm,()=>{v.current&&(v.current(),v.current=null)})):_({pulsate:h,rippleX:F,rippleY:D,rippleSize:L,cb:$})},[o,_,b]),C=S.useCallback(()=>{E({},{pulsate:!0})},[E]),T=S.useCallback((x,y)=>{if(b.clear(),(x==null?void 0:x.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{T(x,y)});return}v.current=null,d($=>$.length>0?$.slice(1):$),p.current=y},[b]);return S.useImperativeHandle(r,()=>({pulsate:C,start:E,stop:T}),[C,E,T]),k.jsx(Hm,w({className:ne(Ye.root,i.root,a),ref:l},u,{children:k.jsx(Xn,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Nu.propTypes={center:s.bool,classes:s.object,className:s.string});function Xm(e){return Me("MuiButtonBase",e)}const Jm=$e("MuiButtonBase",["root","disabled","focusVisible"]),Zm=["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"],Qm=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=je({root:["root",t&&"disabled",r&&"focusVisible"]},Xm,o);return r&&n&&(a.root+=` ${n}`),a},eg=xe("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"},[`&.${Jm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Zr=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:u,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,LinkComponent:b="a",onBlur:v,onClick:l,onContextMenu:_,onDragLeave:E,onFocus:C,onFocusVisible:T,onKeyDown:x,onKeyUp:y,onMouseDown:$,onMouseLeave:h,onMouseUp:O,onTouchEnd:R,onTouchMove:I,onTouchStart:M,tabIndex:F=0,TouchRippleProps:D,touchRippleRef:L,type:B}=n,q=pe(n,Zm),G=S.useRef(null),Z=S.useRef(null),Pe=Je(Z,L),{isFocusVisibleRef:A,onFocus:j,onBlur:Q,ref:X}=Gn(),[V,H]=S.useState(!1);d&&V&&H(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),G.current.focus()}}),[]);const[Y,K]=S.useState(!1);S.useEffect(()=>{K(!0)},[]);const W=Y&&!f&&!d;S.useEffect(()=>{V&&m&&!f&&Y&&Z.current.pulsate()},[f,m,V,Y]);function U(te,yr,La=p){return gt(fn=>(yr&&yr(fn),!La&&Z.current&&Z.current[te](fn),!0))}const J=U("start",$),be=U("stop",_),P=U("stop",E),ge=U("stop",O),ie=U("stop",te=>{V&&te.preventDefault(),h&&h(te)}),Se=U("start",M),We=U("stop",R),ct=U("stop",I),qt=U("stop",te=>{Q(te),A.current===!1&&H(!1),v&&v(te)},!1),pt=gt(te=>{G.current||(G.current=te.currentTarget),j(te),A.current===!0&&(H(!0),T&&T(te)),C&&C(te)}),pr=()=>{const te=G.current;return c&&c!=="button"&&!(te.tagName==="A"&&te.href)},hr=S.useRef(!1),mr=gt(te=>{m&&!hr.current&&V&&Z.current&&te.key===" "&&(hr.current=!0,Z.current.stop(te,()=>{Z.current.start(te)})),te.target===te.currentTarget&&pr()&&te.key===" "&&te.preventDefault(),x&&x(te),te.target===te.currentTarget&&pr()&&te.key==="Enter"&&!d&&(te.preventDefault(),l&&l(te))}),ja=gt(te=>{m&&te.key===" "&&Z.current&&V&&!te.defaultPrevented&&(hr.current=!1,Z.current.stop(te,()=>{Z.current.pulsate(te)})),y&&y(te),l&&te.target===te.currentTarget&&pr()&&te.key===" "&&!te.defaultPrevented&&l(te)});let Lt=c;Lt==="button"&&(q.href||q.to)&&(Lt=b);const ht={};Lt==="button"?(ht.type=B===void 0?"button":B,ht.disabled=d):(!q.href&&!q.to&&(ht.role="button"),d&&(ht["aria-disabled"]=d));const dn=Je(r,X,G);process.env.NODE_ENV!=="production"&&S.useEffect(()=>{W&&!Z.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(`
|
|
184
|
-
`))},[W]);const gr=w({},n,{centerRipple:i,component:c,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:F,focusVisible:V}),qa=Qm(gr);return k.jsxs(eg,w({as:Lt,className:ne(qa.root,u),ownerState:gr,onBlur:qt,onClick:l,onContextMenu:be,onFocus:pt,onKeyDown:mr,onKeyUp:ja,onMouseDown:J,onMouseLeave:ie,onMouseUp:ge,onDragLeave:P,onTouchEnd:We,onTouchMove:ct,onTouchStart:Se,ref:dn,tabIndex:d?-1:F,type:B},ht,q,{children:[a,W?k.jsx(Nu,w({ref:Pe,center:i},D)):null]}))});process.env.NODE_ENV!=="production"&&(Zr.propTypes={action:em,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Vn,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});const ku=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function tg(e){return Me("MuiListItemIcon",e)}const Du=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),rg=["className"],ng=e=>{const{alignItems:t,classes:r}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tg,r)},og=xe("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})=>w({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),ju=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemIcon"}),{className:o}=n,i=pe(n,rg),a=S.useContext(rt),u=w({},n,{alignItems:a.alignItems}),c=ng(u);return k.jsx(og,w({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(ju.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ig(e){return Me("MuiTypography",e)}$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sg=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,u={root:["root",i,e.align!=="inherit"&&`align${me(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return je(u,ig,a)},ug=xe("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${me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>w({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})),qu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lg=e=>cg[e]||e,nt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiTypography"}),o=lg(n.color),i=ru(w({},n,{color:o})),{align:a="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:m="body1",variantMapping:b=qu}=i,v=pe(i,ag),l=w({},i,{align:a,color:o,className:u,component:c,gutterBottom:d,noWrap:f,paragraph:p,variant:m,variantMapping:b}),_=c||(p?"p":b[m]||qu[m])||"span",E=sg(l);return k.jsx(ug,w({as:_,ref:r,ownerState:l,className:ne(E.root,u)},v))});process.env.NODE_ENV!=="production"&&(nt.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function dg(e){return Me("MuiListItemText",e)}const Qr=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),fg=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],pg=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return je({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},dg,t)},hg=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qr.primary}`]:t.primary},{[`& .${Qr.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>w({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),no=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:u=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:p}=n,m=pe(n,fg),{dense:b}=S.useContext(rt);let v=c??o,l=f;const _=w({},n,{disableTypography:a,inset:u,primary:!!v,secondary:!!l,dense:b}),E=pg(_);return v!=null&&v.type!==nt&&!a&&(v=k.jsx(nt,w({variant:b?"body2":"body1",className:E.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),l!=null&&l.type!==nt&&!a&&(l=k.jsx(nt,w({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},p,{children:l}))),k.jsxs(hg,w({className:ne(E.root,i),ownerState:_,ref:r},m,{children:[v,l]}))});process.env.NODE_ENV!=="production"&&(no.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mg(e){return Me("MuiMenuItem",e)}const ar=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},vg=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,c=je({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},mg,a);return w({},a,c)},bg=xe(Zr,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yg})(({theme:e,ownerState:t})=>w({},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"}},[`&.${ar.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ar.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne.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})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ar.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ku.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ku.inset}`]:{marginLeft:52},[`& .${Qr.root}`]:{marginTop:0,marginBottom:0},[`& .${Qr.inset}`]:{paddingLeft:36},[`& .${Du.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&w({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Du.root} svg`]:{fontSize:"1.25rem"}}))),Lu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:p,className:m}=n,b=pe(n,gg),v=S.useContext(rt),l=S.useMemo(()=>({dense:a||v.dense||!1,disableGutters:c}),[v.dense,a,c]),_=S.useRef(null);$t(()=>{o&&(_.current?_.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 E=w({},n,{dense:l.dense,divider:u,disableGutters:c}),C=vg(n),T=Je(_,r);let x;return n.disabled||(x=p!==void 0?p:-1),k.jsx(rt.Provider,{value:l,children:k.jsx(bg,w({ref:T,role:f,tabIndex:x,component:i,focusVisibleClassName:ne(C.focusVisible,d),className:ne(C.root,m)},b,{ownerState:E,classes:C}))})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});var sr={},oo={};function _g(e){return Me("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Eg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(r)}`]};return je(o,_g,n)},Tg=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${me(r.color)}`],t[`fontSize${me(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,u,c,d,f,p,m,b,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||(a=i.pxToRem)==null?void 0:a.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||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?p:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),en=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,b=pe(n,xg),v=S.isValidElement(o)&&o.type==="svg",l=w({},n,{color:a,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:v}),_={};f||(_.viewBox=m);const E=Eg(l);return k.jsxs(Tg,w({as:u,className:ne(E.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},_,b,v&&o.props,{ownerState:l,children:[v?o.props.children:o,p?k.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(en.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),en.muiName="SvgIcon";function Sg(e,t){function r(n,o){return k.jsx(en,w({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=en.muiName,S.memo(S.forwardRef(r))}const Rg=ot(Object.freeze(Object.defineProperty({__proto__:null,capitalize:me,createChainedFunction:Jn,createSvgIcon:Sg,debounce:Pm,deprecatedPropType:wm,isMuiElement:Zn,ownerDocument:st,ownerWindow:Xr,requirePropFactory:Im,setRef:Ur,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(`
|
|
185
|
-
`)),iu.configure(e)}},unstable_useEnhancedEffect:$t,unstable_useId:Tu,unsupportedProp:Am,useControlled:Mm,useEventCallback:gt,useForkRef:Je,useIsFocusVisible:Gn},Symbol.toStringTag,{value:"Module"})));var Fu;function Cg(){return Fu||(Fu=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Rg}(oo)),oo}var Bu;function Og(){if(Bu)return sr;Bu=1;var e=hn();Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=void 0;var t=e(Cg()),r=qs();return sr.default=(0,t.default)((0,r.jsx)("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"}),"VerticalAlignBottom"),sr}var Pg=Og();const wg=br(Pg),zu={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)"}}},Ig=(e={},t)=>t.type==="OPEN_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:t.dialogType}}:t.type==="CLOSE_WINDOW_DIALOG"?{...e,[t.windowId]:{openDialog:null}}:e,$g=(e,{windowId:t})=>({openDownloadDialog:()=>e({type:"OPEN_WINDOW_DIALOG",windowId:t,dialogType:"download"})});function Vu({handleClose:e=()=>{},openDownloadDialog:t=()=>{}}){const r=ae.useCallback(()=>{t(),e()},[e,t]),{t:n}=Xe.useTranslation();return k.jsxs(Lu,{onClick:r,children:[k.jsx(ju,{children:k.jsx(wg,{})}),k.jsx(no,{primaryTypographyProps:{variant:"body1"},children:n("mirador-dl-plugin.download")})]})}Vu.propTypes={handleClose:s.func,openDownloadDialog:s.func};const Wu={target:"WindowTopBarPluginMenu",mode:"add",name:"MiradorDownloadPlugin",component:Vu,config:{translations:zu},mapDispatchToProps:$g,reducers:{windowDialogs:Ig}};function Ag(e){const t=st(e);return t.body===e?Xr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ur(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Uu(e){return parseInt(Xr(e).getComputedStyle(e).paddingRight,10)||0}function Mg(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 Gu(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,a=>{const u=i.indexOf(a)===-1,c=!Mg(a);u&&c&&ur(a,o)})}function io(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function Ng(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Ag(n)){const a=Nm(st(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Uu(n)+a}px`;const u=st(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Uu(c)+a}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=st(n).body;else{const a=n.parentElement,u=Xr(n);i=(a==null?void 0:a.nodeName)==="HTML"&&u.getComputedStyle(a).overflowY==="scroll"?a: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:a,property:u})=>{i?a.style.setProperty(u,i):a.style.removeProperty(u)})}}function kg(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Dg{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&&ur(t.modalRef,!1);const o=kg(r);Gu(r,t.mount,t.modalRef,o,!0);const i=io(this.containers,a=>a.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=io(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=Ng(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=io(this.containers,a=>a.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&&ur(t.modalRef,r),Gu(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&ur(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const jg=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qg(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 Lg(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 Fg(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Lg(e))}function Bg(e){const t=[],r=[];return Array.from(e.querySelectorAll(jg)).forEach((n,o)=>{const i=qg(n);i===-1||!Fg(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 zg(){return!0}function tn(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Bg,isEnabled:a=zg,open:u}=e,c=S.useRef(!1),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=S.useRef(null),b=S.useRef(!1),v=S.useRef(null),l=Je(to(t),v),_=S.useRef(null);S.useEffect(()=>{!u||!v.current||(b.current=!r)},[r,u]),S.useEffect(()=>{if(!u||!v.current)return;const T=st(v.current);return v.current.contains(T.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(`
|
|
186
|
-
`)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[u]),S.useEffect(()=>{if(!u||!v.current)return;const T=st(v.current),x=h=>{_.current=h,!(n||!a()||h.key!=="Tab")&&T.activeElement===v.current&&h.shiftKey&&(c.current=!0,f.current&&f.current.focus())},y=()=>{const h=v.current;if(h===null)return;if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(h.contains(T.activeElement)||n&&T.activeElement!==d.current&&T.activeElement!==f.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let O=[];if((T.activeElement===d.current||T.activeElement===f.current)&&(O=i(v.current)),O.length>0){var R,I;const M=!!((R=_.current)!=null&&R.shiftKey&&((I=_.current)==null?void 0:I.key)==="Tab"),F=O[0],D=O[O.length-1];typeof F!="string"&&typeof D!="string"&&(M?D.focus():F.focus())}else h.focus()};T.addEventListener("focusin",y),T.addEventListener("keydown",x,!0);const $=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&y()},50);return()=>{clearInterval($),T.removeEventListener("focusin",y),T.removeEventListener("keydown",x,!0)}},[r,n,o,a,u,i]);const E=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0,m.current=T.target;const x=t.props.onFocus;x&&x(T)},C=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0};return k.jsxs(S.Fragment,{children:[k.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:d,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:l,onFocus:E}),k.jsx("div",{tabIndex:u?0:-1,onFocus:C,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(tn.propTypes={children:Kr,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired}),process.env.NODE_ENV!=="production"&&(tn.propTypes=bu(tn.propTypes));function Vg(e){return typeof e=="function"?e():e}const rn=S.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,u]=S.useState(null),c=Je(S.isValidElement(n)?to(n):null,r);if($t(()=>{i||u(Vg(o)||document.body)},[o,i]),$t(()=>{if(a&&!i)return Ur(r,a),()=>{Ur(r,null)}},[r,a,i]),i){if(S.isValidElement(n)){const d={ref:c};return S.cloneElement(n,d)}return k.jsx(S.Fragment,{children:n})}return k.jsx(S.Fragment,{children:a&&Jd.createPortal(n,a)})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:s.node,container:s.oneOfType([_u,s.func]),disablePortal:s.bool}),process.env.NODE_ENV!=="production"&&(rn.propTypes=bu(rn.propTypes));function ao(){const e=Rm(fu);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[pu]||e}const Wg=e=>e.scrollTop;function Yu(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const Ug=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gg={entering:{opacity:1},entered:{opacity:1}},so=S.forwardRef(function(t,r){const n=ao(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:u,easing:c,in:d,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:l,style:_,timeout:E=o,TransitionComponent:C=at}=t,T=pe(t,Ug),x=S.useRef(null),y=Je(x,to(u),r),$=L=>B=>{if(L){const q=x.current;B===void 0?L(q):L(q,B)}},h=$(m),O=$((L,B)=>{Wg(L);const q=Yu({style:_,timeout:E,easing:c},{mode:"enter"});L.style.webkitTransition=n.transitions.create("opacity",q),L.style.transition=n.transitions.create("opacity",q),f&&f(L,B)}),R=$(p),I=$(l),M=$(L=>{const B=Yu({style:_,timeout:E,easing:c},{mode:"exit"});L.style.webkitTransition=n.transitions.create("opacity",B),L.style.transition=n.transitions.create("opacity",B),b&&b(L)}),F=$(v),D=L=>{i&&i(x.current,L)};return k.jsx(C,w({appear:a,in:d,nodeRef:x,onEnter:O,onEntered:R,onEntering:h,onExit:M,onExited:F,onExiting:I,addEndListener:D,timeout:E},T,{children:(L,B)=>S.cloneElement(u,w({style:w({opacity:0,visibility:L==="exited"&&!d?"hidden":void 0},Gg[L],_,u.props.style),ref:y},B))}))});process.env.NODE_ENV!=="production"&&(so.propTypes={addEndListener:s.func,appear:s.bool,children:Kr.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Yg(e){return Me("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const Hg=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Kg=e=>{const{classes:t,invisible:r}=e;return je({root:["root",r&&"invisible"]},Yg,t)},Xg=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>w({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"})),uo=S.forwardRef(function(t,r){var n,o,i;const a=ke({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:f={},componentsProps:p={},invisible:m=!1,open:b,slotProps:v={},slots:l={},TransitionComponent:_=so,transitionDuration:E}=a,C=pe(a,Hg),T=w({},a,{component:d,invisible:m}),x=Kg(T),y=(n=v.root)!=null?n:p.root;return k.jsx(_,w({in:b,timeout:E},C,{children:k.jsx(Xg,w({"aria-hidden":!0},y,{as:(o=(i=l.root)!=null?i:f.Root)!=null?o:d,className:ne(x.root,c,y==null?void 0:y.className),ownerState:w({},T,y==null?void 0:y.ownerState),classes:x,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(uo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function Jg(e){return typeof e=="function"?e():e}function Zg(e){return e?e.props.hasOwnProperty("in"):!1}const Qg=new Dg;function ey(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Qg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:u,children:c,onClose:d,open:f,rootRef:p}=e,m=S.useRef({}),b=S.useRef(null),v=S.useRef(null),l=Je(v,p),[_,E]=S.useState(!f),C=Zg(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const x=()=>st(b.current),y=()=>(m.current.modalRef=v.current,m.current.mount=b.current,m.current),$=()=>{o.mount(y(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},h=gt(()=>{const q=Jg(t)||x().body;o.add(y(),q),v.current&&$()}),O=S.useCallback(()=>o.isTopModal(y()),[o]),R=gt(q=>{b.current=q,q&&(f&&O()?$():v.current&&ur(v.current,T))}),I=S.useCallback(()=>{o.remove(y(),T)},[T,o]);S.useEffect(()=>()=>{I()},[I]),S.useEffect(()=>{f?h():(!C||!i)&&I()},[f,I,C,i,h]);const M=q=>G=>{var Z;(Z=q.onKeyDown)==null||Z.call(q,G),!(G.key!=="Escape"||G.which===229||!O())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},F=q=>G=>{var Z;(Z=q.onClick)==null||Z.call(q,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(q={})=>{const G=Cu(e);delete G.onTransitionEnter,delete G.onTransitionExited;const Z=w({},G,q);return w({role:"presentation"},Z,{onKeyDown:M(Z),ref:l})},getBackdropProps:(q={})=>{const G=q;return w({"aria-hidden":!0},G,{onClick:F(G),open:f})},getTransitionProps:()=>{const q=()=>{E(!1),a&&a()},G=()=>{E(!0),u&&u(),i&&I()};return{onEnter:Jn(q,c==null?void 0:c.props.onEnter),onExited:Jn(G,c==null?void 0:c.props.onExited)}},rootRef:l,portalRef:R,isTopModal:O,exited:_,hasTransition:C}}function ty(e){return Me("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const ry=["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"],ny=e=>{const{open:t,exited:r,classes:n}=e;return je({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ty,n)},oy=xe("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})=>w({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iy=xe(uo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hu=S.forwardRef(function(t,r){var n,o,i,a,u,c;const d=ke({name:"MuiModal",props:t}),{BackdropComponent:f=iy,BackdropProps:p,className:m,closeAfterTransition:b=!1,children:v,container:l,component:_,components:E={},componentsProps:C={},disableAutoFocus:T=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:y=!1,disablePortal:$=!1,disableRestoreFocus:h=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:M,open:F,slotProps:D,slots:L}=d,B=pe(d,ry),q=w({},d,{closeAfterTransition:b,disableAutoFocus:T,disableEnforceFocus:x,disableEscapeKeyDown:y,disablePortal:$,disableRestoreFocus:h,disableScrollLock:O,hideBackdrop:R,keepMounted:I}),{getRootProps:G,getBackdropProps:Z,getTransitionProps:Pe,portalRef:A,isTopModal:j,exited:Q,hasTransition:X}=ey(w({},q,{rootRef:r})),V=w({},q,{exited:Q}),H=ny(V),Y={};if(v.props.tabIndex===void 0&&(Y.tabIndex="-1"),X){const{onEnter:ge,onExited:ie}=Pe();Y.onEnter=ge,Y.onExited=ie}const K=(n=(o=L==null?void 0:L.root)!=null?o:E.Root)!=null?n:oy,W=(i=(a=L==null?void 0:L.backdrop)!=null?a:E.Backdrop)!=null?i:f,U=(u=D==null?void 0:D.root)!=null?u:C.root,J=(c=D==null?void 0:D.backdrop)!=null?c:C.backdrop,be=Pu({elementType:K,externalSlotProps:U,externalForwardedProps:B,getSlotProps:G,additionalProps:{ref:r,as:_},ownerState:V,className:ne(m,U==null?void 0:U.className,H==null?void 0:H.root,!V.open&&V.exited&&(H==null?void 0:H.hidden))}),P=Pu({elementType:W,externalSlotProps:J,additionalProps:p,getSlotProps:ge=>Z(w({},ge,{onClick:ie=>{M&&M(ie),ge!=null&&ge.onClick&&ge.onClick(ie)}})),className:ne(J==null?void 0:J.className,p==null?void 0:p.className,H==null?void 0:H.backdrop),ownerState:V});return!I&&!F&&(!X||Q)?null:k.jsx(rn,{ref:A,container:l,disablePortal:$,children:k.jsxs(K,w({},be,{children:[!R&&f?k.jsx(W,w({},P)):null,k.jsx(tn,{disableEnforceFocus:x,disableAutoFocus:T,disableRestoreFocus:h,isEnabled:j,open:F,children:S.cloneElement(v,Y)})]}))})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Kr.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([_u,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ku=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ay(e){return Me("MuiPaper",e)}$e("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 sy=["className","component","elevation","square","variant"],uy=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return je(i,ay,o)},cy=xe("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 w({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"&&w({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ne.alpha("#fff",Ku(t.elevation))}, ${Ne.alpha("#fff",Ku(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),co=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:u=!1,variant:c="elevation"}=n,d=pe(n,sy),f=w({},n,{component:i,elevation:a,square:u,variant:c}),p=uy(f);return process.env.NODE_ENV!=="production"&&ao().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
187
|
-
`)),k.jsx(cy,w({as:i,ownerState:f,className:ne(p.root,o),ref:r},d))});process.env.NODE_ENV!=="production"&&(co.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:or(qm,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:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});function ly(e){return Me("MuiDialog",e)}const lo=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),fo=S.createContext({});process.env.NODE_ENV!=="production"&&(fo.displayName="DialogContext");const dy=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],fy=xe(uo,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),py=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${me(r)}`],paper:["paper",`paperScroll${me(r)}`,`paperWidth${me(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return je(a,ly,t)},hy=xe(Hu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),my=xe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${me(r.scroll)}`]]}})(({ownerState:e})=>w({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"}})),gy=xe(co,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${me(r.scroll)}`],t[`paperWidth${me(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>w({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)`,[`&.${lo.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}`,[`&.${lo.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,[`&.${lo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Xu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialog"}),o=ao(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":u,BackdropComponent:c,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:m=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:l="sm",onBackdropClick:_,onClick:E,onClose:C,open:T,PaperComponent:x=co,PaperProps:y={},scroll:$="paper",TransitionComponent:h=so,transitionDuration:O=i,TransitionProps:R}=n,I=pe(n,dy),M=w({},n,{disableEscapeKeyDown:m,fullScreen:b,fullWidth:v,maxWidth:l,scroll:$}),F=py(M),D=S.useRef(),L=Z=>{D.current=Z.target===Z.currentTarget},B=Z=>{E&&E(Z),D.current&&(D.current=null,_&&_(Z),C&&C(Z,"backdropClick"))},q=Tu(u),G=S.useMemo(()=>({titleId:q}),[q]);return k.jsx(hy,w({className:ne(F.root,p),closeAfterTransition:!0,components:{Backdrop:fy},componentsProps:{backdrop:w({transitionDuration:O,as:c},d)},disableEscapeKeyDown:m,onClose:C,open:T,ref:r,onClick:B,ownerState:M},I,{children:k.jsx(h,w({appear:!0,in:T,timeout:O,role:"presentation"},R,{children:k.jsx(my,{className:ne(F.container),onMouseDown:L,ownerState:M,children:k.jsx(gy,w({as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":q},y,{className:ne(F.paper,y.className),ownerState:M,children:k.jsx(fo.Provider,{value:G,children:f})}))})}))}))});process.env.NODE_ENV!=="production"&&(Xu.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function yy(e){return Me("MuiDialogTitle",e)}$e("MuiDialogTitle",["root"]);const vy=["className","id"],by=e=>{const{classes:t}=e;return je({root:["root"]},yy,t)},_y=xe(nt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ju=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=n,a=pe(n,vy),u=n,c=by(u),{titleId:d=i}=S.useContext(fo);return k.jsx(_y,w({component:"h2",className:ne(c.root,o),ownerState:u,ref:r,variant:"h6",id:i??d},a))});process.env.NODE_ENV!=="production"&&(Ju.propTypes={children:s.node,classes:s.object,className:s.string,id:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xy(e){return Me("MuiDialogActions",e)}$e("MuiDialogActions",["root","spacing"]);const Ey=["className","disableSpacing"],Ty=e=>{const{classes:t,disableSpacing:r}=e;return je({root:["root",!r&&"spacing"]},xy,t)},Sy=xe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>w({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Zu=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=n,a=pe(n,Ey),u=w({},n,{disableSpacing:i}),c=Ty(u);return k.jsx(Sy,w({className:ne(c.root,o),ownerState:u,ref:r},a))});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Ry(e){return Me("MuiButton",e)}const nn=$e("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"]),Qu=S.createContext({});process.env.NODE_ENV!=="production"&&(Qu.displayName="ButtonGroupContext");const ec=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ec.displayName="ButtonGroupButtonContext");const Cy=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Oy=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,u={root:["root",i,`${i}${me(t)}`,`size${me(o)}`,`${i}Size${me(o)}`,`color${me(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${me(o)}`],endIcon:["icon","endIcon",`iconSize${me(o)}`]},c=je(u,Ry,a);return w({},a,c)},tc=e=>w({},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}}),Py=xe(Zr,{shouldForwardProp:e=>zn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${me(r.color)}`],t[`size${me(r.size)}`],t[`${r.variant}Size${me(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 w({},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":w({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ne.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})`:Ne.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})`:Ne.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":w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nn.focusVisible}`]:w({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nn.disabled}`]:w({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 ${Ne.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"},[`&.${nn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nn.disabled}`]:{boxShadow:"none"}}),wy=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${me(r.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},tc(e))),Iy=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${me(r.size)}`]]}})(({ownerState:e})=>w({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},tc(e))),rc=S.forwardRef(function(t,r){const n=S.useContext(Qu),o=S.useContext(ec),i=Wr(n,t),a=ke({props:i,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:l,fullWidth:_=!1,size:E="medium",startIcon:C,type:T,variant:x="text"}=a,y=pe(a,Cy),$=w({},a,{color:c,component:d,disabled:p,disableElevation:m,disableFocusRipple:b,fullWidth:_,size:E,type:T,variant:x}),h=Oy($),O=C&&k.jsx(wy,{className:h.startIcon,ownerState:$,children:C}),R=v&&k.jsx(Iy,{className:h.endIcon,ownerState:$,children:v}),I=o||"";return k.jsxs(Py,w({ownerState:$,className:ne(n.className,h.root,f,I),component:d,disabled:p,focusRipple:!b,focusVisibleClassName:ne(h.focusVisible,l),ref:r,type:T},y,{classes:h,children:[O,u,R]}))});process.env.NODE_ENV!=="production"&&(rc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function $y(e){return Me("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const Ay=["children","className","component","dense","disablePadding","subheader"],My=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return je({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$y,t)},Ny=xe("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})=>w({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),po=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,f=pe(n,Ay),p=S.useMemo(()=>({dense:u}),[u]),m=w({},n,{component:a,dense:u,disablePadding:c}),b=My(m);return k.jsx(rt.Provider,{value:p,children:k.jsxs(Ny,w({as:a,className:ne(b.root,i),ref:r,ownerState:m},f,{children:[d,o]}))})});process.env.NODE_ENV!=="production"&&(po.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ky(e){return Me("MuiLink",e)}const Dy=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},jy=e=>nc[e]||e,qy=({theme:e,ownerState:t})=>{const r=jy(t.color),n=St(e,`palette.${r}`,!1)||t.color,o=St(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ne.alpha(n,.4)},Ly=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fy=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,i={root:["root",`underline${me(o)}`,r==="button"&&"button",n&&"focusVisible"]};return je(i,ky,t)},By=xe(nt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>w({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&w({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:qy({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"},[`&.${Dy.focusVisible}`]:{outline:"auto"}})),Nt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:u,onFocus:c,TypographyClasses:d,underline:f="always",variant:p="inherit",sx:m}=n,b=pe(n,Ly),{isFocusVisibleRef:v,onBlur:l,onFocus:_,ref:E}=Gn(),[C,T]=S.useState(!1),x=Je(r,E),y=R=>{l(R),v.current===!1&&T(!1),u&&u(R)},$=R=>{_(R),v.current===!0&&T(!0),c&&c(R)},h=w({},n,{color:i,component:a,focusVisible:C,underline:f,variant:p}),O=Fy(h);return k.jsx(By,w({color:i,className:ne(O.root,o),classes:d,component:a,onBlur:y,onFocus:$,ref:x,ownerState:h,variant:p,sx:[...Object.keys(nc).includes(i)?[]:[{color:i}],...Array.isArray(m)?m:[m]]},b))});process.env.NODE_ENV!=="production"&&(Nt.propTypes={children:s.node,classes:s.object,className:s.string,color:s.any,component:Vn,onBlur:s.func,onFocus:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});function zy(e){return Me("MuiListItem",e)}const kt=$e("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Vy=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Wy(e){return Me("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const Uy=["className"],Gy=e=>{const{disableGutters:t,classes:r}=e;return je({root:["root",t&&"disableGutters"]},Wy,r)},Yy=xe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>w({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),ho=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=n,i=pe(n,Uy),a=S.useContext(rt),u=w({},n,{disableGutters:a.disableGutters}),c=Gy(u);return k.jsx(Yy,w({className:ne(c.root,o),ownerState:u,ref:r},i))});process.env.NODE_ENV!=="production"&&(ho.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),ho.muiName="ListItemSecondaryAction";const Hy=["className"],Ky=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Xy=(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]},Jy=e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:u,divider:c,hasSecondaryAction:d,selected:f}=e;return je({root:["root",o&&"dense",!a&&"gutters",!u&&"padding",c&&"divider",i&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",f&&"selected"],container:["container"]},zy,n)},Zy=xe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Xy})(({theme:e,ownerState:t})=>w({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&w({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Vy.root}`]:{paddingRight:48}},{[`&.${kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kt.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kt.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"}},[`&.${kt.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ne.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})`:Ne.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Qy=xe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Dt=S.forwardRef(function(t,r){const n=ke({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:u,className:c,component:d,components:f={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:b}={},dense:v=!1,disabled:l=!1,disableGutters:_=!1,disablePadding:E=!1,divider:C=!1,focusVisibleClassName:T,secondaryAction:x,selected:y=!1,slotProps:$={},slots:h={}}=n,O=pe(n.ContainerProps,Hy),R=pe(n,Ky),I=S.useContext(rt),M=S.useMemo(()=>({dense:v||I.dense||!1,alignItems:o,disableGutters:_}),[o,I.dense,v,_]),F=S.useRef(null);$t(()=>{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 D=S.Children.toArray(u),L=D.length&&Zn(D[D.length-1],["ListItemSecondaryAction"]),B=w({},n,{alignItems:o,autoFocus:i,button:a,dense:M.dense,disabled:l,disableGutters:_,disablePadding:E,divider:C,hasSecondaryAction:L,selected:y}),q=Jy(B),G=Je(F,r),Z=h.root||f.Root||Zy,Pe=$.root||p.root||{},A=w({className:ne(q.root,Pe.className,c),disabled:l},R);let j=d||"li";return a&&(A.component=d||"div",A.focusVisibleClassName=ne(kt.focusVisible,T),j=Zr),L?(j=!A.component&&!d?"div":j,m==="li"&&(j==="li"?j="div":A.component==="li"&&(A.component="div")),k.jsx(rt.Provider,{value:M,children:k.jsxs(Qy,w({as:m,className:ne(q.container,b),ref:G,ownerState:B},O,{children:[k.jsx(Z,w({},Pe,!eo(Z)&&{as:j,ownerState:w({},B,Pe.ownerState)},A,{children:D})),D.pop()]}))})):k.jsx(rt.Provider,{value:M,children:k.jsxs(Z,w({},Pe,{as:j,ref:G},!eo(Z)&&{ownerState:w({},B,Pe.ownerState)},A,{children:[D,x&&k.jsx(ho,{children:x})]}))})});process.env.NODE_ENV!=="production"&&(Dt.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,button:s.bool,children:or(s.node,e=>{const t=S.Children.toArray(e.children);let r=-1;for(let n=t.length-1;n>=0;n-=1){const o=t[n];if(Zn(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:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:Vn,ContainerProps:s.object,dense:s.bool,disabled:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,focusVisibleClassName:s.string,secondaryAction:s.node,selected:s.bool,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});class mo extends ae.Component{render(){const{rendering:t}=this.props;return k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsxs(no,{primaryTypographyProps:{variant:"body1"},children:[k.jsx(Nt,{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)}}mo.propTypes={rendering:s.shape({id:s.string.isRequired,getLabel:s.func.isRequired,getFormat:s.func.isRequired}).isRequired};function oc({renderings:e}){const{t}=Xe.useTranslation();return k.jsxs(k.Fragment,{children:[k.jsx(nt,{variant:"h3",sx:{marginTop:"20px"},children:t("mirador-dl-plugin.other_download")}),k.jsx(po,{children:e.map(r=>k.jsx(mo,{rendering:r},r.id))})]})}oc.propTypes={renderings:s.array.isRequired};var go,ic;function ev(){if(ic)return go;ic=1;function e(){this.__data__=[],this.size=0}return go=e,go}var yo,ac;function sc(){if(ac)return yo;ac=1;function e(t,r){return t===r||t!==t&&r!==r}return yo=e,yo}var vo,uc;function on(){if(uc)return vo;uc=1;var e=sc();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return vo=t,vo}var bo,cc;function tv(){if(cc)return bo;cc=1;var e=on(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,a=e(i,o);if(a<0)return!1;var u=i.length-1;return a==u?i.pop():r.call(i,a,1),--this.size,!0}return bo=n,bo}var _o,lc;function rv(){if(lc)return _o;lc=1;var e=on();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return _o=t,_o}var xo,dc;function nv(){if(dc)return xo;dc=1;var e=on();function t(r){return e(this.__data__,r)>-1}return xo=t,xo}var Eo,fc;function ov(){if(fc)return Eo;fc=1;var e=on();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 Eo=t,Eo}var To,pc;function an(){if(pc)return To;pc=1;var e=ev(),t=tv(),r=rv(),n=nv(),o=ov();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[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,To=i,To}var So,hc;function iv(){if(hc)return So;hc=1;var e=an();function t(){this.__data__=new e,this.size=0}return So=t,So}var Ro,mc;function av(){if(mc)return Ro;mc=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Ro=e,Ro}var Co,gc;function sv(){if(gc)return Co;gc=1;function e(t){return this.__data__.get(t)}return Co=e,Co}var Oo,yc;function uv(){if(yc)return Oo;yc=1;function e(t){return this.__data__.has(t)}return Oo=e,Oo}var Po,vc;function bc(){if(vc)return Po;vc=1;var e=typeof vr=="object"&&vr&&vr.Object===Object&&vr;return Po=e,Po}var wo,_c;function ut(){if(_c)return wo;_c=1;var e=bc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return wo=r,wo}var Io,xc;function sn(){if(xc)return Io;xc=1;var e=ut(),t=e.Symbol;return Io=t,Io}var $o,Ec;function cv(){if(Ec)return $o;Ec=1;var e=sn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var u=r.call(a,o),c=a[o];try{a[o]=void 0;var d=!0}catch{}var f=n.call(a);return d&&(u?a[o]=c:delete a[o]),f}return $o=i,$o}var Ao,Tc;function lv(){if(Tc)return Ao;Tc=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ao=r,Ao}var Mo,Sc;function cr(){if(Sc)return Mo;Sc=1;var e=sn(),t=cv(),r=lv(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?o:n:i&&i in Object(u)?t(u):r(u)}return Mo=a,Mo}var No,Rc;function ko(){if(Rc)return No;Rc=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return No=e,No}var Do,Cc;function Oc(){if(Cc)return Do;Cc=1;var e=cr(),t=ko(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(u){if(!t(u))return!1;var c=e(u);return c==n||c==o||c==r||c==i}return Do=a,Do}var jo,Pc;function dv(){if(Pc)return jo;Pc=1;var e=ut(),t=e["__core-js_shared__"];return jo=t,jo}var qo,wc;function fv(){if(wc)return qo;wc=1;var e=dv(),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 qo=r,qo}var Lo,Ic;function $c(){if(Ic)return Lo;Ic=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 Lo=r,Lo}var Fo,Ac;function pv(){if(Ac)return Fo;Ac=1;var e=Oc(),t=fv(),r=ko(),n=$c(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,c=a.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(m){if(!r(m)||t(m))return!1;var b=e(m)?f:i;return b.test(n(m))}return Fo=p,Fo}var Bo,Mc;function hv(){if(Mc)return Bo;Mc=1;function e(t,r){return t==null?void 0:t[r]}return Bo=e,Bo}var zo,Nc;function jt(){if(Nc)return zo;Nc=1;var e=pv(),t=hv();function r(n,o){var i=t(n,o);return e(i)?i:void 0}return zo=r,zo}var Vo,kc;function Wo(){if(kc)return Vo;kc=1;var e=jt(),t=ut(),r=e(t,"Map");return Vo=r,Vo}var Uo,Dc;function un(){if(Dc)return Uo;Dc=1;var e=jt(),t=e(Object,"create");return Uo=t,Uo}var Go,jc;function mv(){if(jc)return Go;jc=1;var e=un();function t(){this.__data__=e?e(null):{},this.size=0}return Go=t,Go}var Yo,qc;function gv(){if(qc)return Yo;qc=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Yo=e,Yo}var Ho,Lc;function yv(){if(Lc)return Ho;Lc=1;var e=un(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(i){var a=this.__data__;if(e){var u=a[i];return u===t?void 0:u}return n.call(a,i)?a[i]:void 0}return Ho=o,Ho}var Ko,Fc;function vv(){if(Fc)return Ko;Fc=1;var e=un(),t=Object.prototype,r=t.hasOwnProperty;function n(o){var i=this.__data__;return e?i[o]!==void 0:r.call(i,o)}return Ko=n,Ko}var Xo,Bc;function bv(){if(Bc)return Xo;Bc=1;var e=un(),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 Xo=r,Xo}var Jo,zc;function _v(){if(zc)return Jo;zc=1;var e=mv(),t=gv(),r=yv(),n=vv(),o=bv();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[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,Jo=i,Jo}var Zo,Vc;function xv(){if(Vc)return Zo;Vc=1;var e=_v(),t=an(),r=Wo();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Zo=n,Zo}var Qo,Wc;function Ev(){if(Wc)return Qo;Wc=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 ei,Uc;function cn(){if(Uc)return ei;Uc=1;var e=Ev();function t(r,n){var o=r.__data__;return e(n)?o[typeof n=="string"?"string":"hash"]:o.map}return ei=t,ei}var ti,Gc;function Tv(){if(Gc)return ti;Gc=1;var e=cn();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ti=t,ti}var ri,Yc;function Sv(){if(Yc)return ri;Yc=1;var e=cn();function t(r){return e(this,r).get(r)}return ri=t,ri}var ni,Hc;function Rv(){if(Hc)return ni;Hc=1;var e=cn();function t(r){return e(this,r).has(r)}return ni=t,ni}var oi,Kc;function Cv(){if(Kc)return oi;Kc=1;var e=cn();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 oi=t,oi}var ii,Xc;function ai(){if(Xc)return ii;Xc=1;var e=xv(),t=Tv(),r=Sv(),n=Rv(),o=Cv();function i(a){var u=-1,c=a==null?0:a.length;for(this.clear();++u<c;){var d=a[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,ii=i,ii}var si,Jc;function Ov(){if(Jc)return si;Jc=1;var e=an(),t=Wo(),r=ai(),n=200;function o(i,a){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([i,a]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(i,a),this.size=u.size,this}return si=o,si}var ui,Zc;function Qc(){if(Zc)return ui;Zc=1;var e=an(),t=iv(),r=av(),n=sv(),o=uv(),i=Ov();function a(u){var c=this.__data__=new e(u);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,ui=a,ui}var ci,el;function Pv(){if(el)return ci;el=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ci=t,ci}var li,tl;function wv(){if(tl)return li;tl=1;function e(t){return this.__data__.has(t)}return li=e,li}var di,rl;function nl(){if(rl)return di;rl=1;var e=ai(),t=Pv(),r=wv();function n(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new e;++i<a;)this.add(o[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,di=n,di}var fi,ol;function Iv(){if(ol)return fi;ol=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 fi=e,fi}var pi,il;function al(){if(il)return pi;il=1;function e(t,r){return t.has(r)}return pi=e,pi}var hi,sl;function ul(){if(sl)return hi;sl=1;var e=nl(),t=Iv(),r=al(),n=1,o=2;function i(a,u,c,d,f,p){var m=c&n,b=a.length,v=u.length;if(b!=v&&!(m&&v>b))return!1;var l=p.get(a),_=p.get(u);if(l&&_)return l==u&&_==a;var E=-1,C=!0,T=c&o?new e:void 0;for(p.set(a,u),p.set(u,a);++E<b;){var x=a[E],y=u[E];if(d)var $=m?d(y,x,E,u,a,p):d(x,y,E,a,u,p);if($!==void 0){if($)continue;C=!1;break}if(T){if(!t(u,function(h,O){if(!r(T,O)&&(x===h||f(x,h,c,d,p)))return T.push(O)})){C=!1;break}}else if(!(x===y||f(x,y,c,d,p))){C=!1;break}}return p.delete(a),p.delete(u),C}return hi=i,hi}var mi,cl;function $v(){if(cl)return mi;cl=1;var e=ut(),t=e.Uint8Array;return mi=t,mi}var gi,ll;function Av(){if(ll)return gi;ll=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o,i){n[++r]=[i,o]}),n}return gi=e,gi}var yi,dl;function vi(){if(dl)return yi;dl=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}return yi=e,yi}var bi,fl;function Mv(){if(fl)return bi;fl=1;var e=sn(),t=$v(),r=sc(),n=ul(),o=Av(),i=vi(),a=1,u=2,c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",m="[object Number]",b="[object RegExp]",v="[object Set]",l="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,x=T?T.valueOf:void 0;function y($,h,O,R,I,M,F){switch(O){case C:if($.byteLength!=h.byteLength||$.byteOffset!=h.byteOffset)return!1;$=$.buffer,h=h.buffer;case E:return!($.byteLength!=h.byteLength||!M(new t($),new t(h)));case c:case d:case m:return r(+$,+h);case f:return $.name==h.name&&$.message==h.message;case b:case l:return $==h+"";case p:var D=o;case v:var L=R&a;if(D||(D=i),$.size!=h.size&&!L)return!1;var B=F.get($);if(B)return B==h;R|=u,F.set($,h);var q=n(D($),D(h),R,I,M,F);return F.delete($),q;case _:if(x)return x.call($)==x.call(h)}return!1}return bi=y,bi}var _i,pl;function Nv(){if(pl)return _i;pl=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 _i=e,_i}var xi,hl;function ft(){if(hl)return xi;hl=1;var e=Array.isArray;return xi=e,xi}var Ei,ml;function kv(){if(ml)return Ei;ml=1;var e=Nv(),t=ft();function r(n,o,i){var a=o(n);return t(n)?a:e(a,i(n))}return Ei=r,Ei}var Ti,gl;function Dv(){if(gl)return Ti;gl=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=0,a=[];++n<o;){var u=t[n];r(u,n,t)&&(a[i++]=u)}return a}return Ti=e,Ti}var Si,yl;function jv(){if(yl)return Si;yl=1;function e(){return[]}return Si=e,Si}var Ri,vl;function qv(){if(vl)return Ri;vl=1;var e=Dv(),t=jv(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(u){return n.call(a,u)}))}:t;return Ri=i,Ri}var Ci,bl;function Lv(){if(bl)return Ci;bl=1;function e(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}return Ci=e,Ci}var Oi,_l;function lr(){if(_l)return Oi;_l=1;function e(t){return t!=null&&typeof t=="object"}return Oi=e,Oi}var Pi,xl;function Fv(){if(xl)return Pi;xl=1;var e=cr(),t=lr(),r="[object Arguments]";function n(o){return t(o)&&e(o)==r}return Pi=n,Pi}var wi,El;function Tl(){if(El)return wi;El=1;var e=Fv(),t=lr(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!o.call(a,"callee")};return wi=i,wi}var dr={exports:{}},Ii,Sl;function Bv(){if(Sl)return Ii;Sl=1;function e(){return!1}return Ii=e,Ii}dr.exports;var Rl;function Cl(){return Rl||(Rl=1,function(e,t){var r=ut(),n=Bv(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,u=a?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d}(dr,dr.exports)),dr.exports}var $i,Ol;function Pl(){if(Ol)return $i;Ol=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 $i=r,$i}var Ai,wl;function Mi(){if(wl)return Ai;wl=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ai=t,Ai}var Ni,Il;function zv(){if(Il)return Ni;Il=1;var e=cr(),t=Mi(),r=lr(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",b="[object Set]",v="[object String]",l="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",x="[object Int8Array]",y="[object Int16Array]",$="[object Int32Array]",h="[object Uint8Array]",O="[object Uint8ClampedArray]",R="[object Uint16Array]",I="[object Uint32Array]",M={};M[C]=M[T]=M[x]=M[y]=M[$]=M[h]=M[O]=M[R]=M[I]=!0,M[n]=M[o]=M[_]=M[i]=M[E]=M[a]=M[u]=M[c]=M[d]=M[f]=M[p]=M[m]=M[b]=M[v]=M[l]=!1;function F(D){return r(D)&&t(D.length)&&!!M[e(D)]}return Ni=F,Ni}var ki,$l;function Vv(){if($l)return ki;$l=1;function e(t){return function(r){return t(r)}}return ki=e,ki}var fr={exports:{}};fr.exports;var Al;function Wv(){return Al||(Al=1,function(e,t){var r=bc(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,u=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=u}(fr,fr.exports)),fr.exports}var Di,Ml;function Nl(){if(Ml)return Di;Ml=1;var e=zv(),t=Vv(),r=Wv(),n=r&&r.isTypedArray,o=n?t(n):e;return Di=o,Di}var ji,kl;function Uv(){if(kl)return ji;kl=1;var e=Lv(),t=Tl(),r=ft(),n=Cl(),o=Pl(),i=Nl(),a=Object.prototype,u=a.hasOwnProperty;function c(d,f){var p=r(d),m=!p&&t(d),b=!p&&!m&&n(d),v=!p&&!m&&!b&&i(d),l=p||m||b||v,_=l?e(d.length,String):[],E=_.length;for(var C in d)(f||u.call(d,C))&&!(l&&(C=="length"||b&&(C=="offset"||C=="parent")||v&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,E)))&&_.push(C);return _}return ji=c,ji}var qi,Dl;function Gv(){if(Dl)return qi;Dl=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return qi=t,qi}var Li,jl;function Yv(){if(jl)return Li;jl=1;function e(t,r){return function(n){return t(r(n))}}return Li=e,Li}var Fi,ql;function Hv(){if(ql)return Fi;ql=1;var e=Yv(),t=e(Object.keys,Object);return Fi=t,Fi}var Bi,Ll;function Kv(){if(Ll)return Bi;Ll=1;var e=Gv(),t=Hv(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&a.push(u);return a}return Bi=o,Bi}var zi,Fl;function Xv(){if(Fl)return zi;Fl=1;var e=Oc(),t=Mi();function r(n){return n!=null&&t(n.length)&&!e(n)}return zi=r,zi}var Vi,Bl;function zl(){if(Bl)return Vi;Bl=1;var e=Uv(),t=Kv(),r=Xv();function n(o){return r(o)?e(o):t(o)}return Vi=n,Vi}var Wi,Vl;function Jv(){if(Vl)return Wi;Vl=1;var e=kv(),t=qv(),r=zl();function n(o){return e(o,r,t)}return Wi=n,Wi}var Ui,Wl;function Zv(){if(Wl)return Ui;Wl=1;var e=Jv(),t=1,r=Object.prototype,n=r.hasOwnProperty;function o(i,a,u,c,d,f){var p=u&t,m=e(i),b=m.length,v=e(a),l=v.length;if(b!=l&&!p)return!1;for(var _=b;_--;){var E=m[_];if(!(p?E in a:n.call(a,E)))return!1}var C=f.get(i),T=f.get(a);if(C&&T)return C==a&&T==i;var x=!0;f.set(i,a),f.set(a,i);for(var y=p;++_<b;){E=m[_];var $=i[E],h=a[E];if(c)var O=p?c(h,$,E,a,i,f):c($,h,E,i,a,f);if(!(O===void 0?$===h||d($,h,u,c,f):O)){x=!1;break}y||(y=E=="constructor")}if(x&&!y){var R=i.constructor,I=a.constructor;R!=I&&"constructor"in i&&"constructor"in a&&!(typeof R=="function"&&R instanceof R&&typeof I=="function"&&I instanceof I)&&(x=!1)}return f.delete(i),f.delete(a),x}return Ui=o,Ui}var Gi,Ul;function Qv(){if(Ul)return Gi;Ul=1;var e=jt(),t=ut(),r=e(t,"DataView");return Gi=r,Gi}var Yi,Gl;function eb(){if(Gl)return Yi;Gl=1;var e=jt(),t=ut(),r=e(t,"Promise");return Yi=r,Yi}var Hi,Yl;function Hl(){if(Yl)return Hi;Yl=1;var e=jt(),t=ut(),r=e(t,"Set");return Hi=r,Hi}var Ki,Kl;function tb(){if(Kl)return Ki;Kl=1;var e=jt(),t=ut(),r=e(t,"WeakMap");return Ki=r,Ki}var Xi,Xl;function rb(){if(Xl)return Xi;Xl=1;var e=Qv(),t=Wo(),r=eb(),n=Hl(),o=tb(),i=cr(),a=$c(),u="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",b=a(e),v=a(t),l=a(r),_=a(n),E=a(o),C=i;return(e&&C(new e(new ArrayBuffer(1)))!=m||t&&C(new t)!=u||r&&C(r.resolve())!=d||n&&C(new n)!=f||o&&C(new o)!=p)&&(C=function(T){var x=i(T),y=x==c?T.constructor:void 0,$=y?a(y):"";if($)switch($){case b:return m;case v:return u;case l:return d;case _:return f;case E:return p}return x}),Xi=C,Xi}var Ji,Jl;function nb(){if(Jl)return Ji;Jl=1;var e=Qc(),t=ul(),r=Mv(),n=Zv(),o=rb(),i=ft(),a=Cl(),u=Nl(),c=1,d="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype,b=m.hasOwnProperty;function v(l,_,E,C,T,x){var y=i(l),$=i(_),h=y?f:o(l),O=$?f:o(_);h=h==d?p:h,O=O==d?p:O;var R=h==p,I=O==p,M=h==O;if(M&&a(l)){if(!a(_))return!1;y=!0,R=!1}if(M&&!R)return x||(x=new e),y||u(l)?t(l,_,E,C,T,x):r(l,_,h,E,C,T,x);if(!(E&c)){var F=R&&b.call(l,"__wrapped__"),D=I&&b.call(_,"__wrapped__");if(F||D){var L=F?l.value():l,B=D?_.value():_;return x||(x=new e),T(L,B,E,C,x)}}return M?(x||(x=new e),n(l,_,E,C,T,x)):!1}return Ji=v,Ji}var Zi,Zl;function Ql(){if(Zl)return Zi;Zl=1;var e=nb(),t=lr();function r(n,o,i,a,u){return n===o?!0:n==null||o==null||!t(n)&&!t(o)?n!==n&&o!==o:e(n,o,i,a,r,u)}return Zi=r,Zi}var Qi,ed;function ob(){if(ed)return Qi;ed=1;var e=Qc(),t=Ql(),r=1,n=2;function o(i,a,u,c){var d=u.length,f=d,p=!c;if(i==null)return!f;for(i=Object(i);d--;){var m=u[d];if(p&&m[2]?m[1]!==i[m[0]]:!(m[0]in i))return!1}for(;++d<f;){m=u[d];var b=m[0],v=i[b],l=m[1];if(p&&m[2]){if(v===void 0&&!(b in i))return!1}else{var _=new e;if(c)var E=c(v,l,b,i,a,_);if(!(E===void 0?t(l,v,r|n,c,_):E))return!1}}return!0}return Qi=o,Qi}var ea,td;function rd(){if(td)return ea;td=1;var e=ko();function t(r){return r===r&&!e(r)}return ea=t,ea}var ta,nd;function ib(){if(nd)return ta;nd=1;var e=rd(),t=zl();function r(n){for(var o=t(n),i=o.length;i--;){var a=o[i],u=n[a];o[i]=[a,u,e(u)]}return o}return ta=r,ta}var ra,od;function id(){if(od)return ra;od=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return ra=e,ra}var na,ad;function ab(){if(ad)return na;ad=1;var e=ob(),t=ib(),r=id();function n(o){var i=t(o);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(a){return a===o||e(a,o,i)}}return na=n,na}var oa,sd;function ia(){if(sd)return oa;sd=1;var e=cr(),t=lr(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return oa=n,oa}var aa,ud;function sa(){if(ud)return aa;ud=1;var e=ft(),t=ia(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){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)||a!=null&&i in Object(a)}return aa=o,aa}var ua,cd;function sb(){if(cd)return ua;cd=1;var e=ai(),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 a=arguments,u=o?o.apply(this,a):a[0],c=i.cache;if(c.has(u))return c.get(u);var d=n.apply(this,a);return i.cache=c.set(u,d)||c,d};return i.cache=new(r.Cache||e),i}return r.Cache=e,ua=r,ua}var ca,ld;function ub(){if(ld)return ca;ld=1;var e=sb(),t=500;function r(n){var o=e(n,function(a){return i.size===t&&i.clear(),a}),i=o.cache;return o}return ca=r,ca}var la,dd;function cb(){if(dd)return la;dd=1;var e=ub(),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(a,u,c,d){i.push(c?d.replace(r,"$1"):u||a)}),i});return la=n,la}var da,fd;function lb(){if(fd)return da;fd=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 da=e,da}var fa,pd;function db(){if(pd)return fa;pd=1;var e=sn(),t=lb(),r=ft(),n=ia(),o=e?e.prototype:void 0,i=o?o.toString:void 0;function a(u){if(typeof u=="string")return u;if(r(u))return t(u,a)+"";if(n(u))return i?i.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return fa=a,fa}var pa,hd;function fb(){if(hd)return pa;hd=1;var e=db();function t(r){return r==null?"":e(r)}return pa=t,pa}var ha,md;function gd(){if(md)return ha;md=1;var e=ft(),t=sa(),r=cb(),n=fb();function o(i,a){return e(i)?i:t(i,a)?[i]:r(n(i))}return ha=o,ha}var ma,yd;function ln(){if(yd)return ma;yd=1;var e=ia();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ma=t,ma}var ga,vd;function bd(){if(vd)return ga;vd=1;var e=gd(),t=ln();function r(n,o){o=e(o,n);for(var i=0,a=o.length;n!=null&&i<a;)n=n[t(o[i++])];return i&&i==a?n:void 0}return ga=r,ga}var ya,_d;function pb(){if(_d)return ya;_d=1;var e=bd();function t(r,n,o){var i=r==null?void 0:e(r,n);return i===void 0?o:i}return ya=t,ya}var va,xd;function hb(){if(xd)return va;xd=1;function e(t,r){return t!=null&&r in Object(t)}return va=e,va}var ba,Ed;function mb(){if(Ed)return ba;Ed=1;var e=gd(),t=Tl(),r=ft(),n=Pl(),o=Mi(),i=ln();function a(u,c,d){c=e(c,u);for(var f=-1,p=c.length,m=!1;++f<p;){var b=i(c[f]);if(!(m=u!=null&&d(u,b)))break;u=u[b]}return m||++f!=p?m:(p=u==null?0:u.length,!!p&&o(p)&&n(b,p)&&(r(u)||t(u)))}return ba=a,ba}var _a,Td;function gb(){if(Td)return _a;Td=1;var e=hb(),t=mb();function r(n,o){return n!=null&&t(n,o,e)}return _a=r,_a}var xa,Sd;function yb(){if(Sd)return xa;Sd=1;var e=Ql(),t=pb(),r=gb(),n=sa(),o=rd(),i=id(),a=ln(),u=1,c=2;function d(f,p){return n(f)&&o(p)?i(a(f),p):function(m){var b=t(m,f);return b===void 0&&b===p?r(m,f):e(p,b,u|c)}}return xa=d,xa}var Ea,Rd;function vb(){if(Rd)return Ea;Rd=1;function e(t){return t}return Ea=e,Ea}var Ta,Cd;function bb(){if(Cd)return Ta;Cd=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Ta=e,Ta}var Sa,Od;function _b(){if(Od)return Sa;Od=1;var e=bd();function t(r){return function(n){return e(n,r)}}return Sa=t,Sa}var Ra,Pd;function xb(){if(Pd)return Ra;Pd=1;var e=bb(),t=_b(),r=sa(),n=ln();function o(i){return r(i)?e(n(i)):t(i)}return Ra=o,Ra}var Ca,wd;function Eb(){if(wd)return Ca;wd=1;var e=ab(),t=yb(),r=vb(),n=ft(),o=xb();function i(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):o(a)}return Ca=i,Ca}var Oa,Id;function Tb(){if(Id)return Oa;Id=1;function e(t,r,n,o){for(var i=t.length,a=n+(o?1:-1);o?a--:++a<i;)if(r(t[a],a,t))return a;return-1}return Oa=e,Oa}var Pa,$d;function Sb(){if($d)return Pa;$d=1;function e(t){return t!==t}return Pa=e,Pa}var wa,Ad;function Rb(){if(Ad)return wa;Ad=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 wa=e,wa}var Ia,Md;function Cb(){if(Md)return Ia;Md=1;var e=Tb(),t=Sb(),r=Rb();function n(o,i,a){return i===i?r(o,i,a):e(o,t,a)}return Ia=n,Ia}var $a,Nd;function Ob(){if(Nd)return $a;Nd=1;var e=Cb();function t(r,n){var o=r==null?0:r.length;return!!o&&e(r,n,0)>-1}return $a=t,$a}var Aa,kd;function Pb(){if(kd)return Aa;kd=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 Aa=e,Aa}var Ma,Dd;function wb(){if(Dd)return Ma;Dd=1;function e(){}return Ma=e,Ma}var Na,jd;function Ib(){if(jd)return Na;jd=1;var e=Hl(),t=wb(),r=vi(),n=1/0,o=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return Na=o,Na}var ka,qd;function $b(){if(qd)return ka;qd=1;var e=nl(),t=Ob(),r=Pb(),n=al(),o=Ib(),i=vi(),a=200;function u(c,d,f){var p=-1,m=t,b=c.length,v=!0,l=[],_=l;if(f)v=!1,m=r;else if(b>=a){var E=d?null:o(c);if(E)return i(E);v=!1,m=n,_=new e}else _=d?[]:l;e:for(;++p<b;){var C=c[p],T=d?d(C):C;if(C=f||C!==0?C:0,v&&T===T){for(var x=_.length;x--;)if(_[x]===T)continue e;d&&_.push(T),l.push(C)}else m(_,T,f)||(_!==l&&_.push(T),l.push(C))}return l}return ka=u,ka}var Da,Ld;function Ab(){if(Ld)return Da;Ld=1;var e=Eb(),t=$b();function r(n,o){return n&&n.length?t(n,e(o,2)):[]}return Da=r,Da}var Mb=Ab();const Nb=br(Mb);class Fd extends ae.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 Xe.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?Nb(t.json.sizes,r=>`${r.width}${r.height}`):[]}fullImageLink(){return k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{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?"":k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{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=>k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{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 k.jsxs(k.Fragment,{children:[k.jsx(nt,{noWrap:!0,variant:"h3",sx:{marginTop:"20px"},children:r}),k.jsxs(po,{children:[this.displayCurrentZoomLink()&&k.jsx(Dt,{disableGutters:!0,divider:!0,children:k.jsx(Nt,{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=>k.jsx(mo,{rendering:n},n.id))]})]})}}Fd.propTypes={canvas:s.shape({id:s.string.isRequired,getCanonicalImageUri:s.func.isRequired,getHeight:s.func.isRequired,getRenderings:s.func.isRequired,getWidth:s.func.isRequired}).isRequired,canvasLabel:s.string.isRequired,infoResponse:s.shape({json:s.shape({height:s.number,sizes:s.arrayOf(s.shape({height:s.number,width:s.number})),width:s.number})}).isRequired,restrictDownloadOnSizeDefinition:s.bool.isRequired,t:s.func.isRequired,viewType:s.string.isRequired,windowId:s.string.isRequired};const kb=(e,{windowId:t})=>({closeDialog:()=>e({type:"CLOSE_WINDOW_DIALOG",windowId:t})}),Db=(e,{windowId:t})=>({canvases:Xe.getVisibleCanvases(e,{windowId:t}),canvasLabel:r=>Xe.getCanvasLabel(e,{canvasId:r,windowId:t}),containerId:Xe.getContainerId(e),infoResponse:r=>Xe.selectInfoResponse(e,{windowId:t,canvasId:r})||{},manifest:Xe.getManifestoInstance(e,{windowId:t}),restrictDownloadOnSizeDefinition:e.config.miradorDownloadPlugin&&e.config.miradorDownloadPlugin.restrictDownloadOnSizeDefinition,open:e.windowDialogs[t]&&e.windowDialogs[t].openDialog==="download",viewType:Xe.getWindowViewType(e,{windowId:t})});function Bd({canvases:e=[],canvasLabel:t,closeDialog:r,containerId:n,infoResponse:o,manifest:i=void 0,open:a=!1,restrictDownloadOnSizeDefinition:u=!1,viewType:c,windowId:d}){const{t:f}=Xe.useTranslation(),p=ae.useMemo(()=>i&&i.getSequences()&&i.getSequences()[0]&&i.getSequences()[0].getRenderings()?i.getSequences()[0].getRenderings():[],[i]);return a?k.jsxs(Xu,{"data-testid":"dialog-content",container:document.querySelector(`#${n} .mirador-viewer`),disableEnforceFocus:!0,onClose:r,open:a,scroll:"paper",fullWidth:!0,maxWidth:"xs",children:[k.jsx(Ju,{sx:{paddingBottom:0},children:k.jsx(nt,{variant:"h2",component:"span",children:f("mirador-dl-plugin.download")})}),k.jsxs(Xe.ScrollIndicatedDialogContent,{children:[e.map(m=>k.jsx(Fd,{canvas:m,canvasLabel:t(m.id),infoResponse:o(m.id),restrictDownloadOnSizeDefinition:u,t:f,viewType:c,windowId:d},m.id)),p.length>0&&k.jsx(oc,{renderings:p,t:f})]}),k.jsx(Zu,{children:k.jsx(rc,{onClick:r,color:"primary",children:f("mirador-dl-plugin.close")})})]}):""}Bd.propTypes={canvasLabel:s.func.isRequired,canvases:s.arrayOf(s.shape({id:s.string,index:s.number})),closeDialog:s.func.isRequired,containerId:s.string.isRequired,infoResponse:s.func.isRequired,manifest:s.shape({getSequences:s.func}),open:s.bool,restrictDownloadOnSizeDefinition:s.bool,viewType:s.string.isRequired,windowId:s.string.isRequired};const zd={target:"Window",mode:"add",name:"MiradorDownloadDialog",component:Bd,config:{translations:zu},mapDispatchToProps:kb,mapStateToProps:Db},jb=[Wu,zd];Ke.MiradorDownloadDialogPlugin=zd,Ke.default=jb,Ke.miradorDownloadPlugin=Wu,Object.defineProperties(Ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
188
|
-
//# sourceMappingURL=mirador-dl-plugin.js.map
|