Plugin Directory

Changeset 3415191


Ignore:
Timestamp:
12/09/2025 10:29:50 AM (6 weeks ago)
Author:
woosofts
Message:

New release 1.3.0

Location:
store-restriction-for-woocommerce/trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • store-restriction-for-woocommerce/trunk/build/admin.bundle.asset.php

    r3382928 r3415191  
    1 <?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'c6fd253d2e2c50fc7c07');
     1<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '85ddb926c5cabe8cf73a');
  • store-restriction-for-woocommerce/trunk/build/admin.bundle.js

    r3382928 r3415191  
    1 (()=>{var e={655:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),n=Math.abs,a=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,r){return e.slice(t,r)}function p(e){return e.length}function f(e){return e.length}function m(e,t){return t.push(e),e}var h=1,g=1,b=0,v=0,y=0,x="";function w(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:h,column:g,length:i,return:""}}function S(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return y=v>0?d(x,--v):0,g--,10===y&&(g=1,h--),y}function C(){return y=v<b?d(x,v++):0,g++,10===y&&(g=1,h++),y}function k(){return d(x,v)}function R(){return v}function E(e,t){return u(x,e,t)}function P(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 O(e){return h=g=1,b=p(x=e),v=0,[]}function $(e){return x="",e}function M(e){return l(E(v-1,N(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(y=k())&&y<33;)C();return P(e)>2||P(y)>3?"":" "}function I(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return E(e,R()+(t<6&&32==k()&&32==C()))}function N(e){for(;C();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&N(y);break;case 40:41===e&&N(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+E(t,v-1)+"*"+a(47===e?e:C())}function L(e){for(;!P(k());)C();return E(e,v)}var z="-ms-",F="-moz-",B="-webkit-",W="comm",D="rule",_="decl",H="@keyframes";function V(e,t){for(var r="",o=f(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function q(e,t,r,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _:return e.return=e.return||e.value;case W:return"";case H:return e.return=e.value+"{"+V(e.children,o)+"}";case D:e.value=e.props.join(",")}return p(r=V(e.children,o))?e.return=e.value+"{"+r+"}":""}function K(e){return $(X("",null,null,null,[""],e=O(e),0,[0],e))}function X(e,t,r,o,n,i,l,u,f){for(var h=0,g=0,b=l,v=0,y=0,x=0,w=1,S=1,E=1,P=0,O="",$=n,N=i,z=o,F=O;S;)switch(x=P,P=C()){case 40:if(108!=x&&58==d(F,b-1)){-1!=c(F+=s(M(P),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:F+=M(P);break;case 9:case 10:case 13:case 32:F+=T(x);break;case 92:F+=I(R()-1,7);continue;case 47:switch(k()){case 42:case 47:m(G(j(C(),R()),t,r),f);break;default:F+="/"}break;case 123*w:u[h++]=p(F)*E;case 125*w:case 59:case 0:switch(P){case 0:case 125:S=0;case 59+g:-1==E&&(F=s(F,/\f/g,"")),y>0&&p(F)-b&&m(y>32?Y(F+";",o,r,b-1):Y(s(F," ","")+";",o,r,b-2),f);break;case 59:F+=";";default:if(m(z=U(F,t,r,h,g,n,u,O,$=[],N=[],b),i),123===P)if(0===g)X(F,t,z,z,$,i,b,u,N);else switch(99===v&&110===d(F,3)?100:v){case 100:case 108:case 109:case 115:X(e,z,z,o&&m(U(e,z,z,0,0,n,u,O,n,$=[],b),N),n,N,b,u,o?$:N);break;default:X(F,z,z,z,[""],N,0,u,N)}}h=g=y=0,w=E=1,O=F="",b=l;break;case 58:b=1+p(F),y=x;default:if(w<1)if(123==P)--w;else if(125==P&&0==w++&&125==A())continue;switch(F+=a(P),P*w){case 38:E=g>0?1:(F+="\f",-1);break;case 44:u[h++]=(p(F)-1)*E,E=1;break;case 64:45===k()&&(F+=M(C())),v=k(),g=b=p(O=F+=L(R())),P++;break;case 45:45===x&&2==p(F)&&(w=0)}}return i}function U(e,t,r,o,a,i,c,d,p,m,h){for(var g=a-1,b=0===a?i:[""],v=f(b),y=0,x=0,S=0;y<o;++y)for(var A=0,C=u(e,g+1,g=n(x=c[y])),k=e;A<v;++A)(k=l(x>0?b[A]+" "+C:s(C,/&\f/g,b[A])))&&(p[S++]=k);return w(e,t,r,0===a?D:d,p,m,h)}function G(e,t,r){return w(e,t,r,W,a(y),u(e,2,-2),0)}function Y(e,t,r,o){return w(e,t,r,_,u(e,0,o),u(e,o+1,-1),o)}var J=function(e,t,r){for(var o=0,n=0;o=n,n=k(),38===o&&12===n&&(t[r]=1),!P(n);)C();return E(e,v)},Z=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(r))&&!o){Z.set(e,!0);for(var n=[],i=function(e,t){return $(function(e,t){var r=-1,o=44;do{switch(P(o)){case 0:38===o&&12===k()&&(t[r]=1),e[r]+=J(v-1,t,r);break;case 2:e[r]+=M(o);break;case 4:if(44===o){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(o)}}while(o=C());return e}(O(e),t))}(t,n),l=r.props,s=0,c=0;s<i.length;s++)for(var d=0;d<l.length;d++,c++)e.props[c]=n[s]?i[s].replace(/&\f/g,l[d]):l[d]+" "+i[s]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+F+e+z+e+e;case 6828:case 4268:return B+e+z+e+e;case 6165:return B+e+z+"flex-"+e+e;case 5187:return B+e+s(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return B+e+z+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return B+e+z+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+z+s(e,"shrink","negative")+e;case 5292:return B+e+z+s(e,"basis","preferred-size")+e;case 6060:return B+"box-"+s(e,"-grow","")+B+e+z+s(e,"grow","positive")+e;case 4554:return B+s(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,B+"$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(p(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+B)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===d(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return B+e+z+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+z+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+z+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+z+e+e}return e}var re=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case _:e.return=te(e.value,e.length);break;case H:return V([S(e,{value:s(e.value,"@","@"+B)})],o);case D:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([S(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return V([S(e,{props:[s(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,z+"input-$1")]})],o)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,i=e.stylisPlugins||re,l={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)l[t[r]]=!0;s.push(e)}));var c,d,u,p,m=[q,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(d=[Q,ee].concat(i,m),u=f(d),function(e,t,r,o){for(var n="",a=0;a<u;a++)n+=d[a](e,t,r,o)||"";return n});a=function(e,t,r,o){c=r,V(K(e?e+"{"+t.styles+"}":t.styles),h),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new o({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return g.sheet.hydrate(s),g}},289:(e,t,r)=>{"use strict";function o(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>o})},684:(e,t,r)=>{"use strict";r.d(t,{C:()=>c,E:()=>g,T:()=>u,c:()=>m,h:()=>p,w:()=>d});var o=r(609),n=r(655),a=r(41),i=r(174),l=r(287),s=o.createContext("undefined"!=typeof HTMLElement?(0,n.A)({key:"css"}):null),c=s.Provider,d=function(e){return(0,o.forwardRef)((function(t,r){var n=(0,o.useContext)(s);return e(t,n,r)}))},u=o.createContext({}),p={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var r={};for(var o in t)p.call(t,o)&&(r[o]=t[o]);return r[f]=e,r},h=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;return(0,a.SF)(t,r,o),(0,l.s)((function(){return(0,a.sk)(t,r,o)})),null},g=d((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var l=e[f],s=[n],c="";"string"==typeof e.className?c=(0,a.Rk)(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var d=(0,i.J)(s,void 0,o.useContext(u));c+=t.key+"-"+d.name;var m={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==f&&(m[g]=e[g]);return m.className=c,r&&(m.ref=r),o.createElement(o.Fragment,null,o.createElement(h,{cache:t,serialized:d,isStringTag:"string"==typeof l}),o.createElement(l,m))}))},437:(e,t,r)=>{"use strict";r.d(t,{AH:()=>p,i7:()=>f,mL:()=>u});var o,n,a=r(684),i=r(609),l=r(41),s=r(287),c=r(174),d=(r(655),r(146),function(e,t){var r=arguments;if(null==t||!a.h.call(t,"css"))return i.createElement.apply(void 0,r);var o=r.length,n=new Array(o);n[0]=a.E,n[1]=(0,a.c)(e,t);for(var l=2;l<o;l++)n[l]=r[l];return i.createElement.apply(null,n)});o=d||(d={}),n||(n=o.JSX||(o.JSX={}));var u=(0,a.w)((function(e,t){var r=e.styles,o=(0,c.J)([r],void 0,i.useContext(a.T)),n=i.useRef();return(0,s.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),n.current=[r,a],function(){r.flush()}}),[t]),(0,s.i)((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,l.sk)(t,o.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",o,r,!1)}}),[t,o.name]),null}));function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,c.J)(t)}function f(){var e=p.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_"}}}},174:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var o={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},n=r(289),a=!1,i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,n.A)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,r){return m={name:t,styles:r,next:m},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,r){if(null==r)return"";var o=r;if(void 0!==o.__emotion_styles)return o;switch(typeof r){case"boolean":return"";case"object":var n=r;if(1===n.anim)return m={name:n.name,styles:n.styles,next:m},n.name;var i=r;if(void 0!==i.styles){var l=i.next;if(void 0!==l)for(;void 0!==l;)m={name:l.name,styles:l.styles,next:m},l=l.next;return i.styles+";"}return function(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=f(e,t,r[n])+";";else for(var i in r){var l=r[i];if("object"!=typeof l){var s=l;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":c(s)&&(o+=d(i)+":"+u(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&a)throw new Error(p);if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var m=f(e,t,l);switch(i){case"animation":case"animationName":o+=d(i)+":"+m+";";break;default:o+=i+"{"+m+"}"}}else for(var h=0;h<l.length;h++)c(l[h])&&(o+=d(i)+":"+u(i,l[h])+";")}}return o}(e,t,r);case"function":if(void 0!==e){var s=m,h=r(e);return m=s,f(e,t,h)}}var g=r;if(null==t)return g;var b=t[g];return void 0!==b?b:g}var m,h=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,n="";m=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,n+=f(r,t,a)):n+=a[0];for(var i=1;i<e.length;i++)n+=f(r,t,e[i]),o&&(n+=a[i]);h.lastIndex=0;for(var l,s="";null!==(l=h.exec(n));)s+="-"+l[1];var c=function(e){for(var t,r=0,o=0,n=e.length;n>=4;++o,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n)+s;return{name:c,styles:n,next:m}}},287:(e,t,r)=>{"use strict";r.d(t,{i:()=>i,s:()=>a});var o=r(609),n=!!o.useInsertionEffect&&o.useInsertionEffect,a=n||function(e){return e()},i=n||o.useLayoutEffect},41:(e,t,r)=>{"use strict";function o(e,t,r){var o="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(o+=r+" ")})),o}r.d(t,{Rk:()=>o,SF:()=>n,sk:()=>a});var n=function(e,t,r){var o=e.key+"-"+t.name;!1===r&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},a=function(e,t,r){n(e,t,r);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+o:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},940:(e,t,r)=>{"use strict";r.d(t,{A:()=>a}),r(609);var o=r(437),n=r(848);function a(e){const{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>{return t(null==(o=e)||0===Object.keys(o).length?r:e);var o}:t;return(0,n.jsx)(o.mL,{styles:a})}},532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>S.A,StyledEngineProvider:()=>w,ThemeContext:()=>n.T,css:()=>b.AH,default:()=>A,internal_processStyles:()=>C,keyframes:()=>b.i7});var o=r(168),n=r(684),a=r(174),i=r(287),l=r(41),s=r(609),c=r(289),d=/^((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)-.*))$/,u=(0,c.A)((function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?u:p},m=function(e,t,r){var o;if(t){var n=t.shouldForwardProp;o=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof o&&r&&(o=e.__emotion_forwardProp),o},h=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;return(0,l.SF)(t,r,o),(0,i.s)((function(){return(0,l.sk)(t,r,o)})),null},g=function e(t,r){var i,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==r&&(i=r.label,c=r.target);var p=m(t,r,d),g=p||f(u),b=!g("as");return function(){var v=arguments,y=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)y.push.apply(y,v);else{var x=v[0];y.push(x[0]);for(var w=v.length,S=1;S<w;S++)y.push(v[S],x[S])}var A=(0,n.w)((function(e,t,r){var o=b&&e.as||u,i="",d=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=s.useContext(n.T)}"string"==typeof e.className?i=(0,l.Rk)(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var x=(0,a.J)(y.concat(d),t.registered,m);i+=t.key+"-"+x.name,void 0!==c&&(i+=" "+c);var w=b&&void 0===p?f(o):g,S={};for(var A in e)b&&"as"===A||w(A)&&(S[A]=e[A]);return S.className=i,r&&(S.ref=r),s.createElement(s.Fragment,null,s.createElement(h,{cache:t,serialized:x,isStringTag:"string"==typeof o}),s.createElement(o,S))}));return A.displayName=void 0!==i?i:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=u,A.__emotion_styles=y,A.__emotion_forwardProp=p,Object.defineProperty(A,"toString",{value:function(){return"."+c}}),A.withComponent=function(t,n){return e(t,(0,o.A)({},r,n,{shouldForwardProp:m(A,n,!0)})).apply(void 0,y)},A}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var b=r(437),v=r(655),y=r(848);let x;function w(e){const{injectFirst:t,children:r}=e;return t&&x?(0,y.jsx)(n.C,{value:x,children:r}):r}"object"==typeof document&&(x=(0,v.A)({key:"css",prepend:!0}));var S=r(940);function A(e,t){return g(e,t)}const C=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},771:(e,t,r)=>{"use strict";var o=r(994);t.X4=function(e,t){return e=l(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)},t.e$=d,t.eM=function(e,t){const r=c(e),o=c(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)},t.a=u;var n=o(r(944)),a=o(r(535));function i(e,t=0,r=1){return(0,a.default)(e,t,r)}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.default)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.default)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:o}}function s(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${r} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function c(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(function(e){e=l(e);const{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(e,t=(e+r/30)%12)=>n-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function u(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}},461:(e,t,r)=>{"use strict";var o=r(994);t.Ay=function(e={}){const{themeId:t,defaultTheme:r=h,rootShouldForwardProp:o=m,slotShouldForwardProp:s=m}=e,d=e=>(0,c.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:r,themeId:t}))}));return d.__mui_systemSx=!0,(e,c={})=>{(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:f,skipVariantsResolver:h,skipSx:x,overridesResolver:w=v(g(f))}=c,S=(0,a.default)(c,p),A=void 0!==h?h:f&&"Root"!==f&&"root"!==f||!1,C=x||!1;let k=m;"Root"===f||"root"===f?k=o:f?k=s:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const R=(0,i.default)(e,(0,n.default)({shouldForwardProp:k,label:void 0},S)),E=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l.isPlainObject)(e)?o=>y(e,(0,n.default)({},o,{theme:b({theme:o.theme,defaultTheme:r,themeId:t})})):e,P=(o,...a)=>{let i=E(o);const l=a?a.map(E):[];u&&w&&l.push((e=>{const o=b((0,n.default)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[u]||!o.components[u].styleOverrides)return null;const a=o.components[u].styleOverrides,i={};return Object.entries(a).forEach((([t,r])=>{i[t]=y(r,(0,n.default)({},e,{theme:o}))})),w(e,i)})),u&&!A&&l.push((e=>{var o;const a=b((0,n.default)({},e,{defaultTheme:r,themeId:t}));return y({variants:null==a||null==(o=a.components)||null==(o=o[u])?void 0:o.variants},(0,n.default)({},e,{theme:a}))})),C||l.push(d);const s=l.length-a.length;if(Array.isArray(o)&&s>0){const e=new Array(s).fill("");i=[...o,...e],i.raw=[...o.raw,...e]}const c=R(i,...l);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(P.withConfig=R.withConfig),P}};var n=o(r(634)),a=o(r(893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(532)),l=r(239),s=(o(r(149)),o(r(320)),o(r(142))),c=o(r(857));const d=["ownerState"],u=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=(0,s.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return o=t,0===Object.keys(o).length?e:t[r]||t;var o}function v(e){return e?(t,r)=>r[e]:null}function y(e,t){let{ownerState:r}=t,o=(0,a.default)(t,d);const i="function"==typeof e?e((0,n.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>y(e,(0,n.default)({ownerState:r},o))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.default)(i,u);return e.forEach((e=>{let a=!0;"function"==typeof e.props?a=e.props((0,n.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:r},o,r)):e.style))})),t}return i}},452:(e,t,r)=>{"use strict";r.d(t,{EU:()=>l,NI:()=>i,iZ:()=>c,kW:()=>d,vf:()=>s,zu:()=>n});var o=r(317);const n={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${n[e]}px)`};function i(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||a;return t.reduce(((o,n,a)=>(o[e.up(e.keys[a])]=r(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||a;return Object.keys(t).reduce(((o,a)=>{if(-1!==Object.keys(e.values||n).indexOf(a))o[e.up(a)]=r(t[a],a);else{const e=a;o[e]=t[e]}return o}),{})}return r(t)}function l(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e,...t){const r=l(e),n=[r,...t].reduce(((e,t)=>(0,o.A)(e,t)),{});return s(Object.keys(r),n)}function d({values:e,breakpoints:t,base:r}){const o=r||function(e,t){if("object"!=typeof e)return{};const r={},o=Object.keys(t);return Array.isArray(e)?o.forEach(((t,o)=>{o<e.length&&(r[t]=!0)})):o.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),n=Object.keys(o);if(0===n.length)return e;let a;return n.reduce(((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[a],a=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}},336:(e,t,r)=>{"use strict";function o(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const o=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[o]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>o})},94:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(587),n=r(168);const a=["values","unit","step"],i=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.A)({},e,{[t.key]:t.val})),{})};function l(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,o.A)(e,a),c=i(t),d=Object.keys(c);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-l/100}${r})`}function f(e,o){const n=d.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==n&&"number"==typeof t[d[n]]?t[d[n]]:o)-l/100}${r})`}return(0,n.A)({keys:d,values:c,up:u,down:p,between:f,only:function(e){return d.indexOf(e)+1<d.length?f(e,d[d.indexOf(e)+1]):u(e)},not:function(e){const t=d.indexOf(e);return 0===t?u(d[1]):t===d.length-1?p(d[t]):f(e,d[d.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},s)}},749:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var o=r(168),n=r(587),a=r(317),i=r(94);const l={borderRadius:4};var s=r(248),c=r(571),d=r(188),u=r(336);const p=["breakpoints","palette","spacing","shape"],f=function(e={},...t){const{breakpoints:r={},palette:f={},spacing:m,shape:h={}}=e,g=(0,n.A)(e,p),b=(0,i.A)(r),v=function(e=8){if(e.mui)return e;const t=(0,s.LX)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(m);let y=(0,a.A)({breakpoints:b,direction:"ltr",components:{},palette:(0,o.A)({mode:"light"},f),spacing:v,shape:(0,o.A)({},l,h)},g);return y.applyStyles=u.A,y=t.reduce(((e,t)=>(0,a.A)(e,t)),y),y.unstable_sxConfig=(0,o.A)({},d.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,private_createBreakpoints:()=>n.A,unstable_applyStyles:()=>a.A});var o=r(749),n=r(94),a=r(336)},620:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(317);const n=function(e,t){return t?(0,o.A)(e,t,{clone:!1}):e}},248:(e,t,r)=>{"use strict";r.d(t,{LX:()=>m,MA:()=>f,_W:()=>h,Lc:()=>b,Ms:()=>v});var o=r(452),n=r(481),a=r(620);const i={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}const[t,r]=e.split(""),o=i[t],n=l[r]||"";return Array.isArray(n)?n.map((e=>o+e)):[o+n]})(t)),e[t])}(),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...d,...u];function f(e,t,r,o){var a;const i=null!=(a=(0,n.Yn)(e,t,!1))?a:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function m(e){return f(e,"spacing",8)}function h(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,t){const r=m(e.theme);return Object.keys(e).map((n=>function(e,t,r,n){if(-1===t.indexOf(r))return null;const a=function(e,t){return r=>e.reduce(((e,o)=>(e[o]=h(t,r),e)),{})}(c(r),n),i=e[r];return(0,o.NI)(e,i,a)}(e,t,n,r))).reduce(a.A,{})}function b(e){return g(e,d)}function v(e){return g(e,u)}function y(e){return g(e,p)}b.propTypes={},b.filterProps=d,v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=p},481:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,BO:()=>i,Yn:()=>a});var o=r(967),n=r(452);function a(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,r,o=r){let n;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:a(e,r)||o,t&&(n=t(n,o,e)),n}const l=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;const c=e[t],d=a(e.theme,l)||{};return(0,n.NI)(e,c,(e=>{let n=i(d,s,e);return e===n&&"string"==typeof e&&(n=i(d,s,`${t}${"default"===e?"":(0,o.A)(e)}`,e)),!1===r?n:{[r]:n}}))};return c.propTypes={},c.filterProps=[t],c}},188:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var o=r(248),n=r(481),a=r(620);const i=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,o)=>t[o]?(0,a.A)(r,t[o](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var l=r(452);function s(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,n.Ay)({prop:e,themeKey:"borders",transform:t})}const d=c("border",s),u=c("borderTop",s),p=c("borderRight",s),f=c("borderBottom",s),m=c("borderLeft",s),h=c("borderColor"),g=c("borderTopColor"),b=c("borderRightColor"),v=c("borderBottomColor"),y=c("borderLeftColor"),x=c("outline",s),w=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,o.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,o._W)(t,e)});return(0,l.NI)(e,e.borderRadius,r)}return null};S.propTypes={},S.filterProps=["borderRadius"],i(d,u,p,f,m,h,g,b,v,y,S,x,w);const A=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,o.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,o._W)(t,e)});return(0,l.NI)(e,e.gap,r)}return null};A.propTypes={},A.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,o.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,o._W)(t,e)});return(0,l.NI)(e,e.columnGap,r)}return null};C.propTypes={},C.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,o.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,o._W)(t,e)});return(0,l.NI)(e,e.rowGap,r)}return null};function R(e,t){return"grey"===t?t:e}function E(e){return e<=1&&0!==e?100*e+"%":e}k.propTypes={},k.filterProps=["rowGap"],i(A,C,k,(0,n.Ay)({prop:"gridColumn"}),(0,n.Ay)({prop:"gridRow"}),(0,n.Ay)({prop:"gridAutoFlow"}),(0,n.Ay)({prop:"gridAutoColumns"}),(0,n.Ay)({prop:"gridAutoRows"}),(0,n.Ay)({prop:"gridTemplateColumns"}),(0,n.Ay)({prop:"gridTemplateRows"}),(0,n.Ay)({prop:"gridTemplateAreas"}),(0,n.Ay)({prop:"gridArea"})),i((0,n.Ay)({prop:"color",themeKey:"palette",transform:R}),(0,n.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:R}),(0,n.Ay)({prop:"backgroundColor",themeKey:"palette",transform:R}));const P=(0,n.Ay)({prop:"width",transform:E}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,o;const n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.zu[t];return n?"px"!==(null==(o=e.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:E(t)}};return(0,l.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const $=(0,n.Ay)({prop:"minWidth",transform:E}),M=(0,n.Ay)({prop:"height",transform:E}),T=(0,n.Ay)({prop:"maxHeight",transform:E}),I=(0,n.Ay)({prop:"minHeight",transform:E}),N=((0,n.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,n.Ay)({prop:"size",cssProperty:"height",transform:E}),i(P,O,$,M,T,I,(0,n.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:R},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:R},backgroundColor:{themeKey:"palette",transform:R},p:{style:o.Ms},pt:{style:o.Ms},pr:{style:o.Ms},pb:{style:o.Ms},pl:{style:o.Ms},px:{style:o.Ms},py:{style:o.Ms},padding:{style:o.Ms},paddingTop:{style:o.Ms},paddingRight:{style:o.Ms},paddingBottom:{style:o.Ms},paddingLeft:{style:o.Ms},paddingX:{style:o.Ms},paddingY:{style:o.Ms},paddingInline:{style:o.Ms},paddingInlineStart:{style:o.Ms},paddingInlineEnd:{style:o.Ms},paddingBlock:{style:o.Ms},paddingBlockStart:{style:o.Ms},paddingBlockEnd:{style:o.Ms},m:{style:o.Lc},mt:{style:o.Lc},mr:{style:o.Lc},mb:{style:o.Lc},ml:{style:o.Lc},mx:{style:o.Lc},my:{style:o.Lc},margin:{style:o.Lc},marginTop:{style:o.Lc},marginRight:{style:o.Lc},marginBottom:{style:o.Lc},marginLeft:{style:o.Lc},marginX:{style:o.Lc},marginY:{style:o.Lc},marginInline:{style:o.Lc},marginInlineStart:{style:o.Lc},marginInlineEnd:{style:o.Lc},marginBlock:{style:o.Lc},marginBlockStart:{style:o.Lc},marginBlockEnd:{style:o.Lc},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:A},rowGap:{style:k},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:O},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},599:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(168),n=r(587),a=r(317),i=r(188);const l=["sx"],s=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach((t=>{n[t]?o.systemProps[t]=e[t]:o.otherProps[t]=e[t]})),o};function c(e){const{sx:t}=e,r=(0,n.A)(e,l),{systemProps:i,otherProps:c}=s(r);let d;return d=Array.isArray(t)?[i,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,a.Q)(r)?(0,o.A)({},i,r):i}:(0,o.A)({},i,t),(0,o.A)({},c,{sx:d})}},857:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,extendSxProp:()=>n.A,unstable_createStyleFunctionSx:()=>o.k,unstable_defaultSxConfig:()=>a.A});var o=r(571),n=r(599),a=r(188)},571:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,k:()=>s});var o=r(967),n=r(620),a=r(481),i=r(452),l=r(188);function s(){function e(e,t,r,n){const l={[e]:t,theme:r},s=n[e];if(!s)return{[e]:t};const{cssProperty:c=e,themeKey:d,transform:u,style:p}=s;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const f=(0,a.Yn)(r,d)||{};return p?p(l):(0,i.NI)(l,t,(t=>{let r=(0,a.BO)(f,u,t);return t===r&&"string"==typeof t&&(r=(0,a.BO)(f,u,`${e}${"default"===t?"":(0,o.A)(t)}`,t)),!1===c?r:{[c]:r}}))}return function t(r){var o;const{sx:a,theme:s={}}=r||{};if(!a)return null;const c=null!=(o=s.unstable_sxConfig)?o:l.A;function d(r){let o=r;if("function"==typeof r)o=r(s);else if("object"!=typeof r)return r;if(!o)return null;const a=(0,i.EU)(s.breakpoints),l=Object.keys(a);let d=a;return Object.keys(o).forEach((r=>{const a="function"==typeof(l=o[r])?l(s):l;var l;if(null!=a)if("object"==typeof a)if(c[r])d=(0,n.A)(d,e(r,a,s,c));else{const e=(0,i.NI)({theme:s},a,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,a)?d=(0,n.A)(d,e):d[r]=t({sx:a,theme:s})}else d=(0,n.A)(d,e(r,a,s,c))})),(0,i.vf)(l,d)}return Array.isArray(a)?a.map(d):d(a)}}const c=s();c.filterProps=["sx"];const d=c},923:(e,t,r)=>{"use strict";t.A=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(609)),n=r(532);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.A=function(e=null){const t=o.useContext(n.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(453);function n(e){if("string"!=typeof e)throw new Error((0,o.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A});var o=r(967)},535:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});const o=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},317:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,Q:()=>a});var o=r(168),n=r(609);function a(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(n.isValidElement(e)||!a(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=i(e[r])})),t}function l(e,t,r={clone:!0}){const s=r.clone?(0,o.A)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((o=>{n.isValidElement(t[o])?s[o]=t[o]:a(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&a(e[o])?s[o]=l(e[o],t[o],r):r.clone?s[o]=a(t[o])?i(t[o]):t[o]:s[o]=t[o]})),s}},239:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,isPlainObject:()=>o.Q});var o=r(317)},453:(e,t,r)=>{"use strict";function o(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{A:()=>o})},944:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A});var o=r(453)},320:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,getFunctionName:()=>a});var o=r(405);const n=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function a(e){const t=`${e}`.match(n);return t&&t[1]||""}function i(e,t=""){return e.displayName||e.name||a(e)||t}function l(e,t,r){const o=i(t);return e.displayName||(""!==o?`${r}(${o})`:r)}function s(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return i(e,"Component");if("object"==typeof e)switch(e.$$typeof){case o.vM:return l(e,e.render,"ForwardRef");case o.lD:return l(e,e.type,"memo");default:return}}}},146:(e,t,r)=>{"use strict";var o=r(404),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?i:l[e.$$typeof]||n}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(m){var n=f(r);n&&n!==m&&e(t,n,o)}var i=d(r);u&&(i=i.concat(u(r)));for(var l=s(t),h=s(r),g=0;g<i.length;++g){var b=i[g];if(!(a[b]||o&&o[b]||h&&h[b]||l&&l[b])){var v=p(r,b);try{c(t,b,v)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case s:return e;default:return t}}case n:return t}}}function S(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=n,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},404:(e,t,r)=>{"use strict";e.exports=r(72)},405:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler");Symbol.for("react.provider");Symbol.for("react.consumer"),Symbol.for("react.context");var r=Symbol.for("react.forward_ref"),o=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");t.vM=r,t.lD=o},20:(e,t,r)=>{"use strict";var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var o,s={},c=null,d=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:d,props:s,_owner:i.current}}t.jsx=s,t.jsxs=s},848:(e,t,r)=>{"use strict";e.exports=r(20)},609:e=>{"use strict";e.exports=window.React},634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},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},994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},168:(e,t,r)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},o.apply(null,arguments)}r.d(t,{A:()=>o})},587:(e,t,r)=>{"use strict";function o(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}r.d(t,{A:()=>o})}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=o[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{"use strict";var e=r(609),t=r.n(e);const o=window.ReactDOM;var n=r.n(o),a=r(168),i=r(587),l=r(453),s=r(317),c=r(188),d=r(571),u=r(749),p=r(771);const f={black:"#000",white:"#fff"},m={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"},h="#f3e5f5",g="#ce93d8",b="#ba68c8",v="#ab47bc",y="#9c27b0",x="#7b1fa2",w="#e57373",S="#ef5350",A="#f44336",C="#d32f2f",k="#c62828",R="#ffb74d",E="#ffa726",P="#ff9800",O="#f57c00",$="#e65100",M="#e3f2fd",T="#90caf9",I="#42a5f5",N="#1976d2",j="#1565c0",L="#4fc3f7",z="#29b6f6",F="#03a9f4",B="#0288d1",W="#01579b",D="#81c784",_="#66bb6a",H="#4caf50",V="#388e3c",q="#2e7d32",K="#1b5e20",X=["mode","contrastThreshold","tonalOffset"],U={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:f.white,default:f.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}},G={text:{primary:f.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:f.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 Y(e,t,r,o){const n=o.light||o,a=o.dark||1.5*o;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.a)(e.main,n):"dark"===t&&(e.dark=(0,p.e$)(e.main,a)))}const J=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Z={textTransform:"uppercase"},Q='"Roboto", "Helvetica", "Arial", sans-serif';function ee(e,t){const r="function"==typeof t?t(e):t,{fontFamily:o=Q,fontSize:n=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=r,h=(0,i.A)(r,J),g=n/14,b=m||(e=>e/p*g+"rem"),v=(e,t,r,n,i)=>{return(0,a.A)({fontFamily:o,fontWeight:e,fontSize:b(t),lineHeight:r},o===Q?{letterSpacing:(l=n/t,Math.round(1e5*l)/1e5+"em")}:{},i,f);var l},y={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(d,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(d,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(d,14,1.75,.4,Z),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,Z),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,a.A)({htmlFontSize:p,pxToRem:b,fontFamily:o,fontSize:n,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:u},y),h,{clone:!1})}function te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const re=["none",te(0,2,1,-1,0,1,1,0,0,1,3,0),te(0,3,1,-2,0,2,2,0,0,1,5,0),te(0,3,3,-2,0,3,4,0,0,1,8,0),te(0,2,4,-1,0,4,5,0,0,1,10,0),te(0,3,5,-1,0,5,8,0,0,1,14,0),te(0,3,5,-1,0,6,10,0,0,1,18,0),te(0,4,5,-2,0,7,10,1,0,2,16,1),te(0,5,5,-3,0,8,10,1,0,3,14,2),te(0,5,6,-3,0,9,12,1,0,3,16,2),te(0,6,6,-3,0,10,14,1,0,4,18,3),te(0,6,7,-4,0,11,15,1,0,4,20,3),te(0,7,8,-4,0,12,17,2,0,5,22,4),te(0,7,8,-4,0,13,19,2,0,5,24,4),te(0,7,9,-4,0,14,21,2,0,5,26,4),te(0,8,9,-5,0,15,22,2,0,6,28,5),te(0,8,10,-5,0,16,24,2,0,6,30,5),te(0,8,11,-5,0,17,26,2,0,6,32,5),te(0,9,11,-5,0,18,28,2,0,7,34,6),te(0,9,12,-6,0,19,29,2,0,7,36,6),te(0,10,13,-6,0,20,31,3,0,8,38,7),te(0,10,13,-6,0,21,33,3,0,8,40,7),te(0,10,14,-6,0,22,35,3,0,8,42,7),te(0,11,14,-7,0,23,36,3,0,9,44,8),te(0,11,15,-7,0,24,38,3,0,9,46,8)],oe=["duration","easing","delay"],ne={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)"},ae={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ie(e){return`${Math.round(e)}ms`}function le(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function se(e){const t=(0,a.A)({},ne,e.easing),r=(0,a.A)({},ae,e.duration);return(0,a.A)({getAutoHeightDuration:le,create:(e=["all"],o={})=>{const{duration:n=r.standard,easing:a=t.easeInOut,delay:l=0}=o;return(0,i.A)(o,oe),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof n?n:ie(n)} ${a} ${"string"==typeof l?l:ie(l)}`)).join(",")}},e,{easing:t,duration:r})}const ce={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},de=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ue=function(e={},...t){const{mixins:r={},palette:o={},transitions:n={},typography:J={}}=e,Z=(0,i.A)(e,de);if(e.vars)throw new Error((0,l.A)(18));const Q=function(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2}=e,n=(0,i.A)(e,X),c=e.primary||function(e="light"){return"dark"===e?{main:T,light:M,dark:I}:{main:N,light:I,dark:j}}(t),d=e.secondary||function(e="light"){return"dark"===e?{main:g,light:h,dark:v}:{main:y,light:b,dark:x}}(t),u=e.error||function(e="light"){return"dark"===e?{main:A,light:w,dark:C}:{main:C,light:S,dark:k}}(t),J=e.info||function(e="light"){return"dark"===e?{main:z,light:L,dark:B}:{main:B,light:F,dark:W}}(t),Z=e.success||function(e="light"){return"dark"===e?{main:_,light:D,dark:V}:{main:q,light:H,dark:K}}(t),Q=e.warning||function(e="light"){return"dark"===e?{main:E,light:R,dark:O}:{main:"#ed6c02",light:P,dark:$}}(t);function ee(e){return(0,p.eM)(e,G.text.primary)>=r?G.text.primary:U.text.primary}const te=({color:e,name:t,mainShade:r=500,lightShade:n=300,darkShade:i=700})=>{if(!(e=(0,a.A)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error((0,l.A)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error((0,l.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return Y(e,"light",n,o),Y(e,"dark",i,o),e.contrastText||(e.contrastText=ee(e.main)),e},re={dark:G,light:U};return(0,s.A)((0,a.A)({common:(0,a.A)({},f),mode:t,primary:te({color:c,name:"primary"}),secondary:te({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:te({color:u,name:"error"}),warning:te({color:Q,name:"warning"}),info:te({color:J,name:"info"}),success:te({color:Z,name:"success"}),grey:m,contrastThreshold:r,getContrastText:ee,augmentColor:te,tonalOffset:o},re[t]),n)}(o),te=(0,u.A)(e);let oe=(0,s.A)(te,{mixins:(ne=te.breakpoints,ae=r,(0,a.A)({toolbar:{minHeight:56,[ne.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[ne.up("sm")]:{minHeight:64}}},ae)),palette:Q,shadows:re.slice(),typography:ee(Q,J),transitions:se(n),zIndex:(0,a.A)({},ce)});var ne,ae;return oe=(0,s.A)(oe,Z),oe=t.reduce(((e,t)=>(0,s.A)(e,t)),oe),oe.unstable_sxConfig=(0,a.A)({},c.A,null==Z?void 0:Z.unstable_sxConfig),oe.unstable_sx=function(e){return(0,d.A)({sx:e,theme:this})},oe};function pe(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=pe(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const fe=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=pe(e))&&(o&&(o+=" "),o+=t);return o};var me=r(532),he=r(599),ge=r(684);const be=function(t=null){const r=e.useContext(ge.T);return r&&(o=r,0!==Object.keys(o).length)?r:t;var o},ve=(0,u.A)(),ye=function(e=ve){return be(e)};var xe=r(848);const we=["className","component"],Se=e=>e,Ae=(()=>{let e=Se;return{configure(t){e=t},generate:t=>e(t),reset(){e=Se}}})(),Ce="$$material",ke={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 Re(e,t,r="Mui"){const o=ke[t];return o?`${r}-${o}`:`${Ae.generate(e)}-${t}`}function Ee(e,t,r="Mui"){const o={};return t.forEach((t=>{o[t]=Re(e,t,r)})),o}const Pe=Ee("MuiBox",["root"]),Oe=ue(),$e=function(t={}){const{themeId:r,defaultTheme:o,defaultClassName:n="MuiBox-root",generateClassName:l}=t,s=(0,me.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(d.A);return e.forwardRef((function(e,t){const c=ye(o),d=(0,he.A)(e),{className:u,component:p="div"}=d,f=(0,i.A)(d,we);return(0,xe.jsx)(s,(0,a.A)({as:p,ref:t,className:fe(u,l?l(n):n),theme:r&&c[r]||c},f))}))}({themeId:Ce,defaultTheme:Oe,defaultClassName:Pe.root,generateClassName:Ae.generate});function Me(e,t,r=void 0){const o={};return Object.keys(e).forEach((n=>{o[n]=e[n].reduce(((e,o)=>{if(o){const n=t(o);""!==n&&e.push(n),r&&r[o]&&e.push(r[o])}return e}),[]).join(" ")})),o}var Te=r(461);const Ie=ue(),Ne=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},je=e=>Ne(e)&&"classes"!==e,Le=(0,Te.Ay)({themeId:Ce,defaultTheme:Ie,rootShouldForwardProp:je});function ze(e,t){const r=(0,a.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=(0,a.A)({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const n=e[o]||{},i=t[o];r[o]={},i&&Object.keys(i)?n&&Object.keys(n)?(r[o]=(0,a.A)({},i),Object.keys(n).forEach((e=>{r[o][e]=ze(n[e],i[e])}))):r[o]=i:r[o]=n}else void 0===r[o]&&(r[o]=e[o])})),r}const Fe=e.createContext(void 0);const Be=function({value:e,children:t}){return(0,xe.jsx)(Fe.Provider,{value:e,children:t})};function We(t){return function({props:t,name:r}){return function(e){const{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r])return o;const n=t.components[r];return n.defaultProps?ze(n.defaultProps,o):n.styleOverrides||n.variants?o:ze(n,o)}({props:t,name:r,theme:{components:e.useContext(Fe)}})}(t)}const De=r(967).A;function _e(e){return Re("MuiTypography",e)}Ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const He=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ve=Le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${De(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,a.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),qe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ke={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Xe=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiTypography"}),o=(e=>Ke[e]||e)(r.color),n=(0,he.A)((0,a.A)({},r,{color:o})),{align:l="inherit",className:s,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:p=!1,variant:f="body1",variantMapping:m=qe}=n,h=(0,i.A)(n,He),g=(0,a.A)({},n,{align:l,color:o,className:s,component:c,gutterBottom:d,noWrap:u,paragraph:p,variant:f,variantMapping:m}),b=c||(p?"p":m[f]||qe[f])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:o,paragraph:n,variant:a,classes:i}=e;return Me({root:["root",a,"inherit"!==e.align&&`align${De(t)}`,r&&"gutterBottom",o&&"noWrap",n&&"paragraph"]},_e,i)})(g);return(0,xe.jsx)(Ve,(0,a.A)({as:b,ref:t,ownerState:g,className:fe(v.root,s)},h))}));function Ue(e){return Re("MuiDivider",e)}Ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ge=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ye=Le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,a.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,p.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,a.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,a.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>(0,a.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>(0,a.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Je=Le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Ze=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiDivider"}),{absolute:o=!1,children:n,className:l,component:s=(n?"div":"hr"),flexItem:c=!1,light:d=!1,orientation:u="horizontal",role:p=("hr"!==s?"separator":void 0),textAlign:f="center",variant:m="fullWidth"}=r,h=(0,i.A)(r,Ge),g=(0,a.A)({},r,{absolute:o,component:s,flexItem:c,light:d,orientation:u,role:p,textAlign:f,variant:m}),b=(e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:a,orientation:i,textAlign:l,variant:s}=e;return Me({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",n&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},Ue,o)})(g);return(0,xe.jsx)(Ye,(0,a.A)({as:s,className:fe(b.root,l),role:p,ref:t,ownerState:g},h,{children:n?(0,xe.jsx)(Je,{className:b.wrapper,ownerState:g,children:n}):null}))}));Ze.muiSkipListHighlight=!0;const Qe=Ze;function et(e){return Re("MuiFormGroup",e)}Ee("MuiFormGroup",["root","row","error"]);const tt=e.createContext(void 0);function rt(){return e.useContext(tt)}function ot({props:e,states:t,muiFormControl:r}){return t.reduce(((t,o)=>(t[o]=e[o],r&&void 0===e[o]&&(t[o]=r[o]),t)),{})}const nt=["className","row"],at=Le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>(0,a.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),it=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiFormGroup"}),{className:o,row:n=!1}=r,l=(0,i.A)(r,nt),s=ot({props:r,muiFormControl:rt(),states:["error"]}),c=(0,a.A)({},r,{row:n,error:s.error}),d=(e=>{const{classes:t,row:r,error:o}=e;return Me({root:["root",r&&"row",o&&"error"]},et,t)})(c);return(0,xe.jsx)(at,(0,a.A)({className:fe(d.root,o),ownerState:c,ref:t},l))})),lt=["ownerState"],st=["variants"],ct=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dt(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ut=(0,u.A)(),pt=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ft({defaultTheme:e,theme:t,themeId:r}){return o=t,0===Object.keys(o).length?e:t[r]||t;var o}function mt(e){return e?(t,r)=>r[e]:null}function ht(e,t){let{ownerState:r}=t,o=(0,i.A)(t,lt);const n="function"==typeof e?e((0,a.A)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap((e=>ht(e,(0,a.A)({ownerState:r},o))));if(n&&"object"==typeof n&&Array.isArray(n.variants)){const{variants:e=[]}=n;let t=(0,i.A)(n,st);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,a.A)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,a.A)({ownerState:r},o,r)):e.style))})),t}return n}const gt=function(e={}){const{themeId:t,defaultTheme:r=ut,rootShouldForwardProp:o=dt,slotShouldForwardProp:n=dt}=e,l=e=>(0,d.A)((0,a.A)({},e,{theme:ft((0,a.A)({},e,{defaultTheme:r,themeId:t}))}));return l.__mui_systemSx=!0,(e,c={})=>{(0,me.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:m=mt(pt(u))}=c,h=(0,i.A)(c,ct),g=void 0!==p?p:u&&"Root"!==u&&"root"!==u||!1,b=f||!1;let v=dt;"Root"===u||"root"===u?v=o:u?v=n:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=(0,me.default)(e,(0,a.A)({shouldForwardProp:v,label:void 0},h)),x=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.Q)(e)?o=>ht(e,(0,a.A)({},o,{theme:ft({theme:o.theme,defaultTheme:r,themeId:t})})):e,w=(o,...n)=>{let i=x(o);const s=n?n.map(x):[];d&&m&&s.push((e=>{const o=ft((0,a.A)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[d]||!o.components[d].styleOverrides)return null;const n=o.components[d].styleOverrides,i={};return Object.entries(n).forEach((([t,r])=>{i[t]=ht(r,(0,a.A)({},e,{theme:o}))})),m(e,i)})),d&&!g&&s.push((e=>{var o;const n=ft((0,a.A)({},e,{defaultTheme:r,themeId:t}));return ht({variants:null==n||null==(o=n.components)||null==(o=o[d])?void 0:o.variants},(0,a.A)({},e,{theme:n}))})),b||s.push(l);const c=s.length-n.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");i=[...o,...e],i.raw=[...o.raw,...e]}const u=y(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return y.withConfig&&(w.withConfig=y.withConfig),w}}();var bt=r(452),vt=r(248);const yt=["component","direction","spacing","divider","children","className","useFlexGap"],xt=(0,u.A)(),wt=gt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function St(e){return function({props:e,name:t,defaultTheme:r,themeId:o}){let n=ye(r);o&&(n=n[o]||n);const a=function(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?ze(t.components[r].defaultProps,o):o}({theme:n,name:t,props:e});return a}({props:e,name:"MuiStack",defaultTheme:xt})}function At(t,r){const o=e.Children.toArray(t).filter(Boolean);return o.reduce(((t,n,a)=>(t.push(n),a<o.length-1&&t.push(e.cloneElement(r,{key:`separator-${a}`})),t)),[])}const Ct=({ownerState:e,theme:t})=>{let r=(0,a.A)({display:"flex",flexDirection:"column"},(0,bt.NI)({theme:t},(0,bt.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,vt.LX)(t),n=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=(0,bt.kW)({values:e.direction,base:n}),i=(0,bt.kW)({values:e.spacing,base:n});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const o=t>0?a[r[t-1]]:"column";a[e]=o}}));const l=(t,r)=>{return e.useFlexGap?{gap:(0,vt._W)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${n=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]}`]:(0,vt._W)(o,t)}};var n};r=(0,s.A)(r,(0,bt.NI)({theme:t},i,l))}return r=(0,bt.iZ)(t.breakpoints,r),r},kt=function(t={}){const{createStyledComponent:r=wt,useThemeProps:o=St,componentName:n="MuiStack"}=t,l=r(Ct);return e.forwardRef((function(e,t){const r=o(e),s=(0,he.A)(r),{component:c="div",direction:d="column",spacing:u=0,divider:p,children:f,className:m,useFlexGap:h=!1}=s,g=(0,i.A)(s,yt),b={direction:d,spacing:u,useFlexGap:h},v=Me({root:["root"]},(e=>Re(n,e)),{});return(0,xe.jsx)(l,(0,a.A)({as:c,ownerState:b,ref:t,className:fe(v.root,m)},g,{children:p?At(f,p):f}))}))}({createStyledComponent:Le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>We({props:e,name:"MuiStack"})});function Rt(e){return Re("MuiFormControlLabel",e)}const Et=Ee("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pt=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ot=Le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Et.label}`]:t.label},t.root,t[`labelPlacement${De(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Et.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Et.label}`]:{[`&.${Et.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),$t=Le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Et.error}`]:{color:(e.vars||e).palette.error.main}}))),Mt=e.forwardRef((function(t,r){var o,n;const l=We({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:c={},control:d,disabled:u,disableTypography:p,label:f,labelPlacement:m="end",required:h,slotProps:g={}}=l,b=(0,i.A)(l,Pt),v=rt(),y=null!=(o=null!=u?u:d.props.disabled)?o:null==v?void 0:v.disabled,x=null!=h?h:d.props.required,w={disabled:y,required:x};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===d.props[e]&&void 0!==l[e]&&(w[e]=l[e])}));const S=ot({props:l,muiFormControl:v,states:["error"]}),A=(0,a.A)({},l,{disabled:y,labelPlacement:m,required:x,error:S.error}),C=(e=>{const{classes:t,disabled:r,labelPlacement:o,error:n,required:a}=e;return Me({root:["root",r&&"disabled",`labelPlacement${De(o)}`,n&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",n&&"error"]},Rt,t)})(A),k=null!=(n=g.typography)?n:c.typography;let R=f;return null==R||R.type===Xe||p||(R=(0,xe.jsx)(Xe,(0,a.A)({component:"span"},k,{className:fe(C.label,null==k?void 0:k.className),children:R}))),(0,xe.jsxs)(Ot,(0,a.A)({className:fe(C.root,s),ownerState:A,ref:r},b,{children:[e.cloneElement(d,w),x?(0,xe.jsxs)(kt,{display:"block",children:[R,(0,xe.jsxs)($t,{ownerState:A,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):R]}))}));let Tt=0;const It=e["useId".toString()];function Nt(t){if(void 0!==It){const e=It();return null!=t?t:e}return function(t){const[r,o]=e.useState(t),n=t||r;return e.useEffect((()=>{null==r&&(Tt+=1,o(`mui-${Tt}`))}),[r]),n}(t)}function jt({controlled:t,default:r,name:o,state:n="value"}){const{current:a}=e.useRef(void 0!==t),[i,l]=e.useState(r);return[a?t:i,e.useCallback((e=>{a||l(e)}),[])]}const Lt="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,zt=function(t){const r=e.useRef(t);return Lt((()=>{r.current=t})),e.useRef(((...e)=>(0,r.current)(...e))).current};function Ft(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Bt(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Wt(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Dt=function(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;r&&(c=c.toLowerCase()),t&&(c=Bt(c));const d=c?e.filter((e=>{let o=(a||s)(e);return r&&(o=o.toLowerCase()),t&&(o=Bt(o)),"start"===n?0===o.indexOf(c):o.indexOf(c)>-1})):e;return"number"==typeof o?d.slice(0,o):d}}(),_t=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},Ht=[],Vt=function(t){const{unstable_isActiveElementInListbox:r=_t,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:s=!1,clearOnBlur:c=!t.freeSolo,clearOnEscape:d=!1,componentName:u="useAutocomplete",defaultValue:p=(t.multiple?Ht:null),disableClearable:f=!1,disableCloseOnSelect:m=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:b=!1,filterOptions:v=Dt,filterSelectedOptions:y=!1,freeSolo:x=!1,getOptionDisabled:w,getOptionKey:S,getOptionLabel:A=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:k=!t.freeSolo,id:R,includeInputInList:E=!1,inputValue:P,isOptionEqualToValue:O=(e,t)=>e===t,multiple:$=!1,onChange:M,onClose:T,onHighlightChange:I,onInputChange:N,onOpen:j,open:L,openOnFocus:z=!1,options:F,readOnly:B=!1,selectOnFocus:W=!t.freeSolo,value:D}=t,_=Nt(R);let H=A;H=e=>{const t=A(e);return"string"!=typeof t?String(t):t};const V=e.useRef(!1),q=e.useRef(!0),K=e.useRef(null),X=e.useRef(null),[U,G]=e.useState(null),[Y,J]=e.useState(-1),Z=i?0:-1,Q=e.useRef(Z),[ee,te]=jt({controlled:D,default:p,name:u}),[re,oe]=jt({controlled:P,default:"",name:u,state:"inputValue"}),[ne,ae]=e.useState(!1),ie=e.useCallback(((e,t)=>{if(!($?ee.length<t.length:null!==t)&&!c)return;let r;if($)r="";else if(null==t)r="";else{const e=H(t);r="string"==typeof e?e:""}re!==r&&(oe(r),N&&N(e,r,"reset"))}),[H,re,$,N,oe,c,ee]),[le,se]=jt({controlled:L,default:!1,name:u,state:"open"}),[ce,de]=e.useState(!0),ue=!$&&null!=ee&&re===H(ee),pe=le&&!B,fe=pe?v(F.filter((e=>!y||!($?ee:[ee]).some((t=>null!==t&&O(e,t))))),{inputValue:ue&&ce?"":re,getOptionLabel:H}):[],me=(t=>{const r=e.useRef({});return e.useEffect((()=>{r.current=t})),r.current})({filteredOptions:fe,value:ee,inputValue:re});e.useEffect((()=>{const e=ee!==me.value;ne&&!e||x&&!e||ie(null,ee)}),[ee,ie,ne,me.value,x]);const he=le&&fe.length>0&&!B,ge=zt((e=>{-1===e?K.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{$&&Y>ee.length-1&&(J(-1),ge(-1))}),[ee,$,Y,ge]);const be=zt((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?K.current.removeAttribute("aria-activedescendant"):K.current.setAttribute("aria-activedescendant",`${_}-option-${t}`),I&&I(e,-1===t?null:fe[t],r),!X.current)return;const n=X.current.querySelector(`[role="option"].${o}-focused`);n&&(n.classList.remove(`${o}-focused`),n.classList.remove(`${o}-focusVisible`));let a=X.current;if("listbox"!==X.current.getAttribute("role")&&(a=X.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=X.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${o}-focused`),"keyboard"===r&&i.classList.add(`${o}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?a.scrollTop=r-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=zt((({event:e,diff:t,direction:r="next",reason:o="auto"})=>{if(!pe)return;const a=function(e,t){if(!X.current||e<0||e>=fe.length)return-1;let r=e;for(;;){const o=X.current.querySelector(`[data-option-index="${r}"]`),n=!g&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!n)return r;if(r="next"===t?(r+1)%fe.length:(r-1+fe.length)%fe.length,r===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const r=Q.current+t;return r<0?-1===r&&E?-1:b&&-1!==Q.current||Math.abs(t)>1?0:e:r>e?r===e+1&&E?-1:b||Math.abs(t)>1?e:0:r})(),r);if(be({index:a,reason:o,event:e}),n&&"reset"!==t)if(-1===a)K.current.value=re;else{const e=H(fe[a]);K.current.value=e,0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&K.current.setSelectionRange(re.length,e.length)}})),ye=e.useCallback((()=>{if(!pe)return;const e=(()=>{if(-1!==Q.current&&me.filteredOptions&&me.filteredOptions.length!==fe.length&&me.inputValue===re&&($?ee.length===me.value.length&&me.value.every(((e,t)=>H(ee[t])===H(e))):(e=me.value,t=ee,(e?H(e):"")===(t?H(t):"")))){const e=me.filteredOptions[Q.current];if(e)return Wt(fe,(t=>H(t)===H(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=$?ee[0]:ee;if(0!==fe.length&&null!=t){if(X.current)if(null==t)Q.current>=fe.length-1?be({index:fe.length-1}):be({index:Q.current});else{const e=fe[Q.current];if($&&e&&-1!==Wt(ee,(t=>O(e,t))))return;const r=Wt(fe,(e=>O(e,t)));-1===r?ve({diff:"reset"}):be({index:r})}}else ve({diff:"reset"})}),[fe.length,!$&&ee,y,ve,be,pe,re,$]),xe=zt((e=>{Ft(X,e),e&&ye()}));e.useEffect((()=>{ye()}),[ye]);const we=e=>{le||(se(!0),de(!0),j&&j(e))},Se=(e,t)=>{le&&(se(!1),T&&T(e,t))},Ae=(e,t,r,o)=>{if($){if(ee.length===t.length&&ee.every(((e,r)=>e===t[r])))return}else if(ee===t)return;M&&M(e,t,r,o),te(t)},Ce=e.useRef(!1),ke=(e,t,r="selectOption",o="options")=>{let n=r,a=t;if($){a=Array.isArray(ee)?ee.slice():[];const e=Wt(a,(e=>O(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}ie(e,a),Ae(e,a,n,{option:t}),m||e&&(e.ctrlKey||e.metaKey)||Se(e,n),(!0===s||"touch"===s&&Ce.current||"mouse"===s&&!Ce.current)&&K.current.blur()},Re=(e,t)=>{if(!$)return;""===re&&Se(e,"toggleInput");let r=Y;-1===Y?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=U.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),J(r),ge(r)},Ee=e=>{V.current=!0,oe(""),N&&N(e,"","clear"),Ae(e,$?[]:null,"clear")},Pe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Y&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Re(t,"previous");break;case"ArrowRight":Re(t,"next");break;case"Enter":if(-1!==Q.current&&pe){const e=fe[Q.current],r=!!w&&w(e);if(t.preventDefault(),r)return;ke(t,e,"selectOption"),n&&K.current.setSelectionRange(K.current.value.length,K.current.value.length)}else x&&""!==re&&!1===ue&&($&&t.preventDefault(),ke(t,re,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):d&&(""!==re||$&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if($&&!B&&""===re&&ee.length>0){const e=-1===Y?ee.length-1:Y,r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if($&&!B&&""===re&&ee.length>0&&-1!==Y){const e=Y,r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})}}},Oe=e=>{ae(!0),z&&!V.current&&we(e)},$e=e=>{r(X)?K.current.focus():(ae(!1),q.current=!0,V.current=!1,l&&-1!==Q.current&&pe?ke(e,fe[Q.current],"blur"):l&&x&&""!==re?ke(e,re,"blur","freeSolo"):c&&ie(e,ee),Se(e,"blur"))},Me=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),N&&N(e,t,"input")),""===t?f||$||Ae(e,null,"clear"):we(e)},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&be({event:e,index:t,reason:"mouse"})},Ie=e=>{be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Ne=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,fe[t],"selectOption"),Ce.current=!1},je=e=>t=>{const r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})},Le=e=>{le?Se(e,"toggleInput"):we(e)},ze=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==_&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(K.current.focus(),W&&q.current&&K.current.selectionEnd-K.current.selectionStart==0&&K.current.select(),q.current=!1)},Be=e=>{h||""!==re&&le||Le(e)};let We=x&&re.length>0;We=We||($?ee.length>0:null!==ee);let De=fe;return C&&(new Map,De=fe.reduce(((e,t,r)=>{const o=C(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e}),[])),h&&ne&&$e(),{getRootProps:(e={})=>(0,a.A)({"aria-owns":he?`${_}-listbox`:null},e,{onKeyDown:Pe(e),onMouseDown:ze,onClick:Fe}),getInputLabelProps:()=>({id:`${_}-label`,htmlFor:_}),getInputProps:()=>({id:_,value:re,onBlur:$e,onFocus:Oe,onChange:Me,onMouseDown:Be,"aria-activedescendant":pe?"":null,"aria-autocomplete":n?"both":"list","aria-controls":he?`${_}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:K,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Le}),getTagProps:({index:e})=>(0,a.A)({key:e,"data-tag-index":e,tabIndex:-1},!B&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${_}-listbox`,"aria-labelledby":`${_}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const o=($?ee:[ee]).some((e=>null!=e&&O(t,e))),n=!!w&&w(t);return{key:null!=(r=null==S?void 0:S(t))?r:H(t),tabIndex:-1,role:"option",id:`${_}-option-${e}`,onMouseMove:Te,onClick:Ne,onTouchStart:Ie,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:_,inputValue:re,value:ee,dirty:We,expanded:pe&&U,popupOpen:pe,focused:ne||-1!==Y,anchorEl:U,setAnchorEl:G,focusedTag:Y,groupedOptions:De}};var qt=r(923);function Kt(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Ft(t,e)}))}),t)}function Xt(e){return e&&e.ownerDocument||document}function Ut(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gt(e){return e instanceof Ut(e).Element||e instanceof Element}function Yt(e){return e instanceof Ut(e).HTMLElement||e instanceof HTMLElement}function Jt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ut(e).ShadowRoot||e instanceof ShadowRoot)}var Zt=Math.max,Qt=Math.min,er=Math.round;function tr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(tr())}function or(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&Yt(e)&&(n=e.offsetWidth>0&&er(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&er(o.height)/e.offsetHeight||1);var i=(Gt(e)?Ut(e):window).visualViewport,l=!rr()&&r,s=(o.left+(l&&i?i.offsetLeft:0))/n,c=(o.top+(l&&i?i.offsetTop:0))/a,d=o.width/n,u=o.height/a;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function nr(e){var t=Ut(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ar(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){return((Gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function lr(e){return or(ir(e)).left+nr(e).scrollLeft}function sr(e){return Ut(e).getComputedStyle(e)}function cr(e){var t=sr(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function dr(e,t,r){void 0===r&&(r=!1);var o,n,a=Yt(t),i=Yt(t)&&function(e){var t=e.getBoundingClientRect(),r=er(t.width)/e.offsetWidth||1,o=er(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),l=ir(t),s=or(e,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&(("body"!==ar(t)||cr(l))&&(c=(o=t)!==Ut(o)&&Yt(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:nr(o)),Yt(t)?((d=or(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):l&&(d.x=lr(l))),{x:s.left+c.scrollLeft-d.x,y:s.top+c.scrollTop-d.y,width:s.width,height:s.height}}function ur(e){var t=or(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function pr(e){return"html"===ar(e)?e:e.assignedSlot||e.parentNode||(Jt(e)?e.host:null)||ir(e)}function fr(e){return["html","body","#document"].indexOf(ar(e))>=0?e.ownerDocument.body:Yt(e)&&cr(e)?e:fr(pr(e))}function mr(e,t){var r;void 0===t&&(t=[]);var o=fr(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ut(o),i=n?[a].concat(a.visualViewport||[],cr(o)?o:[]):o,l=t.concat(i);return n?l:l.concat(mr(pr(i)))}function hr(e){return["table","td","th"].indexOf(ar(e))>=0}function gr(e){return Yt(e)&&"fixed"!==sr(e).position?e.offsetParent:null}function br(e){for(var t=Ut(e),r=gr(e);r&&hr(r)&&"static"===sr(r).position;)r=gr(r);return r&&("html"===ar(r)||"body"===ar(r)&&"static"===sr(r).position)?t:r||function(e){var t=/firefox/i.test(tr());if(/Trident/i.test(tr())&&Yt(e)&&"fixed"===sr(e).position)return null;var r=pr(e);for(Jt(r)&&(r=r.host);Yt(r)&&["html","body"].indexOf(ar(r))<0;){var o=sr(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}var vr="top",yr="bottom",xr="right",wr="left",Sr="auto",Ar=[vr,yr,xr,wr],Cr="start",kr="end",Rr="viewport",Er="popper",Pr=Ar.reduce((function(e,t){return e.concat([t+"-"+Cr,t+"-"+kr])}),[]),Or=[].concat(Ar,[Sr]).reduce((function(e,t){return e.concat([t,t+"-"+Cr,t+"-"+kr])}),[]),$r=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Mr(e){var t=new Map,r=new Set,o=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&n(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),o}var Tr={placement:"bottom",modifiers:[],strategy:"absolute"};function Ir(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Nr(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,n=t.defaultOptions,a=void 0===n?Tr:n;return function(e,t,r){void 0===r&&(r=a);var n,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tr,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,d={state:l,setOptions:function(r){var n="function"==typeof r?r(l.options):r;u(),l.options=Object.assign({},a,l.options,n),l.scrollParents={reference:Gt(e)?mr(e):e.contextElement?mr(e.contextElement):[],popper:mr(t)};var i,c,p=function(e){var t=Mr(e);return $r.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((i=[].concat(o,l.options.modifiers),c=i.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,o=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var a=n({state:l,name:t,instance:d,options:o});s.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,r=e.popper;if(Ir(t,r)){l.rects={reference:dr(t,br(r),"fixed"===l.options.strategy),popper:ur(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<l.orderedModifiers.length;o++)if(!0!==l.reset){var n=l.orderedModifiers[o],a=n.fn,i=n.options,s=void 0===i?{}:i,u=n.name;"function"==typeof a&&(l=a({state:l,options:s,name:u,instance:d})||l)}else l.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(n())}))}))),i}),destroy:function(){u(),c=!0}};if(!Ir(e,t))return d;function u(){s.forEach((function(e){return e()})),s=[]}return d.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),d}}var jr={passive:!0};function Lr(e){return e.split("-")[0]}function zr(e){return e.split("-")[1]}function Fr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Br(e){var t,r=e.reference,o=e.element,n=e.placement,a=n?Lr(n):null,i=n?zr(n):null,l=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(a){case vr:t={x:l,y:r.y-o.height};break;case yr:t={x:l,y:r.y+r.height};break;case xr:t={x:r.x+r.width,y:s};break;case wr:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var c=a?Fr(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Cr:t[c]=t[c]-(r[d]/2-o[d]/2);break;case kr:t[c]=t[c]+(r[d]/2-o[d]/2)}}return t}var Wr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dr(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,g="function"==typeof d?d({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=wr,x=vr,w=window;if(c){var S=br(r),A="clientHeight",C="clientWidth";S===Ut(r)&&"static"!==sr(S=ir(r)).position&&"absolute"===l&&(A="scrollHeight",C="scrollWidth"),(n===vr||(n===wr||n===xr)&&a===kr)&&(x=yr,h-=(u&&S===w&&w.visualViewport?w.visualViewport.height:S[A])-o.height,h*=s?1:-1),n!==wr&&(n!==vr&&n!==yr||a!==kr)||(y=xr,f-=(u&&S===w&&w.visualViewport?w.visualViewport.width:S[C])-o.width,f*=s?1:-1)}var k,R=Object.assign({position:l},c&&Wr),E=!0===d?function(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:er(r*n)/n||0,y:er(o*n)/n||0}}({x:f,y:h},Ut(r)):{x:f,y:h};return f=E.x,h=E.y,s?Object.assign({},R,((k={})[x]=v?"0":"",k[y]=b?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",k)):Object.assign({},R,((t={})[x]=v?h+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var _r={left:"right",right:"left",bottom:"top",top:"bottom"};function Hr(e){return e.replace(/left|right|bottom|top/g,(function(e){return _r[e]}))}var Vr={start:"end",end:"start"};function qr(e){return e.replace(/start|end/g,(function(e){return Vr[e]}))}function Kr(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Jt(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Xr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ur(e,t,r){return t===Rr?Xr(function(e,t){var r=Ut(e),o=ir(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,l=0,s=0;if(n){a=n.width,i=n.height;var c=rr();(c||!c&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:a,height:i,x:l+lr(e),y:s}}(e,r)):Gt(t)?function(e,t){var r=or(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Xr(function(e){var t,r=ir(e),o=nr(e),n=null==(t=e.ownerDocument)?void 0:t.body,a=Zt(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=Zt(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+lr(e),s=-o.scrollTop;return"rtl"===sr(n||r).direction&&(l+=Zt(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(ir(e)))}function Gr(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Yr(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Jr(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=void 0===o?e.placement:o,a=r.strategy,i=void 0===a?e.strategy:a,l=r.boundary,s=void 0===l?"clippingParents":l,c=r.rootBoundary,d=void 0===c?Rr:c,u=r.elementContext,p=void 0===u?Er:u,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,g=void 0===h?0:h,b=Gr("number"!=typeof g?g:Yr(g,Ar)),v=p===Er?"reference":Er,y=e.rects.popper,x=e.elements[m?v:p],w=function(e,t,r,o){var n="clippingParents"===t?function(e){var t=mr(pr(e)),r=["absolute","fixed"].indexOf(sr(e).position)>=0&&Yt(e)?br(e):e;return Gt(r)?t.filter((function(e){return Gt(e)&&Kr(e,r)&&"body"!==ar(e)})):[]}(e):[].concat(t),a=[].concat(n,[r]),i=a[0],l=a.reduce((function(t,r){var n=Ur(e,r,o);return t.top=Zt(n.top,t.top),t.right=Qt(n.right,t.right),t.bottom=Qt(n.bottom,t.bottom),t.left=Zt(n.left,t.left),t}),Ur(e,i,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(Gt(x)?x:x.contextElement||ir(e.elements.popper),s,d,i),S=or(e.elements.reference),A=Br({reference:S,element:y,strategy:"absolute",placement:n}),C=Xr(Object.assign({},y,A)),k=p===Er?C:S,R={top:w.top-k.top+b.top,bottom:k.bottom-w.bottom+b.bottom,left:w.left-k.left+b.left,right:k.right-w.right+b.right},E=e.modifiersData.offset;if(p===Er&&E){var P=E[n];Object.keys(R).forEach((function(e){var t=[xr,yr].indexOf(e)>=0?1:-1,r=[vr,yr].indexOf(e)>=0?"y":"x";R[e]+=P[r]*t}))}return R}function Zr(e,t,r){return Zt(e,Qt(t,r))}function Qr(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eo(e){return[vr,xr,yr,wr].some((function(t){return e[t]>=0}))}var to=Nr({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=void 0===n||n,i=o.resize,l=void 0===i||i,s=Ut(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,jr)})),l&&s.addEventListener("resize",r.update,jr),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,jr)})),l&&s.removeEventListener("resize",r.update,jr)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Br({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=void 0===o||o,a=r.adaptive,i=void 0===a||a,l=r.roundOffsets,s=void 0===l||l,c={placement:Lr(t.placement),variation:zr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Dr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];Yt(n)&&ar(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],n=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Yt(o)&&ar(o)&&(Object.assign(o.style,a),Object.keys(n).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=void 0===n?[0,0]:n,i=Or.reduce((function(e,r){return e[r]=function(e,t,r){var o=Lr(e),n=[wr,vr].indexOf(o)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*n,[wr,xr].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(r,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0===i||i,s=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,g=t.options.placement,b=Lr(g),v=s||(b!==g&&m?function(e){if(Lr(e)===Sr)return[];var t=Hr(e);return[qr(e),t,qr(t)]}(g):[Hr(g)]),y=[g].concat(v).reduce((function(e,r){return e.concat(Lr(r)===Sr?function(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Or:s,d=zr(o),u=d?l?Pr:Pr.filter((function(e){return zr(e)===d})):Ar,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var f=p.reduce((function(t,r){return t[r]=Jr(e,{placement:r,boundary:n,rootBoundary:a,padding:i})[Lr(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,A=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],E=Lr(R),P=zr(R)===Cr,O=[vr,yr].indexOf(E)>=0,$=O?"width":"height",M=Jr(t,{placement:R,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),T=O?P?xr:wr:P?yr:vr;x[$]>w[$]&&(T=Hr(T));var I=Hr(T),N=[];if(a&&N.push(M[E]<=0),l&&N.push(M[T]<=0,M[I]<=0),N.every((function(e){return e}))){C=R,A=!1;break}S.set(R,N)}if(A)for(var j=function(e){var t=y.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0&&"break"!==j(L);L--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0!==i&&i,s=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,g=Jr(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:d}),b=Lr(t.placement),v=zr(t.placement),y=!v,x=Fr(b),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,A=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var O,$="y"===x?vr:wr,M="y"===x?yr:xr,T="y"===x?"height":"width",I=S[x],N=I+g[$],j=I-g[M],L=f?-C[T]/2:0,z=v===Cr?A[T]:C[T],F=v===Cr?-C[T]:-A[T],B=t.elements.arrow,W=f&&B?ur(B):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},_=D[$],H=D[M],V=Zr(0,A[T],W[T]),q=y?A[T]/2-L-V-_-R.mainAxis:z-V-_-R.mainAxis,K=y?-A[T]/2+L+V+H+R.mainAxis:F+V+H+R.mainAxis,X=t.elements.arrow&&br(t.elements.arrow),U=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,G=null!=(O=null==E?void 0:E[x])?O:0,Y=I+K-G,J=Zr(f?Qt(N,I+q-G-U):N,I,f?Zt(j,Y):j);S[x]=J,P[x]=J-I}if(l){var Z,Q="x"===x?vr:wr,ee="x"===x?yr:xr,te=S[w],re="y"===w?"height":"width",oe=te+g[Q],ne=te-g[ee],ae=-1!==[vr,wr].indexOf(b),ie=null!=(Z=null==E?void 0:E[w])?Z:0,le=ae?oe:te-A[re]-C[re]-ie+R.altAxis,se=ae?te+A[re]+C[re]-ie-R.altAxis:ne,ce=f&&ae?function(e,t,r){var o=Zr(e,t,r);return o>r?r:o}(le,te,se):Zr(f?le:oe,te,f?se:ne);S[w]=ce,P[w]=ce-te}t.modifiersData[o]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=Lr(r.placement),s=Fr(l),c=[wr,xr].indexOf(l)>=0?"height":"width";if(a&&i){var d=function(e,t){return Gr("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Yr(e,Ar))}(n.padding,r),u=ur(a),p="y"===s?vr:wr,f="y"===s?yr:xr,m=r.rects.reference[c]+r.rects.reference[s]-i[s]-r.rects.popper[c],h=i[s]-r.rects.reference[s],g=br(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=d[p],x=b-u[c]-d[f],w=b/2-u[c]/2+v,S=Zr(y,w,x),A=s;r.modifiersData[o]=((t={})[A]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Kr(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=Jr(t,{elementContext:"reference"}),l=Jr(t,{altBoundary:!0}),s=Qr(i,o),c=Qr(l,n,a),d=eo(s),u=eo(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});const ro=function(e){return"string"==typeof e},oo=function(e,t,r){return void 0===e||ro(e)?t:(0,a.A)({},t,{ownerState:(0,a.A)({},t.ownerState,r)})},no=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},ao=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},io=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:i}=e;if(!t){const e=fe(null==r?void 0:r.className,i,null==n?void 0:n.className,null==o?void 0:o.className),t=(0,a.A)({},null==r?void 0:r.style,null==n?void 0:n.style,null==o?void 0:o.style),l=(0,a.A)({},r,n,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=no((0,a.A)({},n,o)),s=ao(o),c=ao(n),d=t(l),u=fe(null==d?void 0:d.className,null==r?void 0:r.className,i,null==n?void 0:n.className,null==o?void 0:o.className),p=(0,a.A)({},null==d?void 0:d.style,null==r?void 0:r.style,null==n?void 0:n.style,null==o?void 0:o.style),f=(0,a.A)({},d,r,c,s);return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:d.ref}},lo=function(e,t,r){return"function"==typeof e?e(t,r):e},so=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],co=function(e){var t;const{elementType:r,externalSlotProps:o,ownerState:n,skipResolvingSlotProps:l=!1}=e,s=(0,i.A)(e,so),c=l?{}:lo(o,n),{props:d,internalRef:u}=io((0,a.A)({},s,{externalSlotProps:c})),p=Kt(u,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref);return oo(r,(0,a.A)({},d,{ref:p}),n)};function uo(t){var r;return parseInt(e.version,10)>=19?(null==t||null==(r=t.props)?void 0:r.ref)||null:(null==t?void 0:t.ref)||null}const po=e.forwardRef((function(t,r){const{children:n,container:a,disablePortal:i=!1}=t,[l,s]=e.useState(null),c=Kt(e.isValidElement(n)?uo(n):null,r);if(Lt((()=>{i||s(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,i]),Lt((()=>{if(l&&!i)return Ft(r,l),()=>{Ft(r,null)}}),[r,l,i]),i){if(e.isValidElement(n)){const t={ref:c};return e.cloneElement(n,t)}return(0,xe.jsx)(e.Fragment,{children:n})}return(0,xe.jsx)(e.Fragment,{children:l?o.createPortal(n,l):l})}));function fo(e){return Re("MuiPopper",e)}Ee("MuiPopper",["root"]);const mo=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ho=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function go(e){return"function"==typeof e?e():e}const bo={},vo=e.forwardRef((function(t,r){var o;const{anchorEl:n,children:l,direction:s,disablePortal:c,modifiers:d,open:u,placement:p,popperOptions:f,popperRef:m,slotProps:h={},slots:g={},TransitionProps:b}=t,v=(0,i.A)(t,mo),y=e.useRef(null),x=Kt(y,r),w=e.useRef(null),S=Kt(w,m),A=e.useRef(S);Lt((()=>{A.current=S}),[S]),e.useImperativeHandle(m,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,s),[k,R]=e.useState(C),[E,P]=e.useState(go(n));e.useEffect((()=>{w.current&&w.current.forceUpdate()})),e.useEffect((()=>{n&&P(go(n))}),[n]),Lt((()=>{if(!E||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{R(e.placement)}}];null!=d&&(e=e.concat(d)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=to(E,y.current,(0,a.A)({placement:C},f,{modifiers:e}));return A.current(t),()=>{t.destroy(),A.current(null)}}),[E,c,d,u,f,C]);const O={placement:k};null!==b&&(O.TransitionProps=b);const $=(e=>{const{classes:t}=e;return Me({root:["root"]},fo,t)})(t),M=null!=(o=g.root)?o:"div",T=co({elementType:M,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:$.root});return(0,xe.jsx)(M,(0,a.A)({},T,{children:"function"==typeof l?l(O):l}))})),yo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xo=Le(e.forwardRef((function(t,r){const{anchorEl:o,children:n,container:l,direction:s="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:u,open:p,placement:f="bottom",popperOptions:m=bo,popperRef:h,style:g,transition:b=!1,slotProps:v={},slots:y={}}=t,x=(0,i.A)(t,ho),[w,S]=e.useState(!0);if(!d&&!p&&(!b||w))return null;let A;if(l)A=l;else if(o){const e=go(o);A=e&&void 0!==e.nodeType?Xt(e).body:Xt(null).body}const C=p||!d||b&&!w?void 0:"none",k=b?{in:p,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,xe.jsx)(po,{disablePortal:c,container:A,children:(0,xe.jsx)(vo,(0,a.A)({anchorEl:o,direction:s,disablePortal:c,modifiers:u,ref:r,open:b?!w:p,placement:f,popperOptions:m,popperRef:h,slotProps:v,slots:y},x,{style:(0,a.A)({position:"fixed",top:0,left:0,display:C},g),TransitionProps:k,children:n}))})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wo=e.forwardRef((function(e,t){var r;const o=(0,qt.A)(),n=We({props:e,name:"MuiPopper"}),{anchorEl:l,component:s,components:c,componentsProps:d,container:u,disablePortal:p,keepMounted:f,modifiers:m,open:h,placement:g,popperOptions:b,popperRef:v,transition:y,slots:x,slotProps:w}=n,S=(0,i.A)(n,yo),A=null!=(r=null==x?void 0:x.root)?r:null==c?void 0:c.Root,C=(0,a.A)({anchorEl:l,container:u,disablePortal:p,keepMounted:f,modifiers:m,open:h,placement:g,popperOptions:b,popperRef:v,transition:y},S);return(0,xe.jsx)(xo,(0,a.A)({as:s,direction:null==o?void 0:o.direction,slots:{root:A},slotProps:null!=w?w:d},C,{ref:t}))}));function So(e){return Re("MuiListSubheader",e)}Ee("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ao=["className","color","component","disableGutters","disableSticky","inset"],Co=Le("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${De(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,a.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),ko=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiListSubheader"}),{className:o,color:n="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:d=!1}=r,u=(0,i.A)(r,Ao),p=(0,a.A)({},r,{color:n,component:l,disableGutters:s,disableSticky:c,inset:d}),f=(e=>{const{classes:t,color:r,disableGutters:o,inset:n,disableSticky:a}=e;return Me({root:["root","default"!==r&&`color${De(r)}`,!o&&"gutters",n&&"inset",!a&&"sticky"]},So,t)})(p);return(0,xe.jsx)(Co,(0,a.A)({as:l,className:fe(f.root,o),ref:t,ownerState:p},u))}));ko.muiSkipListHighlight=!0;const Ro=ko,Eo=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Po(e){return Re("MuiPaper",e)}Ee("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 Oo=["className","component","elevation","square","variant"],$o=Le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return(0,a.A)({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,a.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.X4)("#fff",Eo(t.elevation))}, ${(0,p.X4)("#fff",Eo(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Mo=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiPaper"}),{className:o,component:n="div",elevation:l=1,square:s=!1,variant:c="elevation"}=r,d=(0,i.A)(r,Oo),u=(0,a.A)({},r,{component:n,elevation:l,square:s,variant:c}),p=(e=>{const{square:t,elevation:r,variant:o,classes:n}=e;return Me({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${r}`]},Po,n)})(u);return(0,xe.jsx)($o,(0,a.A)({as:n,ownerState:u,className:fe(p.root,o),ref:t},d))})),To=Kt,Io=zt,No={},jo=[];class Lo{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Lo}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function zo(){const t=function(t){const r=e.useRef(No);return r.current===No&&(r.current=t(void 0)),r}(Lo.create).current;var r;return r=t.disposeEffect,e.useEffect(r,jo),t}let Fo=!0,Bo=!1;const Wo=new Lo,Do={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 _o(e){e.metaKey||e.altKey||e.ctrlKey||(Fo=!0)}function Ho(){Fo=!1}function Vo(){"hidden"===this.visibilityState&&Bo&&(Fo=!0)}const qo=function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_o,!0),t.addEventListener("mousedown",Ho,!0),t.addEventListener("pointerdown",Ho,!0),t.addEventListener("touchstart",Ho,!0),t.addEventListener("visibilitychange",Vo,!0))}),[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Fo||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Do[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Bo=!0,Wo.start(100,(()=>{Bo=!1})),r.current=!1,!0)},ref:t}};function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ko(e,t)}function Xo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}const Uo=t().createContext(null);function Go(t,r){var o=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){o[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),o}function Yo(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Jo(t,r,o){var n=Go(t.children),a=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var o,n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(n[s])for(o=0;o<n[s].length;o++){var c=n[s][o];l[n[s][o]]=r(c)}l[s]=r(s)}for(o=0;o<a.length;o++)l[a[o]]=r(a[o]);return l}(r,n);return Object.keys(a).forEach((function(i){var l=a[i];if((0,e.isValidElement)(l)){var s=i in r,c=i in n,d=r[i],u=(0,e.isValidElement)(d)&&!d.props.in;!c||s&&!u?c||!s||u?c&&s&&(0,e.isValidElement)(d)&&(a[i]=(0,e.cloneElement)(l,{onExited:o.bind(null,l),in:d.props.in,exit:Yo(l,"exit",t),enter:Yo(l,"enter",t)})):a[i]=(0,e.cloneElement)(l,{in:!1}):a[i]=(0,e.cloneElement)(l,{onExited:o.bind(null,l),in:!0,exit:Yo(l,"exit",t),enter:Yo(l,"enter",t)})}})),a}var Zo=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Qo=function(r){function o(e,t){var o,n=(o=r.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0},o}Xo(o,r);var n=o.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(t,r){var o,n,a=r.children,i=r.handleExited;return{children:r.firstRender?(o=t,n=i,Go(o.children,(function(t){return(0,e.cloneElement)(t,{onExited:n.bind(null,t),in:!0,appear:Yo(t,"appear",o),enter:Yo(t,"enter",o),exit:Yo(t,"exit",o)})}))):Jo(t,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=Go(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,a.A)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,o=e.childFactory,n=(0,i.A)(e,["component","childFactory"]),a=this.state.contextValue,l=Zo(this.state.children).map(o);return delete n.appear,delete n.enter,delete n.exit,null===r?t().createElement(Uo.Provider,{value:a},l):t().createElement(Uo.Provider,{value:a},t().createElement(r,n,l))},o}(t().Component);Qo.propTypes={},Qo.defaultProps={component:"div",childFactory:function(e){return e}};const en=Qo;var tn=r(437);const rn=Ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),on=["center","classes","className"];let nn,an,ln,sn,cn=e=>e;const dn=(0,tn.i7)(nn||(nn=cn`
     1(()=>{var e={655:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),n=Math.abs,a=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,r){return e.slice(t,r)}function p(e){return e.length}function f(e){return e.length}function m(e,t){return t.push(e),e}var h=1,g=1,b=0,v=0,y=0,x="";function w(e,t,r,o,n,a,i){return{value:e,root:t,parent:r,type:o,props:n,children:a,line:h,column:g,length:i,return:""}}function S(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return y=v>0?d(x,--v):0,g--,10===y&&(g=1,h--),y}function C(){return y=v<b?d(x,v++):0,g++,10===y&&(g=1,h++),y}function k(){return d(x,v)}function E(){return v}function R(e,t){return u(x,e,t)}function P(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 O(e){return h=g=1,b=p(x=e),v=0,[]}function $(e){return x="",e}function M(e){return l(R(v-1,N(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(y=k())&&y<33;)C();return P(e)>2||P(y)>3?"":" "}function I(e,t){for(;--t&&C()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return R(e,E()+(t<6&&32==k()&&32==C()))}function N(e){for(;C();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&N(y);break;case 40:41===e&&N(e);break;case 92:C()}return v}function j(e,t){for(;C()&&e+y!==57&&(e+y!==84||47!==k()););return"/*"+R(t,v-1)+"*"+a(47===e?e:C())}function L(e){for(;!P(k());)C();return R(e,v)}var z="-ms-",F="-moz-",W="-webkit-",B="comm",D="rule",_="decl",H="@keyframes";function V(e,t){for(var r="",o=f(e),n=0;n<o;n++)r+=t(e[n],n,e,t)||"";return r}function q(e,t,r,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _:return e.return=e.return||e.value;case B:return"";case H:return e.return=e.value+"{"+V(e.children,o)+"}";case D:e.value=e.props.join(",")}return p(r=V(e.children,o))?e.return=e.value+"{"+r+"}":""}function X(e){return $(U("",null,null,null,[""],e=O(e),0,[0],e))}function U(e,t,r,o,n,i,l,u,f){for(var h=0,g=0,b=l,v=0,y=0,x=0,w=1,S=1,R=1,P=0,O="",$=n,N=i,z=o,F=O;S;)switch(x=P,P=C()){case 40:if(108!=x&&58==d(F,b-1)){-1!=c(F+=s(M(P),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:F+=M(P);break;case 9:case 10:case 13:case 32:F+=T(x);break;case 92:F+=I(E()-1,7);continue;case 47:switch(k()){case 42:case 47:m(G(j(C(),E()),t,r),f);break;default:F+="/"}break;case 123*w:u[h++]=p(F)*R;case 125*w:case 59:case 0:switch(P){case 0:case 125:S=0;case 59+g:-1==R&&(F=s(F,/\f/g,"")),y>0&&p(F)-b&&m(y>32?Y(F+";",o,r,b-1):Y(s(F," ","")+";",o,r,b-2),f);break;case 59:F+=";";default:if(m(z=K(F,t,r,h,g,n,u,O,$=[],N=[],b),i),123===P)if(0===g)U(F,t,z,z,$,i,b,u,N);else switch(99===v&&110===d(F,3)?100:v){case 100:case 108:case 109:case 115:U(e,z,z,o&&m(K(e,z,z,0,0,n,u,O,n,$=[],b),N),n,N,b,u,o?$:N);break;default:U(F,z,z,z,[""],N,0,u,N)}}h=g=y=0,w=R=1,O=F="",b=l;break;case 58:b=1+p(F),y=x;default:if(w<1)if(123==P)--w;else if(125==P&&0==w++&&125==A())continue;switch(F+=a(P),P*w){case 38:R=g>0?1:(F+="\f",-1);break;case 44:u[h++]=(p(F)-1)*R,R=1;break;case 64:45===k()&&(F+=M(C())),v=k(),g=b=p(O=F+=L(E())),P++;break;case 45:45===x&&2==p(F)&&(w=0)}}return i}function K(e,t,r,o,a,i,c,d,p,m,h){for(var g=a-1,b=0===a?i:[""],v=f(b),y=0,x=0,S=0;y<o;++y)for(var A=0,C=u(e,g+1,g=n(x=c[y])),k=e;A<v;++A)(k=l(x>0?b[A]+" "+C:s(C,/&\f/g,b[A])))&&(p[S++]=k);return w(e,t,r,0===a?D:d,p,m,h)}function G(e,t,r){return w(e,t,r,B,a(y),u(e,2,-2),0)}function Y(e,t,r,o){return w(e,t,r,_,u(e,0,o),u(e,o+1,-1),o)}var J=function(e,t,r){for(var o=0,n=0;o=n,n=k(),38===o&&12===n&&(t[r]=1),!P(n);)C();return R(e,v)},Z=new WeakMap,Q=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(r))&&!o){Z.set(e,!0);for(var n=[],i=function(e,t){return $(function(e,t){var r=-1,o=44;do{switch(P(o)){case 0:38===o&&12===k()&&(t[r]=1),e[r]+=J(v-1,t,r);break;case 2:e[r]+=M(o);break;case 4:if(44===o){e[++r]=58===k()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(o)}}while(o=C());return e}(O(e),t))}(t,n),l=r.props,s=0,c=0;s<i.length;s++)for(var d=0;d<l.length;d++,c++)e.props[c]=n[s]?i[s].replace(/&\f/g,l[d]):l[d]+" "+i[s]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+F+e+z+e+e;case 6828:case 4268:return W+e+z+e+e;case 6165:return W+e+z+"flex-"+e+e;case 5187:return W+e+s(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return W+e+z+"flex-item-"+s(e,/flex-|-self/,"")+e;case 4675:return W+e+z+"flex-line-pack"+s(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+z+s(e,"shrink","negative")+e;case 5292:return W+e+z+s(e,"basis","preferred-size")+e;case 6060:return W+"box-"+s(e,"-grow","")+W+e+z+s(e,"grow","positive")+e;case 4554:return W+s(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return s(s(s(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return s(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return s(s(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return s(e,/(.+)-inline(.+)/,W+"$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(p(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+F+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+W)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===d(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return W+e+z+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+z+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+z+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+z+e+e}return e}var re=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case _:e.return=te(e.value,e.length);break;case H:return V([S(e,{value:s(e.value,"@","@"+W)})],o);case D:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([S(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return V([S(e,{props:[s(t,/:(plac\w+)/,":"+W+"input-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[s(t,/:(plac\w+)/,z+"input-$1")]})],o)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,i=e.stylisPlugins||re,l={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)l[t[r]]=!0;s.push(e)}));var c,d,u,p,m=[q,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],h=(d=[Q,ee].concat(i,m),u=f(d),function(e,t,r,o){for(var n="",a=0;a<u;a++)n+=d[a](e,t,r,o)||"";return n});a=function(e,t,r,o){c=r,V(X(e?e+"{"+t.styles+"}":t.styles),h),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new o({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return g.sheet.hydrate(s),g}},289:(e,t,r)=>{"use strict";function o(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>o})},684:(e,t,r)=>{"use strict";r.d(t,{C:()=>c,E:()=>g,T:()=>u,c:()=>m,h:()=>p,w:()=>d});var o=r(609),n=r(655),a=r(41),i=r(174),l=r(287),s=o.createContext("undefined"!=typeof HTMLElement?(0,n.A)({key:"css"}):null),c=s.Provider,d=function(e){return(0,o.forwardRef)((function(t,r){var n=(0,o.useContext)(s);return e(t,n,r)}))},u=o.createContext({}),p={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var r={};for(var o in t)p.call(t,o)&&(r[o]=t[o]);return r[f]=e,r},h=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;return(0,a.SF)(t,r,o),(0,l.s)((function(){return(0,a.sk)(t,r,o)})),null},g=d((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var l=e[f],s=[n],c="";"string"==typeof e.className?c=(0,a.Rk)(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var d=(0,i.J)(s,void 0,o.useContext(u));c+=t.key+"-"+d.name;var m={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==f&&(m[g]=e[g]);return m.className=c,r&&(m.ref=r),o.createElement(o.Fragment,null,o.createElement(h,{cache:t,serialized:d,isStringTag:"string"==typeof l}),o.createElement(l,m))}))},437:(e,t,r)=>{"use strict";r.d(t,{AH:()=>p,i7:()=>f,mL:()=>u});var o,n,a=r(684),i=r(609),l=r(41),s=r(287),c=r(174),d=(r(655),r(146),function(e,t){var r=arguments;if(null==t||!a.h.call(t,"css"))return i.createElement.apply(void 0,r);var o=r.length,n=new Array(o);n[0]=a.E,n[1]=(0,a.c)(e,t);for(var l=2;l<o;l++)n[l]=r[l];return i.createElement.apply(null,n)});o=d||(d={}),n||(n=o.JSX||(o.JSX={}));var u=(0,a.w)((function(e,t){var r=e.styles,o=(0,c.J)([r],void 0,i.useContext(a.T)),n=i.useRef();return(0,s.i)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),n.current=[r,a],function(){r.flush()}}),[t]),(0,s.i)((function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,l.sk)(t,o.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",o,r,!1)}}),[t,o.name]),null}));function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,c.J)(t)}function f(){var e=p.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_"}}}},174:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var o={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},n=r(289),a=!1,i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,n.A)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,(function(e,t,r){return m={name:t,styles:r,next:m},t}))}return 1===o[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,r){if(null==r)return"";var o=r;if(void 0!==o.__emotion_styles)return o;switch(typeof r){case"boolean":return"";case"object":var n=r;if(1===n.anim)return m={name:n.name,styles:n.styles,next:m},n.name;var i=r;if(void 0!==i.styles){var l=i.next;if(void 0!==l)for(;void 0!==l;)m={name:l.name,styles:l.styles,next:m},l=l.next;return i.styles+";"}return function(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=f(e,t,r[n])+";";else for(var i in r){var l=r[i];if("object"!=typeof l){var s=l;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":c(s)&&(o+=d(i)+":"+u(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&a)throw new Error(p);if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var m=f(e,t,l);switch(i){case"animation":case"animationName":o+=d(i)+":"+m+";";break;default:o+=i+"{"+m+"}"}}else for(var h=0;h<l.length;h++)c(l[h])&&(o+=d(i)+":"+u(i,l[h])+";")}}return o}(e,t,r);case"function":if(void 0!==e){var s=m,h=r(e);return m=s,f(e,t,h)}}var g=r;if(null==t)return g;var b=t[g];return void 0!==b?b:g}var m,h=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,n="";m=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,n+=f(r,t,a)):n+=a[0];for(var i=1;i<e.length;i++)n+=f(r,t,e[i]),o&&(n+=a[i]);h.lastIndex=0;for(var l,s="";null!==(l=h.exec(n));)s+="-"+l[1];var c=function(e){for(var t,r=0,o=0,n=e.length;n>=4;++o,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n)+s;return{name:c,styles:n,next:m}}},287:(e,t,r)=>{"use strict";r.d(t,{i:()=>i,s:()=>a});var o=r(609),n=!!o.useInsertionEffect&&o.useInsertionEffect,a=n||function(e){return e()},i=n||o.useLayoutEffect},41:(e,t,r)=>{"use strict";function o(e,t,r){var o="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(o+=r+" ")})),o}r.d(t,{Rk:()=>o,SF:()=>n,sk:()=>a});var n=function(e,t,r){var o=e.key+"-"+t.name;!1===r&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},a=function(e,t,r){n(e,t,r);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+o:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},940:(e,t,r)=>{"use strict";r.d(t,{A:()=>a}),r(609);var o=r(437),n=r(848);function a(e){const{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>{return t(null==(o=e)||0===Object.keys(o).length?r:e);var o}:t;return(0,n.jsx)(o.mL,{styles:a})}},532:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>S.A,StyledEngineProvider:()=>w,ThemeContext:()=>n.T,css:()=>b.AH,default:()=>A,internal_processStyles:()=>C,keyframes:()=>b.i7});var o=r(168),n=r(684),a=r(174),i=r(287),l=r(41),s=r(609),c=r(289),d=/^((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)-.*))$/,u=(0,c.A)((function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?u:p},m=function(e,t,r){var o;if(t){var n=t.shouldForwardProp;o=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof o&&r&&(o=e.__emotion_forwardProp),o},h=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;return(0,l.SF)(t,r,o),(0,i.s)((function(){return(0,l.sk)(t,r,o)})),null},g=function e(t,r){var i,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==r&&(i=r.label,c=r.target);var p=m(t,r,d),g=p||f(u),b=!g("as");return function(){var v=arguments,y=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)y.push.apply(y,v);else{var x=v[0];y.push(x[0]);for(var w=v.length,S=1;S<w;S++)y.push(v[S],x[S])}var A=(0,n.w)((function(e,t,r){var o=b&&e.as||u,i="",d=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=s.useContext(n.T)}"string"==typeof e.className?i=(0,l.Rk)(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var x=(0,a.J)(y.concat(d),t.registered,m);i+=t.key+"-"+x.name,void 0!==c&&(i+=" "+c);var w=b&&void 0===p?f(o):g,S={};for(var A in e)b&&"as"===A||w(A)&&(S[A]=e[A]);return S.className=i,r&&(S.ref=r),s.createElement(s.Fragment,null,s.createElement(h,{cache:t,serialized:x,isStringTag:"string"==typeof o}),s.createElement(o,S))}));return A.displayName=void 0!==i?i:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=u,A.__emotion_styles=y,A.__emotion_forwardProp=p,Object.defineProperty(A,"toString",{value:function(){return"."+c}}),A.withComponent=function(t,n){return e(t,(0,o.A)({},r,n,{shouldForwardProp:m(A,n,!0)})).apply(void 0,y)},A}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var b=r(437),v=r(655),y=r(848);let x;function w(e){const{injectFirst:t,children:r}=e;return t&&x?(0,y.jsx)(n.C,{value:x,children:r}):r}"object"==typeof document&&(x=(0,v.A)({key:"css",prepend:!0}));var S=r(940);function A(e,t){return g(e,t)}const C=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},771:(e,t,r)=>{"use strict";var o=r(994);t.X4=function(e,t){return e=l(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)},t.e$=d,t.eM=function(e,t){const r=c(e),o=c(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)},t.a=u;var n=o(r(944)),a=o(r(535));function i(e,t=0,r=1){return(0,a.default)(e,t,r)}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.default)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.default)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:o}}function s(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${r} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function c(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(function(e){e=l(e);const{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,a=o*Math.min(n,1-n),i=(e,t=(e+r/30)%12)=>n-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function u(e,t){if(e=l(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return s(e)}},461:(e,t,r)=>{"use strict";var o=r(994);t.Ay=function(e={}){const{themeId:t,defaultTheme:r=h,rootShouldForwardProp:o=m,slotShouldForwardProp:s=m}=e,d=e=>(0,c.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:r,themeId:t}))}));return d.__mui_systemSx=!0,(e,c={})=>{(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:u,slot:f,skipVariantsResolver:h,skipSx:x,overridesResolver:w=v(g(f))}=c,S=(0,a.default)(c,p),A=void 0!==h?h:f&&"Root"!==f&&"root"!==f||!1,C=x||!1;let k=m;"Root"===f||"root"===f?k=o:f?k=s:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const E=(0,i.default)(e,(0,n.default)({shouldForwardProp:k,label:void 0},S)),R=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l.isPlainObject)(e)?o=>y(e,(0,n.default)({},o,{theme:b({theme:o.theme,defaultTheme:r,themeId:t})})):e,P=(o,...a)=>{let i=R(o);const l=a?a.map(R):[];u&&w&&l.push((e=>{const o=b((0,n.default)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[u]||!o.components[u].styleOverrides)return null;const a=o.components[u].styleOverrides,i={};return Object.entries(a).forEach((([t,r])=>{i[t]=y(r,(0,n.default)({},e,{theme:o}))})),w(e,i)})),u&&!A&&l.push((e=>{var o;const a=b((0,n.default)({},e,{defaultTheme:r,themeId:t}));return y({variants:null==a||null==(o=a.components)||null==(o=o[u])?void 0:o.variants},(0,n.default)({},e,{theme:a}))})),C||l.push(d);const s=l.length-a.length;if(Array.isArray(o)&&s>0){const e=new Array(s).fill("");i=[...o,...e],i.raw=[...o.raw,...e]}const c=E(i,...l);return e.muiName&&(c.muiName=e.muiName),c};return E.withConfig&&(P.withConfig=E.withConfig),P}};var n=o(r(634)),a=o(r(893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(r(532)),l=r(239),s=(o(r(149)),o(r(320)),o(r(142))),c=o(r(857));const d=["ownerState"],u=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const h=(0,s.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return o=t,0===Object.keys(o).length?e:t[r]||t;var o}function v(e){return e?(t,r)=>r[e]:null}function y(e,t){let{ownerState:r}=t,o=(0,a.default)(t,d);const i="function"==typeof e?e((0,n.default)({ownerState:r},o)):e;if(Array.isArray(i))return i.flatMap((e=>y(e,(0,n.default)({ownerState:r},o))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.default)(i,u);return e.forEach((e=>{let a=!0;"function"==typeof e.props?a=e.props((0,n.default)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:r},o,r)):e.style))})),t}return i}},452:(e,t,r)=>{"use strict";r.d(t,{EU:()=>l,NI:()=>i,iZ:()=>c,kW:()=>d,vf:()=>s,zu:()=>n});var o=r(317);const n={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${n[e]}px)`};function i(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||a;return t.reduce(((o,n,a)=>(o[e.up(e.keys[a])]=r(t[a]),o)),{})}if("object"==typeof t){const e=o.breakpoints||a;return Object.keys(t).reduce(((o,a)=>{if(-1!==Object.keys(e.values||n).indexOf(a))o[e.up(a)]=r(t[a],a);else{const e=a;o[e]=t[e]}return o}),{})}return r(t)}function l(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e,...t){const r=l(e),n=[r,...t].reduce(((e,t)=>(0,o.A)(e,t)),{});return s(Object.keys(r),n)}function d({values:e,breakpoints:t,base:r}){const o=r||function(e,t){if("object"!=typeof e)return{};const r={},o=Object.keys(t);return Array.isArray(e)?o.forEach(((t,o)=>{o<e.length&&(r[t]=!0)})):o.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),n=Object.keys(o);if(0===n.length)return e;let a;return n.reduce(((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[a],a=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}},336:(e,t,r)=>{"use strict";function o(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const o=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[o]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>o})},94:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(587),n=r(168);const a=["values","unit","step"],i=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.A)({},e,{[t.key]:t.val})),{})};function l(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,o.A)(e,a),c=i(t),d=Object.keys(c);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-l/100}${r})`}function f(e,o){const n=d.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==n&&"number"==typeof t[d[n]]?t[d[n]]:o)-l/100}${r})`}return(0,n.A)({keys:d,values:c,up:u,down:p,between:f,only:function(e){return d.indexOf(e)+1<d.length?f(e,d[d.indexOf(e)+1]):u(e)},not:function(e){const t=d.indexOf(e);return 0===t?u(d[1]):t===d.length-1?p(d[t]):f(e,d[d.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},s)}},749:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var o=r(168),n=r(587),a=r(317),i=r(94);const l={borderRadius:4};var s=r(248),c=r(571),d=r(188),u=r(336);const p=["breakpoints","palette","spacing","shape"],f=function(e={},...t){const{breakpoints:r={},palette:f={},spacing:m,shape:h={}}=e,g=(0,n.A)(e,p),b=(0,i.A)(r),v=function(e=8){if(e.mui)return e;const t=(0,s.LX)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(m);let y=(0,a.A)({breakpoints:b,direction:"ltr",components:{},palette:(0,o.A)({mode:"light"},f),spacing:v,shape:(0,o.A)({},l,h)},g);return y.applyStyles=u.A,y=t.reduce(((e,t)=>(0,a.A)(e,t)),y),y.unstable_sxConfig=(0,o.A)({},d.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},142:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,private_createBreakpoints:()=>n.A,unstable_applyStyles:()=>a.A});var o=r(749),n=r(94),a=r(336)},620:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(317);const n=function(e,t){return t?(0,o.A)(e,t,{clone:!1}):e}},248:(e,t,r)=>{"use strict";r.d(t,{LX:()=>m,MA:()=>f,_W:()=>h,Lc:()=>b,Ms:()=>v});var o=r(452),n=r(481),a=r(620);const i={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}const[t,r]=e.split(""),o=i[t],n=l[r]||"";return Array.isArray(n)?n.map((e=>o+e)):[o+n]})(t)),e[t])}(),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...d,...u];function f(e,t,r,o){var a;const i=null!=(a=(0,n.Yn)(e,t,!1))?a:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function m(e){return f(e,"spacing",8)}function h(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,t){const r=m(e.theme);return Object.keys(e).map((n=>function(e,t,r,n){if(-1===t.indexOf(r))return null;const a=function(e,t){return r=>e.reduce(((e,o)=>(e[o]=h(t,r),e)),{})}(c(r),n),i=e[r];return(0,o.NI)(e,i,a)}(e,t,n,r))).reduce(a.A,{})}function b(e){return g(e,d)}function v(e){return g(e,u)}function y(e){return g(e,p)}b.propTypes={},b.filterProps=d,v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=p},481:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,BO:()=>i,Yn:()=>a});var o=r(967),n=r(452);function a(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function i(e,t,r,o=r){let n;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:a(e,r)||o,t&&(n=t(n,o,e)),n}const l=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;const c=e[t],d=a(e.theme,l)||{};return(0,n.NI)(e,c,(e=>{let n=i(d,s,e);return e===n&&"string"==typeof e&&(n=i(d,s,`${t}${"default"===e?"":(0,o.A)(e)}`,e)),!1===r?n:{[r]:n}}))};return c.propTypes={},c.filterProps=[t],c}},188:(e,t,r)=>{"use strict";r.d(t,{A:()=>N});var o=r(248),n=r(481),a=r(620);const i=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,o)=>t[o]?(0,a.A)(r,t[o](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var l=r(452);function s(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,n.Ay)({prop:e,themeKey:"borders",transform:t})}const d=c("border",s),u=c("borderTop",s),p=c("borderRight",s),f=c("borderBottom",s),m=c("borderLeft",s),h=c("borderColor"),g=c("borderTopColor"),b=c("borderRightColor"),v=c("borderBottomColor"),y=c("borderLeftColor"),x=c("outline",s),w=c("outlineColor"),S=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,o.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,o._W)(t,e)});return(0,l.NI)(e,e.borderRadius,r)}return null};S.propTypes={},S.filterProps=["borderRadius"],i(d,u,p,f,m,h,g,b,v,y,S,x,w);const A=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,o.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,o._W)(t,e)});return(0,l.NI)(e,e.gap,r)}return null};A.propTypes={},A.filterProps=["gap"];const C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,o.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,o._W)(t,e)});return(0,l.NI)(e,e.columnGap,r)}return null};C.propTypes={},C.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,o.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,o._W)(t,e)});return(0,l.NI)(e,e.rowGap,r)}return null};function E(e,t){return"grey"===t?t:e}function R(e){return e<=1&&0!==e?100*e+"%":e}k.propTypes={},k.filterProps=["rowGap"],i(A,C,k,(0,n.Ay)({prop:"gridColumn"}),(0,n.Ay)({prop:"gridRow"}),(0,n.Ay)({prop:"gridAutoFlow"}),(0,n.Ay)({prop:"gridAutoColumns"}),(0,n.Ay)({prop:"gridAutoRows"}),(0,n.Ay)({prop:"gridTemplateColumns"}),(0,n.Ay)({prop:"gridTemplateRows"}),(0,n.Ay)({prop:"gridTemplateAreas"}),(0,n.Ay)({prop:"gridArea"})),i((0,n.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,n.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,n.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));const P=(0,n.Ay)({prop:"width",transform:R}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,o;const n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.zu[t];return n?"px"!==(null==(o=e.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:R(t)}};return(0,l.NI)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const $=(0,n.Ay)({prop:"minWidth",transform:R}),M=(0,n.Ay)({prop:"height",transform:R}),T=(0,n.Ay)({prop:"maxHeight",transform:R}),I=(0,n.Ay)({prop:"minHeight",transform:R}),N=((0,n.Ay)({prop:"size",cssProperty:"width",transform:R}),(0,n.Ay)({prop:"size",cssProperty:"height",transform:R}),i(P,O,$,M,T,I,(0,n.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:o.Ms},pt:{style:o.Ms},pr:{style:o.Ms},pb:{style:o.Ms},pl:{style:o.Ms},px:{style:o.Ms},py:{style:o.Ms},padding:{style:o.Ms},paddingTop:{style:o.Ms},paddingRight:{style:o.Ms},paddingBottom:{style:o.Ms},paddingLeft:{style:o.Ms},paddingX:{style:o.Ms},paddingY:{style:o.Ms},paddingInline:{style:o.Ms},paddingInlineStart:{style:o.Ms},paddingInlineEnd:{style:o.Ms},paddingBlock:{style:o.Ms},paddingBlockStart:{style:o.Ms},paddingBlockEnd:{style:o.Ms},m:{style:o.Lc},mt:{style:o.Lc},mr:{style:o.Lc},mb:{style:o.Lc},ml:{style:o.Lc},mx:{style:o.Lc},my:{style:o.Lc},margin:{style:o.Lc},marginTop:{style:o.Lc},marginRight:{style:o.Lc},marginBottom:{style:o.Lc},marginLeft:{style:o.Lc},marginX:{style:o.Lc},marginY:{style:o.Lc},marginInline:{style:o.Lc},marginInlineStart:{style:o.Lc},marginInlineEnd:{style:o.Lc},marginBlock:{style:o.Lc},marginBlockStart:{style:o.Lc},marginBlockEnd:{style:o.Lc},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:A},rowGap:{style:k},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:R},maxWidth:{style:O},minWidth:{transform:R},height:{transform:R},maxHeight:{transform:R},minHeight:{transform:R},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},599:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(168),n=r(587),a=r(317),i=r(188);const l=["sx"],s=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach((t=>{n[t]?o.systemProps[t]=e[t]:o.otherProps[t]=e[t]})),o};function c(e){const{sx:t}=e,r=(0,n.A)(e,l),{systemProps:i,otherProps:c}=s(r);let d;return d=Array.isArray(t)?[i,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,a.Q)(r)?(0,o.A)({},i,r):i}:(0,o.A)({},i,t),(0,o.A)({},c,{sx:d})}},857:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,extendSxProp:()=>n.A,unstable_createStyleFunctionSx:()=>o.k,unstable_defaultSxConfig:()=>a.A});var o=r(571),n=r(599),a=r(188)},571:(e,t,r)=>{"use strict";r.d(t,{A:()=>d,k:()=>s});var o=r(967),n=r(620),a=r(481),i=r(452),l=r(188);function s(){function e(e,t,r,n){const l={[e]:t,theme:r},s=n[e];if(!s)return{[e]:t};const{cssProperty:c=e,themeKey:d,transform:u,style:p}=s;if(null==t)return null;if("typography"===d&&"inherit"===t)return{[e]:t};const f=(0,a.Yn)(r,d)||{};return p?p(l):(0,i.NI)(l,t,(t=>{let r=(0,a.BO)(f,u,t);return t===r&&"string"==typeof t&&(r=(0,a.BO)(f,u,`${e}${"default"===t?"":(0,o.A)(t)}`,t)),!1===c?r:{[c]:r}}))}return function t(r){var o;const{sx:a,theme:s={}}=r||{};if(!a)return null;const c=null!=(o=s.unstable_sxConfig)?o:l.A;function d(r){let o=r;if("function"==typeof r)o=r(s);else if("object"!=typeof r)return r;if(!o)return null;const a=(0,i.EU)(s.breakpoints),l=Object.keys(a);let d=a;return Object.keys(o).forEach((r=>{const a="function"==typeof(l=o[r])?l(s):l;var l;if(null!=a)if("object"==typeof a)if(c[r])d=(0,n.A)(d,e(r,a,s,c));else{const e=(0,i.NI)({theme:s},a,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,a)?d=(0,n.A)(d,e):d[r]=t({sx:a,theme:s})}else d=(0,n.A)(d,e(r,a,s,c))})),(0,i.vf)(l,d)}return Array.isArray(a)?a.map(d):d(a)}}const c=s();c.filterProps=["sx"];const d=c},923:(e,t,r)=>{"use strict";t.A=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(r(609)),n=r(532);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}t.A=function(e=null){const t=o.useContext(n.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(453);function n(e){if("string"!=typeof e)throw new Error((0,o.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A});var o=r(967)},535:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});const o=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},317:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,Q:()=>a});var o=r(168),n=r(609);function a(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function i(e){if(n.isValidElement(e)||!a(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=i(e[r])})),t}function l(e,t,r={clone:!0}){const s=r.clone?(0,o.A)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((o=>{n.isValidElement(t[o])?s[o]=t[o]:a(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&a(e[o])?s[o]=l(e[o],t[o],r):r.clone?s[o]=a(t[o])?i(t[o]):t[o]:s[o]=t[o]})),s}},239:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A,isPlainObject:()=>o.Q});var o=r(317)},453:(e,t,r)=>{"use strict";function o(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{A:()=>o})},944:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o.A});var o=r(453)},320:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s,getFunctionName:()=>a});var o=r(405);const n=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function a(e){const t=`${e}`.match(n);return t&&t[1]||""}function i(e,t=""){return e.displayName||e.name||a(e)||t}function l(e,t,r){const o=i(t);return e.displayName||(""!==o?`${r}(${o})`:r)}function s(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return i(e,"Component");if("object"==typeof e)switch(e.$$typeof){case o.vM:return l(e,e.render,"ForwardRef");case o.lD:return l(e,e.type,"memo");default:return}}}},146:(e,t,r)=>{"use strict";var o=r(404),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?i:l[e.$$typeof]||n}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,o){if("string"!=typeof r){if(m){var n=f(r);n&&n!==m&&e(t,n,o)}var i=d(r);u&&(i=i.concat(u(r)));for(var l=s(t),h=s(r),g=0;g<i.length;++g){var b=i[g];if(!(a[b]||o&&o[b]||h&&h[b]||l&&l[b])){var v=p(r,b);try{c(t,b,v)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,u=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case h:case s:return e;default:return t}}case n:return t}}}function S(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=n,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===d},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},404:(e,t,r)=>{"use strict";e.exports=r(72)},405:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler");Symbol.for("react.provider");Symbol.for("react.consumer"),Symbol.for("react.context");var r=Symbol.for("react.forward_ref"),o=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");t.vM=r,t.lD=o},20:(e,t,r)=>{"use strict";var o=r(609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var o,s={},c=null,d=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:n,type:e,key:c,ref:d,props:s,_owner:i.current}}t.jsx=s,t.jsxs=s},848:(e,t,r)=>{"use strict";e.exports=r(20)},609:e=>{"use strict";e.exports=window.React},634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},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},994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},168:(e,t,r)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},o.apply(null,arguments)}r.d(t,{A:()=>o})},587:(e,t,r)=>{"use strict";function o(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}r.d(t,{A:()=>o})}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=r(609),t=r.n(e);const o=window.ReactDOM;var n=r.n(o),a=r(168),i=r(587),l=r(453),s=r(317),c=r(188),d=r(571),u=r(749),p=r(771);const f={black:"#000",white:"#fff"},m={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"},h="#f3e5f5",g="#ce93d8",b="#ba68c8",v="#ab47bc",y="#9c27b0",x="#7b1fa2",w="#e57373",S="#ef5350",A="#f44336",C="#d32f2f",k="#c62828",E="#ffb74d",R="#ffa726",P="#ff9800",O="#f57c00",$="#e65100",M="#e3f2fd",T="#90caf9",I="#42a5f5",N="#1976d2",j="#1565c0",L="#4fc3f7",z="#29b6f6",F="#03a9f4",W="#0288d1",B="#01579b",D="#81c784",_="#66bb6a",H="#4caf50",V="#388e3c",q="#2e7d32",X="#1b5e20",U=["mode","contrastThreshold","tonalOffset"],K={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:f.white,default:f.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}},G={text:{primary:f.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:f.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 Y(e,t,r,o){const n=o.light||o,a=o.dark||1.5*o;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.a)(e.main,n):"dark"===t&&(e.dark=(0,p.e$)(e.main,a)))}const J=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],Z={textTransform:"uppercase"},Q='"Roboto", "Helvetica", "Arial", sans-serif';function ee(e,t){const r="function"==typeof t?t(e):t,{fontFamily:o=Q,fontSize:n=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=r,h=(0,i.A)(r,J),g=n/14,b=m||(e=>e/p*g+"rem"),v=(e,t,r,n,i)=>{return(0,a.A)({fontFamily:o,fontWeight:e,fontSize:b(t),lineHeight:r},o===Q?{letterSpacing:(l=n/t,Math.round(1e5*l)/1e5+"em")}:{},i,f);var l},y={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(d,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(d,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(d,14,1.75,.4,Z),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,Z),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.A)((0,a.A)({htmlFontSize:p,pxToRem:b,fontFamily:o,fontSize:n,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:u},y),h,{clone:!1})}function te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const re=["none",te(0,2,1,-1,0,1,1,0,0,1,3,0),te(0,3,1,-2,0,2,2,0,0,1,5,0),te(0,3,3,-2,0,3,4,0,0,1,8,0),te(0,2,4,-1,0,4,5,0,0,1,10,0),te(0,3,5,-1,0,5,8,0,0,1,14,0),te(0,3,5,-1,0,6,10,0,0,1,18,0),te(0,4,5,-2,0,7,10,1,0,2,16,1),te(0,5,5,-3,0,8,10,1,0,3,14,2),te(0,5,6,-3,0,9,12,1,0,3,16,2),te(0,6,6,-3,0,10,14,1,0,4,18,3),te(0,6,7,-4,0,11,15,1,0,4,20,3),te(0,7,8,-4,0,12,17,2,0,5,22,4),te(0,7,8,-4,0,13,19,2,0,5,24,4),te(0,7,9,-4,0,14,21,2,0,5,26,4),te(0,8,9,-5,0,15,22,2,0,6,28,5),te(0,8,10,-5,0,16,24,2,0,6,30,5),te(0,8,11,-5,0,17,26,2,0,6,32,5),te(0,9,11,-5,0,18,28,2,0,7,34,6),te(0,9,12,-6,0,19,29,2,0,7,36,6),te(0,10,13,-6,0,20,31,3,0,8,38,7),te(0,10,13,-6,0,21,33,3,0,8,40,7),te(0,10,14,-6,0,22,35,3,0,8,42,7),te(0,11,14,-7,0,23,36,3,0,9,44,8),te(0,11,15,-7,0,24,38,3,0,9,46,8)],oe=["duration","easing","delay"],ne={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)"},ae={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ie(e){return`${Math.round(e)}ms`}function le(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function se(e){const t=(0,a.A)({},ne,e.easing),r=(0,a.A)({},ae,e.duration);return(0,a.A)({getAutoHeightDuration:le,create:(e=["all"],o={})=>{const{duration:n=r.standard,easing:a=t.easeInOut,delay:l=0}=o;return(0,i.A)(o,oe),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof n?n:ie(n)} ${a} ${"string"==typeof l?l:ie(l)}`)).join(",")}},e,{easing:t,duration:r})}const ce={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},de=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const ue=function(e={},...t){const{mixins:r={},palette:o={},transitions:n={},typography:J={}}=e,Z=(0,i.A)(e,de);if(e.vars)throw new Error((0,l.A)(18));const Q=function(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2}=e,n=(0,i.A)(e,U),c=e.primary||function(e="light"){return"dark"===e?{main:T,light:M,dark:I}:{main:N,light:I,dark:j}}(t),d=e.secondary||function(e="light"){return"dark"===e?{main:g,light:h,dark:v}:{main:y,light:b,dark:x}}(t),u=e.error||function(e="light"){return"dark"===e?{main:A,light:w,dark:C}:{main:C,light:S,dark:k}}(t),J=e.info||function(e="light"){return"dark"===e?{main:z,light:L,dark:W}:{main:W,light:F,dark:B}}(t),Z=e.success||function(e="light"){return"dark"===e?{main:_,light:D,dark:V}:{main:q,light:H,dark:X}}(t),Q=e.warning||function(e="light"){return"dark"===e?{main:R,light:E,dark:O}:{main:"#ed6c02",light:P,dark:$}}(t);function ee(e){return(0,p.eM)(e,G.text.primary)>=r?G.text.primary:K.text.primary}const te=({color:e,name:t,mainShade:r=500,lightShade:n=300,darkShade:i=700})=>{if(!(e=(0,a.A)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error((0,l.A)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error((0,l.A)(12,t?` (${t})`:"",JSON.stringify(e.main)));return Y(e,"light",n,o),Y(e,"dark",i,o),e.contrastText||(e.contrastText=ee(e.main)),e},re={dark:G,light:K};return(0,s.A)((0,a.A)({common:(0,a.A)({},f),mode:t,primary:te({color:c,name:"primary"}),secondary:te({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:te({color:u,name:"error"}),warning:te({color:Q,name:"warning"}),info:te({color:J,name:"info"}),success:te({color:Z,name:"success"}),grey:m,contrastThreshold:r,getContrastText:ee,augmentColor:te,tonalOffset:o},re[t]),n)}(o),te=(0,u.A)(e);let oe=(0,s.A)(te,{mixins:(ne=te.breakpoints,ae=r,(0,a.A)({toolbar:{minHeight:56,[ne.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[ne.up("sm")]:{minHeight:64}}},ae)),palette:Q,shadows:re.slice(),typography:ee(Q,J),transitions:se(n),zIndex:(0,a.A)({},ce)});var ne,ae;return oe=(0,s.A)(oe,Z),oe=t.reduce(((e,t)=>(0,s.A)(e,t)),oe),oe.unstable_sxConfig=(0,a.A)({},c.A,null==Z?void 0:Z.unstable_sxConfig),oe.unstable_sx=function(e){return(0,d.A)({sx:e,theme:this})},oe};function pe(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=pe(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}const fe=function(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=pe(e))&&(o&&(o+=" "),o+=t);return o};var me=r(532),he=r(599),ge=r(684);const be=function(t=null){const r=e.useContext(ge.T);return r&&(o=r,0!==Object.keys(o).length)?r:t;var o},ve=(0,u.A)(),ye=function(e=ve){return be(e)};var xe=r(848);const we=["className","component"],Se=e=>e,Ae=(()=>{let e=Se;return{configure(t){e=t},generate:t=>e(t),reset(){e=Se}}})(),Ce="$$material",ke={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 Ee(e,t,r="Mui"){const o=ke[t];return o?`${r}-${o}`:`${Ae.generate(e)}-${t}`}function Re(e,t,r="Mui"){const o={};return t.forEach((t=>{o[t]=Ee(e,t,r)})),o}const Pe=Re("MuiBox",["root"]),Oe=ue(),$e=function(t={}){const{themeId:r,defaultTheme:o,defaultClassName:n="MuiBox-root",generateClassName:l}=t,s=(0,me.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(d.A);return e.forwardRef((function(e,t){const c=ye(o),d=(0,he.A)(e),{className:u,component:p="div"}=d,f=(0,i.A)(d,we);return(0,xe.jsx)(s,(0,a.A)({as:p,ref:t,className:fe(u,l?l(n):n),theme:r&&c[r]||c},f))}))}({themeId:Ce,defaultTheme:Oe,defaultClassName:Pe.root,generateClassName:Ae.generate});function Me(e,t,r=void 0){const o={};return Object.keys(e).forEach((n=>{o[n]=e[n].reduce(((e,o)=>{if(o){const n=t(o);""!==n&&e.push(n),r&&r[o]&&e.push(r[o])}return e}),[]).join(" ")})),o}const Te=r(967).A;function Ie(e,t){const r=(0,a.A)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=(0,a.A)({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const n=e[o]||{},i=t[o];r[o]={},i&&Object.keys(i)?n&&Object.keys(n)?(r[o]=(0,a.A)({},i),Object.keys(n).forEach((e=>{r[o][e]=Ie(n[e],i[e])}))):r[o]=i:r[o]=n}else void 0===r[o]&&(r[o]=e[o])})),r}const Ne=e.createContext(void 0);const je=function({value:e,children:t}){return(0,xe.jsx)(Ne.Provider,{value:e,children:t})};function Le(t){return function({props:t,name:r}){return function(e){const{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r])return o;const n=t.components[r];return n.defaultProps?Ie(n.defaultProps,o):n.styleOverrides||n.variants?o:Ie(n,o)}({props:t,name:r,theme:{components:e.useContext(Ne)}})}(t)}var ze=r(461);const Fe=ue(),We=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},Be=e=>We(e)&&"classes"!==e,De=(0,ze.Ay)({themeId:Ce,defaultTheme:Fe,rootShouldForwardProp:Be});function _e(e){return Ee("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const He=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ve=De("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Te(r.color)}`],t[`fontSize${Te(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,o,n,a,i,l,s,c,d,u,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(n=e.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),qe=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiSvgIcon"}),{children:n,className:l,color:s="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:f,viewBox:m="0 0 24 24"}=o,h=(0,i.A)(o,He),g=e.isValidElement(n)&&"svg"===n.type,b=(0,a.A)({},o,{color:s,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:g}),v={};p||(v.viewBox=m);const y=(e=>{const{color:t,fontSize:r,classes:o}=e;return Me({root:["root","inherit"!==t&&`color${Te(t)}`,`fontSize${Te(r)}`]},_e,o)})(b);return(0,xe.jsxs)(Ve,(0,a.A)({as:c,className:fe(y.root,l),focusable:"false",color:u,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:r},v,h,g&&n.props,{ownerState:b,children:[g?n.props.children:n,f?(0,xe.jsx)("title",{children:f}):null]}))}));qe.muiName="SvgIcon";const Xe=qe;function Ue(t,r){function o(e,o){return(0,xe.jsx)(Xe,(0,a.A)({"data-testid":`${r}Icon`,ref:o},e,{children:t}))}return o.muiName=Xe.muiName,e.memo(e.forwardRef(o))}const Ke=Ue((0,xe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ge(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ye(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Ge(t,e)}))}),t)}const Je=Ye,Ze="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Qe=function(t){const r=e.useRef(t);return Ze((()=>{r.current=t})),e.useRef(((...e)=>(0,r.current)(...e))).current},et=Qe,tt={},rt=[];class ot{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ot}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function nt(){const t=function(t){const r=e.useRef(tt);return r.current===tt&&(r.current=t(void 0)),r}(ot.create).current;var r;return r=t.disposeEffect,e.useEffect(r,rt),t}let at=!0,it=!1;const lt=new ot,st={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 ct(e){e.metaKey||e.altKey||e.ctrlKey||(at=!0)}function dt(){at=!1}function ut(){"hidden"===this.visibilityState&&it&&(at=!0)}const pt=function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ct,!0),t.addEventListener("mousedown",dt,!0),t.addEventListener("pointerdown",dt,!0),t.addEventListener("touchstart",dt,!0),t.addEventListener("visibilitychange",ut,!0))}),[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return at||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!st[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(it=!0,lt.start(100,(()=>{it=!1})),r.current=!1,!0)},ref:t}};function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}function mt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ft(e,t)}const ht=t().createContext(null);function gt(t,r){var o=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){o[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),o}function bt(e,t,r){return null!=r[t]?r[t]:e.props[t]}function vt(t,r,o){var n=gt(t.children),a=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var o,n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(n[s])for(o=0;o<n[s].length;o++){var c=n[s][o];l[n[s][o]]=r(c)}l[s]=r(s)}for(o=0;o<a.length;o++)l[a[o]]=r(a[o]);return l}(r,n);return Object.keys(a).forEach((function(i){var l=a[i];if((0,e.isValidElement)(l)){var s=i in r,c=i in n,d=r[i],u=(0,e.isValidElement)(d)&&!d.props.in;!c||s&&!u?c||!s||u?c&&s&&(0,e.isValidElement)(d)&&(a[i]=(0,e.cloneElement)(l,{onExited:o.bind(null,l),in:d.props.in,exit:bt(l,"exit",t),enter:bt(l,"enter",t)})):a[i]=(0,e.cloneElement)(l,{in:!1}):a[i]=(0,e.cloneElement)(l,{onExited:o.bind(null,l),in:!0,exit:bt(l,"exit",t),enter:bt(l,"enter",t)})}})),a}var yt=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xt=function(r){function o(e,t){var o,n=(o=r.call(this,e,t)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0},o}mt(o,r);var n=o.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(t,r){var o,n,a=r.children,i=r.handleExited;return{children:r.firstRender?(o=t,n=i,gt(o.children,(function(t){return(0,e.cloneElement)(t,{onExited:n.bind(null,t),in:!0,appear:bt(t,"appear",o),enter:bt(t,"enter",o),exit:bt(t,"exit",o)})}))):vt(t,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=gt(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,a.A)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,o=e.childFactory,n=(0,i.A)(e,["component","childFactory"]),a=this.state.contextValue,l=yt(this.state.children).map(o);return delete n.appear,delete n.enter,delete n.exit,null===r?t().createElement(ht.Provider,{value:a},l):t().createElement(ht.Provider,{value:a},t().createElement(r,n,l))},o}(t().Component);xt.propTypes={},xt.defaultProps={component:"div",childFactory:function(e){return e}};const wt=xt;var St=r(437);const At=Re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ct=["center","classes","className"];let kt,Et,Rt,Pt,Ot=e=>e;const $t=(0,St.i7)(kt||(kt=Ot`
    22  0% {
    33    transform: scale(0);
     
    99    opacity: 0.3;
    1010  }
    11 `)),un=(0,tn.i7)(an||(an=cn`
     11`)),Mt=(0,St.i7)(Et||(Et=Ot`
    1212  0% {
    1313    opacity: 1;
     
    1717    opacity: 0;
    1818  }
    19 `)),pn=(0,tn.i7)(ln||(ln=cn`
     19`)),Tt=(0,St.i7)(Rt||(Rt=Ot`
    2020  0% {
    2121    transform: scale(1);
     
    2929    transform: scale(1);
    3030  }
    31 `)),fn=Le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mn=Le((function(t){const{className:r,classes:o,pulsate:n=!1,rippleX:a,rippleY:i,rippleSize:l,in:s,onExited:c,timeout:d}=t,[u,p]=e.useState(!1),f=fe(r,o.ripple,o.rippleVisible,n&&o.ripplePulsate),m={width:l,height:l,top:-l/2+i,left:-l/2+a},h=fe(o.child,u&&o.childLeaving,n&&o.childPulsate);return s||u||p(!0),e.useEffect((()=>{if(!s&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,s,d]),(0,xe.jsx)("span",{className:f,style:m,children:(0,xe.jsx)("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(sn||(sn=cn`
     31`)),It=De("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nt=De((function(t){const{className:r,classes:o,pulsate:n=!1,rippleX:a,rippleY:i,rippleSize:l,in:s,onExited:c,timeout:d}=t,[u,p]=e.useState(!1),f=fe(r,o.ripple,o.rippleVisible,n&&o.ripplePulsate),m={width:l,height:l,top:-l/2+i,left:-l/2+a},h=fe(o.child,u&&o.childLeaving,n&&o.childPulsate);return s||u||p(!0),e.useEffect((()=>{if(!s&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,s,d]),(0,xe.jsx)("span",{className:f,style:m,children:(0,xe.jsx)("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Pt||(Pt=Ot`
    3232  opacity: 0;
    3333  position: absolute;
     
    7272    animation-delay: 200ms;
    7373  }
    74 `),rn.rippleVisible,dn,550,(({theme:e})=>e.transitions.easing.easeInOut),rn.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),rn.child,rn.childLeaving,un,550,(({theme:e})=>e.transitions.easing.easeInOut),rn.childPulsate,pn,(({theme:e})=>e.transitions.easing.easeInOut)),hn=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiTouchRipple"}),{center:n=!1,classes:l={},className:s}=o,c=(0,i.A)(o,on),[d,u]=e.useState([]),p=e.useRef(0),f=e.useRef(null);e.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[d]);const m=e.useRef(!1),h=zo(),g=e.useRef(null),b=e.useRef(null),v=e.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:o,rippleSize:n,cb:a}=e;u((e=>[...e,(0,xe.jsx)(mn,{classes:{ripple:fe(l.ripple,rn.ripple),rippleVisible:fe(l.rippleVisible,rn.rippleVisible),ripplePulsate:fe(l.ripplePulsate,rn.ripplePulsate),child:fe(l.child,rn.child),childLeaving:fe(l.childLeaving,rn.childLeaving),childPulsate:fe(l.childPulsate,rn.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:o,rippleSize:n},p.current)])),p.current+=1,f.current=a}),[l]),y=e.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const l=i?null:b.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(r-s.top)}if(a)u=Math.sqrt((2*s.width**2+s.height**2)/3),u%2==0&&(u+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{v({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:r})},h.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):v({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:r})}),[n,v,h]),x=e.useCallback((()=>{y({},{pulsate:!0})}),[y]),w=e.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void h.start(0,(()=>{w(e,t)}));g.current=null,u((e=>e.length>0?e.slice(1):e)),f.current=t}),[h]);return e.useImperativeHandle(r,(()=>({pulsate:x,start:y,stop:w})),[x,y,w]),(0,xe.jsx)(fn,(0,a.A)({className:fe(rn.root,l.root,s),ref:b},c,{children:(0,xe.jsx)(en,{component:null,exit:!0,children:d})}))}));function gn(e){return Re("MuiButtonBase",e)}const bn=Ee("MuiButtonBase",["root","disabled","focusVisible"]),vn=["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"],yn=Le("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"},[`&.${bn.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xn=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:l=!1,children:s,className:c,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:g,onClick:b,onContextMenu:v,onDragLeave:y,onFocus:x,onFocusVisible:w,onKeyDown:S,onKeyUp:A,onMouseDown:C,onMouseLeave:k,onMouseUp:R,onTouchEnd:E,onTouchMove:P,onTouchStart:O,tabIndex:$=0,TouchRippleProps:M,touchRippleRef:T,type:I}=o,N=(0,i.A)(o,vn),j=e.useRef(null),L=e.useRef(null),z=To(L,T),{isFocusVisibleRef:F,onFocus:B,onBlur:W,ref:D}=qo(),[_,H]=e.useState(!1);u&&_&&H(!1),e.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,q]=e.useState(!1);e.useEffect((()=>{q(!0)}),[]);const K=V&&!p&&!u;function X(e,t,r=f){return Io((o=>(t&&t(o),!r&&L.current&&L.current[e](o),!0)))}e.useEffect((()=>{_&&m&&!p&&V&&L.current.pulsate()}),[p,m,_,V]);const U=X("start",C),G=X("stop",v),Y=X("stop",y),J=X("stop",R),Z=X("stop",(e=>{_&&e.preventDefault(),k&&k(e)})),Q=X("start",O),ee=X("stop",E),te=X("stop",P),re=X("stop",(e=>{W(e),!1===F.current&&H(!1),g&&g(e)}),!1),oe=Io((e=>{j.current||(j.current=e.currentTarget),B(e),!0===F.current&&(H(!0),w&&w(e)),x&&x(e)})),ne=()=>{const e=j.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ae=e.useRef(!1),ie=Io((e=>{m&&!ae.current&&_&&L.current&&" "===e.key&&(ae.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),b&&b(e))})),le=Io((e=>{m&&" "===e.key&&L.current&&_&&!e.defaultPrevented&&(ae.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),A&&A(e),b&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&b(e)}));let se=d;"button"===se&&(N.href||N.to)&&(se=h);const ce={};"button"===se?(ce.type=void 0===I?"button":I,ce.disabled=u):(N.href||N.to||(ce.role="button"),u&&(ce["aria-disabled"]=u));const de=To(r,D,j),ue=(0,a.A)({},o,{centerRipple:l,component:d,disabled:u,disableRipple:p,disableTouchRipple:f,focusRipple:m,tabIndex:$,focusVisible:_}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:o,classes:n}=e,a=Me({root:["root",t&&"disabled",r&&"focusVisible"]},gn,n);return r&&o&&(a.root+=` ${o}`),a})(ue);return(0,xe.jsxs)(yn,(0,a.A)({as:se,className:fe(pe.root,c),ownerState:ue,onBlur:re,onClick:b,onContextMenu:G,onFocus:oe,onKeyDown:ie,onKeyUp:le,onMouseDown:U,onMouseLeave:Z,onMouseUp:J,onDragLeave:Y,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:u?-1:$,type:I},ce,N,{children:[s,K?(0,xe.jsx)(hn,(0,a.A)({ref:z,center:l},M)):null]}))}));function wn(e){return Re("MuiIconButton",e)}const Sn=Ee("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),An=["edge","children","className","color","disabled","disableFocusRipple","size"],Cn=Le(xn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${De(r.color)}`],r.edge&&t[`edge${De(r.edge)}`],t[`size${De(r.size)}`]]}})((({theme:e,ownerState:t})=>(0,a.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const o=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,a.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,a.A)({color:null==o?void 0:o.main},!t.disableRipple&&{"&:hover":(0,a.A)({},o&&{backgroundColor:e.vars?`rgba(${o.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(o.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Sn.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),kn=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiIconButton"}),{edge:o=!1,children:n,className:l,color:s="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium"}=r,p=(0,i.A)(r,An),f=(0,a.A)({},r,{edge:o,color:s,disabled:c,disableFocusRipple:d,size:u}),m=(e=>{const{classes:t,disabled:r,color:o,edge:n,size:a}=e;return Me({root:["root",r&&"disabled","default"!==o&&`color${De(o)}`,n&&`edge${De(n)}`,`size${De(a)}`]},wn,t)})(f);return(0,xe.jsx)(Cn,(0,a.A)({className:fe(m.root,l),centerRipple:!0,focusRipple:!d,disabled:c,ref:t},p,{ownerState:f,children:n}))}));function Rn(e){return Re("MuiSvgIcon",e)}Ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const En=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Pn=Le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${De(r.color)}`],t[`fontSize${De(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,o,n,a,i,l,s,c,d,u,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(n=e.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),On=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiSvgIcon"}),{children:n,className:l,color:s="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:f,viewBox:m="0 0 24 24"}=o,h=(0,i.A)(o,En),g=e.isValidElement(n)&&"svg"===n.type,b=(0,a.A)({},o,{color:s,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:g}),v={};p||(v.viewBox=m);const y=(e=>{const{color:t,fontSize:r,classes:o}=e;return Me({root:["root","inherit"!==t&&`color${De(t)}`,`fontSize${De(r)}`]},Rn,o)})(b);return(0,xe.jsxs)(Pn,(0,a.A)({as:c,className:fe(y.root,l),focusable:"false",color:u,"aria-hidden":!f||void 0,role:f?"img":void 0,ref:r},v,h,g&&n.props,{ownerState:b,children:[g?n.props.children:n,f?(0,xe.jsx)("title",{children:f}):null]}))}));On.muiName="SvgIcon";const $n=On;function Mn(t,r){function o(e,o){return(0,xe.jsx)($n,(0,a.A)({"data-testid":`${r}Icon`,ref:o},e,{children:t}))}return o.muiName=$n.muiName,e.memo(e.forwardRef(o))}const Tn=Mn((0,xe.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function In(e){return Re("MuiChip",e)}const Nn=Ee("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),jn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ln=Le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:n,clickable:a,onDelete:i,size:l,variant:s}=r;return[{[`& .${Nn.avatar}`]:t.avatar},{[`& .${Nn.avatar}`]:t[`avatar${De(l)}`]},{[`& .${Nn.avatar}`]:t[`avatarColor${De(o)}`]},{[`& .${Nn.icon}`]:t.icon},{[`& .${Nn.icon}`]:t[`icon${De(l)}`]},{[`& .${Nn.icon}`]:t[`iconColor${De(n)}`]},{[`& .${Nn.deleteIcon}`]:t.deleteIcon},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${De(l)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIconColor${De(o)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${De(s)}Color${De(o)}`]},t.root,t[`size${De(l)}`],t[`color${De(o)}`],a&&t.clickable,a&&"default"!==o&&t[`clickableColor${De(o)})`],i&&t.deletable,i&&"default"!==o&&t[`deletableColor${De(o)}`],t[s],t[`${s}${De(o)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,a.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Nn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${Nn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Nn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Nn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Nn.icon}`]:(0,a.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,a.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${Nn.deleteIcon}`]:(0,a.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,a.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,a.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Nn.avatar}`]:{marginLeft:4},[`& .${Nn.avatarSmall}`]:{marginLeft:2},[`& .${Nn.icon}`]:{marginLeft:4},[`& .${Nn.iconSmall}`]:{marginLeft:2},[`& .${Nn.deleteIcon}`]:{marginRight:5},[`& .${Nn.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].main,.7)}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Nn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),zn=Le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${De(o)}`]]}})((({ownerState:e})=>(0,a.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function Fn(e){return"Backspace"===e.key||"Delete"===e.key}const Bn=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiChip"}),{avatar:n,className:l,clickable:s,color:c="default",component:d,deleteIcon:u,disabled:p=!1,icon:f,label:m,onClick:h,onDelete:g,onKeyDown:b,onKeyUp:v,size:y="medium",variant:x="filled",tabIndex:w,skipFocusWhenDisabled:S=!1}=o,A=(0,i.A)(o,jn),C=e.useRef(null),k=To(C,r),R=e=>{e.stopPropagation(),g&&g(e)},E=!(!1===s||!h)||s,P=E||g?xn:d||"div",O=(0,a.A)({},o,{component:P,disabled:p,size:y,color:c,iconColor:e.isValidElement(f)&&f.props.color||c,onDelete:!!g,clickable:E,variant:x}),$=(e=>{const{classes:t,disabled:r,size:o,color:n,iconColor:a,onDelete:i,clickable:l,variant:s}=e;return Me({root:["root",s,r&&"disabled",`size${De(o)}`,`color${De(n)}`,l&&"clickable",l&&`clickableColor${De(n)}`,i&&"deletable",i&&`deletableColor${De(n)}`,`${s}${De(n)}`],label:["label",`label${De(o)}`],avatar:["avatar",`avatar${De(o)}`,`avatarColor${De(n)}`],icon:["icon",`icon${De(o)}`,`iconColor${De(a)}`],deleteIcon:["deleteIcon",`deleteIcon${De(o)}`,`deleteIconColor${De(n)}`,`deleteIcon${De(s)}Color${De(n)}`]},In,t)})(O),M=P===xn?(0,a.A)({component:d||"div",focusVisibleClassName:$.focusVisible},g&&{disableRipple:!0}):{};let T=null;g&&(T=u&&e.isValidElement(u)?e.cloneElement(u,{className:fe(u.props.className,$.deleteIcon),onClick:R}):(0,xe.jsx)(Tn,{className:fe($.deleteIcon),onClick:R}));let I=null;n&&e.isValidElement(n)&&(I=e.cloneElement(n,{className:fe($.avatar,n.props.className)}));let N=null;return f&&e.isValidElement(f)&&(N=e.cloneElement(f,{className:fe($.icon,f.props.className)})),(0,xe.jsxs)(Ln,(0,a.A)({as:P,className:fe($.root,l),disabled:!(!E||!p)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&Fn(e)&&e.preventDefault(),b&&b(e)},onKeyUp:e=>{e.currentTarget===e.target&&(g&&Fn(e)?g(e):"Escape"===e.key&&C.current&&C.current.blur()),v&&v(e)},ref:k,tabIndex:S&&p?-1:w,ownerState:O},M,A,{children:[I||N,(0,xe.jsx)(zn,{className:fe($.label),ownerState:O,children:m}),T]}))}));function Wn(e){return Re("MuiInputBase",e)}const Dn=Ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Hn(e){return Re("MuiInput",e)}const Vn=(0,a.A)({},Dn,Ee("MuiInput",["root","underline","input"]));function qn(e){return Re("MuiOutlinedInput",e)}const Kn=(0,a.A)({},Dn,Ee("MuiOutlinedInput",["root","notchedOutline","input"]));function Xn(e){return Re("MuiFilledInput",e)}const Un=(0,a.A)({},Dn,Ee("MuiFilledInput",["root","underline","input"])),Gn=Mn((0,xe.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Yn=Mn((0,xe.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Jn(e){return Re("MuiAutocomplete",e)}const Zn=Ee("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Qn,ea;const ta=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ra=["ref"],oa=["key"],na=["key"],aa=Le("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:o,hasClearIcon:n,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{[`& .${Zn.tag}`]:t.tag},{[`& .${Zn.tag}`]:t[`tagSize${De(l)}`]},{[`& .${Zn.inputRoot}`]:t.inputRoot},{[`& .${Zn.input}`]:t.input},{[`& .${Zn.input}`]:i&&t.inputFocused},t.root,o&&t.fullWidth,a&&t.hasPopupIcon,n&&t.hasClearIcon]}})({[`&.${Zn.focused} .${Zn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Zn.clearIndicator}`]:{visibility:"visible"}},[`& .${Zn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Zn.inputRoot}`]:{[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:30},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:56},[`& .${Zn.input}`]:{width:0,minWidth:30}},[`& .${Vn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Vn.root}.${Dn.sizeSmall}`]:{[`& .${Vn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Kn.root}`]:{padding:9,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${Zn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${Kn.root}.${Dn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Zn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Un.root}`]:{paddingTop:19,paddingLeft:8,[`.${Zn.hasPopupIcon}&, .${Zn.hasClearIcon}&`]:{paddingRight:39},[`.${Zn.hasPopupIcon}.${Zn.hasClearIcon}&`]:{paddingRight:65},[`& .${Un.input}`]:{padding:"7px 4px"},[`& .${Zn.endAdornment}`]:{right:9}},[`& .${Un.root}.${Dn.sizeSmall}`]:{paddingBottom:1,[`& .${Un.input}`]:{padding:"2.5px 4px"}},[`& .${Dn.hiddenLabel}`]:{paddingTop:8},[`& .${Un.root}.${Dn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Zn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Un.root}.${Dn.hiddenLabel}.${Dn.sizeSmall}`]:{[`& .${Zn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Zn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Zn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Zn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Zn.inputRoot}`]:{flexWrap:"wrap"}}}]}),ia=Le("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),la=Le(kn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),sa=Le(kn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),ca=Le(wo,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zn.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),da=Le(Mo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,a.A)({},e.typography.body1,{overflow:"auto"}))),ua=Le("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),pa=Le("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),fa=Le("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Zn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Zn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Zn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),ma=Le(Ro,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),ha=Le("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Zn.option}`]:{paddingLeft:24}}),ga=e.forwardRef((function(t,r){var o,n,l,s;const c=We({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:u=!1,autoSelect:p=!1,blurOnSelect:f=!1,ChipProps:m,className:h,clearIcon:g=Qn||(Qn=(0,xe.jsx)(Gn,{fontSize:"small"})),clearOnBlur:b=!c.freeSolo,clearOnEscape:v=!1,clearText:y="Clear",closeText:x="Close",componentsProps:w={},defaultValue:S=(c.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:C=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:E=!1,disablePortal:P=!1,filterSelectedOptions:O=!1,forcePopupIcon:$="auto",freeSolo:M=!1,fullWidth:T=!1,getLimitTagsText:I=e=>`+${e}`,getOptionLabel:N,groupBy:j,handleHomeEndKeys:L=!c.freeSolo,includeInputInList:z=!1,limitTags:F=-1,ListboxComponent:B="ul",ListboxProps:W,loading:D=!1,loadingText:_="Loading…",multiple:H=!1,noOptionsText:V="No options",openOnFocus:q=!1,openText:K="Open",PaperComponent:X=Mo,PopperComponent:U=wo,popupIcon:G=ea||(ea=(0,xe.jsx)(Yn,{})),readOnly:Y=!1,renderGroup:J,renderInput:Z,renderOption:Q,renderTags:ee,selectOnFocus:te=!c.freeSolo,size:re="medium",slotProps:oe={}}=c,ne=(0,i.A)(c,ta),{getRootProps:ae,getInputProps:ie,getInputLabelProps:le,getPopupIndicatorProps:se,getClearProps:ce,getTagProps:de,getListboxProps:ue,getOptionProps:pe,value:me,dirty:he,expanded:ge,id:be,popupOpen:ve,focused:ye,focusedTag:we,anchorEl:Se,setAnchorEl:Ae,inputValue:Ce,groupedOptions:ke}=Vt((0,a.A)({},c,{componentName:"Autocomplete"})),Re=!A&&!k&&he&&!Y,Ee=(!M||!0===$)&&!1!==$,{onMouseDown:Pe}=ie(),{ref:Oe}=null!=W?W:{},$e=ue(),{ref:Te}=$e,Ie=(0,i.A)($e,ra),Ne=To(Te,Oe),je=N||(e=>{var t;return null!=(t=e.label)?t:e}),Le=(0,a.A)({},c,{disablePortal:P,expanded:ge,focused:ye,fullWidth:T,getOptionLabel:je,hasClearIcon:Re,hasPopupIcon:Ee,inputFocused:-1===we,popupOpen:ve,size:re}),ze=(e=>{const{classes:t,disablePortal:r,expanded:o,focused:n,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:c,size:d}=e;return Me({root:["root",o&&"expanded",n&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${De(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},Jn,t)})(Le);let Fe;if(H&&me.length>0){const e=e=>(0,a.A)({className:ze.tag,disabled:k},de(e));Fe=ee?ee(me,e,Le):me.map(((t,r)=>{const o=e({index:r}),{key:n}=o,l=(0,i.A)(o,oa);return(0,xe.jsx)(Bn,(0,a.A)({label:je(t),size:re},l,m),n)}))}if(F>-1&&Array.isArray(Fe)){const e=Fe.length-F;!ye&&e>0&&(Fe=Fe.splice(0,F),Fe.push((0,xe.jsx)("span",{className:ze.tag,children:I(e)},Fe.length)))}const Be=J||(e=>(0,xe.jsxs)("li",{children:[(0,xe.jsx)(ma,{className:ze.groupLabel,ownerState:Le,component:"div",children:e.group}),(0,xe.jsx)(ha,{className:ze.groupUl,ownerState:Le,children:e.children})]},e.key)),_e=Q||((e,t)=>{const{key:r}=e,o=(0,i.A)(e,na);return(0,xe.jsx)("li",(0,a.A)({},o,{children:je(t)}),r)}),He=(e,t)=>{const r=pe({option:e,index:t});return _e((0,a.A)({},r,{className:ze.option}),e,{selected:r["aria-selected"],index:t,inputValue:Ce},Le)},Ve=null!=(o=oe.clearIndicator)?o:w.clearIndicator,qe=null!=(n=oe.paper)?n:w.paper,Ke=null!=(l=oe.popper)?l:w.popper,Xe=null!=(s=oe.popupIndicator)?s:w.popupIndicator;return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(aa,(0,a.A)({ref:r,className:fe(ze.root,h),ownerState:Le},ae(ne),{children:Z({id:be,disabled:k,fullWidth:!0,size:"small"===re?"small":void 0,InputLabelProps:le(),InputProps:(0,a.A)({ref:Ae,className:ze.inputRoot,startAdornment:Fe,onClick:e=>{e.target===e.currentTarget&&Pe(e)}},(Re||Ee)&&{endAdornment:(0,xe.jsxs)(ia,{className:ze.endAdornment,ownerState:Le,children:[Re?(0,xe.jsx)(la,(0,a.A)({},ce(),{"aria-label":y,title:y,ownerState:Le},Ve,{className:fe(ze.clearIndicator,null==Ve?void 0:Ve.className),children:g})):null,Ee?(0,xe.jsx)(sa,(0,a.A)({},se(),{disabled:k,"aria-label":ve?x:K,title:ve?x:K,ownerState:Le},Xe,{className:fe(ze.popupIndicator,null==Xe?void 0:Xe.className),children:G})):null]})}),inputProps:(0,a.A)({className:ze.input,disabled:k,readOnly:Y},ie())})})),Se?(0,xe.jsx)(ca,(0,a.A)({as:U,disablePortal:P,style:{width:Se?Se.clientWidth:null},ownerState:Le,role:"presentation",anchorEl:Se,open:ve},Ke,{className:fe(ze.popper,null==Ke?void 0:Ke.className),children:(0,xe.jsxs)(da,(0,a.A)({ownerState:Le,as:X},qe,{className:fe(ze.paper,null==qe?void 0:qe.className),children:[D&&0===ke.length?(0,xe.jsx)(ua,{className:ze.loading,ownerState:Le,children:_}):null,0!==ke.length||M||D?null:(0,xe.jsx)(pa,{className:ze.noOptions,ownerState:Le,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),ke.length>0?(0,xe.jsx)(fa,(0,a.A)({as:B,className:ze.listbox,ownerState:Le},Ie,W,{ref:Ne,children:ke.map(((e,t)=>j?Be({key:e.key,group:e.group,children:e.options.map(((t,r)=>He(t,e.index+r)))}):He(e,t)))})):null]}))})):null]})}));function ba(e){return Xt(e).defaultView||window}function va(e,t=166){let r;function o(...o){clearTimeout(r),r=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(r)},o}const ya=["onChange","maxRows","minRows","style","value"];function xa(e){return parseInt(e,10)||0}const wa={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Sa=e.forwardRef((function(t,r){const{onChange:o,maxRows:n,minRows:l=1,style:s,value:c}=t,d=(0,i.A)(t,ya),{current:u}=e.useRef(null!=c),p=e.useRef(null),f=Kt(r,p),m=e.useRef(null),h=e.useRef(null),g=e.useCallback((()=>{const e=p.current,r=ba(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const o=h.current;o.style.width=r.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const a=r.boxSizing,i=xa(r.paddingBottom)+xa(r.paddingTop),s=xa(r.borderBottomWidth)+xa(r.borderTopWidth),c=o.scrollHeight;o.value="x";const d=o.scrollHeight;let u=c;return l&&(u=Math.max(Number(l)*d,u)),n&&(u=Math.min(Number(n)*d,u)),u=Math.max(u,d),{outerHeightStyle:u+("border-box"===a?i+s:0),overflowing:Math.abs(u-c)<=1}}),[n,l,t.placeholder]),b=e.useCallback((()=>{const e=g();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=e.outerHeightStyle,o=p.current;m.current!==r&&(m.current=r,o.style.height=`${r}px`),o.style.overflow=e.overflowing?"hidden":""}),[g]);return Lt((()=>{const e=()=>{b()};const t=va(e),r=p.current,o=ba(r);let n;return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),o.removeEventListener("resize",t),n&&n.disconnect()}}),[g,b]),Lt((()=>{b()})),(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)("textarea",(0,a.A)({value:c,onChange:e=>{u||b(),o&&o(e)},ref:f,rows:l,style:s},d)),(0,xe.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,a.A)({},wa,s,{paddingTop:0,paddingBottom:0})})]})})),Aa=Lt;var Ca=r(940);const ka=function({styles:e,themeId:t,defaultTheme:r={}}){const o=ye(r),n="function"==typeof e?e(t&&o[t]||o):e;return(0,xe.jsx)(Ca.A,{styles:n})},Ra=function(e){return(0,xe.jsx)(ka,(0,a.A)({},e,{defaultTheme:Ie,themeId:Ce}))};function Ea(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Pa(e,t=!1){return e&&(Ea(e.value)&&""!==e.value||t&&Ea(e.defaultValue)&&""!==e.defaultValue)}const Oa=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],$a=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${De(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ma=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ta=Le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$a})((({theme:e,ownerState:t})=>(0,a.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,a.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ia=Le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ma})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,o=(0,a.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,a.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Dn.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Dn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Na=(0,xe.jsx)(Ra,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ja=e.forwardRef((function(t,r){var o;const n=We({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:c,autoFocus:d,className:u,components:p={},componentsProps:f={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:v=!1,id:y,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:A,minRows:C,multiline:k=!1,name:R,onBlur:E,onChange:P,onClick:O,onFocus:$,onKeyDown:M,onKeyUp:T,placeholder:I,readOnly:N,renderSuffix:j,rows:L,slotProps:z={},slots:F={},startAdornment:B,type:W="text",value:D}=n,_=(0,i.A)(n,Oa),H=null!=w.value?w.value:D,{current:V}=e.useRef(null!=H),q=e.useRef(),K=e.useCallback((e=>{}),[]),X=To(q,S,w.ref,K),[U,G]=e.useState(!1),Y=rt(),J=ot({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Y?Y.focused:U,e.useEffect((()=>{!Y&&h&&U&&(G(!1),E&&E())}),[Y,h,U,E]);const Z=Y&&Y.onFilled,Q=Y&&Y.onEmpty,ee=e.useCallback((e=>{Pa(e)?Z&&Z():Q&&Q()}),[Z,Q]);Aa((()=>{V&&ee({value:H})}),[H,ee,V]),e.useEffect((()=>{ee(q.current)}),[]);let te=x,re=w;k&&"input"===te&&(re=L?(0,a.A)({type:void 0,minRows:L,maxRows:L},re):(0,a.A)({type:void 0,maxRows:A,minRows:C},re),te=Sa),e.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(B))}),[Y,B]);const oe=(0,a.A)({},n,{color:J.color||"primary",disabled:J.disabled,endAdornment:b,error:J.error,focused:J.focused,formControl:Y,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:k,size:J.size,startAdornment:B,type:W}),ne=(e=>{const{classes:t,color:r,disabled:o,error:n,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:f,type:m}=e;return Me({root:["root",`color${De(r)}`,o&&"disabled",n&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${De(p)}`,d&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",u&&"readOnly"]},Wn,t)})(oe),ae=F.root||p.Root||Ta,ie=z.root||f.root||{},le=F.input||p.Input||Ia;return re=(0,a.A)({},re,null!=(o=z.input)?o:f.input),(0,xe.jsxs)(e.Fragment,{children:[!g&&Na,(0,xe.jsxs)(ae,(0,a.A)({},ie,!ro(ae)&&{ownerState:(0,a.A)({},oe,ie.ownerState)},{ref:r,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),O&&O(e)}},_,{className:fe(ne.root,ie.className,u,N&&"MuiInputBase-readOnly"),children:[B,(0,xe.jsx)(tt.Provider,{value:null,children:(0,xe.jsx)(le,(0,a.A)({ownerState:oe,"aria-invalid":J.error,"aria-describedby":s,autoComplete:c,autoFocus:d,defaultValue:m,disabled:J.disabled,id:y,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:R,placeholder:I,readOnly:N,required:J.required,rows:L,value:H,onKeyDown:M,onKeyUp:T,type:W},re,!ro(le)&&{as:te,ownerState:(0,a.A)({},oe,re.ownerState)},{ref:X,className:fe(ne.input,re.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),w.onBlur&&w.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||q.current;if(null==t)throw new Error((0,l.A)(1));ee({value:t.value})}w.onChange&&w.onChange(e,...t),P&&P(e,...t)},onFocus:e=>{J.disabled?e.stopPropagation():($&&$(e),w.onFocus&&w.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),b,j?j((0,a.A)({},J,{startAdornment:B})):null]}))]})})),La=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],za=Le(Ta,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$a(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,a.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vn.disabled}, .${Vn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vn.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Fa=Le(Ia,{name:"MuiInput",slot:"Input",overridesResolver:Ma})({}),Ba=e.forwardRef((function(e,t){var r,o,n,l;const c=We({props:e,name:"MuiInput"}),{disableUnderline:d,components:u={},componentsProps:p,fullWidth:f=!1,inputComponent:m="input",multiline:h=!1,slotProps:g,slots:b={},type:v="text"}=c,y=(0,i.A)(c,La),x=(e=>{const{classes:t,disableUnderline:r}=e,o=Me({root:["root",!r&&"underline"],input:["input"]},Hn,t);return(0,a.A)({},t,o)})(c),w={root:{ownerState:{disableUnderline:d}}},S=(null!=g?g:p)?(0,s.A)(null!=g?g:p,w):w,A=null!=(r=null!=(o=b.root)?o:u.Root)?r:za,C=null!=(n=null!=(l=b.input)?l:u.Input)?n:Fa;return(0,xe.jsx)(ja,(0,a.A)({slots:{root:A,input:C},slotProps:S,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:v},y,{classes:x}))}));Ba.muiName="Input";const Wa=Ba,Da=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_a=Le(Ta,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$a(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const o="light"===e.palette.mode,n=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,a.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Un.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Un.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Un.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Un.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Un.disabled}, .${Un.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Un.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,a.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Ha=Le(Ia,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ma})((({theme:e,ownerState:t})=>(0,a.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Va=e.forwardRef((function(e,t){var r,o,n,l;const c=We({props:e,name:"MuiFilledInput"}),{components:d={},componentsProps:u,fullWidth:p=!1,inputComponent:f="input",multiline:m=!1,slotProps:h,slots:g={},type:b="text"}=c,v=(0,i.A)(c,Da),y=(0,a.A)({},c,{fullWidth:p,inputComponent:f,multiline:m,type:b}),x=(e=>{const{classes:t,disableUnderline:r}=e,o=Me({root:["root",!r&&"underline"],input:["input"]},Xn,t);return(0,a.A)({},t,o)})(c),w={root:{ownerState:y},input:{ownerState:y}},S=(null!=h?h:u)?(0,s.A)(w,null!=h?h:u):w,A=null!=(r=null!=(o=g.root)?o:d.Root)?r:_a,C=null!=(n=null!=(l=g.input)?l:d.Input)?n:Ha;return(0,xe.jsx)(ja,(0,a.A)({slots:{root:A,input:C},componentsProps:S,fullWidth:p,inputComponent:f,multiline:m,ref:t,type:b},v,{classes:x}))}));Va.muiName="Input";const qa=Va;var Ka;const Xa=["children","classes","className","label","notched"],Ua=Le("fieldset",{shouldForwardProp:je})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ga=Le("legend",{shouldForwardProp:je})((({ownerState:e,theme:t})=>(0,a.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,a.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})))),Ya=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ja=Le(Ta,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:$a})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,a.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Kn.focused} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Kn.error} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kn.disabled} .${Kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,a.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Za=Le((function(e){const{className:t,label:r,notched:o}=e,n=(0,i.A)(e,Xa),l=null!=r&&""!==r,s=(0,a.A)({},e,{notched:o,withLabel:l});return(0,xe.jsx)(Ua,(0,a.A)({"aria-hidden":!0,className:t,ownerState:s},n,{children:(0,xe.jsx)(Ga,{ownerState:s,children:l?(0,xe.jsx)("span",{children:r}):Ka||(Ka=(0,xe.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Qa=Le(Ia,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ma})((({theme:e,ownerState:t})=>(0,a.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ei=e.forwardRef((function(t,r){var o,n,l,s,c;const d=We({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:p=!1,inputComponent:f="input",label:m,multiline:h=!1,notched:g,slots:b={},type:v="text"}=d,y=(0,i.A)(d,Ya),x=(e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qn,t);return(0,a.A)({},t,r)})(d),w=rt(),S=ot({props:d,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=(0,a.A)({},d,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:p,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:v}),C=null!=(o=null!=(n=b.root)?n:u.Root)?o:Ja,k=null!=(l=null!=(s=b.input)?s:u.Input)?l:Qa;return(0,xe.jsx)(ja,(0,a.A)({slots:{root:C,input:k},renderSuffix:t=>(0,xe.jsx)(Za,{ownerState:A,className:x.notchedOutline,label:null!=m&&""!==m&&S.required?c||(c=(0,xe.jsxs)(e.Fragment,{children:[m," ","*"]})):m,notched:void 0!==g?g:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:f,multiline:h,ref:r,type:v},y,{classes:(0,a.A)({},x,{notchedOutline:null})}))}));ei.muiName="Input";const ti=ei;function ri(e){return Re("MuiFormLabel",e)}const oi=Ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ni=["children","className","color","component","disabled","error","filled","focused","required"],ai=Le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,a.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${oi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${oi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${oi.error}`]:{color:(e.vars||e).palette.error.main}}))),ii=Le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${oi.error}`]:{color:(e.vars||e).palette.error.main}}))),li=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiFormLabel"}),{children:o,className:n,component:l="label"}=r,s=(0,i.A)(r,ni),c=ot({props:r,muiFormControl:rt(),states:["color","required","focused","disabled","error","filled"]}),d=(0,a.A)({},r,{color:c.color||"primary",component:l,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=(e=>{const{classes:t,color:r,focused:o,disabled:n,error:a,filled:i,required:l}=e;return Me({root:["root",`color${De(r)}`,n&&"disabled",a&&"error",i&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]},ri,t)})(d);return(0,xe.jsxs)(ai,(0,a.A)({as:l,ownerState:d,className:fe(u.root,n),ref:t},s,{children:[o,c.required&&(0,xe.jsxs)(ii,{ownerState:d,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function si(e){return Re("MuiInputLabel",e)}Ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ci=["disableAnimation","margin","shrink","variant","className"],di=Le(li,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${oi.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,a.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),ui=e.forwardRef((function(e,t){const r=We({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:n,className:l}=r,s=(0,i.A)(r,ci),c=rt();let d=n;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const u=ot({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p=(0,a.A)({},r,{disableAnimation:o,formControl:c,shrink:d,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=(e=>{const{classes:t,formControl:r,size:o,shrink:n,disableAnimation:i,variant:l,required:s}=e,c=Me({root:["root",r&&"formControl",!i&&"animated",n&&"shrink",o&&"normal"!==o&&`size${De(o)}`,l],asterisk:[s&&"asterisk"]},si,t);return(0,a.A)({},t,c)})(p);return(0,xe.jsx)(di,(0,a.A)({"data-shrink":d,ownerState:p,ref:t,className:fe(f.root,l)},s,{classes:f}))})),pi=function(t,r){var o,n;return e.isValidElement(t)&&-1!==r.indexOf(null!=(o=t.type.muiName)?o:null==(n=t.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)};function fi(e){return Re("MuiFormControl",e)}Ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const mi=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],hi=Le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.root,t[`margin${De(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,a.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),gi=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiFormControl"}),{children:n,className:l,color:s="primary",component:c="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:f=!1,hiddenLabel:m=!1,margin:h="none",required:g=!1,size:b="medium",variant:v="outlined"}=o,y=(0,i.A)(o,mi),x=(0,a.A)({},o,{color:s,component:c,disabled:d,error:u,fullWidth:f,hiddenLabel:m,margin:h,required:g,size:b,variant:v}),w=(e=>{const{classes:t,margin:r,fullWidth:o}=e;return Me({root:["root","none"!==r&&`margin${De(r)}`,o&&"fullWidth"]},fi,t)})(x),[S,A]=e.useState((()=>{let t=!1;return n&&e.Children.forEach(n,(e=>{if(!pi(e,["Input","Select"]))return;const r=pi(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)})),t})),[C,k]=e.useState((()=>{let t=!1;return n&&e.Children.forEach(n,(e=>{pi(e,["Input","Select"])&&(Pa(e.props,!0)||Pa(e.props.inputProps,!0))&&(t=!0)})),t})),[R,E]=e.useState(!1);d&&R&&E(!1);const P=void 0===p||d?R:p;let O;const $=e.useMemo((()=>({adornedStart:S,setAdornedStart:A,color:s,disabled:d,error:u,filled:C,focused:P,fullWidth:f,hiddenLabel:m,size:b,onBlur:()=>{E(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{E(!0)},registerEffect:O,required:g,variant:v})),[S,s,d,u,C,P,f,m,O,g,b,v]);return(0,xe.jsx)(tt.Provider,{value:$,children:(0,xe.jsx)(hi,(0,a.A)({as:c,ownerState:x,className:fe(w.root,l),ref:r},y,{children:n}))})}));function bi(e){return Re("MuiFormHelperText",e)}const vi=Ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yi;const xi=["children","className","component","disabled","error","filled","focused","margin","required","variant"],wi=Le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${De(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,a.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vi.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Si=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiFormHelperText"}),{children:o,className:n,component:l="p"}=r,s=(0,i.A)(r,xi),c=ot({props:r,muiFormControl:rt(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,a.A)({},r,{component:l,contained:"filled"===c.variant||"outlined"===c.variant,variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=(e=>{const{classes:t,contained:r,size:o,disabled:n,error:a,filled:i,focused:l,required:s}=e;return Me({root:["root",n&&"disabled",a&&"error",o&&`size${De(o)}`,r&&"contained",l&&"focused",i&&"filled",s&&"required"]},bi,t)})(d);return(0,xe.jsx)(wi,(0,a.A)({as:l,ownerState:d,className:fe(u.root,n),ref:t},s,{children:" "===o?yi||(yi=(0,xe.jsx)("span",{className:"notranslate",children:"​"})):o}))})),Ai=Xt,Ci=["value"],ki=e.createContext(),Ri=()=>{const t=e.useContext(ki);return null!=t&&t},Ei=function(e){let{value:t}=e,r=(0,i.A)(e,Ci);return(0,xe.jsx)(ki.Provider,(0,a.A)({value:null==t||t},r))},Pi=e.createContext({});function Oi(e){return Re("MuiList",e)}Ee("MuiList",["root","padding","dense","subheader"]);const $i=["children","className","component","dense","disablePadding","subheader"],Mi=Le("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})=>(0,a.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ti=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiList"}),{children:n,className:l,component:s="ul",dense:c=!1,disablePadding:d=!1,subheader:u}=o,p=(0,i.A)(o,$i),f=e.useMemo((()=>({dense:c})),[c]),m=(0,a.A)({},o,{component:s,dense:c,disablePadding:d}),h=(e=>{const{classes:t,disablePadding:r,dense:o,subheader:n}=e;return Me({root:["root",!r&&"padding",o&&"dense",n&&"subheader"]},Oi,t)})(m);return(0,xe.jsx)(Pi.Provider,{value:f,children:(0,xe.jsxs)(Mi,(0,a.A)({as:s,className:fe(h.root,l),ref:r,ownerState:m},p,{children:[u,n]}))})}));function Ii(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Ni=Ii,ji=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Li(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function zi(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Fi(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Bi(e,t,r,o,n,a){let i=!1,l=n(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!o&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Fi(l,a)&&!t)return l.focus(),!0;l=n(e,l,r)}return!1}const Wi=e.forwardRef((function(t,r){const{actions:o,autoFocus:n=!1,autoFocusItem:l=!1,children:s,className:c,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:p,variant:f="selectedMenu"}=t,m=(0,i.A)(t,ji),h=e.useRef(null),g=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Aa((()=>{n&&h.current.focus()}),[n]),e.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const r=`${Ni(Ai(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,h.current.style.width=`calc(100% + ${r})`}return h.current}})),[]);const b=To(h,r);let v=-1;e.Children.forEach(s,((t,r)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===f&&t.props.selected||-1===v)&&(v=r),v===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))):v===r&&(v+=1,v>=s.length&&(v=-1))}));const y=e.Children.map(s,((t,r)=>{if(r===v){const r={};return l&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===f&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return(0,xe.jsx)(Ti,(0,a.A)({role:"menu",ref:b,className:c,onKeyDown:e=>{const t=h.current,r=e.key,o=Ai(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Bi(t,o,u,d,Li);else if("ArrowUp"===r)e.preventDefault(),Bi(t,o,u,d,zi);else if("Home"===r)e.preventDefault(),Bi(t,null,u,d,Li);else if("End"===r)e.preventDefault(),Bi(t,null,u,d,zi);else if(1===r.length){const n=g.current,a=r.toLowerCase(),i=performance.now();n.keys.length>0&&(i-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&a!==n.keys[0]&&(n.repeating=!1)),n.lastTime=i,n.keys.push(a);const l=o&&!n.repeating&&Fi(o,n);n.previousKeyMatched&&(l||Bi(t,o,!1,d,Li,n))?e.preventDefault():n.previousKeyMatched=!1}p&&p(e)},tabIndex:n?0:-1},m,{children:y}))})),Di=va,_i=ba;var Hi="unmounted",Vi="exited",qi="entering",Ki="entered",Xi="exiting",Ui=function(e){function r(t,r){var o;o=e.call(this,t,r)||this;var n,a=r&&!r.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(n=Vi,o.appearStatus=qi):n=Ki:n=t.unmountOnExit||t.mountOnEnter?Hi:Vi,o.state={status:n},o.nextCallback=null,o}Xo(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Hi?{status:Vi}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==qi&&r!==Ki&&(t=qi):r!==qi&&r!==Ki||(t=Xi)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,o=this.props.timeout;return e=t=r=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,r=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===qi){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vi&&this.setState({status:Hi})},o.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[n().findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||r?(this.props.onEnter(i,l),this.safeSetState({status:qi},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:Ki},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:Ki},(function(){t.props.onEntered(i)}))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Xi},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Vi},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Vi},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(o){r&&(r=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n().findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===Hi)return null;var r=this.props,o=r.children,n=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,i.A)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(Uo.Provider,{value:null},"function"==typeof o?o(e,n):t().cloneElement(t().Children.only(o),n))},r}(t().Component);function Gi(){}Ui.contextType=Uo,Ui.propTypes={},Ui.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gi,onEntering:Gi,onEntered:Gi,onExit:Gi,onExiting:Gi,onExited:Gi},Ui.UNMOUNTED=Hi,Ui.EXITED=Vi,Ui.ENTERING=qi,Ui.ENTERED=Ki,Ui.EXITING=Xi;const Yi=Ui;function Ji(){const e=ye(Ie);return e[Ce]||e}const Zi=e=>e.scrollTop;function Qi(e,t){var r,o;const{timeout:n,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof n?n:n[t.mode]||0,easing:null!=(o=i.transitionTimingFunction)?o:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const el=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tl(e){return`scale(${e}, ${e**2})`}const rl={entering:{opacity:1,transform:tl(1)},entered:{opacity:1,transform:"none"}},ol="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nl=e.forwardRef((function(t,r){const{addEndListener:o,appear:n=!0,children:l,easing:s,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b="auto",TransitionComponent:v=Yi}=t,y=(0,i.A)(t,el),x=zo(),w=e.useRef(),S=Ji(),A=e.useRef(null),C=To(A,uo(l),r),k=e=>t=>{if(e){const r=A.current;void 0===t?e(r):e(r,t)}},R=k(p),E=k(((e,t)=>{Zi(e);const{duration:r,delay:o,easing:n}=Qi({style:g,timeout:b,easing:s},{mode:"enter"});let a;"auto"===b?(a=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=a):a=r,e.style.transition=[S.transitions.create("opacity",{duration:a,delay:o}),S.transitions.create("transform",{duration:ol?a:.666*a,delay:o,easing:n})].join(","),d&&d(e,t)})),P=k(u),O=k(h),$=k((e=>{const{duration:t,delay:r,easing:o}=Qi({style:g,timeout:b,easing:s},{mode:"exit"});let n;"auto"===b?(n=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=t,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:r}),S.transitions.create("transform",{duration:ol?n:.666*n,delay:ol?r:r||.333*n,easing:o})].join(","),e.style.opacity=0,e.style.transform=tl(.75),f&&f(e)})),M=k(m);return(0,xe.jsx)(v,(0,a.A)({appear:n,in:c,nodeRef:A,onEnter:E,onEntered:P,onEntering:R,onExit:$,onExited:M,onExiting:O,addEndListener:e=>{"auto"===b&&x.start(w.current||0,e),o&&o(A.current,e)},timeout:"auto"===b?null:b},y,{children:(t,r)=>e.cloneElement(l,(0,a.A)({style:(0,a.A)({opacity:0,transform:tl(.75),visibility:"exited"!==t||c?void 0:"hidden"},rl[t],g,l.props.style),ref:C},r))}))}));nl.muiSupportAuto=!0;const al=nl,il=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ll(e){const t=[],r=[];return Array.from(e.querySelectorAll(il)).forEach(((e,o)=>{const n=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==n&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===n?t.push(e):r.push({documentOrder:o,tabIndex:n,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function sl(){return!0}const cl=function(t){const{children:r,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:i=ll,isEnabled:l=sl,open:s}=t,c=e.useRef(!1),d=e.useRef(null),u=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=e.useRef(!1),h=e.useRef(null),g=Kt(uo(r),h),b=e.useRef(null);e.useEffect((()=>{s&&h.current&&(m.current=!o)}),[o,s]),e.useEffect((()=>{if(!s||!h.current)return;const e=Xt(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{a||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!h.current)return;const e=Xt(h.current),t=t=>{b.current=t,!n&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,a;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=b.current)?void 0:a.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[o,n,a,l,s,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),(0,xe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})},dl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ul={entering:{opacity:1},entered:{opacity:1}},pl=e.forwardRef((function(t,r){const o=Ji(),n={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:c,easing:d,in:u,onEnter:p,onEntered:f,onEntering:m,onExit:h,onExited:g,onExiting:b,style:v,timeout:y=n,TransitionComponent:x=Yi}=t,w=(0,i.A)(t,dl),S=e.useRef(null),A=To(S,uo(c),r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},k=C(m),R=C(((e,t)=>{Zi(e);const r=Qi({style:v,timeout:y,easing:d},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",r),e.style.transition=o.transitions.create("opacity",r),p&&p(e,t)})),E=C(f),P=C(b),O=C((e=>{const t=Qi({style:v,timeout:y,easing:d},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),h&&h(e)})),$=C(g);return(0,xe.jsx)(x,(0,a.A)({appear:s,in:u,nodeRef:S,onEnter:R,onEntered:E,onEntering:k,onExit:O,onExited:$,onExiting:P,addEndListener:e=>{l&&l(S.current,e)},timeout:y},w,{children:(t,r)=>e.cloneElement(c,(0,a.A)({style:(0,a.A)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},ul[t],v,c.props.style),ref:A},r))}))}));function fl(e){return Re("MuiBackdrop",e)}Ee("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hl=Le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,a.A)({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"}))),gl=e.forwardRef((function(e,t){var r,o,n;const l=We({props:e,name:"MuiBackdrop"}),{children:s,className:c,component:d="div",components:u={},componentsProps:p={},invisible:f=!1,open:m,slotProps:h={},slots:g={},TransitionComponent:b=pl,transitionDuration:v}=l,y=(0,i.A)(l,ml),x=(0,a.A)({},l,{component:d,invisible:f}),w=(e=>{const{classes:t,invisible:r}=e;return Me({root:["root",r&&"invisible"]},fl,t)})(x),S=null!=(r=h.root)?r:p.root;return(0,xe.jsx)(b,(0,a.A)({in:m,timeout:v},y,{children:(0,xe.jsx)(hl,(0,a.A)({"aria-hidden":!0},S,{as:null!=(o=null!=(n=g.root)?n:u.Root)?o:d,className:fe(w.root,c,null==S?void 0:S.className),ownerState:(0,a.A)({},x,null==S?void 0:S.ownerState),classes:w,ref:t,children:s}))}))}));function bl(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function vl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yl(e){return parseInt(ba(e).getComputedStyle(e).paddingRight,10)||0}function xl(e,t,r,o,n){const a=[t,r,...o];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&vl(e,n)}))}function wl(e,t){let r=-1;return e.some(((e,o)=>!!t(e)&&(r=o,!0))),r}const Sl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&vl(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);xl(t,e.mount,e.modalRef,o,!0);const n=wl(this.containers,(e=>e.container===t));return-1!==n?(this.containers[n].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),r)}mount(e,t){const r=wl(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];o.restore||(o.restore=function(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=Xt(e);return t.body===e?ba(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Ii(Xt(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${yl(o)+e}px`;const t=Xt(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yl(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=Xt(o).body;else{const t=o.parentElement,r=ba(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:o}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(o,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const o=wl(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[o];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(r,1),0===n.modals.length)n.restore&&n.restore(),e.modalRef&&vl(e.modalRef,t),xl(n.container,e.mount,e.modalRef,n.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=n.modals[n.modals.length-1];e.modalRef&&vl(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Al(e){return Re("MuiModal",e)}Ee("MuiModal",["root","hidden","backdrop"]);const Cl=["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"],kl=Le("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})=>(0,a.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Rl=Le(gl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),El=e.forwardRef((function(t,r){var o,n,l,s,c,d;const u=We({name:"MuiModal",props:t}),{BackdropComponent:p=Rl,BackdropProps:f,className:m,closeAfterTransition:h=!1,children:g,container:b,component:v,components:y={},componentsProps:x={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:A=!1,disablePortal:C=!1,disableRestoreFocus:k=!1,disableScrollLock:R=!1,hideBackdrop:E=!1,keepMounted:P=!1,onBackdropClick:O,open:$,slotProps:M,slots:T}=u,I=(0,i.A)(u,Cl),N=(0,a.A)({},u,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:A,disablePortal:C,disableRestoreFocus:k,disableScrollLock:R,hideBackdrop:E,keepMounted:P}),{getRootProps:j,getBackdropProps:L,getTransitionProps:z,portalRef:F,isTopModal:B,exited:W,hasTransition:D}=function(t){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:i=Sl,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:u,open:p,rootRef:f}=t,m=e.useRef({}),h=e.useRef(null),g=e.useRef(null),b=Kt(g,f),[v,y]=e.useState(!p),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(d);let w=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(w=!1);const S=()=>(m.current.modalRef=g.current,m.current.mount=h.current,m.current),A=()=>{i.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},C=zt((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||Xt(h.current).body;i.add(S(),e),g.current&&A()})),k=e.useCallback((()=>i.isTopModal(S())),[i]),R=zt((e=>{h.current=e,e&&(p&&k()?A():g.current&&vl(g.current,w))})),E=e.useCallback((()=>{i.remove(S(),w)}),[w,i]);e.useEffect((()=>()=>{E()}),[E]),e.useEffect((()=>{p?C():x&&l||E()}),[p,E,x,l,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(o||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},O=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(e={})=>{const r=no(t);delete r.onTransitionEnter,delete r.onTransitionExited;const o=(0,a.A)({},r,e);return(0,a.A)({role:"presentation"},o,{onKeyDown:P(o),ref:b})},getBackdropProps:(e={})=>{const t=e;return(0,a.A)({"aria-hidden":!0},t,{onClick:O(t),open:p})},getTransitionProps:()=>({onEnter:bl((()=>{y(!1),s&&s()}),null==d?void 0:d.props.onEnter),onExited:bl((()=>{y(!0),c&&c(),l&&E()}),null==d?void 0:d.props.onExited)}),rootRef:b,portalRef:R,isTopModal:k,exited:v,hasTransition:x}}((0,a.A)({},N,{rootRef:r})),_=(0,a.A)({},N,{exited:W}),H=(e=>{const{open:t,exited:r,classes:o}=e;return Me({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Al,o)})(_),V={};if(void 0===g.props.tabIndex&&(V.tabIndex="-1"),D){const{onEnter:e,onExited:t}=z();V.onEnter=e,V.onExited=t}const q=null!=(o=null!=(n=null==T?void 0:T.root)?n:y.Root)?o:kl,K=null!=(l=null!=(s=null==T?void 0:T.backdrop)?s:y.Backdrop)?l:p,X=null!=(c=null==M?void 0:M.root)?c:x.root,U=null!=(d=null==M?void 0:M.backdrop)?d:x.backdrop,G=co({elementType:q,externalSlotProps:X,externalForwardedProps:I,getSlotProps:j,additionalProps:{ref:r,as:v},ownerState:_,className:fe(m,null==X?void 0:X.className,null==H?void 0:H.root,!_.open&&_.exited&&(null==H?void 0:H.hidden))}),Y=co({elementType:K,externalSlotProps:U,additionalProps:f,getSlotProps:e=>L((0,a.A)({},e,{onClick:t=>{O&&O(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fe(null==U?void 0:U.className,null==f?void 0:f.className,null==H?void 0:H.backdrop),ownerState:_});return P||$||D&&!W?(0,xe.jsx)(po,{ref:F,container:b,disablePortal:C,children:(0,xe.jsxs)(q,(0,a.A)({},G,{children:[!E&&p?(0,xe.jsx)(K,(0,a.A)({},Y)):null,(0,xe.jsx)(cl,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:k,isEnabled:B,open:$,children:e.cloneElement(g,V)})]}))}):null}));function Pl(e){return Re("MuiPopover",e)}Ee("MuiPopover",["root","paper"]);const Ol=["onEntering"],$l=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ml=["slotProps"];function Tl(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Il(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Nl(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function jl(e){return"function"==typeof e?e():e}const Ll=Le(El,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zl=Le(Mo,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Fl=e.forwardRef((function(t,r){var o,n,l;const s=We({props:t,name:"MuiPopover"}),{action:c,anchorEl:d,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:f="anchorEl",children:m,className:h,container:g,elevation:b=8,marginThreshold:v=16,open:y,PaperProps:x={},slots:w,slotProps:S,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:C=al,transitionDuration:k="auto",TransitionProps:{onEntering:R}={},disableScrollLock:E=!1}=s,P=(0,i.A)(s.TransitionProps,Ol),O=(0,i.A)(s,$l),$=null!=(o=null==S?void 0:S.paper)?o:x,M=e.useRef(),T=To(M,$.ref),I=(0,a.A)({},s,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:v,externalPaperSlotProps:$,transformOrigin:A,TransitionComponent:C,transitionDuration:k,TransitionProps:P}),N=(e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},Pl,t)})(I),j=e.useCallback((()=>{if("anchorPosition"===f)return p;const e=jl(d),t=(e&&1===e.nodeType?e:Ai(M.current).body).getBoundingClientRect();return{top:t.top+Tl(t,u.vertical),left:t.left+Il(t,u.horizontal)}}),[d,u.horizontal,u.vertical,p,f]),L=e.useCallback((e=>({vertical:Tl(e,A.vertical),horizontal:Il(e,A.horizontal)})),[A.horizontal,A.vertical]),z=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===f)return{top:null,left:null,transformOrigin:Nl(r)};const o=j();let n=o.top-r.vertical,a=o.left-r.horizontal;const i=n+t.height,l=a+t.width,s=_i(jl(d)),c=s.innerHeight-v,u=s.innerWidth-v;if(null!==v&&n<v){const e=n-v;n-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;n-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(l>u){const e=l-u;a-=e,r.horizontal+=e}return{top:`${Math.round(n)}px`,left:`${Math.round(a)}px`,transformOrigin:Nl(r)}}),[d,f,j,L,v]),[F,B]=e.useState(y),W=e.useCallback((()=>{const e=M.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,B(!0)}),[z]);e.useEffect((()=>(E&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W))),[d,E,W]),e.useEffect((()=>{y&&W()})),e.useImperativeHandle(c,(()=>y?{updatePosition:()=>{W()}}:null),[y,W]),e.useEffect((()=>{if(!y)return;const e=Di((()=>{W()})),t=_i(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,y,W]);let D=k;"auto"!==k||C.muiSupportAuto||(D=void 0);const _=g||(d?Ai(jl(d)).body:void 0),H=null!=(n=null==w?void 0:w.root)?n:Ll,V=null!=(l=null==w?void 0:w.paper)?l:zl,q=co({elementType:V,externalSlotProps:(0,a.A)({},$,{style:F?$.style:(0,a.A)({},$.style,{opacity:0})}),additionalProps:{elevation:b,ref:T},ownerState:I,className:fe(N.paper,null==$?void 0:$.className)}),K=co({elementType:H,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:O,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:_,open:y},ownerState:I,className:fe(N.root,h)}),{slotProps:X}=K,U=(0,i.A)(K,Ml);return(0,xe.jsx)(H,(0,a.A)({},U,!ro(H)&&{slotProps:X,disableScrollLock:E},{children:(0,xe.jsx)(C,(0,a.A)({appear:!0,in:y,onEntering:(e,t)=>{R&&R(e,t),W()},onExited:()=>{B(!1)},timeout:D},P,{children:(0,xe.jsx)(V,(0,a.A)({},q,{children:m}))}))}))}));function Bl(e){return Re("MuiMenu",e)}Ee("MuiMenu",["root","paper","list"]);const Wl=["onEntering"],Dl=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],_l={vertical:"top",horizontal:"right"},Hl={vertical:"top",horizontal:"left"},Vl=Le(Fl,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ql=Le(zl,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kl=Le(Wi,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xl=e.forwardRef((function(t,r){var o,n;const l=We({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:d,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:m,PaperProps:h={},PopoverClasses:g,transitionDuration:b="auto",TransitionProps:{onEntering:v}={},variant:y="selectedMenu",slots:x={},slotProps:w={}}=l,S=(0,i.A)(l.TransitionProps,Wl),A=(0,i.A)(l,Dl),C=Ri(),k=(0,a.A)({},l,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:p,onEntering:v,PaperProps:h,transitionDuration:b,TransitionProps:S,variant:y}),R=(e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},Bl,t)})(k),E=s&&!u&&m,P=e.useRef(null);let O=-1;e.Children.map(c,((t,r)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===O)&&(O=r))}));const $=null!=(o=x.paper)?o:ql,M=null!=(n=w.paper)?n:h,T=co({elementType:x.root,externalSlotProps:w.root,ownerState:k,className:[R.root,d]}),I=co({elementType:$,externalSlotProps:M,ownerState:k,className:R.paper});return(0,xe.jsx)(Vl,(0,a.A)({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?_l:Hl,slots:{paper:$,root:x.root},slotProps:{root:T,paper:I},open:m,ref:r,transitionDuration:b,TransitionProps:(0,a.A)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),v&&v(e,t)}},S),ownerState:k},A,{classes:g,children:(0,xe.jsx)(Kl,(0,a.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:s&&(-1===O||u),autoFocusItem:E,variant:y},p,{className:fe(R.list,p.className),children:c}))}))}));function Ul(e){return Re("MuiNativeSelect",e)}const Gl=Ee("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Yl=["className","disabled","error","IconComponent","inputRef","variant"],Jl=({ownerState:e,theme:t})=>(0,a.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,a.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Gl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Zl=Le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:je,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Gl.multiple}`]:t.multiple}]}})(Jl),Ql=({ownerState:e,theme:t})=>(0,a.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gl.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),es=Le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${De(r.variant)}`],r.open&&t.iconOpen]}})(Ql),ts=e.forwardRef((function(t,r){const{className:o,disabled:n,error:l,IconComponent:s,inputRef:c,variant:d="standard"}=t,u=(0,i.A)(t,Yl),p=(0,a.A)({},t,{disabled:n,variant:d,error:l}),f=(e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:a,error:i}=e;return Me({select:["select",r,o&&"disabled",n&&"multiple",i&&"error"],icon:["icon",`icon${De(r)}`,a&&"iconOpen",o&&"disabled"]},Ul,t)})(p);return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(Zl,(0,a.A)({ownerState:p,className:fe(f.select,o),disabled:n,ref:c||r},u)),t.multiple?null:(0,xe.jsx)(es,{as:s,ownerState:p,className:f.icon})]})})),rs=jt;function os(e){return Re("MuiSelect",e)}const ns=Ee("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var as;const is=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ls=Le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ns.select}`]:t.select},{[`&.${ns.select}`]:t[r.variant]},{[`&.${ns.error}`]:t.error},{[`&.${ns.multiple}`]:t.multiple}]}})(Jl,{[`&.${ns.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ss=Le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${De(r.variant)}`],r.open&&t.iconOpen]}})(Ql),cs=Le("input",{shouldForwardProp:e=>Ne(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ds(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function us(e){return null==e||"string"==typeof e&&!e.trim()}const ps=e.forwardRef((function(t,r){var o;const{"aria-describedby":n,"aria-label":s,autoFocus:c,autoWidth:d,children:u,className:p,defaultOpen:f,defaultValue:m,disabled:h,displayEmpty:g,error:b=!1,IconComponent:v,inputRef:y,labelId:x,MenuProps:w={},multiple:S,name:A,onBlur:C,onChange:k,onClose:R,onFocus:E,onOpen:P,open:O,readOnly:$,renderValue:M,SelectDisplayProps:T={},tabIndex:I,value:N,variant:j="standard"}=t,L=(0,i.A)(t,is),[z,F]=rs({controlled:N,default:m,name:"Select"}),[B,W]=rs({controlled:O,default:f,name:"Select"}),D=e.useRef(null),_=e.useRef(null),[H,V]=e.useState(null),{current:q}=e.useRef(null!=O),[K,X]=e.useState(),U=To(r,y),G=e.useCallback((e=>{_.current=e,e&&V(e)}),[]),Y=null==H?void 0:H.parentNode;e.useImperativeHandle(U,(()=>({focus:()=>{_.current.focus()},node:D.current,value:z})),[z]),e.useEffect((()=>{f&&B&&H&&!q&&(X(d?null:Y.clientWidth),_.current.focus())}),[H,d]),e.useEffect((()=>{c&&_.current.focus()}),[c]),e.useEffect((()=>{if(!x)return;const e=Ai(_.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&_.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[x]);const J=(e,t)=>{e?P&&P(t):R&&R(t),q||(X(d?null:Y.clientWidth),W(e))},Z=e.Children.toArray(u),Q=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(S){r=Array.isArray(z)?z.slice():[];const t=z.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),z!==r&&(F(r),k)){const o=t.nativeEvent||t,n=new o.constructor(o.type,o);Object.defineProperty(n,"target",{writable:!0,value:{value:r,name:A}}),k(n,e)}S||J(!1,t)}},ee=null!==H&&B;let te,re;delete L["aria-invalid"];const oe=[];let ne=!1,ae=!1;(Pa({value:z})||g)&&(M?te=M(z):ne=!0);const ie=Z.map((t=>{if(!e.isValidElement(t))return null;let r;if(S){if(!Array.isArray(z))throw new Error((0,l.A)(2));r=z.some((e=>ds(e,t.props.value))),r&&ne&&oe.push(t.props.children)}else r=ds(z,t.props.value),r&&ne&&(re=t.props.children);return r&&(ae=!0),e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:Q(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})}));ne&&(te=S?0===oe.length?null:oe.reduce(((e,t,r)=>(e.push(t),r<oe.length-1&&e.push(", "),e)),[]):re);let le,se=K;!d&&q&&H&&(se=Y.clientWidth),le=void 0!==I?I:h?null:0;const ce=T.id||(A?`mui-component-select-${A}`:void 0),de=(0,a.A)({},t,{variant:j,value:z,open:ee,error:b}),ue=(e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:a,error:i}=e;return Me({select:["select",r,o&&"disabled",n&&"multiple",i&&"error"],icon:["icon",`icon${De(r)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},os,t)})(de),pe=(0,a.A)({},w.PaperProps,null==(o=w.slotProps)?void 0:o.paper),me=Nt();return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(ls,(0,a.A)({ref:G,tabIndex:le,role:"combobox","aria-controls":me,"aria-disabled":h?"true":void 0,"aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[x,ce].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{$||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))},onMouseDown:h||$?null:e=>{0===e.button&&(e.preventDefault(),_.current.focus(),J(!0,e))},onBlur:e=>{!ee&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:A}}),C(e))},onFocus:E},T,{ownerState:de,className:fe(T.className,ue.select,p),id:ce,children:us(te)?as||(as=(0,xe.jsx)("span",{className:"notranslate",children:"​"})):te})),(0,xe.jsx)(cs,(0,a.A)({"aria-invalid":b,value:Array.isArray(z)?z.join(","):z,name:A,ref:D,"aria-hidden":!0,onChange:e=>{const t=Z.find((t=>t.props.value===e.target.value));void 0!==t&&(F(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:h,className:ue.nativeInput,autoFocus:c,ownerState:de},L)),(0,xe.jsx)(ss,{as:v,className:ue.icon,ownerState:de}),(0,xe.jsx)(Xl,(0,a.A)({id:`menu-${A||""}`,anchorEl:Y,open:ee,onClose:e=>{J(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:(0,a.A)({"aria-labelledby":x,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:me},w.MenuListProps),slotProps:(0,a.A)({},w.slotProps,{paper:(0,a.A)({},pe,{style:(0,a.A)({minWidth:se},null!=pe?pe.style:null)})}),children:ie}))]})})),fs=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ms=["root"],hs={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>je(e)&&"variant"!==e,slot:"Root"},gs=Le(Wa,hs)(""),bs=Le(ti,hs)(""),vs=Le(qa,hs)(""),ys=e.forwardRef((function(t,r){const o=We({name:"MuiSelect",props:t}),{autoWidth:n=!1,children:l,classes:c={},className:d,defaultOpen:u=!1,displayEmpty:p=!1,IconComponent:f=Yn,id:m,input:h,inputProps:g,label:b,labelId:v,MenuProps:y,multiple:x=!1,native:w=!1,onClose:S,onOpen:A,open:C,renderValue:k,SelectDisplayProps:R,variant:E="outlined"}=o,P=(0,i.A)(o,fs),O=w?ts:ps,$=ot({props:o,muiFormControl:rt(),states:["variant","error"]}),M=$.variant||E,T=(0,a.A)({},o,{variant:M,classes:c}),I=(e=>{const{classes:t}=e;return t})(T),N=(0,i.A)(I,ms),j=h||{standard:(0,xe.jsx)(gs,{ownerState:T}),outlined:(0,xe.jsx)(bs,{label:b,ownerState:T}),filled:(0,xe.jsx)(vs,{ownerState:T})}[M],L=To(r,uo(j));return(0,xe.jsx)(e.Fragment,{children:e.cloneElement(j,(0,a.A)({inputComponent:O,inputProps:(0,a.A)({children:l,error:$.error,IconComponent:f,variant:M,type:void 0,multiple:x},w?{id:m}:{autoWidth:n,defaultOpen:u,displayEmpty:p,labelId:v,MenuProps:y,onClose:S,onOpen:A,open:C,renderValue:k,SelectDisplayProps:(0,a.A)({id:m},R)},g,{classes:g?(0,s.A)(N,g.classes):N},h?h.props.inputProps:{})},(x&&w||p)&&"outlined"===M?{notched:!0}:{},{ref:L,className:fe(j.props.className,d,I.root)},!h&&{variant:M},P))})}));ys.muiName="Select";const xs=ys;function ws(e){return Re("MuiTextField",e)}Ee("MuiTextField",["root"]);const Ss=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],As={standard:Wa,filled:qa,outlined:ti},Cs=Le(gi,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ks=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:n=!1,children:l,className:s,color:c="primary",defaultValue:d,disabled:u=!1,error:p=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:h,id:g,InputLabelProps:b,inputProps:v,InputProps:y,inputRef:x,label:w,maxRows:S,minRows:A,multiline:C=!1,name:k,onBlur:R,onChange:E,onFocus:P,placeholder:O,required:$=!1,rows:M,select:T=!1,SelectProps:I,type:N,value:j,variant:L="outlined"}=r,z=(0,i.A)(r,Ss),F=(0,a.A)({},r,{autoFocus:n,color:c,disabled:u,error:p,fullWidth:m,multiline:C,required:$,select:T,variant:L}),B=(e=>{const{classes:t}=e;return Me({root:["root"]},ws,t)})(F),W={};"outlined"===L&&(b&&void 0!==b.shrink&&(W.notched=b.shrink),W.label=w),T&&(I&&I.native||(W.id=void 0),W["aria-describedby"]=void 0);const D=Nt(g),_=h&&D?`${D}-helper-text`:void 0,H=w&&D?`${D}-label`:void 0,V=As[L],q=(0,xe.jsx)(V,(0,a.A)({"aria-describedby":_,autoComplete:o,autoFocus:n,defaultValue:d,fullWidth:m,multiline:C,name:k,rows:M,maxRows:S,minRows:A,type:N,value:j,id:D,inputRef:x,onBlur:R,onChange:E,onFocus:P,placeholder:O,inputProps:v},W,y));return(0,xe.jsxs)(Cs,(0,a.A)({className:fe(B.root,s),disabled:u,error:p,fullWidth:m,ref:t,required:$,color:c,variant:L,ownerState:F},z,{children:[null!=w&&""!==w&&(0,xe.jsx)(ui,(0,a.A)({htmlFor:D,id:H},b,{children:w})),T?(0,xe.jsx)(xs,(0,a.A)({"aria-describedby":_,id:D,labelId:H,value:j,input:q},I,{children:l})):q,h&&(0,xe.jsx)(Si,(0,a.A)({id:_},f,{children:h}))]}))}));function Rs(e){return Re("MuiButton",e)}const Es=Ee("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"]),Ps=e.createContext({}),Os=e.createContext(void 0),$s=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ms=e=>(0,a.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ts=Le(xn,{shouldForwardProp:e=>je(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color)}`],t[`size${De(r.size)}`],t[`${r.variant}Size${De(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,o;const n="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,a.A)({},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":(0,a.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{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]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,a.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Es.focusVisible}`]:(0,a.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Es.disabled}`]:(0,a.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,p.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(o=e.palette).getContrastText)?void 0:r.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:n,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Es.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Es.disabled}`]:{boxShadow:"none"}})),Is=Le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${De(r.size)}`]]}})((({ownerState:e})=>(0,a.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ms(e)))),Ns=Le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${De(r.size)}`]]}})((({ownerState:e})=>(0,a.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ms(e)))),js=e.forwardRef((function(t,r){const o=e.useContext(Ps),n=e.useContext(Os),l=We({props:ze(o,t),name:"MuiButton"}),{children:s,color:c="primary",component:d="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:h,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:y,type:x,variant:w="text"}=l,S=(0,i.A)(l,$s),A=(0,a.A)({},l,{color:c,component:d,disabled:p,disableElevation:f,disableFocusRipple:m,fullWidth:b,size:v,type:x,variant:w}),C=(e=>{const{color:t,disableElevation:r,fullWidth:o,size:n,variant:i,classes:l}=e,s=Me({root:["root",i,`${i}${De(t)}`,`size${De(n)}`,`${i}Size${De(n)}`,`color${De(t)}`,r&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${De(n)}`],endIcon:["icon","endIcon",`iconSize${De(n)}`]},Rs,l);return(0,a.A)({},l,s)})(A),k=y&&(0,xe.jsx)(Is,{className:C.startIcon,ownerState:A,children:y}),R=h&&(0,xe.jsx)(Ns,{className:C.endIcon,ownerState:A,children:h}),E=n||"";return(0,xe.jsxs)(Ts,(0,a.A)({ownerState:A,className:fe(o.className,C.root,u,E),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:fe(C.focusVisible,g),ref:r,type:x},S,{classes:C,children:[k,s,R]}))})),Ls=e.createContext(null);function zs(){return e.useContext(Ls)}const Fs="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Bs=function(t){const{children:r,theme:o}=t,n=zs(),i=e.useMemo((()=>{const e=null===n?o:function(e,t){return"function"==typeof t?t(e):(0,a.A)({},e,t)}(n,o);return null!=e&&(e[Fs]=null!==n),e}),[o,n]);return(0,xe.jsx)(Ls.Provider,{value:i,children:r})},Ws={};function Ds(t,r,o,n=!1){return e.useMemo((()=>{const e=t&&r[t]||r;if("function"==typeof o){const i=o(e),l=t?(0,a.A)({},r,{[t]:i}):i;return n?()=>l:l}return t?(0,a.A)({},r,{[t]:o}):(0,a.A)({},r,o)}),[t,r,o,n])}const _s=function(e){const{children:t,theme:r,themeId:o}=e,n=be(Ws),a=zs()||Ws,i=Ds(o,n,r),l=Ds(o,a,r,!0),s="rtl"===i.direction;return(0,xe.jsx)(Bs,{theme:l,children:(0,xe.jsx)(ge.T.Provider,{value:i,children:(0,xe.jsx)(Ei,{value:s,children:(0,xe.jsx)(Be,{value:null==i?void 0:i.components,children:t})})})})},Hs=["theme"];function Vs(e){let{theme:t}=e,r=(0,i.A)(e,Hs);const o=t[Ce];return(0,xe.jsx)(_s,(0,a.A)({},r,{themeId:o?Ce:void 0,theme:o||t}))}let qs;function Ks(){if(qs)return qs;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),qs="reverse",e.scrollLeft>0?qs="default":(e.scrollLeft=1,0===e.scrollLeft&&(qs="negative")),document.body.removeChild(e),qs}function Xs(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Ks()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Us(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Gs=["onChange"],Ys={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},Js=Mn((0,xe.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Zs=Mn((0,xe.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Qs(e){return Re("MuiTabScrollButton",e)}const ec=Ee("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),tc=["className","slots","slotProps","direction","orientation","disabled"],rc=Le(xn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>(0,a.A)({width:40,flexShrink:0,opacity:.8,[`&.${ec.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),oc=e.forwardRef((function(e,t){var r,o;const n=We({props:e,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d}=n,u=(0,i.A)(n,tc),p=Ri(),f=(0,a.A)({isRtl:p},n),m=(e=>{const{classes:t,orientation:r,disabled:o}=e;return Me({root:["root",r,o&&"disabled"]},Qs,t)})(f),h=null!=(r=s.StartScrollButtonIcon)?r:Js,g=null!=(o=s.EndScrollButtonIcon)?o:Zs,b=co({elementType:h,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=co({elementType:g,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return(0,xe.jsx)(rc,(0,a.A)({component:"div",className:fe(m.root,l),ref:t,role:null,ownerState:f,tabIndex:null},u,{children:"left"===d?(0,xe.jsx)(h,(0,a.A)({},b)):(0,xe.jsx)(g,(0,a.A)({},v))}))}));function nc(e){return Re("MuiTabs",e)}const ac=Ee("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ic=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],lc=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,sc=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,cc=(e,t,r)=>{let o=!1,n=r(e,t);for(;n;){if(n===e.firstChild){if(o)return;o=!0}const t=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!t)return void n.focus();n=r(e,n)}},dc=Le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ac.scrollButtons}`]:t.scrollButtons},{[`& .${ac.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,a.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${ac.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),uc=Le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,a.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),pc=Le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>(0,a.A)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),fc=Le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,a.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),mc=Le((function(t){const{onChange:r}=t,o=(0,i.A)(t,Gs),n=e.useRef(),l=e.useRef(null),s=()=>{n.current=l.current.offsetHeight-l.current.clientHeight};return Aa((()=>{const e=Di((()=>{const e=n.current;s(),e!==n.current&&r(n.current)})),t=_i(l.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r]),e.useEffect((()=>{s(),r(n.current)}),[r]),(0,xe.jsx)("div",(0,a.A)({style:Ys},o,{ref:l}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),hc={},gc=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiTabs"}),n=Ji(),l=Ri(),{"aria-label":s,"aria-labelledby":c,action:d,centered:u=!1,children:p,className:f,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:b,orientation:v="horizontal",ScrollButtonComponent:y=oc,scrollButtons:x="auto",selectionFollowsFocus:w,slots:S={},slotProps:A={},TabIndicatorProps:C={},TabScrollButtonProps:k={},textColor:R="primary",value:E,variant:P="standard",visibleScrollbar:O=!1}=o,$=(0,i.A)(o,ic),M="scrollable"===P,T="vertical"===v,I=T?"scrollTop":"scrollLeft",N=T?"top":"left",j=T?"bottom":"right",L=T?"clientHeight":"clientWidth",z=T?"height":"width",F=(0,a.A)({},o,{component:m,allowScrollButtonsMobile:h,indicatorColor:g,orientation:v,vertical:T,scrollButtons:x,textColor:R,variant:P,visibleScrollbar:O,fixed:!M,hideScrollbar:M&&!O,scrollableX:M&&!T,scrollableY:M&&T,centered:u&&!M,scrollButtonsHideMobile:!h}),B=(e=>{const{vertical:t,fixed:r,hideScrollbar:o,scrollableX:n,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},nc,s)})(F),W=co({elementType:S.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:F}),D=co({elementType:S.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:F}),[_,H]=e.useState(!1),[V,q]=e.useState(hc),[K,X]=e.useState(!1),[U,G]=e.useState(!1),[Y,J]=e.useState(!1),[Z,Q]=e.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=e.useRef(null),re=e.useRef(null),oe=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Xs(e,l?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==E){const e=re.current.children;if(e.length>0){const t=e[ee.get(E)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},ne=Io((()=>{const{tabsMeta:e,tabMeta:t}=oe();let r,o=0;if(T)r="top",t&&e&&(o=t.top-e.top+e.scrollTop);else if(r=l?"right":"left",t&&e){const n=l?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;o=(l?-1:1)*(t[r]-e[r]+n)}const n={[r]:o,[z]:t?t[z]:0};if(isNaN(V[r])||isNaN(V[z]))q(n);else{const e=Math.abs(V[r]-n[r]),t=Math.abs(V[z]-n[z]);(e>=1||t>=1)&&q(n)}})),ae=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},n=()=>{}){const{ease:a=Us,duration:i=300}=o;let l=null;const s=t[e];let c=!1;const d=o=>{if(c)return void n(new Error("Animation cancelled"));null===l&&(l=o);const u=Math.min(1,(o-l)/i);t[e]=a(u)*(r-s)+s,u>=1?requestAnimationFrame((()=>{n(null)})):requestAnimationFrame(d)};s===r?n(new Error("Element already at target position")):requestAnimationFrame(d)}(I,te.current,e,{duration:n.transitions.duration.standard}):te.current[I]=e},ie=e=>{let t=te.current[I];T?t+=e:(t+=e*(l?-1:1),t*=l&&"reverse"===Ks()?-1:1),ae(t)},le=()=>{const e=te.current[L];let t=0;const r=Array.from(re.current.children);for(let o=0;o<r.length;o+=1){const n=r[o];if(t+n[L]>e){0===o&&(t=e);break}t+=n[L]}return t},se=()=>{ie(-1*le())},ce=()=>{ie(le())},de=e.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=Io((e=>{const{tabsMeta:t,tabMeta:r}=oe();if(r&&t)if(r[N]<t[N]){const o=t[I]+(r[N]-t[N]);ae(o,{animation:e})}else if(r[j]>t[j]){const o=t[I]+(r[j]-t[j]);ae(o,{animation:e})}})),pe=Io((()=>{M&&!1!==x&&J(!Y)}));e.useEffect((()=>{const e=Di((()=>{te.current&&ne()}));let t;const r=_i(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver((r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()})),o.observe(re.current,{childList:!0})),()=>{var n,a;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(a=t)||a.disconnect()}}),[ne,pe]),e.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&M&&!1!==x){const r=e[0],o=e[t-1],n={root:te.current,threshold:.99},a=new IntersectionObserver((e=>{X(!e[0].isIntersecting)}),n);a.observe(r);const i=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),n);return i.observe(o),()=>{a.disconnect(),i.disconnect()}}}),[M,x,Y,null==p?void 0:p.length]),e.useEffect((()=>{H(!0)}),[]),e.useEffect((()=>{ne()})),e.useEffect((()=>{ue(hc!==V)}),[ue,V]),e.useImperativeHandle(d,(()=>({updateIndicator:ne,updateScrollButtons:pe})),[ne,pe]);const me=(0,xe.jsx)(fc,(0,a.A)({},C,{className:fe(B.indicator,C.className),ownerState:F,style:(0,a.A)({},V,C.style)}));let he=0;const ge=e.Children.map(p,(t=>{if(!e.isValidElement(t))return null;const r=void 0===t.props.value?he:t.props.value;ee.set(r,he);const o=r===E;return he+=1,e.cloneElement(t,(0,a.A)({fullWidth:"fullWidth"===P,indicator:o&&!_&&me,selected:o,selectionFollowsFocus:w,onChange:b,textColor:R,value:r},1!==he||!1!==E||t.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=M?(0,xe.jsx)(mc,{onChange:de,className:fe(B.scrollableX,B.hideScrollbar)}):null;const t=M&&("auto"===x&&(K||U)||!0===x);return e.scrollButtonStart=t?(0,xe.jsx)(y,(0,a.A)({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:v,direction:l?"right":"left",onClick:se,disabled:!K},k,{className:fe(B.scrollButtons,k.className)})):null,e.scrollButtonEnd=t?(0,xe.jsx)(y,(0,a.A)({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:v,direction:l?"left":"right",onClick:ce,disabled:!U},k,{className:fe(B.scrollButtons,k.className)})):null,e})();return(0,xe.jsxs)(dc,(0,a.A)({className:fe(B.root,f),ownerState:F,ref:r,as:m},$,{children:[be.scrollButtonStart,be.scrollbarSizeListener,(0,xe.jsxs)(uc,{className:B.scroller,ownerState:F,style:{overflow:Z.overflow,[T?"margin"+(l?"Left":"Right"):"marginBottom"]:O?void 0:-Z.scrollbarWidth},ref:te,children:[(0,xe.jsx)(pc,{"aria-label":s,"aria-labelledby":c,"aria-orientation":"vertical"===v?"vertical":null,className:B.flexContainer,ownerState:F,onKeyDown:e=>{const t=re.current,r=Ai(t).activeElement;if("tab"!==r.getAttribute("role"))return;let o="horizontal"===v?"ArrowLeft":"ArrowUp",n="horizontal"===v?"ArrowRight":"ArrowDown";switch("horizontal"===v&&l&&(o="ArrowRight",n="ArrowLeft"),e.key){case o:e.preventDefault(),cc(t,r,sc);break;case n:e.preventDefault(),cc(t,r,lc);break;case"Home":e.preventDefault(),cc(t,null,lc);break;case"End":e.preventDefault(),cc(t,null,sc)}},ref:re,role:"tablist",children:ge}),_&&me]}),be.scrollButtonEnd]}))}));function bc(e){return Re("MuiTab",e)}const vc=Ee("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),yc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],xc=Le(xn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${De(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${vc.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>(0,a.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${vc.iconWrapper}`]:(0,a.A)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${vc.selected}`]:{opacity:1},[`&.${vc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${vc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${vc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${vc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),wc=e.forwardRef((function(t,r){const o=We({props:t,name:"MuiTab"}),{className:n,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:c,icon:d,iconPosition:u="top",indicator:p,label:f,onChange:m,onClick:h,onFocus:g,selected:b,selectionFollowsFocus:v,textColor:y="inherit",value:x,wrapped:w=!1}=o,S=(0,i.A)(o,yc),A=(0,a.A)({},o,{disabled:l,disableFocusRipple:s,selected:b,icon:!!d,iconPosition:u,label:!!f,fullWidth:c,textColor:y,wrapped:w}),C=(e=>{const{classes:t,textColor:r,fullWidth:o,wrapped:n,icon:a,label:i,selected:l,disabled:s}=e;return Me({root:["root",a&&i&&"labelIcon",`textColor${De(r)}`,o&&"fullWidth",n&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},bc,t)})(A),k=d&&f&&e.isValidElement(d)?e.cloneElement(d,{className:fe(C.iconWrapper,d.props.className)}):d;return(0,xe.jsxs)(xc,(0,a.A)({focusRipple:!s,className:fe(C.root,n),ref:r,role:"tab","aria-selected":b,disabled:l,onClick:e=>{!b&&m&&m(e,x),h&&h(e)},onFocus:e=>{v&&!b&&m&&m(e,x),g&&g(e)},ownerState:A,tabIndex:b?0:-1},S,{children:["top"===u||"start"===u?(0,xe.jsxs)(e.Fragment,{children:[k,f]}):(0,xe.jsxs)(e.Fragment,{children:[f,k]}),p]}))})),Sc=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Ac=["component","slots","slotProps"],Cc=["component"];function kc(e,t){const{className:r,elementType:o,ownerState:n,externalForwardedProps:l,getSlotOwnerState:s,internalForwardedProps:c}=t,d=(0,i.A)(t,Sc),{component:u,slots:p={[e]:void 0},slotProps:f={[e]:void 0}}=l,m=(0,i.A)(l,Ac),h=p[e]||o,g=lo(f[e],n),b=io((0,a.A)({className:r},d,{externalForwardedProps:"root"===e?m:void 0,externalSlotProps:g})),{props:{component:v},internalRef:y}=b,x=(0,i.A)(b.props,Cc),w=Kt(y,null==g?void 0:g.ref,t.ref),S=s?s(x):{},A=(0,a.A)({},n,S),C="root"===e?v||u:v,k=oo(h,(0,a.A)({},"root"===e&&!u&&!p[e]&&c,"root"!==e&&!p[e]&&c,x,C&&{as:C},{ref:w}),A);return Object.keys(S).forEach((e=>{delete k[e]})),[h,k]}function Rc(e){return Re("MuiAlert",e)}const Ec=Ee("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Pc=Mn((0,xe.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Oc=Mn((0,xe.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),$c=Mn((0,xe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Mc=Mn((0,xe.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Tc=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Ic=Le(Mo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color||r.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?p.e$:p.a,r="light"===e.palette.mode?p.a:p.e$;return(0,a.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${Ec.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Ec.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,a.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),Nc=Le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),jc=Le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Lc=Le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),zc={success:(0,xe.jsx)(Pc,{fontSize:"inherit"}),warning:(0,xe.jsx)(Oc,{fontSize:"inherit"}),error:(0,xe.jsx)($c,{fontSize:"inherit"}),info:(0,xe.jsx)(Mc,{fontSize:"inherit"})},Fc=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiAlert"}),{action:o,children:n,className:l,closeText:s="Close",color:c,components:d={},componentsProps:u={},icon:p,iconMapping:f=zc,onClose:m,role:h="alert",severity:g="success",slotProps:b={},slots:v={},variant:y="standard"}=r,x=(0,i.A)(r,Tc),w=(0,a.A)({},r,{color:c,severity:g,variant:y,colorSeverity:c||g}),S=(e=>{const{variant:t,color:r,severity:o,classes:n}=e;return Me({root:["root",`color${De(r||o)}`,`${t}${De(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},Rc,n)})(w),A={slots:(0,a.A)({closeButton:d.CloseButton,closeIcon:d.CloseIcon},v),slotProps:(0,a.A)({},u,b)},[C,k]=kc("closeButton",{elementType:kn,externalForwardedProps:A,ownerState:w}),[R,E]=kc("closeIcon",{elementType:Gn,externalForwardedProps:A,ownerState:w});return(0,xe.jsxs)(Ic,(0,a.A)({role:h,elevation:0,ownerState:w,className:fe(S.root,l),ref:t},x,{children:[!1!==p?(0,xe.jsx)(Nc,{ownerState:w,className:S.icon,children:p||f[g]||zc[g]}):null,(0,xe.jsx)(jc,{ownerState:w,className:S.message,children:n}),null!=o?(0,xe.jsx)(Lc,{ownerState:w,className:S.action,children:o}):null,null==o&&m?(0,xe.jsx)(Lc,{ownerState:w,className:S.action,children:(0,xe.jsx)(C,(0,a.A)({size:"small","aria-label":s,title:s,color:"inherit",onClick:m},k,{children:(0,xe.jsx)(R,(0,a.A)({fontSize:"small"},E))}))}):null]}))}));function Bc(e){return Re("MuiCard",e)}Ee("MuiCard",["root"]);const Wc=["className","raised"],Dc=Le(Mo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),_c=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiCard"}),{className:o,raised:n=!1}=r,l=(0,i.A)(r,Wc),s=(0,a.A)({},r,{raised:n}),c=(e=>{const{classes:t}=e;return Me({root:["root"]},Bc,t)})(s);return(0,xe.jsx)(Dc,(0,a.A)({className:fe(c.root,o),elevation:n?8:void 0,ref:t,ownerState:s},l))}));function Hc(e){return Re("MuiCardContent",e)}Ee("MuiCardContent",["root"]);const Vc=["className","component"],qc=Le("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Kc=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiCardContent"}),{className:o,component:n="div"}=r,l=(0,i.A)(r,Vc),s=(0,a.A)({},r,{component:n}),c=(e=>{const{classes:t}=e;return Me({root:["root"]},Hc,t)})(s);return(0,xe.jsx)(qc,(0,a.A)({as:n,className:fe(c.root,o),ownerState:s,ref:t},l))}));function Xc(e){return Re("PrivateSwitchBase",e)}Ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Gc=Le(xn)((({ownerState:e})=>(0,a.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Yc=Le("input",{shouldForwardProp:je})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jc=e.forwardRef((function(e,t){const{autoFocus:r,checked:o,checkedIcon:n,className:l,defaultChecked:s,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:f,inputProps:m,inputRef:h,name:g,onBlur:b,onChange:v,onFocus:y,readOnly:x,required:w=!1,tabIndex:S,type:A,value:C}=e,k=(0,i.A)(e,Uc),[R,E]=rs({controlled:o,default:Boolean(s),name:"SwitchBase",state:"checked"}),P=rt();let O=c;P&&void 0===O&&(O=P.disabled);const $="checkbox"===A||"radio"===A,M=(0,a.A)({},e,{checked:R,disabled:O,disableFocusRipple:d,edge:u}),T=(e=>{const{classes:t,checked:r,disabled:o,edge:n}=e;return Me({root:["root",r&&"checked",o&&"disabled",n&&`edge${De(n)}`],input:["input"]},Xc,t)})(M);return(0,xe.jsxs)(Gc,(0,a.A)({component:"span",className:fe(T.root,l),centerRipple:!0,focusRipple:!d,disabled:O,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),P&&P.onFocus&&P.onFocus(e)},onBlur:e=>{b&&b(e),P&&P.onBlur&&P.onBlur(e)},ownerState:M,ref:t},k,{children:[(0,xe.jsx)(Yc,(0,a.A)({autoFocus:r,checked:o,defaultChecked:s,className:T.input,disabled:O,id:$?f:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),v&&v(e,t)},readOnly:x,ref:h,required:w,ownerState:M,tabIndex:S,type:A},"checkbox"===A&&void 0===C?{}:{value:C},m)),R?n:p]}))}));function Zc(e){return Re("MuiSwitch",e)}const Qc=Ee("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ed=["className","color","edge","size","sx"],td=Le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${De(r.edge)}`],t[`size${De(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Qc.thumb}`]:{width:16,height:16},[`& .${Qc.switchBase}`]:{padding:4,[`&.${Qc.checked}`]:{transform:"translateX(16px)"}}}}]}),rd=Le(Jc,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Qc.input}`]:t.input},"default"!==r.color&&t[`color${De(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Qc.checked}`]:{transform:"translateX(20px)"},[`&.${Qc.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Qc.checked} + .${Qc.track}`]:{opacity:.5},[`&.${Qc.disabled} + .${Qc.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Qc.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${Qc.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qc.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,p.a)(e.palette[t].main,.62):(0,p.e$)(e.palette[t].main,.55)}`}},[`&.${Qc.checked} + .${Qc.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),od=Le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),nd=Le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ad=e.forwardRef((function(e,t){const r=We({props:e,name:"MuiSwitch"}),{className:o,color:n="primary",edge:l=!1,size:s="medium",sx:c}=r,d=(0,i.A)(r,ed),u=(0,a.A)({},r,{color:n,edge:l,size:s}),p=(e=>{const{classes:t,edge:r,size:o,color:n,checked:i,disabled:l}=e,s=Me({root:["root",r&&`edge${De(r)}`,`size${De(o)}`],switchBase:["switchBase",`color${De(n)}`,i&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Zc,t);return(0,a.A)({},t,s)})(u),f=(0,xe.jsx)(nd,{className:p.thumb,ownerState:u});return(0,xe.jsxs)(td,{className:fe(p.root,o),sx:c,ownerState:u,children:[(0,xe.jsx)(rd,(0,a.A)({type:"checkbox",icon:f,checkedIcon:f,ref:t,ownerState:u},d,{classes:(0,a.A)({},p,{root:p.switchBase})})),(0,xe.jsx)(od,{className:p.track,ownerState:u})]})})),id=r.p+"images/coming-soon.78658af8.png",ld=ue({palette:{primary:{main:"#2271b1",light:"#72aee6",dark:"#135e96"},secondary:{main:"#1d2327"},background:{default:"#f9f9f9",paper:"#fff"}},components:{MuiTab:{styleOverrides:{root:{textAlign:"left",justifyContent:"flex-start",fontSize:"14px",fontWeight:500,textTransform:"none",padding:"16px 20px",minHeight:"56px",width:"100%",maxWidth:"none",color:"#50575e","&:hover":{backgroundColor:"#f6f7f7",color:"#2271b1"},"&.Mui-selected":{backgroundColor:"#fff",color:"#2271b1",borderLeft:"4px solid #2271b1","&:hover":{backgroundColor:"#fff"}}}}},MuiButton:{styleOverrides:{root:{borderRadius:6,padding:"8px 18px",boxShadow:"none",minWidth:220,textTransform:"none",fontWeight:600,"&:hover":{backgroundColor:"#135e96",boxShadow:"none"}}}},MuiCard:{styleOverrides:{root:{boxShadow:"0 1px 2px rgba(0,0,0,0.08)",borderRadius:6,border:"1px solid #e0e0e0"}}}}}),sd=Le(ad)((({theme:e})=>({width:42,height:20,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(22px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(22px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#2271b1"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:16,height:16,borderRadius:8,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:10,opacity:1,backgroundColor:"#E0E0E0",boxSizing:"border-box"}})));n().render((0,e.createElement)((()=>{const[t,r]=(0,e.useState)("global"),[o,n]=(0,e.useState)(null),[a,i]=(0,e.useState)({enabled:!1,selectedProducts:[],selectedCategories:[]}),[l,s]=(0,e.useState)({selectedRole:"",enabled:!1,selectedProducts:[],selectedCategories:[]}),[c,d]=(0,e.useState)({selectedCountry:"",enabled:!1,selectedProducts:[],selectedCategories:[]}),[u,p]=(0,e.useState)([]),[f,m]=(0,e.useState)([]),[h,g]=(0,e.useState)([]),[b,v]=(0,e.useState)([]);(0,e.useEffect)((()=>{(()=>{try{SRFWAPP.products&&p(SRFWAPP.products),SRFWAPP.categories&&m(SRFWAPP.categories),SRFWAPP.roles&&g(SRFWAPP.roles),SRFWAPP.countries&&v(SRFWAPP.countries)}catch(e){console.error("Error setting data from SRFWAPP:",e)}})(),(async()=>{try{const e=await fetch("/wp-json/srfw/v1/settings/get-saved-data",{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!e.ok)throw new Error("Network response was not ok");const t=await e.json();i({enabled:t?.enabled||!1,selectedProducts:t?.selectedProducts||[],selectedCategories:t?.selectedCategories||[]})}catch(e){console.error("Error fetching settings:",e),n({type:"error",message:"Error loading settings. Please try again."})}})()}),[]),(0,e.useEffect)((()=>{}),[l,h,b]);const y=async e=>{try{const t=await fetch(`/wp-json/srfw/v1/settings/role/${e}`,{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to fetch role settings");const r=await t.json();s((t=>({...t,selectedRole:e,enabled:r.enabled||!1,selectedProducts:r.selectedProducts||[],selectedCategories:r.selectedCategories||[]})))}catch(e){console.error("Error fetching role settings:",e),n({type:"error",message:"Error loading role settings"})}};return(0,e.createElement)(Vs,{theme:ld},(0,e.createElement)($e,{sx:{display:"flex",minHeight:"calc(100vh - 32px)",backgroundColor:"background.default",margin:"20px"}},(0,e.createElement)(Mo,{elevation:0,sx:{width:"280px",backgroundColor:"#f6f7f7",borderRadius:"4px",border:"1px solid #dcdcde",overflow:"hidden"}},(0,e.createElement)($e,{sx:{p:3,borderBottom:"1px solid #dcdcde",backgroundColor:"#fff"}},(0,e.createElement)(Xe,{variant:"h6",sx:{color:"#1d2327",fontSize:"16px",fontWeight:600}},"Store Restriction")),(0,e.createElement)(Qe,null),(0,e.createElement)(gc,{orientation:"vertical",value:t,onChange:(e,t)=>{r(t)},indicatorColor:"primary",textColor:"primary",variant:"fullWidth",sx:{borderRight:0,"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root":{alignItems:"flex-start",justifyContent:"flex-start",paddingLeft:"20px",paddingTop:"12px",paddingBottom:"12px",margin:"4px 0",borderRadius:"4px",transition:"background-color 0.3s, box-shadow 0.3s","&:hover":{backgroundColor:"#eef5fb"},"&.Mui-selected":{backgroundColor:"#eef5fb",boxShadow:"inset 0 0 0 1px #d0e3f5",borderLeft:"3px solid #2271b1"}},"& .MuiTab-root + .MuiTab-root":{borderTop:"1px solid #f0f0f1"},backgroundColor:"#f6f7f7",height:"100%","& .MuiTabs-flexContainer":{alignItems:"flex-start"}}},(0,e.createElement)(wc,{label:"Global Restriction",value:"global"}),(0,e.createElement)(wc,{label:"Role-Based Restriction",value:"role"}),(0,e.createElement)(wc,{label:"Country Based Restriction",value:"country"}),(0,e.createElement)(wc,{label:"Order Based Restriction",value:"order"}))),(0,e.createElement)($e,{sx:{flex:1,p:3}},o&&(0,e.createElement)(Fc,{severity:o.type,sx:{mb:2},onClose:()=>n(null)},o.message),(0,e.createElement)(_c,null,(0,e.createElement)(Kc,{sx:{p:4}},"global"===t?(0,e.createElement)($e,null,(0,e.createElement)(Xe,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Global Restriction Settings"),(0,e.createElement)(Qe,{sx:{mb:3}}),(0,e.createElement)(it,{sx:{mb:4}},(0,e.createElement)(Mt,{sx:{gap:1.25},control:(0,e.createElement)(sd,{color:"primary",checked:a?.enabled||!1,onChange:e=>i({...a,enabled:e.target.checked})}),label:"Enable Global Restrictions"})),(0,e.createElement)(ga,{multiple:!0,options:u,getOptionLabel:e=>e.name,value:(a?.selectedProducts||[]).map((e=>u.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>i({...a,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Products",placeholder:"Type to search...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)(ga,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:(a?.selectedCategories||[]).map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>i({...a,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Categories",placeholder:"Type to search...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(js,{variant:"contained",onClick:async()=>{if(a.enabled)if(0!==a.selectedProducts.length||0!==a.selectedCategories.length){try{if(!(await fetch("/wp-json/srfw/v1/settings/global",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(a)})).ok)throw new Error("Failed to save settings");n({type:"success",message:"Global settings saved successfully!"})}catch(e){n({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>n(null)),3e3)}else n({type:"error",message:"Please select at least one product or category."});else n({type:"error",message:"Please enable global restrictions first."})},sx:{mt:2}},"Save Global Settings")):"role"===t?(0,e.createElement)($e,null,(0,e.createElement)(Xe,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Role-Based Restriction Settings"),(0,e.createElement)(Qe,{sx:{mb:3}}),(0,e.createElement)(ga,{options:h,getOptionLabel:e=>e.name,value:h.find((e=>e.key===l.selectedRole))||null,onChange:(e,t)=>{t?y(t.key):s({selectedRole:"",enabled:!1,selectedProducts:[],selectedCategories:[]})},renderInput:t=>(0,e.createElement)(ks,{...t,label:"Select User Role",placeholder:"Choose a role...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e?.key===t?.key,sx:{mb:4}}),""!==l.selectedRole&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(it,{sx:{mb:4}},(0,e.createElement)(Mt,{sx:{gap:1.25},control:(0,e.createElement)(sd,{color:"primary",checked:l.enabled,onChange:e=>{s({...l,enabled:e.target.checked}),e.target.checked&&i((e=>({...e,enabled:!1})))}}),label:"Enable Role-Based Restrictions"})),(0,e.createElement)(ga,{multiple:!0,options:u,getOptionLabel:e=>e.name,value:l.selectedProducts.map((e=>u.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>s({...l,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Products",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)(ga,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:l.selectedCategories.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>s({...l,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Categories",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(js,{variant:"contained",onClick:async()=>{if(l.enabled)if(0!==l.selectedProducts.length||0!==l.selectedCategories.length)if(l.selectedRole){try{if(!(await fetch("/wp-json/srfw/v1/settings/role",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(l)})).ok)throw new Error("Failed to save settings");n({type:"success",message:"Role settings saved successfully!"}),l.selectedRole&&y(l.selectedRole)}catch(e){n({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>n(null)),3e3)}else n({type:"error",message:"Please select a user role."});else n({type:"error",message:"Please select at least one product or category."});else n({type:"error",message:"Please enable role-based restrictions first."})},sx:{mt:2}},"Save Role Settings"))):"country"===t?(()=>{const t=async e=>{try{const t=await fetch(`/wp-json/srfw/v1/settings/country/${e}`,{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to fetch country settings");const r=await t.json();d((t=>({...t,selectedCountry:e,enabled:r.enabled||!1,selectedProducts:r.selectedProducts||[],selectedCategories:r.selectedCategories||[]})))}catch(e){console.error("Error fetching country settings:",e),n({type:"error",message:"Error loading country settings"})}};return(0,e.createElement)($e,null,(0,e.createElement)(Xe,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Country-Based Restriction Settings"),(0,e.createElement)(Qe,{sx:{mb:3}}),(0,e.createElement)(ga,{options:b,getOptionLabel:e=>e.name,value:b.find((e=>e.code===c.selectedCountry))||null,onChange:(e,r)=>{r?t(r.code):d({selectedCountry:"",enabled:!1,selectedProducts:[],selectedCategories:[]})},renderInput:t=>(0,e.createElement)(ks,{...t,label:"Select Country",placeholder:"Choose a country...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e?.code===t?.code,sx:{mb:4}}),c.selectedCountry&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(it,{sx:{mb:4}},(0,e.createElement)(Mt,{sx:{gap:1.25},control:(0,e.createElement)(sd,{color:"primary",checked:c.enabled,onChange:e=>{d({...c,enabled:e.target.checked}),e.target.checked&&i((e=>({...e,enabled:!1})))}}),label:"Enable Country-Based Restrictions"})),(0,e.createElement)(ga,{multiple:!0,options:u,getOptionLabel:e=>e.name,value:c.selectedProducts.map((e=>u.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>d({...c,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Products",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)(ga,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:c.selectedCategories.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>d({...c,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(ks,{...t,label:"Search Categories",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(js,{variant:"contained",onClick:async()=>{if(c.enabled)if(0!==c.selectedProducts.length||0!==c.selectedCategories.length)if(c.selectedCountry){try{if(!(await fetch("/wp-json/srfw/v1/settings/country",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(c)})).ok)throw new Error("Failed to save settings");n({type:"success",message:"Country settings saved successfully!"}),c.selectedCountry&&t(c.selectedCountry)}catch(e){n({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>n(null)),3e3)}else n({type:"error",message:"Please select a country."});else n({type:"error",message:"Please select at least one product or category."});else n({type:"error",message:"Please enable country-based restrictions first."})},sx:{mt:2}},"Save Country Settings")))})():(0,e.createElement)("div",{className:"coming-soon-container",style:{textAlign:"center",padding:"40px 20px",maxWidth:"800px",margin:"0 auto"}},(0,e.createElement)("img",{src:id,alt:"Coming Soon",style:{width:"120px",marginBottom:"30px"}}),(0,e.createElement)("h2",{style:{fontSize:"28px",color:"#23282d",marginBottom:"20px"}},"Feature Coming Soon!"),(0,e.createElement)("p",{style:{fontSize:"16px",color:"#646970",lineHeight:"1.6",marginBottom:"30px"}},"Advanced order-based restrictions, perfect for creating exclusive shopping experiences based on customer purchase history."),(0,e.createElement)("div",{style:{background:"#f6f7f7",padding:"25px",borderRadius:"8px",marginBottom:"30px"}},(0,e.createElement)("h3",{style:{fontSize:"18px",color:"#2271b1",marginBottom:"15px"}},"🚀 Upcoming Premium Features:"),(0,e.createElement)("ul",{style:{listStyle:"none",padding:0,margin:0,textAlign:"left"}},["Minimum order amount restrictions","Previous purchase requirements","VIP customer exclusive products","Order count based access"].map(((t,r)=>(0,e.createElement)("li",{key:r,style:{margin:"10px 0",color:"#646970",display:"flex",alignItems:"center"}},(0,e.createElement)("span",{style:{color:"#2271b1",marginRight:"10px"}},"✓"),t))))),(0,e.createElement)("button",{className:"button button-primary",style:{padding:"10px 20px",fontSize:"15px",height:"auto"},onClick:()=>window.location.href="mailto:[email protected]"},"Get Notified When Available")))))))}),null),document.getElementById("srfw-admin"))})()})();
     74`),At.rippleVisible,$t,550,(({theme:e})=>e.transitions.easing.easeInOut),At.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),At.child,At.childLeaving,Mt,550,(({theme:e})=>e.transitions.easing.easeInOut),At.childPulsate,Tt,(({theme:e})=>e.transitions.easing.easeInOut)),jt=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiTouchRipple"}),{center:n=!1,classes:l={},className:s}=o,c=(0,i.A)(o,Ct),[d,u]=e.useState([]),p=e.useRef(0),f=e.useRef(null);e.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[d]);const m=e.useRef(!1),h=nt(),g=e.useRef(null),b=e.useRef(null),v=e.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:o,rippleSize:n,cb:a}=e;u((e=>[...e,(0,xe.jsx)(Nt,{classes:{ripple:fe(l.ripple,At.ripple),rippleVisible:fe(l.rippleVisible,At.rippleVisible),ripplePulsate:fe(l.ripplePulsate,At.ripplePulsate),child:fe(l.child,At.child),childLeaving:fe(l.childLeaving,At.childLeaving),childPulsate:fe(l.childPulsate,At.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:o,rippleSize:n},p.current)])),p.current+=1,f.current=a}),[l]),y=e.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&m.current)return void(m.current=!1);"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);const l=i?null:b.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(r-s.top)}if(a)u=Math.sqrt((2*s.width**2+s.height**2)/3),u%2==0&&(u+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{v({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:r})},h.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):v({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:r})}),[n,v,h]),x=e.useCallback((()=>{y({},{pulsate:!0})}),[y]),w=e.useCallback(((e,t)=>{if(h.clear(),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void h.start(0,(()=>{w(e,t)}));g.current=null,u((e=>e.length>0?e.slice(1):e)),f.current=t}),[h]);return e.useImperativeHandle(r,(()=>({pulsate:x,start:y,stop:w})),[x,y,w]),(0,xe.jsx)(It,(0,a.A)({className:fe(At.root,l.root,s),ref:b},c,{children:(0,xe.jsx)(wt,{component:null,exit:!0,children:d})}))}));function Lt(e){return Ee("MuiButtonBase",e)}const zt=Re("MuiButtonBase",["root","disabled","focusVisible"]),Ft=["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"],Wt=De("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"},[`&.${zt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Bt=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:l=!1,children:s,className:c,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:m=!1,LinkComponent:h="a",onBlur:g,onClick:b,onContextMenu:v,onDragLeave:y,onFocus:x,onFocusVisible:w,onKeyDown:S,onKeyUp:A,onMouseDown:C,onMouseLeave:k,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:O,tabIndex:$=0,TouchRippleProps:M,touchRippleRef:T,type:I}=o,N=(0,i.A)(o,Ft),j=e.useRef(null),L=e.useRef(null),z=Je(L,T),{isFocusVisibleRef:F,onFocus:W,onBlur:B,ref:D}=pt(),[_,H]=e.useState(!1);u&&_&&H(!1),e.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,q]=e.useState(!1);e.useEffect((()=>{q(!0)}),[]);const X=V&&!p&&!u;function U(e,t,r=f){return et((o=>(t&&t(o),!r&&L.current&&L.current[e](o),!0)))}e.useEffect((()=>{_&&m&&!p&&V&&L.current.pulsate()}),[p,m,_,V]);const K=U("start",C),G=U("stop",v),Y=U("stop",y),J=U("stop",E),Z=U("stop",(e=>{_&&e.preventDefault(),k&&k(e)})),Q=U("start",O),ee=U("stop",R),te=U("stop",P),re=U("stop",(e=>{B(e),!1===F.current&&H(!1),g&&g(e)}),!1),oe=et((e=>{j.current||(j.current=e.currentTarget),W(e),!0===F.current&&(H(!0),w&&w(e)),x&&x(e)})),ne=()=>{const e=j.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ae=e.useRef(!1),ie=et((e=>{m&&!ae.current&&_&&L.current&&" "===e.key&&(ae.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),b&&b(e))})),le=et((e=>{m&&" "===e.key&&L.current&&_&&!e.defaultPrevented&&(ae.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),A&&A(e),b&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&b(e)}));let se=d;"button"===se&&(N.href||N.to)&&(se=h);const ce={};"button"===se?(ce.type=void 0===I?"button":I,ce.disabled=u):(N.href||N.to||(ce.role="button"),u&&(ce["aria-disabled"]=u));const de=Je(r,D,j),ue=(0,a.A)({},o,{centerRipple:l,component:d,disabled:u,disableRipple:p,disableTouchRipple:f,focusRipple:m,tabIndex:$,focusVisible:_}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:o,classes:n}=e,a=Me({root:["root",t&&"disabled",r&&"focusVisible"]},Lt,n);return r&&o&&(a.root+=` ${o}`),a})(ue);return(0,xe.jsxs)(Wt,(0,a.A)({as:se,className:fe(pe.root,c),ownerState:ue,onBlur:re,onClick:b,onContextMenu:G,onFocus:oe,onKeyDown:ie,onKeyUp:le,onMouseDown:K,onMouseLeave:Z,onMouseUp:J,onDragLeave:Y,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:u?-1:$,type:I},ce,N,{children:[s,X?(0,xe.jsx)(jt,(0,a.A)({ref:z,center:l},M)):null]}))}));function Dt(e){return Ee("MuiChip",e)}const _t=Re("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Ht=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Vt=De("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:n,clickable:a,onDelete:i,size:l,variant:s}=r;return[{[`& .${_t.avatar}`]:t.avatar},{[`& .${_t.avatar}`]:t[`avatar${Te(l)}`]},{[`& .${_t.avatar}`]:t[`avatarColor${Te(o)}`]},{[`& .${_t.icon}`]:t.icon},{[`& .${_t.icon}`]:t[`icon${Te(l)}`]},{[`& .${_t.icon}`]:t[`iconColor${Te(n)}`]},{[`& .${_t.deleteIcon}`]:t.deleteIcon},{[`& .${_t.deleteIcon}`]:t[`deleteIcon${Te(l)}`]},{[`& .${_t.deleteIcon}`]:t[`deleteIconColor${Te(o)}`]},{[`& .${_t.deleteIcon}`]:t[`deleteIcon${Te(s)}Color${Te(o)}`]},t.root,t[`size${Te(l)}`],t[`color${Te(o)}`],a&&t.clickable,a&&"default"!==o&&t[`clickableColor${Te(o)})`],i&&t.deletable,i&&"default"!==o&&t[`deletableColor${Te(o)}`],t[s],t[`${s}${Te(o)}`]]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,a.A)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_t.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_t.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${_t.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_t.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_t.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_t.icon}`]:(0,a.A)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,a.A)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),[`& .${_t.deleteIcon}`]:(0,a.A)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.X4)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${_t.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${_t.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,a.A)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${_t.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${_t.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,a.A)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_t.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_t.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_t.avatar}`]:{marginLeft:4},[`& .${_t.avatarSmall}`]:{marginLeft:2},[`& .${_t.icon}`]:{marginLeft:4},[`& .${_t.iconSmall}`]:{marginLeft:2},[`& .${_t.deleteIcon}`]:{marginRight:5},[`& .${_t.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].main,.7)}`,[`&.${_t.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${_t.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${_t.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.X4)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}}))),qt=De("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${Te(o)}`]]}})((({ownerState:e})=>(0,a.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7})));function Xt(e){return"Backspace"===e.key||"Delete"===e.key}const Ut=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiChip"}),{avatar:n,className:l,clickable:s,color:c="default",component:d,deleteIcon:u,disabled:p=!1,icon:f,label:m,onClick:h,onDelete:g,onKeyDown:b,onKeyUp:v,size:y="medium",variant:x="filled",tabIndex:w,skipFocusWhenDisabled:S=!1}=o,A=(0,i.A)(o,Ht),C=e.useRef(null),k=Je(C,r),E=e=>{e.stopPropagation(),g&&g(e)},R=!(!1===s||!h)||s,P=R||g?Bt:d||"div",O=(0,a.A)({},o,{component:P,disabled:p,size:y,color:c,iconColor:e.isValidElement(f)&&f.props.color||c,onDelete:!!g,clickable:R,variant:x}),$=(e=>{const{classes:t,disabled:r,size:o,color:n,iconColor:a,onDelete:i,clickable:l,variant:s}=e;return Me({root:["root",s,r&&"disabled",`size${Te(o)}`,`color${Te(n)}`,l&&"clickable",l&&`clickableColor${Te(n)}`,i&&"deletable",i&&`deletableColor${Te(n)}`,`${s}${Te(n)}`],label:["label",`label${Te(o)}`],avatar:["avatar",`avatar${Te(o)}`,`avatarColor${Te(n)}`],icon:["icon",`icon${Te(o)}`,`iconColor${Te(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Te(o)}`,`deleteIconColor${Te(n)}`,`deleteIcon${Te(s)}Color${Te(n)}`]},Dt,t)})(O),M=P===Bt?(0,a.A)({component:d||"div",focusVisibleClassName:$.focusVisible},g&&{disableRipple:!0}):{};let T=null;g&&(T=u&&e.isValidElement(u)?e.cloneElement(u,{className:fe(u.props.className,$.deleteIcon),onClick:E}):(0,xe.jsx)(Ke,{className:fe($.deleteIcon),onClick:E}));let I=null;n&&e.isValidElement(n)&&(I=e.cloneElement(n,{className:fe($.avatar,n.props.className)}));let N=null;return f&&e.isValidElement(f)&&(N=e.cloneElement(f,{className:fe($.icon,f.props.className)})),(0,xe.jsxs)(Vt,(0,a.A)({as:P,className:fe($.root,l),disabled:!(!R||!p)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&Xt(e)&&e.preventDefault(),b&&b(e)},onKeyUp:e=>{e.currentTarget===e.target&&(g&&Xt(e)?g(e):"Escape"===e.key&&C.current&&C.current.blur()),v&&v(e)},ref:k,tabIndex:S&&p?-1:w,ownerState:O},M,A,{children:[I||N,(0,xe.jsx)(qt,{className:fe($.label),ownerState:O,children:m}),T]}))})),Kt=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Gt(e){return Ee("MuiPaper",e)}Re("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 Yt=["className","component","elevation","square","variant"],Jt=De("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return(0,a.A)({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,a.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.X4)("#fff",Kt(t.elevation))}, ${(0,p.X4)("#fff",Kt(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Zt=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiPaper"}),{className:o,component:n="div",elevation:l=1,square:s=!1,variant:c="elevation"}=r,d=(0,i.A)(r,Yt),u=(0,a.A)({},r,{component:n,elevation:l,square:s,variant:c}),p=(e=>{const{square:t,elevation:r,variant:o,classes:n}=e;return Me({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${r}`]},Gt,n)})(u);return(0,xe.jsx)(Jt,(0,a.A)({as:n,ownerState:u,className:fe(p.root,o),ref:t},d))}));function Qt(e){return Ee("MuiCard",e)}Re("MuiCard",["root"]);const er=["className","raised"],tr=De(Zt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),rr=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiCard"}),{className:o,raised:n=!1}=r,l=(0,i.A)(r,er),s=(0,a.A)({},r,{raised:n}),c=(e=>{const{classes:t}=e;return Me({root:["root"]},Qt,t)})(s);return(0,xe.jsx)(tr,(0,a.A)({className:fe(c.root,o),elevation:n?8:void 0,ref:t,ownerState:s},l))}));function or(e){return Ee("MuiTypography",e)}Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ar=De("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,a.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),ir={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lr={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sr=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiTypography"}),o=(e=>lr[e]||e)(r.color),n=(0,he.A)((0,a.A)({},r,{color:o})),{align:l="inherit",className:s,component:c,gutterBottom:d=!1,noWrap:u=!1,paragraph:p=!1,variant:f="body1",variantMapping:m=ir}=n,h=(0,i.A)(n,nr),g=(0,a.A)({},n,{align:l,color:o,className:s,component:c,gutterBottom:d,noWrap:u,paragraph:p,variant:f,variantMapping:m}),b=c||(p?"p":m[f]||ir[f])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:o,paragraph:n,variant:a,classes:i}=e;return Me({root:["root",a,"inherit"!==e.align&&`align${Te(t)}`,r&&"gutterBottom",o&&"noWrap",n&&"paragraph"]},or,i)})(g);return(0,xe.jsx)(ar,(0,a.A)({as:b,ref:t,ownerState:g,className:fe(v.root,s)},h))}));function cr(e){return Ee("MuiButton",e)}const dr=Re("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"]),ur=e.createContext({}),pr=e.createContext(void 0),fr=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mr=e=>(0,a.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),hr=De(Bt,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Te(r.color)}`],t[`size${Te(r.size)}`],t[`${r.variant}Size${Te(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,o;const n="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,a.A)({},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":(0,a.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:(0,p.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{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]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,a.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dr.focusVisible}`]:(0,a.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dr.disabled}`]:(0,a.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,p.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(o=e.palette).getContrastText)?void 0:r.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:n,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${dr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dr.disabled}`]:{boxShadow:"none"}})),gr=De("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Te(r.size)}`]]}})((({ownerState:e})=>(0,a.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},mr(e)))),br=De("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Te(r.size)}`]]}})((({ownerState:e})=>(0,a.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},mr(e)))),vr=e.forwardRef((function(t,r){const o=e.useContext(ur),n=e.useContext(pr),l=Le({props:Ie(o,t),name:"MuiButton"}),{children:s,color:c="primary",component:d="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:m=!1,endIcon:h,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:y,type:x,variant:w="text"}=l,S=(0,i.A)(l,fr),A=(0,a.A)({},l,{color:c,component:d,disabled:p,disableElevation:f,disableFocusRipple:m,fullWidth:b,size:v,type:x,variant:w}),C=(e=>{const{color:t,disableElevation:r,fullWidth:o,size:n,variant:i,classes:l}=e,s=Me({root:["root",i,`${i}${Te(t)}`,`size${Te(n)}`,`${i}Size${Te(n)}`,`color${Te(t)}`,r&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Te(n)}`],endIcon:["icon","endIcon",`iconSize${Te(n)}`]},cr,l);return(0,a.A)({},l,s)})(A),k=y&&(0,xe.jsx)(gr,{className:C.startIcon,ownerState:A,children:y}),E=h&&(0,xe.jsx)(br,{className:C.endIcon,ownerState:A,children:h}),R=n||"";return(0,xe.jsxs)(hr,(0,a.A)({ownerState:A,className:fe(o.className,C.root,u,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:fe(C.focusVisible,g),ref:r,type:x},S,{classes:C,children:[k,s,E]}))}));function yr(e){return Ee("MuiDivider",e)}Re("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xr=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wr=De("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,a.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,p.X4)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,a.A)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,a.A)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>(0,a.A)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>(0,a.A)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Sr=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Ar=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiDivider"}),{absolute:o=!1,children:n,className:l,component:s=(n?"div":"hr"),flexItem:c=!1,light:d=!1,orientation:u="horizontal",role:p=("hr"!==s?"separator":void 0),textAlign:f="center",variant:m="fullWidth"}=r,h=(0,i.A)(r,xr),g=(0,a.A)({},r,{absolute:o,component:s,flexItem:c,light:d,orientation:u,role:p,textAlign:f,variant:m}),b=(e=>{const{absolute:t,children:r,classes:o,flexItem:n,light:a,orientation:i,textAlign:l,variant:s}=e;return Me({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",n&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},yr,o)})(g);return(0,xe.jsx)(wr,(0,a.A)({as:s,className:fe(b.root,l),role:p,ref:t,ownerState:g},h,{children:n?(0,xe.jsx)(Sr,{className:b.wrapper,ownerState:g,children:n}):null}))}));Ar.muiSkipListHighlight=!0;const Cr=Ar;function kr(e){return Ee("MuiFormGroup",e)}Re("MuiFormGroup",["root","row","error"]);const Er=e.createContext(void 0);function Rr(){return e.useContext(Er)}function Pr({props:e,states:t,muiFormControl:r}){return t.reduce(((t,o)=>(t[o]=e[o],r&&void 0===e[o]&&(t[o]=r[o]),t)),{})}const Or=["className","row"],$r=De("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>(0,a.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),Mr=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiFormGroup"}),{className:o,row:n=!1}=r,l=(0,i.A)(r,Or),s=Pr({props:r,muiFormControl:Rr(),states:["error"]}),c=(0,a.A)({},r,{row:n,error:s.error}),d=(e=>{const{classes:t,row:r,error:o}=e;return Me({root:["root",r&&"row",o&&"error"]},kr,t)})(c);return(0,xe.jsx)($r,(0,a.A)({className:fe(d.root,o),ownerState:c,ref:t},l))})),Tr=["ownerState"],Ir=["variants"],Nr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function jr(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Lr=(0,u.A)(),zr=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Fr({defaultTheme:e,theme:t,themeId:r}){return o=t,0===Object.keys(o).length?e:t[r]||t;var o}function Wr(e){return e?(t,r)=>r[e]:null}function Br(e,t){let{ownerState:r}=t,o=(0,i.A)(t,Tr);const n="function"==typeof e?e((0,a.A)({ownerState:r},o)):e;if(Array.isArray(n))return n.flatMap((e=>Br(e,(0,a.A)({ownerState:r},o))));if(n&&"object"==typeof n&&Array.isArray(n.variants)){const{variants:e=[]}=n;let t=(0,i.A)(n,Ir);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,a.A)({ownerState:r},o,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&o[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,a.A)({ownerState:r},o,r)):e.style))})),t}return n}const Dr=function(e={}){const{themeId:t,defaultTheme:r=Lr,rootShouldForwardProp:o=jr,slotShouldForwardProp:n=jr}=e,l=e=>(0,d.A)((0,a.A)({},e,{theme:Fr((0,a.A)({},e,{defaultTheme:r,themeId:t}))}));return l.__mui_systemSx=!0,(e,c={})=>{(0,me.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:m=Wr(zr(u))}=c,h=(0,i.A)(c,Nr),g=void 0!==p?p:u&&"Root"!==u&&"root"!==u||!1,b=f||!1;let v=jr;"Root"===u||"root"===u?v=o:u?v=n:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=(0,me.default)(e,(0,a.A)({shouldForwardProp:v,label:void 0},h)),x=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.Q)(e)?o=>Br(e,(0,a.A)({},o,{theme:Fr({theme:o.theme,defaultTheme:r,themeId:t})})):e,w=(o,...n)=>{let i=x(o);const s=n?n.map(x):[];d&&m&&s.push((e=>{const o=Fr((0,a.A)({},e,{defaultTheme:r,themeId:t}));if(!o.components||!o.components[d]||!o.components[d].styleOverrides)return null;const n=o.components[d].styleOverrides,i={};return Object.entries(n).forEach((([t,r])=>{i[t]=Br(r,(0,a.A)({},e,{theme:o}))})),m(e,i)})),d&&!g&&s.push((e=>{var o;const n=Fr((0,a.A)({},e,{defaultTheme:r,themeId:t}));return Br({variants:null==n||null==(o=n.components)||null==(o=o[d])?void 0:o.variants},(0,a.A)({},e,{theme:n}))})),b||s.push(l);const c=s.length-n.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");i=[...o,...e],i.raw=[...o.raw,...e]}const u=y(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return y.withConfig&&(w.withConfig=y.withConfig),w}}();var _r=r(452),Hr=r(248);const Vr=["component","direction","spacing","divider","children","className","useFlexGap"],qr=(0,u.A)(),Xr=Dr("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ur(e){return function({props:e,name:t,defaultTheme:r,themeId:o}){let n=ye(r);o&&(n=n[o]||n);const a=function(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Ie(t.components[r].defaultProps,o):o}({theme:n,name:t,props:e});return a}({props:e,name:"MuiStack",defaultTheme:qr})}function Kr(t,r){const o=e.Children.toArray(t).filter(Boolean);return o.reduce(((t,n,a)=>(t.push(n),a<o.length-1&&t.push(e.cloneElement(r,{key:`separator-${a}`})),t)),[])}const Gr=({ownerState:e,theme:t})=>{let r=(0,a.A)({display:"flex",flexDirection:"column"},(0,_r.NI)({theme:t},(0,_r.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,Hr.LX)(t),n=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=(0,_r.kW)({values:e.direction,base:n}),i=(0,_r.kW)({values:e.spacing,base:n});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const o=t>0?a[r[t-1]]:"column";a[e]=o}}));const l=(t,r)=>{return e.useFlexGap?{gap:(0,Hr._W)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${n=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n]}`]:(0,Hr._W)(o,t)}};var n};r=(0,s.A)(r,(0,_r.NI)({theme:t},i,l))}return r=(0,_r.iZ)(t.breakpoints,r),r},Yr=function(t={}){const{createStyledComponent:r=Xr,useThemeProps:o=Ur,componentName:n="MuiStack"}=t,l=r(Gr);return e.forwardRef((function(e,t){const r=o(e),s=(0,he.A)(r),{component:c="div",direction:d="column",spacing:u=0,divider:p,children:f,className:m,useFlexGap:h=!1}=s,g=(0,i.A)(s,Vr),b={direction:d,spacing:u,useFlexGap:h},v=Me({root:["root"]},(e=>Ee(n,e)),{});return(0,xe.jsx)(l,(0,a.A)({as:c,ownerState:b,ref:t,className:fe(v.root,m)},g,{children:p?Kr(f,p):f}))}))}({createStyledComponent:De("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Le({props:e,name:"MuiStack"})});function Jr(e){return Ee("MuiFormControlLabel",e)}const Zr=Re("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Qr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],eo=De("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zr.label}`]:t.label},t.root,t[`labelPlacement${Te(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Zr.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Zr.label}`]:{[`&.${Zr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),to=De("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Zr.error}`]:{color:(e.vars||e).palette.error.main}}))),ro=e.forwardRef((function(t,r){var o,n;const l=Le({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:c={},control:d,disabled:u,disableTypography:p,label:f,labelPlacement:m="end",required:h,slotProps:g={}}=l,b=(0,i.A)(l,Qr),v=Rr(),y=null!=(o=null!=u?u:d.props.disabled)?o:null==v?void 0:v.disabled,x=null!=h?h:d.props.required,w={disabled:y,required:x};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===d.props[e]&&void 0!==l[e]&&(w[e]=l[e])}));const S=Pr({props:l,muiFormControl:v,states:["error"]}),A=(0,a.A)({},l,{disabled:y,labelPlacement:m,required:x,error:S.error}),C=(e=>{const{classes:t,disabled:r,labelPlacement:o,error:n,required:a}=e;return Me({root:["root",r&&"disabled",`labelPlacement${Te(o)}`,n&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",n&&"error"]},Jr,t)})(A),k=null!=(n=g.typography)?n:c.typography;let E=f;return null==E||E.type===sr||p||(E=(0,xe.jsx)(sr,(0,a.A)({component:"span"},k,{className:fe(C.label,null==k?void 0:k.className),children:E}))),(0,xe.jsxs)(eo,(0,a.A)({className:fe(C.root,s),ownerState:A,ref:r},b,{children:[e.cloneElement(d,w),x?(0,xe.jsxs)(Yr,{display:"block",children:[E,(0,xe.jsxs)(to,{ownerState:A,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):E]}))}));let oo=0;const no=e["useId".toString()];function ao(t){if(void 0!==no){const e=no();return null!=t?t:e}return function(t){const[r,o]=e.useState(t),n=t||r;return e.useEffect((()=>{null==r&&(oo+=1,o(`mui-${oo}`))}),[r]),n}(t)}function io({controlled:t,default:r,name:o,state:n="value"}){const{current:a}=e.useRef(void 0!==t),[i,l]=e.useState(r);return[a?t:i,e.useCallback((e=>{a||l(e)}),[])]}function lo(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function so(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const co=function(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:n="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;r&&(c=c.toLowerCase()),t&&(c=lo(c));const d=c?e.filter((e=>{let o=(a||s)(e);return r&&(o=o.toLowerCase()),t&&(o=lo(o)),"start"===n?0===o.indexOf(c):o.indexOf(c)>-1})):e;return"number"==typeof o?d.slice(0,o):d}}(),uo=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},po=[],fo=function(t){const{unstable_isActiveElementInListbox:r=uo,unstable_classNamePrefix:o="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:s=!1,clearOnBlur:c=!t.freeSolo,clearOnEscape:d=!1,componentName:u="useAutocomplete",defaultValue:p=(t.multiple?po:null),disableClearable:f=!1,disableCloseOnSelect:m=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:b=!1,filterOptions:v=co,filterSelectedOptions:y=!1,freeSolo:x=!1,getOptionDisabled:w,getOptionKey:S,getOptionLabel:A=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:k=!t.freeSolo,id:E,includeInputInList:R=!1,inputValue:P,isOptionEqualToValue:O=(e,t)=>e===t,multiple:$=!1,onChange:M,onClose:T,onHighlightChange:I,onInputChange:N,onOpen:j,open:L,openOnFocus:z=!1,options:F,readOnly:W=!1,selectOnFocus:B=!t.freeSolo,value:D}=t,_=ao(E);let H=A;H=e=>{const t=A(e);return"string"!=typeof t?String(t):t};const V=e.useRef(!1),q=e.useRef(!0),X=e.useRef(null),U=e.useRef(null),[K,G]=e.useState(null),[Y,J]=e.useState(-1),Z=i?0:-1,Q=e.useRef(Z),[ee,te]=io({controlled:D,default:p,name:u}),[re,oe]=io({controlled:P,default:"",name:u,state:"inputValue"}),[ne,ae]=e.useState(!1),ie=e.useCallback(((e,t)=>{if(!($?ee.length<t.length:null!==t)&&!c)return;let r;if($)r="";else if(null==t)r="";else{const e=H(t);r="string"==typeof e?e:""}re!==r&&(oe(r),N&&N(e,r,"reset"))}),[H,re,$,N,oe,c,ee]),[le,se]=io({controlled:L,default:!1,name:u,state:"open"}),[ce,de]=e.useState(!0),ue=!$&&null!=ee&&re===H(ee),pe=le&&!W,fe=pe?v(F.filter((e=>!y||!($?ee:[ee]).some((t=>null!==t&&O(e,t))))),{inputValue:ue&&ce?"":re,getOptionLabel:H}):[],me=(t=>{const r=e.useRef({});return e.useEffect((()=>{r.current=t})),r.current})({filteredOptions:fe,value:ee,inputValue:re});e.useEffect((()=>{const e=ee!==me.value;ne&&!e||x&&!e||ie(null,ee)}),[ee,ie,ne,me.value,x]);const he=le&&fe.length>0&&!W,ge=Qe((e=>{-1===e?X.current.focus():K.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{$&&Y>ee.length-1&&(J(-1),ge(-1))}),[ee,$,Y,ge]);const be=Qe((({event:e,index:t,reason:r="auto"})=>{if(Q.current=t,-1===t?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${_}-option-${t}`),I&&I(e,-1===t?null:fe[t],r),!U.current)return;const n=U.current.querySelector(`[role="option"].${o}-focused`);n&&(n.classList.remove(`${o}-focused`),n.classList.remove(`${o}-focusVisible`));let a=U.current;if("listbox"!==U.current.getAttribute("role")&&(a=U.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=U.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${o}-focused`),"keyboard"===r&&i.classList.add(`${o}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?a.scrollTop=r-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ve=Qe((({event:e,diff:t,direction:r="next",reason:o="auto"})=>{if(!pe)return;const a=function(e,t){if(!U.current||e<0||e>=fe.length)return-1;let r=e;for(;;){const o=U.current.querySelector(`[data-option-index="${r}"]`),n=!g&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!n)return r;if(r="next"===t?(r+1)%fe.length:(r-1+fe.length)%fe.length,r===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const r=Q.current+t;return r<0?-1===r&&R?-1:b&&-1!==Q.current||Math.abs(t)>1?0:e:r>e?r===e+1&&R?-1:b||Math.abs(t)>1?e:0:r})(),r);if(be({index:a,reason:o,event:e}),n&&"reset"!==t)if(-1===a)X.current.value=re;else{const e=H(fe[a]);X.current.value=e,0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&X.current.setSelectionRange(re.length,e.length)}})),ye=e.useCallback((()=>{if(!pe)return;const e=(()=>{if(-1!==Q.current&&me.filteredOptions&&me.filteredOptions.length!==fe.length&&me.inputValue===re&&($?ee.length===me.value.length&&me.value.every(((e,t)=>H(ee[t])===H(e))):(e=me.value,t=ee,(e?H(e):"")===(t?H(t):"")))){const e=me.filteredOptions[Q.current];if(e)return so(fe,(t=>H(t)===H(e)))}var e,t;return-1})();if(-1!==e)return void(Q.current=e);const t=$?ee[0]:ee;if(0!==fe.length&&null!=t){if(U.current)if(null==t)Q.current>=fe.length-1?be({index:fe.length-1}):be({index:Q.current});else{const e=fe[Q.current];if($&&e&&-1!==so(ee,(t=>O(e,t))))return;const r=so(fe,(e=>O(e,t)));-1===r?ve({diff:"reset"}):be({index:r})}}else ve({diff:"reset"})}),[fe.length,!$&&ee,y,ve,be,pe,re,$]),xe=Qe((e=>{Ge(U,e),e&&ye()}));e.useEffect((()=>{ye()}),[ye]);const we=e=>{le||(se(!0),de(!0),j&&j(e))},Se=(e,t)=>{le&&(se(!1),T&&T(e,t))},Ae=(e,t,r,o)=>{if($){if(ee.length===t.length&&ee.every(((e,r)=>e===t[r])))return}else if(ee===t)return;M&&M(e,t,r,o),te(t)},Ce=e.useRef(!1),ke=(e,t,r="selectOption",o="options")=>{let n=r,a=t;if($){a=Array.isArray(ee)?ee.slice():[];const e=so(a,(e=>O(t,e)));-1===e?a.push(t):"freeSolo"!==o&&(a.splice(e,1),n="removeOption")}ie(e,a),Ae(e,a,n,{option:t}),m||e&&(e.ctrlKey||e.metaKey)||Se(e,n),(!0===s||"touch"===s&&Ce.current||"mouse"===s&&!Ce.current)&&X.current.blur()},Ee=(e,t)=>{if(!$)return;""===re&&Se(e,"toggleInput");let r=Y;-1===Y?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=K.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),J(r),ge(r)},Re=e=>{V.current=!0,oe(""),N&&N(e,"","clear"),Ae(e,$?[]:null,"clear")},Pe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Y&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(J(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&k&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&k&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ee(t,"previous");break;case"ArrowRight":Ee(t,"next");break;case"Enter":if(-1!==Q.current&&pe){const e=fe[Q.current],r=!!w&&w(e);if(t.preventDefault(),r)return;ke(t,e,"selectOption"),n&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else x&&""!==re&&!1===ue&&($&&t.preventDefault(),ke(t,re,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):d&&(""!==re||$&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Re(t));break;case"Backspace":if($&&!W&&""===re&&ee.length>0){const e=-1===Y?ee.length-1:Y,r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if($&&!W&&""===re&&ee.length>0&&-1!==Y){const e=Y,r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})}}},Oe=e=>{ae(!0),z&&!V.current&&we(e)},$e=e=>{r(U)?X.current.focus():(ae(!1),q.current=!0,V.current=!1,l&&-1!==Q.current&&pe?ke(e,fe[Q.current],"blur"):l&&x&&""!==re?ke(e,re,"blur","freeSolo"):c&&ie(e,ee),Se(e,"blur"))},Me=e=>{const t=e.target.value;re!==t&&(oe(t),de(!1),N&&N(e,t,"input")),""===t?f||$||Ae(e,null,"clear"):we(e)},Te=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Q.current!==t&&be({event:e,index:t,reason:"mouse"})},Ie=e=>{be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Ne=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,fe[t],"selectOption"),Ce.current=!1},je=e=>t=>{const r=ee.slice();r.splice(e,1),Ae(t,r,"removeOption",{option:ee[e]})},Le=e=>{le?Se(e,"toggleInput"):we(e)},ze=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==_&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(X.current.focus(),B&&q.current&&X.current.selectionEnd-X.current.selectionStart==0&&X.current.select(),q.current=!1)},We=e=>{h||""!==re&&le||Le(e)};let Be=x&&re.length>0;Be=Be||($?ee.length>0:null!==ee);let De=fe;return C&&(new Map,De=fe.reduce(((e,t,r)=>{const o=C(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e}),[])),h&&ne&&$e(),{getRootProps:(e={})=>(0,a.A)({"aria-owns":he?`${_}-listbox`:null},e,{onKeyDown:Pe(e),onMouseDown:ze,onClick:Fe}),getInputLabelProps:()=>({id:`${_}-label`,htmlFor:_}),getInputProps:()=>({id:_,value:re,onBlur:$e,onFocus:Oe,onChange:Me,onMouseDown:We,"aria-activedescendant":pe?"":null,"aria-autocomplete":n?"both":"list","aria-controls":he?`${_}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Re}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Le}),getTagProps:({index:e})=>(0,a.A)({key:e,"data-tag-index":e,tabIndex:-1},!W&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${_}-listbox`,"aria-labelledby":`${_}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const o=($?ee:[ee]).some((e=>null!=e&&O(t,e))),n=!!w&&w(t);return{key:null!=(r=null==S?void 0:S(t))?r:H(t),tabIndex:-1,role:"option",id:`${_}-option-${e}`,onMouseMove:Te,onClick:Ne,onTouchStart:Ie,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:_,inputValue:re,value:ee,dirty:Be,expanded:pe&&K,popupOpen:pe,focused:ne||-1!==Y,anchorEl:K,setAnchorEl:G,focusedTag:Y,groupedOptions:De}};var mo=r(923);function ho(e){return e&&e.ownerDocument||document}function go(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bo(e){return e instanceof go(e).Element||e instanceof Element}function vo(e){return e instanceof go(e).HTMLElement||e instanceof HTMLElement}function yo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof go(e).ShadowRoot||e instanceof ShadowRoot)}var xo=Math.max,wo=Math.min,So=Math.round;function Ao(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Co(){return!/^((?!chrome|android).)*safari/i.test(Ao())}function ko(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&vo(e)&&(n=e.offsetWidth>0&&So(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&So(o.height)/e.offsetHeight||1);var i=(bo(e)?go(e):window).visualViewport,l=!Co()&&r,s=(o.left+(l&&i?i.offsetLeft:0))/n,c=(o.top+(l&&i?i.offsetTop:0))/a,d=o.width/n,u=o.height/a;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function Eo(e){var t=go(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function Po(e){return((bo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oo(e){return ko(Po(e)).left+Eo(e).scrollLeft}function $o(e){return go(e).getComputedStyle(e)}function Mo(e){var t=$o(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function To(e,t,r){void 0===r&&(r=!1);var o,n,a=vo(t),i=vo(t)&&function(e){var t=e.getBoundingClientRect(),r=So(t.width)/e.offsetWidth||1,o=So(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),l=Po(t),s=ko(e,i,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!r)&&(("body"!==Ro(t)||Mo(l))&&(c=(o=t)!==go(o)&&vo(o)?{scrollLeft:(n=o).scrollLeft,scrollTop:n.scrollTop}:Eo(o)),vo(t)?((d=ko(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):l&&(d.x=Oo(l))),{x:s.left+c.scrollLeft-d.x,y:s.top+c.scrollTop-d.y,width:s.width,height:s.height}}function Io(e){var t=ko(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function No(e){return"html"===Ro(e)?e:e.assignedSlot||e.parentNode||(yo(e)?e.host:null)||Po(e)}function jo(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:vo(e)&&Mo(e)?e:jo(No(e))}function Lo(e,t){var r;void 0===t&&(t=[]);var o=jo(e),n=o===(null==(r=e.ownerDocument)?void 0:r.body),a=go(o),i=n?[a].concat(a.visualViewport||[],Mo(o)?o:[]):o,l=t.concat(i);return n?l:l.concat(Lo(No(i)))}function zo(e){return["table","td","th"].indexOf(Ro(e))>=0}function Fo(e){return vo(e)&&"fixed"!==$o(e).position?e.offsetParent:null}function Wo(e){for(var t=go(e),r=Fo(e);r&&zo(r)&&"static"===$o(r).position;)r=Fo(r);return r&&("html"===Ro(r)||"body"===Ro(r)&&"static"===$o(r).position)?t:r||function(e){var t=/firefox/i.test(Ao());if(/Trident/i.test(Ao())&&vo(e)&&"fixed"===$o(e).position)return null;var r=No(e);for(yo(r)&&(r=r.host);vo(r)&&["html","body"].indexOf(Ro(r))<0;){var o=$o(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}var Bo="top",Do="bottom",_o="right",Ho="left",Vo="auto",qo=[Bo,Do,_o,Ho],Xo="start",Uo="end",Ko="viewport",Go="popper",Yo=qo.reduce((function(e,t){return e.concat([t+"-"+Xo,t+"-"+Uo])}),[]),Jo=[].concat(qo,[Vo]).reduce((function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Uo])}),[]),Zo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qo(e){var t=new Map,r=new Set,o=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&n(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),o}var en={placement:"bottom",modifiers:[],strategy:"absolute"};function tn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function rn(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,n=t.defaultOptions,a=void 0===n?en:n;return function(e,t,r){void 0===r&&(r=a);var n,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},en,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,d={state:l,setOptions:function(r){var n="function"==typeof r?r(l.options):r;u(),l.options=Object.assign({},a,l.options,n),l.scrollParents={reference:bo(e)?Lo(e):e.contextElement?Lo(e.contextElement):[],popper:Lo(t)};var i,c,p=function(e){var t=Qo(e);return Zo.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((i=[].concat(o,l.options.modifiers),c=i.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,o=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var a=n({state:l,name:t,instance:d,options:o});s.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,r=e.popper;if(tn(t,r)){l.rects={reference:To(t,Wo(r),"fixed"===l.options.strategy),popper:Io(r)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<l.orderedModifiers.length;o++)if(!0!==l.reset){var n=l.orderedModifiers[o],a=n.fn,i=n.options,s=void 0===i?{}:i,u=n.name;"function"==typeof a&&(l=a({state:l,options:s,name:u,instance:d})||l)}else l.reset=!1,o=-1}}},update:(n=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(n())}))}))),i}),destroy:function(){u(),c=!0}};if(!tn(e,t))return d;function u(){s.forEach((function(e){return e()})),s=[]}return d.setOptions(r).then((function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)})),d}}var on={passive:!0};function nn(e){return e.split("-")[0]}function an(e){return e.split("-")[1]}function ln(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sn(e){var t,r=e.reference,o=e.element,n=e.placement,a=n?nn(n):null,i=n?an(n):null,l=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2;switch(a){case Bo:t={x:l,y:r.y-o.height};break;case Do:t={x:l,y:r.y+r.height};break;case _o:t={x:r.x+r.width,y:s};break;case Ho:t={x:r.x-o.width,y:s};break;default:t={x:r.x,y:r.y}}var c=a?ln(a):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Xo:t[c]=t[c]-(r[d]/2-o[d]/2);break;case Uo:t[c]=t[c]+(r[d]/2-o[d]/2)}}return t}var cn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dn(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,g="function"==typeof d?d({x:f,y:h}):{x:f,y:h};f=g.x,h=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Ho,x=Bo,w=window;if(c){var S=Wo(r),A="clientHeight",C="clientWidth";S===go(r)&&"static"!==$o(S=Po(r)).position&&"absolute"===l&&(A="scrollHeight",C="scrollWidth"),(n===Bo||(n===Ho||n===_o)&&a===Uo)&&(x=Do,h-=(u&&S===w&&w.visualViewport?w.visualViewport.height:S[A])-o.height,h*=s?1:-1),n!==Ho&&(n!==Bo&&n!==Do||a!==Uo)||(y=_o,f-=(u&&S===w&&w.visualViewport?w.visualViewport.width:S[C])-o.width,f*=s?1:-1)}var k,E=Object.assign({position:l},c&&cn),R=!0===d?function(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:So(r*n)/n||0,y:So(o*n)/n||0}}({x:f,y:h},go(r)):{x:f,y:h};return f=R.x,h=R.y,s?Object.assign({},E,((k={})[x]=v?"0":"",k[y]=b?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",k)):Object.assign({},E,((t={})[x]=v?h+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var un={left:"right",right:"left",bottom:"top",top:"bottom"};function pn(e){return e.replace(/left|right|bottom|top/g,(function(e){return un[e]}))}var fn={start:"end",end:"start"};function mn(e){return e.replace(/start|end/g,(function(e){return fn[e]}))}function hn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yo(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bn(e,t,r){return t===Ko?gn(function(e,t){var r=go(e),o=Po(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,l=0,s=0;if(n){a=n.width,i=n.height;var c=Co();(c||!c&&"fixed"===t)&&(l=n.offsetLeft,s=n.offsetTop)}return{width:a,height:i,x:l+Oo(e),y:s}}(e,r)):bo(t)?function(e,t){var r=ko(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):gn(function(e){var t,r=Po(e),o=Eo(e),n=null==(t=e.ownerDocument)?void 0:t.body,a=xo(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=xo(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+Oo(e),s=-o.scrollTop;return"rtl"===$o(n||r).direction&&(l+=xo(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Po(e)))}function vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yn(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function xn(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=void 0===o?e.placement:o,a=r.strategy,i=void 0===a?e.strategy:a,l=r.boundary,s=void 0===l?"clippingParents":l,c=r.rootBoundary,d=void 0===c?Ko:c,u=r.elementContext,p=void 0===u?Go:u,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,g=void 0===h?0:h,b=vn("number"!=typeof g?g:yn(g,qo)),v=p===Go?"reference":Go,y=e.rects.popper,x=e.elements[m?v:p],w=function(e,t,r,o){var n="clippingParents"===t?function(e){var t=Lo(No(e)),r=["absolute","fixed"].indexOf($o(e).position)>=0&&vo(e)?Wo(e):e;return bo(r)?t.filter((function(e){return bo(e)&&hn(e,r)&&"body"!==Ro(e)})):[]}(e):[].concat(t),a=[].concat(n,[r]),i=a[0],l=a.reduce((function(t,r){var n=bn(e,r,o);return t.top=xo(n.top,t.top),t.right=wo(n.right,t.right),t.bottom=wo(n.bottom,t.bottom),t.left=xo(n.left,t.left),t}),bn(e,i,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(bo(x)?x:x.contextElement||Po(e.elements.popper),s,d,i),S=ko(e.elements.reference),A=sn({reference:S,element:y,strategy:"absolute",placement:n}),C=gn(Object.assign({},y,A)),k=p===Go?C:S,E={top:w.top-k.top+b.top,bottom:k.bottom-w.bottom+b.bottom,left:w.left-k.left+b.left,right:k.right-w.right+b.right},R=e.modifiersData.offset;if(p===Go&&R){var P=R[n];Object.keys(E).forEach((function(e){var t=[_o,Do].indexOf(e)>=0?1:-1,r=[Bo,Do].indexOf(e)>=0?"y":"x";E[e]+=P[r]*t}))}return E}function wn(e,t,r){return xo(e,wo(t,r))}function Sn(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function An(e){return[Bo,_o,Do,Ho].some((function(t){return e[t]>=0}))}var Cn=rn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=void 0===n||n,i=o.resize,l=void 0===i||i,s=go(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,on)})),l&&s.addEventListener("resize",r.update,on),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,on)})),l&&s.removeEventListener("resize",r.update,on)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=sn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=void 0===o||o,a=r.adaptive,i=void 0===a||a,l=r.roundOffsets,s=void 0===l||l,c={placement:nn(t.placement),variation:an(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,dn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,dn(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},o=t.attributes[e]||{},n=t.elements[e];vo(n)&&Ro(n)&&(Object.assign(n.style,r),Object.keys(o).forEach((function(e){var t=o[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],n=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});vo(o)&&Ro(o)&&(Object.assign(o.style,a),Object.keys(n).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=void 0===n?[0,0]:n,i=Jo.reduce((function(e,r){return e[r]=function(e,t,r){var o=nn(e),n=[Ho,Bo].indexOf(o)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*n,[Ho,_o].indexOf(o)>=0?{x:l,y:i}:{x:i,y:l}}(r,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0===i||i,s=r.fallbackPlacements,c=r.padding,d=r.boundary,u=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,g=t.options.placement,b=nn(g),v=s||(b!==g&&m?function(e){if(nn(e)===Vo)return[];var t=pn(e);return[mn(e),t,mn(t)]}(g):[pn(g)]),y=[g].concat(v).reduce((function(e,r){return e.concat(nn(r)===Vo?function(e,t){void 0===t&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,c=void 0===s?Jo:s,d=an(o),u=d?l?Yo:Yo.filter((function(e){return an(e)===d})):qo,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var f=p.reduce((function(t,r){return t[r]=xn(e,{placement:r,boundary:n,rootBoundary:a,padding:i})[nn(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,A=!0,C=y[0],k=0;k<y.length;k++){var E=y[k],R=nn(E),P=an(E)===Xo,O=[Bo,Do].indexOf(R)>=0,$=O?"width":"height",M=xn(t,{placement:E,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),T=O?P?_o:Ho:P?Do:Bo;x[$]>w[$]&&(T=pn(T));var I=pn(T),N=[];if(a&&N.push(M[R]<=0),l&&N.push(M[T]<=0,M[I]<=0),N.every((function(e){return e}))){C=E,A=!1;break}S.set(E,N)}if(A)for(var j=function(e){var t=y.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0&&"break"!==j(L);L--);t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=void 0===n||n,i=r.altAxis,l=void 0!==i&&i,s=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,g=xn(t,{boundary:s,rootBoundary:c,padding:u,altBoundary:d}),b=nn(t.placement),v=an(t.placement),y=!v,x=ln(b),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,A=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(S){if(a){var O,$="y"===x?Bo:Ho,M="y"===x?Do:_o,T="y"===x?"height":"width",I=S[x],N=I+g[$],j=I-g[M],L=f?-C[T]/2:0,z=v===Xo?A[T]:C[T],F=v===Xo?-C[T]:-A[T],W=t.elements.arrow,B=f&&W?Io(W):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},_=D[$],H=D[M],V=wn(0,A[T],B[T]),q=y?A[T]/2-L-V-_-E.mainAxis:z-V-_-E.mainAxis,X=y?-A[T]/2+L+V+H+E.mainAxis:F+V+H+E.mainAxis,U=t.elements.arrow&&Wo(t.elements.arrow),K=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,G=null!=(O=null==R?void 0:R[x])?O:0,Y=I+X-G,J=wn(f?wo(N,I+q-G-K):N,I,f?xo(j,Y):j);S[x]=J,P[x]=J-I}if(l){var Z,Q="x"===x?Bo:Ho,ee="x"===x?Do:_o,te=S[w],re="y"===w?"height":"width",oe=te+g[Q],ne=te-g[ee],ae=-1!==[Bo,Ho].indexOf(b),ie=null!=(Z=null==R?void 0:R[w])?Z:0,le=ae?oe:te-A[re]-C[re]-ie+E.altAxis,se=ae?te+A[re]+C[re]-ie-E.altAxis:ne,ce=f&&ae?function(e,t,r){var o=wn(e,t,r);return o>r?r:o}(le,te,se):wn(f?le:oe,te,f?se:ne);S[w]=ce,P[w]=ce-te}t.modifiersData[o]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=nn(r.placement),s=ln(l),c=[Ho,_o].indexOf(l)>=0?"height":"width";if(a&&i){var d=function(e,t){return vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yn(e,qo))}(n.padding,r),u=Io(a),p="y"===s?Bo:Ho,f="y"===s?Do:_o,m=r.rects.reference[c]+r.rects.reference[s]-i[s]-r.rects.popper[c],h=i[s]-r.rects.reference[s],g=Wo(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=d[p],x=b-u[c]-d[f],w=b/2-u[c]/2+v,S=wn(y,w,x),A=s;r.modifiersData[o]=((t={})[A]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&hn(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=xn(t,{elementContext:"reference"}),l=xn(t,{altBoundary:!0}),s=Sn(i,o),c=Sn(l,n,a),d=An(s),u=An(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});const kn=function(e){return"string"==typeof e},En=function(e,t,r){return void 0===e||kn(e)?t:(0,a.A)({},t,{ownerState:(0,a.A)({},t.ownerState,r)})},Rn=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},Pn=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},On=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:n,className:i}=e;if(!t){const e=fe(null==r?void 0:r.className,i,null==n?void 0:n.className,null==o?void 0:o.className),t=(0,a.A)({},null==r?void 0:r.style,null==n?void 0:n.style,null==o?void 0:o.style),l=(0,a.A)({},r,n,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=Rn((0,a.A)({},n,o)),s=Pn(o),c=Pn(n),d=t(l),u=fe(null==d?void 0:d.className,null==r?void 0:r.className,i,null==n?void 0:n.className,null==o?void 0:o.className),p=(0,a.A)({},null==d?void 0:d.style,null==r?void 0:r.style,null==n?void 0:n.style,null==o?void 0:o.style),f=(0,a.A)({},d,r,c,s);return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:d.ref}},$n=function(e,t,r){return"function"==typeof e?e(t,r):e},Mn=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],Tn=function(e){var t;const{elementType:r,externalSlotProps:o,ownerState:n,skipResolvingSlotProps:l=!1}=e,s=(0,i.A)(e,Mn),c=l?{}:$n(o,n),{props:d,internalRef:u}=On((0,a.A)({},s,{externalSlotProps:c})),p=Ye(u,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref);return En(r,(0,a.A)({},d,{ref:p}),n)};function In(t){var r;return parseInt(e.version,10)>=19?(null==t||null==(r=t.props)?void 0:r.ref)||null:(null==t?void 0:t.ref)||null}const Nn=e.forwardRef((function(t,r){const{children:n,container:a,disablePortal:i=!1}=t,[l,s]=e.useState(null),c=Ye(e.isValidElement(n)?In(n):null,r);if(Ze((()=>{i||s(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,i]),Ze((()=>{if(l&&!i)return Ge(r,l),()=>{Ge(r,null)}}),[r,l,i]),i){if(e.isValidElement(n)){const t={ref:c};return e.cloneElement(n,t)}return(0,xe.jsx)(e.Fragment,{children:n})}return(0,xe.jsx)(e.Fragment,{children:l?o.createPortal(n,l):l})}));function jn(e){return Ee("MuiPopper",e)}Re("MuiPopper",["root"]);const Ln=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],zn=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fn(e){return"function"==typeof e?e():e}const Wn={},Bn=e.forwardRef((function(t,r){var o;const{anchorEl:n,children:l,direction:s,disablePortal:c,modifiers:d,open:u,placement:p,popperOptions:f,popperRef:m,slotProps:h={},slots:g={},TransitionProps:b}=t,v=(0,i.A)(t,Ln),y=e.useRef(null),x=Ye(y,r),w=e.useRef(null),S=Ye(w,m),A=e.useRef(S);Ze((()=>{A.current=S}),[S]),e.useImperativeHandle(m,(()=>w.current),[]);const C=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,s),[k,E]=e.useState(C),[R,P]=e.useState(Fn(n));e.useEffect((()=>{w.current&&w.current.forceUpdate()})),e.useEffect((()=>{n&&P(Fn(n))}),[n]),Ze((()=>{if(!R||!u)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=d&&(e=e.concat(d)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));const t=Cn(R,y.current,(0,a.A)({placement:C},f,{modifiers:e}));return A.current(t),()=>{t.destroy(),A.current(null)}}),[R,c,d,u,f,C]);const O={placement:k};null!==b&&(O.TransitionProps=b);const $=(e=>{const{classes:t}=e;return Me({root:["root"]},jn,t)})(t),M=null!=(o=g.root)?o:"div",T=Tn({elementType:M,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:$.root});return(0,xe.jsx)(M,(0,a.A)({},T,{children:"function"==typeof l?l(O):l}))})),Dn=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Hn=De(e.forwardRef((function(t,r){const{anchorEl:o,children:n,container:l,direction:s="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:u,open:p,placement:f="bottom",popperOptions:m=Wn,popperRef:h,style:g,transition:b=!1,slotProps:v={},slots:y={}}=t,x=(0,i.A)(t,zn),[w,S]=e.useState(!0);if(!d&&!p&&(!b||w))return null;let A;if(l)A=l;else if(o){const e=Fn(o);A=e&&void 0!==e.nodeType?ho(e).body:ho(null).body}const C=p||!d||b&&!w?void 0:"none",k=b?{in:p,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,xe.jsx)(Nn,{disablePortal:c,container:A,children:(0,xe.jsx)(Bn,(0,a.A)({anchorEl:o,direction:s,disablePortal:c,modifiers:u,ref:r,open:b?!w:p,placement:f,popperOptions:m,popperRef:h,slotProps:v,slots:y},x,{style:(0,a.A)({position:"fixed",top:0,left:0,display:C},g),TransitionProps:k,children:n}))})})),{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vn=e.forwardRef((function(e,t){var r;const o=(0,mo.A)(),n=Le({props:e,name:"MuiPopper"}),{anchorEl:l,component:s,components:c,componentsProps:d,container:u,disablePortal:p,keepMounted:f,modifiers:m,open:h,placement:g,popperOptions:b,popperRef:v,transition:y,slots:x,slotProps:w}=n,S=(0,i.A)(n,Dn),A=null!=(r=null==x?void 0:x.root)?r:null==c?void 0:c.Root,C=(0,a.A)({anchorEl:l,container:u,disablePortal:p,keepMounted:f,modifiers:m,open:h,placement:g,popperOptions:b,popperRef:v,transition:y},S);return(0,xe.jsx)(Hn,(0,a.A)({as:s,direction:null==o?void 0:o.direction,slots:{root:A},slotProps:null!=w?w:d},C,{ref:t}))}));function qn(e){return Ee("MuiListSubheader",e)}Re("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Xn=["className","color","component","disableGutters","disableSticky","inset"],Un=De("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Te(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,a.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),Kn=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiListSubheader"}),{className:o,color:n="default",component:l="li",disableGutters:s=!1,disableSticky:c=!1,inset:d=!1}=r,u=(0,i.A)(r,Xn),p=(0,a.A)({},r,{color:n,component:l,disableGutters:s,disableSticky:c,inset:d}),f=(e=>{const{classes:t,color:r,disableGutters:o,inset:n,disableSticky:a}=e;return Me({root:["root","default"!==r&&`color${Te(r)}`,!o&&"gutters",n&&"inset",!a&&"sticky"]},qn,t)})(p);return(0,xe.jsx)(Un,(0,a.A)({as:l,className:fe(f.root,o),ref:t,ownerState:p},u))}));Kn.muiSkipListHighlight=!0;const Gn=Kn;function Yn(e){return Ee("MuiIconButton",e)}const Jn=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Zn=["edge","children","className","color","disabled","disableFocusRipple","size"],Qn=De(Bt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Te(r.color)}`],r.edge&&t[`edge${Te(r.edge)}`],t[`size${Te(r.size)}`]]}})((({theme:e,ownerState:t})=>(0,a.A)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const o=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,a.A)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,a.A)({color:null==o?void 0:o.main},!t.disableRipple&&{"&:hover":(0,a.A)({},o&&{backgroundColor:e.vars?`rgba(${o.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(o.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Jn.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),ea=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiIconButton"}),{edge:o=!1,children:n,className:l,color:s="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium"}=r,p=(0,i.A)(r,Zn),f=(0,a.A)({},r,{edge:o,color:s,disabled:c,disableFocusRipple:d,size:u}),m=(e=>{const{classes:t,disabled:r,color:o,edge:n,size:a}=e;return Me({root:["root",r&&"disabled","default"!==o&&`color${Te(o)}`,n&&`edge${Te(n)}`,`size${Te(a)}`]},Yn,t)})(f);return(0,xe.jsx)(Qn,(0,a.A)({className:fe(m.root,l),centerRipple:!0,focusRipple:!d,disabled:c,ref:t},p,{ownerState:f,children:n}))}));function ta(e){return Ee("MuiInputBase",e)}const ra=Re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function oa(e){return Ee("MuiInput",e)}const na=(0,a.A)({},ra,Re("MuiInput",["root","underline","input"]));function aa(e){return Ee("MuiOutlinedInput",e)}const ia=(0,a.A)({},ra,Re("MuiOutlinedInput",["root","notchedOutline","input"]));function la(e){return Ee("MuiFilledInput",e)}const sa=(0,a.A)({},ra,Re("MuiFilledInput",["root","underline","input"])),ca=Ue((0,xe.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),da=Ue((0,xe.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function ua(e){return Ee("MuiAutocomplete",e)}const pa=Re("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var fa,ma;const ha=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ga=["ref"],ba=["key"],va=["key"],ya=De("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:o,hasClearIcon:n,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{[`& .${pa.tag}`]:t.tag},{[`& .${pa.tag}`]:t[`tagSize${Te(l)}`]},{[`& .${pa.inputRoot}`]:t.inputRoot},{[`& .${pa.input}`]:t.input},{[`& .${pa.input}`]:i&&t.inputFocused},t.root,o&&t.fullWidth,a&&t.hasPopupIcon,n&&t.hasClearIcon]}})({[`&.${pa.focused} .${pa.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${pa.clearIndicator}`]:{visibility:"visible"}},[`& .${pa.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${pa.inputRoot}`]:{[`.${pa.hasPopupIcon}&, .${pa.hasClearIcon}&`]:{paddingRight:30},[`.${pa.hasPopupIcon}.${pa.hasClearIcon}&`]:{paddingRight:56},[`& .${pa.input}`]:{width:0,minWidth:30}},[`& .${na.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${na.root}.${ra.sizeSmall}`]:{[`& .${na.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ia.root}`]:{padding:9,[`.${pa.hasPopupIcon}&, .${pa.hasClearIcon}&`]:{paddingRight:39},[`.${pa.hasPopupIcon}.${pa.hasClearIcon}&`]:{paddingRight:65},[`& .${pa.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${pa.endAdornment}`]:{right:9}},[`& .${ia.root}.${ra.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${pa.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${sa.root}`]:{paddingTop:19,paddingLeft:8,[`.${pa.hasPopupIcon}&, .${pa.hasClearIcon}&`]:{paddingRight:39},[`.${pa.hasPopupIcon}.${pa.hasClearIcon}&`]:{paddingRight:65},[`& .${sa.input}`]:{padding:"7px 4px"},[`& .${pa.endAdornment}`]:{right:9}},[`& .${sa.root}.${ra.sizeSmall}`]:{paddingBottom:1,[`& .${sa.input}`]:{padding:"2.5px 4px"}},[`& .${ra.hiddenLabel}`]:{paddingTop:8},[`& .${sa.root}.${ra.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${pa.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${sa.root}.${ra.hiddenLabel}.${ra.sizeSmall}`]:{[`& .${pa.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${pa.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${pa.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${pa.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${pa.inputRoot}`]:{flexWrap:"wrap"}}}]}),xa=De("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),wa=De(ea,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Sa=De(ea,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Aa=De(Vn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pa.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Ca=De(Zt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,a.A)({},e.typography.body1,{overflow:"auto"}))),ka=De("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Ea=De("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Ra=De("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${pa.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${pa.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${pa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pa.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${pa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Pa=De(Gn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Oa=De("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${pa.option}`]:{paddingLeft:24}}),$a=e.forwardRef((function(t,r){var o,n,l,s;const c=Le({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:u=!1,autoSelect:p=!1,blurOnSelect:f=!1,ChipProps:m,className:h,clearIcon:g=fa||(fa=(0,xe.jsx)(ca,{fontSize:"small"})),clearOnBlur:b=!c.freeSolo,clearOnEscape:v=!1,clearText:y="Clear",closeText:x="Close",componentsProps:w={},defaultValue:S=(c.multiple?[]:null),disableClearable:A=!1,disableCloseOnSelect:C=!1,disabled:k=!1,disabledItemsFocusable:E=!1,disableListWrap:R=!1,disablePortal:P=!1,filterSelectedOptions:O=!1,forcePopupIcon:$="auto",freeSolo:M=!1,fullWidth:T=!1,getLimitTagsText:I=e=>`+${e}`,getOptionLabel:N,groupBy:j,handleHomeEndKeys:L=!c.freeSolo,includeInputInList:z=!1,limitTags:F=-1,ListboxComponent:W="ul",ListboxProps:B,loading:D=!1,loadingText:_="Loading…",multiple:H=!1,noOptionsText:V="No options",openOnFocus:q=!1,openText:X="Open",PaperComponent:U=Zt,PopperComponent:K=Vn,popupIcon:G=ma||(ma=(0,xe.jsx)(da,{})),readOnly:Y=!1,renderGroup:J,renderInput:Z,renderOption:Q,renderTags:ee,selectOnFocus:te=!c.freeSolo,size:re="medium",slotProps:oe={}}=c,ne=(0,i.A)(c,ha),{getRootProps:ae,getInputProps:ie,getInputLabelProps:le,getPopupIndicatorProps:se,getClearProps:ce,getTagProps:de,getListboxProps:ue,getOptionProps:pe,value:me,dirty:he,expanded:ge,id:be,popupOpen:ve,focused:ye,focusedTag:we,anchorEl:Se,setAnchorEl:Ae,inputValue:Ce,groupedOptions:ke}=fo((0,a.A)({},c,{componentName:"Autocomplete"})),Ee=!A&&!k&&he&&!Y,Re=(!M||!0===$)&&!1!==$,{onMouseDown:Pe}=ie(),{ref:Oe}=null!=B?B:{},$e=ue(),{ref:Ie}=$e,Ne=(0,i.A)($e,ga),je=Je(Ie,Oe),ze=N||(e=>{var t;return null!=(t=e.label)?t:e}),Fe=(0,a.A)({},c,{disablePortal:P,expanded:ge,focused:ye,fullWidth:T,getOptionLabel:ze,hasClearIcon:Ee,hasPopupIcon:Re,inputFocused:-1===we,popupOpen:ve,size:re}),We=(e=>{const{classes:t,disablePortal:r,expanded:o,focused:n,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:c,size:d}=e;return Me({root:["root",o&&"expanded",n&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${Te(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},ua,t)})(Fe);let Be;if(H&&me.length>0){const e=e=>(0,a.A)({className:We.tag,disabled:k},de(e));Be=ee?ee(me,e,Fe):me.map(((t,r)=>{const o=e({index:r}),{key:n}=o,l=(0,i.A)(o,ba);return(0,xe.jsx)(Ut,(0,a.A)({label:ze(t),size:re},l,m),n)}))}if(F>-1&&Array.isArray(Be)){const e=Be.length-F;!ye&&e>0&&(Be=Be.splice(0,F),Be.push((0,xe.jsx)("span",{className:We.tag,children:I(e)},Be.length)))}const De=J||(e=>(0,xe.jsxs)("li",{children:[(0,xe.jsx)(Pa,{className:We.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,xe.jsx)(Oa,{className:We.groupUl,ownerState:Fe,children:e.children})]},e.key)),_e=Q||((e,t)=>{const{key:r}=e,o=(0,i.A)(e,va);return(0,xe.jsx)("li",(0,a.A)({},o,{children:ze(t)}),r)}),He=(e,t)=>{const r=pe({option:e,index:t});return _e((0,a.A)({},r,{className:We.option}),e,{selected:r["aria-selected"],index:t,inputValue:Ce},Fe)},Ve=null!=(o=oe.clearIndicator)?o:w.clearIndicator,qe=null!=(n=oe.paper)?n:w.paper,Xe=null!=(l=oe.popper)?l:w.popper,Ue=null!=(s=oe.popupIndicator)?s:w.popupIndicator;return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(ya,(0,a.A)({ref:r,className:fe(We.root,h),ownerState:Fe},ae(ne),{children:Z({id:be,disabled:k,fullWidth:!0,size:"small"===re?"small":void 0,InputLabelProps:le(),InputProps:(0,a.A)({ref:Ae,className:We.inputRoot,startAdornment:Be,onClick:e=>{e.target===e.currentTarget&&Pe(e)}},(Ee||Re)&&{endAdornment:(0,xe.jsxs)(xa,{className:We.endAdornment,ownerState:Fe,children:[Ee?(0,xe.jsx)(wa,(0,a.A)({},ce(),{"aria-label":y,title:y,ownerState:Fe},Ve,{className:fe(We.clearIndicator,null==Ve?void 0:Ve.className),children:g})):null,Re?(0,xe.jsx)(Sa,(0,a.A)({},se(),{disabled:k,"aria-label":ve?x:X,title:ve?x:X,ownerState:Fe},Ue,{className:fe(We.popupIndicator,null==Ue?void 0:Ue.className),children:G})):null]})}),inputProps:(0,a.A)({className:We.input,disabled:k,readOnly:Y},ie())})})),Se?(0,xe.jsx)(Aa,(0,a.A)({as:K,disablePortal:P,style:{width:Se?Se.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Se,open:ve},Xe,{className:fe(We.popper,null==Xe?void 0:Xe.className),children:(0,xe.jsxs)(Ca,(0,a.A)({ownerState:Fe,as:U},qe,{className:fe(We.paper,null==qe?void 0:qe.className),children:[D&&0===ke.length?(0,xe.jsx)(ka,{className:We.loading,ownerState:Fe,children:_}):null,0!==ke.length||M||D?null:(0,xe.jsx)(Ea,{className:We.noOptions,ownerState:Fe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),ke.length>0?(0,xe.jsx)(Ra,(0,a.A)({as:W,className:We.listbox,ownerState:Fe},Ne,B,{ref:je,children:ke.map(((e,t)=>j?De({key:e.key,group:e.group,children:e.options.map(((t,r)=>He(t,e.index+r)))}):He(e,t)))})):null]}))})):null]})}));function Ma(e){return ho(e).defaultView||window}function Ta(e,t=166){let r;function o(...o){clearTimeout(r),r=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(r)},o}const Ia=["onChange","maxRows","minRows","style","value"];function Na(e){return parseInt(e,10)||0}const ja={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},La=e.forwardRef((function(t,r){const{onChange:o,maxRows:n,minRows:l=1,style:s,value:c}=t,d=(0,i.A)(t,Ia),{current:u}=e.useRef(null!=c),p=e.useRef(null),f=Ye(r,p),m=e.useRef(null),h=e.useRef(null),g=e.useCallback((()=>{const e=p.current,r=Ma(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const o=h.current;o.style.width=r.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const a=r.boxSizing,i=Na(r.paddingBottom)+Na(r.paddingTop),s=Na(r.borderBottomWidth)+Na(r.borderTopWidth),c=o.scrollHeight;o.value="x";const d=o.scrollHeight;let u=c;return l&&(u=Math.max(Number(l)*d,u)),n&&(u=Math.min(Number(n)*d,u)),u=Math.max(u,d),{outerHeightStyle:u+("border-box"===a?i+s:0),overflowing:Math.abs(u-c)<=1}}),[n,l,t.placeholder]),b=e.useCallback((()=>{const e=g();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=e.outerHeightStyle,o=p.current;m.current!==r&&(m.current=r,o.style.height=`${r}px`),o.style.overflow=e.overflowing?"hidden":""}),[g]);return Ze((()=>{const e=()=>{b()};const t=Ta(e),r=p.current,o=Ma(r);let n;return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),o.removeEventListener("resize",t),n&&n.disconnect()}}),[g,b]),Ze((()=>{b()})),(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)("textarea",(0,a.A)({value:c,onChange:e=>{u||b(),o&&o(e)},ref:f,rows:l,style:s},d)),(0,xe.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,a.A)({},ja,s,{paddingTop:0,paddingBottom:0})})]})})),za=Ze;var Fa=r(940);const Wa=function({styles:e,themeId:t,defaultTheme:r={}}){const o=ye(r),n="function"==typeof e?e(t&&o[t]||o):e;return(0,xe.jsx)(Fa.A,{styles:n})},Ba=function(e){return(0,xe.jsx)(Wa,(0,a.A)({},e,{defaultTheme:Fe,themeId:Ce}))};function Da(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _a(e,t=!1){return e&&(Da(e.value)&&""!==e.value||t&&Da(e.defaultValue)&&""!==e.defaultValue)}const Ha=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Va=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},qa=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Xa=De("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Va})((({theme:e,ownerState:t})=>(0,a.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ra.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,a.A)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ua=De("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qa})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,o=(0,a.A)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,a.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ra.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ra.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ka=(0,xe.jsx)(Ba,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ga=e.forwardRef((function(t,r){var o;const n=Le({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:c,autoFocus:d,className:u,components:p={},componentsProps:f={},defaultValue:m,disabled:h,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:v=!1,id:y,inputComponent:x="input",inputProps:w={},inputRef:S,maxRows:A,minRows:C,multiline:k=!1,name:E,onBlur:R,onChange:P,onClick:O,onFocus:$,onKeyDown:M,onKeyUp:T,placeholder:I,readOnly:N,renderSuffix:j,rows:L,slotProps:z={},slots:F={},startAdornment:W,type:B="text",value:D}=n,_=(0,i.A)(n,Ha),H=null!=w.value?w.value:D,{current:V}=e.useRef(null!=H),q=e.useRef(),X=e.useCallback((e=>{}),[]),U=Je(q,S,w.ref,X),[K,G]=e.useState(!1),Y=Rr(),J=Pr({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Y?Y.focused:K,e.useEffect((()=>{!Y&&h&&K&&(G(!1),R&&R())}),[Y,h,K,R]);const Z=Y&&Y.onFilled,Q=Y&&Y.onEmpty,ee=e.useCallback((e=>{_a(e)?Z&&Z():Q&&Q()}),[Z,Q]);za((()=>{V&&ee({value:H})}),[H,ee,V]),e.useEffect((()=>{ee(q.current)}),[]);let te=x,re=w;k&&"input"===te&&(re=L?(0,a.A)({type:void 0,minRows:L,maxRows:L},re):(0,a.A)({type:void 0,maxRows:A,minRows:C},re),te=La),e.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(W))}),[Y,W]);const oe=(0,a.A)({},n,{color:J.color||"primary",disabled:J.disabled,endAdornment:b,error:J.error,focused:J.focused,formControl:Y,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:k,size:J.size,startAdornment:W,type:B}),ne=(e=>{const{classes:t,color:r,disabled:o,error:n,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:f,type:m}=e;return Me({root:["root",`color${Te(r)}`,o&&"disabled",n&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Te(p)}`,d&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",u&&"readOnly"]},ta,t)})(oe),ae=F.root||p.Root||Xa,ie=z.root||f.root||{},le=F.input||p.Input||Ua;return re=(0,a.A)({},re,null!=(o=z.input)?o:f.input),(0,xe.jsxs)(e.Fragment,{children:[!g&&Ka,(0,xe.jsxs)(ae,(0,a.A)({},ie,!kn(ae)&&{ownerState:(0,a.A)({},oe,ie.ownerState)},{ref:r,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),O&&O(e)}},_,{className:fe(ne.root,ie.className,u,N&&"MuiInputBase-readOnly"),children:[W,(0,xe.jsx)(Er.Provider,{value:null,children:(0,xe.jsx)(le,(0,a.A)({ownerState:oe,"aria-invalid":J.error,"aria-describedby":s,autoComplete:c,autoFocus:d,defaultValue:m,disabled:J.disabled,id:y,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:E,placeholder:I,readOnly:N,required:J.required,rows:L,value:H,onKeyDown:M,onKeyUp:T,type:B},re,!kn(le)&&{as:te,ownerState:(0,a.A)({},oe,re.ownerState)},{ref:U,className:fe(ne.input,re.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),w.onBlur&&w.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||q.current;if(null==t)throw new Error((0,l.A)(1));ee({value:t.value})}w.onChange&&w.onChange(e,...t),P&&P(e,...t)},onFocus:e=>{J.disabled?e.stopPropagation():($&&$(e),w.onFocus&&w.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):G(!0))}}))}),b,j?j((0,a.A)({},J,{startAdornment:W})):null]}))]})})),Ya=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ja=De(Xa,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Va(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,a.A)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${na.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${na.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${na.disabled}, .${na.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${na.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Za=De(Ua,{name:"MuiInput",slot:"Input",overridesResolver:qa})({}),Qa=e.forwardRef((function(e,t){var r,o,n,l;const c=Le({props:e,name:"MuiInput"}),{disableUnderline:d,components:u={},componentsProps:p,fullWidth:f=!1,inputComponent:m="input",multiline:h=!1,slotProps:g,slots:b={},type:v="text"}=c,y=(0,i.A)(c,Ya),x=(e=>{const{classes:t,disableUnderline:r}=e,o=Me({root:["root",!r&&"underline"],input:["input"]},oa,t);return(0,a.A)({},t,o)})(c),w={root:{ownerState:{disableUnderline:d}}},S=(null!=g?g:p)?(0,s.A)(null!=g?g:p,w):w,A=null!=(r=null!=(o=b.root)?o:u.Root)?r:Ja,C=null!=(n=null!=(l=b.input)?l:u.Input)?n:Za;return(0,xe.jsx)(Ga,(0,a.A)({slots:{root:A,input:C},slotProps:S,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:v},y,{classes:x}))}));Qa.muiName="Input";const ei=Qa,ti=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],ri=De(Xa,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Va(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const o="light"===e.palette.mode,n=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,a.A)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${sa.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${sa.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${sa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${sa.disabled}, .${sa.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${sa.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,a.A)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),oi=De(Ua,{name:"MuiFilledInput",slot:"Input",overridesResolver:qa})((({theme:e,ownerState:t})=>(0,a.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),ni=e.forwardRef((function(e,t){var r,o,n,l;const c=Le({props:e,name:"MuiFilledInput"}),{components:d={},componentsProps:u,fullWidth:p=!1,inputComponent:f="input",multiline:m=!1,slotProps:h,slots:g={},type:b="text"}=c,v=(0,i.A)(c,ti),y=(0,a.A)({},c,{fullWidth:p,inputComponent:f,multiline:m,type:b}),x=(e=>{const{classes:t,disableUnderline:r}=e,o=Me({root:["root",!r&&"underline"],input:["input"]},la,t);return(0,a.A)({},t,o)})(c),w={root:{ownerState:y},input:{ownerState:y}},S=(null!=h?h:u)?(0,s.A)(w,null!=h?h:u):w,A=null!=(r=null!=(o=g.root)?o:d.Root)?r:ri,C=null!=(n=null!=(l=g.input)?l:d.Input)?n:oi;return(0,xe.jsx)(Ga,(0,a.A)({slots:{root:A,input:C},componentsProps:S,fullWidth:p,inputComponent:f,multiline:m,ref:t,type:b},v,{classes:x}))}));ni.muiName="Input";const ai=ni;var ii;const li=["children","classes","className","label","notched"],si=De("fieldset",{shouldForwardProp:Be})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ci=De("legend",{shouldForwardProp:Be})((({ownerState:e,theme:t})=>(0,a.A)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,a.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})))),di=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ui=De(Xa,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Va})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,a.A)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ia.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ia.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ia.focused} .${ia.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ia.error} .${ia.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ia.disabled} .${ia.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,a.A)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),pi=De((function(e){const{className:t,label:r,notched:o}=e,n=(0,i.A)(e,li),l=null!=r&&""!==r,s=(0,a.A)({},e,{notched:o,withLabel:l});return(0,xe.jsx)(si,(0,a.A)({"aria-hidden":!0,className:t,ownerState:s},n,{children:(0,xe.jsx)(ci,{ownerState:s,children:l?(0,xe.jsx)("span",{children:r}):ii||(ii=(0,xe.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),fi=De(Ua,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qa})((({theme:e,ownerState:t})=>(0,a.A)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),mi=e.forwardRef((function(t,r){var o,n,l,s,c;const d=Le({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:p=!1,inputComponent:f="input",label:m,multiline:h=!1,notched:g,slots:b={},type:v="text"}=d,y=(0,i.A)(d,di),x=(e=>{const{classes:t}=e,r=Me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},aa,t);return(0,a.A)({},t,r)})(d),w=Rr(),S=Pr({props:d,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=(0,a.A)({},d,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:p,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:v}),C=null!=(o=null!=(n=b.root)?n:u.Root)?o:ui,k=null!=(l=null!=(s=b.input)?s:u.Input)?l:fi;return(0,xe.jsx)(Ga,(0,a.A)({slots:{root:C,input:k},renderSuffix:t=>(0,xe.jsx)(pi,{ownerState:A,className:x.notchedOutline,label:null!=m&&""!==m&&S.required?c||(c=(0,xe.jsxs)(e.Fragment,{children:[m," ","*"]})):m,notched:void 0!==g?g:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:f,multiline:h,ref:r,type:v},y,{classes:(0,a.A)({},x,{notchedOutline:null})}))}));mi.muiName="Input";const hi=mi;function gi(e){return Ee("MuiFormLabel",e)}const bi=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),vi=["children","className","color","component","disabled","error","filled","focused","required"],yi=De("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,a.A)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bi.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bi.error}`]:{color:(e.vars||e).palette.error.main}}))),xi=De("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${bi.error}`]:{color:(e.vars||e).palette.error.main}}))),wi=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiFormLabel"}),{children:o,className:n,component:l="label"}=r,s=(0,i.A)(r,vi),c=Pr({props:r,muiFormControl:Rr(),states:["color","required","focused","disabled","error","filled"]}),d=(0,a.A)({},r,{color:c.color||"primary",component:l,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=(e=>{const{classes:t,color:r,focused:o,disabled:n,error:a,filled:i,required:l}=e;return Me({root:["root",`color${Te(r)}`,n&&"disabled",a&&"error",i&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]},gi,t)})(d);return(0,xe.jsxs)(yi,(0,a.A)({as:l,ownerState:d,className:fe(u.root,n),ref:t},s,{children:[o,c.required&&(0,xe.jsxs)(xi,{ownerState:d,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function Si(e){return Ee("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Ai=["disableAnimation","margin","shrink","variant","className"],Ci=De(wi,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bi.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,a.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,a.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,a.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),ki=e.forwardRef((function(e,t){const r=Le({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,shrink:n,className:l}=r,s=(0,i.A)(r,Ai),c=Rr();let d=n;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const u=Pr({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p=(0,a.A)({},r,{disableAnimation:o,formControl:c,shrink:d,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=(e=>{const{classes:t,formControl:r,size:o,shrink:n,disableAnimation:i,variant:l,required:s}=e,c=Me({root:["root",r&&"formControl",!i&&"animated",n&&"shrink",o&&"normal"!==o&&`size${Te(o)}`,l],asterisk:[s&&"asterisk"]},Si,t);return(0,a.A)({},t,c)})(p);return(0,xe.jsx)(Ci,(0,a.A)({"data-shrink":d,ownerState:p,ref:t,className:fe(f.root,l)},s,{classes:f}))})),Ei=function(t,r){var o,n;return e.isValidElement(t)&&-1!==r.indexOf(null!=(o=t.type.muiName)?o:null==(n=t.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)};function Ri(e){return Ee("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Pi=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Oi=De("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,a.A)({},t.root,t[`margin${Te(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,a.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),$i=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiFormControl"}),{children:n,className:l,color:s="primary",component:c="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:f=!1,hiddenLabel:m=!1,margin:h="none",required:g=!1,size:b="medium",variant:v="outlined"}=o,y=(0,i.A)(o,Pi),x=(0,a.A)({},o,{color:s,component:c,disabled:d,error:u,fullWidth:f,hiddenLabel:m,margin:h,required:g,size:b,variant:v}),w=(e=>{const{classes:t,margin:r,fullWidth:o}=e;return Me({root:["root","none"!==r&&`margin${Te(r)}`,o&&"fullWidth"]},Ri,t)})(x),[S,A]=e.useState((()=>{let t=!1;return n&&e.Children.forEach(n,(e=>{if(!Ei(e,["Input","Select"]))return;const r=Ei(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)})),t})),[C,k]=e.useState((()=>{let t=!1;return n&&e.Children.forEach(n,(e=>{Ei(e,["Input","Select"])&&(_a(e.props,!0)||_a(e.props.inputProps,!0))&&(t=!0)})),t})),[E,R]=e.useState(!1);d&&E&&R(!1);const P=void 0===p||d?E:p;let O;const $=e.useMemo((()=>({adornedStart:S,setAdornedStart:A,color:s,disabled:d,error:u,filled:C,focused:P,fullWidth:f,hiddenLabel:m,size:b,onBlur:()=>{R(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{R(!0)},registerEffect:O,required:g,variant:v})),[S,s,d,u,C,P,f,m,O,g,b,v]);return(0,xe.jsx)(Er.Provider,{value:$,children:(0,xe.jsx)(Oi,(0,a.A)({as:c,ownerState:x,className:fe(w.root,l),ref:r},y,{children:n}))})}));function Mi(e){return Ee("MuiFormHelperText",e)}const Ti=Re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ii;const Ni=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ji=De("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,a.A)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ti.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ti.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),Li=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiFormHelperText"}),{children:o,className:n,component:l="p"}=r,s=(0,i.A)(r,Ni),c=Pr({props:r,muiFormControl:Rr(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,a.A)({},r,{component:l,contained:"filled"===c.variant||"outlined"===c.variant,variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),u=(e=>{const{classes:t,contained:r,size:o,disabled:n,error:a,filled:i,focused:l,required:s}=e;return Me({root:["root",n&&"disabled",a&&"error",o&&`size${Te(o)}`,r&&"contained",l&&"focused",i&&"filled",s&&"required"]},Mi,t)})(d);return(0,xe.jsx)(ji,(0,a.A)({as:l,ownerState:d,className:fe(u.root,n),ref:t},s,{children:" "===o?Ii||(Ii=(0,xe.jsx)("span",{className:"notranslate",children:"​"})):o}))})),zi=ho,Fi=["value"],Wi=e.createContext(),Bi=()=>{const t=e.useContext(Wi);return null!=t&&t},Di=function(e){let{value:t}=e,r=(0,i.A)(e,Fi);return(0,xe.jsx)(Wi.Provider,(0,a.A)({value:null==t||t},r))},_i=e.createContext({});function Hi(e){return Ee("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const Vi=["children","className","component","dense","disablePadding","subheader"],qi=De("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})=>(0,a.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Xi=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiList"}),{children:n,className:l,component:s="ul",dense:c=!1,disablePadding:d=!1,subheader:u}=o,p=(0,i.A)(o,Vi),f=e.useMemo((()=>({dense:c})),[c]),m=(0,a.A)({},o,{component:s,dense:c,disablePadding:d}),h=(e=>{const{classes:t,disablePadding:r,dense:o,subheader:n}=e;return Me({root:["root",!r&&"padding",o&&"dense",n&&"subheader"]},Hi,t)})(m);return(0,xe.jsx)(_i.Provider,{value:f,children:(0,xe.jsxs)(qi,(0,a.A)({as:s,className:fe(h.root,l),ref:r,ownerState:m},p,{children:[u,n]}))})}));function Ui(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Ki=Ui,Gi=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Yi(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ji(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Zi(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Qi(e,t,r,o,n,a){let i=!1,l=n(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!o&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Zi(l,a)&&!t)return l.focus(),!0;l=n(e,l,r)}return!1}const el=e.forwardRef((function(t,r){const{actions:o,autoFocus:n=!1,autoFocusItem:l=!1,children:s,className:c,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:p,variant:f="selectedMenu"}=t,m=(0,i.A)(t,Gi),h=e.useRef(null),g=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});za((()=>{n&&h.current.focus()}),[n]),e.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&r){const r=`${Ki(zi(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,h.current.style.width=`calc(100% + ${r})`}return h.current}})),[]);const b=Je(h,r);let v=-1;e.Children.forEach(s,((t,r)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===f&&t.props.selected||-1===v)&&(v=r),v===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(v+=1,v>=s.length&&(v=-1))):v===r&&(v+=1,v>=s.length&&(v=-1))}));const y=e.Children.map(s,((t,r)=>{if(r===v){const r={};return l&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===f&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return(0,xe.jsx)(Xi,(0,a.A)({role:"menu",ref:b,className:c,onKeyDown:e=>{const t=h.current,r=e.key,o=zi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qi(t,o,u,d,Yi);else if("ArrowUp"===r)e.preventDefault(),Qi(t,o,u,d,Ji);else if("Home"===r)e.preventDefault(),Qi(t,null,u,d,Yi);else if("End"===r)e.preventDefault(),Qi(t,null,u,d,Ji);else if(1===r.length){const n=g.current,a=r.toLowerCase(),i=performance.now();n.keys.length>0&&(i-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&a!==n.keys[0]&&(n.repeating=!1)),n.lastTime=i,n.keys.push(a);const l=o&&!n.repeating&&Zi(o,n);n.previousKeyMatched&&(l||Qi(t,o,!1,d,Yi,n))?e.preventDefault():n.previousKeyMatched=!1}p&&p(e)},tabIndex:n?0:-1},m,{children:y}))})),tl=Ta,rl=Ma;var ol="unmounted",nl="exited",al="entering",il="entered",ll="exiting",sl=function(e){function r(t,r){var o;o=e.call(this,t,r)||this;var n,a=r&&!r.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?a?(n=nl,o.appearStatus=al):n=il:n=t.unmountOnExit||t.mountOnEnter?ol:nl,o.state={status:n},o.nextCallback=null,o}mt(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ol?{status:nl}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==al&&r!==il&&(t=al):r!==al&&r!==il||(t=ll)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,o=this.props.timeout;return e=t=r=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,r=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===al){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===nl&&this.setState({status:ol})},o.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[n().findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||r?(this.props.onEnter(i,l),this.safeSetState({status:al},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:il},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:il},(function(){t.props.onEntered(i)}))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n().findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:ll},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:nl},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:nl},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(o){r&&(r=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n().findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===ol)return null;var r=this.props,o=r.children,n=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,i.A)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t().createElement(ht.Provider,{value:null},"function"==typeof o?o(e,n):t().cloneElement(t().Children.only(o),n))},r}(t().Component);function cl(){}sl.contextType=ht,sl.propTypes={},sl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cl,onEntering:cl,onEntered:cl,onExit:cl,onExiting:cl,onExited:cl},sl.UNMOUNTED=ol,sl.EXITED=nl,sl.ENTERING=al,sl.ENTERED=il,sl.EXITING=ll;const dl=sl;function ul(){const e=ye(Fe);return e[Ce]||e}const pl=e=>e.scrollTop;function fl(e,t){var r,o;const{timeout:n,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof n?n:n[t.mode]||0,easing:null!=(o=i.transitionTimingFunction)?o:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const ml=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hl(e){return`scale(${e}, ${e**2})`}const gl={entering:{opacity:1,transform:hl(1)},entered:{opacity:1,transform:"none"}},bl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vl=e.forwardRef((function(t,r){const{addEndListener:o,appear:n=!0,children:l,easing:s,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b="auto",TransitionComponent:v=dl}=t,y=(0,i.A)(t,ml),x=nt(),w=e.useRef(),S=ul(),A=e.useRef(null),C=Je(A,In(l),r),k=e=>t=>{if(e){const r=A.current;void 0===t?e(r):e(r,t)}},E=k(p),R=k(((e,t)=>{pl(e);const{duration:r,delay:o,easing:n}=fl({style:g,timeout:b,easing:s},{mode:"enter"});let a;"auto"===b?(a=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=a):a=r,e.style.transition=[S.transitions.create("opacity",{duration:a,delay:o}),S.transitions.create("transform",{duration:bl?a:.666*a,delay:o,easing:n})].join(","),d&&d(e,t)})),P=k(u),O=k(h),$=k((e=>{const{duration:t,delay:r,easing:o}=fl({style:g,timeout:b,easing:s},{mode:"exit"});let n;"auto"===b?(n=S.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=t,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:r}),S.transitions.create("transform",{duration:bl?n:.666*n,delay:bl?r:r||.333*n,easing:o})].join(","),e.style.opacity=0,e.style.transform=hl(.75),f&&f(e)})),M=k(m);return(0,xe.jsx)(v,(0,a.A)({appear:n,in:c,nodeRef:A,onEnter:R,onEntered:P,onEntering:E,onExit:$,onExited:M,onExiting:O,addEndListener:e=>{"auto"===b&&x.start(w.current||0,e),o&&o(A.current,e)},timeout:"auto"===b?null:b},y,{children:(t,r)=>e.cloneElement(l,(0,a.A)({style:(0,a.A)({opacity:0,transform:hl(.75),visibility:"exited"!==t||c?void 0:"hidden"},gl[t],g,l.props.style),ref:C},r))}))}));vl.muiSupportAuto=!0;const yl=vl,xl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wl(e){const t=[],r=[];return Array.from(e.querySelectorAll(xl)).forEach(((e,o)=>{const n=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==n&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===n?t.push(e):r.push({documentOrder:o,tabIndex:n,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Sl(){return!0}const Al=function(t){const{children:r,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:i=wl,isEnabled:l=Sl,open:s}=t,c=e.useRef(!1),d=e.useRef(null),u=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=e.useRef(!1),h=e.useRef(null),g=Ye(In(r),h),b=e.useRef(null);e.useEffect((()=>{s&&h.current&&(m.current=!o)}),[o,s]),e.useEffect((()=>{if(!s||!h.current)return;const e=ho(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{a||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!h.current)return;const e=ho(h.current),t=t=>{b.current=t,!n&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,a;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=b.current)?void 0:a.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[o,n,a,l,s,i]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const t=r.props.onFocus;t&&t(e)}}),(0,xe.jsx)("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})},Cl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],kl={entering:{opacity:1},entered:{opacity:1}},El=e.forwardRef((function(t,r){const o=ul(),n={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:c,easing:d,in:u,onEnter:p,onEntered:f,onEntering:m,onExit:h,onExited:g,onExiting:b,style:v,timeout:y=n,TransitionComponent:x=dl}=t,w=(0,i.A)(t,Cl),S=e.useRef(null),A=Je(S,In(c),r),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},k=C(m),E=C(((e,t)=>{pl(e);const r=fl({style:v,timeout:y,easing:d},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",r),e.style.transition=o.transitions.create("opacity",r),p&&p(e,t)})),R=C(f),P=C(b),O=C((e=>{const t=fl({style:v,timeout:y,easing:d},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),h&&h(e)})),$=C(g);return(0,xe.jsx)(x,(0,a.A)({appear:s,in:u,nodeRef:S,onEnter:E,onEntered:R,onEntering:k,onExit:O,onExited:$,onExiting:P,addEndListener:e=>{l&&l(S.current,e)},timeout:y},w,{children:(t,r)=>e.cloneElement(c,(0,a.A)({style:(0,a.A)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},kl[t],v,c.props.style),ref:A},r))}))}));function Rl(e){return Ee("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const Pl=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ol=De("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,a.A)({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"}))),$l=e.forwardRef((function(e,t){var r,o,n;const l=Le({props:e,name:"MuiBackdrop"}),{children:s,className:c,component:d="div",components:u={},componentsProps:p={},invisible:f=!1,open:m,slotProps:h={},slots:g={},TransitionComponent:b=El,transitionDuration:v}=l,y=(0,i.A)(l,Pl),x=(0,a.A)({},l,{component:d,invisible:f}),w=(e=>{const{classes:t,invisible:r}=e;return Me({root:["root",r&&"invisible"]},Rl,t)})(x),S=null!=(r=h.root)?r:p.root;return(0,xe.jsx)(b,(0,a.A)({in:m,timeout:v},y,{children:(0,xe.jsx)(Ol,(0,a.A)({"aria-hidden":!0},S,{as:null!=(o=null!=(n=g.root)?n:u.Root)?o:d,className:fe(w.root,c,null==S?void 0:S.className),ownerState:(0,a.A)({},x,null==S?void 0:S.ownerState),classes:w,ref:t,children:s}))}))}));function Ml(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Tl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Il(e){return parseInt(Ma(e).getComputedStyle(e).paddingRight,10)||0}function Nl(e,t,r,o,n){const a=[t,r,...o];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Tl(e,n)}))}function jl(e,t){let r=-1;return e.some(((e,o)=>!!t(e)&&(r=o,!0))),r}const Ll=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Tl(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Nl(t,e.mount,e.modalRef,o,!0);const n=jl(this.containers,(e=>e.container===t));return-1!==n?(this.containers[n].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),r)}mount(e,t){const r=jl(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];o.restore||(o.restore=function(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=ho(e);return t.body===e?Ma(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Ui(ho(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Il(o)+e}px`;const t=ho(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Il(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=ho(o).body;else{const t=o.parentElement,r=Ma(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:o}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(o,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const o=jl(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[o];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(r,1),0===n.modals.length)n.restore&&n.restore(),e.modalRef&&Tl(e.modalRef,t),Nl(n.container,e.mount,e.modalRef,n.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=n.modals[n.modals.length-1];e.modalRef&&Tl(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function zl(e){return Ee("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const Fl=["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"],Wl=De("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})=>(0,a.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bl=De($l,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dl=e.forwardRef((function(t,r){var o,n,l,s,c,d;const u=Le({name:"MuiModal",props:t}),{BackdropComponent:p=Bl,BackdropProps:f,className:m,closeAfterTransition:h=!1,children:g,container:b,component:v,components:y={},componentsProps:x={},disableAutoFocus:w=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:A=!1,disablePortal:C=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:O,open:$,slotProps:M,slots:T}=u,I=(0,i.A)(u,Fl),N=(0,a.A)({},u,{closeAfterTransition:h,disableAutoFocus:w,disableEnforceFocus:S,disableEscapeKeyDown:A,disablePortal:C,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:j,getBackdropProps:L,getTransitionProps:z,portalRef:F,isTopModal:W,exited:B,hasTransition:D}=function(t){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:i=Ll,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:u,open:p,rootRef:f}=t,m=e.useRef({}),h=e.useRef(null),g=e.useRef(null),b=Ye(g,f),[v,y]=e.useState(!p),x=function(e){return!!e&&e.props.hasOwnProperty("in")}(d);let w=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(w=!1);const S=()=>(m.current.modalRef=g.current,m.current.mount=h.current,m.current),A=()=>{i.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},C=Qe((()=>{const e=function(e){return"function"==typeof e?e():e}(r)||ho(h.current).body;i.add(S(),e),g.current&&A()})),k=e.useCallback((()=>i.isTopModal(S())),[i]),E=Qe((e=>{h.current=e,e&&(p&&k()?A():g.current&&Tl(g.current,w))})),R=e.useCallback((()=>{i.remove(S(),w)}),[w,i]);e.useEffect((()=>()=>{R()}),[R]),e.useEffect((()=>{p?C():x&&l||R()}),[p,R,x,l,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(o||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},O=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(e={})=>{const r=Rn(t);delete r.onTransitionEnter,delete r.onTransitionExited;const o=(0,a.A)({},r,e);return(0,a.A)({role:"presentation"},o,{onKeyDown:P(o),ref:b})},getBackdropProps:(e={})=>{const t=e;return(0,a.A)({"aria-hidden":!0},t,{onClick:O(t),open:p})},getTransitionProps:()=>({onEnter:Ml((()=>{y(!1),s&&s()}),null==d?void 0:d.props.onEnter),onExited:Ml((()=>{y(!0),c&&c(),l&&R()}),null==d?void 0:d.props.onExited)}),rootRef:b,portalRef:E,isTopModal:k,exited:v,hasTransition:x}}((0,a.A)({},N,{rootRef:r})),_=(0,a.A)({},N,{exited:B}),H=(e=>{const{open:t,exited:r,classes:o}=e;return Me({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},zl,o)})(_),V={};if(void 0===g.props.tabIndex&&(V.tabIndex="-1"),D){const{onEnter:e,onExited:t}=z();V.onEnter=e,V.onExited=t}const q=null!=(o=null!=(n=null==T?void 0:T.root)?n:y.Root)?o:Wl,X=null!=(l=null!=(s=null==T?void 0:T.backdrop)?s:y.Backdrop)?l:p,U=null!=(c=null==M?void 0:M.root)?c:x.root,K=null!=(d=null==M?void 0:M.backdrop)?d:x.backdrop,G=Tn({elementType:q,externalSlotProps:U,externalForwardedProps:I,getSlotProps:j,additionalProps:{ref:r,as:v},ownerState:_,className:fe(m,null==U?void 0:U.className,null==H?void 0:H.root,!_.open&&_.exited&&(null==H?void 0:H.hidden))}),Y=Tn({elementType:X,externalSlotProps:K,additionalProps:f,getSlotProps:e=>L((0,a.A)({},e,{onClick:t=>{O&&O(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fe(null==K?void 0:K.className,null==f?void 0:f.className,null==H?void 0:H.backdrop),ownerState:_});return P||$||D&&!B?(0,xe.jsx)(Nn,{ref:F,container:b,disablePortal:C,children:(0,xe.jsxs)(q,(0,a.A)({},G,{children:[!R&&p?(0,xe.jsx)(X,(0,a.A)({},Y)):null,(0,xe.jsx)(Al,{disableEnforceFocus:S,disableAutoFocus:w,disableRestoreFocus:k,isEnabled:W,open:$,children:e.cloneElement(g,V)})]}))}):null}));function _l(e){return Ee("MuiPopover",e)}Re("MuiPopover",["root","paper"]);const Hl=["onEntering"],Vl=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ql=["slotProps"];function Xl(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ul(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Kl(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Gl(e){return"function"==typeof e?e():e}const Yl=De(Dl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jl=De(Zt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Zl=e.forwardRef((function(t,r){var o,n,l;const s=Le({props:t,name:"MuiPopover"}),{action:c,anchorEl:d,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:f="anchorEl",children:m,className:h,container:g,elevation:b=8,marginThreshold:v=16,open:y,PaperProps:x={},slots:w,slotProps:S,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:C=yl,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=s,P=(0,i.A)(s.TransitionProps,Hl),O=(0,i.A)(s,Vl),$=null!=(o=null==S?void 0:S.paper)?o:x,M=e.useRef(),T=Je(M,$.ref),I=(0,a.A)({},s,{anchorOrigin:u,anchorReference:f,elevation:b,marginThreshold:v,externalPaperSlotProps:$,transformOrigin:A,TransitionComponent:C,transitionDuration:k,TransitionProps:P}),N=(e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"]},_l,t)})(I),j=e.useCallback((()=>{if("anchorPosition"===f)return p;const e=Gl(d),t=(e&&1===e.nodeType?e:zi(M.current).body).getBoundingClientRect();return{top:t.top+Xl(t,u.vertical),left:t.left+Ul(t,u.horizontal)}}),[d,u.horizontal,u.vertical,p,f]),L=e.useCallback((e=>({vertical:Xl(e,A.vertical),horizontal:Ul(e,A.horizontal)})),[A.horizontal,A.vertical]),z=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===f)return{top:null,left:null,transformOrigin:Kl(r)};const o=j();let n=o.top-r.vertical,a=o.left-r.horizontal;const i=n+t.height,l=a+t.width,s=rl(Gl(d)),c=s.innerHeight-v,u=s.innerWidth-v;if(null!==v&&n<v){const e=n-v;n-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;n-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(l>u){const e=l-u;a-=e,r.horizontal+=e}return{top:`${Math.round(n)}px`,left:`${Math.round(a)}px`,transformOrigin:Kl(r)}}),[d,f,j,L,v]),[F,W]=e.useState(y),B=e.useCallback((()=>{const e=M.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,W(!0)}),[z]);e.useEffect((()=>(R&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[d,R,B]),e.useEffect((()=>{y&&B()})),e.useImperativeHandle(c,(()=>y?{updatePosition:()=>{B()}}:null),[y,B]),e.useEffect((()=>{if(!y)return;const e=tl((()=>{B()})),t=rl(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,y,B]);let D=k;"auto"!==k||C.muiSupportAuto||(D=void 0);const _=g||(d?zi(Gl(d)).body:void 0),H=null!=(n=null==w?void 0:w.root)?n:Yl,V=null!=(l=null==w?void 0:w.paper)?l:Jl,q=Tn({elementType:V,externalSlotProps:(0,a.A)({},$,{style:F?$.style:(0,a.A)({},$.style,{opacity:0})}),additionalProps:{elevation:b,ref:T},ownerState:I,className:fe(N.paper,null==$?void 0:$.className)}),X=Tn({elementType:H,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:O,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:_,open:y},ownerState:I,className:fe(N.root,h)}),{slotProps:U}=X,K=(0,i.A)(X,ql);return(0,xe.jsx)(H,(0,a.A)({},K,!kn(H)&&{slotProps:U,disableScrollLock:R},{children:(0,xe.jsx)(C,(0,a.A)({appear:!0,in:y,onEntering:(e,t)=>{E&&E(e,t),B()},onExited:()=>{W(!1)},timeout:D},P,{children:(0,xe.jsx)(V,(0,a.A)({},q,{children:m}))}))}))}));function Ql(e){return Ee("MuiMenu",e)}Re("MuiMenu",["root","paper","list"]);const es=["onEntering"],ts=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rs={vertical:"top",horizontal:"right"},os={vertical:"top",horizontal:"left"},ns=De(Zl,{shouldForwardProp:e=>Be(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),as=De(Jl,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),is=De(el,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ls=e.forwardRef((function(t,r){var o,n;const l=Le({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:d,disableAutoFocusItem:u=!1,MenuListProps:p={},onClose:f,open:m,PaperProps:h={},PopoverClasses:g,transitionDuration:b="auto",TransitionProps:{onEntering:v}={},variant:y="selectedMenu",slots:x={},slotProps:w={}}=l,S=(0,i.A)(l.TransitionProps,es),A=(0,i.A)(l,ts),C=Bi(),k=(0,a.A)({},l,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:p,onEntering:v,PaperProps:h,transitionDuration:b,TransitionProps:S,variant:y}),E=(e=>{const{classes:t}=e;return Me({root:["root"],paper:["paper"],list:["list"]},Ql,t)})(k),R=s&&!u&&m,P=e.useRef(null);let O=-1;e.Children.map(c,((t,r)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===y&&t.props.selected||-1===O)&&(O=r))}));const $=null!=(o=x.paper)?o:as,M=null!=(n=w.paper)?n:h,T=Tn({elementType:x.root,externalSlotProps:w.root,ownerState:k,className:[E.root,d]}),I=Tn({elementType:$,externalSlotProps:M,ownerState:k,className:E.paper});return(0,xe.jsx)(ns,(0,a.A)({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?rs:os,slots:{paper:$,root:x.root},slotProps:{root:T,paper:I},open:m,ref:r,transitionDuration:b,TransitionProps:(0,a.A)({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),v&&v(e,t)}},S),ownerState:k},A,{classes:g,children:(0,xe.jsx)(is,(0,a.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:P,autoFocus:s&&(-1===O||u),autoFocusItem:R,variant:y},p,{className:fe(E.list,p.className),children:c}))}))}));function ss(e){return Ee("MuiNativeSelect",e)}const cs=Re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ds=["className","disabled","error","IconComponent","inputRef","variant"],us=({ownerState:e,theme:t})=>(0,a.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,a.A)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${cs.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ps=De("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Be,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${cs.multiple}`]:t.multiple}]}})(us),fs=({ownerState:e,theme:t})=>(0,a.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cs.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ms=De("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(fs),hs=e.forwardRef((function(t,r){const{className:o,disabled:n,error:l,IconComponent:s,inputRef:c,variant:d="standard"}=t,u=(0,i.A)(t,ds),p=(0,a.A)({},t,{disabled:n,variant:d,error:l}),f=(e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:a,error:i}=e;return Me({select:["select",r,o&&"disabled",n&&"multiple",i&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",o&&"disabled"]},ss,t)})(p);return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(ps,(0,a.A)({ownerState:p,className:fe(f.select,o),disabled:n,ref:c||r},u)),t.multiple?null:(0,xe.jsx)(ms,{as:s,ownerState:p,className:f.icon})]})})),gs=io;function bs(e){return Ee("MuiSelect",e)}const vs=Re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ys;const xs=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ws=De("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vs.select}`]:t.select},{[`&.${vs.select}`]:t[r.variant]},{[`&.${vs.error}`]:t.error},{[`&.${vs.multiple}`]:t.multiple}]}})(us,{[`&.${vs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ss=De("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Te(r.variant)}`],r.open&&t.iconOpen]}})(fs),As=De("input",{shouldForwardProp:e=>We(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cs(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ks(e){return null==e||"string"==typeof e&&!e.trim()}const Es=e.forwardRef((function(t,r){var o;const{"aria-describedby":n,"aria-label":s,autoFocus:c,autoWidth:d,children:u,className:p,defaultOpen:f,defaultValue:m,disabled:h,displayEmpty:g,error:b=!1,IconComponent:v,inputRef:y,labelId:x,MenuProps:w={},multiple:S,name:A,onBlur:C,onChange:k,onClose:E,onFocus:R,onOpen:P,open:O,readOnly:$,renderValue:M,SelectDisplayProps:T={},tabIndex:I,value:N,variant:j="standard"}=t,L=(0,i.A)(t,xs),[z,F]=gs({controlled:N,default:m,name:"Select"}),[W,B]=gs({controlled:O,default:f,name:"Select"}),D=e.useRef(null),_=e.useRef(null),[H,V]=e.useState(null),{current:q}=e.useRef(null!=O),[X,U]=e.useState(),K=Je(r,y),G=e.useCallback((e=>{_.current=e,e&&V(e)}),[]),Y=null==H?void 0:H.parentNode;e.useImperativeHandle(K,(()=>({focus:()=>{_.current.focus()},node:D.current,value:z})),[z]),e.useEffect((()=>{f&&W&&H&&!q&&(U(d?null:Y.clientWidth),_.current.focus())}),[H,d]),e.useEffect((()=>{c&&_.current.focus()}),[c]),e.useEffect((()=>{if(!x)return;const e=zi(_.current).getElementById(x);if(e){const t=()=>{getSelection().isCollapsed&&_.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[x]);const J=(e,t)=>{e?P&&P(t):E&&E(t),q||(U(d?null:Y.clientWidth),B(e))},Z=e.Children.toArray(u),Q=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(S){r=Array.isArray(z)?z.slice():[];const t=z.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),z!==r&&(F(r),k)){const o=t.nativeEvent||t,n=new o.constructor(o.type,o);Object.defineProperty(n,"target",{writable:!0,value:{value:r,name:A}}),k(n,e)}S||J(!1,t)}},ee=null!==H&&W;let te,re;delete L["aria-invalid"];const oe=[];let ne=!1,ae=!1;(_a({value:z})||g)&&(M?te=M(z):ne=!0);const ie=Z.map((t=>{if(!e.isValidElement(t))return null;let r;if(S){if(!Array.isArray(z))throw new Error((0,l.A)(2));r=z.some((e=>Cs(e,t.props.value))),r&&ne&&oe.push(t.props.children)}else r=Cs(z,t.props.value),r&&ne&&(re=t.props.children);return r&&(ae=!0),e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:Q(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})}));ne&&(te=S?0===oe.length?null:oe.reduce(((e,t,r)=>(e.push(t),r<oe.length-1&&e.push(", "),e)),[]):re);let le,se=X;!d&&q&&H&&(se=Y.clientWidth),le=void 0!==I?I:h?null:0;const ce=T.id||(A?`mui-component-select-${A}`:void 0),de=(0,a.A)({},t,{variant:j,value:z,open:ee,error:b}),ue=(e=>{const{classes:t,variant:r,disabled:o,multiple:n,open:a,error:i}=e;return Me({select:["select",r,o&&"disabled",n&&"multiple",i&&"error"],icon:["icon",`icon${Te(r)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},bs,t)})(de),pe=(0,a.A)({},w.PaperProps,null==(o=w.slotProps)?void 0:o.paper),me=ao();return(0,xe.jsxs)(e.Fragment,{children:[(0,xe.jsx)(ws,(0,a.A)({ref:G,tabIndex:le,role:"combobox","aria-controls":me,"aria-disabled":h?"true":void 0,"aria-expanded":ee?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[x,ce].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{$||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))},onMouseDown:h||$?null:e=>{0===e.button&&(e.preventDefault(),_.current.focus(),J(!0,e))},onBlur:e=>{!ee&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:A}}),C(e))},onFocus:R},T,{ownerState:de,className:fe(T.className,ue.select,p),id:ce,children:ks(te)?ys||(ys=(0,xe.jsx)("span",{className:"notranslate",children:"​"})):te})),(0,xe.jsx)(As,(0,a.A)({"aria-invalid":b,value:Array.isArray(z)?z.join(","):z,name:A,ref:D,"aria-hidden":!0,onChange:e=>{const t=Z.find((t=>t.props.value===e.target.value));void 0!==t&&(F(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:h,className:ue.nativeInput,autoFocus:c,ownerState:de},L)),(0,xe.jsx)(Ss,{as:v,className:ue.icon,ownerState:de}),(0,xe.jsx)(ls,(0,a.A)({id:`menu-${A||""}`,anchorEl:Y,open:ee,onClose:e=>{J(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:(0,a.A)({"aria-labelledby":x,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:me},w.MenuListProps),slotProps:(0,a.A)({},w.slotProps,{paper:(0,a.A)({},pe,{style:(0,a.A)({minWidth:se},null!=pe?pe.style:null)})}),children:ie}))]})})),Rs=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ps=["root"],Os={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Be(e)&&"variant"!==e,slot:"Root"},$s=De(ei,Os)(""),Ms=De(hi,Os)(""),Ts=De(ai,Os)(""),Is=e.forwardRef((function(t,r){const o=Le({name:"MuiSelect",props:t}),{autoWidth:n=!1,children:l,classes:c={},className:d,defaultOpen:u=!1,displayEmpty:p=!1,IconComponent:f=da,id:m,input:h,inputProps:g,label:b,labelId:v,MenuProps:y,multiple:x=!1,native:w=!1,onClose:S,onOpen:A,open:C,renderValue:k,SelectDisplayProps:E,variant:R="outlined"}=o,P=(0,i.A)(o,Rs),O=w?hs:Es,$=Pr({props:o,muiFormControl:Rr(),states:["variant","error"]}),M=$.variant||R,T=(0,a.A)({},o,{variant:M,classes:c}),I=(e=>{const{classes:t}=e;return t})(T),N=(0,i.A)(I,Ps),j=h||{standard:(0,xe.jsx)($s,{ownerState:T}),outlined:(0,xe.jsx)(Ms,{label:b,ownerState:T}),filled:(0,xe.jsx)(Ts,{ownerState:T})}[M],L=Je(r,In(j));return(0,xe.jsx)(e.Fragment,{children:e.cloneElement(j,(0,a.A)({inputComponent:O,inputProps:(0,a.A)({children:l,error:$.error,IconComponent:f,variant:M,type:void 0,multiple:x},w?{id:m}:{autoWidth:n,defaultOpen:u,displayEmpty:p,labelId:v,MenuProps:y,onClose:S,onOpen:A,open:C,renderValue:k,SelectDisplayProps:(0,a.A)({id:m},E)},g,{classes:g?(0,s.A)(N,g.classes):N},h?h.props.inputProps:{})},(x&&w||p)&&"outlined"===M?{notched:!0}:{},{ref:L,className:fe(j.props.className,d,I.root)},!h&&{variant:M},P))})}));Is.muiName="Select";const Ns=Is;function js(e){return Ee("MuiTextField",e)}Re("MuiTextField",["root"]);const Ls=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],zs={standard:ei,filled:ai,outlined:hi},Fs=De($i,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ws=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:n=!1,children:l,className:s,color:c="primary",defaultValue:d,disabled:u=!1,error:p=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:h,id:g,InputLabelProps:b,inputProps:v,InputProps:y,inputRef:x,label:w,maxRows:S,minRows:A,multiline:C=!1,name:k,onBlur:E,onChange:R,onFocus:P,placeholder:O,required:$=!1,rows:M,select:T=!1,SelectProps:I,type:N,value:j,variant:L="outlined"}=r,z=(0,i.A)(r,Ls),F=(0,a.A)({},r,{autoFocus:n,color:c,disabled:u,error:p,fullWidth:m,multiline:C,required:$,select:T,variant:L}),W=(e=>{const{classes:t}=e;return Me({root:["root"]},js,t)})(F),B={};"outlined"===L&&(b&&void 0!==b.shrink&&(B.notched=b.shrink),B.label=w),T&&(I&&I.native||(B.id=void 0),B["aria-describedby"]=void 0);const D=ao(g),_=h&&D?`${D}-helper-text`:void 0,H=w&&D?`${D}-label`:void 0,V=zs[L],q=(0,xe.jsx)(V,(0,a.A)({"aria-describedby":_,autoComplete:o,autoFocus:n,defaultValue:d,fullWidth:m,multiline:C,name:k,rows:M,maxRows:S,minRows:A,type:N,value:j,id:D,inputRef:x,onBlur:E,onChange:R,onFocus:P,placeholder:O,inputProps:v},B,y));return(0,xe.jsxs)(Fs,(0,a.A)({className:fe(W.root,s),disabled:u,error:p,fullWidth:m,ref:t,required:$,color:c,variant:L,ownerState:F},z,{children:[null!=w&&""!==w&&(0,xe.jsx)(ki,(0,a.A)({htmlFor:D,id:H},b,{children:w})),T?(0,xe.jsx)(Ns,(0,a.A)({"aria-describedby":_,id:D,labelId:H,value:j,input:q},I,{children:l})):q,h&&(0,xe.jsx)(Li,(0,a.A)({id:_},f,{children:h}))]}))})),Bs=e.createContext(null);function Ds(){return e.useContext(Bs)}const _s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Hs=function(t){const{children:r,theme:o}=t,n=Ds(),i=e.useMemo((()=>{const e=null===n?o:function(e,t){return"function"==typeof t?t(e):(0,a.A)({},e,t)}(n,o);return null!=e&&(e[_s]=null!==n),e}),[o,n]);return(0,xe.jsx)(Bs.Provider,{value:i,children:r})},Vs={};function qs(t,r,o,n=!1){return e.useMemo((()=>{const e=t&&r[t]||r;if("function"==typeof o){const i=o(e),l=t?(0,a.A)({},r,{[t]:i}):i;return n?()=>l:l}return t?(0,a.A)({},r,{[t]:o}):(0,a.A)({},r,o)}),[t,r,o,n])}const Xs=function(e){const{children:t,theme:r,themeId:o}=e,n=be(Vs),a=Ds()||Vs,i=qs(o,n,r),l=qs(o,a,r,!0),s="rtl"===i.direction;return(0,xe.jsx)(Hs,{theme:l,children:(0,xe.jsx)(ge.T.Provider,{value:i,children:(0,xe.jsx)(Di,{value:s,children:(0,xe.jsx)(je,{value:null==i?void 0:i.components,children:t})})})})},Us=["theme"];function Ks(e){let{theme:t}=e,r=(0,i.A)(e,Us);const o=t[Ce];return(0,xe.jsx)(Xs,(0,a.A)({},r,{themeId:o?Ce:void 0,theme:o||t}))}let Gs;function Ys(){if(Gs)return Gs;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Gs="reverse",e.scrollLeft>0?Gs="default":(e.scrollLeft=1,0===e.scrollLeft&&(Gs="negative")),document.body.removeChild(e),Gs}function Js(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Ys()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Zs(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Qs=["onChange"],ec={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},tc=Ue((0,xe.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),rc=Ue((0,xe.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function oc(e){return Ee("MuiTabScrollButton",e)}const nc=Re("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ac=["className","slots","slotProps","direction","orientation","disabled"],ic=De(Bt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>(0,a.A)({width:40,flexShrink:0,opacity:.8,[`&.${nc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),lc=e.forwardRef((function(e,t){var r,o;const n=Le({props:e,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d}=n,u=(0,i.A)(n,ac),p=Bi(),f=(0,a.A)({isRtl:p},n),m=(e=>{const{classes:t,orientation:r,disabled:o}=e;return Me({root:["root",r,o&&"disabled"]},oc,t)})(f),h=null!=(r=s.StartScrollButtonIcon)?r:tc,g=null!=(o=s.EndScrollButtonIcon)?o:rc,b=Tn({elementType:h,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=Tn({elementType:g,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return(0,xe.jsx)(ic,(0,a.A)({component:"div",className:fe(m.root,l),ref:t,role:null,ownerState:f,tabIndex:null},u,{children:"left"===d?(0,xe.jsx)(h,(0,a.A)({},b)):(0,xe.jsx)(g,(0,a.A)({},v))}))}));function sc(e){return Ee("MuiTabs",e)}const cc=Re("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),dc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],uc=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,pc=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,fc=(e,t,r)=>{let o=!1,n=r(e,t);for(;n;){if(n===e.firstChild){if(o)return;o=!0}const t=n.disabled||"true"===n.getAttribute("aria-disabled");if(n.hasAttribute("tabindex")&&!t)return void n.focus();n=r(e,n)}},mc=De("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${cc.scrollButtons}`]:t.scrollButtons},{[`& .${cc.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,a.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${cc.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),hc=De("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,a.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),gc=De("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>(0,a.A)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),bc=De("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,a.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),vc=De((function(t){const{onChange:r}=t,o=(0,i.A)(t,Qs),n=e.useRef(),l=e.useRef(null),s=()=>{n.current=l.current.offsetHeight-l.current.clientHeight};return za((()=>{const e=tl((()=>{const e=n.current;s(),e!==n.current&&r(n.current)})),t=rl(l.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r]),e.useEffect((()=>{s(),r(n.current)}),[r]),(0,xe.jsx)("div",(0,a.A)({style:ec},o,{ref:l}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yc={},xc=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiTabs"}),n=ul(),l=Bi(),{"aria-label":s,"aria-labelledby":c,action:d,centered:u=!1,children:p,className:f,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:b,orientation:v="horizontal",ScrollButtonComponent:y=lc,scrollButtons:x="auto",selectionFollowsFocus:w,slots:S={},slotProps:A={},TabIndicatorProps:C={},TabScrollButtonProps:k={},textColor:E="primary",value:R,variant:P="standard",visibleScrollbar:O=!1}=o,$=(0,i.A)(o,dc),M="scrollable"===P,T="vertical"===v,I=T?"scrollTop":"scrollLeft",N=T?"top":"left",j=T?"bottom":"right",L=T?"clientHeight":"clientWidth",z=T?"height":"width",F=(0,a.A)({},o,{component:m,allowScrollButtonsMobile:h,indicatorColor:g,orientation:v,vertical:T,scrollButtons:x,textColor:E,variant:P,visibleScrollbar:O,fixed:!M,hideScrollbar:M&&!O,scrollableX:M&&!T,scrollableY:M&&T,centered:u&&!M,scrollButtonsHideMobile:!h}),W=(e=>{const{vertical:t,fixed:r,hideScrollbar:o,scrollableX:n,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return Me({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},sc,s)})(F),B=Tn({elementType:S.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:F}),D=Tn({elementType:S.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:F}),[_,H]=e.useState(!1),[V,q]=e.useState(yc),[X,U]=e.useState(!1),[K,G]=e.useState(!1),[Y,J]=e.useState(!1),[Z,Q]=e.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=e.useRef(null),re=e.useRef(null),oe=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Js(e,l?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==R){const e=re.current.children;if(e.length>0){const t=e[ee.get(R)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},ne=et((()=>{const{tabsMeta:e,tabMeta:t}=oe();let r,o=0;if(T)r="top",t&&e&&(o=t.top-e.top+e.scrollTop);else if(r=l?"right":"left",t&&e){const n=l?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;o=(l?-1:1)*(t[r]-e[r]+n)}const n={[r]:o,[z]:t?t[z]:0};if(isNaN(V[r])||isNaN(V[z]))q(n);else{const e=Math.abs(V[r]-n[r]),t=Math.abs(V[z]-n[z]);(e>=1||t>=1)&&q(n)}})),ae=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},n=()=>{}){const{ease:a=Zs,duration:i=300}=o;let l=null;const s=t[e];let c=!1;const d=o=>{if(c)return void n(new Error("Animation cancelled"));null===l&&(l=o);const u=Math.min(1,(o-l)/i);t[e]=a(u)*(r-s)+s,u>=1?requestAnimationFrame((()=>{n(null)})):requestAnimationFrame(d)};s===r?n(new Error("Element already at target position")):requestAnimationFrame(d)}(I,te.current,e,{duration:n.transitions.duration.standard}):te.current[I]=e},ie=e=>{let t=te.current[I];T?t+=e:(t+=e*(l?-1:1),t*=l&&"reverse"===Ys()?-1:1),ae(t)},le=()=>{const e=te.current[L];let t=0;const r=Array.from(re.current.children);for(let o=0;o<r.length;o+=1){const n=r[o];if(t+n[L]>e){0===o&&(t=e);break}t+=n[L]}return t},se=()=>{ie(-1*le())},ce=()=>{ie(le())},de=e.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=et((e=>{const{tabsMeta:t,tabMeta:r}=oe();if(r&&t)if(r[N]<t[N]){const o=t[I]+(r[N]-t[N]);ae(o,{animation:e})}else if(r[j]>t[j]){const o=t[I]+(r[j]-t[j]);ae(o,{animation:e})}})),pe=et((()=>{M&&!1!==x&&J(!Y)}));e.useEffect((()=>{const e=tl((()=>{te.current&&ne()}));let t;const r=rl(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver((r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()})),o.observe(re.current,{childList:!0})),()=>{var n,a;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(a=t)||a.disconnect()}}),[ne,pe]),e.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&M&&!1!==x){const r=e[0],o=e[t-1],n={root:te.current,threshold:.99},a=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),n);a.observe(r);const i=new IntersectionObserver((e=>{G(!e[0].isIntersecting)}),n);return i.observe(o),()=>{a.disconnect(),i.disconnect()}}}),[M,x,Y,null==p?void 0:p.length]),e.useEffect((()=>{H(!0)}),[]),e.useEffect((()=>{ne()})),e.useEffect((()=>{ue(yc!==V)}),[ue,V]),e.useImperativeHandle(d,(()=>({updateIndicator:ne,updateScrollButtons:pe})),[ne,pe]);const me=(0,xe.jsx)(bc,(0,a.A)({},C,{className:fe(W.indicator,C.className),ownerState:F,style:(0,a.A)({},V,C.style)}));let he=0;const ge=e.Children.map(p,(t=>{if(!e.isValidElement(t))return null;const r=void 0===t.props.value?he:t.props.value;ee.set(r,he);const o=r===R;return he+=1,e.cloneElement(t,(0,a.A)({fullWidth:"fullWidth"===P,indicator:o&&!_&&me,selected:o,selectionFollowsFocus:w,onChange:b,textColor:E,value:r},1!==he||!1!==R||t.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=M?(0,xe.jsx)(vc,{onChange:de,className:fe(W.scrollableX,W.hideScrollbar)}):null;const t=M&&("auto"===x&&(X||K)||!0===x);return e.scrollButtonStart=t?(0,xe.jsx)(y,(0,a.A)({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:B},orientation:v,direction:l?"right":"left",onClick:se,disabled:!X},k,{className:fe(W.scrollButtons,k.className)})):null,e.scrollButtonEnd=t?(0,xe.jsx)(y,(0,a.A)({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:v,direction:l?"left":"right",onClick:ce,disabled:!K},k,{className:fe(W.scrollButtons,k.className)})):null,e})();return(0,xe.jsxs)(mc,(0,a.A)({className:fe(W.root,f),ownerState:F,ref:r,as:m},$,{children:[be.scrollButtonStart,be.scrollbarSizeListener,(0,xe.jsxs)(hc,{className:W.scroller,ownerState:F,style:{overflow:Z.overflow,[T?"margin"+(l?"Left":"Right"):"marginBottom"]:O?void 0:-Z.scrollbarWidth},ref:te,children:[(0,xe.jsx)(gc,{"aria-label":s,"aria-labelledby":c,"aria-orientation":"vertical"===v?"vertical":null,className:W.flexContainer,ownerState:F,onKeyDown:e=>{const t=re.current,r=zi(t).activeElement;if("tab"!==r.getAttribute("role"))return;let o="horizontal"===v?"ArrowLeft":"ArrowUp",n="horizontal"===v?"ArrowRight":"ArrowDown";switch("horizontal"===v&&l&&(o="ArrowRight",n="ArrowLeft"),e.key){case o:e.preventDefault(),fc(t,r,pc);break;case n:e.preventDefault(),fc(t,r,uc);break;case"Home":e.preventDefault(),fc(t,null,uc);break;case"End":e.preventDefault(),fc(t,null,pc)}},ref:re,role:"tablist",children:ge}),_&&me]}),be.scrollButtonEnd]}))}));function wc(e){return Ee("MuiTab",e)}const Sc=Re("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ac=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Cc=De(Bt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Te(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Sc.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>(0,a.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Sc.iconWrapper}`]:(0,a.A)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Sc.selected}`]:{opacity:1},[`&.${Sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Sc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Sc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Sc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Sc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),kc=e.forwardRef((function(t,r){const o=Le({props:t,name:"MuiTab"}),{className:n,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:c,icon:d,iconPosition:u="top",indicator:p,label:f,onChange:m,onClick:h,onFocus:g,selected:b,selectionFollowsFocus:v,textColor:y="inherit",value:x,wrapped:w=!1}=o,S=(0,i.A)(o,Ac),A=(0,a.A)({},o,{disabled:l,disableFocusRipple:s,selected:b,icon:!!d,iconPosition:u,label:!!f,fullWidth:c,textColor:y,wrapped:w}),C=(e=>{const{classes:t,textColor:r,fullWidth:o,wrapped:n,icon:a,label:i,selected:l,disabled:s}=e;return Me({root:["root",a&&i&&"labelIcon",`textColor${Te(r)}`,o&&"fullWidth",n&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},wc,t)})(A),k=d&&f&&e.isValidElement(d)?e.cloneElement(d,{className:fe(C.iconWrapper,d.props.className)}):d;return(0,xe.jsxs)(Cc,(0,a.A)({focusRipple:!s,className:fe(C.root,n),ref:r,role:"tab","aria-selected":b,disabled:l,onClick:e=>{!b&&m&&m(e,x),h&&h(e)},onFocus:e=>{v&&!b&&m&&m(e,x),g&&g(e)},ownerState:A,tabIndex:b?0:-1},S,{children:["top"===u||"start"===u?(0,xe.jsxs)(e.Fragment,{children:[k,f]}):(0,xe.jsxs)(e.Fragment,{children:[f,k]}),p]}))})),Ec=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Rc=["component","slots","slotProps"],Pc=["component"];function Oc(e,t){const{className:r,elementType:o,ownerState:n,externalForwardedProps:l,getSlotOwnerState:s,internalForwardedProps:c}=t,d=(0,i.A)(t,Ec),{component:u,slots:p={[e]:void 0},slotProps:f={[e]:void 0}}=l,m=(0,i.A)(l,Rc),h=p[e]||o,g=$n(f[e],n),b=On((0,a.A)({className:r},d,{externalForwardedProps:"root"===e?m:void 0,externalSlotProps:g})),{props:{component:v},internalRef:y}=b,x=(0,i.A)(b.props,Pc),w=Ye(y,null==g?void 0:g.ref,t.ref),S=s?s(x):{},A=(0,a.A)({},n,S),C="root"===e?v||u:v,k=En(h,(0,a.A)({},"root"===e&&!u&&!p[e]&&c,"root"!==e&&!p[e]&&c,x,C&&{as:C},{ref:w}),A);return Object.keys(S).forEach((e=>{delete k[e]})),[h,k]}function $c(e){return Ee("MuiAlert",e)}const Mc=Re("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Tc=Ue((0,xe.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ic=Ue((0,xe.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Nc=Ue((0,xe.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),jc=Ue((0,xe.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Lc=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],zc=De(Zt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Te(r.color||r.severity)}`]]}})((({theme:e})=>{const t="light"===e.palette.mode?p.e$:p.a,r="light"===e.palette.mode?p.a:p.e$;return(0,a.A)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${Mc.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Mc.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}}))),...Object.entries(e.palette).filter((([,e])=>e.main&&e.dark)).map((([t])=>({props:{colorSeverity:t,variant:"filled"},style:(0,a.A)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)})})))]})})),Fc=De("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Wc=De("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Bc=De("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Dc={success:(0,xe.jsx)(Tc,{fontSize:"inherit"}),warning:(0,xe.jsx)(Ic,{fontSize:"inherit"}),error:(0,xe.jsx)(Nc,{fontSize:"inherit"}),info:(0,xe.jsx)(jc,{fontSize:"inherit"})},_c=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiAlert"}),{action:o,children:n,className:l,closeText:s="Close",color:c,components:d={},componentsProps:u={},icon:p,iconMapping:f=Dc,onClose:m,role:h="alert",severity:g="success",slotProps:b={},slots:v={},variant:y="standard"}=r,x=(0,i.A)(r,Lc),w=(0,a.A)({},r,{color:c,severity:g,variant:y,colorSeverity:c||g}),S=(e=>{const{variant:t,color:r,severity:o,classes:n}=e;return Me({root:["root",`color${Te(r||o)}`,`${t}${Te(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},$c,n)})(w),A={slots:(0,a.A)({closeButton:d.CloseButton,closeIcon:d.CloseIcon},v),slotProps:(0,a.A)({},u,b)},[C,k]=Oc("closeButton",{elementType:ea,externalForwardedProps:A,ownerState:w}),[E,R]=Oc("closeIcon",{elementType:ca,externalForwardedProps:A,ownerState:w});return(0,xe.jsxs)(zc,(0,a.A)({role:h,elevation:0,ownerState:w,className:fe(S.root,l),ref:t},x,{children:[!1!==p?(0,xe.jsx)(Fc,{ownerState:w,className:S.icon,children:p||f[g]||Dc[g]}):null,(0,xe.jsx)(Wc,{ownerState:w,className:S.message,children:n}),null!=o?(0,xe.jsx)(Bc,{ownerState:w,className:S.action,children:o}):null,null==o&&m?(0,xe.jsx)(Bc,{ownerState:w,className:S.action,children:(0,xe.jsx)(C,(0,a.A)({size:"small","aria-label":s,title:s,color:"inherit",onClick:m},k,{children:(0,xe.jsx)(E,(0,a.A)({fontSize:"small"},R))}))}):null]}))}));function Hc(e){return Ee("MuiCardContent",e)}Re("MuiCardContent",["root"]);const Vc=["className","component"],qc=De("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),Xc=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiCardContent"}),{className:o,component:n="div"}=r,l=(0,i.A)(r,Vc),s=(0,a.A)({},r,{component:n}),c=(e=>{const{classes:t}=e;return Me({root:["root"]},Hc,t)})(s);return(0,xe.jsx)(qc,(0,a.A)({as:n,className:fe(c.root,o),ownerState:s,ref:t},l))}));function Uc(e){return Ee("PrivateSwitchBase",e)}Re("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Kc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Gc=De(Bt)((({ownerState:e})=>(0,a.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Yc=De("input",{shouldForwardProp:Be})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jc=e.forwardRef((function(e,t){const{autoFocus:r,checked:o,checkedIcon:n,className:l,defaultChecked:s,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:f,inputProps:m,inputRef:h,name:g,onBlur:b,onChange:v,onFocus:y,readOnly:x,required:w=!1,tabIndex:S,type:A,value:C}=e,k=(0,i.A)(e,Kc),[E,R]=gs({controlled:o,default:Boolean(s),name:"SwitchBase",state:"checked"}),P=Rr();let O=c;P&&void 0===O&&(O=P.disabled);const $="checkbox"===A||"radio"===A,M=(0,a.A)({},e,{checked:E,disabled:O,disableFocusRipple:d,edge:u}),T=(e=>{const{classes:t,checked:r,disabled:o,edge:n}=e;return Me({root:["root",r&&"checked",o&&"disabled",n&&`edge${Te(n)}`],input:["input"]},Uc,t)})(M);return(0,xe.jsxs)(Gc,(0,a.A)({component:"span",className:fe(T.root,l),centerRipple:!0,focusRipple:!d,disabled:O,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),P&&P.onFocus&&P.onFocus(e)},onBlur:e=>{b&&b(e),P&&P.onBlur&&P.onBlur(e)},ownerState:M,ref:t},k,{children:[(0,xe.jsx)(Yc,(0,a.A)({autoFocus:r,checked:o,defaultChecked:s,className:T.input,disabled:O,id:$?f:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),v&&v(e,t)},readOnly:x,ref:h,required:w,ownerState:M,tabIndex:S,type:A},"checkbox"===A&&void 0===C?{}:{value:C},m)),E?n:p]}))}));function Zc(e){return Ee("MuiSwitch",e)}const Qc=Re("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ed=["className","color","edge","size","sx"],td=De("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Te(r.edge)}`],t[`size${Te(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Qc.thumb}`]:{width:16,height:16},[`& .${Qc.switchBase}`]:{padding:4,[`&.${Qc.checked}`]:{transform:"translateX(16px)"}}}}]}),rd=De(Jc,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Qc.input}`]:t.input},"default"!==r.color&&t[`color${Te(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Qc.checked}`]:{transform:"translateX(20px)"},[`&.${Qc.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Qc.checked} + .${Qc.track}`]:{opacity:.5},[`&.${Qc.disabled} + .${Qc.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${Qc.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${Qc.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qc.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,p.a)(e.palette[t].main,.62):(0,p.e$)(e.palette[t].main,.55)}`}},[`&.${Qc.checked} + .${Qc.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),od=De("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),nd=De("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),ad=e.forwardRef((function(e,t){const r=Le({props:e,name:"MuiSwitch"}),{className:o,color:n="primary",edge:l=!1,size:s="medium",sx:c}=r,d=(0,i.A)(r,ed),u=(0,a.A)({},r,{color:n,edge:l,size:s}),p=(e=>{const{classes:t,edge:r,size:o,color:n,checked:i,disabled:l}=e,s=Me({root:["root",r&&`edge${Te(r)}`,`size${Te(o)}`],switchBase:["switchBase",`color${Te(n)}`,i&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},Zc,t);return(0,a.A)({},t,s)})(u),f=(0,xe.jsx)(nd,{className:p.thumb,ownerState:u});return(0,xe.jsxs)(td,{className:fe(p.root,o),sx:c,ownerState:u,children:[(0,xe.jsx)(rd,(0,a.A)({type:"checkbox",icon:f,checkedIcon:f,ref:t,ownerState:u},d,{classes:(0,a.A)({},p,{root:p.switchBase})})),(0,xe.jsx)(od,{className:p.track,ownerState:u})]})})),id=ue({palette:{primary:{main:"#2271b1",light:"#72aee6",dark:"#135e96"},secondary:{main:"#1d2327"},background:{default:"#f9f9f9",paper:"#fff"}},components:{MuiTab:{styleOverrides:{root:{textAlign:"left",justifyContent:"flex-start",fontSize:"14px",fontWeight:500,textTransform:"none",padding:"16px 20px",minHeight:"56px",width:"100%",maxWidth:"none",color:"#50575e","&:hover":{backgroundColor:"#f6f7f7",color:"#2271b1"},"&.Mui-selected":{backgroundColor:"#fff",color:"#2271b1",borderLeft:"4px solid #2271b1","&:hover":{backgroundColor:"#fff"}}}}},MuiButton:{styleOverrides:{root:{borderRadius:6,padding:"8px 18px",boxShadow:"none",minWidth:220,textTransform:"none",fontWeight:600,"&:hover":{backgroundColor:"#135e96",boxShadow:"none"}}}},MuiCard:{styleOverrides:{root:{boxShadow:"0 1px 2px rgba(0,0,0,0.08)",borderRadius:6,border:"1px solid #e0e0e0"}}}}}),ld=De(ad)((({theme:e})=>({width:42,height:20,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(22px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(22px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#2271b1"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:16,height:16,borderRadius:8,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:10,opacity:1,backgroundColor:"#E0E0E0",boxSizing:"border-box"}})));n().render((0,e.createElement)((()=>{const t=t=>(0,e.createElement)($e,{sx:{display:"flex",alignItems:"center",gap:1}},(0,e.createElement)("span",null,t),(0,e.createElement)(Ut,{size:"small",label:"PRO",color:"primary",variant:"outlined"})),r=({children:t})=>(0,e.createElement)($e,{sx:{position:"relative"}},(0,e.createElement)($e,{sx:{opacity:.85,pointerEvents:"none"}},t),(0,e.createElement)($e,{sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255,255,255,0.25)",backdropFilter:"blur(1px)",p:2}},(0,e.createElement)(rr,{sx:{p:3,maxWidth:460,textAlign:"center",border:"1px solid",borderColor:"primary.light"}},(0,e.createElement)(sr,{variant:"h6",sx:{fontWeight:700,mb:1}},"Available in PRO"),(0,e.createElement)(sr,{sx:{color:"text.secondary",mb:2}},"Upgrade to unlock bulk restrictions and order-based access rules."),(0,e.createElement)(vr,{variant:"contained",onClick:()=>window.open("https://versesofts.com","_blank")},"Contact for PRO Access")))),[o,n]=(0,e.useState)("global"),[a,i]=(0,e.useState)(null),[l,s]=(0,e.useState)({enabled:!1,selectedProducts:[],selectedCategories:[]}),[c,d]=(0,e.useState)({selectedRole:"",enabled:!1,selectedProducts:[],selectedCategories:[]}),[u,p]=(0,e.useState)({selectedCountry:"",enabled:!1,selectedProducts:[],selectedCategories:[]}),[f,m]=(0,e.useState)([]),[h,g]=(0,e.useState)([]),[b,v]=(0,e.useState)([]),[y,x]=(0,e.useState)([]),[w,S]=(0,e.useState)({roles:[],enabled:!1,selectedProducts:[],selectedCategories:[]}),[A,C]=(0,e.useState)({countries:[],enabled:!1,selectedProducts:[],selectedCategories:[]}),[k,E]=(0,e.useState)({enabled:!1,targetProducts:[],targetCategories:[],minTotalSpent:0,minOrderCount:0,requiredProducts:[]}),[R,P]=(0,e.useState)([]),[O,$]=(0,e.useState)([]);(0,e.useEffect)((()=>{(()=>{try{SRFWAPP.products&&m(SRFWAPP.products),SRFWAPP.categories&&g(SRFWAPP.categories),SRFWAPP.roles&&v(SRFWAPP.roles),SRFWAPP.countries&&x(SRFWAPP.countries),SRFWAPP.roleSettingsSummary&&P(Object.entries(SRFWAPP.roleSettingsSummary).map((([e,t])=>({key:e,...t})))),SRFWAPP.countrySettingsSummary&&$(Object.entries(SRFWAPP.countrySettingsSummary).map((([e,t])=>({code:e,...t})))),SRFWAPP.globalSettings&&s({enabled:!!SRFWAPP.globalSettings.enabled,selectedProducts:SRFWAPP.globalSettings.selectedProducts||[],selectedCategories:SRFWAPP.globalSettings.selectedCategories||[]})}catch(e){console.error("Error setting data from SRFWAPP:",e)}})(),(async()=>{try{const e=await fetch("/wp-json/srfw/v1/settings/get-saved-data",{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!e.ok)throw new Error("Network response was not ok");const t=await e.json();s({enabled:t?.enabled||!1,selectedProducts:t?.selectedProducts||[],selectedCategories:t?.selectedCategories||[]})}catch(e){console.error("Error fetching settings:",e),i({type:"error",message:"Error loading settings. Please try again."})}})(),(async()=>{try{const e=await fetch("/wp-json/srfw/v1/settings/order",{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(e.ok){const t=await e.json();E({enabled:!!t.enabled,targetProducts:t.targetProducts||[],targetCategories:t.targetCategories||[],minTotalSpent:t.minTotalSpent||0,minOrderCount:t.minOrderCount||0,requiredProducts:t.requiredProducts||[]})}}catch(e){}})()}),[]),(0,e.useEffect)((()=>{}),[c,b,y]);const M=async e=>{try{const t=await fetch(`/wp-json/srfw/v1/settings/role/${e}`,{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to fetch role settings");const r=await t.json();d((t=>({...t,selectedRole:e,enabled:r.enabled||!1,selectedProducts:r.selectedProducts||[],selectedCategories:r.selectedCategories||[]})))}catch(e){console.error("Error fetching role settings:",e),i({type:"error",message:"Error loading role settings"})}};return(0,e.createElement)(Ks,{theme:id},(0,e.createElement)($e,{sx:{display:"flex",minHeight:"calc(100vh - 32px)",backgroundColor:"background.default",margin:"20px"}},(0,e.createElement)(Zt,{elevation:0,sx:{width:"280px",backgroundColor:"#f6f7f7",borderRadius:"4px",border:"1px solid #dcdcde",overflow:"hidden"}},(0,e.createElement)($e,{sx:{p:3,borderBottom:"1px solid #dcdcde",backgroundColor:"#fff"}},(0,e.createElement)(sr,{variant:"h6",sx:{color:"#1d2327",fontSize:"16px",fontWeight:600}},"Store Restriction")),(0,e.createElement)(Cr,null),(0,e.createElement)(xc,{orientation:"vertical",value:o,onChange:(e,t)=>{n(t)},indicatorColor:"primary",textColor:"primary",variant:"fullWidth",sx:{borderRight:0,"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root":{alignItems:"flex-start",justifyContent:"flex-start",paddingLeft:"20px",paddingTop:"12px",paddingBottom:"12px",margin:"4px 0",borderRadius:"4px",transition:"background-color 0.3s, box-shadow 0.3s","&:hover":{backgroundColor:"#eef5fb"},"&.Mui-selected":{backgroundColor:"#eef5fb",boxShadow:"inset 0 0 0 1px #d0e3f5",borderLeft:"3px solid #2271b1"}},"& .MuiTab-root + .MuiTab-root":{borderTop:"1px solid #f0f0f1"},backgroundColor:"#f6f7f7",height:"100%","& .MuiTabs-flexContainer":{alignItems:"flex-start"}}},(0,e.createElement)(kc,{label:"Global Restriction",value:"global"}),(0,e.createElement)(kc,{label:"Role-Based Restriction",value:"role"}),(0,e.createElement)(kc,{label:t("Bulk Role Restrictions"),value:"bulkRole"}),(0,e.createElement)(kc,{label:"Country-Based Restriction",value:"country"}),(0,e.createElement)(kc,{label:t("Bulk Country Restrictions"),value:"bulkCountry"}),(0,e.createElement)(kc,{label:t("Order-Based Restriction"),value:"order"}))),(0,e.createElement)($e,{sx:{flex:1,p:3}},a&&(0,e.createElement)(_c,{severity:a.type,sx:{mb:2},onClose:()=>i(null)},a.message),(0,e.createElement)(rr,null,(0,e.createElement)(Xc,{sx:{p:4}},"global"===o&&(0,e.createElement)($e,null,(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Global Restriction Settings"),(0,e.createElement)(Cr,{sx:{mb:3}}),(0,e.createElement)(Mr,{sx:{mb:4}},(0,e.createElement)(ro,{sx:{gap:1.25},control:(0,e.createElement)(ld,{color:"primary",checked:l?.enabled||!1,onChange:e=>s({...l,enabled:e.target.checked})}),label:"Enable Global Restrictions"})),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:(l?.selectedProducts||[]).map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>s({...l,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Products",placeholder:"Type to search...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:(l?.selectedCategories||[]).map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>s({...l,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Categories",placeholder:"Type to search...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{if(l.enabled&&0===l.selectedProducts.length&&0===l.selectedCategories.length)i({type:"error",message:"Please select at least one product or category."});else{try{if(!(await fetch("/wp-json/srfw/v1/settings/global",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(l)})).ok)throw new Error("Failed to save settings");i({type:"success",message:"Global settings saved successfully!"})}catch(e){i({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>i(null)),3e3)}},sx:{mt:2}},"Save Global Settings")),"role"===o&&(0,e.createElement)($e,null,(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Role-Based Restriction Settings"),(0,e.createElement)(Cr,{sx:{mb:3}}),R.length>0&&(0,e.createElement)($e,{sx:{mb:3}},(0,e.createElement)(sr,{variant:"subtitle2",sx:{fontWeight:600,mb:1}},"Configured Roles"),(0,e.createElement)($e,{sx:{display:"flex",flexWrap:"wrap",gap:1}},R.map((t=>(0,e.createElement)(vr,{key:t.key,size:"small",variant:t.key===c.selectedRole?"contained":"outlined",onClick:()=>M(t.key)},t.key," ",t.enabled?"✓":""))))),(0,e.createElement)($a,{options:b,getOptionLabel:e=>e.name,value:b.find((e=>e.key===c.selectedRole))||null,onChange:(e,t)=>{t?M(t.key):d({selectedRole:"",enabled:!1,selectedProducts:[],selectedCategories:[]})},renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Select User Role",placeholder:"Choose a role...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e?.key===t?.key,sx:{mb:4}}),""!==c.selectedRole&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Mr,{sx:{mb:4}},(0,e.createElement)(ro,{sx:{gap:1.25},control:(0,e.createElement)(ld,{color:"primary",checked:c.enabled,onChange:e=>{d({...c,enabled:e.target.checked}),e.target.checked&&s((e=>({...e,enabled:!1})))}}),label:"Enable Role-Based Restrictions"})),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:c.selectedProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>d({...c,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Products",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:c.selectedCategories.map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>d({...c,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Categories",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{if(c.selectedRole)if(c.enabled&&0===c.selectedProducts.length&&0===c.selectedCategories.length)i({type:"error",message:"Please select at least one product or category."});else{try{if(!(await fetch("/wp-json/srfw/v1/settings/role",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(c)})).ok)throw new Error("Failed to save settings");i({type:"success",message:"Role settings saved successfully!"}),c.selectedRole&&M(c.selectedRole)}catch(e){i({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>i(null)),3e3)}else i({type:"error",message:"Please select a user role."})},sx:{mt:2}},"Save Role Settings"))),"bulkRole"===o&&(0,e.createElement)(r,null,(0,e.createElement)($e,null,(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Bulk Role Restrictions"),(0,e.createElement)(Cr,{sx:{mb:3}}),(0,e.createElement)(Mr,{sx:{mb:4}},(0,e.createElement)(ro,{sx:{columnGap:1.5},control:(0,e.createElement)(ld,{checked:w.enabled,onChange:e=>S({...w,enabled:e.target.checked})}),label:"Enable Bulk Role Restrictions"})),(0,e.createElement)($a,{multiple:!0,options:b,getOptionLabel:e=>e.name,value:w.roles.map((e=>b.find((t=>t.key===e))||{key:e,name:e})),onChange:(e,t)=>S({...w,roles:t.map((e=>e.key))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Select Roles",placeholder:"Choose roles..."}),sx:{mb:3}}),(0,e.createElement)($e,{sx:{display:"flex",gap:1,mb:3}},(0,e.createElement)(vr,{size:"small",variant:"outlined",onClick:()=>S({...w,roles:b.map((e=>e.key))})},"Select All"),(0,e.createElement)(vr,{size:"small",variant:"outlined",onClick:()=>S({...w,roles:[]})},"Clear")),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:w.selectedProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>S({...w,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Restrict Products",placeholder:"Type to search..."}),sx:{mb:3}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:w.selectedCategories.map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>S({...w,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Restrict Categories",placeholder:"Type to search..."}),sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{if(0!==w.roles.length)if(w.enabled&&0===w.selectedProducts.length&&0===w.selectedCategories.length)i({type:"error",message:"Select products or categories to restrict."});else{try{if(!(await fetch("/wp-json/srfw/v1/settings/roles/bulk",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(w)})).ok)throw new Error;i({type:"success",message:"Bulk role restrictions saved."})}catch(e){i({type:"error",message:"Failed saving bulk role restrictions."})}setTimeout((()=>i(null)),3e3)}else i({type:"error",message:"Select at least one role."})}},"Save Bulk Role Restrictions"))),"country"===o&&(()=>{const t=async e=>{try{const t=await fetch(`/wp-json/srfw/v1/settings/country/${e}`,{method:"GET",headers:{"X-WP-Nonce":SRFWAPP.nonce,"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to fetch country settings");const r=await t.json();p((t=>({...t,selectedCountry:e,enabled:r.enabled||!1,selectedProducts:r.selectedProducts||[],selectedCategories:r.selectedCategories||[]})))}catch(e){console.error("Error fetching country settings:",e),i({type:"error",message:"Error loading country settings"})}};return(0,e.createElement)($e,null,(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Country-Based Restriction Settings"),(0,e.createElement)(Cr,{sx:{mb:3}}),O.length>0&&(0,e.createElement)($e,{sx:{mb:3}},(0,e.createElement)(sr,{variant:"subtitle2",sx:{fontWeight:600,mb:1}},"Configured Countries"),(0,e.createElement)($e,{sx:{display:"flex",flexWrap:"wrap",gap:1,maxHeight:120,overflowY:"auto"}},O.map((r=>(0,e.createElement)(vr,{key:r.code,size:"small",variant:r.code===u.selectedCountry?"contained":"outlined",onClick:()=>t(r.code)},r.code," ",r.enabled?"✓":""))))),(0,e.createElement)($a,{options:y,getOptionLabel:e=>e.name,value:y.find((e=>e.code===u.selectedCountry))||null,onChange:(e,r)=>{r?t(r.code):p({selectedCountry:"",enabled:!1,selectedProducts:[],selectedCategories:[]})},renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Select Country",placeholder:"Choose a country...",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"#fff","& fieldset":{borderColor:"#dcdcde"},"&:hover fieldset":{borderColor:"#72aee6"},"&.Mui-focused fieldset":{borderColor:"#2271b1"}}}}),isOptionEqualToValue:(e,t)=>e?.code===t?.code,sx:{mb:4}}),u.selectedCountry&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Mr,{sx:{mb:4}},(0,e.createElement)(ro,{sx:{gap:1.25},control:(0,e.createElement)(ld,{color:"primary",checked:u.enabled,onChange:e=>{p({...u,enabled:e.target.checked}),e.target.checked&&s((e=>({...e,enabled:!1})))}}),label:"Enable Country-Based Restrictions"})),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:u.selectedProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>p({...u,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Products",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:3}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:u.selectedCategories.map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>p({...u,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Search Categories",placeholder:"Type to search..."}),isOptionEqualToValue:(e,t)=>e.id===t.id,sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{if(0!==u.selectedProducts.length||0!==u.selectedCategories.length)if(u.selectedCountry){try{if(!(await fetch("/wp-json/srfw/v1/settings/country",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(u)})).ok)throw new Error("Failed to save settings");i({type:"success",message:"Country settings saved successfully!"}),u.selectedCountry&&t(u.selectedCountry)}catch(e){i({type:"error",message:"Error saving settings. Please try again."})}setTimeout((()=>i(null)),3e3)}else i({type:"error",message:"Please select a country."});else i({type:"error",message:"Please select at least one product or category."})},sx:{mt:2}},"Save Country Settings")))})(),"bulkCountry"===o&&(0,e.createElement)(r,null,(0,e.createElement)($e,{sx:{mt:4}},(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Bulk Country Restrictions"),(0,e.createElement)(Cr,{sx:{mb:3}}),(0,e.createElement)(Mr,{sx:{mb:4}},(0,e.createElement)(ro,{sx:{columnGap:1.5},control:(0,e.createElement)(ld,{checked:A.enabled,onChange:e=>C({...A,enabled:e.target.checked})}),label:"Enable Bulk Country Restrictions"})),(0,e.createElement)($a,{multiple:!0,options:y,getOptionLabel:e=>e.name,value:A.countries.map((e=>y.find((t=>t.code===e))||{code:e,name:e})),onChange:(e,t)=>C({...A,countries:t.map((e=>e.code))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Select Countries",placeholder:"Choose countries..."}),sx:{mb:3}}),(0,e.createElement)($e,{sx:{display:"flex",gap:1,mb:3}},(0,e.createElement)(vr,{size:"small",variant:"outlined",onClick:()=>C({...A,countries:y.map((e=>e.code))})},"Select All"),(0,e.createElement)(vr,{size:"small",variant:"outlined",onClick:()=>C({...A,countries:[]})},"Clear")),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:A.selectedProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>C({...A,selectedProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Restrict Products",placeholder:"Type to search..."}),sx:{mb:3}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:A.selectedCategories.map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>C({...A,selectedCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Restrict Categories",placeholder:"Type to search..."}),sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{if(0!==A.countries.length)if(A.enabled&&0===A.selectedProducts.length&&0===A.selectedCategories.length)i({type:"error",message:"Select products or categories to restrict."});else{try{if(!(await fetch("/wp-json/srfw/v1/settings/countries/bulk",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(A)})).ok)throw new Error;i({type:"success",message:"Bulk country restrictions saved."})}catch(e){i({type:"error",message:"Failed saving bulk country restrictions."})}setTimeout((()=>i(null)),3e3)}else i({type:"error",message:"Select at least one country."})}},"Save Bulk Country Restrictions"))),"order"===o&&(0,e.createElement)(r,null,(0,e.createElement)($e,null,(0,e.createElement)(sr,{variant:"h5",gutterBottom:!0,sx:{color:"primary.main",fontWeight:500}},"Order-Based Restriction Settings"),(0,e.createElement)(Cr,{sx:{mb:3}}),(0,e.createElement)(Mr,{sx:{mb:3}},(0,e.createElement)(ro,{sx:{gap:1.25},control:(0,e.createElement)(ld,{color:"primary",checked:k.enabled,onChange:e=>E({...k,enabled:e.target.checked})}),label:"Enable Order-Based Restrictions"})),(0,e.createElement)(sr,{variant:"subtitle1",sx:{mb:1,fontWeight:600}},"Targets"),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:k.targetProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>E({...k,targetProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Products",placeholder:"Type to search..."}),sx:{mb:2}}),(0,e.createElement)($a,{multiple:!0,options:h,getOptionLabel:e=>e.name,value:k.targetCategories.map((e=>h.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>E({...k,targetCategories:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Categories",placeholder:"Type to search..."}),sx:{mb:4}}),(0,e.createElement)(sr,{variant:"subtitle1",sx:{mb:1,fontWeight:600}},"Conditions"),(0,e.createElement)($e,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,mb:3}},(0,e.createElement)(Ws,{type:"number",label:"Minimum total spent",value:k.minTotalSpent,onChange:e=>E({...k,minTotalSpent:Number(e.target.value)}),inputProps:{min:0,step:1}}),(0,e.createElement)(Ws,{type:"number",label:"Minimum order count",value:k.minOrderCount,onChange:e=>E({...k,minOrderCount:Number(e.target.value)}),inputProps:{min:0,step:1}})),(0,e.createElement)($a,{multiple:!0,options:f,getOptionLabel:e=>e.name,value:k.requiredProducts.map((e=>f.find((t=>t.id===e))||{id:e,name:"Unknown"})),onChange:(e,t)=>E({...k,requiredProducts:t.map((e=>e.id))}),renderInput:t=>(0,e.createElement)(Ws,{...t,label:"Previous purchase required (any of)",placeholder:"Type to search..."}),sx:{mb:4}}),(0,e.createElement)(vr,{variant:"contained",onClick:async()=>{try{if(!(await fetch("/wp-json/srfw/v1/settings/order",{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":SRFWAPP.nonce},body:JSON.stringify(k)})).ok)throw new Error;i({type:"success",message:"Order settings saved successfully!"})}catch(e){i({type:"error",message:"Error saving order settings."})}setTimeout((()=>i(null)),3e3)}},"Save Order Settings"))))))))}),null),document.getElementById("srfw-admin"))})()})();
  • store-restriction-for-woocommerce/trunk/includes/admin/class-srfw-register.php

    r3246042 r3415191  
    77
    88        public function __construct() {
    9             add_action('admin_menu', array( $this, 'srfw_create_menu' ));
    109            add_action( 'admin_enqueue_scripts', array( $this, 'srfw_scripts' ) );
    1110            add_action('rest_api_init', array( $this, 'srfw_register_routes' ));
     11            add_action('admin_init', array( $this, 'init' ));
     12            // Register a hidden page for Freemius first-path and redirect to WC tab
     13            add_action('admin_menu', array( $this, 'srfw_register_hidden_redirect_page' ));
     14        }
     15
     16        public function srfw_register_hidden_redirect_page() {
     17            // Register a hidden admin page to satisfy Freemius first-path
     18            add_submenu_page(
     19                null,
     20                __('Store Restriction', 'store-restriction-for-woocommerce'),
     21                __('Store Restriction', 'store-restriction-for-woocommerce'),
     22                'manage_woocommerce',
     23                'store-restriction-for-woocommerce',
     24                array( $this, 'srfw_redirect_to_wc_tab' )
     25            );
     26        }
     27
     28        public function srfw_redirect_to_wc_tab() {
     29            // Avoid intercepting Freemius internal views or actions
     30            if ( isset( $_GET['fs_action'] ) || isset( $_GET['view'] ) ) {
     31                return;
     32            }
     33            // Redirect to WooCommerce Settings tab used by the plugin UI
     34            wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=srfw' ) );
     35            exit;
    1236        }
    1337
    1438        public function srfw_register_routes() {
     39            $cap = function() { return current_user_can('manage_woocommerce'); };
    1540            register_rest_route('srfw/v1', '/settings/global', array(
    1641                'methods' => 'POST',
    1742                'callback' => array( $this, 'srfw_save_global_settings' ),
    18                 'permission_callback' => function () {
    19                     return current_user_can('manage_options');
    20                 },
    21             ));
    22 
     43                'permission_callback' => $cap,
     44            ));
    2345            register_rest_route('srfw/v1', '/settings/get-saved-data', array(
    2446                'methods' => 'GET',
    2547                'callback' => array( $this, 'srfw_get_save_global_settings' ),
    26                 'permission_callback' => function () {
    27                     return current_user_can('manage_options');
    28                 },
    29             ));
    30 
     48                'permission_callback' => $cap,
     49            ));
    3150            register_rest_route('srfw/v1', '/settings/role', array(
    3251                'methods' => 'POST',
    3352                'callback' => array( $this, 'srfw_save_role_settings' ),
    34                 'permission_callback' => function () {
    35                     return current_user_can('manage_options');
    36                 },
    37             ));
    38 
     53                'permission_callback' => $cap,
     54            ));
    3955            register_rest_route('srfw/v1', '/settings/role/(?P<role>[a-zA-Z0-9_-]+)', array(
    4056                'methods' => 'GET',
    4157                'callback' => array( $this, 'srfw_get_role_settings' ),
    42                 'permission_callback' => function () {
    43                     return current_user_can('manage_options');
    44                 },
    45             ));
    46 
     58                'permission_callback' => $cap,
     59            ));
     60            register_rest_route('srfw/v1', '/settings/roles', array(
     61                'methods' => 'GET',
     62                'callback' => array( $this, 'srfw_list_role_settings' ),
     63                'permission_callback' => $cap,
     64            ));
    4765            register_rest_route('srfw/v1', '/settings/country', array(
    4866                'methods' => 'POST',
    4967                'callback' => array( $this, 'srfw_save_country_settings' ),
    50                 'permission_callback' => function () {
    51                     return current_user_can('manage_options');
    52                 },
    53             ));
    54 
     68                'permission_callback' => $cap,
     69            ));
    5570            register_rest_route('srfw/v1', '/settings/country/(?P<country>[a-zA-Z0-9_-]+)', array(
    5671                'methods' => 'GET',
    5772                'callback' => array( $this, 'srfw_get_country_settings' ),
    58                 'permission_callback' => function () {
    59                     return current_user_can('manage_options');
    60                 },
    61             ));
     73                'permission_callback' => $cap,
     74            ));
     75            register_rest_route('srfw/v1', '/settings/countries', array(
     76                'methods' => 'GET',
     77                'callback' => array( $this, 'srfw_list_country_settings' ),
     78                'permission_callback' => $cap,
     79            ));
     80            // Bulk role restrictions
     81            register_rest_route('srfw/v1', '/settings/roles/bulk', array(
     82                'methods' => 'POST',
     83                'callback' => array( $this, 'srfw_save_bulk_roles' ),
     84                'permission_callback' => $cap,
     85            ));
     86            // Bulk country restrictions
     87            register_rest_route('srfw/v1', '/settings/countries/bulk', array(
     88                'methods' => 'POST',
     89                'callback' => array( $this, 'srfw_save_bulk_countries' ),
     90                'permission_callback' => $cap,
     91            ));
     92            // Order-based settings (UI available; optional in free)
     93            register_rest_route('srfw/v1', '/settings/order', array(
     94                'methods' => 'POST',
     95                'callback' => array( $this, 'srfw_save_order_settings' ),
     96                'permission_callback' => $cap,
     97            ));
     98            register_rest_route('srfw/v1', '/settings/order', array(
     99                'methods' => 'GET',
     100                'callback' => array( $this, 'srfw_get_order_settings' ),
     101                'permission_callback' => $cap,
     102            ));
     103        }
     104
     105        public function srfw_save_order_settings( WP_REST_Request $request ) {
     106            if ( ! current_user_can( 'manage_woocommerce' ) ) {
     107                return new WP_Error( 'forbidden', 'You do not have permission to do this.', array( 'status' => 403 ) );
     108            }
     109
     110            $data = $request->get_json_params();
     111            if ( ! is_array( $data ) ) {
     112                return new WP_Error( 'invalid_data', 'Invalid data format', array( 'status' => 400 ) );
     113            }
     114
     115            $sanitized = array(
     116                'enabled' => ! empty( $data['enabled'] ),
     117                'targetProducts' => isset( $data['targetProducts'] ) && is_array( $data['targetProducts'] ) ? array_map( 'absint', $data['targetProducts'] ) : array(),
     118                'targetCategories' => isset( $data['targetCategories'] ) && is_array( $data['targetCategories'] ) ? array_map( 'absint', $data['targetCategories'] ) : array(),
     119                'minTotalSpent' => isset( $data['minTotalSpent'] ) ? floatval( $data['minTotalSpent'] ) : 0,
     120                'minOrderCount' => isset( $data['minOrderCount'] ) ? absint( $data['minOrderCount'] ) : 0,
     121                'requiredProducts' => isset( $data['requiredProducts'] ) && is_array( $data['requiredProducts'] ) ? array_map( 'absint', $data['requiredProducts'] ) : array(),
     122            );
     123
     124            update_option( 'srfw_order_settings', $sanitized );
     125
     126            return rest_ensure_response( array( 'success' => true ) );
     127        }
     128
     129        public function srfw_get_order_settings() {
     130            $defaults = array(
     131                'enabled' => false,
     132                'targetProducts' => array(),
     133                'targetCategories' => array(),
     134                'minTotalSpent' => 0,
     135                'minOrderCount' => 0,
     136                'requiredProducts' => array(),
     137            );
     138            $settings = get_option( 'srfw_order_settings', array() );
     139            return rest_ensure_response( wp_parse_args( $settings, $defaults ) );
     140        }
     141
     142        public function srfw_save_bulk_roles( WP_REST_Request $request ) {
     143            $data = $request->get_json_params();
     144            if ( ! is_array( $data ) || empty( $data['roles'] ) || ! is_array( $data['roles'] ) ) {
     145                return new WP_Error('invalid_data', 'Invalid roles bulk payload', array('status'=>400));
     146            }
     147            $roles = array_map('sanitize_text_field', $data['roles']);
     148            $enabled = ! empty( $data['enabled'] );
     149            $products = isset($data['selectedProducts']) && is_array($data['selectedProducts']) ? array_map('absint', $data['selectedProducts']) : array();
     150            $categories = isset($data['selectedCategories']) && is_array($data['selectedCategories']) ? array_map('absint', $data['selectedCategories']) : array();
     151            $all_role_settings = get_option('srfw_role_settings', array());
     152            foreach ( $roles as $role_key ) {
     153                $all_role_settings[$role_key] = array(
     154                    'enabled' => $enabled,
     155                    'selectedProducts' => $products,
     156                    'selectedCategories' => $categories,
     157                );
     158            }
     159            update_option('srfw_role_settings', $all_role_settings);
     160            return rest_ensure_response(array('success'=>true,'updatedRoles'=>$roles));
     161        }
     162
     163        public function srfw_save_bulk_countries( WP_REST_Request $request ) {
     164            $data = $request->get_json_params();
     165            if ( ! is_array( $data ) || empty( $data['countries'] ) || ! is_array( $data['countries'] ) ) {
     166                return new WP_Error('invalid_data', 'Invalid countries bulk payload', array('status'=>400));
     167            }
     168            $countries = array_map('sanitize_text_field', $data['countries']);
     169            $enabled = ! empty( $data['enabled'] );
     170            $products = isset($data['selectedProducts']) && is_array($data['selectedProducts']) ? array_map('absint', $data['selectedProducts']) : array();
     171            $categories = isset($data['selectedCategories']) && is_array($data['selectedCategories']) ? array_map('absint', $data['selectedCategories']) : array();
     172            $all_country_settings = get_option('srfw_country_settings', array());
     173            foreach ( $countries as $country_code ) {
     174                $all_country_settings[$country_code] = array(
     175                    'enabled' => $enabled,
     176                    'selectedProducts' => $products,
     177                    'selectedCategories' => $categories,
     178                );
     179            }
     180            update_option('srfw_country_settings', $all_country_settings);
     181            return rest_ensure_response(array('success'=>true,'updatedCountries'=>$countries));
     182        }
     183
     184        public function srfw_list_role_settings() {
     185            $all_role_settings = get_option('srfw_role_settings', array());
     186            $summary = array();
     187            foreach ($all_role_settings as $role => $data) {
     188                $summary[] = array(
     189                    'role' => $role,
     190                    'enabled' => !empty($data['enabled']),
     191                    'productCount' => isset($data['selectedProducts']) ? count($data['selectedProducts']) : 0,
     192                    'categoryCount' => isset($data['selectedCategories']) ? count($data['selectedCategories']) : 0,
     193                );
     194            }
     195            return rest_ensure_response($summary);
     196        }
     197
     198        public function srfw_list_country_settings() {
     199            $all_country_settings = get_option('srfw_country_settings', array());
     200            $summary = array();
     201            foreach ($all_country_settings as $code => $data) {
     202                $summary[] = array(
     203                    'country' => $code,
     204                    'enabled' => !empty($data['enabled']),
     205                    'productCount' => isset($data['selectedProducts']) ? count($data['selectedProducts']) : 0,
     206                    'categoryCount' => isset($data['selectedCategories']) ? count($data['selectedCategories']) : 0,
     207                );
     208            }
     209            return rest_ensure_response($summary);
    62210        }
    63211
     
    70218        public function srfw_save_global_settings( WP_REST_Request $request ) {
    71219
     220            if (!current_user_can('manage_woocommerce')) {
     221                return new WP_Error('forbidden', 'You do not have permission to do this.', array( 'status' => 403 ));
     222            }
     223
    72224            $settings = $request->get_json_params();
    73             $result = update_option( 'srfw_global_settings', $settings );
     225
     226            if (!is_array($settings)) {
     227                return new WP_Error('invalid_data', 'Invalid data format', array( 'status' => 400 ));
     228            }
     229
     230            $sanitized = array(
     231                'enabled' => isset($settings['enabled']) ? (bool) $settings['enabled'] : false,
     232                'selectedProducts' => isset($settings['selectedProducts']) && is_array($settings['selectedProducts']) ? array_map('absint', $settings['selectedProducts']) : array(),
     233                'selectedCategories' => isset($settings['selectedCategories']) && is_array($settings['selectedCategories']) ? array_map('absint', $settings['selectedCategories']) : array(),
     234            );
     235
     236            $result = update_option( 'srfw_global_settings', $sanitized );
    74237
    75238            if ($result) {
     
    82245        public function srfw_save_role_settings() {
    83246           
    84             if (!current_user_can('manage_options')) {
     247            if (!current_user_can('manage_woocommerce')) {
    85248                return new WP_Error('forbidden', 'You do not have permission to do this.', array( 'status' => 403 ));
    86249            }
     
    95258
    96259            try {
    97                 // If role-based restrictions are enabled, delete global settings
    98                 if (isset($request_data['enabled']) && $request_data['enabled']) {
    99                     delete_option('srfw_global_settings');
    100                 }
     260                // Preserve global settings; do not delete when role restrictions enabled.
    101261
    102262                // Save role-based settings
     
    156316
    157317        public function srfw_save_country_settings( WP_REST_Request $request ) {
    158             if (!current_user_can('manage_options')) {
     318            if (!current_user_can('manage_woocommerce')) {
    159319                return new WP_Error('forbidden', 'You do not have permission to do this.', array( 'status' => 403 ));
    160320            }
     
    167327
    168328            try {
    169                 if (isset($request_data['enabled']) && $request_data['enabled']) {
    170                     delete_option('srfw_global_settings');
    171                 }
     329                // Preserve global settings; do not delete when country restrictions enabled.
    172330
    173331                $settings_to_save = array(
     
    223381        }
    224382
    225         public function srfw_create_menu() {
    226 
    227             add_submenu_page(
    228                 'woocommerce',                     
    229                 __('Store Restriction', 'store-restriction-for-woocommerce'),
    230                 __('Store Restriction', 'store-restriction-for-woocommerce'),
    231                 'manage_woocommerce',               
    232                 'store-restriction-for-woocommerce',             
    233                 array( $this, 'srfw_menu_page_callback' ),
    234                 35
    235             );
     383        // WooCommerce settings tab integration
     384        public function srfw_settings_tab( $tabs ) {
     385            $tabs['srfw'] = __('Store Restriction', 'store-restriction-for-woocommerce');
     386            return $tabs;
     387        }
     388
     389        public function srfw_settings_tab_content() {
     390            // Render the React app inside WooCommerce Settings tab
     391            wp_enqueue_script('srfw-script');
     392            echo '<div id="srfw-admin"></div>';
     393        }
     394
     395        public function srfw_hooks_settings_tab() {
     396            add_filter('woocommerce_settings_tabs_array', array($this,'srfw_settings_tab'), 50);
     397            add_action('woocommerce_settings_tabs_srfw', array($this,'srfw_settings_tab_content'));
     398        }
     399
     400        // Initialize settings tab hooks on admin_init
     401        public function init() {
     402            if ( is_admin() ) {
     403                $this->srfw_hooks_settings_tab();
     404            }
    236405        }
    237406
     
    295464            }
    296465
     466            $role_settings_existing = get_option('srfw_role_settings', array());
     467            $country_settings_existing = get_option('srfw_country_settings', array());
     468            $global_settings_existing = get_option('srfw_global_settings', array());
     469
    297470            wp_localize_script('srfw-script', 'SRFWAPP', array(
    298471                'root' => esc_url_raw(rest_url()),
     
    302475                'countries' => $countries_data,
    303476                'roles' => $roles,
     477                'roleSettingsSummary' => $role_settings_existing,
     478                'countrySettingsSummary' => $country_settings_existing,
     479                'globalSettings' => $global_settings_existing,
    304480                'pluginUrl' => SRFW_URL,
    305481                'assetsUrl' => SRFW_URL . 'src/admin/assets/',
    306482            ));
    307483        }
    308 
    309         public function srfw_menu_page_callback() {
    310             wp_enqueue_script( 'srfw-script' );
    311             echo '<div id="srfw-admin"></div>';
    312         }
    313484    }
    314485
  • store-restriction-for-woocommerce/trunk/includes/front/class-srfw-front.php

    r3246042 r3415191  
    99            add_action('template_redirect', array($this, 'srfw_hide_restricted_product_on_single_page'));
    1010            add_action('pre_get_posts', array($this, 'srfw_hide_restricted_products_and_categories'));
     11            add_filter('woocommerce_product_is_visible', array($this, 'srfw_filter_product_visible'), 10, 2);
     12            add_filter('woocommerce_is_purchasable', array($this, 'srfw_filter_purchasable'), 10, 2);
     13            add_filter('woocommerce_add_to_cart_validation', array($this, 'srfw_add_to_cart_validation'), 10, 3);
     14        }
     15
     16        private function srfw_compute_restrictions() {
     17            if (current_user_can('administrator')) {
     18                return array('products' => array(), 'categories' => array());
     19            }
     20            $restricted_cats = array();
     21            $restricted_products = array();
     22           
     23            // Check global settings first
     24            $global_settings = $this->srfw_get_global_settings();
     25            if ($global_settings) {
     26                $restricted_cats = $global_settings['selectedCategories'];
     27                $restricted_products = $global_settings['selectedProducts'];
     28            }
     29           
     30            // Check role-based restrictions
     31            $role_restrictions = $this->srfw_get_current_user_restrictions();
     32            if ($role_restrictions) {
     33                $restricted_cats = array_unique(array_merge($restricted_cats, $role_restrictions['selectedCategories']));
     34                $restricted_products = array_unique(array_merge($restricted_products, $role_restrictions['selectedProducts']));
     35            }
     36           
     37            $country_restrictions = $this->srfw_get_country_restrictions();
     38            if ($country_restrictions) {
     39                $restricted_cats = array_unique(array_merge($restricted_cats, $country_restrictions['selectedCategories']));
     40                $restricted_products = array_unique(array_merge($restricted_products, $country_restrictions['selectedProducts']));
     41            }
     42
     43            return array('products' => array_filter(array_map('absint', $restricted_products)), 'categories' => array_filter(array_map('absint', $restricted_cats)));
     44        }
     45
     46        private function srfw_is_product_restricted($product_id) {
     47            $sets = $this->srfw_compute_restrictions();
     48            if (in_array($product_id, $sets['products'], true)) {
     49                return true;
     50            }
     51            if (empty($sets['categories'])) { return false; }
     52            $product = wc_get_product($product_id);
     53            if (!$product) { return false; }
     54            $cat_ids = $product->get_category_ids();
     55            if (array_intersect($cat_ids, $sets['categories'])) { return true; }
     56            return false;
     57        }
     58
     59        public function srfw_filter_product_visible($visible, $product_id) {
     60            return $visible && ! $this->srfw_is_product_restricted($product_id) ? $visible : false;
     61        }
     62
     63        public function srfw_filter_purchasable($purchasable, $product) {
     64            if ($this->srfw_is_product_restricted($product->get_id())) { return false; }
     65            return $purchasable;
     66        }
     67
     68        public function srfw_add_to_cart_validation($valid, $product_id, $quantity) {
     69            if ($this->srfw_is_product_restricted($product_id)) {
     70                wc_add_notice(__('This product is not available for your account.', 'store-restriction-for-woocommerce'), 'error');
     71                return false;
     72            }
     73            return $valid;
     74        }
     75
     76        /**
     77         * Get global-based restriction settings
     78         */
     79        private function srfw_get_global_settings() {
     80            $settings = get_option( 'srfw_global_settings', array() );
     81            if ( empty( $settings ) || empty( $settings['enabled'] ) ) {
     82                return false;
     83            }
     84            return $settings;
    1185        }
    1286
     
    46120
    47121        public function srfw_hide_restricted_product_on_single_page() {
     122            if (current_user_can('administrator')) {
     123                return;
     124            }
     125
    48126            if (is_singular('product')) {
    49127                global $post;
    50128
    51                 $restricted_cats = array();
    52                 $restricted_products = array();
    53 
    54                 // Check country restrictions first
    55                 $country_restrictions = $this->srfw_get_country_restrictions();
    56                 if ($country_restrictions) {
    57                     $restricted_cats = $country_restrictions['selectedCategories'];
    58                     $restricted_products = $country_restrictions['selectedProducts'];
    59                 } else {
    60                     // Check role restrictions
    61                     $role_restrictions = $this->srfw_get_current_user_restrictions();
    62                     if ($role_restrictions) {
    63                         $restricted_cats = $role_restrictions['selectedCategories'];
    64                         $restricted_products = $role_restrictions['selectedProducts'];
    65                     } else {
    66                         // Check global restrictions
    67                         $global_restrictions = $this->srfw_get_global_restrictions();
    68                         if ($global_restrictions) {
    69                             $restricted_cats = $global_restrictions['selectedCategories'];
    70                             $restricted_products = $global_restrictions['selectedProducts'];
    71                         }
    72                     }
    73                 }
    74 
    75                 // Check if the product is directly restricted
    76                 if (in_array($post->ID, $restricted_products)) {
    77                     wp_redirect(home_url());
     129                $sets = $this->srfw_compute_restrictions();
     130                if (in_array($post->ID, $sets['products'], true)) {
     131                    wp_safe_redirect(home_url());
    78132                    exit;
    79133                }
    80 
    81                 // Check if the product belongs to any restricted category
    82                 if (!empty($restricted_cats)) {
     134                if (!empty($sets['categories'])) {
    83135                    $categories = get_the_terms($post->ID, 'product_cat');
    84136                    if ($categories && !is_wp_error($categories)) {
    85137                        $category_ids = wp_list_pluck($categories, 'term_id');
    86                         $intersect = array_intersect($category_ids, $restricted_cats);
     138                        $intersect = array_intersect($category_ids, $sets['categories']);
    87139
    88140                        if (!empty($intersect)) {
    89                             wp_redirect(home_url());
     141                            wp_safe_redirect(home_url());
    90142                            exit;
    91143                        }
     
    110162        }
    111163
    112         /**
    113          * Get global restrictions if enabled
    114          */
    115         private function srfw_get_global_restrictions() {
    116             $global_settings = get_option('srfw_global_settings', array());
    117             return (!empty($global_settings) && isset($global_settings['enabled']) && $global_settings['enabled'])
    118                 ? $global_settings
    119                 : false;
    120         }
    121 
    122         /**
    123          * Hide restricted products and categories using pre_get_posts
    124          */
    125164        public function srfw_hide_restricted_products_and_categories($query) {
    126165            if (!is_admin() && $query->is_main_query()) {
    127                
    128166                if (current_user_can('administrator')) {
    129167                    return;
    130168                }
    131 
    132                 $restricted_cats = array();
    133                 $restricted_products = array();
    134 
    135                 $country_restrictions = $this->srfw_get_country_restrictions();
    136                
    137                 if ($country_restrictions) {
    138                     $restricted_cats = $country_restrictions['selectedCategories'];
    139                     $restricted_products = $country_restrictions['selectedProducts'];
    140                 } else {
    141                     $role_restrictions = $this->srfw_get_current_user_restrictions();
    142                     if ($role_restrictions) {
    143                         $restricted_cats = $role_restrictions['selectedCategories'];
    144                         $restricted_products = $role_restrictions['selectedProducts'];
    145                     } else {
    146                         $global_restrictions = $this->srfw_get_global_restrictions();
    147                         if ($global_restrictions) {
    148                             $restricted_cats = $global_restrictions['selectedCategories'];
    149                             $restricted_products = $global_restrictions['selectedProducts'];
    150                         }
    151                     }
    152                 }
    153 
    154                 if (!empty($restricted_products)) {
     169                $sets = $this->srfw_compute_restrictions();
     170                if (!empty($sets['products'])) {
    155171                    $existing_not_in = $query->get('post__not_in', array());
    156                     $merged_not_in = array_unique(array_merge($existing_not_in, $restricted_products));
     172                    $merged_not_in = array_unique(array_merge($existing_not_in, $sets['products']));
    157173                    $query->set('post__not_in', $merged_not_in);
    158174                }
    159 
    160                 if (!empty($restricted_cats)) {
     175                if (!empty($sets['categories'])) {
    161176                    $tax_query = $query->get('tax_query', array());
    162177                    if (!is_array($tax_query)) {
    163178                        $tax_query = array();
    164179                    }
    165 
    166180                    $tax_query[] = array(
    167181                        'taxonomy' => 'product_cat',
    168182                        'field'    => 'term_id',
    169                         'terms'    => $restricted_cats,
     183                        'terms'    => $sets['categories'],
    170184                        'operator' => 'NOT IN',
    171185                    );
  • store-restriction-for-woocommerce/trunk/readme.txt

    r3382930 r3415191  
    11=== Store Restriction for WooCommerce - Product Visibility & Access Control ===
    22Contributors: woosofts
    3 Tags: woocommerce, product visibility, product restriction, user role restriction, country restriction
    4 Requires at least: 4.8
     3Tags: woocommerce, product visibility, restrict products, hide prices, user roles, wholesale, b2b, members only, country restriction, category restriction, private store, catalog visibility
     4Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.2
     6Stable tag: 1.3.0
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    1616
    1717Need help? Email [email protected]
     18
     19Looking for advanced features like bulk restrictions and order-based access rules? Check out PRO: https://versesofts.com
    1820
    1921#### 🔥 Key Features
     
    9193== Changelog ==
    9294
     95= 1.3.0 =
     96* New - WooCommerce Settings Tab integration (no separate submenu)
     97* New - Bulk Role and Bulk Country tabs (visible with PRO overlay in free)
     98* New - Order-Based Restrictions tab UI (PRO overlay in free)
     99* New - Role/Country summaries shown for quick overview
     100* Improved - Frontend logic: product visibility, purchasable, add-to-cart validation
     101* Improved - Multisite WooCommerce detection and Blocks/COT compatibility declarations
     102* Restored - Freemius integration with safe redirect to WC tab
     103* Dev - REST API endpoints for bulk and order settings (UI-gated in free)
     104
    93105= 1.2 =
    94106* Tweak - UI Improvement.
  • store-restriction-for-woocommerce/trunk/src/admin/App.js

    r3382928 r3415191  
    1717  Autocomplete,
    1818  TextField,
     19  Chip,
    1920} from "@mui/material";
    2021import Switch from "@mui/material/Switch";
    2122import { styled } from "@mui/material/styles";
    22 import comingSoonIcon from "./assets/coming-soon.png";
     23// Pro features are implemented; coming soon asset no longer used
    2324
    2425const theme = createTheme({
     
    137138
    138139const App = () => {
     140    const proTabLabel = (text) => (
     141      <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
     142        <span>{text}</span>
     143        <Chip size="small" label="PRO" color="primary" variant="outlined" />
     144      </Box>
     145    );
     146
     147    const ProLock = ({ children }) => (
     148      <Box sx={{ position: 'relative' }}>
     149        <Box sx={{ opacity: 0.85, pointerEvents: 'none' }}>{children}</Box>
     150        <Box
     151          sx={{
     152            position: 'absolute',
     153            inset: 0,
     154            display: 'flex',
     155            alignItems: 'center',
     156            justifyContent: 'center',
     157            background: 'rgba(255,255,255,0.25)',
     158            backdropFilter: 'blur(1px)',
     159            p: 2,
     160          }}
     161        >
     162          <Card sx={{ p: 3, maxWidth: 460, textAlign: 'center', border: '1px solid', borderColor: 'primary.light' }}>
     163            <Typography variant="h6" sx={{ fontWeight: 700, mb: 1 }}>Available in PRO</Typography>
     164            <Typography sx={{ color: 'text.secondary', mb: 2 }}>
     165              Upgrade to unlock bulk restrictions and order-based access rules.
     166            </Typography>
     167            <Button variant="contained" onClick={() => window.open('https://versesofts.com', '_blank')}>
     168              Contact for PRO Access
     169            </Button>
     170          </Card>
     171        </Box>
     172      </Box>
     173    );
     174
     175    const renderProVersionNotice = () => (
     176      <Box>
     177        <Typography variant="h5" gutterBottom sx={{ color: "primary.main", fontWeight: 500 }}>
     178          Available in PRO
     179        </Typography>
     180        <Divider sx={{ mb: 3 }} />
     181        <Typography sx={{ mb: 2, color: '#444' }}>
     182          This feature is part of the PRO version. Upgrade to unlock bulk restrictions and order-based access rules.
     183        </Typography>
     184        <ul style={{ marginLeft: 18, marginBottom: 16, color: '#555' }}>
     185          <li>Bulk Role Restrictions</li>
     186          <li>Bulk Country Restrictions</li>
     187          <li>Order-Based Restrictions (spent, order count, previous purchase)</li>
     188        </ul>
     189        <Button
     190          variant="contained"
     191          color="primary"
     192          onClick={() => window.open("https://versesofts.com", "_blank")}
     193        >
     194          Contact for PRO Access
     195        </Button>
     196      </Box>
     197    );
    139198  const [activeTab, setActiveTab] = useState("global");
    140199  const [saveStatus, setSaveStatus] = useState(null);
     
    164223  const [userRoles, setUserRoles] = useState([]);
    165224  const [userCountry, setUserCountry] = useState([]);
     225  // Bulk role restrictions
     226  const [bulkRoleSettings, setBulkRoleSettings] = useState({
     227    roles: [],
     228    enabled: false,
     229    selectedProducts: [],
     230    selectedCategories: [],
     231  });
     232  // Bulk country restrictions
     233  const [bulkCountrySettings, setBulkCountrySettings] = useState({
     234    countries: [],
     235    enabled: false,
     236    selectedProducts: [],
     237    selectedCategories: [],
     238  });
     239  const [orderSettings, setOrderSettings] = useState({
     240    enabled: false,
     241    targetProducts: [],
     242    targetCategories: [],
     243    minTotalSpent: 0,
     244    minOrderCount: 0,
     245    requiredProducts: [],
     246  });
     247  const [roleSummary, setRoleSummary] = useState([]);
     248  const [countrySummary, setCountrySummary] = useState([]);
    166249
    167250  useEffect(() => {
     
    176259          setUserCountry(SRFWAPP.countries);
    177260        }
     261        if (SRFWAPP.roleSettingsSummary) setRoleSummary(Object.entries(SRFWAPP.roleSettingsSummary).map(([key, data]) => ({ key, ...data })));
     262        if (SRFWAPP.countrySettingsSummary) setCountrySummary(Object.entries(SRFWAPP.countrySettingsSummary).map(([code, data]) => ({ code, ...data })));
     263        if (SRFWAPP.globalSettings) setGlobalSettings({
     264          enabled: !!SRFWAPP.globalSettings.enabled,
     265          selectedProducts: SRFWAPP.globalSettings.selectedProducts || [],
     266          selectedCategories: SRFWAPP.globalSettings.selectedCategories || []
     267        });
    178268      } catch (error) {
    179269        console.error("Error setting data from SRFWAPP:", error);
     
    215305    fetchData();
    216306    fetchSavedData();
     307    // Load order settings
     308    (async () => {
     309      try {
     310        const res = await fetch("/wp-json/srfw/v1/settings/order", {
     311          method: "GET",
     312          headers: {
     313            "X-WP-Nonce": SRFWAPP.nonce,
     314            "Content-Type": "application/json",
     315          },
     316        });
     317        if (res.ok) {
     318          const data = await res.json();
     319          setOrderSettings({
     320            enabled: !!data.enabled,
     321            targetProducts: data.targetProducts || [],
     322            targetCategories: data.targetCategories || [],
     323            minTotalSpent: data.minTotalSpent || 0,
     324            minOrderCount: data.minOrderCount || 0,
     325            requiredProducts: data.requiredProducts || [],
     326          });
     327        }
     328      } catch (e) {
     329        // silent
     330      }
     331    })();
    217332  }, []);
    218333
    219   useEffect(() => {}, [roleSettings, userRoles, userCountry]);
     334  useEffect(() => { }, [roleSettings, userRoles, userCountry]);
    220335
    221336  const handleTabChange = (event, newValue) => {
     337    // Allow navigating to PRO tabs; overlay button handles redirect
    222338    setActiveTab(newValue);
    223339  };
    224340
    225341  const handleGlobalSave = async () => {
    226     if (!globalSettings.enabled) {
    227       setSaveStatus({
    228         type: "error",
    229         message: "Please enable global restrictions first.",
    230       });
    231       return;
    232     }
    233 
     342    // Only validate product/category selection if restrictions are enabled
    234343    if (
     344      globalSettings.enabled &&
    235345      globalSettings.selectedProducts.length === 0 &&
    236346      globalSettings.selectedCategories.length === 0
     
    303413
    304414  const handleRoleSave = async () => {
    305     if (!roleSettings.enabled) {
    306       setSaveStatus({
    307         type: "error",
    308         message: "Please enable role-based restrictions first.",
    309       });
     415    // Only validate if a role is selected
     416    if (!roleSettings.selectedRole) {
     417      setSaveStatus({ type: "error", message: "Please select a user role." });
    310418      return;
    311419    }
    312420
     421    // Only validate product/category selection if restrictions are enabled
    313422    if (
     423      roleSettings.enabled &&
    314424      roleSettings.selectedProducts.length === 0 &&
    315425      roleSettings.selectedCategories.length === 0
     
    319429        message: "Please select at least one product or category.",
    320430      });
    321       return;
    322     }
    323 
    324     if (!roleSettings.selectedRole) {
    325       setSaveStatus({ type: "error", message: "Please select a user role." });
    326431      return;
    327432    }
     
    487592      </Typography>
    488593      <Divider sx={{ mb: 3 }} />
     594      {roleSummary.length > 0 && (
     595        <Box sx={{ mb: 3 }}>
     596          <Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 1 }}>Configured Roles</Typography>
     597          <Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 1 }}>
     598            {roleSummary.map(r => (
     599              <Button key={r.key} size="small" variant={r.key === roleSettings.selectedRole ? 'contained' : 'outlined'} onClick={() => fetchRoleSettings(r.key)}>
     600                {r.key} {r.enabled ? '✓' : ''}
     601              </Button>
     602            ))}
     603          </Box>
     604        </Box>
     605      )}
    489606
    490607      <Autocomplete
     
    659776
    660777    const handleCountrySave = async () => {
    661       if (!countrySettings.enabled) {
    662         setSaveStatus({
    663           type: "error",
    664           message: "Please enable country-based restrictions first.",
    665         });
    666         return;
    667       }
     778   
    668779
    669780      if (
     
    723834        </Typography>
    724835        <Divider sx={{ mb: 3 }} />
     836        {countrySummary.length > 0 && (
     837          <Box sx={{ mb: 3 }}>
     838            <Typography variant="subtitle2" sx={{ fontWeight: 600, mb: 1 }}>Configured Countries</Typography>
     839            <Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 1, maxHeight: 120, overflowY: 'auto' }}>
     840              {countrySummary.map(c => (
     841                <Button key={c.code} size="small" variant={c.code === countrySettings.selectedCountry ? 'contained' : 'outlined'} onClick={() => fetchCountrySettings(c.code)}>
     842                  {c.code} {c.enabled ? '✓' : ''}
     843                </Button>
     844              ))}
     845            </Box>
     846          </Box>
     847        )}
    725848
    726849        <Autocomplete
     
    865988  };
    866989
    867   const renderProVersionNotice = () => (
    868     <div
    869       className="coming-soon-container"
    870       style={{
    871         textAlign: "center",
    872         padding: "40px 20px",
    873         maxWidth: "800px",
    874         margin: "0 auto",
    875       }}
    876     >
    877       <img
    878         src={comingSoonIcon}
    879         alt="Coming Soon"
    880         style={{
    881           width: "120px",
    882           marginBottom: "30px",
    883         }}
     990  const handleOrderSave = async () => {
     991   
     992    try {
     993      const res = await fetch("/wp-json/srfw/v1/settings/order", {
     994        method: "POST",
     995        headers: {
     996          "Content-Type": "application/json",
     997          "X-WP-Nonce": SRFWAPP.nonce,
     998        },
     999        body: JSON.stringify(orderSettings),
     1000      });
     1001      if (!res.ok) throw new Error();
     1002      setSaveStatus({ type: "success", message: "Order settings saved successfully!" });
     1003    } catch (e) {
     1004      setSaveStatus({ type: "error", message: "Error saving order settings." });
     1005    }
     1006    setTimeout(() => setSaveStatus(null), 3000);
     1007  };
     1008
     1009  const renderOrderSettings = () => (
     1010    <Box>
     1011      <Typography variant="h5" gutterBottom sx={{ color: "primary.main", fontWeight: 500 }}>
     1012        Order-Based Restriction Settings
     1013      </Typography>
     1014      <Divider sx={{ mb: 3 }} />
     1015
     1016      <FormGroup sx={{ mb: 3 }}>
     1017        <FormControlLabel
     1018          sx={{ gap: 1.25 }}
     1019          control={
     1020            <ToggleSwitch
     1021              color="primary"
     1022              checked={orderSettings.enabled}
     1023              onChange={(e) => setOrderSettings({ ...orderSettings, enabled: e.target.checked })}
     1024            />
     1025          }
     1026          label="Enable Order-Based Restrictions"
     1027        />
     1028      </FormGroup>
     1029
     1030      <Typography variant="subtitle1" sx={{ mb: 1, fontWeight: 600 }}>Targets</Typography>
     1031      <Autocomplete
     1032        multiple
     1033        options={products}
     1034        getOptionLabel={(o) => o.name}
     1035        value={orderSettings.targetProducts.map((id) => products.find((p) => p.id === id) || { id, name: "Unknown" })}
     1036        onChange={(e, v) => setOrderSettings({ ...orderSettings, targetProducts: v.map((p) => p.id) })}
     1037        renderInput={(params) => <TextField {...params} label="Products" placeholder="Type to search..." />}
     1038        sx={{ mb: 2 }}
    8841039      />
    885 
    886       <h2
    887         style={{
    888           fontSize: "28px",
    889           color: "#23282d",
    890           marginBottom: "20px",
    891         }}
    892       >
    893         Feature Coming Soon!
    894       </h2>
    895 
    896       <p
    897         style={{
    898           fontSize: "16px",
    899           color: "#646970",
    900           lineHeight: "1.6",
    901           marginBottom: "30px",
    902         }}
    903       >
    904         Advanced order-based restrictions, perfect for creating exclusive
    905         shopping experiences based on customer purchase history.
    906       </p>
    907 
    908       <div
    909         style={{
    910           background: "#f6f7f7",
    911           padding: "25px",
    912           borderRadius: "8px",
    913           marginBottom: "30px",
    914         }}
    915       >
    916         <h3
    917           style={{
    918             fontSize: "18px",
    919             color: "#2271b1",
    920             marginBottom: "15px",
    921           }}
    922         >
    923           🚀 Upcoming Premium Features:
    924         </h3>
    925         <ul
    926           style={{
    927             listStyle: "none",
    928             padding: 0,
    929             margin: 0,
    930             textAlign: "left",
    931           }}
    932         >
    933           {[
    934             "Minimum order amount restrictions",
    935             "Previous purchase requirements",
    936             "VIP customer exclusive products",
    937             "Order count based access",
    938           ].map((feature, index) => (
    939             <li
    940               key={index}
    941               style={{
    942                 margin: "10px 0",
    943                 color: "#646970",
    944                 display: "flex",
    945                 alignItems: "center",
    946               }}
    947             >
    948               <span style={{ color: "#2271b1", marginRight: "10px" }}>✓</span>
    949               {feature}
    950             </li>
    951           ))}
    952         </ul>
    953       </div>
    954 
    955       <button
    956         className="button button-primary"
    957         style={{
    958           padding: "10px 20px",
    959           fontSize: "15px",
    960           height: "auto",
    961         }}
    962         onClick={() => (window.location.href = "mailto:[email protected]")}
    963       >
    964         Get Notified When Available
    965       </button>
    966     </div>
     1040      <Autocomplete
     1041        multiple
     1042        options={categories}
     1043        getOptionLabel={(o) => o.name}
     1044        value={orderSettings.targetCategories.map((id) => categories.find((c) => c.id === id) || { id, name: "Unknown" })}
     1045        onChange={(e, v) => setOrderSettings({ ...orderSettings, targetCategories: v.map((c) => c.id) })}
     1046        renderInput={(params) => <TextField {...params} label="Categories" placeholder="Type to search..." />}
     1047        sx={{ mb: 4 }}
     1048      />
     1049
     1050      <Typography variant="subtitle1" sx={{ mb: 1, fontWeight: 600 }}>Conditions</Typography>
     1051      <Box sx={{ display: 'grid', gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' }, gap: 2, mb: 3 }}>
     1052        <TextField
     1053          type="number"
     1054          label="Minimum total spent"
     1055          value={orderSettings.minTotalSpent}
     1056          onChange={(e) => setOrderSettings({ ...orderSettings, minTotalSpent: Number(e.target.value) })}
     1057          inputProps={{ min: 0, step: 1 }}
     1058        />
     1059        <TextField
     1060          type="number"
     1061          label="Minimum order count"
     1062          value={orderSettings.minOrderCount}
     1063          onChange={(e) => setOrderSettings({ ...orderSettings, minOrderCount: Number(e.target.value) })}
     1064          inputProps={{ min: 0, step: 1 }}
     1065        />
     1066      </Box>
     1067      <Autocomplete
     1068        multiple
     1069        options={products}
     1070        getOptionLabel={(o) => o.name}
     1071        value={orderSettings.requiredProducts.map((id) => products.find((p) => p.id === id) || { id, name: "Unknown" })}
     1072        onChange={(e, v) => setOrderSettings({ ...orderSettings, requiredProducts: v.map((p) => p.id) })}
     1073        renderInput={(params) => <TextField {...params} label="Previous purchase required (any of)" placeholder="Type to search..." />}
     1074        sx={{ mb: 4 }}
     1075      />
     1076
     1077
     1078
     1079      <Button variant="contained" onClick={handleOrderSave}>Save Order Settings</Button>
     1080    </Box>
     1081  );
     1082
     1083  const handleBulkRoleSave = async () => {
     1084    // Always validate that at least one role is selected
     1085    if (bulkRoleSettings.roles.length === 0) {
     1086      setSaveStatus({ type: 'error', message: 'Select at least one role.' });
     1087      return;
     1088    }
     1089    // Only validate product/category selection if restrictions are enabled
     1090    if (
     1091      bulkRoleSettings.enabled &&
     1092      bulkRoleSettings.selectedProducts.length === 0 &&
     1093      bulkRoleSettings.selectedCategories.length === 0
     1094    ) {
     1095      setSaveStatus({ type: 'error', message: 'Select products or categories to restrict.' });
     1096      return;
     1097    }
     1098    try {
     1099      const res = await fetch('/wp-json/srfw/v1/settings/roles/bulk', {
     1100        method: 'POST',
     1101        headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': SRFWAPP.nonce },
     1102        body: JSON.stringify(bulkRoleSettings)
     1103      });
     1104      if (!res.ok) throw new Error();
     1105      setSaveStatus({ type: 'success', message: 'Bulk role restrictions saved.' });
     1106    } catch (e) {
     1107      setSaveStatus({ type: 'error', message: 'Failed saving bulk role restrictions.' });
     1108    }
     1109    setTimeout(() => setSaveStatus(null), 3000);
     1110  };
     1111
     1112  const handleBulkCountrySave = async () => {
     1113    // Always validate that at least one country is selected
     1114    if (bulkCountrySettings.countries.length === 0) {
     1115      setSaveStatus({ type: 'error', message: 'Select at least one country.' });
     1116      return;
     1117    }
     1118    // Only validate product/category selection if restrictions are enabled
     1119    if (
     1120      bulkCountrySettings.enabled &&
     1121      bulkCountrySettings.selectedProducts.length === 0 &&
     1122      bulkCountrySettings.selectedCategories.length === 0
     1123    ) {
     1124      setSaveStatus({ type: 'error', message: 'Select products or categories to restrict.' });
     1125      return;
     1126    }
     1127    try {
     1128      const res = await fetch('/wp-json/srfw/v1/settings/countries/bulk', {
     1129        method: 'POST',
     1130        headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': SRFWAPP.nonce },
     1131        body: JSON.stringify(bulkCountrySettings)
     1132      });
     1133      if (!res.ok) throw new Error();
     1134      setSaveStatus({ type: 'success', message: 'Bulk country restrictions saved.' });
     1135    } catch (e) {
     1136      setSaveStatus({ type: 'error', message: 'Failed saving bulk country restrictions.' });
     1137    }
     1138    setTimeout(() => setSaveStatus(null), 3000);
     1139  };
     1140
     1141  const renderBulkRoleSettings = () => (
     1142    <Box>
     1143      <Typography variant='h5' gutterBottom sx={{ color: 'primary.main', fontWeight: 500 }}>Bulk Role Restrictions</Typography>
     1144      <Divider sx={{ mb: 3 }} />
     1145      <FormGroup sx={{ mb: 4 }}>
     1146        <FormControlLabel
     1147          sx={{ columnGap: 1.5 }}
     1148          control={<ToggleSwitch checked={bulkRoleSettings.enabled} onChange={e => setBulkRoleSettings({ ...bulkRoleSettings, enabled: e.target.checked })} />}
     1149          label='Enable Bulk Role Restrictions'
     1150        />
     1151      </FormGroup>
     1152     
     1153      <Autocomplete
     1154        multiple
     1155        options={userRoles}
     1156        getOptionLabel={o => o.name}
     1157        value={bulkRoleSettings.roles.map(key => userRoles.find(r => r.key === key) || { key, name: key })}
     1158        onChange={(e, v) => setBulkRoleSettings({ ...bulkRoleSettings, roles: v.map(r => r.key) })}
     1159        renderInput={params => <TextField {...params} label='Select Roles' placeholder='Choose roles...' />}
     1160        sx={{ mb: 3 }}
     1161      />
     1162      <Box sx={{ display: 'flex', gap: 1, mb: 3 }}>
     1163        <Button size='small' variant='outlined' onClick={() => setBulkRoleSettings({ ...bulkRoleSettings, roles: userRoles.map(r => r.key) })}>Select All</Button>
     1164        <Button size='small' variant='outlined' onClick={() => setBulkRoleSettings({ ...bulkRoleSettings, roles: [] })}>Clear</Button>
     1165      </Box>
     1166      <Autocomplete
     1167        multiple
     1168        options={products}
     1169        getOptionLabel={o => o.name}
     1170        value={bulkRoleSettings.selectedProducts.map(id => products.find(p => p.id === id) || { id, name: 'Unknown' })}
     1171        onChange={(e, v) => setBulkRoleSettings({ ...bulkRoleSettings, selectedProducts: v.map(p => p.id) })}
     1172        renderInput={params => <TextField {...params} label='Restrict Products' placeholder='Type to search...' />}
     1173        sx={{ mb: 3 }}
     1174      />
     1175      <Autocomplete
     1176        multiple
     1177        options={categories}
     1178        getOptionLabel={o => o.name}
     1179        value={bulkRoleSettings.selectedCategories.map(id => categories.find(c => c.id === id) || { id, name: 'Unknown' })}
     1180        onChange={(e, v) => setBulkRoleSettings({ ...bulkRoleSettings, selectedCategories: v.map(c => c.id) })}
     1181        renderInput={params => <TextField {...params} label='Restrict Categories' placeholder='Type to search...' />}
     1182        sx={{ mb: 4 }}
     1183      />
     1184      <Button variant='contained' onClick={handleBulkRoleSave}>Save Bulk Role Restrictions</Button>
     1185    </Box>
     1186  );
     1187
     1188  const renderBulkCountrySettings = () => (
     1189    <Box sx={{ mt: 4 }}>
     1190      <Typography variant='h5' gutterBottom sx={{ color: 'primary.main', fontWeight: 500 }}>Bulk Country Restrictions</Typography>
     1191      <Divider sx={{ mb: 3 }} />
     1192      <FormGroup sx={{ mb: 4 }}>
     1193        <FormControlLabel
     1194          sx={{ columnGap: 1.5 }}
     1195          control={<ToggleSwitch checked={bulkCountrySettings.enabled} onChange={e => setBulkCountrySettings({ ...bulkCountrySettings, enabled: e.target.checked })} />}
     1196          label='Enable Bulk Country Restrictions'
     1197        />
     1198      </FormGroup>
     1199      <Autocomplete
     1200        multiple
     1201        options={userCountry}
     1202        getOptionLabel={o => o.name}
     1203        value={bulkCountrySettings.countries.map(code => userCountry.find(c => c.code === code) || { code, name: code })}
     1204        onChange={(e, v) => setBulkCountrySettings({ ...bulkCountrySettings, countries: v.map(c => c.code) })}
     1205        renderInput={params => <TextField {...params} label='Select Countries' placeholder='Choose countries...' />}
     1206        sx={{ mb: 3 }}
     1207      />
     1208      <Box sx={{ display: 'flex', gap: 1, mb: 3 }}>
     1209        <Button size='small' variant='outlined' onClick={() => setBulkCountrySettings({ ...bulkCountrySettings, countries: userCountry.map(c => c.code) })}>Select All</Button>
     1210        <Button size='small' variant='outlined' onClick={() => setBulkCountrySettings({ ...bulkCountrySettings, countries: [] })}>Clear</Button>
     1211      </Box>
     1212      <Autocomplete
     1213        multiple
     1214        options={products}
     1215        getOptionLabel={o => o.name}
     1216        value={bulkCountrySettings.selectedProducts.map(id => products.find(p => p.id === id) || { id, name: 'Unknown' })}
     1217        onChange={(e, v) => setBulkCountrySettings({ ...bulkCountrySettings, selectedProducts: v.map(p => p.id) })}
     1218        renderInput={params => <TextField {...params} label='Restrict Products' placeholder='Type to search...' />}
     1219        sx={{ mb: 3 }}
     1220      />
     1221      <Autocomplete
     1222        multiple
     1223        options={categories}
     1224        getOptionLabel={o => o.name}
     1225        value={bulkCountrySettings.selectedCategories.map(id => categories.find(c => c.id === id) || { id, name: 'Unknown' })}
     1226        onChange={(e, v) => setBulkCountrySettings({ ...bulkCountrySettings, selectedCategories: v.map(c => c.id) })}
     1227        renderInput={params => <TextField {...params} label='Restrict Categories' placeholder='Type to search...' />}
     1228        sx={{ mb: 4 }}
     1229      />
     1230      <Button variant='contained' onClick={handleBulkCountrySave}>Save Bulk Country Restrictions</Button>
     1231    </Box>
    9671232  );
    9681233
     
    10491314            <Tab label="Global Restriction" value="global" />
    10501315            <Tab label="Role-Based Restriction" value="role" />
    1051             <Tab label="Country Based Restriction" value="country" />
    1052             <Tab label="Order Based Restriction" value="order" />
     1316            <Tab label={proTabLabel("Bulk Role Restrictions")} value="bulkRole" />
     1317            <Tab label="Country-Based Restriction" value="country" />
     1318            <Tab label={proTabLabel("Bulk Country Restrictions")} value="bulkCountry" />
     1319            <Tab label={proTabLabel("Order-Based Restriction")} value="order" />
    10531320          </Tabs>
    10541321        </Paper>
     
    10661333          <Card>
    10671334            <CardContent sx={{ p: 4 }}>
    1068               {activeTab === "global"
    1069                 ? renderGlobalSettings()
    1070                 : activeTab === "role"
    1071                 ? renderRoleSettings()
    1072                 : activeTab === "country"
    1073                 ? renderCountrySettings()
    1074                 : renderProVersionNotice()}
     1335              {activeTab === "global" && renderGlobalSettings()}
     1336              {activeTab === "role" && renderRoleSettings()}
     1337              {activeTab === "bulkRole" && <ProLock>{renderBulkRoleSettings()}</ProLock>}
     1338              {activeTab === "country" && renderCountrySettings()}
     1339              {activeTab === "bulkCountry" && <ProLock>{renderBulkCountrySettings()}</ProLock>}
     1340              {activeTab === "order" && <ProLock>{renderOrderSettings()}</ProLock>}
    10751341            </CardContent>
    10761342          </Card>
  • store-restriction-for-woocommerce/trunk/store-restriction-for-woocommerce.php

    r3382930 r3415191  
    44 * Plugin URI: https://wordpress.org/plugins/store-restriction-for-woocommerce
    55 * Description: Store Restriction for WooCommerce transforms your WooCommerce store into a powerful restricted access platform. Whether you're running a wholesale business, B2B marketplace, or members-only shop, our plugin gives you complete control over product visibility and access.
    6  * Version: 1.2
    7  * Tags: woocommerce, product visibility, product restriction, user role restriction, country restriction
     6 * Version: 1.3.0
     7 * Tags: woocommerce, product visibility, restrict products, hide prices, user roles, wholesale, b2b, members only, country restriction, category restriction, private store, catalog visibility
    88 * Author: WooSofts
    9  * Author Email: [email protected]
    10  * Tested up to: 6.8
     9 * Author URI: https://versesofts.com
     10 * Requires at least: 5.0
     11 * Tested up to: 6.9
     12 * Requires PHP: 7.0
    1113 * Text Domain: store-restriction-for-woocommerce
    1214 * Requires Plugins: woocommerce
    1315 * WC requires at least: 4.0
    14  * WC tested up to: 9.6
     16 * WC tested up to: 10.3
    1517 * License: GPLv2 or later
    1618 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2224define('SRFW_PATH', plugin_dir_path(__FILE__));
    2325define('SRFW_FILE', __FILE__);
    24 define('SRFW_VERSION', '1.2');
     26define('SRFW_VERSION', '1.3.0');
    2527
    26 //Freemius Integration Start
     28// Freemius Integration Start (restored)
    2729if ( ! function_exists( 'srfw_fs' ) ) {
    28     // Create a helper function for easy SDK access.
    29     function srfw_fs() {
    30         global $srfw_fs;
     30    function srfw_fs() {
     31        global $srfw_fs;
    3132
    32         if ( ! isset( $srfw_fs ) ) {
    33             // Include Freemius SDK.
    34             require_once dirname( __FILE__ ) . '/freemius/start.php';
    35             $srfw_fs = fs_dynamic_init( array(
    36                 'id'                  => '18037',
    37                 'slug'                => 'store-restriction-for-woocommerce',
    38                 'type'                => 'plugin',
    39                 'public_key'          => 'pk_a2333623b9fdf718edb46d8ec7dc6',
    40                 'is_premium'          => false,
    41                 'has_addons'          => false,
    42                 'has_paid_plans'      => false,
    43                 'menu'                => array(
    44                     'slug'           => 'store-restriction-for-woocommerce',
    45                     'first-path'     => 'admin.php?page=store-restriction-for-woocommerce',
     33        if ( ! isset( $srfw_fs ) ) {
     34            require_once dirname( __FILE__ ) . '/freemius/start.php';
     35            $srfw_fs = fs_dynamic_init( array(
     36                'id'                  => '18037',
     37                'slug'                => 'store-restriction-for-woocommerce',
     38                'type'                => 'plugin',
     39                'public_key'          => 'pk_a2333623b9fdf718edb46d8ec7dc6',
     40                'is_premium'          => false,
     41                'has_addons'          => false,
     42                'has_paid_plans'      => false,
     43                'menu'                => array(
     44                    'first-path'     => 'admin.php?page=wc-settings&tab=srfw',
    4645                    'account'        => false,
    4746                    'contact'        => false,
    4847                    'support'        => false,
    49                     'parent'         => array(
    50                         'slug' => 'woocommerce',
    51                     ),
    5248                ),
    53             ) );
    54         }
     49            ) );
     50        }
    5551
    56         return $srfw_fs;
    57     }
     52        return $srfw_fs;
     53    }
    5854
    59     // Init Freemius.
    60     srfw_fs();
    61     // Signal that SDK was initiated.
    62     do_action( 'srfw_fs_loaded' );
     55    // Init Freemius.
     56    srfw_fs();
     57    // Signal that SDK was initiated.
     58    do_action( 'srfw_fs_loaded' );
    6359}
    64 //Freemius Integration end
     60// Freemius Integration End
     61
     62
    6563
    6664if ( ! class_exists( 'Store_Restriction' ) ) {
     
    7573            * @since 1.0
    7674            **/
    77             if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')), true) ) {
     75            // Load only if WooCommerce is available
     76            if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) || ( is_multisite() && array_key_exists( 'woocommerce/woocommerce.php', get_site_option( 'active_sitewide_plugins', array() ) ) ) ) {
    7877
    7978                add_action(
     
    8887
    8988                add_filter('plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'srfw_settings_link' ));
    90                 add_filter( 'plugin_row_meta', array( $this, 'srfw_plugin_description_links' ), 10, 2 );
     89                add_filter('plugin_row_meta', array( $this, 'srfw_plugin_row_meta' ), 10, 2 );
    9190            } else {
    9291                add_action('admin_notices', array( $this, 'srfw_inactive_plugin_notice' ));
     
    9695        public function srfw_settings_link( $links ) {
    9796
    98             $url = esc_url(add_query_arg('page', 'store-restriction-for-woocommerce', 'admin.php'));
     97            $url = esc_url( add_query_arg( array( 'page' => 'wc-settings', 'tab' => 'srfw' ), 'admin.php' ) );
    9998            $settings_link = sprintf('<a href="%s">%s</a>', $url, __('Settings', 'store-restriction-for-woocommerce'));
    100             array_unshift($links, $settings_link);
     99            $docs_link = '<a href="http://versesofts.com/docs/store-restriction" target="_blank">' . esc_html__('Docs', 'store-restriction-for-woocommerce') . '</a>';
     100            array_unshift($links, $settings_link, $docs_link);
    101101            return $links;
    102102        }
    103103
    104         public function srfw_plugin_description_links( $links, $file ) {
    105 
    106             if ( $file != plugin_basename( __FILE__ ) ) {
     104        public function srfw_plugin_row_meta( $links, $file ) {
     105            if ( $file !== plugin_basename( __FILE__ ) ) {
    107106                return $links;
    108107            }
    109 
    110             $links[] = '<a href="mailto:[email protected]">Email Support</a>';
    111 
     108            $links[] = '<a href="http://versesofts.com/docs/store-restriction" target="_blank">' . esc_html__('Documentation', 'store-restriction-for-woocommerce') . '</a>';
     109            $links[] = '<a href="https://www.versesofts.com/feature-request?plugin=store-restriction" target="_blank">' . esc_html__('Feature Request', 'store-restriction-for-woocommerce') . '</a>';
    112110            return $links;
    113111        }
Note: See TracChangeset for help on using the changeset viewer.