synapse-admin/static/js/main.96393f02.js

3 lines
1.2 MiB

/*! For license information please see main.96393f02.js.LICENSE.txt */
(()=>{var e={5513:(e,t,r)=>{"use strict";r.d(t,{A:()=>oe});var n=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(n){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(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,v=1,y=0,g=0,b=0,x="";function w(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:h,column:v,length:i,return:""}}function A(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=g>0?u(x,--g):0,v--,10===b&&(v=1,h--),b}function O(){return b=g<y?u(x,g++):0,v++,10===b&&(v=1,h++),b}function _(){return u(x,g)}function E(){return g}function k(e,t){return d(x,e,t)}function j(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 C(e){return h=v=1,y=p(x=e),g=0,[]}function P(e){return x="",e}function R(e){return s(k(g-1,M(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(b=_())&&b<33;)O();return j(e)>2||j(b)>3?"":" "}function I(e,t){for(;--t&&O()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,E()+(t<6&&32==_()&&32==O()))}function M(e){for(;O();)switch(b){case e:return g;case 34:case 39:34!==e&&39!==e&&M(b);break;case 40:41===e&&M(e);break;case 92:O()}return g}function N(e,t){for(;O()&&e+b!==57&&(e+b!==84||47!==_()););return"/*"+k(t,g-1)+"*"+a(47===e?e:O())}function L(e){for(;!j(_());)O();return k(e,g)}var F="-ms-",z="-moz-",D="-webkit-",B="comm",V="rule",W="decl",U="@keyframes";function q(e,t){for(var r="",n=f(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function H(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case W:return e.return=e.return||e.value;case B:return"";case U:return e.return=e.value+"{"+q(e.children,n)+"}";case V:e.value=e.props.join(",")}return p(r=q(e.children,n))?e.return=e.value+"{"+r+"}":""}function $(e){return P(Q("",null,null,null,[""],e=C(e),0,[0],e))}function Q(e,t,r,n,o,i,s,d,f){for(var h=0,v=0,y=s,g=0,b=0,x=0,w=1,A=1,k=1,j=0,C="",P=o,M=i,F=n,z=C;A;)switch(x=j,j=O()){case 40:if(108!=x&&58==u(z,y-1)){-1!=c(z+=l(R(j),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:z+=R(j);break;case 9:case 10:case 13:case 32:z+=T(x);break;case 92:z+=I(E()-1,7);continue;case 47:switch(_()){case 42:case 47:m(G(N(O(),E()),t,r),f);break;default:z+="/"}break;case 123*w:d[h++]=p(z)*k;case 125*w:case 59:case 0:switch(j){case 0:case 125:A=0;case 59+v:-1==k&&(z=l(z,/\f/g,"")),b>0&&p(z)-y&&m(b>32?X(z+";",n,r,y-1):X(l(z," ","")+";",n,r,y-2),f);break;case 59:z+=";";default:if(m(F=K(z,t,r,h,v,o,d,C,P=[],M=[],y),i),123===j)if(0===v)Q(z,t,F,F,P,i,y,d,M);else switch(99===g&&110===u(z,3)?100:g){case 100:case 108:case 109:case 115:Q(e,F,F,n&&m(K(e,F,F,0,0,o,d,C,o,P=[],y),M),o,M,y,d,n?P:M);break;default:Q(z,F,F,F,[""],M,0,d,M)}}h=v=b=0,w=k=1,C=z="",y=s;break;case 58:y=1+p(z),b=x;default:if(w<1)if(123==j)--w;else if(125==j&&0==w++&&125==S())continue;switch(z+=a(j),j*w){case 38:k=v>0?1:(z+="\f",-1);break;case 44:d[h++]=(p(z)-1)*k,k=1;break;case 64:45===_()&&(z+=R(O())),g=_(),v=y=p(C=z+=L(E())),j++;break;case 45:45===x&&2==p(z)&&(w=0)}}return i}function K(e,t,r,n,a,i,c,u,p,m,h){for(var v=a-1,y=0===a?i:[""],g=f(y),b=0,x=0,A=0;b<n;++b)for(var S=0,O=d(e,v+1,v=o(x=c[b])),_=e;S<g;++S)(_=s(x>0?y[S]+" "+O:l(O,/&\f/g,y[S])))&&(p[A++]=_);return w(e,t,r,0===a?V:u,p,m,h)}function G(e,t,r){return w(e,t,r,B,a(b),d(e,2,-2),0)}function X(e,t,r,n){return w(e,t,r,W,d(e,0,n),d(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,o=0;n=o,o=_(),38===n&&12===o&&(t[r]=1),!j(o);)O();return k(e,g)},J=function(e,t){return P(function(e,t){var r=-1,n=44;do{switch(j(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=Y(g-1,t,r);break;case 2:e[r]+=R(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(n)}}while(n=O());return e}(C(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=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))&&!n){Z.set(e,!0);for(var o=[],a=J(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return D+"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 D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+z+e+F+e+e;case 6828:case 4268:return D+e+F+e+e;case 6165:return D+e+F+"flex-"+e+e;case 5187:return D+e+l(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return D+e+F+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return D+e+F+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return D+e+F+l(e,"shrink","negative")+e;case 5292:return D+e+F+l(e,"basis","preferred-size")+e;case 6060:return D+"box-"+l(e,"-grow","")+D+e+F+l(e,"grow","positive")+e;case 4554:return D+l(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,D+"$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(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+D)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+D+(45===u(e,14)?"inline-":"")+"box$3$1"+D+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return D+e+F+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=re(e.value,e.length);break;case U:return q([A(e,{value:l(e.value,"@","@"+D)})],n);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return q([A(e,{props:[l(t,/:(plac\w+)/,":"+D+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],n)}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 o=e.stylisPlugins||ne;var a,i,s={},l=[];a=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++)s[t[r]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=function(e){var t=f(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([ee,te].concat(o,d));i=function(e,t,r,n){c=r,q($(e?e+"{"+t.styles+"}":t.styles),p),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new n({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return m.sheet.hydrate(l),m}},918:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},5025:(e,t,r)=>{"use strict";r.d(t,{C:()=>s,T:()=>c,i:()=>a,w:()=>l});var n=r(5043),o=r(5513),a=(r(2830),r(9436),!0),i=n.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null);var s=i.Provider,l=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))};a||(l=function(e){return function(t){var r=(0,n.useContext)(i);return null===r?(r=(0,o.A)({key:"css"}),n.createElement(i.Provider,{value:r},e(t,r))):e(t,r)}});var c=n.createContext({})},909:(e,t,r)=>{"use strict";r.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var n=r(5025),o=r(5043),a=r(1722),i=r(9436),s=r(2830),l=(r(5513),r(219),(0,n.w)((function(e,t){var r=e.styles,l=(0,s.J)([r],void 0,o.useContext(n.T));if(!n.i){for(var c,u=l.name,d=l.styles,p=l.next;void 0!==p;)u+=" "+p.name,d+=p.styles,p=p.next;var f=!0===t.compat,m=t.insert("",{name:u,styles:d},t.sheet,f);return f?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:m},c.nonce=t.sheet.nonce,c))}var h=o.useRef();return(0,i.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}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),h.current=[r,n],function(){r.flush()}}),[t]),(0,i.i)((function(){var e=h.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,a.sk)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.J)(t)}var u=function(){var e=c.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_"}}}},2830:(e,t,r)=>{"use strict";r.d(t,{J:()=>m});var n={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,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},o=r(918),a=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.A)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(i,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===n[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return p={name:r.name,styles:r.styles,next:p},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=d(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!==typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":l(i)&&(n+=c(a)+":"+u(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=d(e,t,i);switch(a){case"animation":case"animationName":n+=c(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var p=0;p<i.length;p++)l(i[p])&&(n+=c(a)+":"+u(a,i[p])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=p,a=r(e);return p=o,d(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var p,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";p=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=d(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=d(r,t,e[i]),n&&(o+=a[i]);f.lastIndex=0;for(var s,l="";null!==(s=f.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},9436:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>s,s:()=>i});var o=r(5043),a=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},1722:(e,t,r)=>{"use strict";r.d(t,{Rk:()=>n,SF:()=>o,sk:()=>a});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},9089:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle")},2505:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},4783:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")},9343:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}),"ArrowCircleDown")},2010:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0 2c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m-1-10v4h2v-4h3l-4-4-4 4z"}),"ArrowCircleUp")},288:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"}),"AssignmentInd")},2126:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew")},3723:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},9307:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4")},8094:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7")},5502:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}),"Cancel")},8256:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined")},9778:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},155:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.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"}),"Clear")},4802:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.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")},6404:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"}),"CloudQueue")},4216:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber")},3441:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail")},5824:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create")},2856:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},3471:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},697:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")},9719:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep")},4705:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices")},7500:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done")},6061:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator")},8570:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"}),"Equalizer")},1528:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},7948:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},9709:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event")},1337:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},2509:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"}),"FastForward")},8242:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},6529:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"}),"FolderShared")},5971:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp")},6893:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group")},5393:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},1958:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},7278:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)([(0,a.jsx)("circle",{cx:"7",cy:"6",r:"2"},"0"),(0,a.jsx)("path",{d:"M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8zM7 20H5v-6h2zm4 0H9v-6h2zm4 0h-2v-6h2zm4 0h-2v-6h2zm-.35-14.14-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71m-4 0-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71"},"1")],"HotTub")},6199:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https")},8029:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox")},7555:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},3531:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}),"LockOpen")},9611:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},3813:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"}),"Message")},9282:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"}),"NoEncryption")},5310:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications")},8874:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"}),"Pageview")},400:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"}),"PermMedia")},974:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"}),"PersonPin")},9790:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew")},8625:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},728:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutline")},7796:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye")},9990:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report")},4329:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},6360:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},2577:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},9877:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent")},6472:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate")},7981:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList")},8397:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek")},7260:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},2819:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},3102:(e,t,r)=>{"use strict";var n=r(4994);t.A=void 0;var o=n(r(39)),a=r(579);t.A=(0,o.default)((0,a.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},39:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(1715)},8279:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(8168),o=r(8587),a=r(6632),i=r(3216),s=r(7758),l=r(8812),c=r(8280);var u=r(7266);const d={black:"#000",white:"#fff"},p={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"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},h={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},w={text:{primary:d.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:d.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 A(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,a)))}function S(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[200],light:f[50],dark:f[400]}:{main:f[500],light:f[300],dark:f[700]}}(t),O=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(t),_=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),E=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[800],light:g[500],dark:g[900]}}(t),k=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[400],light:h[300],dark:h[700]}:{main:"#ed6c02",light:h[500],dark:h[900]}}(t);function j(e){return(0,u.eM)(e,w.text.primary)>=r?w.text.primary:x.text.primary}const C=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:l=700}=e;if(t=(0,n.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.A)(11,r?" (".concat(r,")"):"",o));if("string"!==typeof t.main)throw new Error((0,a.A)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return A(t,"light",i,s),A(t,"dark",l,s),t.contrastText||(t.contrastText=j(t.main)),t},P={dark:w,light:x};return(0,i.A)((0,n.A)({common:(0,n.A)({},d),mode:t,primary:C({color:c,name:"primary"}),secondary:C({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:O,name:"error"}),warning:C({color:k,name:"warning"}),info:C({color:_,name:"info"}),success:C({color:E,name:"success"}),grey:p,contrastThreshold:r,getContrastText:j,augmentColor:C,tonalOffset:s},P[t]),l)}const O=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const _={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){const r="function"===typeof t?t(e):t,{fontFamily:a=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:f,pxToRem:m}=r,h=(0,o.A)(r,O);const v=s/14,y=m||(e=>"".concat(e/p*v,"rem")),g=(e,t,r,o,i)=>{return(0,n.A)({fontFamily:a,fontWeight:e,fontSize:y(t),lineHeight:r},a===E?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},i,f);var s},b={h1:g(l,96,1.167,-1.5),h2:g(l,60,1.2,-.5),h3:g(c,48,1.167,0),h4:g(c,34,1.235,.25),h5:g(c,24,1.334,0),h6:g(u,20,1.6,.15),subtitle1:g(c,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(c,16,1.5,.15),body2:g(c,14,1.43,.15),button:g(u,14,1.75,.4,_),caption:g(c,12,1.66,.4),overline:g(c,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.A)((0,n.A)({htmlFontSize:p,pxToRem:y,fontFamily:a,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),h,{clone:!1})}function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const C=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],P=["duration","easing","delay"],R={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)"},T={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I(e){return"".concat(Math.round(e),"ms")}function M(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function N(e){const t=(0,n.A)({},R,e.easing),r=(0,n.A)({},T,e.duration);return(0,n.A)({getAutoHeightDuration:M,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=r.standard,easing:i=t.easeInOut,delay:s=0}=n;(0,o.A)(n,P);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:I(a)," ").concat(i," ").concat("string"===typeof s?s:I(s)))).join(",")}},e,{easing:t,duration:r})}const L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},F=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:r={},transitions:u={},typography:d={}}=e,p=(0,o.A)(e,F);if(e.vars)throw new Error((0,a.A)(18));const f=S(r),m=(0,c.A)(e);let h=(0,i.A)(m,{mixins:(v=m.breakpoints,y=t,(0,n.A)({toolbar:{minHeight:56,[v.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[v.up("sm")]:{minHeight:64}}},y)),palette:f,shadows:C.slice(),typography:k(f,d),transitions:N(u),zIndex:(0,n.A)({},L)});var v,y;h=(0,i.A)(h,p);for(var g=arguments.length,b=new Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];return h=b.reduce(((e,t)=>(0,i.A)(e,t)),h),h.unstable_sxConfig=(0,n.A)({},s.A,null==p?void 0:p.unstable_sxConfig),h.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},h}const D=z},5170:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=(0,r(8279).A)()},3375:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n="$$material"},1475:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(7123);const o=e=>(0,n.A)(e)&&"classes"!==e},7123:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},4535:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n=r(8052),o=r(5170),a=r(3375),i=r(1475);const s=(0,n.Ay)({themeId:a.A,defaultTheme:o.A,rootShouldForwardProp:i.A})},2876:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(2900),o=r(5170),a=r(3375);function i(e){let{props:t,name:r}=e;return(0,n.A)({props:t,name:r,defaultTheme:o.A,themeId:a.A})}},6803:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(410).A},9662:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(8168),o=r(5043),a=r(8587),i=r(8387),s=r(8606),l=r(6803),c=r(2876),u=r(4535),d=r(7056),p=r(2400);function f(e){return(0,p.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=r(579);const h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],v=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.A)(r.color))],t["fontSize".concat((0,l.A)(r.fontSize))]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o,a,i,s,l,c,u,d,p,f,m,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:r.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(o=n.create)?void 0:o.call(n,"fill",{duration:null==(a=t.transitions)||null==(a=a.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=t.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[r.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(f=f[r.color])?void 0:f.main)?p:{action:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.active,disabled:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[r.color]}})),y=o.forwardRef((function(e,t){const r=(0,c.A)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:p="inherit",component:y="svg",fontSize:g="medium",htmlColor:b,inheritViewBox:x=!1,titleAccess:w,viewBox:A="0 0 24 24"}=r,S=(0,a.A)(r,h),O=o.isValidElement(u)&&"svg"===u.type,_=(0,n.A)({},r,{color:p,component:y,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:x,viewBox:A,hasSvgAsChild:O}),E={};x||(E.viewBox=A);const k=(e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(r))]};return(0,s.A)(o,f,n)})(_);return(0,m.jsxs)(v,(0,n.A)({as:y,className:(0,i.A)(k.root,d),focusable:"false",color:b,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},E,S,O&&u.props,{ownerState:_,children:[O?u.props.children:u,w?(0,m.jsx)("title",{children:w}):null]}))}));y.muiName="SvgIcon";const g=y;function b(e,t){function r(r,o){return(0,m.jsx)(g,(0,n.A)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=g.muiName,o.memo(o.forwardRef(r))}},950:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(4059).A},1715:(e,t,r)=>{"use strict";r.r(t),r.d(t,{capitalize:()=>o.A,createChainedFunction:()=>a,createSvgIcon:()=>i.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>p,setRef:()=>f,unstable_ClassNameGenerator:()=>w,unstable_useEnhancedEffect:()=>m.A,unstable_useId:()=>h.A,unsupportedProp:()=>v,useControlled:()=>y.A,useEventCallback:()=>g.A,useForkRef:()=>b.A,useIsFocusVisible:()=>x.A});var n=r(5430),o=r(6803);const a=r(4708).A;var i=r(9662),s=r(950);const l=function(e,t){return()=>null};var c=r(154),u=r(2427),d=r(6078);r(8168);const p=function(e,t){return()=>null};const f=r(9184).A;var m=r(5013),h=r(5879);const v=function(e,t,r,n,o){return null};var y=r(4516),g=r(3319),b=r(5849),x=r(2191);const w={configure:e=>{n.A.configure(e)}}},154:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);const o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},2427:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(2144).A},6078:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(6288).A},4516:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(1944).A},5013:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(3844).A},3319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(4626).A},5849:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(7042).A},5879:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=r(992).A},2191:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(5043),o=r(1140);let a=!0,i=!1;const s=new o.E,l={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 c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function p(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}const f=function(){const e=n.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!p(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(()=>{i=!1})),t.current=!1,!0)},ref:e}}},869:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});r(5043);var n=r(909),o=r(579);function a(e){const{styles:t,defaultTheme:r={}}=e,a="function"===typeof t?e=>{return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(n.mL,{styles:a})}},3174:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalStyles:()=>S.A,StyledEngineProvider:()=>A,ThemeContext:()=>l.T,css:()=>g.AH,default:()=>O,internal_processStyles:()=>_,keyframes:()=>g.i7});var n=r(8168),o=r(5043),a=r(918),i=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,s=(0,a.A)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(5025),c=r(1722),u=r(2830),d=r(9436),p=s,f=function(e){return"theme"!==e},m=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:f},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},v=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.SF)(t,r,n),(0,d.s)((function(){return(0,c.sk)(t,r,n)})),null},y=function e(t,r){var a,i,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==r&&(a=r.label,i=r.target);var p=h(t,r,s),f=p||m(d),y=!f("as");return function(){var g=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==g[0]||void 0===g[0].raw)b.push.apply(b,g);else{0,b.push(g[0][0]);for(var x=g.length,w=1;w<x;w++)b.push(g[w],g[0][w])}var A=(0,l.w)((function(e,t,r){var n=y&&e.as||d,a="",s=[],h=e;if(null==e.theme){for(var g in h={},e)h[g]=e[g];h.theme=o.useContext(l.T)}"string"===typeof e.className?a=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var x=(0,u.J)(b.concat(s),t.registered,h);a+=t.key+"-"+x.name,void 0!==i&&(a+=" "+i);var w=y&&void 0===p?m(n):f,A={};for(var S in e)y&&"as"===S||w(S)&&(A[S]=e[S]);return A.className=a,A.ref=r,o.createElement(o.Fragment,null,o.createElement(v,{cache:t,serialized:x,isStringTag:"string"===typeof n}),o.createElement(n,A))}));return A.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=d,A.__emotion_styles=b,A.__emotion_forwardProp=p,Object.defineProperty(A,"toString",{value:function(){return"."+i}}),A.withComponent=function(t,o){return e(t,(0,n.A)({},r,o,{shouldForwardProp:h(A,o,!0)})).apply(void 0,b)},A}}.bind();["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){y[e]=y(e)}));var g=r(909),b=r(5513),x=r(579);let w;function A(e){const{injectFirst:t,children:r}=e;return t&&w?(0,x.jsx)(l.C,{value:w,children:r}):r}"object"===typeof document&&(w=(0,b.A)({key:"css",prepend:!0}));var S=r(869);function O(e,t){return y(e,t)}const _=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},7266:(e,t,r)=>{"use strict";var n=r(4994);t.X4=f,t.e$=m,t.tL=v,t.eM=function(e,t){const r=p(e),n=p(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=h;var o=n(r(7245)),a=n(r(5383));function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,a.default)(e,t,r)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(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".concat(4===r.length?"a":"","(").concat(r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));let n,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),n=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(n))throw new Error((0,o.default)(10,n))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:n}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function d(e){e=l(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function p(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(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 f(e,t){return e=l(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function m(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 u(e)}function h(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 u(e)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return p(e)>.5?m(e,t):h(e,t)}},8052:(e,t,r)=>{"use strict";var n=r(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=h,rootShouldForwardProp:n=m,slotShouldForwardProp:l=m}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:y((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:f,skipVariantsResolver:h,skipSx:x,overridesResolver:w=g(v(f))}=c,A=(0,a.default)(c,p),S=void 0!==h?h:f&&"Root"!==f&&"root"!==f||!1,O=x||!1;let _=m;"Root"===f||"root"===f?_=n:f?_=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const E=(0,i.default)(e,(0,o.default)({shouldForwardProp:_,label:undefined},A)),k=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>b(e,(0,o.default)({},n,{theme:y({theme:n.theme,defaultTheme:r,themeId:t})})):e,j=function(n){let a=k(n);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];const c=s?s.map(k):[];d&&w&&c.push((e=>{const n=y((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const a=n.components[d].styleOverrides,i={};return Object.entries(a).forEach((t=>{let[r,a]=t;i[r]=b(a,(0,o.default)({},e,{theme:n}))})),w(e,i)})),d&&!S&&c.push((e=>{var n;const a=y((0,o.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==a||null==(n=a.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:a}))})),O||c.push(u);const p=c.length-s.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const f=E(a,...c);return e.muiName&&(f.muiName=e.muiName),f};return E.withConfig&&(j.withConfig=E.withConfig),j}};var o=n(r(4634)),a=n(r(4893)),i=function(e,t){if(!t&&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 n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(3174)),s=r(4534),l=(n(r(578)),n(r(2046)),n(r(4989))),c=n(r(3234));const u=["ownerState"],d=["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,l.default)(),v=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function g(e){return e?(t,r)=>r[e]:null}function b(e,t){let{ownerState:r}=t,n=(0,a.default)(t,u);const i="function"===typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap((e=>b(e,(0,o.default)({ownerState:r},n))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.default)(i,d);return e.forEach((e=>{let a=!0;"function"===typeof e.props?a=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))})),t}return i}},9751:(e,t,r)=>{"use strict";r.d(t,{EU:()=>s,NI:()=>i,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var n=r(3216);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function i(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||a;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"===typeof t){const e=n.breakpoints||a;return Object.keys(t).reduce(((n,a)=>{if(-1!==Object.keys(e.values||o).indexOf(a)){n[e.up(a)]=r(t[a],a)}else{const e=a;n[e]=t[e]}return n}),{})}return r(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function l(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){const t=s(e);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=[t,...o].reduce(((e,t)=>(0,n.A)(e,t)),{});return l(Object.keys(t),i)}function u(e){let{values:t,breakpoints:r,base:n}=e;const o=n||function(e,t){if("object"!==typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(t,r),a=Object.keys(o);if(0===a.length)return t;let i;return a.reduce(((e,r,n)=>(Array.isArray(t)?(e[r]=null!=t[n]?t[n]:t[i],i=n):"object"===typeof t?(e[r]=null!=t[r]?t[r]:t[i],i=r):e[r]=t,e)),{})}},9703:(e,t,r)=>{"use strict";function n(e,t){const r=this;if(r.vars&&"function"===typeof r.getColorSchemeSelector){return{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return r.palette.mode===e?t:{}}r.d(t,{A:()=>n})},4853:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8587),o=r(8168);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,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.A)(e,a),c=i(t),u=Object.keys(c);function d(e){const n="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(n).concat(r,")")}function p(e){const n="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(n-s/100).concat(r,")")}function f(e,n){const o=u.indexOf(n);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:n)-s/100).concat(r,")")}return(0,o.A)({keys:u,values:c,up:d,down:p,between:f,only:function(e){return u.indexOf(e)+1<u.length?f(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?p(u[t]):f(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}},8280:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(8168),o=r(8587),a=r(3216),i=r(4853);const s={borderRadius:4};var l=r(8604);var c=r(8812),u=r(7758),d=r(9703);const p=["breakpoints","palette","spacing","shape"];const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:r={},spacing:f,shape:m={}}=e,h=(0,o.A)(e,p),v=(0,i.A)(t),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0===r.length?[1]:r).map((e=>{const r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}(f);let g=(0,a.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},r),spacing:y,shape:(0,n.A)({},s,m)},h);g.applyStyles=d.A;for(var b=arguments.length,x=new Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return g=x.reduce(((e,t)=>(0,a.A)(e,t)),g),g.unstable_sxConfig=(0,n.A)({},u.A,null==h?void 0:h.unstable_sxConfig),g.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},g}},4989:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>a.A});var n=r(8280),o=r(4853),a=r(9703)},3815:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3216);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},8604:(e,t,r)=>{"use strict";r.d(t,{LX:()=>m,MA:()=>f,_W:()=>h,Lc:()=>g,Ms:()=>b});var n=r(9751),o=r(7162),a=r(3815);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,r]=e.split(""),n=i[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function f(e,t,r,n){var a;const i=null!=(a=(0,o.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:"-".concat(r)}function v(e,t,r,o){if(-1===t.indexOf(r))return null;const a=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=h(t,r),e)),{})}(c(r),o),i=e[r];return(0,n.NI)(e,i,a)}function y(e,t){const r=m(e.theme);return Object.keys(e).map((n=>v(e,t,n,r))).reduce(a.A,{})}function g(e){return y(e,u)}function b(e){return y(e,d)}function x(e){return y(e,p)}g.propTypes={},g.filterProps=u,b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=p},7162:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,BO:()=>i,Yn:()=>a});var n=r(410),o=r(9751);function a(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){const r="vars.".concat(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){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;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 s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=a(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=i(u,l,e);return e===o&&"string"===typeof e&&(o=i(u,l,"".concat(t).concat("default"===e?"":(0,n.A)(e)),e)),!1===r?o:{[r]:o}}))};return c.propTypes={},c.filterProps=[t],c}},7758:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(8604),o=r(7162),a=r(3815);const i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,r)=>n[r]?(0,a.A)(t,n[r](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=r(9751);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),f=c("borderBottom",l),m=c("borderLeft",l),h=c("borderColor"),v=c("borderTopColor"),y=c("borderRightColor"),g=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,s.NI)(e,e.borderRadius,r)}return null};A.propTypes={},A.filterProps=["borderRadius"];i(u,d,p,f,m,h,v,y,g,b,A,x,w);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,s.NI)(e,e.gap,r)}return null};S.propTypes={},S.filterProps=["gap"];const O=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.columnGap,r)}return null};O.propTypes={},O.filterProps=["columnGap"];const _=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.rowGap,r)}return null};_.propTypes={},_.filterProps=["rowGap"];i(S,O,_,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function E(e,t){return"grey"===t?t:e}i((0,o.Ay)({prop:"color",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:E}));function k(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const j=(0,o.Ay)({prop:"width",transform:k}),C=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:k(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};C.filterProps=["maxWidth"];const P=(0,o.Ay)({prop:"minWidth",transform:k}),R=(0,o.Ay)({prop:"height",transform:k}),T=(0,o.Ay)({prop:"maxHeight",transform:k}),I=(0,o.Ay)({prop:"minHeight",transform:k}),M=((0,o.Ay)({prop:"size",cssProperty:"width",transform:k}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:k}),i(j,C,P,R,T,I,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.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:S},rowGap:{style:_},columnGap:{style:O},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:C},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},8698:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(8168),o=r(8587),a=r(3216),i=r(7758);const s=["sx"],l=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:i.A;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function c(e){const{sx:t}=e,r=(0,o.A)(e,s),{systemProps:i,otherProps:c}=l(r);let u;return u=Array.isArray(t)?[i,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,a.Q)(e)?(0,n.A)({},i,e):i}:(0,n.A)({},i,t),(0,n.A)({},c,{sx:u})}},3234:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>a.A});var n=r(8812),o=r(8698),a=r(7758)},8812:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,k:()=>l});var n=r(410),o=r(3815),a=r(7162),i=r(9751),s=r(7758);function l(){function e(e,t,r,o){const s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,a.Yn)(r,u)||{};if(p)return p(s);return(0,i.NI)(s,t,(t=>{let r=(0,a.BO)(f,d,t);return t===r&&"string"===typeof t&&(r=(0,a.BO)(f,d,"".concat(e).concat("default"===t?"":(0,n.A)(t)),t)),!1===c?r:{[c]:r}}))}return function t(r){var n;const{sx:a,theme:l={}}=r||{};if(!a)return null;const c=null!=(n=l.unstable_sxConfig)?n:s.A;function u(r){let n=r;if("function"===typeof r)n=r(l);else if("object"!==typeof r)return r;if(!n)return null;const a=(0,i.EU)(l.breakpoints),s=Object.keys(a);let u=a;return Object.keys(n).forEach((r=>{const a=(s=n[r],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==a&&void 0!==a)if("object"===typeof a)if(c[r])u=(0,o.A)(u,e(r,a,l,c));else{const e=(0,i.NI)({theme:l},a,(e=>({[r]:e})));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(n);return t.every((e=>o.size===Object.keys(e).length))}(e,a)?u=(0,o.A)(u,e):u[r]=t({sx:a,theme:l})}else u=(0,o.A)(u,e(r,a,l,c))})),(0,i.vf)(s,u)}return Array.isArray(a)?a.map(u):u(a)}}const c=l();c.filterProps=["sx"];const u=c},5527:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(8280),o=r(7082);const a=(0,n.A)();const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.A)(e)}},4775:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2018);function o(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,o):o}},2900:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(4775),o=r(5527);function a(e){let{props:t,name:r,defaultTheme:a,themeId:i}=e,s=(0,o.A)(a);i&&(s=s[i]||s);return(0,n.A)({theme:s,name:r,props:t})}},7082:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(5025);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},2374:(e,t,r)=>{"use strict";t.A=void 0;var n=function(e,t){if(!t&&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 n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(5043)),o=r(3174);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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=n.useContext(o.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},5430:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},410:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6632);function o(e){if("string"!==typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},578:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(410)},7040:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))}},5383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(7040)},8606:(e,t,r)=>{"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{A:()=>n})},4708:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t)=>null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}),(()=>{}))}r.d(t,{A:()=>n})},4059:(e,t,r)=>{"use strict";function n(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),r)}return n.clear=()=>{clearTimeout(t)},n}r.d(t,{A:()=>n})},3216:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,Q:()=>o});var n=r(8168);function o(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 a(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=a(e[r])})),t}function i(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=r.clone?(0,n.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=i(e[n],t[n],r):r.clone?s[n]=o(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},4534:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,isPlainObject:()=>n.Q});var n=r(3216)},6632:(e,t,r)=>{"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{A:()=>n})},7245:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(6632)},2400:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,li:()=>o});var n=r(5430);const o={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 a(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a=o[t];return a?"".concat(r,"-").concat(a):"".concat(n.A.generate(e),"-").concat(t)}},7056:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2400);function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,n.Ay)(e,t,r)})),o}},2046:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>a});var n=r(2086);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function a(e){const t="".concat(e).match(o);return t&&t[1]||""}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||a(e)||t}function s(e,t,r){const n=i(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}function l(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 n.ForwardRef:return s(e,e.render,"ForwardRef");case n.Memo:return s(e,e.type,"memo");default:return}}}},2144:(e,t,r)=>{"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{A:()=>n})},6288:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(2144);function o(e){return(0,n.A)(e).defaultView||window}},2018:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(8168);function o(e,t){const r=(0,n.A)({},t);return Object.keys(e).forEach((a=>{if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.A)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const i=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(r[a]=(0,n.A)({},s),Object.keys(i).forEach((e=>{r[a][e]=o(i[e],s[e])}))):r[a]=s:r[a]=i}else void 0===r[a]&&(r[a]=e[a])})),r}},9184:(e,t,r)=>{"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{A:()=>n})},1944:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);function o(e){let{controlled:t,default:r,name:o,state:a="value"}=e;const{current:i}=n.useRef(void 0!==t),[s,l]=n.useState(r);return[i?t:s,n.useCallback((e=>{i||l(e)}),[])]}},3844:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5043);const o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},4626:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(3844);const a=function(e){const t=n.useRef(e);return(0,o.A)((()=>{t.current=e})),n.useRef((function(){return(0,t.current)(...arguments)})).current}},7042:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(5043),o=r(9184);function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},992:(e,t,r)=>{"use strict";var n;r.d(t,{A:()=>s});var o=r(5043);let a=0;const i=(n||(n=r.t(o,2)))["useId".toString()];function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,r]=o.useState(e),n=e||t;return o.useEffect((()=>{null==t&&(a+=1,r("mui-".concat(a)))}),[t]),n}(e)}},1140:(e,t,r)=>{"use strict";r.d(t,{E:()=>i,A:()=>s});var n=r(5043);const o={};const a=[];class i{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new i}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}(i.create).current;var t;return t=e.disposeEffect,n.useEffect(t,a),e}},6723:(e,t,r)=>{"use strict";var n=r(2028),o=r(4902),a=r(2774),i=r(6488),s=r(5041),l=r(9446),c=r(8357),u=r(6604),d=r(3130),p=r(5766),f=n("String.prototype.split"),m=Object("a"),h="a"!==m[0]||!(0 in m);e.exports=function(e){var t,r=u(this),n=h&&p(this)?f(this,""):r,m=c(n);if(!l(e))throw new o("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var v=0;v<m;){var y=d(v);if(s(n,y)){var g=i(n,y);a(e,t,[g,v,n])}v+=1}}},6365:(e,t,r)=>{"use strict";var n=r(1779),o=r(1712),a=r(2028),i=r(9076),s=r(6723),l=r(8762),c=l(),u=r(1544),d=a("Array.prototype.slice"),p=o.apply(c),f=function(e,t){return i(e),p(e,d(arguments,1))};n(f,{getPolyfill:l,implementation:s,shim:u}),e.exports=f},8762:(e,t,r)=>{"use strict";var n=r(4428),o=r(6723);e.exports=function(){var e=Array.prototype.forEach;return n(e)?e:o}},1544:(e,t,r)=>{"use strict";var n=r(1779),o=r(8762);e.exports=function(){var e=o();return n(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},2028:(e,t,r)=>{"use strict";var n=r(2),o=r(1712),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&a(e,".prototype.")>-1?o(r):r}},1712:(e,t,r)=>{"use strict";var n=r(3864),o=r(2),a=r(5438),i=r(4902),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(l,s),u=r(2090),d=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new i("a function is required");var t=c(n,l,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(n,s,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},5707:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(a){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var r={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},o=n.exec(e);o;){try{r[o[0]]=decodeURIComponent(o[0])}catch(t){var i=a(o[0]);i!==o[0]&&(r[o[0]]=i)}o=n.exec(e)}r["%C2"]="\ufffd";for(var s=Object.keys(r),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),r[c])}return e}(e)}}},4992:(e,t,r)=>{"use strict";var n=r(2090),o=r(2557),a=r(4902),i=r(5558);e.exports=function(e,t,r){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new a("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!i&&i(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},1779:(e,t,r)=>{"use strict";var n=r(2678),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=r(4992),l=r(2101)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!==typeof(o=n)||"[object Function]"!==a.call(o)||!n())return;var o;l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)c(e,a[s],t[a[s]],r[a[s]])};u.supportsDescriptors=!!l,e.exports=u},4428:e=>{e.exports=function(e){var t=!0,r=!0,n=!1;if("function"===typeof e){try{e.call("f",(function(e,r,n){"object"!==typeof n&&(t=!1)})),e.call([null],(function(){"use strict";r="string"===typeof this}),"x")}catch(o){n=!0}return!n&&t&&r}return!1}},2090:(e,t,r)=>{"use strict";var n=r(2)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(o){n=!1}e.exports=n},9820:e=>{"use strict";e.exports=EvalError},9304:e=>{"use strict";e.exports=Error},1725:e=>{"use strict";e.exports=RangeError},5077:e=>{"use strict";e.exports=ReferenceError},2557:e=>{"use strict";e.exports=SyntaxError},4902:e=>{"use strict";e.exports=TypeError},3094:e=>{"use strict";e.exports=URIError},9536:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,o=r(8561),a=r(8799),i=r(3913),s=r(4107);e.exports=function(e){if(o(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!==r&&"undefined"!==typeof r){if(!a(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var l=t.call(e,r);if(o(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(i(e)||s(e))&&(r="string"),function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,i,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<s.length;++i)if(r=e[s[i]],a(r)&&(n=r.call(e),o(n)))return n;throw new TypeError("No default value")}(e,"default"===r?"number":r)}},8561:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},7283:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,a||e,i),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=new Array(a);o<a;o++)i[o]=n[o].fn;return i},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,a,i){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,a),!0;case 6:return u.fn.call(u.context,t,n,o,a,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},38:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},7724:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!==typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r}(arguments,1),s=r(0,o.length-i.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=o.apply(this,n(i,arguments));return Object(t)===t?t:this}return o.apply(e,n(i,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,a.prototype=new u,u.prototype=null}return a}},3864:(e,t,r)=>{"use strict";var n=r(7724);e.exports=Function.prototype.bind||n},2:(e,t,r)=>{"use strict";var n,o=r(9304),a=r(9820),i=r(1725),s=r(5077),l=r(2557),c=r(4902),u=r(3094),d=Function,p=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(N){f=null}var m=function(){throw new c},h=f?function(){try{return m}catch(e){try{return f(arguments,"callee").get}catch(t){return m}}}():m,v=r(2108)(),y=r(951)(),g=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),b={},x="undefined"!==typeof Uint8Array&&g?g(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":v&&g?g([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&g?g(g([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&v&&g?g((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&v&&g?g((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&g?g(""[Symbol.iterator]()):n,"%Symbol%":v?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":h,"%TypedArray%":x,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(g)try{null.error}catch(N){var A=g(g(N));w["%Error.prototype%"]=A}var S=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&g&&(r=g(o.prototype))}return w[t]=r,r},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=r(3864),E=r(4384),k=_.call(Function.call,Array.prototype.concat),j=_.call(Function.apply,Array.prototype.splice),C=_.call(Function.call,String.prototype.replace),P=_.call(Function.call,String.prototype.slice),R=_.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,M=function(e,t){var r,n=e;if(E(O,n)&&(n="%"+(r=O[n])[0]+"%"),E(w,n)){var o=w[n];if(o===b&&(o=S(n)),"undefined"===typeof o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return C(e,T,(function(e,t,r,o){n[n.length]=r?C(o,I,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=M("%"+n+"%",t),a=o.name,i=o.value,s=!1,u=o.alias;u&&(n=u[0],j(r,k([0,1],u)));for(var d=1,p=!0;d<r.length;d+=1){var m=r[d],h=P(m,0,1),v=P(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&p||(s=!0),E(w,a="%"+(n+="."+m)+"%"))i=w[a];else if(null!=i){if(!(m in i)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&d+1>=r.length){var y=f(i,m);i=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:i[m]}else p=E(i,m),i=i[m];p&&!s&&(w[a]=i)}}return i}},5558:(e,t,r)=>{"use strict";var n=r(2)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(o){n=null}e.exports=n},2101:(e,t,r)=>{"use strict";var n=r(2090),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},951:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},2108:(e,t,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(9534);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},9534:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},4635:(e,t,r)=>{"use strict";var n=r(9534);e.exports=function(){return n()&&!!Symbol.toStringTag}},7993:e=>{"use strict";var t={}.hasOwnProperty,r=Function.prototype.call;e.exports=r.bind?r.bind(t):function(e,n){return r.call(t,e,n)}},4384:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=r(3864);e.exports=a.call(n,o)},219:(e,t,r)=>{"use strict";var n=r(3763),o={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},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(m){var o=f(r);o&&o!==m&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),h=l(r),v=0;v<i.length;++v){var y=i[v];if(!a[y]&&(!n||!n[y])&&(!h||!h[y])&&(!s||!s[y])){var g=p(r,y);try{c(t,y,g)}catch(b){}}}}return t}},4983:(e,t)=>{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=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,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=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 n:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case h:case l:return e;default:return t}}case o:return t}}}function A(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return A(e)||w(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},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===d||e===s||e===i||e===f||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},3763:(e,t,r)=>{"use strict";e.exports=r(4983)},9700:function(e,t){var r,n,o;n=[],void 0===(o="function"===typeof(r=function(){var e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopi],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1i"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopi,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],o=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],a=new RegExp("(_ids|_id)$","g"),i=new RegExp("_","g"),s=new RegExp("[ _]","g"),l=new RegExp("([A-Z])","g"),c=new RegExp("^_"),u={_apply_rules:function(e,t,r,n){if(n)e=n;else if(!(u.indexOf(r,e.toLowerCase())>-1))for(var o=0,a=t.length;o<a;o++)if(e.match(t[o][0])){void 0!==t[o][1]&&(e=e.replace(t[o][0],t[o][1]));break}return e},indexOf:function(e,t,r,n){r||(r=-1);for(var o=-1,a=r,i=e.length;a<i;a++)if(e[a]===t||n&&n(e[a],t)){o=a;break}return o},pluralize:function(t,n){return u._apply_rules(t,r,e,n)},singularize:function(t,r){return u._apply_rules(t,n,e,r)},inflect:function(t,o,a,i){return o=parseInt(o,10),isNaN(o)?t:0===o||o>1?u._apply_rules(t,r,e,i):u._apply_rules(t,n,e,a)},camelize:function(e,t){for(var r,n,o,a,i=e.split("/"),s=0,l=i.length;s<l;s++){for(n=0,o=(r=i[s].split("_")).length;n<o;n++)0!==n&&(r[n]=r[n].toLowerCase()),a=r[n].charAt(0),a=t&&0===s&&0===n?a.toLowerCase():a.toUpperCase(),r[n]=a+r[n].substring(1);i[s]=r.join("")}return i.join("::")},underscore:function(e,t){if(t&&e===e.toUpperCase())return e;for(var r=e.split("::"),n=0,o=r.length;n<o;n++)r[n]=r[n].replace(l,"_$1"),r[n]=r[n].replace(c,"");return r.join("/").toLowerCase()},humanize:function(e,t){return e=(e=(e=e.toLowerCase()).replace(a,"")).replace(i," "),t||(e=u.capitalize(e)),e},capitalize:function(e){return(e=e.toLowerCase()).substring(0,1).toUpperCase()+e.substring(1)},dasherize:function(e){return e.replace(s,"-")},titleize:function(e){for(var t,r,n,a=(e=e.toLowerCase().replace(i," ")).split(" "),s=0,l=a.length;s<l;s++){for(r=0,n=(t=a[s].split("-")).length;r<n;r++)u.indexOf(o,t[r].toLowerCase())<0&&(t[r]=u.capitalize(t[r]));a[s]=t.join("-")}return e=(e=a.join(" ")).substring(0,1).toUpperCase()+e.substring(1)},demodulize:function(e){var t=e.split("::");return t[t.length-1]},tableize:function(e){return e=u.underscore(e),e=u.pluralize(e)},classify:function(e){return e=u.camelize(e),e=u.singularize(e)},foreign_key:function(e,t){return e=u.demodulize(e),e=u.underscore(e)+(t?"":"_")+"id"},ordinalize:function(e){for(var t=e.split(" "),r=0,n=t.length;r<n;r++){var o=parseInt(t[r],10);if(!isNaN(o)){var a=t[r].substring(t[r].length-2),i=t[r].substring(t[r].length-1),s="th";"11"!=a&&"12"!=a&&"13"!=a&&("1"===i?s="st":"2"===i?s="nd":"3"===i&&(s="rd")),t[r]+=s}}return t.join(" ")},transform:function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];u.hasOwnProperty(o)&&(e=u[o](e))}return e},version:"1.12.0"};return u})?r.apply(t,n):r)||(e.exports=o)},8799:e=>{"use strict";var t,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(f){f!==r&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=n.call(e);return a.test(t)}catch(r){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var p=document.all;l.call(p)===l.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=o?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(n){if(n!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},3913:(e,t,r)=>{"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,a=r(4635)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},3290:(e,t,r)=>{"use strict";var n,o,a,i,s=r(2028),l=r(4635)();if(l){n=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),a={};var c=function(){throw a};i={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=c)}var u=s("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&n(t,"value")))return!1;try{o(e,i)}catch(r){return r===a}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},5766:(e,t,r)=>{"use strict";var n=String.prototype.valueOf,o=Object.prototype.toString,a=r(4635)();e.exports=function(e){return"string"===typeof e||"object"===typeof e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object String]"===o.call(e))}},4107:(e,t,r)=>{"use strict";var n=Object.prototype.toString;if(r(2108)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},8221:e=>{"use strict";e.exports="\n"},5829:e=>{"use strict";e.exports=function(e,t,r){if("string"!==typeof e)throw new TypeError('Invalid param "textDelimiter", must be a string.');if("string"!==typeof t)throw new TypeError('Invalid param "rowDelimiter", must be a string.');var n=new RegExp("\\"+e,"g"),o=e+e,a='"'===e?function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0||e.indexOf('"')>=0}:function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0};return function(t){return r&&(t=""+t),t.replace?(t=t.replace(n,o),(r||a(t))&&(t=e+t+e),t):t}}},8701:e=>{"use strict";e.exports.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},e.exports.isArray=function(e){return Array.isArray(e)},e.exports.isObject=function(e){return e instanceof Object},e.exports.isString=function(e){return"string"===typeof e},e.exports.isNumber=function(e){return"number"===typeof e},e.exports.isBoolean=function(e){return"boolean"===typeof e},e.exports.isDate=function(e){return e instanceof Date}},9807:(e,t,r)=>{"use strict";var n=r(8221),o=r(8701);e.exports=function(e,t){if(!e||!o.isArray(e))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');return e.join(t||n||"\n")}},9945:e=>{"use strict";e.exports=function(e){throw new Error("jsonexport called without third argument as a callback and is required")}},5801:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(4345),a=r(9945),i=(r(8701),r(8221));e.exports=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:i||"\n",mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,s=void 0;if(3===arguments.length){var l=Array.prototype.slice.call(arguments);t=l[0],r=l[1],s=l[2]}else if(2===arguments.length){var c,u=Array.prototype.slice.call(arguments);t=u[0],"function"===typeof(c=u[1])?s=c:"object"===("undefined"===typeof c?"undefined":n(c))&&(r=c)}else{if(1!==arguments.length)return new a(new o(e));var d=Array.prototype.slice.call(arguments)[0];if("object"===("undefined"===typeof d?"undefined":n(d))){var p=Object.keys(e),f=Object.keys(d),m=f.every((function(e){return p.includes(e)}));f.length>0&&m?r=d:t=d}else t=d}var h=Object.assign({},e,r),v=new o(h);return t?new Promise((function(e,r){v.parse(t,(function(t,n){return s?s(t,n):t?r(t):r?e(n):void 0}))})):new a(v)}},4345:(e,t,r)=>{"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=r(9807),a=r(5457),i=r(8701),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t||{},this._handler=new a(this._options),this._headers=this._options.headers||[],this._escape=r(5829)(this._options.textDelimiter,this._options.rowDelimiter,this._options.forceTextDelimiter)}return n(e,[{key:"parse",value:function(e,t,r){return i.isArray(e)?t(null,this._parseArray(e,r)):i.isObject(e)?t(null,this._parseObject(e)):t(new Error("Unable to parse the JSON object, its not an Array or Object."))}},{key:"_checkRows",value:function(e){var t=null,r=[],n=function(e,r){return""===e||void 0===e?t[r]:e},o=!0,a=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=this._headers.length-c.length;u>0&&(c=c.concat(Array(u).join(".").split("."))),t&&this._options.fillGaps&&(c=c.map(n)),r.push(c.join(this._options.rowDelimiter)),t=c}}catch(d){a=!0,i=d}finally{try{!o&&l.return&&l.return()}finally{if(a)throw i}}return r}},{key:"_parseArray",value:function(e,t){var r=this;this._headers=this._headers||[];var n,a=[],i=function(e){var t=r._headers.indexOf(e);return-1===t&&(r._headers.push(e),t=r._headers.indexOf(e)),t};n=function(e){var t=[],n=function(e){return t.push(e.map((function(e){return null!=e?e:""})))},o=function(){return new Array(r._headers.length).fill(null)},s={},l=o(),c=!0,u=!1,d=void 0;try{for(var p,f=e[Symbol.iterator]();!(c=(p=f.next()).done);c=!0){var m=p.value,h=i(m.item);void 0!=l[h]&&(n(l),l=o()),s[h]=s[h]||0,r._options.fillTopRow&&s[h]<t.length?(t[s[h]][h]=r._escape(m.value),s[h]+=1):(l[h]=r._escape(m.value),s[h]+=1)}}catch(v){u=!0,d=v}finally{try{!c&&f.return&&f.return()}finally{if(u)throw d}}l.length>0&&n(l),a=a.concat(r._checkRows(t))};var s=!0,l=!1,c=void 0;try{for(var u,d=e[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var p=u.value;n(r._handler.check(p,r._options.mainPathItem,p,e))}}catch(f){l=!0,c=f}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}return!t&&r._options.includeHeaders&&a.unshift(this.headers),o(a,r._options.endOfLine)}},{key:"_parseObject",value:function(e){var t,r=this,n=[],a=[[],[]];for(var i in t=function(e){var t=e.value||0===e.value?e.value.toString():r._options.undefinedString;if(t=r._escape(t),r._options.verticalOutput){var o=[e.item,t];n.push(o.join(r._options.rowDelimiter))}else a[0].push(e.item),a[1].push(t)},e){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),this._handler.check(e[i],s+i,i,e).forEach(t)}return this._options.verticalOutput||(n.push(a[0].join(this._options.rowDelimiter)),n.push(a[1].join(this._options.rowDelimiter))),o(n,this._options.endOfLine)}},{key:"headers",get:function(){var e=this,t=this._headers;return this._options.rename&&this._options.rename.length>0&&(t=t.map((function(t){return e._options.rename[e._options.headers.indexOf(t)]||t}))),this._options.forceTextDelimiter&&(t=t.map((function(t){return""+e._options.textDelimiter+t+e._options.textDelimiter}))),this._options.mapHeaders&&(t=t.map(this._options.mapHeaders)),t.join(this._options.rowDelimiter)}}]),e}();e.exports=s},5457:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var a=r(8701),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t,this._options.typeHandlers=this._options.typeHandlers||{}}return o(e,[{key:"_setHeaders",value:function(e,t){var r=this;return t?e.map((function(e){return e.item=e.item?t+r._options.headerPathString+e.item:t,e})):e}},{key:"castValue",value:function(e,t,r,n){var o=this._options.typeHandlers;for(var a in o)if(l(e,a)){e=o[a].call(o,e,r,n);break}return e}},{key:"checkComplex",value:function(e,t){if(a.isDate(e))return[{item:t,value:(this._options.handleDate||this._handleDate)(e,t)}];if(a.isArray(e)){var r=this._handleArray(e,t);return this._setHeaders(r,t)}if(a.isObject(e)){var n=this._handleObject(e);return this._setHeaders(n,t)}return[{item:t,value:""}]}},{key:"check",value:function(e,t,r,o){switch("undefined"===typeof(e=this.castValue(e,t,r,o))?"undefined":n(e)){case"string":return[{item:t,value:this._handleString(e,t)}];case"number":return[{item:t,value:this._handleNumber(e,t)}];case"boolean":return[{item:t,value:this._handleBoolean.bind(this)(e,t)}]}return this.checkComplex(e,t)}},{key:"_handleObject",value:function(e){var t=[];for(var r in e){var n=e[r],o=this.check(n,r,r,e);t=t.concat(o)}return t}},{key:"_handleArray",value:function(e){for(var t,r=[],n=0;n<e.length;++n){var o=e[n],a=this.check(o,null,n,e);if(0!==a.length){var i=a[0];i.item||void 0===t?(a.length>0&&!i.item&&void 0===t&&(t=i),r=r.concat(a)):t.value+=this._options.arrayPathString+i.value}}return r}},{key:"_handleBoolean",value:function(e){return e?this._options.booleanTrueString||"true":this._options.booleanFalseString||"false"}},{key:"_handleString",value:function(e){return e}},{key:"_handleNumber",value:function(e){return e}},{key:"_handleDate",value:function(e){return e.toLocaleDateString()}}]),e}();e.exports=i;var s="undefined"===typeof window?r.g:window;function l(e,t){if(e instanceof s[t])return!0;switch("undefined"===typeof e?"undefined":n(e)){case"string":return"String"===t;case"boolean":return"Boolean"===t;case"number":return"Number"===t}return!1}},7685:(e,t,r)=>{var n=r(7937)(r(6552),"DataView");e.exports=n},8724:(e,t,r)=>{var n=r(7615),o=r(5051),a=r(2154),i=r(8734),s=r(2662);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},7160:(e,t,r)=>{var n=r(7563),o=r(9935),a=r(4190),i=r(1946),s=r(1714);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5204:(e,t,r)=>{var n=r(7937)(r(6552),"Map");e.exports=n},4816:(e,t,r)=>{var n=r(7251),o=r(7159),a=r(438),i=r(9394),s=r(6874);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5387:(e,t,r)=>{var n=r(7937)(r(6552),"Promise");e.exports=n},2070:(e,t,r)=>{var n=r(7937)(r(6552),"Set");e.exports=n},8902:(e,t,r)=>{var n=r(4816),o=r(6179),a=r(6704);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},5538:(e,t,r)=>{var n=r(7160),o=r(4545),a=r(793),i=r(7760),s=r(3892),l=r(6788);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,r)=>{var n=r(6552).Symbol;e.exports=n},2929:(e,t,r)=>{var n=r(6552).Uint8Array;e.exports=n},6600:(e,t,r)=>{var n=r(7937)(r(6552),"WeakMap");e.exports=n},1170:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},726:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},7529:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},5866:(e,t,r)=>{var n=r(8468);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},1558:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},3204:(e,t,r)=>{var n=r(3343),o=r(2777),a=r(4052),i=r(4543),s=r(9194),l=r(1268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),u=!r&&o(e),d=!r&&!u&&i(e),p=!r&&!u&&!d&&l(e),f=r||u||d||p,m=f?n(e.length,String):[],h=m.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},149:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},8895:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},2587:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},3868:(e,t,r)=>{var n=r(1775),o=r(3211);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},8420:(e,t,r)=>{var n=r(1775),o=r(3211),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},1340:(e,t,r)=>{var n=r(3211);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1104:(e,t,r)=>{var n=r(6614),o=r(8673);e.exports=function(e,t){return e&&n(t,o(t),e)}},5119:(e,t,r)=>{var n=r(6614),o=r(474);e.exports=function(e,t){return e&&n(t,o(t),e)}},1775:(e,t,r)=>{var n=r(5654);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},7132:(e,t,r)=>{var n=r(5538),o=r(726),a=r(8420),i=r(1104),s=r(5119),l=r(4353),c=r(1980),u=r(8124),d=r(9075),p=r(9395),f=r(8592),m=r(6924),h=r(8268),v=r(8630),y=r(310),g=r(4052),b=r(4543),x=r(7887),w=r(6686),A=r(5921),S=r(8673),O=r(474),_="[object Arguments]",E="[object Function]",k="[object Object]",j={};j[_]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[k]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[E]=j["[object WeakMap]"]=!1,e.exports=function e(t,r,C,P,R,T){var I,M=1&r,N=2&r,L=4&r;if(C&&(I=R?C(t,P,R,T):C(t)),void 0!==I)return I;if(!w(t))return t;var F=g(t);if(F){if(I=h(t),!M)return c(t,I)}else{var z=m(t),D=z==E||"[object GeneratorFunction]"==z;if(b(t))return l(t,M);if(z==k||z==_||D&&!R){if(I=N||D?{}:y(t),!M)return N?d(t,s(I,t)):u(t,i(I,t))}else{if(!j[z])return R?t:{};I=v(t,z,M)}}T||(T=new n);var B=T.get(t);if(B)return B;T.set(t,I),A(t)?t.forEach((function(n){I.add(e(n,r,C,n,t,T))})):x(t)&&t.forEach((function(n,o){I.set(o,e(n,r,C,o,t,T))}));var V=F?void 0:(L?N?f:p:N?O:S)(t);return o(V||t,(function(n,o){V&&(n=t[o=n]),a(I,o,e(n,r,C,o,t,T))})),I}},1817:(e,t,r)=>{var n=r(6686),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},8746:(e,t,r)=>{var n=r(8902),o=r(5866),a=r(1558),i=r(149),s=r(7574),l=r(8114);e.exports=function(e,t,r,c){var u=-1,d=o,p=!0,f=e.length,m=[],h=t.length;if(!f)return m;r&&(t=i(t,s(r))),c?(d=a,p=!1):t.length>=200&&(d=l,p=!1,t=new n(t));e:for(;++u<f;){var v=e[u],y=null==r?v:r(v);if(v=c||0!==v?v:0,p&&y===y){for(var g=h;g--;)if(t[g]===y)continue e;m.push(v)}else d(t,y,c)||m.push(v)}return m}},5816:e=>{e.exports=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},755:(e,t,r)=>{var n=r(8895),o=r(7116);e.exports=function e(t,r,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];r>0&&a(u)?r>1?e(u,r-1,a,i,s):n(s,u):i||(s[s.length]=u)}return s}},4258:(e,t,r)=>{var n=r(5906)();e.exports=n},2969:(e,t,r)=>{var n=r(5324),o=r(914);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},4262:(e,t,r)=>{var n=r(8895),o=r(4052);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},6913:(e,t,r)=>{var n=r(9812),o=r(4552),a=r(6095),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},7894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},8468:(e,t,r)=>{var n=r(5816),o=r(644),a=r(4020);e.exports=function(e,t,r){return t===t?a(e,t,r):n(e,o,r)}},5193:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},6989:(e,t,r)=>{var n=r(6399),o=r(2761);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,a,i,e,s))}},6399:(e,t,r)=>{var n=r(5538),o=r(3668),a=r(9987),i=r(5752),s=r(6924),l=r(4052),c=r(4543),u=r(1268),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,v,y){var g=l(e),b=l(t),x=g?p:s(e),w=b?p:s(t),A=(x=x==d?f:x)==f,S=(w=w==d?f:w)==f,O=x==w;if(O&&c(e)){if(!c(t))return!1;g=!0,A=!1}if(O&&!A)return y||(y=new n),g||u(e)?o(e,t,r,h,v,y):a(e,t,x,r,h,v,y);if(!(1&r)){var _=A&&m.call(e,"__wrapped__"),E=S&&m.call(t,"__wrapped__");if(_||E){var k=_?e.value():e,j=E?t.value():t;return y||(y=new n),v(k,j,r,h,y)}}return!!O&&(y||(y=new n),i(e,t,r,h,v,y))}},5791:(e,t,r)=>{var n=r(6924),o=r(2761);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},6532:(e,t,r)=>{var n=r(5538),o=r(6989);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new n;if(a)var m=a(d,p,u,e,t,f);if(!(void 0===m?o(p,d,3,a,f):m))return!1}}return!0}},644:e=>{e.exports=function(e){return e!==e}},6954:(e,t,r)=>{var n=r(1629),o=r(7857),a=r(6686),i=r(6996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:s).test(i(e))}},449:(e,t,r)=>{var n=r(6924),o=r(2761);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},5428:(e,t,r)=>{var n=r(6913),o=r(6173),a=r(2761),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},9096:(e,t,r)=>{var n=r(9256),o=r(5029),a=r(3279),i=r(4052),s=r(3932);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},3713:(e,t,r)=>{var n=r(6140),o=r(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8122:(e,t,r)=>{var n=r(6686),o=r(6140),a=r(3516),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&r.push(s);return r}},9256:(e,t,r)=>{var n=r(6532),o=r(3781),a=r(1310);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},5029:(e,t,r)=>{var n=r(6989),o=r(3097),a=r(3366),i=r(2597),s=r(9417),l=r(1310),c=r(914);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},3253:(e,t,r)=>{var n=r(5538),o=r(3868),a=r(4258),i=r(3223),s=r(6686),l=r(474),c=r(3737);e.exports=function e(t,r,u,d,p){t!==r&&a(r,(function(a,l){if(p||(p=new n),s(a))i(t,r,l,u,e,d,p);else{var f=d?d(c(t,l),a,l+"",t,r,p):void 0;void 0===f&&(f=a),o(t,l,f)}}),l)}},3223:(e,t,r)=>{var n=r(3868),o=r(4353),a=r(8710),i=r(1980),s=r(310),l=r(2777),c=r(4052),u=r(6272),d=r(4543),p=r(1629),f=r(6686),m=r(2322),h=r(1268),v=r(3737),y=r(1609);e.exports=function(e,t,r,g,b,x,w){var A=v(e,r),S=v(t,r),O=w.get(S);if(O)n(e,r,O);else{var _=x?x(A,S,r+"",e,t,w):void 0,E=void 0===_;if(E){var k=c(S),j=!k&&d(S),C=!k&&!j&&h(S);_=S,k||j||C?c(A)?_=A:u(A)?_=i(A):j?(E=!1,_=o(S,!0)):C?(E=!1,_=a(S,!0)):_=[]:m(S)||l(S)?(_=A,l(A)?_=y(A):f(A)&&!p(A)||(_=s(S))):E=!1}E&&(w.set(S,_),b(_,S,g,x,w),w.delete(S)),n(e,r,_)}}},4008:(e,t,r)=>{var n=r(7449),o=r(3366);e.exports=function(e,t){return n(e,t,(function(t,r){return o(e,r)}))}},7449:(e,t,r)=>{var n=r(2969),o=r(9261),a=r(5324);e.exports=function(e,t,r){for(var i=-1,s=t.length,l={};++i<s;){var c=t[i],u=n(e,c);r(u,c)&&o(l,a(c,e),u)}return l}},396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},2866:(e,t,r)=>{var n=r(2969);e.exports=function(e){return function(t){return n(t,e)}}},5647:(e,t,r)=>{var n=r(3279),o=r(5636),a=r(6350);e.exports=function(e,t){return a(o(e,t,n),e+"")}},9261:(e,t,r)=>{var n=r(8420),o=r(5324),a=r(9194),i=r(6686),s=r(914);e.exports=function(e,t,r,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var f=s(t[c]),m=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var h=p[f];void 0===(m=l?l(h,f,p):void 0)&&(m=i(h)?h:a(t[c+1])?[]:{})}n(p,f,m),p=p[f]}return e}},8325:(e,t,r)=>{var n=r(2541),o=r(5654),a=r(3279),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},3871:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}},3343:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},8541:(e,t,r)=>{var n=r(9812),o=r(149),a=r(4052),i=r(9841),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1141:(e,t,r)=>{var n=r(143),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},4416:(e,t,r)=>{var n=r(8902),o=r(5866),a=r(1558),i=r(8114),s=r(8182),l=r(2074);e.exports=function(e,t,r){var c=-1,u=o,d=e.length,p=!0,f=[],m=f;if(r)p=!1,u=a;else if(d>=200){var h=t?null:s(e);if(h)return l(h);p=!1,u=i,m=new n}else m=t?[]:f;e:for(;++c<d;){var v=e[c],y=t?t(v):v;if(v=r||0!==v?v:0,p&&y===y){for(var g=m.length;g--;)if(m[g]===y)continue e;t&&m.push(y),f.push(v)}else u(m,y,r)||(m!==f&&m.push(y),f.push(v))}return f}},8140:(e,t,r)=>{var n=r(5324),o=r(4065),a=r(1676),i=r(914);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},8114:e=>{e.exports=function(e,t){return e.has(t)}},5324:(e,t,r)=>{var n=r(4052),o=r(2597),a=r(4079),i=r(1069);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},1516:(e,t,r)=>{var n=r(2929);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},4353:(e,t,r)=>{e=r.nmd(e);var n=r(6552),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6806:(e,t,r)=>{var n=r(1516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},8962:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},1295:(e,t,r)=>{var n=r(9812),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},8710:(e,t,r)=>{var n=r(1516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},1980:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},6614:(e,t,r)=>{var n=r(8420),o=r(1775);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),i?o(r,c,u):n(r,c,u)}return r}},8124:(e,t,r)=>{var n=r(6614),o=r(9621);e.exports=function(e,t){return n(e,o(e),t)}},9075:(e,t,r)=>{var n=r(6614),o=r(6326);e.exports=function(e,t){return n(e,o(e),t)}},3440:(e,t,r)=>{var n=r(6552)["__core-js_shared__"];e.exports=n},4570:(e,t,r)=>{var n=r(5647),o=r(929);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t}))}},5906:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},8182:(e,t,r)=>{var n=r(2070),o=r(5713),a=r(2074),i=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=i},5654:(e,t,r)=>{var n=r(7937),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},3668:(e,t,r)=>{var n=r(8902),o=r(2587),a=r(8114);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var m=-1,h=!0,v=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var y=e[m],g=t[m];if(i)var b=c?i(g,y,m,t,e,l):i(y,g,m,e,t,l);if(void 0!==b){if(b)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(y===e||s(y,e,r,i,l)))return v.push(t)}))){h=!1;break}}else if(y!==g&&!s(y,g,r,i,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},9987:(e,t,r)=>{var n=r(9812),o=r(2929),a=r(3211),i=r(3668),s=r(4160),l=r(2074),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var m=1&n;if(f||(f=l),e.size!=t.size&&!m)return!1;var h=p.get(e);if(h)return h==t;n|=2,p.set(e,t);var v=i(f(e),f(t),n,c,d,p);return p.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},5752:(e,t,r)=>{var n=r(9395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var h=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var y=e[p=c[d]],g=t[p];if(a)var b=l?a(g,y,p,t,e,s):a(y,g,p,e,t,s);if(!(void 0===b?y===g||i(y,g,r,a,s):b)){h=!1;break}v||(v="constructor"==p)}if(h&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}},5857:(e,t,r)=>{var n=r(819),o=r(5636),a=r(6350);e.exports=function(e){return a(o(e,void 0,n),e+"")}},7105:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9395:(e,t,r)=>{var n=r(4262),o=r(9621),a=r(8673);e.exports=function(e){return n(e,a,o)}},8592:(e,t,r)=>{var n=r(4262),o=r(6326),a=r(474);e.exports=function(e){return n(e,a,o)}},2622:(e,t,r)=>{var n=r(705);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},3781:(e,t,r)=>{var n=r(9417),o=r(8673);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},7937:(e,t,r)=>{var n=r(6954),o=r(4657);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},5990:(e,t,r)=>{var n=r(3028)(Object.getPrototypeOf,Object);e.exports=n},4552:(e,t,r)=>{var n=r(9812),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9621:(e,t,r)=>{var n=r(7529),o=r(7828),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},6326:(e,t,r)=>{var n=r(8895),o=r(5990),a=r(9621),i=r(7828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=s},6924:(e,t,r)=>{var n=r(7685),o=r(5204),a=r(5387),i=r(2070),s=r(6600),l=r(6913),c=r(6996),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=c(n),v=c(o),y=c(a),g=c(i),b=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=m||o&&x(new o)!=u||a&&x(a.resolve())!=d||i&&x(new i)!=p||s&&x(new s)!=f)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case h:return m;case v:return u;case y:return d;case g:return p;case b:return f}return t}),e.exports=x},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9057:(e,t,r)=>{var n=r(5324),o=r(2777),a=r(4052),i=r(9194),s=r(6173),l=r(914);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&r(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(p,u)&&(a(e)||o(e))}},7615:(e,t,r)=>{var n=r(5575);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2154:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},8734:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},2662:(e,t,r)=>{var n=r(5575);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},8268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},8630:(e,t,r)=>{var n=r(1516),o=r(6806),a=r(8962),i=r(1295),s=r(8710);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},310:(e,t,r)=>{var n=r(1817),o=r(5990),a=r(6140);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},7116:(e,t,r)=>{var n=r(9812),o=r(2777),a=r(4052),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},929:(e,t,r)=>{var n=r(3211),o=r(6571),a=r(9194),i=r(6686);e.exports=function(e,t,r){if(!i(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},2597:(e,t,r)=>{var n=r(4052),o=r(9841),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7857:(e,t,r)=>{var n=r(3440),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9417:(e,t,r)=>{var n=r(6686);e.exports=function(e){return e===e&&!n(e)}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},9935:(e,t,r)=>{var n=r(1340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},4190:(e,t,r)=>{var n=r(1340);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},1946:(e,t,r)=>{var n=r(1340);e.exports=function(e){return n(this.__data__,e)>-1}},1714:(e,t,r)=>{var n=r(1340);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},7251:(e,t,r)=>{var n=r(8724),o=r(7160),a=r(5204);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},7159:(e,t,r)=>{var n=r(2622);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},438:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).get(e)}},9394:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).has(e)}},6874:(e,t,r)=>{var n=r(2622);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4160:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},1310:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},8259:(e,t,r)=>{var n=r(5797);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},5575:(e,t,r)=>{var n=r(7937)(Object,"create");e.exports=n},1143:(e,t,r)=>{var n=r(3028)(Object.keys,Object);e.exports=n},3516:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6832:(e,t,r)=>{e=r.nmd(e);var n=r(7105),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5636:(e,t,r)=>{var n=r(1170),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=r(l),n(e,this,c)}}},1676:(e,t,r)=>{var n=r(2969),o=r(3871);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},6552:(e,t,r)=>{var n=r(7105),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},3737:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},2074:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},6350:(e,t,r)=>{var n=r(8325),o=r(6578)(n);e.exports=o},6578:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},4545:(e,t,r)=>{var n=r(7160);e.exports=function(){this.__data__=new n,this.size=0}},793:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,r)=>{var n=r(7160),o=r(5204),a=r(4816);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},4020:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},4079:(e,t,r)=>{var n=r(8259),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},914:(e,t,r)=>{var n=r(9841);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},143:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},6434:(e,t,r)=>{var n=r(7132);e.exports=function(e){return n(e,5)}},2541:e=>{e.exports=function(e){return function(){return e}}},3950:(e,t,r)=>{var n=r(6686),o=r(4757),a=r(801),i=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,p,f,m=0,h=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var r=l,n=c;return l=c=void 0,m=t,d=e.apply(n,r)}function b(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-m>=u}function x(){var e=o();if(b(e))return w(e);p=setTimeout(x,function(e){var r=t-(e-f);return v?s(r,u-(e-m)):r}(e))}function w(e){return p=void 0,y&&l?g(e):(l=c=void 0,d)}function A(){var e=o(),r=b(e);if(l=arguments,c=this,f=e,r){if(void 0===p)return function(e){return m=e,p=setTimeout(x,t),h?g(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(x,t),g(f)}return void 0===p&&(p=setTimeout(x,t)),d}return t=a(t)||0,n(r)&&(h=!!r.leading,u=(v="maxWait"in r)?i(a(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),A.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=f=c=p=void 0},A.flush=function(){return void 0===p?d:w(o())},A}},1163:(e,t,r)=>{var n=r(5647),o=r(3211),a=r(929),i=r(474),s=Object.prototype,l=s.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],d=i(u),p=-1,f=d.length;++p<f;){var m=d[p],h=e[m];(void 0===h||o(h,s[m])&&!l.call(e,m))&&(e[m]=u[m])}return e}));e.exports=c},8458:(e,t,r)=>{var n=r(8746),o=r(755),a=r(5647),i=r(6272),s=a((function(e,t){return i(e)?n(e,o(t,1,i,!0)):[]}));e.exports=s},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},819:(e,t,r)=>{var n=r(755);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},3097:(e,t,r)=>{var n=r(2969);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},3366:(e,t,r)=>{var n=r(7894),o=r(9057);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3279:e=>{e.exports=function(e){return e}},2777:(e,t,r)=>{var n=r(5193),o=r(2761),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,r)=>{var n=r(1629),o=r(6173);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},6272:(e,t,r)=>{var n=r(6571),o=r(2761);e.exports=function(e){return o(e)&&n(e)}},4543:(e,t,r)=>{e=r.nmd(e);var n=r(6552),o=r(14),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},9853:(e,t,r)=>{var n=r(6989);e.exports=function(e,t){return n(e,t)}},1629:(e,t,r)=>{var n=r(6913),o=r(6686);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7887:(e,t,r)=>{var n=r(5791),o=r(7574),a=r(6832),i=a&&a.isMap,s=i?o(i):n;e.exports=s},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2322:(e,t,r)=>{var n=r(6913),o=r(5990),a=r(2761),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},5921:(e,t,r)=>{var n=r(449),o=r(7574),a=r(6832),i=a&&a.isSet,s=i?o(i):n;e.exports=s},9841:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},1268:(e,t,r)=>{var n=r(5428),o=r(7574),a=r(6832),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},8673:(e,t,r)=>{var n=r(3204),o=r(3713),a=r(6571);e.exports=function(e){return a(e)?n(e):o(e)}},474:(e,t,r)=>{var n=r(3204),o=r(8122),a=r(6571);e.exports=function(e){return a(e)?n(e,!0):o(e)}},4065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},5797:(e,t,r)=>{var n=r(4816);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},4677:(e,t,r)=>{var n=r(3253),o=r(4570)((function(e,t,r){n(e,t,r)}));e.exports=o},5713:e=>{e.exports=function(){}},4757:(e,t,r)=>{var n=r(6552);e.exports=function(){return n.Date.now()}},2616:(e,t,r)=>{var n=r(4008),o=r(5857)((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},7273:(e,t,r)=>{var n=r(149),o=r(9096),a=r(7449),i=r(8592);e.exports=function(e,t){if(null==e)return{};var r=n(i(e),(function(e){return[e]}));return t=o(t),a(e,r,(function(e,r){return t(e,r[0])}))}},3932:(e,t,r)=>{var n=r(396),o=r(2866),a=r(2597),i=r(914);e.exports=function(e){return a(e)?n(i(e)):o(e)}},9613:(e,t,r)=>{var n=r(9261);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},7828:e=>{e.exports=function(){return[]}},14:e=>{e.exports=function(){return!1}},801:(e,t,r)=>{var n=r(1141),o=r(6686),a=r(9841),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):i.test(e)?NaN:+e}},1609:(e,t,r)=>{var n=r(6614),o=r(474);e.exports=function(e){return n(e,o(e))}},1069:(e,t,r)=>{var n=r(8541);e.exports=function(e){return null==e?"":n(e)}},450:(e,t,r)=>{var n=r(755),o=r(5647),a=r(4416),i=r(6272),s=o((function(e){return a(n(e,1,i,!0))}));e.exports=s},6940:(e,t,r)=>{var n=r(8140);e.exports=function(e,t){return null==e||n(e,t)}},4617:(e,t,r)=>{"use strict";var n=r(6365),o=r(2377),a=r(6440),i=r(7993),s=r(9393),l=function(e){a(!1,e)},c=String.prototype.replace,u=String.prototype.split,d="||||",p=function(e){var t=e%100,r=t%10;return 11!==t&&1===r?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:p,chinese:function(){return 0},croatian:p,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:p,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function m(e,t){var r=function(e){var t={};return n(o(e),(function(e){var r=e[0],o=e[1];n(o,(function(e){t[e]=r}))})),t}(e.pluralTypeToLanguages);return r[t]||r[u.call(t,/-/,1)[0]]||r.en}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var v=function(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=m(t,r))&&(e[r]=n),n}}(),y=/%\{(.*?)\}/g;function g(e,t,r,n,o,a){if("string"!==typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var l=e,p=n||y,m=a||c,h="number"===typeof t?{smart_count:t}:t;if(null!=h.smart_count&&e){var g=o||f,b=u.call(e,d),x=function(e,t,r){return e.pluralTypes[t](r)}(g,v(g,r||"en"),h.smart_count);l=s(b[x]||b[0])}return l=m.call(l,p,(function(e,t){return i(h,t)&&null!=h[t]?h[t]:e}))}function b(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?g:null;this.onMissingKey="function"===typeof t.onMissingKey?t.onMissingKey:r,this.warn=t.warn||l,this.replaceImplementation=t.replace||c,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===d||r===d)throw new RangeError('"'+d+'" token is reserved for pluralization');return new RegExp(h(t)+"(.*?)"+h(r),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}b.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},b.prototype.extend=function(e,t){n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.extend(n,o):this.phrases[o]=n}),this)},b.prototype.unset=function(e,t){"string"===typeof e?delete this.phrases[e]:n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.unset(n,o):delete this.phrases[o]}),this)},b.prototype.clear=function(){this.phrases={}},b.prototype.replace=function(e){this.clear(),this.extend(e)},b.prototype.t=function(e,t){var r,n,o=null==t?{}:t;if("string"===typeof this.phrases[e])r=this.phrases[e];else if("string"===typeof o._)r=o._;else if(this.onMissingKey){n=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return"string"===typeof r&&(n=g(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n},b.prototype.has=function(e){return i(this.phrases,e)},b.transformPhrase=function(e,t,r){return g(e,t,r)},e.exports=b},8206:(e,t,r)=>{var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&o&&"function"===typeof o.get?o.get:null,i=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,A=RegExp.prototype.test,S=Array.prototype.concat,O=Array.prototype.join,_=Array.prototype.slice,E=Math.floor,k="function"===typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"===typeof Symbol&&"object"===typeof Symbol.iterator,R="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,I=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-E(-e):E(e);if(n!==e){var o=String(n),a=g.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(2634),L=N.custom,F=W(L)?L:null;function z(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function D(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return"[object Array]"===H(e)&&(!R||!("object"===typeof e&&R in e))}function V(e){return"[object RegExp]"===H(e)&&(!R||!("object"===typeof e&&R in e))}function W(e){if(P)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!q(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return Q(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var A=String(t);return x?M(t,A):A}if("bigint"===typeof t){var E=String(t)+"n";return x?M(t,E):E}var j="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=j&&j>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var L=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(l,o);if("undefined"===typeof s)s=[];else if($(s,t)>=0)return"[Circular]";function U(t,r,n){if(r&&(s=_.call(s)).push(r),n){var a={depth:l.depth};return q(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!V(t)){var K=function(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Z(t,U);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(ee.length>0?" { "+O.call(ee,", ")+" }":"")}if(W(t)){var te=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(t);return"object"!==typeof t||P?te:G(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var re="<"+w.call(String(t.nodeName)),ne=t.attributes||[],oe=0;oe<ne.length;oe++)re+=" "+ne[oe].name+"="+z(D(ne[oe].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ae=Z(t,U);return L&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(ae)?"["+J(ae,L)+"]":"[ "+O.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&(!R||!("object"===typeof e&&R in e))}(t)){var ie=Z(t,U);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(S.call("[cause]: "+U(t.cause),ie),", ")+" }"}if("object"===typeof t&&h){if(F&&"function"===typeof t[F]&&N)return N(t,{depth:j-o});if("symbol"!==h&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(re){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return i&&i.call(t,(function(e,r){se.push(U(r,t,!0)+" => "+U(e,t))})),Y("Map",a.call(t),se,L)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push(U(e,t))})),Y("Set",c.call(t),le,L)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(re){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(re){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(U(Number(t)));if(function(e){if(!e||"object"!==typeof e||!k)return!1;try{return k.call(e),!0}catch(t){}return!1}(t))return G(U(k.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(m.call(t));if(function(e){return"[object String]"===H(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(U(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&(!R||!("object"===typeof e&&R in e))}(t)&&!V(t)){var ce=Z(t,U),ue=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",pe=!ue&&R&&Object(t)===t&&R in t?g.call(H(t),8,-1):de?"Object":"",fe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||de?"["+O.call(S.call([],pe||[],de||[]),": ")+"] ":"");return 0===ce.length?fe+"{}":L?fe+"{"+J(ce,L)+"}":fe+"{ "+O.call(ce,", ")+" }"}return String(t)};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return U.call(e,t)}function H(e){return h.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Q(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(g.call(e,0,t.maxStringLength),t)+n}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function G(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?J(r,n):O.call(r,", "))+"}"}function J(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=q(e,o)?t(e[o],e):""}var a,i="function"===typeof j?j(e):[];if(P){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)q(e,l)&&(r&&String(Number(l))===l&&l<e.length||P&&a["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"===typeof j)for(var c=0;c<i.length;c++)T.call(e,i[c])&&n.push("["+t(i[c])+"]: "+t(e[i[c]],e));return n}},1038:(e,t,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=r(234),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===a.call(e),n=i(e),s=t&&"[object String]"===a.call(e),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var m=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)p.push(String(h));if(n&&e.length>0)for(var v=0;v<e.length;++v)p.push(String(v));else for(var y in e)m&&"prototype"===y||!o.call(e,y)||p.push(String(y));if(l)for(var g=function(e){if("undefined"===typeof window||!f)return d(e);try{return d(e)}catch(t){return!1}}(e),b=0;b<u.length;++b)g&&"constructor"===u[b]||!o.call(e,u[b])||p.push(u[b]);return p}}e.exports=n},2678:(e,t,r)=>{"use strict";var n=Array.prototype.slice,o=r(234),a=Object.keys,i=a?function(e){return a(e)}:r(1038),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},234:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},1407:(e,t,r)=>{"use strict";var n=r(9076),o=r(2028),a=o("Object.prototype.propertyIsEnumerable"),i=o("Array.prototype.push");e.exports=function(e){var t=n(e),r=[];for(var o in t)a(t,o)&&i(r,[o,t[o]]);return r}},2377:(e,t,r)=>{"use strict";var n=r(1779),o=r(1712),a=r(1407),i=r(4158),s=r(6828),l=o(i(),Object);n(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},4158:(e,t,r)=>{"use strict";var n=r(1407);e.exports=function(){return"function"===typeof Object.entries?Object.entries:n}},6828:(e,t,r)=>{"use strict";var n=r(4158),o=r(1779);e.exports=function(){var e=n();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},3385:function(e,t){var r,n,o;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,o={},a=0,i={parse:function(r,n){var s=(n=n||{}).dynamicTyping||!1;if(w(s)&&(n.dynamicTypingFunction=s,s={}),n.dynamicTyping=s,n.transform=!!w(n.transform)&&n.transform,n.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var r,n,s=(r=t.URL||t.webkitURL||null,n=e.toString(),i.BLOB_URL||(i.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(s);return l.onmessage=v,l.id=a++,o[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,void l.postMessage({input:r,config:n,workerId:l.id})}var f=null;return i.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),f=n.download?new c(n):new d(n)):!0===r.readable&&w(r.read)&&w(r.on)?f=new p(n):(t.File&&r instanceof File||r instanceof Object)&&(f=new u(n)),f.stream(r)},unparse:function(e,t){var r=!1,n=!0,o=",",a="\r\n",s='"',l=s+s,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var p=new RegExp(m(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,c);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(s&&n){for(var c=0;c<e.length;c++)0<c&&(i+=o),i+=h(e[c],c);0<t.length&&(i+=a)}for(var u=0;u<t.length;u++){var d=s?e.length:t[u].length,p=!1,f=s?0===Object.keys(t[u]).length:0===t[u].length;if(r&&!s&&(p="greedy"===r?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===r&&s){for(var m=[],v=0;v<d;v++){var y=l?e[v]:v;m.push(t[u][y])}p=""===m.join("").trim()}if(!p){for(var g=0;g<d;g++){0<g&&!f&&(i+=o);var b=s&&l?e[g]:g;i+=h(t[u][b],g)}u<t.length-1&&(!r||0<d&&!f)&&(i+=a)}}return i}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,n=!0);var a=e.toString().replace(p,l);return(n=n||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(a,i.BAD_DELIMITERS)||-1<a.indexOf(o)||" "===a.charAt(0)||" "===a.charAt(a.length-1))?s+a+s:a}}};if(i.RECORD_SEP=String.fromCharCode(30),i.UNIT_SEP=String.fromCharCode(31),i.BYTE_ORDER_MARK="\ufeff",i.BAD_DELIMITERS=["\r","\n",'"',i.BYTE_ORDER_MARK],i.WORKERS_SUPPORTED=!r&&!!t.Worker,i.NODE_STREAM_INPUT=1,i.LocalChunkSize=10485760,i.RemoteChunkSize=5242880,i.DefaultDelimiter=",",i.Parser=h,i.ParserHandle=f,i.NetworkStreamer=c,i.FileStreamer=u,i.StringStreamer=d,i.ReadableStreamStreamer=p,t.jQuery){var s=t.jQuery;s.fn.parse=function(e){var r=e.config||{},n=[];return this.each((function(e){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)n.push({file:this.files[o],inputElem:this,instanceConfig:s.extend({},r)})})),o(),this;function o(){if(0!==n.length){var t,r,o,l,c=n[0];if(w(e.before)){var u=e.before(c.file,c.inputElem);if("object"==typeof u){if("abort"===u.action)return t="AbortError",r=c.file,o=c.inputElem,l=u.reason,void(w(e.error)&&e.error({name:t},r,o,l));if("skip"===u.action)return void a();"object"==typeof u.config&&(c.instanceConfig=s.extend(c.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=c.instanceConfig.complete;c.instanceConfig.complete=function(e){w(d)&&d(e,c.file,c.inputElem),a()},i.parse(c.file,c.instanceConfig)}else w(e.complete)&&e.complete()}function a(){n.splice(0,1),o()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,r){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(e);void 0!==o&&(e=o)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var s=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=a.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:s,workerId:i.WORKER_ID,finished:c});else if(w(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!c||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function u(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,o)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function f(e){var t,r,n,o=Math.pow(2,53),a=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,p=!1,f=!1,v=[],y={data:[],errors:[],meta:{}};if(w(e.step)){var g=e.step;e.step=function(t){if(y=t,S())A();else{if(A(),0===y.data.length)return;u+=t.data.length,e.preview&&u>e.preview?r.abort():(y.data=y.data[0],g(y,c))}}}function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function A(){return y&&n&&(_("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!x(e)}))),S()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;S()&&t<y.data.length;t++)y.data[t].forEach(r);y.data.splice(0,1)}else y.data.forEach(r);function r(t,r){w(e.transformHeader)&&(t=e.transformHeader(t,r)),v.push(t)}}(),function(){if(!y||!e.header&&!e.dynamicTyping&&!e.transform)return y;function t(t,r){var n,o=e.header?{}:[];for(n=0;n<t.length;n++){var a=n,i=t[n];e.header&&(a=n>=v.length?"__parsed_extra":v[n]),e.transform&&(i=e.transform(i,a)),i=O(a,i),"__parsed_extra"===a?(o[a]=o[a]||[],o[a].push(i)):o[a]=i}return e.header&&(n>v.length?_("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+n,d+r):n<v.length&&_("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+n,d+r)),o}var r=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(t),r=y.data.length):y.data=t(y.data,0),e.header&&y.meta&&(y.meta.fields=v),d+=r,y}()}function S(){return e.header&&0===v.length}function O(t,r){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(e){if(s.test(e)){var t=parseFloat(e);if(a<t&&t<o)return!0}return!1}(r)?parseFloat(r):l.test(r)?new Date(r):""===r?null:r):r;var n}function _(e,t,r,n){var o={type:e,code:t,message:r};void 0!==n&&(o.row=n),y.errors.push(o)}this.parse=function(o,a,s){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(m(t)+"([^]*?)"+m(t),"gm"),n=(e=e.replace(r,"")).split("\r"),o=e.split("\n"),a=1<o.length&&o[0].length<n[0].length;if(1===n.length||a)return"\n";for(var i=0,s=0;s<n.length;s++)"\n"===n[s][0]&&i++;return i>=n.length/2?"\r\n":"\r"}(o,l)),n=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(o),y.meta.delimiter=e.delimiter);else{var c=function(t,r,n,o,a){var s,l,c,u;a=a||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d<a.length;d++){var p=a[d],f=0,m=0,v=0;c=void 0;for(var y=new h({comments:o,delimiter:p,newline:r,preview:10}).parse(t),g=0;g<y.data.length;g++)if(n&&x(y.data[g]))v++;else{var b=y.data[g].length;m+=b,void 0!==c?0<b&&(f+=Math.abs(b-c),c=b):c=b}0<y.data.length&&(m/=y.data.length-v),(void 0===l||f<=l)&&(void 0===u||u<m)&&1.99<m&&(l=f,s=p,u=m)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);c.successful?e.delimiter=c.bestDelimiter:(n=!0,e.delimiter=i.DefaultDelimiter),y.meta.delimiter=e.delimiter}var u=b(e);return e.preview&&e.header&&u.preview++,t=o,r=new h(u),y=r.parse(t,a,s),A(),p?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,r.abort(),t=w(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){c.streamer._halted?(p=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,r.abort(),y.meta.aborted=!0,w(e.complete)&&e.complete(y),t=""}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e){var t,r=(e=e||{}).delimiter,n=e.newline,o=e.comments,a=e.step,s=e.preview,l=e.fastMode,c=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(c=e.escapeChar),("string"!=typeof r||-1<i.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<i.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,d=!1;this.parse=function(i,p,f){if("string"!=typeof i)throw new Error("Input must be a string");var h=i.length,v=r.length,y=n.length,g=o.length,b=w(a),x=[],A=[],S=[],O=u=0;if(!i)return $();if(e.header&&!p){var _=i.split(n)[0].split(r),E=[],k={},j=!1;for(var C in _){var P=_[C];w(e.transformHeader)&&(P=e.transformHeader(P,C));var R=P,T=k[P]||0;for(0<T&&(j=!0,R=P+"_"+T),k[P]=T+1;E.includes(R);)R=R+"_"+T;E.push(R)}if(j){var I=i.split(n);I[0]=E.join(r),i=I.join(n)}}if(l||!1!==l&&-1===i.indexOf(t)){for(var M=i.split(n),N=0;N<M.length;N++){if(S=M[N],u+=S.length,N!==M.length-1)u+=n.length;else if(f)return $();if(!o||S.substring(0,g)!==o){if(b){if(x=[],W(S.split(r)),Q(),d)return $()}else W(S.split(r));if(s&&s<=N)return x=x.slice(0,s),$(!0)}}return $()}for(var L=i.indexOf(r,u),F=i.indexOf(n,u),z=new RegExp(m(c)+m(t),"g"),D=i.indexOf(t,u);;)if(i[u]!==t)if(o&&0===S.length&&i.substring(u,u+g)===o){if(-1===F)return $();u=F+y,F=i.indexOf(n,u),L=i.indexOf(r,u)}else if(-1!==L&&(L<F||-1===F))S.push(i.substring(u,L)),u=L+v,L=i.indexOf(r,u);else{if(-1===F)break;if(S.push(i.substring(u,F)),H(F+y),b&&(Q(),d))return $();if(s&&x.length>=s)return $(!0)}else for(D=u,u++;;){if(-1===(D=i.indexOf(t,D+1)))return f||A.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:u}),q();if(D===h-1)return q(i.substring(u,D).replace(z,t));if(t!==c||i[D+1]!==c){if(t===c||0===D||i[D-1]!==c){-1!==L&&L<D+1&&(L=i.indexOf(r,D+1)),-1!==F&&F<D+1&&(F=i.indexOf(n,D+1));var B=U(-1===F?L:Math.min(L,F));if(i.substr(D+1+B,v)===r){S.push(i.substring(u,D).replace(z,t)),i[u=D+1+B+v]!==t&&(D=i.indexOf(t,u)),L=i.indexOf(r,u),F=i.indexOf(n,u);break}var V=U(F);if(i.substring(D+1+V,D+1+V+y)===n){if(S.push(i.substring(u,D).replace(z,t)),H(D+1+V+y),L=i.indexOf(r,u),D=i.indexOf(t,u),b&&(Q(),d))return $();if(s&&x.length>=s)return $(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:u}),D++}}else D++}return q();function W(e){x.push(e),O=u}function U(e){var t=0;if(-1!==e){var r=i.substring(D+1,e);r&&""===r.trim()&&(t=r.length)}return t}function q(e){return f||(void 0===e&&(e=i.substring(u)),S.push(e),u=h,W(S),b&&Q()),$()}function H(e){u=e,W(S),S=[],F=i.indexOf(n,u)}function $(e){return{data:x,errors:A,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:O+(p||0)}}}function Q(){a($()),x=[],A=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function v(e){var t=e.data,r=o[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(w(r.userStep)){for(var i=0;i<t.results.data.length&&(r.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},a),!n);i++);delete t.results}else w(r.userChunk)&&(r.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var r=o[e];w(r.userComplete)&&r.userComplete(t),r.terminate(),delete o[e]}function g(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=b(e[r]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var r=e.data;if(void 0===i.WORKER_ID&&r&&(i.WORKER_ID=r.workerId),"string"==typeof r.input)t.postMessage({workerId:i.WORKER_ID,results:i.parse(r.input,r.config),finished:!0});else if(t.File&&r.input instanceof File||r.input instanceof Object){var n=i.parse(r.input,r.config);n&&t.postMessage({workerId:i.WORKER_ID,results:n,finished:!0})}}),(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(l.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(p.prototype=Object.create(l.prototype)).constructor=p,i},void 0===(o="function"===typeof r?r.apply(t,n):r)||(e.exports=o)},1497:(e,t,r)=>{"use strict";var n=r(3218);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5173:(e,t,r)=>{e.exports=r(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9370:(e,t,r)=>{"use strict";const n=r(7491),o=r(5707),a=r(1289),i=r(38),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),a="string"===typeof r&&!o&&u(r,e).includes(e.arrayFormatSeparator);r=a?u(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?u(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:u(i,t),r(u(e,t),i,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=m(e[r],t);else n[o]=m(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=f,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>{return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",o,"]"].join("")]:[...r,[c(t,e),"[",c(o,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[c(r,e),t,c(o,e)].join("")]:[[n,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),o={};for(const i of Object.keys(e))r(i)||(o[i]=e[i]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const o=e[r];return void 0===o?"":null===o?c(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":o.reduce(n(r),[]).join("&"):c(r,t)+"="+c(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:h(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=p(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let l=t.stringify(i,r);l&&(l="?".concat(l));let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(r[s]?c(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(n).concat(l).concat(u)},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:a,fragmentIdentifier:l}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:i(a,r),fragmentIdentifier:l},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},517:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,a=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116,m=60121,h=60122,v=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),a=b("react.strict_mode"),i=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),f=b("react.lazy"),m=b("react.block"),h=b("react.server.block"),v=b("react.fundamental"),y=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===i||e===y||e===a||e===u||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===v||e.$$typeof===m||e[0]===h)}},6057:(e,t,r)=>{"use strict";e.exports=r(517)},2e3:e=>{e.exports={ra:{action:{add_filter:"\u589e\u52a0\u68c0\u7d22",add:"\u589e\u52a0",back:"\u56de\u9000",bulk_actions:"\u9009\u4e2d%{smart_count}\u9879",cancel:"\u53d6\u6d88",clear_input_value:"\u6e05\u7a7a\u8f93\u5165",clone:"\u514b\u9686",close:"\u5173\u95ed",close_menu:"\u5173\u95ed\u83dc\u5355",confirm:"\u786e\u8ba4",create:"\u65b0\u5efa",delete:"\u5220\u9664",edit:"\u7f16\u8f91",expand:"\u5c55\u5f00",export:"\u5bfc\u51fa",list:"\u5217\u8868",open_menu:"\u6253\u5f00\u83dc\u5355",refresh:"\u5237\u65b0",remove:"\u5220\u9664",remove_filter:"\u79fb\u9664\u68c0\u7d22",save:"\u4fdd\u5b58",search:"\u68c0\u7d22",show:"\u67e5\u770b",sort:"\u6392\u5e8f",undo:"\u64a4\u9500",unselect:"\u53cd\u9009"},boolean:{true:"\u662f",false:"\u5426",null:"\u2003"},page:{create:"\u65b0\u5efa %{name}",dashboard:"\u6982\u89c8",edit:"%{name} #%{id}",empty:"\u65e0 %{name} ",error:"\u51fa\u73b0\u9519\u8bef",invite:"\u8981\u589e\u52a0\u5417?",list:"%{name} \u5217\u8868",loading:"\u52a0\u8f7d\u4e2d",not_found:"\u672a\u53d1\u73b0",show:"%{name} #%{id}"},input:{file:{upload_several:"\u5c06\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6."},image:{upload_several:"\u5c06\u56fe\u7247\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u56fe\u7247\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6."},references:{all_missing:"\u672a\u627e\u5230\u53c2\u8003\u6570\u636e.",many_missing:"\u81f3\u5c11\u6709\u4e00\u6761\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528.",single_missing:"\u5173\u8054\u7684\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528."},password:{toggle_visible:"\u9690\u85cf\u5bc6\u7801",toggle_hidden:"\u663e\u793a\u5bc6\u7801"}},message:{about:"\u5173\u4e8e",are_you_sure:"\u60a8\u786e\u5b9a\u64cd\u4f5c?",bulk_delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664 %{name}? |||| \u60a8\u786e\u5b9a\u8981\u5220\u9664 %{smart_count} \u9879?",bulk_delete_title:"\u5220\u9664 %{name} |||| \u5220\u9664 %{smart_count}\u9879 %{name} ",delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u76ee?",delete_title:"\u5220\u9664 %{name} #%{id}",error:"\u5ba2\u6237\u7aef\u9519\u8bef\u5bfc\u81f4\u8bf7\u6c42\u672a\u5b8c\u6210.",invalid_form:"\u8868\u5355\u8f93\u5165\u65e0\u6548. \u8bf7\u68c0\u67e5\u9519\u8bef\u63d0\u793a",loading:"\u6b63\u5728\u52a0\u8f7d\u9875\u9762, \u8bf7\u7a0d\u5019",no:"\u5426",not_found:"\u60a8\u8f93\u5165\u4e86\u9519\u8bef\u7684URL\u6216\u8005\u9519\u8bef\u7684\u94fe\u63a5.",unsaved_changes:"\u4fee\u6539\u672a\u4fdd\u5b58. \u653e\u5f03\u4fee\u6539\u5417?",yes:"\u662f"},navigation:{no_results:"\u7ed3\u679c\u4e3a\u7a7a",no_more_results:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c. \u8bd5\u8bd5\u4e0a\u4e00\u9875.",page_out_of_boundaries:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c",page_out_from_end:"\u5df2\u5230\u6700\u672b\u9875",page_out_from_begin:"\u5df2\u5230\u6700\u524d\u9875",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"\u6bcf\u9875\u884c\u6570:",next:"\u5411\u540e",prev:"\u5411\u524d",skip_nav:"\u8df3\u5230\u5185\u5bb9"},sort:{sort_by:"\u6309 %{field} %{order}",ASC:"\u5347\u5e8f",DESC:"\u964d\u5e8f"},auth:{auth_check_error:"\u8bf7\u767b\u5f55\u4ee5\u7ee7\u7eed",user_menu:"\u8bbe\u7f6e",username:"\u7528\u6237\u540d",password:"\u5bc6\u7801",sign_in:"\u767b\u5f55",sign_in_error:"\u9a8c\u8bc1\u5931\u8d25, \u8bf7\u91cd\u8bd5",logout:"\u9000\u51fa"},notification:{updated:"\u6761\u76ee\u5df2\u66f4\u65b0 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u66f4\u65b0",created:"\u6761\u76ee\u5df2\u65b0\u5efa",deleted:"\u6761\u76ee\u5df2\u5220\u9664 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u5220\u9664",bad_item:"\u4e0d\u6b63\u786e\u7684\u6761\u76ee",item_doesnt_exist:"\u6761\u76ee\u4e0d\u5b58\u5728",http_error:"\u4e0e\u670d\u52a1\u901a\u4fe1\u51fa\u9519",canceled:"\u53d6\u6d88\u52a8\u4f5c",data_provider_error:"dataProvider\u9519\u8bef. \u8bf7\u68c0\u67e5console\u7684\u8be6\u7ec6\u4fe1\u606f.",i18n_error:"\u65e0\u6cd5\u52a0\u8f7d\u6307\u5b9a\u8bed\u8a00\u5305",canceled:"\u53d6\u6d88\u52a8\u4f5c",logged_out:"\u4f1a\u8bdd\u5931\u6548, \u8bf7\u91cd\u8fde."},validation:{required:"\u5fc5\u586b",minLength:"\u5fc5\u987b\u4e0d\u5c11\u4e8e %{min} \u4e2a\u5b57\u7b26",maxLength:"\u5fc5\u987b\u4e0d\u591a\u4e8e %{max} \u4e2a\u5b57\u7b26",minValue:"\u5fc5\u987b\u4e0d\u5c0f\u4e8e %{min}",maxValue:"\u5fc5\u987b\u4e0d\u5927\u4e8e %{max}",number:"\u5fc5\u987b\u4e3a\u6570\u5b57",email:"\u5fc5\u987b\u662f\u6709\u6548\u7684\u90ae\u7bb1",oneOf:"\u5fc5\u987b\u4e3a: %{options}\u5176\u4e2d\u4e00\u9879",regex:"\u5fc5\u987b\u7b26\u5408\u6307\u5b9a\u7684\u683c\u5f0f (regexp): %{pattern}"}}}},3087:e=>{e.exports={ra:{action:{add_filter:"Filter hinzuf\xfcgen",add:"Neu",back:"Zur\xfcck",bulk_actions:"Ein Element ausgew\xe4hlt |||| %{smart_count} Elemente ausgew\xe4hlt",cancel:"Abbrechen",clear_input_value:"Eingabe l\xf6schen",clone:"Klonen",confirm:"Best\xe4tigen",create:"Erstellen",delete:"L\xf6schen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Aktualisieren",remove_filter:"Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",show:"Anzeigen",sort:"Sortieren",undo:"Zur\xfccksetzen",unselect:"Abw\xe4hlen",expand:"Erweitern",close:"Schliessen",open_menu:"\xd6ffnen des Men\xfcs",close_menu:"Schliessen des Men\xfcs"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} #%{id}",error:"Etwas ist schief gelaufen",list:"%{name}",loading:"Die Seite wird geladen.",not_found:"Nicht gefunden",show:"%{name} #%{id}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Zum Hochladen Dateien hineinziehen oder hier klicken, um Dateien auszuw\xe4hlen.",upload_single:"Zum Hochladen Datei hineinziehen oder hier klicken, um eine Datei auszuw\xe4hlen."},image:{upload_several:"Zum Hochladen Bilder hineinziehen oder hier klicken, um Bilder auszuw\xe4hlen.",upload_single:"Zum Hochladen Bild hineinziehen oder hier klicken, um ein Bild auszuw\xe4hlen."},references:{all_missing:"Die zugeh\xf6rigen Referenzen konnten nicht gefunden werden.",many_missing:"Mindestens eine der zugeh\xf6rigen Referenzen scheint nicht mehr verf\xfcgbar zu sein.",single_missing:"Eine zugeh\xf6rige Referenz scheint nicht mehr verf\xfcgbar zu sein."},password:{toggle_visible:"Passwort ausblenden",toggle_hidden:"Passwort einblenden"}},message:{about:"\xdcber",are_you_sure:"Sind Sie sicher?",bulk_delete_content:'M\xf6chten Sie "%{name}" wirklich l\xf6schen? |||| M\xf6chten Sie diese %{smart_count} Elemente wirklich l\xf6schen?',bulk_delete_title:"L\xf6sche %{name} |||| L\xf6sche %{smart_count} %{name} Elemente",delete_content:"M\xf6chten Sie diesen Inhalt wirklich l\xf6schen?",delete_title:"L\xf6sche %{name} #%{id}",details:"Details",error:"Ein Fehler ist aufgetreten und Ihre Anfrage konnte nicht abgeschlossen werden.",invalid_form:"Das Formular ist ung\xfcltig. Bitte \xfcberpr\xfcfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, bitte haben Sie etwas Geduld.",no:"Nein",not_found:"Die Seite konnte nicht gefunden werden.",yes:"Ja",unsaved_changes:"Einige \xc4nderungen wurden nicht gespeichert. Sind Sie sicher, dass Sie diese Seite verlassen wollen?"},navigation:{no_results:"Keine Resultate gefunden",no_more_results:"Die Seite %{page} enth\xe4lt keine Inhalte.",page_out_of_boundaries:"Die Seite %{page} liegt ausserhalb des g\xfcltigen Bereichs",page_out_from_end:"Letzte Seite",page_out_from_begin:"Erste Seite",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",page_rows_per_page:"Zeilen pro Seite:",next:"Weiter",prev:"Zur\xfcck",skip_nav:"Zum Inhalt springen"},auth:{auth_check_error:"Bitte verbinden Sie sich um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Fehler bei der Anmeldung",logout:"Abmelden"},notification:{updated:"Element wurde aktualisiert |||| %{smart_count} Elemente wurden aktualisiert",created:"Element wurde erstellt",deleted:"Element wurde gel\xf6scht |||| %{smart_count} Elemente wurden gel\xf6scht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Das Element existiert nicht",http_error:"Fehler beim Kommunizieren mit dem Server",data_provider_error:"Fehler im dataProvider. Pr\xfcfe die Konsole f\xfcr Details.",i18n_error:"Die \xdcbersetzungen f\xfcr die angegebene Sprache k\xf6nnen nicht geladen werden.",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung wurde beendet, bitte verbinden Sie sich neu."},validation:{required:"Ben\xf6tigt",minLength:"Muss mindestens %{min} Zeichen lang sein",maxLength:"Darf maximal %{max} Zeichen lang sein",minValue:"Muss mindestens %{min} sein",maxValue:"Muss %{max} oder weniger sein",number:"Muss eine Nummer sein",email:"Muss eine g\xfcltige E-Mail sein",oneOf:"Es muss einer sein von: %{options}",regex:"Es muss folgendem regul\xe4ren Ausdruck entsprechen: %{pattern}"}}}},2951:e=>{e.exports={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:"\u2003"},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra pi\xf9 disponibile.",single_missing:"Il riferimento associato non sembra pi\xf9 disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale \xe8 occorso e la tua richiesta non \xe8 stata completata.",invalid_form:"Il modulo non \xe8 valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} \xe8 fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} \xe8 fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"\xc8 necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione \xe8 stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}}},2730:(e,t,r)=>{"use strict";var n=r(5043),o=r(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,r,n){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,g);v[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,g);v[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,g);v[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),A=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),k=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,F=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var D=!1;function B(e,t){if(!e||D)return"";D=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function V(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case A:return"Portal";case _:return"Profiler";case O:return"StrictMode";case C:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case k:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return W(e(t))}catch(r){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=H(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function X(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=q(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Y(e,t);var r=q(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+q(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(te(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function ae(e,t){var r=q(t.value),n=q(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=he(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Se=null,Oe=null;function _e(e){if(e=xo(e)){if("function"!==typeof Ae)throw Error(a(280));var t=e.stateNode;t&&(t=Ao(t),Ae(e.stateNode,e.type,t))}}function Ee(e){Se?Oe?Oe.push(e):Oe=[e]:Se=e}function ke(){if(Se){var e=Se,t=Oe;if(Oe=Se=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function je(e,t){return e(t)}function Ce(){}var Pe=!1;function Re(e,t,r){if(Pe)return e(t,r);Pe=!0;try{return je(e,t,r)}finally{Pe=!1,(null!==Se||null!==Oe)&&(Ce(),ke())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var n=Ao(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(a(231,t,typeof r));return r}var Ie=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Ie=!1}function Ne(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Le=!1,Fe=null,ze=!1,De=null,Be={onError:function(e){Le=!0,Fe=e}};function Ve(e,t,r,n,o,a,i,s,l){Le=!1,Fe=null,Ne.apply(Be,arguments)}function We(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function qe(e){if(We(e)!==e)throw Error(a(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return qe(o),e;if(i===n)return qe(o),t;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ye=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=dt(s):0!==(a&=i)&&(n=dt(a))}else 0!==(i=r&~o)?n=dt(i):0!==a&&(n=dt(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-it(t)),n|=e[r],t&=~o;return n}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function yt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=r}function gt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-it(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,At,St,Ot,_t,Et=!1,kt=[],jt=null,Ct=null,Pt=null,Rt=new Map,Tt=new Map,It=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Lt(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&At(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ft(e){var t=bo(e.target);if(null!==t){var r=We(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ue(r)))return e.blockedOn=t,void _t(e.priority,(function(){St(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&At(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);xe=n,r.target.dispatchEvent(n),xe=null,t.shift()}return!0}function Dt(e,t,r){zt(e)&&r.delete(t)}function Bt(){Et=!1,null!==jt&&zt(jt)&&(jt=null),null!==Ct&&zt(Ct)&&(Ct=null),null!==Pt&&zt(Pt)&&(Pt=null),Rt.forEach(Dt),Tt.forEach(Dt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Vt(t,e)}if(0<kt.length){Vt(kt[0],e);for(var r=1;r<kt.length;r++){var n=kt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==jt&&Vt(jt,e),null!==Ct&&Vt(Ct,e),null!==Pt&&Vt(Pt,e),Rt.forEach(t),Tt.forEach(t),r=0;r<It.length;r++)(n=It[r]).blockedOn===e&&(n.blockedOn=null);for(;0<It.length&&null===(r=It[0]).blockedOn;)Ft(r),null===r.blockedOn&&It.shift()}var Ut=x.ReactCurrentBatchConfig,qt=!0;function Ht(e,t,r,n){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=1,Qt(e,t,r,n)}finally{bt=o,Ut.transition=a}}function $t(e,t,r,n){var o=bt,a=Ut.transition;Ut.transition=null;try{bt=4,Qt(e,t,r,n)}finally{bt=o,Ut.transition=a}}function Qt(e,t,r,n){if(qt){var o=Gt(e,t,r,n);if(null===o)qn(e,t,n,Kt,r),Nt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return jt=Lt(jt,e,t,r,n,o),!0;case"dragenter":return Ct=Lt(Ct,e,t,r,n,o),!0;case"mouseover":return Pt=Lt(Pt,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return Rt.set(a,Lt(Rt.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,Lt(Tt.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Nt(e,n),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Gt(e,t,r,n))&&qn(e,t,n,Kt,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else qn(e,t,n,null,r)}}var Kt=null;function Gt(e,t,r,n){if(Kt=null,null!==(e=bo(e=we(n))))if(null===(t=We(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function er(){if(Zt)return Zt;var e,t,r=Jt,n=r.length,o="value"in Yt?Yt.value:Yt.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ar,ir,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),ur=F({},lr,{view:0,detail:0}),dr=or(ur),pr=F({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ar=e.screenX-sr.screenX,ir=e.screenY-sr.screenY):ir=ar=0,sr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),fr=or(pr),mr=or(F({},pr,{dataTransfer:0})),hr=or(F({},ur,{relatedTarget:0})),vr=or(F({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),yr=F({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gr=or(yr),br=or(F({},lr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Or(){return Sr}var _r=F({},ur,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Er=or(_r),kr=or(F({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jr=or(F({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or})),Cr=or(F({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pr=F({},pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rr=or(Pr),Tr=[9,13,27,32],Ir=u&&"CompositionEvent"in window,Mr=null;u&&"documentMode"in document&&(Mr=document.documentMode);var Nr=u&&"TextEvent"in window&&!Mr,Lr=u&&(!Ir||Mr&&8<Mr&&11>=Mr),Fr=String.fromCharCode(32),zr=!1;function Dr(e,t){switch(e){case"keyup":return-1!==Tr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vr=!1;var Wr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wr[e.type]:"textarea"===t}function qr(e,t,r,n){Ee(n),0<(t=$n(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Hr=null,$r=null;function Qr(e){zn(e,0)}function Kr(e){if(Q(wo(e)))return e}function Gr(e,t){if("change"===e)return t}var Xr=!1;if(u){var Yr;if(u){var Jr="oninput"in document;if(!Jr){var Zr=document.createElement("div");Zr.setAttribute("oninput","return;"),Jr="function"===typeof Zr.oninput}Yr=Jr}else Yr=!1;Xr=Yr&&(!document.documentMode||9<document.documentMode)}function en(){Hr&&(Hr.detachEvent("onpropertychange",tn),$r=Hr=null)}function tn(e){if("value"===e.propertyName&&Kr($r)){var t=[];qr(t,$r,e,we(e)),Re(Qr,t)}}function rn(e,t,r){"focusin"===e?(en(),$r=r,(Hr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr($r)}function on(e,t){if("click"===e)return Kr(t)}function an(e,t){if("input"===e||"change"===e)return Kr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ln(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!d.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mn(e){var t=pn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&fn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=un(r,a);var i=un(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hn=u&&"documentMode"in document&&11>=document.documentMode,vn=null,yn=null,gn=null,bn=!1;function xn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==vn||vn!==K(n)||("selectionStart"in(n=vn)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},gn&&ln(gn,n)||(gn=n,0<(n=$n(yn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=vn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var An={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},Sn={},On={};function _n(e){if(Sn[e])return Sn[e];if(!An[e])return e;var t,r=An[e];for(t in r)if(r.hasOwnProperty(t)&&t in On)return Sn[e]=r[t];return e}u&&(On=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);var En=_n("animationend"),kn=_n("animationiteration"),jn=_n("animationstart"),Cn=_n("transitionend"),Pn=new Map,Rn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tn(e,t){Pn.set(e,t),l(t,[e])}for(var In=0;In<Rn.length;In++){var Mn=Rn[In];Tn(Mn.toLowerCase(),"on"+(Mn[0].toUpperCase()+Mn.slice(1)))}Tn(En,"onAnimationEnd"),Tn(kn,"onAnimationIteration"),Tn(jn,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(Cn,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nn));function Fn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,i,s,l,c){if(Ve.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=Fe;Le=!1,Fe=null,ze||(ze=!0,De=u)}}(n,t,void 0,e),e.currentTarget=null}function zn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Fn(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Fn(o,s,c),a=l}}}if(ze)throw e=De,ze=!1,De=null,e}function Dn(e,t){var r=t[vo];void 0===r&&(r=t[vo]=new Set);var n=e+"__bubble";r.has(n)||(Un(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),Un(r,e,n,t)}var Vn="_reactListening"+Math.random().toString(36).slice(2);function Wn(e){if(!e[Vn]){e[Vn]=!0,i.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vn]||(t[Vn]=!0,Bn("selectionchange",!1,t))}}function Un(e,t,r,n){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=$t;break;default:o=Qt}r=o.bind(null,t,r,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function qn(e,t,r,n,o){var a=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=bo(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}Re((function(){var n=a,o=we(r),i=[];e:{var s=Pn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Er;break;case"focusin":c="focus",l=hr;break;case"focusout":c="blur",l=hr;break;case"beforeblur":case"afterblur":l=hr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jr;break;case En:case kn:case jn:l=vr;break;case Cn:l=Cr;break;case"scroll":l=dr;break;case"wheel":l=Rr;break;case"copy":case"cut":case"paste":l=gr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kr}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=n;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Te(m,p))&&u.push(Hn(m,h,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===xe||!(c=r.relatedTarget||r.fromElement)||!bo(c)&&!c[ho])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?bo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=fr,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=kr,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:wo(l),f=null==c?s:wo(c),(s=new u(h,m+"leave",l,r,o)).target=d,s.relatedTarget=f,h=null,bo(o)===n&&((u=new u(p,m+"enter",c,r,o)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=Qn(f))m++;for(f=0,h=p;h;h=Qn(h))f++;for(;0<m-f;)u=Qn(u),m--;for(;0<f-m;)p=Qn(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=Qn(u),p=Qn(p)}u=null}else u=null;null!==l&&Kn(i,s,l,u,!1),null!==c&&null!==d&&Kn(i,d,c,u,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Gr;else if(Ur(s))if(Xr)v=an;else{v=nn;var y=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=on);switch(v&&(v=v(e,n))?qr(i,v,r,o):(y&&y(e,s,n),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=n?wo(n):window,e){case"focusin":(Ur(y)||"true"===y.contentEditable)&&(vn=y,yn=n,gn=null);break;case"focusout":gn=yn=vn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,xn(i,r,o);break;case"selectionchange":if(hn)break;case"keydown":case"keyup":xn(i,r,o)}var g;if(Ir)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vr?Dr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Lr&&"ko"!==r.locale&&(Vr||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vr&&(g=er()):(Jt="value"in(Yt=o)?Yt.value:Yt.textContent,Vr=!0)),0<(y=$n(n,b)).length&&(b=new br(b,e,null,r,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Br(r))&&(b.data=g))),(g=Nr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(zr=!0,Fr);case"textInput":return(e=t.data)===Fr&&zr?null:e;default:return null}}(e,r):function(e,t){if(Vr)return"compositionend"===e||!Ir&&Dr(e,t)?(e=er(),Zt=Jt=Yt=null,Vr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=$n(n,"onBeforeInput")).length&&(o=new br("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=g))}zn(i,t)}))}function Hn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function $n(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Te(e,r))&&n.unshift(Hn(e,a,o)),null!=(a=Te(e,t))&&n.push(Hn(e,a,o))),e=e.return}return n}function Qn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Te(r,a))&&i.unshift(Hn(r,l,s)):o||null!=(l=Te(r,a))&&i.push(Hn(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Gn=/\r\n?/g,Xn=/\u0000|\uFFFD/g;function Yn(e){return("string"===typeof e?e:""+e).replace(Gn,"\n").replace(Xn,"")}function Jn(e,t,r){if(t=Yn(t),Yn(e)!==t&&r)throw Error(a(425))}function Zn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Wt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Wt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,ho="__reactContainer$"+po,vo="__reactEvents$"+po,yo="__reactListeners$"+po,go="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ho]||r[fo]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=uo(e);null!==e;){if(r=e[fo])return r;e=uo(e)}return t}r=(e=r).parentNode}return null}function xo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Ao(e){return e[mo]||null}var So=[],Oo=-1;function _o(e){return{current:e}}function Eo(e){0>Oo||(e.current=So[Oo],So[Oo]=null,Oo--)}function ko(e,t){Oo++,So[Oo]=e.current,e.current=t}var jo={},Co=_o(jo),Po=_o(!1),Ro=jo;function To(e,t){var r=e.type.contextTypes;if(!r)return jo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mo(){Eo(Po),Eo(Co)}function No(e,t,r){if(Co.current!==jo)throw Error(a(168));ko(Co,t),ko(Po,r)}function Lo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(a(108,U(e)||"Unknown",o));return F({},r,n)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Ro=Co.current,ko(Co,e),ko(Po,Po.current),!0}function zo(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Lo(e,t,Ro),n.__reactInternalMemoizedMergedChildContext=e,Eo(Po),Eo(Co),ko(Co,e)):Eo(Po),ko(Po,r)}var Do=null,Bo=!1,Vo=!1;function Wo(e){null===Do?Do=[e]:Do.push(e)}function Uo(){if(!Vo&&null!==Do){Vo=!0;var e=0,t=bt;try{var r=Do;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Do=null,Bo=!1}catch(o){throw null!==Do&&(Do=Do.slice(e+1)),Qe(Ze,Uo),o}finally{bt=t,Vo=!1}}return null}var qo=[],Ho=0,$o=null,Qo=0,Ko=[],Go=0,Xo=null,Yo=1,Jo="";function Zo(e,t){qo[Ho++]=Qo,qo[Ho++]=$o,$o=e,Qo=t}function ea(e,t,r){Ko[Go++]=Yo,Ko[Go++]=Jo,Ko[Go++]=Xo,Xo=e;var n=Yo;e=Jo;var o=32-it(n)-1;n&=~(1<<o),r+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Yo=1<<32-it(t)+o|r<<o|n,Jo=a+e}else Yo=1<<a|r<<o|n,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function ra(e){for(;e===$o;)$o=qo[--Ho],qo[Ho]=null,Qo=qo[--Ho],qo[Ho]=null;for(;e===Xo;)Xo=Ko[--Go],Ko[Go]=null,Jo=Ko[--Go],Ko[Go]=null,Yo=Ko[--Go],Ko[Go]=null}var na=null,oa=null,aa=!1,ia=null;function sa(e,t){var r=Tc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function la(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Xo?{id:Yo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Tc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,na=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var r=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(r.nextSibling);var n=na;t&&la(e,t)?sa(n,r):(e.flags=-4097&e.flags|2,aa=!1,na=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,na=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function pa(e){if(e!==na)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=na?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=na=null,aa=!1}function ha(e){null===ia?ia=[e]:ia.push(e)}var va=x.ReactCurrentBatchConfig;function ya(e,t){if(e&&e.defaultProps){for(var r in t=F({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ga=_o(null),ba=null,xa=null,wa=null;function Aa(){wa=xa=ba=null}function Sa(e){var t=ga.current;Eo(ga),e._currentValue=t}function Oa(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function _a(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(a(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var ka=null;function ja(e){null===ka?ka=[e]:ka.push(e)}function Ca(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,ja(t)):(r.next=o.next,o.next=r),t.interleaved=r,Pa(e,n)}function Pa(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Ra=!1;function Ta(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Cl)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Pa(e,r)}return null===(o=n.interleaved)?(t.next=t,ja(n)):(t.next=o.next,o.next=t),n.interleaved=t,Pa(e,r)}function La(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}function Fa(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function za(e,t,r,n){var o=e.updateQueue;Ra=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var p=s.lane,f=s.eventTime;if((n&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(p=t,f=r,h.tag){case 1:if("function"===typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(p="function"===typeof(m=h.payload)?m.call(f,d,p):m)||void 0===p)break e;d=F({},d,p);break e;case 2:Ra=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Fl|=i,e.lanes=i,e.memoizedState=d}}function Da(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(a(191,o));o.call(n)}}}var Ba=(new n.Component).refs;function Va(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:F({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Wa={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),a=Ma(n,o);a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Na(e,a,o))&&(nc(t,e,o,n),La(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),a=Ma(n,o);a.tag=1,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Na(e,a,o))&&(nc(t,e,o,n),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tc(),n=rc(e),o=Ma(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Na(e,o,n))&&(nc(t,e,n,r),La(t,e,n))}};function Ua(e,t,r,n,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(o,a))}function qa(e,t,r){var n=!1,o=jo,a=t.contextType;return"object"===typeof a&&null!==a?a=Ea(a):(o=Io(t)?Ro:Co.current,a=(n=null!==(n=t.contextTypes)&&void 0!==n)?To(e,o):jo),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function $a(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ba,Ta(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=Ea(a):(a=Io(t)?Ro:Co.current,o.context=To(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Va(e,t,a,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wa.enqueueReplaceState(o,o.state,null),za(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function Qa(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var o=n,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Xa(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=zc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){var a=r.type;return a===S?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===T&&Ga(a)===t.type)?((n=o(t,r.props)).ref=Qa(e,t,r),n.return=e,n):((n=Nc(r.type,r.key,r.props,null,e.mode,n)).ref=Qa(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Dc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,a){return null===t||7!==t.tag?((t=Lc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function p(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zc(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Nc(t.type,t.key,t.props,null,e.mode,r)).ref=Qa(e,null,t),r.return=e,r;case A:return(t=Dc(t,e.mode,r)).return=e,t;case T:return p(e,(0,t._init)(t._payload),r)}if(te(t)||N(t))return(t=Lc(t,e.mode,r,null)).return=e,t;Ka(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==o?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(e,t,r,n):null;case A:return r.key===o?u(e,t,r,n):null;case T:return f(e,t,(o=r._init)(r._payload),n)}if(te(r)||N(r))return null!==o?null:d(e,t,r,n,null);Ka(e,r)}return null}function m(e,t,r,n,o){if("string"===typeof n&&""!==n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case A:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case T:return m(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||N(n))return d(t,e=e.get(r)||null,n,o,null);Ka(t,n)}return null}function h(o,a,s,l){for(var c=null,u=null,d=a,h=a=0,v=null;null!==d&&h<s.length;h++){d.index>h?(v=d,d=null):v=d.sibling;var y=f(o,d,s[h],l);if(null===y){null===d&&(d=v);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,h),null===u?c=y:u.sibling=y,u=y,d=v}if(h===s.length)return r(o,d),aa&&Zo(o,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(o,s[h],l))&&(a=i(d,a,h),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,h),c}for(d=n(o,d);h<s.length;h++)null!==(v=m(d,o,h,s[h],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?h:v.key),a=i(v,a,h),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),c}function v(o,s,l,c){var u=N(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,h=s,v=s=0,y=null,g=l.next();null!==h&&!g.done;v++,g=l.next()){h.index>v?(y=h,h=null):y=h.sibling;var b=f(o,h,g.value,c);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(o,h),s=i(b,s,v),null===d?u=b:d.sibling=b,d=b,h=y}if(g.done)return r(o,h),aa&&Zo(o,v),u;if(null===h){for(;!g.done;v++,g=l.next())null!==(g=p(o,g.value,c))&&(s=i(g,s,v),null===d?u=g:d.sibling=g,d=g);return aa&&Zo(o,v),u}for(h=n(o,h);!g.done;v++,g=l.next())null!==(g=m(h,o,v,g.value,c))&&(e&&null!==g.alternate&&h.delete(null===g.key?v:g.key),s=i(g,s,v),null===d?u=g:d.sibling=g,d=g);return e&&h.forEach((function(e){return t(o,e)})),aa&&Zo(o,v),u}return function e(n,a,i,l){if("object"===typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){r(n,u.sibling),(a=o(u,i.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===T&&Ga(c)===u.type){r(n,u.sibling),(a=o(u,i.props)).ref=Qa(n,u,i),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}i.type===S?((a=Lc(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Nc(i.type,i.key,i.props,null,n.mode,l)).ref=Qa(n,a,i),l.return=n,n=l)}return s(n);case A:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Dc(i,n.mode,l)).return=n,n=a}return s(n);case T:return e(n,a,(u=i._init)(i._payload),l)}if(te(i))return h(n,a,i,l);if(N(i))return v(n,a,i,l);Ka(n,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=zc(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var Ya=Xa(!0),Ja=Xa(!1),Za={},ei=_o(Za),ti=_o(Za),ri=_o(Za);function ni(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(ko(ri,t),ko(ti,e),ko(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(ei),ko(ei,t)}function ai(){Eo(ei),Eo(ti),Eo(ri)}function ii(e){ni(ri.current);var t=ni(ei.current),r=le(t,e.type);t!==r&&(ko(ti,e),ko(ei,r))}function si(e){ti.current===e&&(Eo(ei),Eo(ti))}var li=_o(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=x.ReactCurrentDispatcher,fi=x.ReactCurrentBatchConfig,mi=0,hi=null,vi=null,yi=null,gi=!1,bi=!1,xi=0,wi=0;function Ai(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Oi(e,t,r,n,o,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=r(n,o),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(a(301));i+=1,yi=vi=null,t.updateQueue=null,pi.current=cs,e=r(n,o)}while(bi)}if(pi.current=is,t=null!==vi&&null!==vi.next,mi=0,yi=vi=hi=null,gi=!1,t)throw Error(a(300));return e}function _i(){var e=0!==xi;return xi=0,e}function Ei(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yi?hi.memoizedState=yi=e:yi=yi.next=e,yi}function ki(){if(null===vi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=vi.next;var t=null===yi?hi.memoizedState:yi.next;if(null!==t)yi=t,vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vi=e).memoizedState,baseState:vi.baseState,baseQueue:vi.baseQueue,queue:vi.queue,next:null},null===yi?hi.memoizedState=yi=e:yi=yi.next=e}return yi}function ji(e,t){return"function"===typeof t?t(e):t}function Ci(e){var t=ki(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=vi,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,n=n.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=n):c=c.next=p,hi.lanes|=d,Fl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(xs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,hi.lanes|=i,Fl|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Pi(e){var t=ki(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sn(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Ri(){}function Ti(e,t){var r=hi,n=ki(),o=t(),i=!sn(n.memoizedState,o);if(i&&(n.memoizedState=o,xs=!0),n=n.queue,qi(Ni.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||null!==yi&&1&yi.memoizedState.tag){if(r.flags|=2048,Di(9,Mi.bind(null,r,n,o,t),void 0,null),null===Pl)throw Error(a(349));0!==(30&mi)||Ii(r,t,o)}return o}function Ii(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Mi(e,t,r,n){t.value=r,t.getSnapshot=n,Li(t)&&Fi(e)}function Ni(e,t,r){return r((function(){Li(t)&&Fi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Fi(e){var t=Pa(e,1);null!==t&&nc(t,e,1,-1)}function zi(e){var t=Ei();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,hi,e),[t.memoizedState,e]}function Di(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Bi(){return ki().memoizedState}function Vi(e,t,r,n){var o=Ei();hi.flags|=e,o.memoizedState=Di(1|t,r,void 0,void 0===n?null:n)}function Wi(e,t,r,n){var o=ki();n=void 0===n?null:n;var a=void 0;if(null!==vi){var i=vi.memoizedState;if(a=i.destroy,null!==n&&Si(n,i.deps))return void(o.memoizedState=Di(t,r,a,n))}hi.flags|=e,o.memoizedState=Di(1|t,r,a,n)}function Ui(e,t){return Vi(8390656,8,e,t)}function qi(e,t){return Wi(2048,8,e,t)}function Hi(e,t){return Wi(4,2,e,t)}function $i(e,t){return Wi(4,4,e,t)}function Qi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Wi(4,4,Qi.bind(null,t,e),r)}function Gi(){}function Xi(e,t){var r=ki();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Si(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Yi(e,t){var r=ki();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Si(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ji(e,t,r){return 0===(21&mi)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=r):(sn(r,t)||(r=ht(),hi.lanes|=r,Fl|=r,e.baseState=!0),t)}function Zi(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=fi.transition;fi.transition={};try{e(!1),t()}finally{bt=r,fi.transition=n}}function es(){return ki().memoizedState}function ts(e,t,r){var n=rc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))os(t,r);else if(null!==(r=Ca(e,t,r,n))){nc(r,e,n,tc()),as(r,t,n)}}function rs(e,t,r){var n=rc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))os(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,i)){var l=t.interleaved;return null===l?(o.next=o,ja(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(r=Ca(e,t,o,n))&&(nc(r,e,n,o=tc()),as(r,t,n))}}function ns(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function os(e,t){bi=gi=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function as(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}var is={readContext:Ea,useCallback:Ai,useContext:Ai,useEffect:Ai,useImperativeHandle:Ai,useInsertionEffect:Ai,useLayoutEffect:Ai,useMemo:Ai,useReducer:Ai,useRef:Ai,useState:Ai,useDebugValue:Ai,useDeferredValue:Ai,useTransition:Ai,useMutableSource:Ai,useSyncExternalStore:Ai,useId:Ai,unstable_isNewReconciler:!1},ss={readContext:Ea,useCallback:function(e,t){return Ei().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:Ui,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Vi(4194308,4,Qi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vi(4,2,e,t)},useMemo:function(e,t){var r=Ei();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ei();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,hi,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Ei().memoizedState=e},useState:zi,useDebugValue:Gi,useDeferredValue:function(e){return Ei().memoizedState=e},useTransition:function(){var e=zi(!1),t=e[0];return e=Zi.bind(null,e[1]),Ei().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=hi,o=Ei();if(aa){if(void 0===r)throw Error(a(407));r=r()}else{if(r=t(),null===Pl)throw Error(a(349));0!==(30&mi)||Ii(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Ui(Ni.bind(null,n,i,e),[e]),n.flags|=2048,Di(9,Mi.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ei(),t=Pl.identifierPrefix;if(aa){var r=Jo;t=":"+t+"R"+(r=(Yo&~(1<<32-it(Yo)-1)).toString(32)+r),0<(r=xi++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ea,useCallback:Xi,useContext:Ea,useEffect:qi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:$i,useMemo:Yi,useReducer:Ci,useRef:Bi,useState:function(){return Ci(ji)},useDebugValue:Gi,useDeferredValue:function(e){return Ji(ki(),vi.memoizedState,e)},useTransition:function(){return[Ci(ji)[0],ki().memoizedState]},useMutableSource:Ri,useSyncExternalStore:Ti,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ea,useCallback:Xi,useContext:Ea,useEffect:qi,useImperativeHandle:Ki,useInsertionEffect:Hi,useLayoutEffect:$i,useMemo:Yi,useReducer:Pi,useRef:Bi,useState:function(){return Pi(ji)},useDebugValue:Gi,useDeferredValue:function(e){var t=ki();return null===vi?t.memoizedState=e:Ji(t,vi.memoizedState,e)},useTransition:function(){return[Pi(ji)[0],ki().memoizedState]},useMutableSource:Ri,useSyncExternalStore:Ti,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var r="",n=t;do{r+=V(n),n=n.return}while(n);var o=r}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ms(e,t,r){(r=Ma(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Hl||(Hl=!0,$l=n),ps(0,t)},r}function hs(e,t,r){(r=Ma(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ps(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(r.callback=function(){ps(0,t),"function"!==typeof n&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function vs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Ec.bind(null,e,t,r),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ma(-1,1)).tag=2,Na(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,r,n){t.child=null===e?Ja(t,null,r,n):Ya(t,e.child,r,n)}function As(e,t,r,n,o){r=r.render;var a=t.ref;return _a(t,o),n=Oi(e,t,r,n,a,o),r=_i(),null===e||xs?(aa&&r&&ta(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ss(e,t,r,n,o){if(null===e){var a=r.type;return"function"!==typeof a||Ic(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Nc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Os(e,t,a,n,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(i,n)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(a,n)).ref=t.ref,e.return=t,t.child=e}function Os(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(ln(a,n)&&e.ref===t.ref){if(xs=!1,t.pendingProps=n=a,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(xs=!0)}}return ks(e,t,r,n,o)}function _s(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ko(Ml,Il),Il|=r;else{if(0===(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ko(Ml,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,ko(Ml,Il),Il|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,ko(Ml,Il),Il|=n;return ws(e,t,o,r),t.child}function Es(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,r,n,o){var a=Io(r)?Ro:Co.current;return a=To(t,a),_a(t,o),r=Oi(e,t,r,n,a,o),n=_i(),null===e||xs?(aa&&n&&ta(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function js(e,t,r,n,o){if(Io(r)){var a=!0;Fo(t)}else a=!1;if(_a(t,o),null===t.stateNode)qs(e,t),qa(t,r,n),$a(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"===typeof c&&null!==c?c=Ea(c):c=To(t,c=Io(r)?Ro:Co.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ha(t,i,n,c),Ra=!1;var p=t.memoizedState;i.state=p,za(t,n,i,o),l=t.memoizedState,s!==n||p!==l||Po.current||Ra?("function"===typeof u&&(Va(t,r,u,n),l=t.memoizedState),(s=Ra||Ua(t,r,s,n,p,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Ia(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ya(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"===typeof(l=r.contextType)&&null!==l?l=Ea(l):l=To(t,l=Io(r)?Ro:Co.current);var f=r.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Ha(t,i,n,l),Ra=!1,p=t.memoizedState,i.state=p,za(t,n,i,o);var m=t.memoizedState;s!==d||p!==m||Po.current||Ra?("function"===typeof f&&(Va(t,r,f,n),m=t.memoizedState),(c=Ra||Ua(t,r,c,n,p,m,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return Cs(e,t,r,n,a,o)}function Cs(e,t,r,n,o,a){Es(e,t);var i=0!==(128&t.flags);if(!n&&!i)return o&&zo(t,r,!1),Hs(e,t,a);n=t.stateNode,bs.current=t;var s=i&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):ws(e,t,s,a),t.memoizedState=n.state,o&&zo(t,r,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?No(0,t.pendingContext,t.pendingContext!==t.context):t.context&&No(0,t.context,!1),oi(e,t.containerInfo)}function Rs(e,t,r,n,o){return ma(),ha(o),t.flags|=256,ws(e,t,r,n),t.child}var Ts,Is,Ms,Ns,Ls={dehydrated:null,treeContext:null,retryLane:0};function Fs(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var n,o=t.pendingProps,i=li.current,s=!1,l=0!==(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!==(2&i)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),ko(li,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Fc(l,o,0,null),e=Lc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Fs(r),t.memoizedState=Ls,e):Ds(t,l));if(null!==(i=e.memoizedState)&&null!==(n=i.dehydrated))return function(e,t,r,n,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,n=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Fc({mode:"visible",children:n.children},o,0,null),(i=Lc(i,o,s,null)).flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,0!==(1&t.mode)&&Ya(t,e.child,null,s),t.child.memoizedState=Fs(s),t.memoizedState=Ls,i);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Bs(e,t,s,n=ds(i=Error(a(419)),n,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(n=Pl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Pa(e,o),nc(n,e,o,-1))}return vc(),Bs(e,t,s,n=ds(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=jc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),na=t,aa=!0,ia=null,null!==e&&(Ko[Go++]=Yo,Ko[Go++]=Jo,Ko[Go++]=Xo,Yo=e.id,Jo=e.overflow,Xo=t),t=Ds(t,n.children),t.flags|=4096,t)}(e,t,l,o,n,i,r);if(s){s=o.fallback,l=t.mode,n=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==n?s=Mc(n,s):(s=Lc(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Fs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ls,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=Fc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,r,n){return null!==n&&ha(n),Ya(t,e.child,null,r),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Oa(e.return,t,r)}function Ws(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Us(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(ws(e,t,n.children,r),0!==(2&(n=li.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,r,t);else if(19===e.tag)Vs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ko(li,n),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ci(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Ws(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Ws(t,!0,r,null,a);break;case"together":Ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function $s(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ks(e,t,r){var n=t.pendingProps;switch(ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return Io(t.type)&&Mo(),Qs(t),null;case 3:return n=t.stateNode,ai(),Eo(Po),Eo(Co),di(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(sc(ia),ia=null))),Is(e,t),Qs(t),null;case 5:si(t);var o=ni(ri.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(a(166));return Qs(t),null}if(e=ni(ei.current),pa(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[fo]=t,n[mo]=i,e=0!==(1&t.mode),r){case"dialog":Dn("cancel",n),Dn("close",n);break;case"iframe":case"object":case"embed":Dn("load",n);break;case"video":case"audio":for(o=0;o<Nn.length;o++)Dn(Nn[o],n);break;case"source":Dn("error",n);break;case"img":case"image":case"link":Dn("error",n),Dn("load",n);break;case"details":Dn("toggle",n);break;case"input":X(n,i),Dn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Dn("invalid",n);break;case"textarea":oe(n,i),Dn("invalid",n)}for(var l in ge(r,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?n.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",c]):"number"===typeof c&&n.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Dn("scroll",n)}switch(r){case"input":$(n),Z(n,i,!0);break;case"textarea":$(n),ie(n);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(n.onclick=Zn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[fo]=t,e[mo]=n,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,n),r){case"dialog":Dn("cancel",e),Dn("close",e),o=n;break;case"iframe":case"object":case"embed":Dn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Nn.length;o++)Dn(Nn[o],e);o=n;break;case"source":Dn("error",e),o=n;break;case"img":case"image":case"link":Dn("error",e),Dn("load",e),o=n;break;case"details":Dn("toggle",e),o=n;break;case"input":X(e,n),o=G(e,n),Dn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=F({},n,{value:void 0}),Dn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Dn("invalid",e)}for(i in ge(r,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ve(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==r||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Dn("scroll",e):null!=u&&b(e,i,u,l))}switch(r){case"input":$(e),Z(e,n,!1);break;case"textarea":$(e),ie(e);break;case"option":null!=n.value&&e.setAttribute("value",""+q(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?re(e,!!n.multiple,i,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Zn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(a(166));if(r=ni(ri.current),ni(ei.current),pa(t)){if(n=t.stateNode,r=t.memoizedProps,n[fo]=t,(i=n.nodeValue!==r)&&null!==(e=na))switch(e.tag){case 3:Jn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,0!==(1&e.mode))}i&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[fo]=t,t.stateNode=n}return Qs(t),null;case 13:if(Eo(li),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),i=!1}else null!==ia&&(sc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&li.current)?0===Nl&&(Nl=3):vc())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return ai(),Is(e,t),null===e&&Wn(t.stateNode.containerInfo),Qs(t),null;case 10:return Sa(t.type._context),Qs(t),null;case 19:if(Eo(li),null===(i=t.memoizedState))return Qs(t),null;if(n=0!==(128&t.flags),null===(l=i.rendering))if(n)$s(i,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,$s(i,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(i=r).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ko(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ye()>Ul&&(t.flags|=128,n=!0,$s(i,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ci(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),$s(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Qs(t),null}else 2*Ye()-i.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,n=!0,$s(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=i.last)?r.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,r=li.current,ko(li,n?1&r|2:1&r),t):(Qs(t),null);case 22:case 23:return pc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Il)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gs(e,t){switch(ra(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Eo(Po),Eo(Co),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Eo(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(li),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Ts=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Is=function(){},Ms=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ni(ei.current);var a,i=null;switch(r){case"input":o=G(e,o),n=G(e,n),i=[];break;case"select":o=F({},o,{value:void 0}),n=F({},n,{value:void 0}),i=[];break;case"textarea":o=ne(e,o),n=ne(e,n),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof n.onClick&&(e.onclick=Zn)}for(u in ge(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Dn("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,r,n){r!==n&&(t.flags|=4)};var Xs=!1,Ys=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){_c(e,t,n)}else r.current=null}function tl(e,t,r){try{r()}catch(n){_c(e,t,n)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tl(t,r,a)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function al(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[vo],delete t[yo],delete t[go])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Zn));else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}var dl=null,pl=!1;function fl(e,t,r){for(r=r.child;null!==r;)ml(e,t,r),r=r.sibling}function ml(e,t,r){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,r)}catch(s){}switch(r.tag){case 5:Ys||el(r,t);case 6:var n=dl,o=pl;dl=null,fl(e,t,r),pl=o,null!==(dl=n)&&(pl?(e=dl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(pl?(e=dl,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),Wt(e)):lo(dl,r.stateNode));break;case 4:n=dl,o=pl,dl=r.stateNode.containerInfo,pl=!0,fl(e,t,r),dl=n,pl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&tl(r,t,i),o=o.next}while(o!==n)}fl(e,t,r);break;case 1:if(!Ys&&(el(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){_c(r,t,s)}fl(e,t,r);break;case 21:fl(e,t,r);break;case 22:1&r.mode?(Ys=(n=Ys)||null!==r.memoizedState,fl(e,t,r),Ys=n):fl(e,t,r);break;default:fl(e,t,r)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Cc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function vl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,pl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));ml(i,s,o),dl=null,pl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){_c(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vl(t,e),gl(e),4&n){try{nl(3,e,e.return),ol(3,e)}catch(v){_c(e,e.return,v)}try{nl(5,e,e.return)}catch(v){_c(e,e.return,v)}}break;case 1:vl(t,e),gl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(vl(t,e),gl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(v){_c(e,e.return,v)}}if(4&n&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&Y(o,i),be(l,s);var u=be(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ve(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):b(o,d,p,u)}switch(l){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?re(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?re(o,!!i.multiple,i.defaultValue,!0):re(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(v){_c(e,e.return,v)}}break;case 6:if(vl(t,e),gl(e),4&n){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){_c(e,e.return,v)}}break;case 3:if(vl(t,e),gl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(v){_c(e,e.return,v)}break;case 4:default:vl(t,e),gl(e);break;case 13:vl(t,e),gl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Wl=Ye())),4&n&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ys=(u=Ys)||d,vl(t,e),Ys=u):vl(t,e),gl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(m=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:el(f,f.return);var h=f.stateNode;if("function"===typeof h.componentWillUnmount){n=f,r=f.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(v){_c(n,r,v)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){Al(p);continue}}null!==m?(m.return=f,Zs=m):Al(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(v){_c(e,e.return,v)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(v){_c(e,e.return,v)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:vl(t,e),gl(e),4&n&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(pe(o,""),n.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var i=n.stateNode.containerInfo;cl(e,ll(e),i);break;default:throw Error(a(161))}}catch(s){_c(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Zs=e,xl(e,t,r)}function xl(e,t,r){for(var n=0!==(1&e.mode);null!==Zs;){var o=Zs,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Xs;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var c=Ys;if(Xs=i,(Ys=l)&&!c)for(Zs=o;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?Sl(o):null!==l?(l.return=i,Zs=l):Sl(o);for(;null!==a;)Zs=a,xl(a,t,r),a=a.sibling;Zs=o,Xs=s,Ys=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zs=a):wl(e)}}function wl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||ol(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ys)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ya(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Da(t,i,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Da(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Wt(p)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&al(t)}catch(f){_c(t,t.return,f)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function Al(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Zs=r;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(l){_c(t,r,l)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(l){_c(t,o,l)}}var a=t.return;try{al(t)}catch(l){_c(t,a,l)}break;case 5:var i=t.return;try{al(t)}catch(l){_c(t,i,l)}}}catch(l){_c(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Ol,_l=Math.ceil,El=x.ReactCurrentDispatcher,kl=x.ReactCurrentOwner,jl=x.ReactCurrentBatchConfig,Cl=0,Pl=null,Rl=null,Tl=0,Il=0,Ml=_o(0),Nl=0,Ll=null,Fl=0,zl=0,Dl=0,Bl=null,Vl=null,Wl=0,Ul=1/0,ql=null,Hl=!1,$l=null,Ql=null,Kl=!1,Gl=null,Xl=0,Yl=0,Jl=null,Zl=-1,ec=0;function tc(){return 0!==(6&Cl)?Ye():-1!==Zl?Zl:Zl=Ye()}function rc(e){return 0===(1&e.mode)?1:0!==(2&Cl)&&0!==Tl?Tl&-Tl:null!==va.transition?(0===ec&&(ec=ht()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,r,n){if(50<Yl)throw Yl=0,Jl=null,Error(a(185));yt(e,r,n),0!==(2&Cl)&&e===Pl||(e===Pl&&(0===(2&Cl)&&(zl|=r),4===Nl&&lc(e,Tl)),oc(e,n),1===r&&0===Cl&&0===(1&t.mode)&&(Ul=Ye()+500,Bo&&Uo()))}function oc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&r)&&0===(s&n)||(o[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=pt(e,e===Pl?Tl:0);if(0===n)null!==r&&Ke(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ke(r),1===t)0===e.tag?function(e){Bo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),io((function(){0===(6&Cl)&&Uo()})),r=null;else{switch(xt(n)){case 1:r=Ze;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Pc(r,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ac(e,t){if(Zl=-1,ec=0,0!==(6&Cl))throw Error(a(327));var r=e.callbackNode;if(Sc()&&e.callbackNode!==r)return null;var n=pt(e,e===Pl?Tl:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=yc(e,n);else{t=n;var o=Cl;Cl|=2;var i=hc();for(Pl===e&&Tl===t||(ql=null,Ul=Ye()+500,fc(e,t));;)try{bc();break}catch(l){mc(e,l)}Aa(),El.current=i,Cl=o,null!==Rl?t=0:(Pl=null,Tl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=mt(e))&&(n=o,t=ic(e,o))),1===t)throw r=Ll,fc(e,0),lc(e,n),oc(e,Ye()),r;if(6===t)lc(e,n);else{if(o=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!sn(a(),o))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yc(e,n))&&(0!==(i=mt(e))&&(n=i,t=ic(e,i))),1===t))throw r=Ll,fc(e,0),lc(e,n),oc(e,Ye()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:case 5:Ac(e,Vl,ql);break;case 3:if(lc(e,n),(130023424&n)===n&&10<(t=Wl+500-Ye())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(Ac.bind(null,e,Vl,ql),t);break}Ac(e,Vl,ql);break;case 4:if(lc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-it(n);i=1<<s,(s=t[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Ye()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_l(n/1960))-n)){e.timeoutHandle=no(Ac.bind(null,e,Vl,ql),n);break}Ac(e,Vl,ql);break;default:throw Error(a(329))}}}return oc(e,Ye()),e.callbackNode===r?ac.bind(null,e):null}function ic(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Vl,Vl=r,null!==t&&sc(t)),e}function sc(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function lc(e,t){for(t&=~Dl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-it(t),n=1<<r;e[r]=-1,t&=~n}}function cc(e){if(0!==(6&Cl))throw Error(a(327));Sc();var t=pt(e,0);if(0===(1&t))return oc(e,Ye()),null;var r=yc(e,t);if(0!==e.tag&&2===r){var n=mt(e);0!==n&&(t=n,r=ic(e,n))}if(1===r)throw r=Ll,fc(e,0),lc(e,t),oc(e,Ye()),r;if(6===r)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e,Vl,ql),oc(e,Ye()),null}function uc(e,t){var r=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=r)&&(Ul=Ye()+500,Bo&&Uo())}}function dc(e){null!==Gl&&0===Gl.tag&&0===(6&Cl)&&Sc();var t=Cl;Cl|=1;var r=jl.transition,n=bt;try{if(jl.transition=null,bt=1,e)return e()}finally{bt=n,jl.transition=r,0===(6&(Cl=t))&&Uo()}}function pc(){Il=Ml.current,Eo(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==Rl)for(r=Rl.return;null!==r;){var n=r;switch(ra(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Mo();break;case 3:ai(),Eo(Po),Eo(Co),di();break;case 5:si(n);break;case 4:ai();break;case 13:case 19:Eo(li);break;case 10:Sa(n.type._context);break;case 22:case 23:pc()}r=r.return}if(Pl=e,Rl=e=Mc(e.current,null),Tl=Il=t,Nl=0,Ll=null,Dl=zl=Fl=0,Vl=Bl=null,null!==ka){for(t=0;t<ka.length;t++)if(null!==(n=(r=ka[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}ka=null}return e}function mc(e,t){for(;;){var r=Rl;try{if(Aa(),pi.current=is,gi){for(var n=hi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}gi=!1}if(mi=0,yi=vi=hi=null,bi=!1,xi=0,kl.current=null,null===r||null===r.return){Nl=1,Ll=t,Rl=null;break}e:{var i=e,s=r.return,l=r,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ys(s);if(null!==m){m.flags&=-257,gs(m,s,l,0,t),1&m.mode&&vs(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(c),t.updateQueue=v}else h.add(c);break e}if(0===(1&t)){vs(i,u,t),vc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var y=ys(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),gs(y,s,l,0,t),ha(us(c,l));break e}}i=c=us(c,l),4!==Nl&&(Nl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,ms(0,c,t));break e;case 1:l=c;var g=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Ql||!Ql.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Fa(i,hs(i,l,t));break e}}i=i.return}while(null!==i)}wc(r)}catch(x){t=x,Rl===r&&null!==r&&(Rl=r=r.return);continue}break}}function hc(){var e=El.current;return El.current=is,null===e?is:e}function vc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Pl||0===(268435455&Fl)&&0===(268435455&zl)||lc(Pl,Tl)}function yc(e,t){var r=Cl;Cl|=2;var n=hc();for(Pl===e&&Tl===t||(ql=null,fc(e,t));;)try{gc();break}catch(o){mc(e,o)}if(Aa(),Cl=r,El.current=n,null!==Rl)throw Error(a(261));return Pl=null,Tl=0,Nl}function gc(){for(;null!==Rl;)xc(Rl)}function bc(){for(;null!==Rl&&!Ge();)xc(Rl)}function xc(e){var t=Ol(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wc(e):Rl=t,kl.current=null}function wc(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Ks(r,t,Il)))return void(Rl=r)}else{if(null!==(r=Gs(r,t)))return r.flags&=32767,void(Rl=r);if(null===e)return Nl=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Nl&&(Nl=5)}function Ac(e,t,r){var n=bt,o=jl.transition;try{jl.transition=null,bt=1,function(e,t,r,n){do{Sc()}while(null!==Gl);if(0!==(6&Cl))throw Error(a(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-it(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,i),e===Pl&&(Rl=Pl=null,Tl=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Kl||(Kl=!0,Pc(tt,(function(){return Sc(),null}))),i=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||i){i=jl.transition,jl.transition=null;var s=bt;bt=1;var l=Cl;Cl|=4,kl.current=null,function(e,t){if(eo=qt,fn(e=pn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(w){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==r||0!==o&&3!==p.nodeType||(l=s+o),p!==i||0!==n&&3!==p.nodeType||(c=s+n),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===r&&++u===o&&(l=s),f===i&&++d===n&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},qt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var h=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var v=h.memoizedProps,y=h.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:ya(t.type,v),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}h=rl,rl=!1}(e,r),yl(r,e),mn(to),qt=!!eo,to=eo=null,e.current=r,bl(r,e,o),Xe(),Cl=l,bt=s,jl.transition=i}else e.current=r;if(Kl&&(Kl=!1,Gl=e,Xl=o),i=e.pendingLanes,0===i&&(Ql=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),oc(e,Ye()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=$l,$l=null,e;0!==(1&Xl)&&0!==e.tag&&Sc(),i=e.pendingLanes,0!==(1&i)?e===Jl?Yl++:(Yl=0,Jl=e):Yl=0,Uo()}(e,t,r,n)}finally{jl.transition=o,bt=n}return null}function Sc(){if(null!==Gl){var e=xt(Xl),t=jl.transition,r=bt;try{if(jl.transition=null,bt=16>e?16:e,null===Gl)var n=!1;else{if(e=Gl,Gl=null,Xl=0,0!==(6&Cl))throw Error(a(331));var o=Cl;for(Cl|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(0!==(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,m=d.return;if(il(d),d===u){Zs=null;break}if(null!==f){f.return=m,Zs=f;break}Zs=m}}}var h=i.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(null!==v)}}Zs=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,Zs=g;break e}Zs=i.return}}var b=e.current;for(Zs=b;null!==Zs;){var x=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,Zs=x;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(A){_c(l,l.return,A)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(Cl=o,Uo(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(A){}n=!0}return n}finally{bt=r,jl.transition=t}}return!1}function Oc(e,t,r){e=Na(e,t=ms(0,t=us(r,t),1),1),t=tc(),null!==e&&(yt(e,1,t),oc(e,t))}function _c(e,t,r){if(3===e.tag)Oc(e,e,r);else for(;null!==t;){if(3===t.tag){Oc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Ql||!Ql.has(n))){t=Na(t,e=hs(t,e=us(r,e),1),1),e=tc(),null!==t&&(yt(t,1,e),oc(t,e));break}}t=t.return}}function Ec(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&r,Pl===e&&(Tl&r)===r&&(4===Nl||3===Nl&&(130023424&Tl)===Tl&&500>Ye()-Wl?fc(e,0):Dl|=r),oc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=tc();null!==(e=Pa(e,t))&&(yt(e,t,r),oc(e,r))}function jc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),kc(e,r)}function Cc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(t),kc(e,r)}function Pc(e,t){return Qe(e,t)}function Rc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,r,n){return new Rc(e,t,r,n)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var r=e.alternate;return null===r?((r=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Nc(e,t,r,n,o,i){var s=2;if(n=e,"function"===typeof e)Ic(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Lc(r.children,o,i,t);case O:s=8,o|=8;break;case _:return(e=Tc(12,r,t,2|o)).elementType=_,e.lanes=i,e;case C:return(e=Tc(13,r,t,o)).elementType=C,e.lanes=i,e;case P:return(e=Tc(19,r,t,o)).elementType=P,e.lanes=i,e;case I:return Fc(r,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case k:s=9;break e;case j:s=11;break e;case R:s=14;break e;case T:s=16,n=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Tc(s,r,t,o)).elementType=e,t.type=n,t.lanes=i,t}function Lc(e,t,r,n){return(e=Tc(7,e,n,t)).lanes=r,e}function Fc(e,t,r,n){return(e=Tc(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function zc(e,t,r){return(e=Tc(6,e,null,t)).lanes=r,e}function Dc(e,t,r){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vc(e,t,r,n,o,a,i,s,l){return e=new Bc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Tc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(a),e}function Wc(e){if(!e)return jo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var r=e.type;if(Io(r))return Lo(e,r,t)}return t}function Uc(e,t,r,n,o,a,i,s,l){return(e=Vc(r,n,!0,e,0,a,0,s,l)).context=Wc(null),r=e.current,(a=Ma(n=tc(),o=rc(r))).callback=void 0!==t&&null!==t?t:null,Na(r,a,o),e.current.lanes=o,yt(e,o,n),oc(e,n),e}function qc(e,t,r,n){var o=t.current,a=tc(),i=rc(o);return r=Wc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ma(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Na(o,t,i))&&(nc(e,o,i,a),La(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Qc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}Ol=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)xs=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return xs=!1,function(e,t,r){switch(t.tag){case 3:Ps(t),ma();break;case 5:ii(t);break;case 1:Io(t.type)&&Fo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ko(ga,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(ko(li,1&li.current),t.flags|=128,null):0!==(r&t.child.childLanes)?zs(e,t,r):(ko(li,1&li.current),null!==(e=Hs(e,t,r))?e.sibling:null);ko(li,1&li.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Us(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ko(li,li.current),n)break;return null;case 22:case 23:return t.lanes=0,_s(e,t,r)}return Hs(e,t,r)}(e,t,r);xs=0!==(131072&e.flags)}else xs=!1,aa&&0!==(1048576&t.flags)&&ea(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qs(e,t),e=t.pendingProps;var o=To(t,Co.current);_a(t,r),o=Oi(null,t,n,e,o,r);var i=_i();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(n)?(i=!0,Fo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ta(t),o.updater=Wa,t.stateNode=o,o._reactInternals=t,$a(t,n,e,r),t=Cs(null,t,n,!0,i,r)):(t.tag=0,aa&&i&&ta(t),ws(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"===typeof e)return Ic(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===R)return 14}return 2}(n),e=ya(n,e),o){case 0:t=ks(null,t,n,e,r);break e;case 1:t=js(null,t,n,e,r);break e;case 11:t=As(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,ya(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,ks(e,t,n,o=t.elementType===n?o:ya(n,o),r);case 1:return n=t.type,o=t.pendingProps,js(e,t,n,o=t.elementType===n?o:ya(n,o),r);case 3:e:{if(Ps(t),null===e)throw Error(a(387));n=t.pendingProps,o=(i=t.memoizedState).element,Ia(e,t),za(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Rs(e,t,n,r,o=us(Error(a(423)),t));break e}if(n!==o){t=Rs(e,t,n,r,o=us(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),na=t,aa=!0,ia=null,r=Ja(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ma(),n===o){t=Hs(e,t,r);break e}ws(e,t,n,r)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==i&&ro(n,i)&&(t.flags|=32),Es(e,t),ws(e,t,s,r),t.child;case 6:return null===e&&ua(t),null;case 13:return zs(e,t,r);case 4:return oi(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ya(t,null,n,r):ws(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,As(e,t,n,o=t.elementType===n?o:ya(n,o),r);case 7:return ws(e,t,t.pendingProps,r),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ko(ga,n._currentValue),n._currentValue=s,null!==i)if(sn(i.value,s)){if(i.children===o.children&&!Po.current){t=Hs(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===i.tag){(c=Ma(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Oa(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Oa(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,_a(t,r),n=n(o=Ea(o)),t.flags|=1,ws(e,t,n,r),t.child;case 14:return o=ya(n=t.type,t.pendingProps),Ss(e,t,n,o=ya(n.type,o),r);case 15:return Os(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ya(n,o),qs(e,t),t.tag=1,Io(n)?(e=!0,Fo(t)):e=!1,_a(t,r),qa(t,n,o),$a(t,n,o,r),Cs(null,t,n,!0,e,r);case 19:return Us(e,t,r);case 22:return _s(e,t,r)}throw Error(a(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"===typeof o){var s=o;o=function(){var e=Hc(i);s.call(e)}}qc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"===typeof n){var a=n;n=function(){var e=Hc(i);a.call(e)}}var i=Uc(t,n,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[ho]=i.current,Wn(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof n){var s=n;n=function(){var e=Hc(l);s.call(e)}}var l=Vc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[ho]=l.current,Wn(8===e.nodeType?e.parentNode:e),dc((function(){qc(t,l,r,n)})),l}(r,t,e,o,n);return Hc(i)}Xc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));qc(e,t,null,null)},Xc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){qc(null,e,null,null)})),t[ho]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var r=0;r<It.length&&0!==t&&t<It[r].priority;r++);It.splice(r,0,e),0===r&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(gt(t,1|r),oc(t,Ye()),0===(6&Cl)&&(Ul=Ye()+500,Uo()))}break;case 13:dc((function(){var t=Pa(e,1);if(null!==t){var r=tc();nc(t,e,1,r)}})),Qc(e,1)}},At=function(e){if(13===e.tag){var t=Pa(e,134217728);if(null!==t)nc(t,e,134217728,tc());Qc(e,134217728)}},St=function(e){if(13===e.tag){var t=rc(e),r=Pa(e,t);if(null!==r)nc(r,e,t,tc());Qc(e,t)}},Ot=function(){return bt},_t=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},Ae=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Ao(n);if(!o)throw Error(a(90));Q(n),J(n,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},je=uc,Ce=dc;var tu={usingClientEntryPoint:!1,Events:[xo,wo,Ao,Ee,ke,uc]},ru={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(nu),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var r=!1,n="",o=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Vc(e,1,!1,null,0,r,0,n,o),e[ho]=t.current,Wn(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,r){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Yc(e))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,o=!1,i="",s=Kc;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uc(t,null,e,1,null!=r?r:null,o,0,i,s),e[ho]=t.current,Wn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Xc(t)},t.render=function(e,t,r){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jc(r))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},4391:(e,t,r)=>{"use strict";var n=r(7950);t.H=n.createRoot,n.hydrateRoot},7950:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(2730)},9177:function(e,t,r){!function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,r){return!Object.is(e,t[r])}))},s={error:null},l=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}a(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var r=t.prototype;return r.reset=function(){this.setState(s)},r.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},r.componentDidUpdate=function(e,t){var r,n,o=this.state.error,a=this.props.resetKeys;null!==o&&null!==t.error&&i(e.resetKeys,a)&&(null==(r=(n=this.props).onResetKeysChange)||r.call(n,e.resetKeys,a),this.reset())},r.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent,a=t.fallback;if(null!==e){var i={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(a))return a;if("function"===typeof r)return r(i);if(o)return n.createElement(o,i);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);function c(e,t){var r=function(r){return n.createElement(l,t,n.createElement(e,r))},o=e.displayName||e.name||"Unknown";return r.displayName="withErrorBoundary("+o+")",r}function u(e){var t=n.useState(null),r=t[0],o=t[1];if(null!=e)throw e;if(null!=r)throw r;return o}e.ErrorBoundary=l,e.useErrorHandler=u,e.withErrorBoundary=c,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(5043))},5082:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case h:case m:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=m,t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}},2086:(e,t,r)=>{"use strict";e.exports=r(5082)},244:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(5540),o=r(1422),a=r(8870),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.S$&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.A)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.Q))},5819:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.E,hashQueryKey:()=>a.Od,notifyManager:()=>o.j});var n=r(7646),o=r(1991),a=r(8870),i=r(4298);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},75:(e,t,r)=>{"use strict";r.d(t,{B:()=>a,t:()=>o});var n=console;function o(){return n}function a(e){n=e}},5964:(e,t,r)=>{"use strict";r.d(t,{$:()=>c,s:()=>l});var n=r(8168),o=r(75),a=r(1991),i=r(8990),s=r(8870),l=function(){function e(e){this.options=(0,n.A)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.lQ).catch(s.lQ)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.t)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new i.eJ({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.A)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.A)({},e,{isPaused:!0});case"continue":return(0,n.A)({},e,{isPaused:!1});case"loading":return(0,n.A)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.A)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.A)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.A)({},e,t.state);default:return e}}(this.state,e),a.j.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},1991:(e,t,r)=>{"use strict";r.d(t,{j:()=>o});var n=r(8870),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.G6)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.schedule((function(){e.apply(void 0,n)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n.G6)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},6317:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n=r(5540),o=r(1422),a=r(8870),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.S$&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.A)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(o.Q))},7646:(e,t,r)=>{"use strict";r.d(t,{E:()=>g});var n=r(8168),o=r(8870),a=r(5540),i=r(1991),s=r(75),l=r(8990),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.A)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,a=this.state.data,i=(0,o.Zw)(e,a);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,a,i))?i=a:!1!==this.options.structuralSharing&&(i=(0,o.BH)(a,i)),this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),i},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(o.lQ).catch(o.lQ):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.j3)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,a,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,o.HN)(this.queryKey),p=(0,o.jY)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return i.abortSignalConsumed=!0,p.signal}});var m,h,v={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(m=this.options.behavior)||m.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=v.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(h=v.fetchOptions)?void 0:h.meta});return this.retryer=new l.eJ({fn:v.fetchFn,abort:null==p||null==(a=p.abort)?void 0:a.bind(p),onSuccess:function(e){i.setData(e),null==i.cache.config.onSuccess||i.cache.config.onSuccess(e,i),0===i.cacheTime&&i.optionalRemove()},onError:function(e){(0,l.wm)(e)&&e.silent||i.dispatch({type:"error",error:e}),(0,l.wm)(e)||(null==i.cache.config.onError||i.cache.config.onError(e,i),(0,s.t)().error(e)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),i.j.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,o;switch(t.type){case"failed":return(0,n.A)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.A)({},e,{isPaused:!0});case"continue":return(0,n.A)({},e,{isPaused:!1});case"fetch":return(0,n.A)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.A)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=t.error;return(0,l.wm)(a)&&a.revert&&this.revertState?(0,n.A)({},this.revertState):(0,n.A)({},e,{error:a,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.A)({},e,{isInvalidated:!0});case"setState":return(0,n.A)({},e,t.state);default:return e}},e}(),u=r(1422),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,a.A)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,a=t.queryKey,i=null!=(n=t.queryHash)?n:(0,o.F$)(a,t),s=this.get(i);return s||(s=new c({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;i.j.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,o.b_)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,o.MK)(r,e)}))},r.findAll=function(e,t){var r=(0,o.b_)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,o.MK)(r,e)})):this.queries},r.notify=function(e){var t=this;i.j.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;i.j.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;i.j.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.Q),p=r(5964),f=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,a.A)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new p.s({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;i.j.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.nJ)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,o.nJ)(e,t)}))},r.notify=function(e){var t=this;i.j.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.j.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.lQ)}))}),Promise.resolve())}))},t}(u.Q),m=r(244),h=r(6317);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function y(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var g=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=m.m.subscribe((function(){m.m.isFocused()&&h.t.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=h.t.subscribe((function(){m.m.isFocused()&&h.t.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,o.b_)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.A)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,o.vh)(e),a=this.defaultQueryOptions(n);return this.queryCache.build(this,a).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return i.j.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,n.setQueryData(o,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,o.b_)(e,t)[0],n=this.queryCache;i.j.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var a=this,s=(0,o.b_)(e,t,r),l=s[0],c=s[1],u=this.queryCache,d=(0,n.A)({},l,{active:!0});return i.j.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),a.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,r){var n=this,a=(0,o.b_)(e,t,r),s=a[0],l=a[1],c=void 0===l?{}:l;"undefined"===typeof c.revert&&(c.revert=!0);var u=i.j.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(o.lQ).catch(o.lQ)},t.invalidateQueries=function(e,t,r){var a,s,l,c=this,u=(0,o.b_)(e,t,r),d=u[0],p=u[1],f=(0,n.A)({},d,{active:null==(a=null!=(s=d.refetchActive)?s:d.active)||a,inactive:null!=(l=d.refetchInactive)&&l});return i.j.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,r){var a=this,s=(0,o.b_)(e,t,r),l=s[0],c=s[1],u=i.j.batch((function(){return a.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,n.A)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(o.lQ);return(null==c?void 0:c.throwOnError)||(d=d.catch(o.lQ)),d},t.fetchQuery=function(e,t,r){var n=(0,o.vh)(e,t,r),a=this.defaultQueryOptions(n);"undefined"===typeof a.retry&&(a.retry=!1);var i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(o.lQ).catch(o.lQ)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,o.vh)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,a,i,s,c,u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(a=n.meta)?void 0:a.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),m="backward"===(null==d?void 0:d.direction),h=(null==(i=e.state.data)?void 0:i.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o.jY)(),x=null==b?void 0:b.signal,w=g,A=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,r,n){return w=n?[t].concat(w):[].concat(w,[t]),n?[r].concat(e):[].concat(e,[r])},_=function(t,r,n,o){if(A)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:x,pageParam:n,meta:e.meta},i=S(a),s=Promise.resolve(i).then((function(e){return O(t,n,e,o)}));return(0,l.dd)(i)&&(s.cancel=i.cancel),s};if(h.length)if(f){var E="undefined"!==typeof p,k=E?p:v(e.options,h);c=_(h,E,k)}else if(m){var j="undefined"!==typeof p,C=j?p:y(e.options,h);c=_(h,j,C,!0)}else!function(){w=[];var t="undefined"===typeof e.options.getNextPageParam,r=!u||!h[0]||u(h[0],0,h);c=r?_([],t,g[0]):Promise.resolve(O([],g[0],h[0]));for(var n=function(r){c=c.then((function(n){if(!u||!h[r]||u(h[r],r,h)){var o=t?g[r]:v(e.options,n);return _(n,t,o)}return Promise.resolve(O(n,g[r],h[r]))}))},o=1;o<h.length;o++)n(o)}();else c=_([]);var P=c.then((function(e){return{pages:e,pageParams:w}}));return P.cancel=function(){A=!0,null==b||b.abort(),(0,l.dd)(c)&&c.cancel()},P}}},this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(o.lQ).catch(o.lQ)},t.cancelMutations=function(){var e=this,t=i.j.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.lQ).catch(o.lQ)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find((function(t){return(0,o.Od)(e)===(0,o.Od)(t.queryKey)}));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.Cp)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find((function(t){return(0,o.Od)(e)===(0,o.Od)(t.mutationKey)}));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.Cp)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.A)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.F$)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.A)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},8990:(e,t,r)=>{"use strict";r.d(t,{dd:()=>s,eJ:()=>u,wm:()=>c});var n=r(244),o=r(6317),a=r(8870);function i(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,r,c,u,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),c(t))},m=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(h){u=Promise.reject(h)}t=function(e){if(!d.isResolved&&(m(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(l=e.retryDelay)?l:i,h="function"===typeof f?f(d.failureCount,t):f,v=!0===u||"number"===typeof u&&d.failureCount<u||"function"===typeof u&&u(d.failureCount,t);!p&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,a.yy)(h).then((function(){if(!n.m.isFocused()||!o.t.isOnline())return new Promise((function(t){r=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){r=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?m(t):c()}))):m(t)}}))}}()}},1422:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},4298:()=>{},8870:(e,t,r)=>{"use strict";r.d(t,{BH:()=>b,Cp:()=>y,F$:()=>h,G6:()=>_,GR:()=>d,HN:()=>l,MK:()=>f,Od:()=>v,S$:()=>o,Zw:()=>i,b_:()=>p,f8:()=>x,gn:()=>s,j3:()=>c,jY:()=>E,lQ:()=>a,nJ:()=>m,vh:()=>u,yy:()=>O});var n=r(8168),o="undefined"===typeof window;function a(){}function i(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return S(e)?"function"===typeof t?(0,n.A)({},r,{queryKey:e,queryFn:t}):(0,n.A)({},t,{queryKey:e}):e}function d(e,t,r){return S(e)?"function"===typeof t?(0,n.A)({},r,{mutationKey:e,mutationFn:t}):(0,n.A)({},t,{mutationKey:e}):"function"===typeof e?(0,n.A)({},t,{mutationFn:e}):(0,n.A)({},e)}function p(e,t,r){return S(e)?[(0,n.A)({},t,{queryKey:e}),r]:[e||{},t]}function f(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,l=e.stale;if(S(s))if(n){if(t.queryHash!==h(s,t.options))return!1}else if(!y(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,a);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(i&&!i(t)))}function m(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(S(a)){if(!t.options.mutationKey)return!1;if(r){if(v(t.options.mutationKey)!==v(a))return!1}else if(!y(t.options.mutationKey,a))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(o&&!o(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,r=l(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function y(e,t){return g(l(e),l(t))}function g(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!g(e[r],t[r])})))}function b(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,l=0;l<a;l++){var c=r?l:o[l];i[c]=b(e[c],t[c]),i[c]===e[c]&&s++}return n===a&&s===n?e:i}return t}function x(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function w(e){if(!A(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var r=t.prototype;return!!A(r)&&!!r.hasOwnProperty("isPrototypeOf")}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return"string"===typeof e||Array.isArray(e)}function O(e){return new Promise((function(t){setTimeout(t,e)}))}function _(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function E(){if("function"===typeof AbortController)return new AbortController}},2907:(e,t,r)=>{"use strict";r.d(t,{QueryClient:()=>n.QueryClient,QueryClientProvider:()=>o.QueryClientProvider,hashQueryKey:()=>n.hashQueryKey,notifyManager:()=>n.notifyManager,useMutation:()=>o.useMutation,useQuery:()=>o.useQuery,useQueryClient:()=>o.useQueryClient});var n=r(5819);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var o=r(6490)},6490:(e,t,r)=>{"use strict";r.d(t,{QueryClientProvider:()=>p,useMutation:()=>x,useQuery:()=>R,useQueryClient:()=>d});var n=r(1991),o=r(7950).unstable_batchedUpdates;n.j.setBatchNotifyFunction(o);var a=r(75),i=console;(0,a.B)(i);var s=r(5043),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=u(n);return s.createElement(c.Provider,{value:n},s.createElement(a.Provider,{value:t},o))},f=r(8168),m=r(8870),h=r(5540),v=r(5964),y=r(1422),g=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,h.A)(t,e);var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},r.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},r.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,f.A)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,v.$)(),t=(0,f.A)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},r.notify=function(e){var t=this;n.j.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(y.Q);function b(e,t,r){return"function"===typeof t?t.apply(void 0,r):"boolean"===typeof t?t:!!e}function x(e,t,r){var o=s.useRef(!1),a=s.useState(0)[1],i=(0,m.GR)(e,t,r),l=d(),c=s.useRef();c.current?c.current.setOptions(i):c.current=new g(l,i);var u=c.current.getCurrentResult();s.useEffect((function(){o.current=!0;var e=c.current.subscribe(n.j.batchCalls((function(){o.current&&a((function(e){return e+1}))})));return function(){o.current=!1,e()}}),[]);var p=s.useCallback((function(e,t){c.current.mutate(e,t).catch(m.lQ)}),[]);if(u.error&&b(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,f.A)({},u,{mutate:p,mutateAsync:u.mutate})}var w=r(244),A=r(8990),S=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,h.A)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),O(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return _(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return _(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var o=this.hasListeners();o&&E(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var a=this.computeRefetchInterval();!o||this.currentQuery===n&&this.options.enabled===r.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},o=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,f.A)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(m.lQ)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!m.S$&&!this.currentResult.isStale&&(0,m.gn)(this.options.staleTime)){var t=(0,m.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!m.S$&&!1!==this.options.enabled&&(0,m.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||w.m.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,o=this.options,i=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==n,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,y=p.isFetching,g=p.status,b=!1,x=!1;if(t.optimisticResults){var w=this.hasListeners(),A=!w&&O(e,t),S=w&&E(e,n,t,o);(A||S)&&(y=!0,f||(g="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==g)r=d.data,f=d.dataUpdatedAt,g=d.status,b=!0;else if(t.select&&"undefined"!==typeof p.data)if(i&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(p.data),!1!==t.structuralSharing&&(r=(0,m.BH)(null==i?void 0:i.data,r)),this.selectResult=r,this.selectError=null}catch(j){(0,a.t)().error(j),this.selectError=j}else r=p.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===g||"idle"===g)){var _;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))_=i.data;else if(_="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof _)try{_=t.select(_),!1!==t.structuralSharing&&(_=(0,m.BH)(null==i?void 0:i.data,_)),this.selectError=null}catch(j){(0,a.t)().error(j),this.selectError=j}"undefined"!==typeof _&&(g="success",r=_,x=!0)}return this.selectError&&(h=this.selectError,r=this.selectResult,v=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:r,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==g,isLoadingError:"error"===g&&0===p.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===g&&0!==p.dataUpdatedAt,isStale:k(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,o=r.notifyOnChangePropsExclusions;if(!n&&!o)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var a="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,i=e[n]!==t[n],s=null==a?void 0:a.some((function(e){return e===r})),l=null==o?void 0:o.some((function(e){return e===r}));return i&&!l&&(!a||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,m.f8)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,f.A)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,A.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.j.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.Q);function O(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&_(e,t,t.refetchOnMount)}function _(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&k(e,t)}return!1}function E(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&k(e,r)}function k(e,t){return e.isStaleByTime(t.staleTime)}function j(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var C=s.createContext(j()),P=function(){return s.useContext(C)};function R(e,t,r){return function(e,t){var r=s.useRef(!1),o=s.useState(0)[1],a=d(),i=P(),l=a.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=n.j.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=n.j.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=n.j.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(i.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(a,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){r.current=!0,i.clearReset();var e=c.subscribe(n.j.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return c.updateResult(),function(){r.current=!1,e()}}),[i,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){i.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!i.isReset()&&!u.isFetching&&b(l.suspense,l.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u,l)),u}((0,m.vh)(e,t,r),S)}},1153:(e,t,r)=>{"use strict";var n=r(5043),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4202:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function y(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function g(){}function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var x=b.prototype=new g;x.constructor=b,h(x,y.prototype),x.isPureReactComponent=!0;var w=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)A.call(t,o)&&!O.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:r,type:e,key:i,ref:s,props:a,_owner:S.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var k=/\/+/g;function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=e),e=""===a?"."+j(l,0):a,w(i)?(o="",null!=e&&(o=e.replace(k,"$&/")+"/"),C(i,t,o,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(k,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+j(s=e[c],c);l+=C(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=C(s=s.value,t,o,u=a+j(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},I={transition:null},M={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,r){P(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)A.call(t,c)&&!O.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,r){return T.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,r){return T.current.useReducer(e,t,r)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return T.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return T.current.useTransition()},t.version="18.2.0"},5043:(e,t,r)=>{"use strict";e.exports=r(4202)},579:(e,t,r)=>{"use strict";e.exports=r(1153)},66:(e,t,r)=>{"use strict";var n=r(2028),o=r(3290),a=n("RegExp.prototype.exec"),i=r(4902);e.exports=function(e){if(!o(e))throw new i("`regex` must be a RegExp");return function(t){return null!==a(e,t)}}},7234:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<a(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,r))c<o&&0>a(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<o&&0>a(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function w(e){if(v=!1,x(e),!h)if(null!==n(c))h=!0,I(A);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function A(e,r){h=!1,v&&(v=!1,g(E),E=-1),m=!0;var a=f;try{for(x(r),p=n(c);null!==p&&(!(p.expirationTime>r)||e&&!C());){var i=p.callback;if("function"===typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?p.callback=s:p===n(c)&&o(c),x(r)}else o(c);p=n(c)}if(null!==p)var l=!0;else{var d=n(u);null!==d&&M(w,d.startTime-r),l=!1}return l}finally{p=null,f=a,m=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,O=!1,_=null,E=-1,k=5,j=-1;function C(){return!(t.unstable_now()-j<k)}function P(){if(null!==_){var e=t.unstable_now();j=e;var r=!0;try{r=_(!0,e)}finally{r?S():(O=!1,_=null)}}else O=!1}if("function"===typeof b)S=function(){b(P)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,T=R.port2;R.port1.onmessage=P,S=function(){T.postMessage(null)}}else S=function(){y(P,0)};function I(e){_=e,O||(O=!0,S())}function M(e,r){E=y((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,I(A))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,r(u,e),null===n(c)&&e===n(u)&&(v?(g(E),E=-1):v=!0,M(w,a-i))):(e.sortIndex=s,r(c,e),h||m||(h=!0,I(A))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}},8853:(e,t,r)=>{"use strict";e.exports=r(7234)},5438:(e,t,r)=>{"use strict";var n=r(2),o=r(4992),a=r(2101)(),i=r(5558),s=r(4902),l=n("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(a?o(e,"length",t,!0,!0):o(e,"length",t)),e}},1289:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},7491:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},7527:(e,t,r)=>{"use strict";var n=r(9076),o=r(3130),a=r(2028)("String.prototype.replace"),i=/^\s$/.test("\u180e"),s=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(n(this));return a(a(e,s,""),l,"")}},9393:(e,t,r)=>{"use strict";var n=r(1712),o=r(1779),a=r(9076),i=r(7527),s=r(4326),l=r(9060),c=n(s()),u=function(e){return a(e),c(e)};o(u,{getPolyfill:s,implementation:i,shim:l}),e.exports=u},4326:(e,t,r)=>{"use strict";var n=r(7527),o="\u180e";e.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()&&o.trim()===o&&"_\u180e"==="_\u180e".trim()&&"\u180e_"==="\u180e_".trim()?String.prototype.trim:n}},9060:(e,t,r)=>{"use strict";var n=r(1779),o=r(4326);e.exports=function(){var e=o();return n(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},6440:e=>{"use strict";var t=function(){};e.exports=t},2634:()=>{},4634: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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},2774:(e,t,r)=>{"use strict";var n=r(2),o=r(2028),a=r(4902),i=r(7525),s=n("%Reflect.apply%",!0)||o("Function.prototype.apply");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!i(r))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,r)}},6488:(e,t,r)=>{"use strict";var n=r(4902),o=r(8206),a=r(8584),i=r(2258);e.exports=function(e,t){if("Object"!==i(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},5041:(e,t,r)=>{"use strict";var n=r(4902),o=r(8584),a=r(2258);e.exports=function(e,t){if("Object"!==a(e))throw new n("Assertion failed: `O` must be an Object");if(!o(t))throw new n("Assertion failed: `P` must be a Property Key");return t in e}},7525:(e,t,r)=>{"use strict";e.exports=r(6743)},9446:(e,t,r)=>{"use strict";e.exports=r(8799)},8584:e=>{"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},8357:(e,t,r)=>{"use strict";var n=r(4902),o=r(6488),a=r(3355),i=r(2258);e.exports=function(e){if("Object"!==i(e))throw new n("Assertion failed: `obj` must be an Object");return a(o(e,"length"))}},9076:(e,t,r)=>{"use strict";e.exports=r(8109)},9063:(e,t,r)=>{"use strict";var n=r(2),o=n("%Number%"),a=n("%RegExp%"),i=r(4902),s=n("%parseInt%"),l=r(2028),c=r(66),u=l("String.prototype.slice"),d=c(/^0b[01]+$/i),p=c(/^0o[0-7]+$/i),f=c(/^[-+]0x[0-9a-f]+$/i),m=c(new a("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),h=r(9393);e.exports=function e(t){if("string"!==typeof t)throw new i("Assertion failed: `argument` is not a String");if(d(t))return o(s(u(t,2),2));if(p(t))return o(s(u(t,2),8));if(m(t)||f(t))return NaN;var r=h(t);return r!==t?e(r):o(t)}},7100:(e,t,r)=>{"use strict";var n=r(6730),o=r(1704),a=r(8187),i=r(7267);e.exports=function(e){var t=n(e);return a(t)||0===t?0:i(t)?o(t):t}},3355:(e,t,r)=>{"use strict";var n=r(7035),o=r(7100);e.exports=function(e){var t=o(e);return t<=0?0:t>n?n:t}},6730:(e,t,r)=>{"use strict";var n=r(2),o=r(4902),a=n("%Number%"),i=r(9023),s=r(2034),l=r(9063);e.exports=function(e){var t=i(e)?e:s(e,a);if("symbol"===typeof t)throw new o("Cannot convert a Symbol value to a number");if("bigint"===typeof t)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");return"string"===typeof t?l(t):a(t)}},6604:(e,t,r)=>{"use strict";var n=r(2)("%Object%"),o=r(9076);e.exports=function(e){return o(e),n(e)}},2034:(e,t,r)=>{"use strict";var n=r(9536);e.exports=function(e){return arguments.length>1?n(e,arguments[1]):n(e)}},3130:(e,t,r)=>{"use strict";var n=r(2)("%String%"),o=r(4902);e.exports=function(e){if("symbol"===typeof e)throw new o("Cannot convert a Symbol value to a string");return n(e)}},2258:(e,t,r)=>{"use strict";var n=r(2814);e.exports=function(e){return"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":n(e)}},3474:e=>{"use strict";var t=Math.floor;e.exports=function(e){return"bigint"===typeof e?e:t(e)}},1704:(e,t,r)=>{"use strict";var n=r(3474),o=r(4902);e.exports=function(e){if("number"!==typeof e&&"bigint"!==typeof e)throw new o("argument must be a Number or a BigInt");var t=e<0?-n(-e):n(e);return 0===t?0:t}},8109:(e,t,r)=>{"use strict";var n=r(4902);e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},2814:e=>{"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},6743:(e,t,r)=>{"use strict";var n=r(2)("%Array%"),o=!n.isArray&&r(2028)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===o(e)}},7267:(e,t,r)=>{"use strict";var n=r(8187);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},8187:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},9023:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},7035:e=>{"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},8168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{A:()=>n})},5540:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}r.d(t,{A:()=>o})},8587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{A:()=>n})},8387:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{A:()=>o});const o=function(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e,t=r(5043),n=r.t(t,2),o=r(4391),a=r(4677),i=r.n(a),s=function(){if("undefined"===typeof window||void 0==window.localStorage)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch(e){return!1}}(),l=function(e){try{return JSON.parse(e)}catch(t){return e}},c=new(function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(e){return this.valuesMap.has(e)?String(this.valuesMap.get(e)):null},e.prototype.setItem=function(e,t){this.valuesMap.set(e,t)},e.prototype.removeItem=function(e){this.valuesMap.delete(e)},e.prototype.removeItems=function(e){var t=this;this.valuesMap.forEach((function(r,n){n.startsWith(e)&&t.valuesMap.delete(n)}))},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");return Array.from(this.valuesMap.keys())[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}()),u=function(){return s?window.localStorage:c},d=r(2907);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));function f(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function m(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function h(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function v(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var y;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(y||(y={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,r){void 0===r&&(r="/");let n=T(("string"===typeof t?v(t):t).pathname||"/",r);if(null==n)return null;let o=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let i=0;null==a&&i<o.length;++i){let e=R(n);a=C(o[i],e)}return a}function b(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(f(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=F([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:j(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of x(e.path))o(e,t,n);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=x(n.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,A=3,S=2,O=1,_=10,E=-2,k=e=>"*"===e;function j(e,t){let r=e.split("/"),n=r.length;return r.some(k)&&(n+=E),t&&(n+=S),r.filter((e=>!k(e))).reduce(((e,t)=>e+(w.test(t)?A:""===t?O:_)),n)}function C(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i<r.length;++i){let e=r[i],s=i===r.length-1,l="/"===o?t:t.slice(o.length)||"/",c=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;Object.assign(n,c.params);let u=e.route;a.push({params:n,pathname:F([o,c.pathname]),pathnameBase:z(F([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=F([o,c.pathnameBase]))}return a}function P(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);m("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function R(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function I(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e,t){let r=M(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function L(e,t,r,n){let o;void 0===n&&(n=!1),"string"===typeof e?o=v(e):(o=p({},e),f(!o.pathname||!o.pathname.includes("?"),I("?","pathname","search",o)),f(!o.pathname||!o.pathname.includes("#"),I("#","pathname","hash",o)),f(!o.search||!o.search.includes("#"),I("#","search","hash",o)));let a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"===typeof e?v(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:B(o)}}(o,a),c=s&&"/"!==s&&s.endsWith("/"),u=(i||"."===s)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const F=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function V(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],U=(new Set(W),["get",...W]);new Set(U),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q.apply(this,arguments)}const H=t.createContext(null);const $=t.createContext(null);const Q=t.createContext(null);const K=t.createContext(null);const G=t.createContext({outlet:null,matches:[],isDataRoute:!1});const X=t.createContext(null);function Y(){return null!=t.useContext(K)}function J(){return Y()||f(!1),t.useContext(K).location}function Z(e){t.useContext(Q).static||t.useLayoutEffect(e)}function ee(){let{isDataRoute:e}=t.useContext(G);return e?function(){let{router:e}=pe(ue.UseNavigateStable),r=me(de.UseNavigateStable),n=t.useRef(!1);return Z((()=>{n.current=!0})),t.useCallback((function(t,o){void 0===o&&(o={}),n.current&&("number"===typeof t?e.navigate(t):e.navigate(t,q({fromRouteId:r},o)))}),[e,r])}():function(){Y()||f(!1);let e=t.useContext(H),{basename:r,future:n,navigator:o}=t.useContext(Q),{matches:a}=t.useContext(G),{pathname:i}=J(),s=JSON.stringify(N(a,n.v7_relativeSplatPath)),l=t.useRef(!1);return Z((()=>{l.current=!0})),t.useCallback((function(t,n){if(void 0===n&&(n={}),!l.current)return;if("number"===typeof t)return void o.go(t);let a=L(t,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==r&&(a.pathname="/"===a.pathname?r:F([r,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}),[r,o,s,i,e])}()}const te=t.createContext(null);function re(){let{matches:e}=t.useContext(G),r=e[e.length-1];return r?r.params:{}}function ne(e,r){let{relative:n}=void 0===r?{}:r,{future:o}=t.useContext(Q),{matches:a}=t.useContext(G),{pathname:i}=J(),s=JSON.stringify(N(a,o.v7_relativeSplatPath));return t.useMemo((()=>L(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function oe(r,n,o,a){Y()||f(!1);let{navigator:i}=t.useContext(Q),{matches:s}=t.useContext(G),l=s[s.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,p=J();if(n){var m;let e="string"===typeof n?v(n):n;"/"===u||(null==(m=e.pathname)?void 0:m.startsWith(u))||f(!1),d=e}else d=p;let h=d.pathname||"/",y=h;if("/"!==u){let e=u.replace(/^\//,"").split("/");y="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=g(r,{pathname:y});let x=ce(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:F([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:F([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,a);return n&&x?t.createElement(K.Provider,{value:{location:q({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},x):x}function ae(){let e=function(){var e;let r=t.useContext(X),n=fe(de.UseRouteError),o=me(de.UseRouteError);if(void 0!==r)return r;return null==(e=n.errors)?void 0:e[o]}(),r=V(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:a},n):null,null)}const ie=t.createElement(ae,null);class se extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(G.Provider,{value:this.props.routeContext},t.createElement(X.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:r,match:n,children:o}=e,a=t.useContext(H);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(G.Provider,{value:r},o)}function ce(e,r,n,o){var a;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,l=null==(a=n)?void 0:a.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||f(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,u=-1;if(n&&o&&o.v7_partialHydration)for(let t=0;t<s.length;t++){let e=s[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(u=t),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){c=!0,s=u>=0?s.slice(0,u+1):[s[0]];break}}}return s.reduceRight(((e,o,a)=>{let i,d=!1,p=null,f=null;var m;n&&(i=l&&o.route.id?l[o.route.id]:void 0,p=o.route.errorElement||ie,c&&(u<0&&0===a?(m="route-fallback",!1||he[m]||(he[m]=!0),d=!0,f=null):u===a&&(d=!0,f=o.route.hydrateFallbackElement||null)));let h=r.concat(s.slice(0,a+1)),v=()=>{let r;return r=i?p:d?f:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(le,{match:o,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?t.createElement(se,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()}),null)}var ue=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ue||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function pe(e){let r=t.useContext(H);return r||f(!1),r}function fe(e){let r=t.useContext($);return r||f(!1),r}function me(e){let r=function(e){let r=t.useContext(G);return r||f(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||f(!1),n.route.id}const he={};n.startTransition;function ve(e){let{to:r,replace:n,state:o,relative:a}=e;Y()||f(!1);let{future:i,static:s}=t.useContext(Q),{matches:l}=t.useContext(G),{pathname:c}=J(),u=ee(),d=L(r,N(l,i.v7_relativeSplatPath),c,"path"===a),p=JSON.stringify(d);return t.useEffect((()=>u(JSON.parse(p),{replace:n,state:o,relative:a})),[u,p,a,n,o]),null}function ye(e){return function(e){let r=t.useContext(G).outlet;return r?t.createElement(te.Provider,{value:e},r):r}(e.context)}function ge(e){f(!1)}function be(r){let{basename:n="/",children:o=null,location:a,navigationType:i=e.Pop,navigator:s,static:l=!1,future:c}=r;Y()&&f(!1);let u=n.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:u,navigator:s,static:l,future:q({v7_relativeSplatPath:!1},c)})),[u,c,s,l]);"string"===typeof a&&(a=v(a));let{pathname:p="/",search:m="",hash:h="",state:y=null,key:g="default"}=a,b=t.useMemo((()=>{let e=T(p,u);return null==e?null:{location:{pathname:e,search:m,hash:h,state:y,key:g},navigationType:i}}),[u,p,m,h,y,g,i]);return null==b?null:t.createElement(Q.Provider,{value:d},t.createElement(K.Provider,{children:o,value:b}))}function xe(e){let{children:t,location:r}=e;return oe(we(t),r)}new Promise((()=>{}));t.Component;function we(e,r){void 0===r&&(r=[]);let n=[];return t.Children.forEach(e,((e,o)=>{if(!t.isValidElement(e))return;let a=[...r,o];if(e.type===t.Fragment)return void n.push.apply(n,we(e.props.children,a));e.type!==ge&&f(!1),e.props.index&&e.props.children&&f(!1);let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=we(e.props.children,a)),n.push(i)})),n}var Ae,Se=r(8168);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Ae||(Ae={}));var Oe=function(e){return e};var _e="beforeunload",Ee="popstate";function ke(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=Te(r.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,s=e.hash,l=void 0===s?"":s,c=n.state||{};return[c.idx,Oe({pathname:o,search:i,hash:l,state:c.usr||null,key:c.key||"default"})]}var a=null;function i(){if(a)p.call(a),a=null;else{var e=Ae.Pop,t=o(),r=t[0],n=t[1];if(p.length){if(null!=r){var i=c-r;i&&(a={action:e,location:n,retry:function(){g(-1*i)}},g(i))}}else y(e)}}r.addEventListener(Ee,i),r.addEventListener("hashchange",(function(){Re(o()[1])!==Re(u)&&i()}));var s=Ae.Pop,l=o(),c=l[0],u=l[1],d=Ce(),p=Ce();function f(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var n=r.location.href,o=n.indexOf("#");t=-1===o?n:n.slice(0,o)}return t}()+"#"+("string"===typeof e?e:Re(e))}function m(e,t){return void 0===t&&(t=null),Oe((0,Se.A)({pathname:u.pathname,hash:"",search:""},"string"===typeof e?Te(e):e,{state:t,key:Pe()}))}function h(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function v(e,t,r){return!p.length||(p.call({action:e,location:t,retry:r}),!1)}function y(e){s=e;var t=o();c=t[0],u=t[1],d.call({action:s,location:u})}function g(e){n.go(e)}null==c&&(c=0,n.replaceState((0,Se.A)({},n.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:f,push:function e(t,o){var a=Ae.Push,i=m(t,o);if(v(a,i,(function(){e(t,o)}))){var s=h(i,c+1),l=s[0],u=s[1];try{n.pushState(l,"",u)}catch(d){r.location.assign(u)}y(a)}},replace:function e(t,r){var o=Ae.Replace,a=m(t,r);if(v(o,a,(function(){e(t,r)}))){var i=h(a,c),s=i[0],l=i[1];n.replaceState(s,"",l),y(o)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return d.push(e)},block:function(e){var t=p.push(e);return 1===p.length&&r.addEventListener(_e,je),function(){t(),p.length||r.removeEventListener(_e,je)}}};return b}function je(e){e.preventDefault(),e.returnValue=""}function Ce(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Pe(){return Math.random().toString(36).substr(2,8)}function Re(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,a=e.hash,i=void 0===a?"":a;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function Te(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Ie(e){var r=e.basename,n=e.children,o=e.history,a=(0,t.useState)({action:o.action,location:o.location}),i=a[0],s=a[1];return(0,t.useLayoutEffect)((function(){return o.listen(s)}),[o]),t.createElement(be,{basename:r,children:n,location:i.location,navigationType:i.action,navigator:o})}var Me=(0,t.createContext)(""),Ne=function(e){var r=e.children,n=e.basename;return t.createElement(Me.Provider,{value:n},r)},Le=function(e){var r=e.history,n=e.basename,o=void 0===n?"":n,a=e.children,i=Y(),s=i?Fe:ze;return t.createElement(Ne,{basename:i?o:""},t.createElement(s,{basename:o,history:r},a))},Fe=function(e){var r=e.children;return t.createElement(t.Fragment,null,r)},ze=function(e){var r=e.children,n=e.history,o=(0,t.useMemo)((function(){return n||ke()}),[n]);return t.createElement(Ie,{history:o},r)};var De={id:""},Be={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(De)}},Ve=(0,t.createContext)(Be);Ve.displayName="AuthContext";const We=Ve;var Ue={create:function(){return Promise.resolve({data:null})},delete:function(){return Promise.resolve({data:null})},deleteMany:function(){return Promise.resolve({data:[]})},getList:function(){return Promise.resolve({data:[],total:0})},getMany:function(){return Promise.resolve({data:[]})},getManyReference:function(){return Promise.resolve({data:[],total:0})},getOne:function(){return Promise.resolve({data:null})},update:function(){return Promise.resolve({data:null})},updateMany:function(){return Promise.resolve({data:[]})}},qe=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},He="GET_LIST",$e="GET_ONE",Qe="GET_MANY",Ke="GET_MANY_REFERENCE",Ge="CREATE",Xe="UPDATE",Ye="UPDATE_MANY",Je="DELETE",Ze="DELETE_MANY",et=qe(qe([],["getList","getMany","getManyReference"],!0),["updateMany","deleteMany"],!1),tt=(qe(qe([],["getOne","create","update"],!0),et,!0),function(){return Promise.resolve()});tt.create=function(){return Promise.resolve(null)},tt.delete=function(){return Promise.resolve(null)},tt.deleteMany=function(){return Promise.resolve(null)},tt.getList=function(){return Promise.resolve(null)},tt.getMany=function(){return Promise.resolve(null)},tt.getManyReference=function(){return Promise.resolve(null)},tt.getOne=function(){return Promise.resolve(null)},tt.update=function(){return Promise.resolve(null)},tt.updateMany=function(){return Promise.resolve(null)};var rt={create:Ge,delete:Je,deleteMany:Ze,getList:He,getMany:Qe,getManyReference:Ke,getOne:$e,update:Xe,updateMany:Ye};const nt=function(e){var t=new Proxy(tt,{get:function(t,r){return function(t,n){if(Object.keys(rt).includes(r.toString())){var o=rt[r.toString()];return e(o,t,n)}return e(r.toString(),t,n)}},apply:function(t,r,n){return e.apply(e,n)}});return t};var ot=(0,t.createContext)(null);ot.displayName="DataProviderContext";const at=ot;var it=r(9613),st=r.n(it),lt=r(6940),ct=r.n(lt),ut=r(3097),dt=r.n(ut),pt=function(e){void 0===e&&(e={});var t={},r=function(e,r){Object.keys(t).forEach((function(n){t[n]&&t[n].key===e&&t[n].callback(r)}))};return{setup:function(){},teardown:function(){Object.keys(e).forEach((function(t){return delete e[t]}))},getItem:function(t,r){return dt()(e,t,r)},setItem:function(t,n){st()(e,t,n),r(t,n)},removeItem:function(t){ct()(e,t),r(t,void 0)},removeItems:function(t){var n=ft(e);Object.keys(n).forEach((function(n){n.startsWith(t)&&(ct()(e,n),r(n,void 0))}))},reset:function(){var t=ft(e);Object.keys(t).forEach((function(t){ct()(e,t),r(t,void 0)}))},subscribe:function(e,r){var n=Math.random().toString();return t[n]={key:e,callback:r},function(){delete t[n]}}}},ft=function(e){var t={};return function e(r,n){if(Object(r)!==r)t[n]=r;else if(Array.isArray(r))t[n]=r;else{var o=!0;for(var a in r)o=!1,e(r[a],n?n+"."+a:a);o&&n&&(t[n]={})}}(e,""),t},mt=pt(),ht=(0,t.createContext)(mt),vt=function(e){var r=e.value,n=e.children;return(0,t.useEffect)((function(){return r.setup(),function(){r.teardown()}}),[r]),t.createElement(ht.Provider,{value:r},n)},yt=(0,t.createContext)(void 0),gt=function(e){var r=e.children,n=(0,t.useState)(!1),o=n[0],a=n[1],i=(0,t.useState)(null),s=i[0],l=i[1],c=(0,t.useState)(),u=c[0],d=c[1],p=(0,t.useState)(null),f=p[0],m=p[1],h=(0,t.useState)(null),v=h[0],y=h[1],g=(0,t.useState)(),b=g[0],x=g[1],w=(0,t.useCallback)((function(){return a(!0)}),[]),A=(0,t.useCallback)((function(){a(!1),l(null)}),[]),S=(0,t.useCallback)((function(e,t){y(e),x(t)}),[]),O=(0,t.useMemo)((function(){return{editor:s,setEditor:l,preferenceKey:u,setPreferenceKey:d,title:v,titleOptions:b,setTitle:S,isEnabled:o,disable:A,enable:w,path:f,setPath:m}}),[A,w,s,u,o,f,m,v,b,S]);return t.createElement(yt.Provider,{value:O},r)},bt=function(e,t){return e&&t?String.prototype.replace.call(e,xt,(function(e,r){return t.hasOwnProperty(r)&&null!=t[r]?t[r]:e})):e},xt=/%\{(.*?)\}/g,wt={translate:function(e,t){return(null===t||void 0===t?void 0:t._)?bt(t._,t):bt(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},At=(0,t.createContext)(wt);At.displayName="I18nContext";var St=r(9853),Ot=r.n(St),_t="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,Et=function(e){var r=t.useRef((function(){throw new Error("Cannot call an event handler while rendering.")}));return _t((function(){r.current=e})),(0,t.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,e)}),[])},kt=function(){return(0,t.useContext)(ht)},jt=function(e,r){var n=kt(),o=n.getItem,a=n.setItem,i=n.subscribe,s=(0,t.useState)((function(){return o(e,r)})),l=s[0],c=s[1];(0,t.useEffect)((function(){var t=o(e,r);Ot()(l,t)||c(t);var n=i(e,(function(e){c("undefined"===typeof e?r:e)}));return function(){return n()}}),[e,i,r,o,l]);var u=Et((function(t,n){var o="function"===typeof t?t(l):t;a(e,"undefined"===typeof o?"undefined"===typeof n?r:n:o)}));return[l,u]},Ct=(0,t.createContext)((function(){})),Pt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rt=function(){var e=(0,t.useContext)(Ct);return(0,t.useCallback)((function(t,r){void 0===r&&(r={});var n=r.type,o=void 0===n?"info":n,a=Pt(r,["type"]);e({message:t,type:o,notificationOptions:a})}),[e])},Tt=function(e){var r=e.value,n=void 0===r?It:r,o=e.children,a=jt("locale")[0],i=Rt(),s=(0,t.useState)(0),l=s[0],c=s[1],u=(0,t.useState)(a===n.getLocale()),d=u[0],p=u[1];return(0,t.useEffect)((function(){a&&n.getLocale()!==a?new Promise((function(e){e(n.changeLocale(a))})).then((function(){c((function(e){return e+1})),p(!0)})).catch((function(e){p(!0),i("ra.notification.i18n_error",{type:"error"}),console.error(e)})):p(!0)}),[n,a,i]),d?t.createElement(At.Provider,{value:n,key:l},o):null},It={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},Mt=function(){return Mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mt.apply(this,arguments)},Nt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Lt=(0,t.createContext)({definitions:{},register:function(){},unregister:function(){}}),Ft=function(e){var r=e.definitions,n=void 0===r?{}:r,o=e.children,a=(0,t.useState)(n),i=a[0],s=a[1],l=(0,t.useCallback)((function(e){s((function(t){var r;return Ot()(t[e.name],e)?t:Mt(Mt({},t),((r={})[e.name]=e,r))}))}),[]),c=(0,t.useCallback)((function(e){s((function(t){var r=t,n=e.name;r[n];return Nt(r,["symbol"===typeof n?n:n+""])}))}),[]),u=(0,t.useMemo)((function(){return{definitions:i,register:l,unregister:c}}),[i]);return t.createElement(Lt.Provider,{value:u},o)},zt=(0,t.createContext)({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),Dt=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Bt=function(e){var r=e.children,n=(0,t.useState)([]),o=n[0],a=n[1],i=(0,t.useCallback)((function(e){a((function(t){return Dt(Dt([],t,!0),[e],!1)}))}),[]),s=(0,t.useCallback)((function(){var e=o[0],t=o.slice(1);return a(t),e}),[o]),l=(0,t.useCallback)((function(){a([])}),[]),c=(0,t.useMemo)((function(){return{notifications:o,addNotification:i,takeNotification:s,resetNotifications:l,setNotifications:a}}),[o]);return t.createElement(zt.Provider,{value:c},t.createElement(Ct.Provider,{value:i},r))},Vt=pt(),Wt=function(e){var r=e.authProvider,n=e.basename,o=e.dataProvider,a=void 0===o?Ue:o,i=e.i18nProvider,s=e.store,l=void 0===s?Vt:s,c=e.children,u=e.history,p=e.queryClient;if(!a)throw new Error("Missing dataProvider prop.\nReact-admin requires a valid dataProvider function to work.");var f=(0,t.useMemo)((function(){return p||new d.QueryClient}),[p]),m=(0,t.useMemo)((function(){return r instanceof Function?function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(null,t)};return t.login=function(t){return e("AUTH_LOGIN",t)},t.logout=function(t){return e("AUTH_LOGOUT",t)},t.checkAuth=function(t){return e("AUTH_CHECK",t)},t.checkError=function(t){return e("AUTH_ERROR",t)},t.getPermissions=function(t){return e("AUTH_GET_PERMISSIONS",t)},t}(r):r}),[r]),h=(0,t.useMemo)((function(){return a instanceof Function?nt(a):a}),[a]);return t.createElement(We.Provider,{value:m},t.createElement(at.Provider,{value:h},t.createElement(vt,{value:l},t.createElement(gt,null,t.createElement(d.QueryClientProvider,{client:f},t.createElement(Le,{history:u,basename:n},t.createElement(Tt,{value:i},t.createElement(Bt,null,t.createElement(Ft,null,c)))))))))},Ut=function(){return Ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ut.apply(this,arguments)},qt={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small"},variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small"}}}},Ht=Ut(Ut({palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}}},qt),{components:Ut(Ut({},qt.components),{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}})}),$t=(Ut({palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}},qt),(0,t.createContext)({})),Qt=r(8279),Kt=r(8587);const Gt=t.createContext(null);function Xt(){return t.useContext(Gt)}const Yt="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Jt=r(579);const Zt=function(e){const{children:r,theme:n}=e,o=Xt(),a=t.useMemo((()=>{const e=null===o?n:function(e,t){if("function"===typeof t)return t(e);return(0,Se.A)({},e,t)}(o,n);return null!=e&&(e[Yt]=null!==o),e}),[n,o]);return(0,Jt.jsx)(Gt.Provider,{value:a,children:r})};var er=r(5025),tr=r(7082);const rr=["value"],nr=t.createContext();const or=()=>{const e=t.useContext(nr);return null!=e&&e},ar=function(e){let{value:t}=e,r=(0,Kt.A)(e,rr);return(0,Jt.jsx)(nr.Provider,(0,Se.A)({value:null==t||t},r))},ir={};function sr(e,r,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.useMemo((()=>{const t=e&&r[e]||r;if("function"===typeof n){const a=n(t),i=e?(0,Se.A)({},r,{[e]:a}):a;return o?()=>i:i}return e?(0,Se.A)({},r,{[e]:n}):(0,Se.A)({},r,n)}),[e,r,n,o])}const lr=function(e){const{children:t,theme:r,themeId:n}=e,o=(0,tr.A)(ir),a=Xt()||ir,i=sr(n,o,r),s=sr(n,a,r,!0),l="rtl"===i.direction;return(0,Jt.jsx)(Zt,{theme:s,children:(0,Jt.jsx)(er.T.Provider,{value:i,children:(0,Jt.jsx)(ar,{value:l,children:t})})})};var cr=r(3375);const ur=["theme"];function dr(e){let{theme:t}=e,r=(0,Kt.A)(e,ur);const n=t[cr.A];return(0,Jt.jsx)(lr,(0,Se.A)({},r,{themeId:n?cr.A:void 0,theme:n||t}))}var pr=r(3844),fr=r(4775);function mr(e,r,n,o,a){const[i,s]=t.useState((()=>a&&n?n(e).matches:o?o(e).matches:r));return(0,pr.A)((()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&s(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n]),i}const hr=n.useSyncExternalStore;function vr(e,r,n,o,a){const i=t.useCallback((()=>r),[r]),s=t.useMemo((()=>{if(a&&n)return()=>n(e).matches;if(null!==o){const{matches:t}=o(e);return()=>t}return i}),[i,e,o,a,n]),[l,c]=t.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return hr(c,l,s)}function yr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(0,tr.A)(),n="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:a=(n?window.matchMedia:null),ssrMatchMedia:i=null,noSsr:s=!1}=(0,fr.A)({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"===typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==hr?vr:mr)(l,o,a,i,s)}var gr=function(e){var r=e||{},n=r.lightTheme,o=r.darkTheme,a=r.defaultTheme,i=(0,t.useContext)($t);return{lightTheme:n||i.lightTheme,darkTheme:o||i.darkTheme,defaultTheme:null!==a&&void 0!==a?a:i.defaultTheme}},br=function(e){var t=gr().darkTheme,r=yr("(prefers-color-scheme: dark)",{noSsr:!0}),n=jt("theme",null!==e&&void 0!==e?e:r&&t?"dark":"light"),o=n[0];return[null!=t?o:"light",n[1]]},xr=function(e){var r=e.children,n=e.theme,o=gr(),a=o.lightTheme,i=o.darkTheme,s=o.defaultTheme,l=yr("(prefers-color-scheme: dark)",{noSsr:!0}),c=br(s||(l&&i?"dark":"light"))[0],u=(0,t.useMemo)((function(){try{return(0,Qt.A)("object"===typeof c?c:"dark"===c?i:a||n)}catch(e){return console.warn("Failed to reuse custom theme from store",e),(0,Qt.A)()}}),[c,n,a,i]);return t.createElement(dr,{theme:u},r)},wr=function(){return wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wr.apply(this,arguments)},Ar=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Sr=function(e){var r=e.theme,n=e.lightTheme,o=void 0===n?Ht:n,a=e.darkTheme,i=e.defaultTheme,s=e.children,l=Ar(e,["theme","lightTheme","darkTheme","defaultTheme","children"]);return t.createElement(Wt,wr({},l),t.createElement($t.Provider,{value:{lightTheme:r||o,darkTheme:a,defaultTheme:i}},t.createElement(xr,null,s)))};Sr.displayName="AdminContext";var Or="/login",_r="/";const Er=function(){return(0,t.useContext)(We)};var kr=function(){return(0,t.useContext)(Me)},jr=function(){var e=kr();return(0,t.useCallback)((function(t){var r=t.resource,n=t.id,o=t.type;switch(o){case"list":return Cr("".concat(e,"/").concat(r));case"create":return Cr("".concat(e,"/").concat(r,"/create"));case"edit":return Cr(null==n?"".concat(e,"/").concat(r):"".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return Cr(null==n?"".concat(e,"/").concat(r):"".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}}),[e])},Cr=function(e){return e.replace("//","/")};const Pr=function(){var e=Er(),r=(0,d.useQueryClient)(),n=kt().reset,o=ee(),a=(0,t.useRef)(o),i=J(),s=(0,t.useRef)(i),l=kr(),c=Cr("".concat(l,"/").concat(Or));(0,t.useEffect)((function(){s.current=i,a.current=o}),[i,o]);var u=(0,t.useCallback)((function(t,o,i){return void 0===t&&(t={}),void 0===o&&(o=c),void 0===i&&(i=!0),e.logout(t).then((function(e){if(!1===e||!1===o)return n(),void r.clear();var t=e||o;if(null===t||void 0===t?void 0:t.startsWith("http"))return n(),r.clear(),window.location.href=t,t;var l=t.split("?"),c={pathname:l[0]},u={};return i&&s.current&&s.current.pathname&&(u={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),l[1]&&(c.search=l[1]),a.current(c,u),n(),r.clear(),e}))}),[e,n,c,r]),p=(0,t.useCallback)((function(e){return o({pathname:c},{state:{nextPathname:i&&i.pathname}}),n(),r.clear(),Promise.resolve()}),[n,i,o,c,r]);return e?u:p};var Rr=function(){var e=Er(),r=Rt(),n=Pr(),o=kr(),a=Cr("".concat(o,"/").concat(Or)),i=(0,t.useCallback)((function(t,o,i,s){return void 0===t&&(t={}),void 0===o&&(o=!0),void 0===i&&(i=a),void 0===s&&(s=!1),e.checkAuth(t).catch((function(e){o&&(n({},e&&null!=e.redirectTo?e.redirectTo:i),!(s||e&&!1===e.message)&&r(Ir(e,"ra.auth.auth_check_error"),{type:"error"}));throw e}))}),[e,n,r,a]);return e?i:Tr},Tr=function(){return Promise.resolve()},Ir=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t};const Mr=function(e,t){0};var Nr=function(){return Nr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nr.apply(this,arguments)},Lr={};const Fr=function(e,r,n){void 0===e&&(e=Lr),void 0===r&&(r=!1);var o=Er(),a=Pr(),i=kr(),s=Rt(),l=(0,d.useQuery)(["auth","checkAuth",e],(function(){return null===o||void 0===o?void 0:o.checkAuth(e).then((function(){return!0}))}),Nr({onError:function(e){var t=Cr("".concat(i,"/").concat(Or));r&&(a({},e&&null!=e.redirectTo?e.redirectTo:t),!(e&&!1===e.message)&&s(Dr(e,"ra.auth.auth_check_error"),{type:"error"}))},retry:!1},n));return(0,t.useMemo)((function(){var e;return{authenticated:!!(null!==(e=l.data)&&void 0!==e?e:l.isLoading)||null==o,isLoading:l.isLoading,error:l.error}}),[o,l])};var zr,Dr=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},Br=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Vr=function(e){void 0===e&&(e={});var t=e.params,r=Br(e,["params"]);Fr(null!==t&&void 0!==t?t:Wr,!0,r)},Wr={},Ur=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},qr=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Hr=function(){return Promise.resolve(!1)},$r=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t};const Qr=function(){var e=Er(),r=Pr(),n=Rt(),o=ee(),a=(0,t.useCallback)((function(t,a){return e.checkError(t).then((function(){return!1})).catch((function(i){return Ur(void 0,void 0,void 0,(function(){var s,l,c;return qr(this,(function(u){return s=null===(c=null===i||void 0===i?void 0:i.logoutUser)||void 0===c||c,zr||(zr=setTimeout((function(){zr=void 0}),0),l=i&&null!=i.redirectTo?i.redirectTo:t&&t.redirectTo?t.redirectTo:void 0,!(a||i&&!1===i.message||t&&!1===t.message||(null===l||void 0===l?void 0:l.startsWith("http")))&&e.checkAuth({}).then((function(){n($r(i,s?"ra.notification.logged_out":"ra.notification.not_authorized"),{type:"error"})})).catch((function(){})),s?r({},l):l.startsWith("http")?window.location.href=l:o(l)),[2,!0]}))}))}))}),[e,r,n,o]);return e?a:Hr};var Kr=function(){return Kr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kr.apply(this,arguments)},Gr=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Xr=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Yr={};const Jr=function(e,r){void 0===e&&(e=Yr),void 0===r&&(r={staleTime:3e5});var n=Er(),o=Qr(),a=(0,d.useQuery)(["auth","getPermissions",e],n?function(){return n.getPermissions(e)}:function(){return Gr(void 0,void 0,void 0,(function(){return Xr(this,(function(e){return[2,[]]}))}))},Kr({onError:function(e){o(e)}},r));return(0,t.useMemo)((function(){return{permissions:a.data,isLoading:a.isLoading,error:a.error,refetch:a.refetch}}),[a])};var Zr=function(){return Zr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zr.apply(this,arguments)},en=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tn=function(e){return 0===t.Children.count(e)};const rn=function(e){var r=e.authParams,n=e.children,o=e.render,a=e.component,i=(e.staticContext,en(e,["authParams","children","render","component","staticContext"]));Mr(o&&n&&!tn(n)||o&&a||a&&n&&tn(n)),Vr(r);var s=Jr(r).permissions;return a?(0,t.createElement)(a,Zr({permissions:s},i)):o?o(Zr({permissions:s},i)):n?n(Zr({permissions:s},i)):void 0};function nn(e){var r=(0,t.useState)(e),n=r[0],o=r[1],a=(0,t.useRef)(!1);return(0,t.useEffect)((function(){return a.current=!0,function(){a.current=!1}}),[]),[n,(0,t.useCallback)((function(e){if(a.current)return o(e)}),[a,o])]}function on(e,r){void 0===e&&(e=0),void 0===r&&(r="");var n=nn(!1),o=n[0],a=n[1];return(0,t.useEffect)((function(){a(!1);var t=setTimeout((function(){a(!0)}),e);return function(){clearTimeout(t)}}),[r,e,a]),o}var an=function(){return(0,t.useContext)(Lt)},sn=function(){return sn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sn.apply(this,arguments)},ln=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},cn=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},un=function(e,r,n){var o=Pr(),a=dn(hn(e)),i=a[0],s=a[1],l=a[2],c=nn((function(){return fn(sn({children:e},i))})),u=c[0],d=c[1];return(0,t.useEffect)((function(){n||ln(void 0,void 0,void 0,(function(){var t,n;return cn(this,(function(a){var i;return t=mn(e),n=hn(e),s(n),d(t?"loading":n.resources.length>0||n.customRoutesWithLayout.length>0||n.customRoutesWithoutLayout.length>0?"ready":"empty"),t&&(i=t,ln(void 0,void 0,void 0,(function(){var e;return cn(this,(function(t){try{(null===(e=i(r))||void 0===e?void 0:e.then)?e.then((function(e){l(hn(e)),d("ready")})):(l(hn(e)),d("ready"))}catch(n){console.error(n),o()}return[2]}))}))),[2]}))}))}),[e,o,n,l,r,s,d]),[i,u]},dn=function(e){var r=(0,t.useState)(e),n=r[0],o=r[1],a=(0,t.useCallback)((function(e){o((function(t){return{customRoutesWithLayout:t.customRoutesWithLayout.concat(e.customRoutesWithLayout),customRoutesWithoutLayout:t.customRoutesWithoutLayout.concat(e.customRoutesWithoutLayout),resources:t.resources.concat(e.resources)}}))}),[]);return[n,o,a]},pn=function(e,r){var n=an(),o=n.register,a=n.unregister;(0,t.useEffect)((function(){return e.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);o(t)})),function(){e.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);a(t)}))}}),[r,o,e,a])},fn=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return mn(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},mn=function(e){var t=(Array.isArray(e)?e:[e]).filter((function(e){return"function"===typeof e}));if(t.length>1)throw new Error("You can only provide one function child to AdminRouter");return 0===t.length?null:t[0]},hn=function(e){var r=[],n=[],o=[];return t.Children.forEach(e,(function(e){if(t.isValidElement(e)){if(e.type===t.Fragment){var a=hn(e.props.children);r.push.apply(r,a.customRoutesWithLayout),n.push.apply(n,a.customRoutesWithoutLayout),o.push.apply(o,a.resources)}if("CustomRoutes"===e.type.raName){var i=e;i.props.noLayout?n.push(i.props.children):r.push(i.props.children)}else"Resource"===e.type.raName&&o.push(e)}})),{customRoutesWithLayout:r,customRoutesWithoutLayout:n,resources:o}},vn=function(e){!function(){var e=J();(0,t.useEffect)((function(){var t;(null===(t=e.state)||void 0===t?void 0:t._scrollToTop)&&"undefined"!=typeof window&&window.scrollTo(0,0)}),[e])}();var r=jr(),n=function(e){var t=Jr(),r=t.permissions,n=t.isLoading,o=un(e,r,n),a=o[0],i=o[1];return pn(a.resources,r),{customRoutesWithLayout:a.customRoutesWithLayout,customRoutesWithoutLayout:a.customRoutesWithoutLayout,status:i,resources:a.resources}}(e.children),o=n.customRoutesWithLayout,a=n.customRoutesWithoutLayout,i=n.status,s=n.resources,l=e.layout,c=e.catchAll,u=e.dashboard,d=e.loading,p=e.menu,f=e.requireAuth,m=e.ready,h=e.title,v=(0,t.useState)(!f),y=v[0],g=v[1],b=Rr();return(0,t.useEffect)((function(){f&&b().then((function(){g(!0)})).catch((function(){}))}),[b,f]),"empty"===i?t.createElement(m,null):"loading"!==i&&y?t.createElement(xe,null,a,t.createElement(ge,{path:"/*",element:t.createElement("div",null,t.createElement(l,{dashboard:u,menu:p,title:h},t.createElement(xe,null,o,t.Children.map(s,(function(e){return t.createElement(ge,{key:e.props.name,path:"".concat(e.props.name,"/*"),element:e})})),t.createElement(ge,{path:"/",element:u?t.createElement(rn,{authParams:yn,component:u}):s.length>0?t.createElement(ve,{to:r({resource:s[0].props.name,type:"list"})}):null}),t.createElement(ge,{path:"*",element:t.createElement(c,{title:h})}))))})):t.createElement(xe,null,a,t.createElement(ge,{path:"*",element:t.createElement("div",{style:{height:"100vh"}},t.createElement(d,null))}))},yn={params:{route:"dashboard"}};const gn=function(){return t.createElement("span",null)};var bn=function(e){var r=e.children;return t.createElement(t.Fragment,null,r)},xn=function(e){var r=e.catchAll,n=void 0===r?An:r,o=e.children,a=e.dashboard,i=e.disableTelemetry,s=void 0!==i&&i,l=e.layout,c=void 0===l?bn:l,u=e.loading,d=void 0===u?An:u,p=e.loginPage,f=void 0!==p&&p,m=e.authCallbackPage,h=void 0!==m&&m,v=e.menu,y=e.ready,g=void 0===y?gn:y,b=e.title,x=void 0===b?"React Admin":b,w=e.requireAuth,A=void 0!==w&&w;return(0,t.useEffect)((function(){s||"undefined"===typeof window||"undefined"===typeof window.location||"undefined"===typeof Image||((new Image).src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname))}),[s]),t.createElement(xe,null,!1!==f&&!0!==f?t.createElement(ge,{path:"/login",element:wn(f)}):null,!1!==h&&!0!==h?t.createElement(ge,{path:"/auth-callback",element:wn(h)}):null,t.createElement(ge,{path:"/*",element:t.createElement(vn,{catchAll:n,dashboard:a,layout:c,loading:d,menu:v,requireAuth:A,ready:g,title:x},o)}))},wn=function(e){return(0,t.isValidElement)(e)?e:(0,t.createElement)(e)},An=function(){return null},Sn=r(8387),On=r(8606),_n=r(2876),En=r(4535);const kn=(e,t)=>(0,Se.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),jn=e=>(0,Se.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});var Cn=r(7056),Pn=r(2400);function Rn(e){return(0,Pn.Ay)("MuiScopedCssBaseline",e)}(0,Cn.A)("MuiScopedCssBaseline",["root"]);const Tn=["className","component","enableColorScheme"],In=(0,En.Ay)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t,ownerState:r}=e;const n={};return r.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach((e=>{let[r,o]=e;var a;n["&".concat(t.getColorSchemeSelector(r).replace(/\s*&/,""))]={colorScheme:null==(a=o.palette)?void 0:a.mode}})),(0,Se.A)({},kn(t,r.enableColorScheme),jn(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)})),Mn=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiScopedCssBaseline"}),{className:n,component:o="div"}=r,a=(0,Kt.A)(r,Tn),i=(0,Se.A)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},Rn,t)})(i);return(0,Jt.jsx)(In,(0,Se.A)({as:o,className:(0,Sn.A)(s.root,n),ref:t,ownerState:i},a))})),Nn=Mn;var Ln=r(9177);function Fn(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Fn(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const zn=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Fn(e))&&(n&&(n+=" "),n+=t);return n};var Dn=r(5173),Bn=r.n(Dn);function Vn(e){return(0,Pn.Ay)("MuiToolbar",e)}(0,Cn.A)("MuiToolbar",["root","gutters","regular","dense"]);const Wn=["className","component","disableGutters","variant"],Un=(0,En.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar})),qn=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:a=!1,variant:i="regular"}=r,s=(0,Kt.A)(r,Wn),l=(0,Se.A)({},r,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:r,variant:n}=e,o={root:["root",!r&&"gutters",n]};return(0,On.A)(o,Vn,t)})(l);return(0,Jt.jsx)(Un,(0,Se.A)({as:o,className:(0,Sn.A)(c.root,n),ref:t,ownerState:l},s))})),Hn=qn;var $n=r(6803),Qn=r(7266);const Kn=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Gn(e){return(0,Pn.Ay)("MuiPaper",e)}(0,Cn.A)("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 Xn=["className","component","elevation","square","variant"],Yn=(0,En.Ay)("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".concat(r.elevation)]]}})((e=>{let{theme:t,ownerState:r}=e;var n;return(0,Se.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!r.square&&{borderRadius:t.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===r.variant&&(0,Se.A)({boxShadow:(t.vars||t).shadows[r.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,Qn.X4)("#fff",Kn(r.elevation)),", ").concat((0,Qn.X4)("#fff",Kn(r.elevation)),")")},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[r.elevation]}))})),Jn=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=(0,Kt.A)(r,Xn),c=(0,Se.A)({},r,{component:o,elevation:a,square:i,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,On.A)(a,Gn,o)})(c);return(0,Jt.jsx)(Yn,(0,Se.A)({as:o,ownerState:c,className:(0,Sn.A)(u.root,n),ref:t},l))})),Zn=Jn;function eo(e){return(0,Pn.Ay)("MuiAppBar",e)}(0,Cn.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const to=["className","color","enableColorOnDark","position"],ro=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,no=(0,En.Ay)(Zn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,$n.A)(r.position))],t["color".concat((0,$n.A)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,Se.A)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,Se.A)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,Se.A)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,Se.A)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:ro(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:ro(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:ro(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:ro(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),oo=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=r,s=(0,Kt.A)(r,to),l=(0,Se.A)({},r,{color:o,position:i,enableColorOnDark:a}),c=(e=>{const{color:t,position:r,classes:n}=e,o={root:["root","color".concat((0,$n.A)(t)),"position".concat((0,$n.A)(r))]};return(0,On.A)(o,eo,n)})(l);return(0,Jt.jsx)(no,(0,Se.A)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,Sn.A)(c.root,n,"fixed"===i&&"mui-fixed"),ref:t},s))})),ao=oo;var io=function(){return(0,t.useContext)(At)},so=function(e){var r,n=io(),o=(0,t.useMemo)((function(){return(null===n||void 0===n?void 0:n.getLocales)?null===n||void 0===n?void 0:n.getLocales():[]}),[n]);return null!==(r=null===e||void 0===e?void 0:e.locales)&&void 0!==r?r:o},lo=r(6057);const co=function(e,t,r){if(e[t]&&!(0,lo.isValidElementType)(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))};var uo=r(1140);function po(e){return"string"===typeof e}function fo(e,t,r){return void 0===e||po(e)?t:(0,Se.A)({},t,{ownerState:(0,Se.A)({},t.ownerState,r)})}var mo=r(5527),ho=r(5170);function vo(){const e=(0,mo.A)(ho.A);return e[cr.A]||e}var yo=r(5540),go=r(7950),bo=r.t(go,2);const xo=!1,wo=t.createContext(null);var Ao="unmounted",So="exited",Oo="entering",_o="entered",Eo="exiting",ko=function(e){function r(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=So,n.appearStatus=Oo):o=_o:o=t.unmountOnExit||t.mountOnEnter?Ao:So,n.state={status:o},n.nextCallback=null,n}(0,yo.A)(r,e),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ao?{status:So}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Oo&&r!==_o&&(t=Oo):r!==Oo&&r!==_o||(t=Eo)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Oo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:go.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===So&&this.setState({status:Ao})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[go.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||xo?this.safeSetState({status:_o},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Oo},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:_o},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:go.findDOMNode(this);t&&!xo?(this.props.onExit(n),this.safeSetState({status:Eo},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:So},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:So},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:go.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ao)return null;var r=this.props,n=r.children,o=(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,Kt.A)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(wo.Provider,{value:null},"function"===typeof n?n(e,o):t.cloneElement(t.Children.only(n),o))},r}(t.Component);function jo(){}ko.contextType=wo,ko.propTypes={},ko.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jo,onEntering:jo,onEntered:jo,onExit:jo,onExiting:jo,onExited:jo},ko.UNMOUNTED=Ao,ko.EXITED=So,ko.ENTERING=Oo,ko.ENTERED=_o,ko.EXITING=Eo;const Co=ko,Po=e=>e.scrollTop;function Ro(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"===typeof a?a[t.mode]:a,delay:i.transitionDelay}}var To=r(5849);const Io=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Mo(e){return"scale(".concat(e,", ").concat(e**2,")")}const No={entering:{opacity:1,transform:Mo(1)},entered:{opacity:1,transform:"none"}},Lo="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Fo=t.forwardRef((function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:i,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:v=Co}=e,y=(0,Kt.A)(e,Io),g=(0,uo.A)(),b=t.useRef(),x=vo(),w=t.useRef(null),A=(0,To.A)(w,a.ref,r),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},O=S(u),_=S(((e,t)=>{Po(e);const{duration:r,delay:n,easing:o}=Ro({style:m,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Lo?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),E=S(c),k=S(f),j=S((e=>{const{duration:t,delay:r,easing:n}=Ro({style:m,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Lo?o:.666*o,delay:Lo?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Mo(.75),d&&d(e)})),C=S(p);return(0,Jt.jsx)(v,(0,Se.A)({appear:o,in:s,nodeRef:w,onEnter:_,onEntered:E,onEntering:O,onExit:j,onExited:C,onExiting:k,addEndListener:e=>{"auto"===h&&g.start(b.current||0,e),n&&n(w.current,e)},timeout:"auto"===h?null:h},y,{children:(e,r)=>t.cloneElement(a,(0,Se.A)({style:(0,Se.A)({opacity:0,transform:Mo(.75),visibility:"exited"!==e||s?void 0:"hidden"},No[e],m,a.props.style),ref:A},r))}))}));Fo.muiSupportAuto=!0;const zo=Fo;var Do=r(7042),Bo=r(2144);function Vo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wo(e){return e instanceof Vo(e).Element||e instanceof Element}function Uo(e){return e instanceof Vo(e).HTMLElement||e instanceof HTMLElement}function qo(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Vo(e).ShadowRoot||e instanceof ShadowRoot)}var Ho=Math.max,$o=Math.min,Qo=Math.round;function Ko(){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 Go(){return!/^((?!chrome|android).)*safari/i.test(Ko())}function Xo(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Uo(e)&&(o=e.offsetWidth>0&&Qo(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Qo(n.height)/e.offsetHeight||1);var i=(Wo(e)?Vo(e):window).visualViewport,s=!Go()&&r,l=(n.left+(s&&i?i.offsetLeft:0))/o,c=(n.top+(s&&i?i.offsetTop:0))/a,u=n.width/o,d=n.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Yo(e){var t=Vo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jo(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ea(e){return Xo(Zo(e)).left+Yo(e).scrollLeft}function ta(e){return Vo(e).getComputedStyle(e)}function ra(e){var t=ta(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function na(e,t,r){void 0===r&&(r=!1);var n=Uo(t),o=Uo(t)&&function(e){var t=e.getBoundingClientRect(),r=Qo(t.width)/e.offsetWidth||1,n=Qo(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=Zo(t),i=Xo(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==Jo(t)||ra(a))&&(s=function(e){return e!==Vo(e)&&Uo(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Yo(e);var t}(t)),Uo(t)?((l=Xo(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ea(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function oa(e){var t=Xo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function aa(e){return"html"===Jo(e)?e:e.assignedSlot||e.parentNode||(qo(e)?e.host:null)||Zo(e)}function ia(e){return["html","body","#document"].indexOf(Jo(e))>=0?e.ownerDocument.body:Uo(e)&&ra(e)?e:ia(aa(e))}function sa(e,t){var r;void 0===t&&(t=[]);var n=ia(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=Vo(n),i=o?[a].concat(a.visualViewport||[],ra(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(sa(aa(i)))}function la(e){return["table","td","th"].indexOf(Jo(e))>=0}function ca(e){return Uo(e)&&"fixed"!==ta(e).position?e.offsetParent:null}function ua(e){for(var t=Vo(e),r=ca(e);r&&la(r)&&"static"===ta(r).position;)r=ca(r);return r&&("html"===Jo(r)||"body"===Jo(r)&&"static"===ta(r).position)?t:r||function(e){var t=/firefox/i.test(Ko());if(/Trident/i.test(Ko())&&Uo(e)&&"fixed"===ta(e).position)return null;var r=aa(e);for(qo(r)&&(r=r.host);Uo(r)&&["html","body"].indexOf(Jo(r))<0;){var n=ta(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var da="top",pa="bottom",fa="right",ma="left",ha="auto",va=[da,pa,fa,ma],ya="start",ga="end",ba="clippingParents",xa="viewport",wa="popper",Aa="reference",Sa=va.reduce((function(e,t){return e.concat([t+"-"+ya,t+"-"+ga])}),[]),Oa=[].concat(va,[ha]).reduce((function(e,t){return e.concat([t,t+"-"+ya,t+"-"+ga])}),[]),_a=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ea(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function ka(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var ja={placement:"bottom",modifiers:[],strategy:"absolute"};function Ca(){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 Pa(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?ja:o;return function(e,t,r){void 0===r&&(r=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ja,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:o,setOptions:function(r){var s="function"===typeof r?r(o.options):r;c(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:Wo(e)?sa(e):e.contextElement?sa(e.contextElement):[],popper:sa(t)};var u=function(e){var t=Ea(e);return _a.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,a=e.effect;if("function"===typeof a){var s=a({state:o,name:t,instance:l,options:n}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,r=e.popper;if(Ca(t,r)){o.rects={reference:na(t,ua(r),"fixed"===o.options.strategy),popper:oa(r)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var a=o.orderedModifiers[n],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"===typeof i&&(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,n=-1}}},update:ka((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Ca(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),l}}var Ra={passive:!0};function Ta(e){return e.split("-")[0]}function Ia(e){return e.split("-")[1]}function Ma(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Na(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Ta(o):null,i=o?Ia(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case da:t={x:s,y:r.y-n.height};break;case pa:t={x:s,y:r.y+r.height};break;case fa:t={x:r.x+r.width,y:l};break;case ma:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=a?Ma(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case ya:t[c]=t[c]-(r[u]/2-n[u]/2);break;case ga:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var La={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fa(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,h=void 0===m?0:m,v="function"===typeof u?u({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=ma,x=da,w=window;if(c){var A=ua(r),S="clientHeight",O="clientWidth";if(A===Vo(r)&&"static"!==ta(A=Zo(r)).position&&"absolute"===s&&(S="scrollHeight",O="scrollWidth"),o===da||(o===ma||o===fa)&&a===ga)x=pa,h-=(d&&A===w&&w.visualViewport?w.visualViewport.height:A[S])-n.height,h*=l?1:-1;if(o===ma||(o===da||o===pa)&&a===ga)b=fa,f-=(d&&A===w&&w.visualViewport?w.visualViewport.width:A[O])-n.width,f*=l?1:-1}var _,E=Object.assign({position:s},c&&La),k=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Qo(r*o)/o||0,y:Qo(n*o)/o||0}}({x:f,y:h},Vo(r)):{x:f,y:h};return f=k.x,h=k.y,l?Object.assign({},E,((_={})[x]=g?"0":"",_[b]=y?"0":"",_.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",_)):Object.assign({},E,((t={})[x]=g?h+"px":"",t[b]=y?f+"px":"",t.transform="",t))}const za={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]||{},n=t.attributes[e]||{},o=t.elements[e];Uo(o)&&Jo(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.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 n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Uo(n)&&Jo(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};const Da={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Oa.reduce((function(e,r){return e[r]=function(e,t,r){var n=Ta(e),o=[ma,da].indexOf(n)>=0?-1:1,a="function"===typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ma,fa].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}};var Ba={left:"right",right:"left",bottom:"top",top:"bottom"};function Va(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ba[e]}))}var Wa={start:"end",end:"start"};function Ua(e){return e.replace(/start|end/g,(function(e){return Wa[e]}))}function qa(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ha(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $a(e,t,r){return t===xa?Ha(function(e,t){var r=Vo(e),n=Zo(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=Go();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+ea(e),y:l}}(e,r)):Wo(t)?function(e,t){var r=Xo(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):Ha(function(e){var t,r=Zo(e),n=Yo(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Ho(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ho(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+ea(e),l=-n.scrollTop;return"rtl"===ta(o||r).direction&&(s+=Ho(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(Zo(e)))}function Qa(e,t,r,n){var o="clippingParents"===t?function(e){var t=sa(aa(e)),r=["absolute","fixed"].indexOf(ta(e).position)>=0&&Uo(e)?ua(e):e;return Wo(r)?t.filter((function(e){return Wo(e)&&qa(e,r)&&"body"!==Jo(e)})):[]}(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(t,r){var o=$a(e,r,n);return t.top=Ho(o.top,t.top),t.right=$o(o.right,t.right),t.bottom=$o(o.bottom,t.bottom),t.left=Ho(o.left,t.left),t}),$a(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ka(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ga(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Xa(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.strategy,i=void 0===a?e.strategy:a,s=r.boundary,l=void 0===s?ba:s,c=r.rootBoundary,u=void 0===c?xa:c,d=r.elementContext,p=void 0===d?wa:d,f=r.altBoundary,m=void 0!==f&&f,h=r.padding,v=void 0===h?0:h,y=Ka("number"!==typeof v?v:Ga(v,va)),g=p===wa?Aa:wa,b=e.rects.popper,x=e.elements[m?g:p],w=Qa(Wo(x)?x:x.contextElement||Zo(e.elements.popper),l,u,i),A=Xo(e.elements.reference),S=Na({reference:A,element:b,strategy:"absolute",placement:o}),O=Ha(Object.assign({},b,S)),_=p===wa?O:A,E={top:w.top-_.top+y.top,bottom:_.bottom-w.bottom+y.bottom,left:w.left-_.left+y.left,right:_.right-w.right+y.right},k=e.modifiersData.offset;if(p===wa&&k){var j=k[o];Object.keys(E).forEach((function(e){var t=[fa,pa].indexOf(e)>=0?1:-1,r=[da,pa].indexOf(e)>=0?"y":"x";E[e]+=j[r]*t}))}return E}function Ya(e,t,r){return Ho(e,$o(t,r))}const Ja={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,p=r.tether,f=void 0===p||p,m=r.tetherOffset,h=void 0===m?0:m,v=Xa(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Ta(t.placement),g=Ia(t.placement),b=!g,x=Ma(y),w="x"===x?"y":"x",A=t.modifiersData.popperOffsets,S=t.rects.reference,O=t.rects.popper,_="function"===typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E="number"===typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(A){if(a){var C,P="y"===x?da:ma,R="y"===x?pa:fa,T="y"===x?"height":"width",I=A[x],M=I+v[P],N=I-v[R],L=f?-O[T]/2:0,F=g===ya?S[T]:O[T],z=g===ya?-O[T]:-S[T],D=t.elements.arrow,B=f&&D?oa(D):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=V[P],U=V[R],q=Ya(0,S[T],B[T]),H=b?S[T]/2-L-q-W-E.mainAxis:F-q-W-E.mainAxis,$=b?-S[T]/2+L+q+U+E.mainAxis:z+q+U+E.mainAxis,Q=t.elements.arrow&&ua(t.elements.arrow),K=Q?"y"===x?Q.clientTop||0:Q.clientLeft||0:0,G=null!=(C=null==k?void 0:k[x])?C:0,X=I+$-G,Y=Ya(f?$o(M,I+H-G-K):M,I,f?Ho(N,X):N);A[x]=Y,j[x]=Y-I}if(s){var J,Z="x"===x?da:ma,ee="x"===x?pa:fa,te=A[w],re="y"===w?"height":"width",ne=te+v[Z],oe=te-v[ee],ae=-1!==[da,ma].indexOf(y),ie=null!=(J=null==k?void 0:k[w])?J:0,se=ae?ne:te-S[re]-O[re]-ie+E.altAxis,le=ae?te+S[re]+O[re]-ie-E.altAxis:oe,ce=f&&ae?function(e,t,r){var n=Ya(e,t,r);return n>r?r:n}(se,te,le):Ya(f?se:ne,te,f?le:oe);A[w]=ce,j[w]=ce-te}t.modifiersData[n]=j}},requiresIfExists:["offset"]};const Za={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Ta(r.placement),l=Ma(s),c=[ma,fa].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Ka("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ga(e,va))}(o.padding,r),d=oa(a),p="y"===l?da:ma,f="y"===l?pa:fa,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],h=i[l]-r.rects.reference[l],v=ua(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,b=u[p],x=y-d[c]-u[f],w=y/2-d[c]/2+g,A=Ya(b,w,x),S=l;r.modifiersData[n]=((t={})[S]=A,t.centerOffset=A-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&qa(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(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 ti(e){return[da,fa,pa,ma].some((function(t){return e[t]>=0}))}var ri=Pa({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=Vo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,Ra)})),s&&l.addEventListener("resize",r.update,Ra),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Ra)})),s&&l.removeEventListener("resize",r.update,Ra)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Na({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,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s,c={placement:Ta(t.placement),variation:Ia(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Fa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},za,Da,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,f=r.flipVariations,m=void 0===f||f,h=r.allowedAutoPlacements,v=t.options.placement,y=Ta(v),g=l||(y===v||!m?[Va(v)]:function(e){if(Ta(e)===ha)return[];var t=Va(e);return[Ua(e),t,Ua(t)]}(v)),b=[v].concat(g).reduce((function(e,r){return e.concat(Ta(r)===ha?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Oa:l,u=Ia(n),d=u?s?Sa:Sa.filter((function(e){return Ia(e)===u})):va,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,r){return t[r]=Xa(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Ta(r)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):r)}),[]),x=t.rects.reference,w=t.rects.popper,A=new Map,S=!0,O=b[0],_=0;_<b.length;_++){var E=b[_],k=Ta(E),j=Ia(E)===ya,C=[da,pa].indexOf(k)>=0,P=C?"width":"height",R=Xa(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=C?j?fa:ma:j?pa:da;x[P]>w[P]&&(T=Va(T));var I=Va(T),M=[];if(a&&M.push(R[k]<=0),s&&M.push(R[T]<=0,R[I]<=0),M.every((function(e){return e}))){O=E,S=!1;break}A.set(E,M)}if(S)for(var N=function(e){var t=b.find((function(t){var r=A.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=m?3:1;L>0;L--){if("break"===N(L))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Ja,Za,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Xa(t,{elementContext:"reference"}),s=Xa(t,{altBoundary:!0}),l=ei(i,n),c=ei(s,o,a),u=ti(l),d=ti(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),ni=r(9184);const oi=t.forwardRef((function(e,r){const{children:n,container:o,disablePortal:a=!1}=e,[i,s]=t.useState(null),l=(0,Do.A)(t.isValidElement(n)?n.ref:null,r);if((0,pr.A)((()=>{a||s(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,a]),(0,pr.A)((()=>{if(i&&!a)return(0,ni.A)(r,i),()=>{(0,ni.A)(r,null)}}),[r,i,a]),a){if(t.isValidElement(n)){const e={ref:l};return t.cloneElement(n,e)}return(0,Jt.jsx)(t.Fragment,{children:n})}return(0,Jt.jsx)(t.Fragment,{children:i?go.createPortal(n,i):i})}));const ai="base";function ii(e,t){const r=Pn.li[t];return r?(n=r,"".concat(ai,"--").concat(n)):function(e,t){return"".concat(ai,"-").concat(e,"-").concat(t)}(e,t);var n}const si="Popper";function li(e){return ii(si,e)}!function(e,t){const r={};t.forEach((t=>{r[t]=ii(e,t)}))}(si,["root"]);function ci(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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}function ui(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}function di(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=(0,Sn.A)(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,Se.A)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=(0,Se.A)({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=ci((0,Se.A)({},o,n)),s=ui(n),l=ui(o),c=t(i),u=(0,Sn.A)(null==c?void 0:c.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=(0,Se.A)({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=(0,Se.A)({},c,r,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function pi(e,t,r){return"function"===typeof e?e(t,r):e}const fi=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mi(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,Kt.A)(e,fi),s=a?{}:pi(n,o),{props:l,internalRef:c}=di((0,Se.A)({},i,{externalSlotProps:s})),u=(0,Do.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return fo(r,(0,Se.A)({},l,{ref:u}),o)}const hi={disableDefaultClasses:!1},vi=t.createContext(hi);const yi=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],gi=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function bi(e){return"function"===typeof e?e():e}function xi(e){return void 0!==e.nodeType}const wi=()=>(0,On.A)({root:["root"]},function(e){const{disableDefaultClasses:r}=t.useContext(vi);return t=>r?"":e(t)}(li)),Ai={},Si=t.forwardRef((function(e,r){var n;const{anchorEl:o,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:m={},TransitionProps:h}=e,v=(0,Kt.A)(e,yi),y=t.useRef(null),g=(0,Do.A)(y,r),b=t.useRef(null),x=(0,Do.A)(b,p),w=t.useRef(x);(0,pr.A)((()=>{w.current=x}),[x]),t.useImperativeHandle(p,(()=>b.current),[]);const A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[S,O]=t.useState(A),[_,E]=t.useState(bi(o));t.useEffect((()=>{b.current&&b.current.forceUpdate()})),t.useEffect((()=>{o&&E(bi(o))}),[o]),(0,pr.A)((()=>{if(!_||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;O(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=ri(_,y.current,(0,Se.A)({placement:A},d,{modifiers:e}));return w.current(t),()=>{t.destroy(),w.current(null)}}),[_,s,l,c,d,A]);const k={placement:S};null!==h&&(k.TransitionProps=h);const j=wi(),C=null!=(n=m.root)?n:"div",P=mi({elementType:C,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:g},ownerState:e,className:j.root});return(0,Jt.jsx)(C,(0,Se.A)({},P,{children:"function"===typeof a?a(k):a}))})),Oi=t.forwardRef((function(e,r){const{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=Ai,popperRef:f,style:m,transition:h=!1,slotProps:v={},slots:y={}}=e,g=(0,Kt.A)(e,gi),[b,x]=t.useState(!0);if(!l&&!u&&(!h||b))return null;let w;if(a)w=a;else if(n){const e=bi(n);w=e&&xi(e)?(0,Bo.A)(e).body:(0,Bo.A)(null).body}const A=u||!l||h&&!b?void 0:"none",S=h?{in:u,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,Jt.jsx)(oi,{disablePortal:s,container:w,children:(0,Jt.jsx)(Si,(0,Se.A)({anchorEl:n,direction:i,disablePortal:s,modifiers:c,ref:r,open:h?!b:u,placement:d,popperOptions:p,popperRef:f,slotProps:v,slots:y},g,{style:(0,Se.A)({position:"fixed",top:0,left:0,display:A},m),TransitionProps:S,children:o}))})}));var _i=r(2374);const Ei=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ki=(0,En.Ay)(Oi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ji=t.forwardRef((function(e,t){var r;const n=(0,_i.A)(),o=(0,_n.A)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:v,transition:y,slots:g,slotProps:b}=o,x=(0,Kt.A)(o,Ei),w=null!=(r=null==g?void 0:g.root)?r:null==s?void 0:s.Root,A=(0,Se.A)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:v,transition:y},x);return(0,Jt.jsx)(ki,(0,Se.A)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},A,{ref:t}))}));var Ci=r(3319),Pi=r(5879),Ri=r(2191),Ti=r(4516);function Ii(e){return(0,Pn.Ay)("MuiTooltip",e)}const Mi=(0,Cn.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ni=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Li=(0,En.Ay)(ji,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:r,open:n}=e;return(0,Se.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(Mi.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(Mi.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(Mi.arrow)]:(0,Se.A)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(Mi.arrow)]:(0,Se.A)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),Fi=(0,En.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,$n.A)(r.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,Qn.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(Mi.popper,'[data-popper-placement*="left"] &')]:(0,Se.A)({transformOrigin:"right center"},r.isRtl?(0,Se.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,Se.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[".".concat(Mi.popper,'[data-popper-placement*="right"] &')]:(0,Se.A)({transformOrigin:"left center"},r.isRtl?(0,Se.A)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,Se.A)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[".".concat(Mi.popper,'[data-popper-placement*="top"] &')]:(0,Se.A)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[".".concat(Mi.popper,'[data-popper-placement*="bottom"] &')]:(0,Se.A)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})});var n})),zi=(0,En.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,Qn.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let Di=!1;const Bi=new uo.E;let Vi={x:0,y:0};function Wi(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t&&t(r,...o),e(r,...o)}}const Ui=t.forwardRef((function(e,r){var n,o,a,i,s,l,c,u,d,p,f,m,h,v,y,g,b,x,w;const A=(0,_n.A)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:O,components:_={},componentsProps:E={},describeChild:k=!1,disableFocusListener:j=!1,disableHoverListener:C=!1,disableInteractive:P=!1,disableTouchListener:R=!1,enterDelay:T=100,enterNextDelay:I=0,enterTouchDelay:M=700,followCursor:N=!1,id:L,leaveDelay:F=0,leaveTouchDelay:z=1500,onClose:D,onOpen:B,open:V,placement:W="bottom",PopperComponent:U,PopperProps:q={},slotProps:H={},slots:$={},title:Q,TransitionComponent:K=zo,TransitionProps:G}=A,X=(0,Kt.A)(A,Ni),Y=t.isValidElement(O)?O:(0,Jt.jsx)("span",{children:O}),J=vo(),Z=or(),[ee,te]=t.useState(),[re,ne]=t.useState(null),oe=t.useRef(!1),ae=P||N,ie=(0,uo.A)(),se=(0,uo.A)(),le=(0,uo.A)(),ce=(0,uo.A)(),[ue,de]=(0,Ti.A)({controlled:V,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=(0,Pi.A)(L),me=t.useRef(),he=(0,Ci.A)((()=>{void 0!==me.current&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),ce.clear()}));t.useEffect((()=>he),[he]);const ve=e=>{Bi.clear(),Di=!0,de(!0),B&&!pe&&B(e)},ye=(0,Ci.A)((e=>{Bi.start(800+F,(()=>{Di=!1})),de(!1),D&&pe&&D(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),ge=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),se.clear(),le.clear(),T||Di&&I?se.start(Di?I:T,(()=>{ve(e)})):ve(e))},be=e=>{se.clear(),le.start(F,(()=>{ye(e)}))},{isFocusVisibleRef:xe,onBlur:we,onFocus:Ae,ref:Oe}=(0,Ri.A)(),[,_e]=t.useState(!1),Ee=e=>{we(e),!1===xe.current&&(_e(!1),be(e))},ke=e=>{ee||te(e.currentTarget),Ae(e),!0===xe.current&&(_e(!0),ge(e))},je=e=>{oe.current=!0;const t=Y.props;t.onTouchStart&&t.onTouchStart(e)},Ce=e=>{je(e),le.clear(),ie.clear(),he(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=me.current,ge(e)}))},Pe=e=>{Y.props.onTouchEnd&&Y.props.onTouchEnd(e),he(),le.start(z,(()=>{ye(e)}))};t.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ye(e)}}),[ye,pe]);const Re=(0,To.A)(Y.ref,Oe,te,r);Q||0===Q||(pe=!1);const Te=t.useRef(),Ie={},Me="string"===typeof Q;k?(Ie.title=pe||!Me||C?null:Q,Ie["aria-describedby"]=pe?fe:null):(Ie["aria-label"]=Me?Q:null,Ie["aria-labelledby"]=pe&&!Me?fe:null);const Ne=(0,Se.A)({},Ie,X,Y.props,{className:(0,Sn.A)(X.className,Y.props.className),onTouchStart:je,ref:Re},N?{onMouseMove:e=>{const t=Y.props;t.onMouseMove&&t.onMouseMove(e),Vi={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{});const Le={};R||(Ne.onTouchStart=Ce,Ne.onTouchEnd=Pe),C||(Ne.onMouseOver=Wi(ge,Ne.onMouseOver),Ne.onMouseLeave=Wi(be,Ne.onMouseLeave),ae||(Le.onMouseOver=ge,Le.onMouseLeave=be)),j||(Ne.onFocus=Wi(ke,Ne.onFocus),Ne.onBlur=Wi(Ee,Ne.onBlur),ae||(Le.onFocus=ke,Le.onBlur=Ee));const Fe=t.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(re),options:{element:re,padding:4}}];return null!=(e=q.popperOptions)&&e.modifiers&&(t=t.concat(q.popperOptions.modifiers)),(0,Se.A)({},q.popperOptions,{modifiers:t})}),[re,q]),ze=(0,Se.A)({},A,{isRtl:Z,arrow:S,disableInteractive:ae,placement:W,PopperComponentProp:U,touch:oe.current}),De=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,$n.A)(a.split("-")[0]))],arrow:["arrow"]};return(0,On.A)(i,Ii,t)})(ze),Be=null!=(n=null!=(o=$.popper)?o:_.Popper)?n:Li,Ve=null!=(a=null!=(i=null!=(s=$.transition)?s:_.Transition)?i:K)?a:zo,We=null!=(l=null!=(c=$.tooltip)?c:_.Tooltip)?l:Fi,Ue=null!=(u=null!=(d=$.arrow)?d:_.Arrow)?u:zi,qe=fo(Be,(0,Se.A)({},q,null!=(p=H.popper)?p:E.popper,{className:(0,Sn.A)(De.popper,null==q?void 0:q.className,null==(f=null!=(m=H.popper)?m:E.popper)?void 0:f.className)}),ze),He=fo(Ve,(0,Se.A)({},G,null!=(h=H.transition)?h:E.transition),ze),$e=fo(We,(0,Se.A)({},null!=(v=H.tooltip)?v:E.tooltip,{className:(0,Sn.A)(De.tooltip,null==(y=null!=(g=H.tooltip)?g:E.tooltip)?void 0:y.className)}),ze),Qe=fo(Ue,(0,Se.A)({},null!=(b=H.arrow)?b:E.arrow,{className:(0,Sn.A)(De.arrow,null==(x=null!=(w=H.arrow)?w:E.arrow)?void 0:x.className)}),ze);return(0,Jt.jsxs)(t.Fragment,{children:[t.cloneElement(Y,Ne),(0,Jt.jsx)(Be,(0,Se.A)({as:null!=U?U:ji,placement:W,anchorEl:N?{getBoundingClientRect:()=>({top:Vi.y,left:Vi.x,right:Vi.x,bottom:Vi.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},Le,qe,{popperOptions:Fe,children:e=>{let{TransitionProps:t}=e;return(0,Jt.jsx)(Ve,(0,Se.A)({timeout:J.transitions.duration.shorter},t,He,{children:(0,Jt.jsxs)(We,(0,Se.A)({},$e,{children:[Q,S?(0,Jt.jsx)(Ue,(0,Se.A)({},Qe,{ref:ne})):null]}))}))}}))]})})),qi=Ui;function Hi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $i(e,r){var n=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return r&&(0,t.isValidElement)(e)?r(e):e}(e)})),n}function Qi(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ki(e,r,n){var o=$i(e.children),a=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(r,o);return Object.keys(a).forEach((function(i){var s=a[i];if((0,t.isValidElement)(s)){var l=i in r,c=i in o,u=r[i],d=(0,t.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,t.isValidElement)(u)&&(a[i]=(0,t.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Qi(s,"exit",e),enter:Qi(s,"enter",e)})):a[i]=(0,t.cloneElement)(s,{in:!1}):a[i]=(0,t.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Qi(s,"exit",e),enter:Qi(s,"enter",e)})}})),a}var Gi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xi=function(e){function r(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,yo.A)(r,e);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,r){var n,o,a=r.children,i=r.handleExited;return{children:r.firstRender?(n=e,o=i,$i(n.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Qi(e,"appear",n),enter:Qi(e,"enter",n),exit:Qi(e,"exit",n)})}))):Ki(e,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=$i(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,Se.A)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,r=e.component,n=e.childFactory,o=(0,Kt.A)(e,["component","childFactory"]),a=this.state.contextValue,i=Gi(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?t.createElement(wo.Provider,{value:a},i):t.createElement(wo.Provider,{value:a},t.createElement(r,o,i))},r}(t.Component);Xi.propTypes={},Xi.defaultProps={component:"div",childFactory:function(e){return e}};const Yi=Xi;var Ji=r(909);const Zi=function(e){const{className:r,classes:n,pulsate:o=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=t.useState(!1),f=(0,Sn.A)(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+i,left:-s/2+a},h=(0,Sn.A)(n.child,d&&n.childLeaving,o&&n.childPulsate);return l||d||p(!0),t.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,Jt.jsx)("span",{className:f,style:m,children:(0,Jt.jsx)("span",{className:h})})};const es=(0,Cn.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var ts,rs,ns,os;const as=["center","classes","className"];let is,ss,ls,cs;const us=(0,Ji.i7)(is||(is=ts||(ts=Hi(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),ds=(0,Ji.i7)(ss||(ss=rs||(rs=Hi(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),ps=(0,Ji.i7)(ls||(ls=ns||(ns=Hi(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),fs=(0,En.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ms=(0,En.Ay)(Zi,{name:"MuiTouchRipple",slot:"Ripple"})(cs||(cs=os||(os=Hi(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),es.rippleVisible,us,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),es.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),es.child,es.childLeaving,ds,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),es.childPulsate,ps,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),hs=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=n,s=(0,Kt.A)(n,as),[l,c]=t.useState([]),u=t.useRef(0),d=t.useRef(null);t.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=t.useRef(!1),f=(0,uo.A)(),m=t.useRef(null),h=t.useRef(null),v=t.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:i}=e;c((e=>[...e,(0,Jt.jsx)(ms,{classes:{ripple:(0,Sn.A)(a.ripple,es.ripple),rippleVisible:(0,Sn.A)(a.rippleVisible,es.rippleVisible),ripplePulsate:(0,Sn.A)(a.ripplePulsate,es.ripplePulsate),child:(0,Sn.A)(a.child,es.child),childLeaving:(0,Sn.A)(a.childLeaving,es.childLeaving),childPulsate:(0,Sn.A)(a.childPulsate,es.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},u.current)])),u.current+=1,d.current=i}),[a]),y=t.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:n=!1,center:a=o||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{v({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):v({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[o,v,f]),g=t.useCallback((()=>{y({},{pulsate:!0})}),[y]),b=t.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{b(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return t.useImperativeHandle(r,(()=>({pulsate:g,start:y,stop:b})),[g,y,b]),(0,Jt.jsx)(fs,(0,Se.A)({className:(0,Sn.A)(es.root,a.root,i),ref:h},s,{children:(0,Jt.jsx)(Yi,{component:null,exit:!0,children:l})}))})),vs=hs;function ys(e){return(0,Pn.Ay)("MuiButtonBase",e)}const gs=(0,Cn.A)("MuiButtonBase",["root","disabled","focusVisible"]),bs=["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"],xs=(0,En.Ay)("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"},["&.".concat(gs.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ws=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:v,onDragLeave:y,onFocus:g,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:A,onMouseLeave:S,onMouseUp:O,onTouchEnd:_,onTouchMove:E,onTouchStart:k,tabIndex:j=0,TouchRippleProps:C,touchRippleRef:P,type:R}=n,T=(0,Kt.A)(n,bs),I=t.useRef(null),M=t.useRef(null),N=(0,To.A)(M,P),{isFocusVisibleRef:L,onFocus:F,onBlur:z,ref:D}=(0,Ri.A)(),[B,V]=t.useState(!1);c&&B&&V(!1),t.useImperativeHandle(o,(()=>({focusVisible:()=>{V(!0),I.current.focus()}})),[]);const[W,U]=t.useState(!1);t.useEffect((()=>{U(!0)}),[]);const q=W&&!u&&!c;function H(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,Ci.A)((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}t.useEffect((()=>{B&&p&&!u&&W&&M.current.pulsate()}),[u,p,B,W]);const $=H("start",A),Q=H("stop",v),K=H("stop",y),G=H("stop",O),X=H("stop",(e=>{B&&e.preventDefault(),S&&S(e)})),Y=H("start",k),J=H("stop",_),Z=H("stop",E),ee=H("stop",(e=>{z(e),!1===L.current&&V(!1),m&&m(e)}),!1),te=(0,Ci.A)((e=>{I.current||(I.current=e.currentTarget),F(e),!0===L.current&&(V(!0),b&&b(e)),g&&g(e)})),re=()=>{const e=I.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=t.useRef(!1),oe=(0,Ci.A)((e=>{p&&!ne.current&&B&&M.current&&" "===e.key&&(ne.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),ae=(0,Ci.A)((e=>{p&&" "===e.key&&M.current&&B&&!e.defaultPrevented&&(ne.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=f);const se={};"button"===ie?(se.type=void 0===R?"button":R,se.disabled=c):(T.href||T.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=(0,To.A)(r,D,I);const ce=(0,Se.A)({},n,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:j,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a={root:["root",t&&"disabled",r&&"focusVisible"]},i=(0,On.A)(a,ys,o);return r&&n&&(i.root+=" ".concat(n)),i})(ce);return(0,Jt.jsxs)(xs,(0,Se.A)({as:ie,className:(0,Sn.A)(ue.root,s),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:Q,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:$,onMouseLeave:X,onMouseUp:G,onDragLeave:K,onTouchEnd:J,onTouchMove:Z,onTouchStart:Y,ref:le,tabIndex:c?-1:j,type:R},se,T,{children:[i,q?(0,Jt.jsx)(vs,(0,Se.A)({ref:N,center:a},C)):null]}))})),As=ws;function Ss(e){return(0,Pn.Ay)("MuiIconButton",e)}const Os=(0,Cn.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),_s=["edge","children","className","color","disabled","disableFocusRipple","size"],Es=(0,En.Ay)(As,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,$n.A)(r.color))],r.edge&&t["edge".concat((0,$n.A)(r.edge))],t["size".concat((0,$n.A)(r.size))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(e=>{let{theme:t,ownerState:r}=e;var n;const o=null==(n=(t.vars||t).palette)?void 0:n[r.color];return(0,Se.A)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,Se.A)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,Se.A)({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Os.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),ks=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=(0,Kt.A)(r,_s),d=(0,Se.A)({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,i={root:["root",r&&"disabled","default"!==n&&"color".concat((0,$n.A)(n)),o&&"edge".concat((0,$n.A)(o)),"size".concat((0,$n.A)(a))]};return(0,On.A)(i,Ss,t)})(d);return(0,Jt.jsx)(Es,(0,Se.A)({className:(0,Sn.A)(p.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))})),js=ks;var Cs=r(9611),Ps=function(){var e=io(),r=(0,t.useCallback)((function(t,r){return e.translate(t,r)}),[e]);return e?r:Rs},Rs=function(e){return e},Ts=function(){var e=yr((function(e){return null===e||void 0===e?void 0:e.breakpoints.down("sm")}),{noSsr:!0});return jt("sidebar.open",!e)},Is=function(e){var r=Ps(),n=e.className,o=Ts(),a=o[0],i=o[1];return t.createElement(qi,{className:n,title:r(a?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},t.createElement(Ls,{color:"inherit",onClick:function(){return i(!a)}},t.createElement(Cs.A,{classes:{root:a?Ns.menuButtonIconOpen:Ns.menuButtonIconClosed}})))},Ms="RaSidebarToggleButton",Ns={menuButtonIconClosed:"".concat(Ms,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Ms,"-menuButtonIconOpen")},Ls=(0,En.Ay)(js,{name:Ms,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Ns.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(Ns.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}));function Fs(e){return(0,Pn.Ay)("MuiCircularProgress",e)}(0,Cn.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var zs,Ds,Bs,Vs;const Ws=["className","color","disableShrink","size","style","thickness","value","variant"];let Us,qs,Hs,$s;const Qs=44,Ks=(0,Ji.i7)(Us||(Us=zs||(zs=Hi(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),Gs=(0,Ji.i7)(qs||(qs=Ds||(Ds=Hi(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),Xs=(0,En.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,$n.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Ji.AH)(Hs||(Hs=Bs||(Bs=Hi(["\n animation: "," 1.4s linear infinite;\n "]))),Ks)})),Ys=(0,En.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Js=(0,En.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t["circle".concat((0,$n.A)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Ji.AH)($s||($s=Vs||(Vs=Hi(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),Gs)})),Zs=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:a=!1,size:i=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=r,d=(0,Kt.A)(r,Ws),p=(0,Se.A)({},r,{color:o,disableShrink:a,size:i,thickness:l,value:c,variant:u}),f=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,"color".concat((0,$n.A)(n))],svg:["svg"],circle:["circle","circle".concat((0,$n.A)(r)),o&&"circleDisableShrink"]};return(0,On.A)(a,Fs,t)})(p),m={},h={},v={};if("determinate"===u){const e=2*Math.PI*((Qs-l)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),h.transform="rotate(-90deg)"}return(0,Jt.jsx)(Xs,(0,Se.A)({className:(0,Sn.A)(f.root,n),style:(0,Se.A)({width:i,height:i},h,s),ownerState:p,ref:t,role:"progressbar"},v,d,{children:(0,Jt.jsx)(Ys,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(Qs," ").concat(Qs),children:(0,Jt.jsx)(Js,{className:f.circle,style:m,ownerState:p,cx:Qs,cy:Qs,r:(Qs-l)/2,fill:"none",strokeWidth:l})})}))})),el=Zs;var tl=r(8625),rl=function(){var e=(0,d.useQueryClient)();return(0,t.useCallback)((function(){e.invalidateQueries()}),[e])},nl=function(){return nl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nl.apply(this,arguments)},ol=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},al=function(e){var r=e.label,n=void 0===r?"ra.action.refresh":r,o=e.icon,a=void 0===o?il:o,i=e.onClick,s=e.className,l=ol(e,["label","icon","onClick","className"]),c=rl(),u=Ps(),d=(0,t.useCallback)((function(e){e.preventDefault(),c(),"function"===typeof i&&i(e)}),[c,i]);return t.createElement(qi,{title:n&&u(n,{_:"Refresh"})},t.createElement(js,nl({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:d},l),a))},il=t.createElement(tl.A,null);al.propTypes={className:Bn().string,label:Bn().string,icon:Bn().element};var sl,ll,cl=function(){return cl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl.apply(this,arguments)},ul=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dl=function(e){var r=e.className,n=e.onClick,o=e.sx,a=ul(e,["className","onClick","sx"]),i=function(){var e=(0,d.useQueryClient)(),r=t.useRef(!1),n=t.useRef(e.isFetching()>0),o=t.useRef(e.isMutating()>0),a=t.useState(n.current||o.current),i=a[0],s=a[1];return t.useEffect((function(){r.current=!0;var t=e.getQueryCache().subscribe(d.notifyManager.batchCalls((function(){r.current&&(n.current=e.isFetching()>0,s(n.current||o.current))}))),a=e.getMutationCache().subscribe(d.notifyManager.batchCalls((function(){r.current&&(o.current=e.isMutating()>0,s(n.current||o.current))})));return function(){r.current=!1,t(),a()}}),[e]),i}(),s=vo();return t.createElement(ml,{className:r,sx:o},t.createElement(al,{className:"".concat(fl.loadedIcon," ").concat(i&&fl.loadedLoading),onClick:n}),i&&t.createElement(el,cl({className:zn("app-loader",fl.loader),color:"inherit",size:s.spacing(2),thickness:6},a)))};dl.propTypes={classes:Bn().object,className:Bn().string,width:Bn().string};var pl="RaLoadingIndicator",fl={loader:"".concat(pl,"-loader"),loadedLoading:"".concat(pl,"-loadedLoading"),loadedIcon:"".concat(pl,"-loadedIcon")},ml=(0,En.Ay)("div",{name:pl,overridesResolver:function(e,t){return t.root}})(((sl={position:"relative"})["& .".concat(fl.loadedIcon)]=((ll={})["&.".concat(fl.loadedLoading)]={opacity:0},ll),sl["& .".concat(fl.loader)]={position:"absolute",top:"30%",left:"30%"},sl)),hl=function(){return hl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hl.apply(this,arguments)},vl=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},yl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gl={id:""},bl={staleTime:3e5},xl=function(e){void 0===e&&(e=bl);var r=Er(),n=(0,d.useQuery)(["auth","getIdentity"],(function(){return vl(void 0,void 0,void 0,(function(){return yl(this,(function(e){return r&&"function"===typeof r.getIdentity?[2,r.getIdentity()]:[2,gl]}))}))}),hl({enabled:"function"===typeof(null===r||void 0===r?void 0:r.getIdentity)},e));return(0,t.useMemo)((function(){return n.isLoading?{isLoading:!0}:n.error?{error:n.error,isLoading:!1}:n.isSuccess?{data:n.data,identity:n.data,refetch:n.refetch,isLoading:!1}:{isLoading:!1}}),[n])};var wl=r(2018),Al=r(1475);function Sl(e){return(0,Pn.Ay)("MuiButton",e)}const Ol=(0,Cn.A)("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"]);const _l=t.createContext({});const El=t.createContext(void 0),kl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jl=e=>(0,Se.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}}),Cl=(0,En.Ay)(As,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,$n.A)(r.color))],t["size".concat((0,$n.A)(r.size))],t["".concat(r.variant,"Size").concat((0,$n.A)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],i="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,Se.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,Se.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===r.variant&&"inherit"!==r.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===r.variant&&"inherit"!==r.color&&{border:"1px solid ".concat((t.vars||t).palette[r.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===r.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===r.variant&&"inherit"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}),"&:active":(0,Se.A)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(Ol.focusVisible)]:(0,Se.A)({},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(Ol.disabled)]:(0,Se.A)({color:(t.vars||t).palette.action.disabled},"outlined"===r.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===r.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===r.variant&&{padding:"6px 8px"},"text"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main},"outlined"===r.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):"1px solid ".concat((0,Qn.X4)(t.palette[r.color].main,.5))},"contained"===r.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===r.variant&&"inherit"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main},"inherit"===r.color&&{color:"inherit",borderColor:"currentColor"},"small"===r.size&&"text"===r.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"text"===r.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"outlined"===r.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"outlined"===r.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===r.size&&"contained"===r.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===r.size&&"contained"===r.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},r.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(Ol.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(Ol.disabled)]:{boxShadow:"none"}}})),Pl=(0,En.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t["iconSize".concat((0,$n.A)(r.size))]]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},jl(t))})),Rl=(0,En.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t["iconSize".concat((0,$n.A)(r.size))]]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},jl(t))})),Tl=t.forwardRef((function(e,r){const n=t.useContext(_l),o=t.useContext(El),a=(0,wl.A)(n,e),i=(0,_n.A)({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:m,focusVisibleClassName:h,fullWidth:v=!1,size:y="medium",startIcon:g,type:b,variant:x="text"}=i,w=(0,Kt.A)(i,kl),A=(0,Se.A)({},i,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:v,size:y,type:b,variant:x}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e,s={root:["root",a,"".concat(a).concat((0,$n.A)(t)),"size".concat((0,$n.A)(o)),"".concat(a,"Size").concat((0,$n.A)(o)),"color".concat((0,$n.A)(t)),r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,$n.A)(o))],endIcon:["icon","endIcon","iconSize".concat((0,$n.A)(o))]},l=(0,On.A)(s,Sl,i);return(0,Se.A)({},i,l)})(A),O=g&&(0,Jt.jsx)(Pl,{className:S.startIcon,ownerState:A,children:g}),_=m&&(0,Jt.jsx)(Rl,{className:S.endIcon,ownerState:A,children:m}),E=o||"";return(0,Jt.jsxs)(Cl,(0,Se.A)({ownerState:A,className:(0,Sn.A)(n.className,S.root,u,E),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:(0,Sn.A)(S.focusVisible,h),ref:r,type:b},w,{classes:S,children:[O,s,_]}))})),Il=Tl;function Ml(e){return _n.A}var Nl=r(9662);const Ll=(0,Nl.A)((0,Jt.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Fl(e){return(0,Pn.Ay)("MuiAvatar",e)}(0,Cn.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const zl=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Dl=["component","slots","slotProps"],Bl=["component"];const Vl=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],Wl=Ml(),Ul=(0,En.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,Se.A)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,Se.A)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),ql=(0,En.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Hl=(0,En.Ay)(Ll,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const $l=t.forwardRef((function(e,r){const n=Wl({props:e,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:f,variant:m="circular"}=n,h=(0,Kt.A)(n,Vl);let v=null;const y=function(e){let{crossOrigin:r,referrerPolicy:n,src:o,srcSet:a}=e;const[i,s]=t.useState(!1);return t.useEffect((()=>{if(!o&&!a)return;s(!1);let e=!0;const t=new Image;return t.onload=()=>{e&&s("loaded")},t.onerror=()=>{e&&s("error")},t.crossOrigin=r,t.referrerPolicy=n,t.src=o,a&&(t.srcset=a),()=>{e=!1}}),[r,n,o,a]),i}((0,Se.A)({},u,{src:p,srcSet:f})),g=p||f,b=g&&"error"!==y,x=(0,Se.A)({},n,{colorDefault:!b,component:s,variant:m}),w=(e=>{const{classes:t,variant:r,colorDefault:n}=e,o={root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,On.A)(o,Fl,t)})(x),[A,S]=function(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:s}=t,l=(0,Kt.A)(t,zl),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=(0,Kt.A)(a,Dl),f=u[e]||n,m=pi(d[e],o),h=di((0,Se.A)({className:r},l,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:v},internalRef:y}=h,g=(0,Kt.A)(h.props,Bl),b=(0,Do.A)(y,null==m?void 0:m.ref,t.ref),x=i?i(g):{},w=(0,Se.A)({},o,x),A="root"===e?v||c:v,S=fo(f,(0,Se.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,g,A&&{as:A},{ref:b}),w);return Object.keys(x).forEach((e=>{delete S[e]})),[f,S]}("img",{className:w.img,elementType:ql,externalForwardedProps:{slots:l,slotProps:{img:(0,Se.A)({},u,c.img)}},additionalProps:{alt:o,src:p,srcSet:f,sizes:d},ownerState:x});return v=b?(0,Jt.jsx)(A,(0,Se.A)({},S)):a||0===a?a:g&&o?o[0]:(0,Jt.jsx)(Hl,{ownerState:x,className:w.fallback}),(0,Jt.jsx)(Ul,(0,Se.A)({as:s,ownerState:x,className:(0,Sn.A)(w.root,i),ref:r},h,{children:v}))})),Ql=$l;var Kl=r(2086),Gl=r(2427);const Xl=t.createContext({});function Yl(e){return(0,Pn.Ay)("MuiList",e)}(0,Cn.A)("MuiList",["root","padding","dense","subheader"]);const Jl=["children","className","component","dense","disablePadding","subheader"],Zl=(0,En.Ay)("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]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),ec=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,Kt.A)(n,Jl),d=t.useMemo((()=>({dense:s})),[s]),p=(0,Se.A)({},n,{component:i,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,a={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,On.A)(a,Yl,t)})(p);return(0,Jt.jsx)(Xl.Provider,{value:d,children:(0,Jt.jsxs)(Zl,(0,Se.A)({as:i,className:(0,Sn.A)(f.root,a),ref:r,ownerState:p},u,{children:[c,o]}))})})),tc=ec;function rc(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const nc=rc;var oc=r(5013);const ac=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ic(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function lc(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 cc(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&lc(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const uc=t.forwardRef((function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=(0,Kt.A)(e,ac),f=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,oc.A)((()=>{o&&f.current.focus()}),[o]),t.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t;const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const t="".concat(nc((0,Gl.A)(e)),"px");f.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,f.current.style.width="calc(100% + ".concat(t,")")}return f.current}})),[]);const h=(0,To.A)(f,r);let v=-1;t.Children.forEach(i,((e,r)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=r),v===r&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===r&&(v+=1,v>=i.length&&(v=-1))}));const y=t.Children.map(i,((e,r)=>{if(r===v){const r={};return a&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return(0,Jt.jsx)(tc,(0,Se.A)({role:"menu",ref:h,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=(0,Gl.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),cc(t,n,c,l,ic);else if("ArrowUp"===r)e.preventDefault(),cc(t,n,c,l,sc);else if("Home"===r)e.preventDefault(),cc(t,null,c,l,ic);else if("End"===r)e.preventDefault(),cc(t,null,c,l,sc);else if(1===r.length){const o=m.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&lc(n,o);o.previousKeyMatched&&(s||cc(t,n,!1,l,ic,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:o?0:-1},p,{children:y}))}));var dc=r(950),pc=r(6078),fc=r(4626),mc=r(4708),hc=r(6288);function vc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yc(e){return parseInt((0,hc.A)(e).getComputedStyle(e).paddingRight,10)||0}function gc(e,t,r,n,o){const a=[t,r,...n];[].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&&vc(e,o)}))}function bc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function xc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Bo.A)(e);return t.body===e?(0,hc.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=rc((0,Bo.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(yc(n)+e,"px");const t=(0,Bo.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(yc(t)+e,"px")}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Bo.A)(n).body;else{const t=n.parentElement,r=(0,hc.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}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((e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}const wc=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&&vc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gc(t,e.mount,e.modalRef,n,!0);const o=bc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=bc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=xc(n,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.modals.indexOf(e);if(-1===r)return r;const n=bc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&vc(e.modalRef,t),gc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&vc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ac(e){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:a=wc,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,f=t.useRef({}),m=t.useRef(null),h=t.useRef(null),v=(0,Do.A)(h,p),[y,g]=t.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const w=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),A=()=>{a.mount(w(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},S=(0,fc.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(r)||(0,Bo.A)(m.current).body;a.add(w(),e),h.current&&A()})),O=t.useCallback((()=>a.isTopModal(w())),[a]),_=(0,fc.A)((e=>{m.current=e,e&&(d&&O()?A():h.current&&vc(h.current,x))})),E=t.useCallback((()=>{a.remove(w(),x)}),[x,a]);t.useEffect((()=>()=>{E()}),[E]),t.useEffect((()=>{d?S():b&&i||E()}),[d,E,b,i,S]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&O()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},j=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ci(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,Se.A)({},r,t);return(0,Se.A)({role:"presentation"},n,{onKeyDown:k(n),ref:v})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,Se.A)({"aria-hidden":!0},e,{onClick:j(e),open:d})},getTransitionProps:()=>({onEnter:(0,mc.A)((()=>{g(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,mc.A)((()=>{g(!0),l&&l(),i&&E()}),null==c?void 0:c.props.onExited)}),rootRef:v,portalRef:_,isTopModal:O,exited:y,hasTransition:b}}const Sc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Oc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,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 _c(){return!0}function Ec(e){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:i=Oc,isEnabled:s=_c,open:l}=e,c=t.useRef(!1),u=t.useRef(null),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),m=t.useRef(!1),h=t.useRef(null),v=(0,Do.A)(r.ref,h),y=t.useRef(null);t.useEffect((()=>{l&&h.current&&(m.current=!n)}),[n,l]),t.useEffect((()=>{if(!l||!h.current)return;const e=(0,Bo.A)(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)}}),[l]),t.useEffect((()=>{if(!l||!h.current)return;const e=(0,Bo.A)(h.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==u.current&&e.activeElement!==d.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!==u.current&&e.activeElement!==d.current||(r=i(h.current)),r.length>0){var n,a;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(a=y.current)?void 0:a.key)),t=r[0],o=r[r.length-1];"string"!==typeof t&&"string"!==typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,a,s,l,i]);const g=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)("div",{tabIndex:l?0:-1,onFocus:g,ref:u,"data-testid":"sentinelStart"}),t.cloneElement(r,{ref:v,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,Jt.jsx)("div",{tabIndex:l?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const kc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],jc={entering:{opacity:1},entered:{opacity:1}},Cc=t.forwardRef((function(e,r){const n=vo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:v,timeout:y=o,TransitionComponent:g=Co}=e,b=(0,Kt.A)(e,kc),x=t.useRef(null),w=(0,To.A)(x,s.ref,r),A=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},S=A(p),O=A(((e,t)=>{Po(e);const r=Ro({style:v,timeout:y,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),_=A(d),E=A(h),k=A((e=>{const t=Ro({style:v,timeout:y,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),j=A(m);return(0,Jt.jsx)(g,(0,Se.A)({appear:i,in:c,nodeRef:x,onEnter:O,onEntered:_,onEntering:S,onExit:k,onExited:j,onExiting:E,addEndListener:e=>{a&&a(x.current,e)},timeout:y},b,{children:(e,r)=>t.cloneElement(s,(0,Se.A)({style:(0,Se.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},jc[e],v,s.props.style),ref:w},r))}))})),Pc=Cc;function Rc(e){return(0,Pn.Ay)("MuiBackdrop",e)}(0,Cn.A)("MuiBackdrop",["root","invisible"]);const Tc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ic=(0,En.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,Se.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"},t.invisible&&{backgroundColor:"transparent"})})),Mc=t.forwardRef((function(e,t){var r,n,o;const a=(0,_n.A)({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=Pc,transitionDuration:v}=a,y=(0,Kt.A)(a,Tc),g=(0,Se.A)({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,On.A)(n,Rc,t)})(g),x=null!=(r=f.root)?r:u.root;return(0,Jt.jsx)(h,(0,Se.A)({in:p,timeout:v},y,{children:(0,Jt.jsx)(Ic,(0,Se.A)({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:c.Root)?n:l,className:(0,Sn.A)(b.root,s,null==x?void 0:x.className),ownerState:(0,Se.A)({},g,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))})),Nc=Mc;function Lc(e){return(0,Pn.Ay)("MuiModal",e)}(0,Cn.A)("MuiModal",["root","hidden","backdrop"]);const Fc=["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"],zc=(0,En.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),Dc=(0,En.Ay)(Nc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bc=t.forwardRef((function(e,r){var n,o,a,i,s,l;const c=(0,_n.A)({name:"MuiModal",props:e}),{BackdropComponent:u=Dc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:v,components:y={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:w=!1,disablePortal:A=!1,disableRestoreFocus:S=!1,disableScrollLock:O=!1,hideBackdrop:_=!1,keepMounted:E=!1,onBackdropClick:k,open:j,slotProps:C,slots:P}=c,R=(0,Kt.A)(c,Fc),T=(0,Se.A)({},c,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:w,disablePortal:A,disableRestoreFocus:S,disableScrollLock:O,hideBackdrop:_,keepMounted:E}),{getRootProps:I,getBackdropProps:M,getTransitionProps:N,portalRef:L,isTopModal:F,exited:z,hasTransition:D}=Ac((0,Se.A)({},T,{rootRef:r})),B=(0,Se.A)({},T,{exited:z}),V=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,On.A)(o,Lc,n)})(B),W={};if(void 0===m.props.tabIndex&&(W.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();W.onEnter=e,W.onExited=t}const U=null!=(n=null!=(o=null==P?void 0:P.root)?o:y.Root)?n:zc,q=null!=(a=null!=(i=null==P?void 0:P.backdrop)?i:y.Backdrop)?a:u,H=null!=(s=null==C?void 0:C.root)?s:g.root,$=null!=(l=null==C?void 0:C.backdrop)?l:g.backdrop,Q=mi({elementType:U,externalSlotProps:H,externalForwardedProps:R,getSlotProps:I,additionalProps:{ref:r,as:v},ownerState:B,className:(0,Sn.A)(p,null==H?void 0:H.className,null==V?void 0:V.root,!B.open&&B.exited&&(null==V?void 0:V.hidden))}),K=mi({elementType:q,externalSlotProps:$,additionalProps:d,getSlotProps:e=>M((0,Se.A)({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,Sn.A)(null==$?void 0:$.className,null==d?void 0:d.className,null==V?void 0:V.backdrop),ownerState:B});return E||j||D&&!z?(0,Jt.jsx)(oi,{ref:L,container:h,disablePortal:A,children:(0,Jt.jsxs)(U,(0,Se.A)({},Q,{children:[!_&&u?(0,Jt.jsx)(q,(0,Se.A)({},K)):null,(0,Jt.jsx)(Ec,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:F,open:j,children:t.cloneElement(m,W)})]}))}):null})),Vc=Bc;function Wc(e){return(0,Pn.Ay)("MuiPopover",e)}(0,Cn.A)("MuiPopover",["root","paper"]);const Uc=["onEntering"],qc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Hc=["slotProps"];function $c(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Qc(e,t){let r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Kc(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function Gc(e){return"function"===typeof e?e():e}const Xc=(0,En.Ay)(Vc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yc=(0,En.Ay)(Zn,{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}),Jc=t.forwardRef((function(e,r){var n,o,a;const i=(0,_n.A)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:v=16,open:y,PaperProps:g={},slots:b,slotProps:x,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:A=zo,transitionDuration:S="auto",TransitionProps:{onEntering:O}={},disableScrollLock:_=!1}=i,E=(0,Kt.A)(i.TransitionProps,Uc),k=(0,Kt.A)(i,qc),j=null!=(n=null==x?void 0:x.paper)?n:g,C=t.useRef(),P=(0,To.A)(C,j.ref),R=(0,Se.A)({},i,{anchorOrigin:c,anchorReference:d,elevation:h,marginThreshold:v,externalPaperSlotProps:j,transformOrigin:w,TransitionComponent:A,transitionDuration:S,TransitionProps:E}),T=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"],paper:["paper"]},Wc,t)})(R),I=t.useCallback((()=>{if("anchorPosition"===d)return u;const e=Gc(l),t=(e&&1===e.nodeType?e:(0,Gl.A)(C.current).body).getBoundingClientRect();return{top:t.top+$c(t,c.vertical),left:t.left+Qc(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),M=t.useCallback((e=>({vertical:$c(e,w.vertical),horizontal:Qc(e,w.horizontal)})),[w.horizontal,w.vertical]),N=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Kc(r)};const n=I();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,c=(0,pc.A)(Gc(l)),u=c.innerHeight-v,p=c.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>u){const e=i-u;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>p){const e=s-p;a-=e,r.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:Kc(r)}}),[l,d,I,M,v]),[L,F]=t.useState(y),z=t.useCallback((()=>{const e=C.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[N]);t.useEffect((()=>(_&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,_,z]);t.useEffect((()=>{y&&z()})),t.useImperativeHandle(s,(()=>y?{updatePosition:()=>{z()}}:null),[y,z]),t.useEffect((()=>{if(!y)return;const e=(0,dc.A)((()=>{z()})),t=(0,pc.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,y,z]);let D=S;"auto"!==S||A.muiSupportAuto||(D=void 0);const B=m||(l?(0,Gl.A)(Gc(l)).body:void 0),V=null!=(o=null==b?void 0:b.root)?o:Xc,W=null!=(a=null==b?void 0:b.paper)?a:Yc,U=mi({elementType:W,externalSlotProps:(0,Se.A)({},j,{style:L?j.style:(0,Se.A)({},j.style,{opacity:0})}),additionalProps:{elevation:h,ref:P},ownerState:R,className:(0,Sn.A)(T.paper,null==j?void 0:j.className)}),q=mi({elementType:V,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:B,open:y},ownerState:R,className:(0,Sn.A)(T.root,f)}),{slotProps:H}=q,$=(0,Kt.A)(q,Hc);return(0,Jt.jsx)(V,(0,Se.A)({},$,!po(V)&&{slotProps:H,disableScrollLock:_},{children:(0,Jt.jsx)(A,(0,Se.A)({appear:!0,in:y,onEntering:(e,t)=>{O&&O(e,t),z()},onExited:()=>{F(!1)},timeout:D},E,{children:(0,Jt.jsx)(W,(0,Se.A)({},U,{children:p}))}))}))})),Zc=Jc;function eu(e){return(0,Pn.Ay)("MuiMenu",e)}(0,Cn.A)("MuiMenu",["root","paper","list"]);const tu=["onEntering"],ru=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nu={vertical:"top",horizontal:"right"},ou={vertical:"top",horizontal:"left"},au=(0,En.Ay)(Zc,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iu=(0,En.Ay)(Yc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),su=(0,En.Ay)(uc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lu=t.forwardRef((function(e,r){var n,o;const a=(0,_n.A)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:v}={},variant:y="selectedMenu",slots:g={},slotProps:b={}}=a,x=(0,Kt.A)(a.TransitionProps,tu),w=(0,Kt.A)(a,ru),A=or(),S=(0,Se.A)({},a,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:u,onEntering:v,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:y}),O=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"],paper:["paper"],list:["list"]},eu,t)})(S),_=i&&!c&&p,E=t.useRef(null);let k=-1;t.Children.map(s,((e,r)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===k)&&(k=r))}));const j=null!=(n=g.paper)?n:iu,C=null!=(o=b.paper)?o:f,P=mi({elementType:g.root,externalSlotProps:b.root,ownerState:S,className:[O.root,l]}),R=mi({elementType:j,externalSlotProps:C,ownerState:S,className:O.paper});return(0,Jt.jsx)(au,(0,Se.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?nu:ou,slots:{paper:j,root:g.root},slotProps:{root:P,paper:R},open:p,ref:r,transitionDuration:h,TransitionProps:(0,Se.A)({onEntering:(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:A?"rtl":"ltr"}),v&&v(e,t)}},x),ownerState:S},w,{classes:m,children:(0,Jt.jsx)(su,(0,Se.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:E,autoFocus:i&&(-1===k||c),autoFocusItem:_,variant:y},u,{className:(0,Sn.A)(O.list,u.className),children:s}))}))})),cu=lu;var uu=r(9089),du=(0,t.createContext)(void 0),pu=function(e){var r=e.children,n=e.value;return t.createElement(du.Provider,{value:n},r)};function fu(e){return(0,Pn.Ay)("MuiListItemIcon",e)}const mu=(0,Cn.A)("MuiListItemIcon",["root","alignItemsFlexStart"]),hu=["className"],vu=(0,En.Ay)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),yu=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiListItemIcon"}),{className:o}=n,a=(0,Kt.A)(n,hu),i=t.useContext(Xl),s=(0,Se.A)({},n,{alignItems:i.alignItems}),l=(e=>{const{alignItems:t,classes:r}=e,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,On.A)(n,fu,r)})(s);return(0,Jt.jsx)(vu,(0,Se.A)({className:(0,Sn.A)(l.root,o),ownerState:s,ref:r},a))})),gu=yu;var bu=r(8698);function xu(e){return(0,Pn.Ay)("MuiTypography",e)}(0,Cn.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Au=(0,En.Ay)("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".concat((0,$n.A)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),Su={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ou={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_u=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiTypography"}),n=(e=>Ou[e]||e)(r.color),o=(0,bu.A)((0,Se.A)({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Su}=o,f=(0,Kt.A)(o,wu),m=(0,Se.A)({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||Su[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,$n.A)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,On.A)(s,xu,i)})(m);return(0,Jt.jsx)(Au,(0,Se.A)({as:h,ref:t,ownerState:m,className:(0,Sn.A)(v.root,i)},f))})),Eu=_u;function ku(e){return(0,Pn.Ay)("MuiListItemText",e)}const ju=(0,Cn.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Cu=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Pu=(0,En.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(ju.primary)]:t.primary},{["& .".concat(ju.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),Ru=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,p=(0,Kt.A)(n,Cu),{dense:f}=t.useContext(Xl);let m=null!=l?l:o,h=u;const v=(0,Se.A)({},n,{disableTypography:i,inset:s,primary:!!m,secondary:!!h,dense:f}),y=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e,i={root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,On.A)(i,ku,t)})(v);return null==m||m.type===Eu||i||(m=(0,Jt.jsx)(Eu,(0,Se.A)({variant:f?"body2":"body1",className:y.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:m}))),null==h||h.type===Eu||i||(h=(0,Jt.jsx)(Eu,(0,Se.A)({variant:"body2",className:y.secondary,color:"text.secondary",display:"block"},d,{children:h}))),(0,Jt.jsxs)(Pu,(0,Se.A)({className:(0,Sn.A)(y.root,a),ownerState:v,ref:r},p,{children:[m,h]}))})),Tu=Ru;function Iu(e){return(0,Pn.Ay)("MuiDivider",e)}const Mu=(0,Cn.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function Nu(e){return(0,Pn.Ay)("MuiMenuItem",e)}const Lu=(0,Cn.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],zu=(0,En.Ay)(As,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Lu.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Lu.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Lu.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(Lu.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Lu.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(Mu.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(Mu.inset)]:{marginLeft:52},["& .".concat(ju.root)]:{marginTop:0,marginBottom:0},["& .".concat(ju.inset)]:{paddingLeft:36},["& .".concat(mu.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,Se.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(mu.root," svg")]:{fontSize:"1.25rem"}}))})),Du=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,f=(0,Kt.A)(n,Fu),m=t.useContext(Xl),h=t.useMemo((()=>({dense:i||m.dense||!1,disableGutters:l})),[m.dense,i,l]),v=t.useRef(null);(0,oc.A)((()=>{o&&v.current&&v.current.focus()}),[o]);const y=(0,Se.A)({},n,{dense:h.dense,divider:s,disableGutters:l}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},l=(0,On.A)(s,Nu,i);return(0,Se.A)({},i,l)})(n),b=(0,To.A)(v,r);let x;return n.disabled||(x=void 0!==d?d:-1),(0,Jt.jsx)(Xl.Provider,{value:h,children:(0,Jt.jsx)(zu,(0,Se.A)({ref:b,role:u,tabIndex:x,component:a,focusVisibleClassName:(0,Sn.A)(g.focusVisible,c),className:(0,Sn.A)(g.root,p)},f,{ownerState:y,classes:g}))})})),Bu=Du;var Vu,Wu=r(9790),Uu=function(){return Uu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uu.apply(this,arguments)},qu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Hu=t.forwardRef((function(e,r){var n=e.className,o=e.redirectTo,a=e.icon,i=qu(e,["className","redirectTo","icon"]),s=Fr().authenticated,l=yr((function(e){return e.breakpoints.down("sm")})),c=Ps(),u=Pr(),d=(0,t.useCallback)((function(){return u(null,o,!1)}),[o,u]);return s?t.createElement(Ku,Uu({className:zn("logout",n),onClick:d,ref:r,component:l?"span":"li"},i),t.createElement(gu,{className:Qu.icon},a||t.createElement(Wu.A,{fontSize:"small"})),t.createElement(Tu,null,c("ra.auth.logout",{_:"Logout"}))):null}));Hu.propTypes={className:Bn().string,redirectTo:Bn().string,icon:Bn().element};var $u="RaLogout",Qu={icon:"".concat($u,"-icon")},Ku=(0,En.Ay)(Bu,{name:$u,overridesResolver:function(e,t){return t.root}})(((Vu={})["& .".concat(Qu.icon)]={},Vu)),Gu=function(e){var r=(0,t.useState)(null),n=r[0],o=r[1],a=Ps(),i=xl(),s=i.isLoading,l=i.identity,c=Er(),u=yr((function(e){return e.breakpoints.up("sm")})),d=e.children,p=void 0===d?c?t.createElement(Hu,null):null:d,f=e.className,m=e.label,h=void 0===m?"ra.auth.user_menu":m,v=e.icon,y=void 0===v?Zu:v,g=function(e){return o(e.currentTarget)},b=(0,t.useCallback)((function(){return o(null)}),[]),x=(0,t.useMemo)((function(){return{onClose:b}}),[b]);if(!p)return null;var w=Boolean(n);return t.createElement(Ju,{className:f},u&&!s&&(null===l||void 0===l?void 0:l.fullName)?t.createElement(Il,{"aria-label":h&&a(h,{_:h}),className:Yu.userButton,color:"inherit",startIcon:l.avatar?t.createElement(Ql,{className:Yu.avatar,src:l.avatar,alt:l.fullName}):y,onClick:g,variant:"text"},l.fullName):t.createElement(qi,{title:h&&a(h,{_:"Profile"})},t.createElement(js,{"aria-label":h&&a(h,{_:"Profile"}),"aria-owns":w?"menu-appbar":null,"aria-haspopup":!0,color:"inherit",onClick:g},!s&&(null===l||void 0===l?void 0:l.avatar)?t.createElement(Ql,{className:Yu.avatar,src:l.avatar,alt:l.fullName}):y)),t.createElement(pu,{value:x},t.createElement(cu,{id:"menu-appbar",disableScrollLock:!0,anchorEl:n,anchorOrigin:ed,transformOrigin:td,open:w,onClose:b},p)))};Gu.propTypes={children:Bn().node,classes:Bn().object,label:Bn().string,icon:Bn().node};var Xu="RaUserMenu",Yu={userButton:"".concat(Xu,"-userButton"),avatar:"".concat(Xu,"-avatar")},Ju=(0,En.Ay)("div",{name:Xu,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Yu.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(Yu.avatar)]={width:r.spacing(3),height:r.spacing(3)},t})),Zu=t.createElement(uu.A,null),ed={vertical:"bottom",horizontal:"right"},td={vertical:"top",horizontal:"right"};const rd=["getTrigger","target"];function nd(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),!(!r&&void 0!==a&&e.current<a)&&e.current>n}const od="undefined"!==typeof window?window:null;function ad(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getTrigger:r=nd,target:n=od}=e,o=(0,Kt.A)(e,rd),a=t.useRef(),[i,s]=t.useState((()=>r(a,o)));return t.useEffect((()=>{const e=()=>{s(r(a,(0,Se.A)({target:n},o)))};return e(),n.addEventListener("scroll",e,{passive:!0}),()=>{n.removeEventListener("scroll",e,{passive:!0})}}),[n,r,JSON.stringify(o)]),i}const id=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function sd(e,t,r){var n;const o=function(e,t,r){const n=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=(0,pc.A)(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(i&&"none"!==i&&"string"===typeof i){const e=i.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?"translateX(".concat(o?o.right+s-n.left:a.innerWidth+s-n.left,"px)"):"right"===e?"translateX(-".concat(o?n.right-o.left-s:n.left+n.width-s,"px)"):"up"===e?"translateY(".concat(o?o.bottom+l-n.top:a.innerHeight+l-n.top,"px)"):"translateY(-".concat(o?n.top-o.top+n.height-l:n.top+n.height-l,"px)")}(e,t,"function"===typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}const ld=t.forwardRef((function(e,r){const n=vo(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:p,onEnter:f,onEntered:m,onEntering:h,onExit:v,onExited:y,onExiting:g,style:b,timeout:x=a,TransitionComponent:w=Co}=e,A=(0,Kt.A)(e,id),S=t.useRef(null),O=(0,To.A)(l.ref,S,r),_=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},E=_(((e,t)=>{sd(u,e,c),Po(e),f&&f(e,t)})),k=_(((e,t)=>{const r=Ro({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,Se.A)({},r)),e.style.transition=n.transitions.create("transform",(0,Se.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)})),j=_(m),C=_(g),P=_((e=>{const t=Ro({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),sd(u,e,c),v&&v(e)})),R=_((e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)})),T=t.useCallback((()=>{S.current&&sd(u,S.current,c)}),[u,c]);return t.useEffect((()=>{if(p||"down"===u||"right"===u)return;const e=(0,dc.A)((()=>{S.current&&sd(u,S.current,c)})),t=(0,pc.A)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,p,c]),t.useEffect((()=>{p||T()}),[p,T]),(0,Jt.jsx)(w,(0,Se.A)({nodeRef:S,onEnter:E,onEntered:j,onEntering:k,onExit:P,onExited:R,onExiting:C,addEndListener:e=>{i&&i(S.current,e)},appear:s,in:p,timeout:x},A,{children:(e,r)=>t.cloneElement(l,(0,Se.A)({ref:O,style:(0,Se.A)({visibility:"exited"!==e||p?void 0:"hidden"},b,l.props.style)},r))}))})),cd=ld;var ud=function(e){var r=e.children,n=e.className,o=ad();return t.createElement(cd,{appear:!1,direction:"down",in:!o,className:n},r)};ud.propTypes={children:Bn().node.isRequired,className:Bn().string};var dd=function(){return dd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dd.apply(this,arguments)},pd=function(e){return t.createElement(Eu,dd({flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-title"},e))},fd=function(){var e=io(),r=(0,t.useMemo)((function(){return e.getLocale()}),[e]);return jt("locale",r)},md=r(3174),hd=r(8812);const vd=["className","component"];var yd=r(5430);const gd=(0,Cn.A)("MuiBox",["root"]),bd=(0,Qt.A)(),xd=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:r,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:a}=e,i=(0,md.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hd.A);return t.forwardRef((function(e,t){const s=(0,mo.A)(n),l=(0,bu.A)(e),{className:c,component:u="div"}=l,d=(0,Kt.A)(l,vd);return(0,Jt.jsx)(i,(0,Se.A)({as:u,ref:t,className:(0,Sn.A)(c,a?a(o):o),theme:r&&s[r]||s},d))}))}({themeId:cr.A,defaultTheme:bd,defaultClassName:gd.root,generateClassName:yd.A.generate}),wd=xd;var Ad=r(6472),Sd=r(1337),Od=function(e){var r=e.icon,n=void 0===r?_d:r,o=e.languages,a=(0,t.useState)(null),i=a[0],s=a[1],l=so({locales:o}),c=fd(),u=c[0],d=c[1],p=function(e){return function(){d(e),s(null)}};return t.createElement(Ed,{component:"span"},t.createElement(Il,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:function(e){s(e.currentTarget)},startIcon:n,endIcon:t.createElement(Sd.A,{fontSize:"small"})},function(e){var t=l.find((function(t){return t.locale===e}));return t?t.name:""}(u)),t.createElement(cu,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:Boolean(i),onClose:function(){s(null)}},l.map((function(e){return t.createElement(Bu,{key:e.locale,onClick:p(e.locale),selected:e.locale===u},e.name)}))))},_d=t.createElement(Ad.A,null),Ed=(0,En.Ay)(wd,{name:"RaLocalesMenuButton",overridesResolver:function(e,t){return t.root}})({}),kd=r(9307),jd=r(8094),Cd=function(e){var r=Ps(),n=e.darkTheme,o=e.lightTheme,a=br(),i=a[0],s=a[1],l="dark"===i||"dark"===(null===i||void 0===i?void 0:i.palette.mode),c=r("ra.action.toggle_theme",{_:"Toggle Theme"});return t.createElement(qi,{title:c,enterDelay:300},t.createElement(js,{color:"inherit",onClick:function(){s(l?o:n)},"aria-label":c},l?t.createElement(jd.A,null):t.createElement(kd.A,null)))},Pd=function(e){var r=Ps(),n=gr(e),o=n.darkTheme,a=n.defaultTheme,i=yr("(prefers-color-scheme: dark)",{noSsr:!0}),s=br(a||(i&&o?"dark":"light")),l=s[0],c=s[1];if(e.darkTheme)return t.createElement(Cd,{darkTheme:e.darkTheme,lightTheme:e.lightTheme});var u=r("ra.action.toggle_theme",{_:"Toggle Theme"});return t.createElement(qi,{title:u,enterDelay:300},t.createElement(js,{color:"inherit",onClick:function(){c("dark"===l?"light":"dark")},"aria-label":u},"dark"===l?t.createElement(jd.A,null):t.createElement(kd.A,null)))},Rd=function(){return Rd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rd.apply(this,arguments)},Td=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Id=(0,t.memo)((function(e){var r=e.alwaysOn,n=e.children,o=e.className,a=e.color,i=void 0===a?"secondary":a,s=(e.open,e.title,e.toolbar),l=void 0===s?Md:s,c=e.userMenu,u=void 0===c?Nd:c,d=e.container,p=void 0===d?r?"div":ud:d,f=Td(e,["alwaysOn","children","className","color","open","title","toolbar","userMenu","container"]),m=yr((function(e){return e.breakpoints.down("sm")}));return t.createElement(p,{className:o},t.createElement(zd,Rd({className:Fd.appBar,color:i},f),t.createElement(Hn,{disableGutters:!0,variant:m?"regular":"dense",className:Fd.toolbar},t.createElement(Is,{className:Fd.menuButton}),0===t.Children.count(n)?t.createElement(pd,{className:Fd.title}):n,l,"boolean"===typeof u?!0===u?t.createElement(Gu,null):null:u)))})),Md=t.createElement((function(){var e=so(),r=gr().darkTheme;return t.createElement(t.Fragment,null,e&&e.length>1?t.createElement(Od,null):null,r&&t.createElement(Pd,null),t.createElement(dl,null))}),null);Id.propTypes={alwaysOn:Bn().bool,children:Bn().node,className:Bn().string,color:Bn().oneOf(["default","inherit","primary","secondary","transparent"]),container:co,open:Bn().bool,toolbar:Bn().element,userMenu:Bn().oneOfType([Bn().element,Bn().bool])};var Nd=t.createElement(Gu,null),Ld="RaAppBar",Fd={appBar:"".concat(Ld,"-appBar"),toolbar:"".concat(Ld,"-toolbar"),menuButton:"".concat(Ld,"-menuButton"),menuButtonIconClosed:"".concat(Ld,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(Ld,"-menuButtonIconOpen"),title:"".concat(Ld,"-title")},zd=(0,En.Ay)(ao,{name:Ld,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(Fd.toolbar)]=((r={padding:"0 ".concat(n.spacing(1))})[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(Fd.menuButton)]={marginRight:"0.2em"},t["& .".concat(Fd.title)]={},t}));function Dd(e){return(0,Pn.Ay)("MuiDrawer",e)}(0,Cn.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Bd=["BackdropProps"],Vd=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],Wd=(e,t)=>{const{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},Ud=(0,En.Ay)(Vc,{name:"MuiDrawer",slot:"Root",overridesResolver:Wd})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),qd=(0,En.Ay)("div",{shouldForwardProp:Al.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Wd})({flex:"0 0 auto"}),Hd=(0,En.Ay)(Zn,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,$n.A)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,$n.A)(r.anchor))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),$d={left:"right",right:"left",top:"down",bottom:"up"};const Qd=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiDrawer"}),o=vo(),a=or(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f}={},onClose:m,open:h=!1,PaperProps:v={},SlideProps:y,TransitionComponent:g=cd,transitionDuration:b=i,variant:x="temporary"}=n,w=(0,Kt.A)(n.ModalProps,Bd),A=(0,Kt.A)(n,Vd),S=t.useRef(!1);t.useEffect((()=>{S.current=!0}),[]);const O=function(e,t){let{direction:r}=e;return"rtl"===r&&function(e){return-1!==["left","right"].indexOf(e)}(t)?$d[t]:t}({direction:a?"rtl":"ltr"},s),_=s,E=(0,Se.A)({},n,{anchor:_,elevation:d,open:h,variant:x},A),k=(e=>{const{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,$n.A)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,$n.A)(r))]};return(0,On.A)(o,Dd,t)})(E),j=(0,Jt.jsx)(Hd,(0,Se.A)({elevation:"temporary"===x?d:0,square:!0},v,{className:(0,Sn.A)(k.paper,v.className),ownerState:E,children:c}));if("permanent"===x)return(0,Jt.jsx)(qd,(0,Se.A)({className:(0,Sn.A)(k.root,k.docked,u),ownerState:E,ref:r},A,{children:j}));const C=(0,Jt.jsx)(g,(0,Se.A)({in:h,direction:$d[O],timeout:b,appear:S.current},y,{children:j}));return"persistent"===x?(0,Jt.jsx)(qd,(0,Se.A)({className:(0,Sn.A)(k.root,k.docked,u),ownerState:E,ref:r},A,{children:C})):(0,Jt.jsx)(Ud,(0,Se.A)({BackdropProps:(0,Se.A)({},l,f,{transitionDuration:b}),className:(0,Sn.A)(k.root,k.modal,u),open:h,ownerState:E,onClose:m,hideBackdrop:p,ref:r},A,w,{children:C}))})),Kd=Qd;var Gd=function(){return Gd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gd.apply(this,arguments)},Xd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Yd=function(e){var r=e.appBarAlwaysOn,n=e.children,o=(e.closedSize,e.size,Xd(e,["appBarAlwaysOn","children","closedSize","size"])),a=yr((function(e){return e.breakpoints.down("sm")})),i=Ts(),s=i[0],l=i[1];fd()[0];var c=ad(),u=function(){return l(!s)};return a?t.createElement(ep,Gd({variant:"temporary",open:s,onClose:u,classes:Zd},o),n):t.createElement(ep,Gd({variant:"permanent",open:s,onClose:u,classes:Zd,className:c&&!r?Zd.appBarCollapsed:""},o),t.createElement("div",{className:Zd.fixed},n))};Yd.propTypes={children:Bn().node.isRequired};var Jd="RaSidebar",Zd={docked:"".concat(Jd,"-docked"),paper:"".concat(Jd,"-paper"),paperAnchorLeft:"".concat(Jd,"-paperAnchorLeft"),paperAnchorRight:"".concat(Jd,"-paperAnchorRight"),paperAnchorTop:"".concat(Jd,"-paperAnchorTop"),paperAnchorBottom:"".concat(Jd,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(Jd,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(Jd,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(Jd,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(Jd,"-paperAnchorDockedBottom"),modal:"".concat(Jd,"-modal"),fixed:"".concat(Jd,"-fixed"),appBarCollapsed:"".concat(Jd,"-appBarCollapsed")},ep=(0,En.Ay)(Kd,{name:Jd,slot:"Root",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(){return!0}})((function(e){var t,r,n,o=e.open,a=e.theme;return(t={height:"calc(100vh - 3em)",marginTop:0,transition:a.transitions.create("margin",{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen})})["&.".concat(Zd.appBarCollapsed)]=((r={marginTop:a.spacing(-6)})[a.breakpoints.down("sm")]={marginTop:a.spacing(-7)},r.transition=a.transitions.create("margin",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),r),t["& .".concat(Zd.docked)]={},t["& .".concat(Zd.paper)]={},t["& .".concat(Zd.paperAnchorLeft)]={},t["& .".concat(Zd.paperAnchorRight)]={},t["& .".concat(Zd.paperAnchorTop)]={},t["& .".concat(Zd.paperAnchorBottom)]={},t["& .".concat(Zd.paperAnchorDockedLeft)]={},t["& .".concat(Zd.paperAnchorDockedTop)]={},t["& .".concat(Zd.paperAnchorDockedRight)]={},t["& .".concat(Zd.paperAnchorDockedBottom)]={},t["& .".concat(Zd.modal)]={},t["& .".concat(Zd.fixed)]={position:"fixed",height:"calc(100vh - 3em)",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},t["& .MuiPaper-root"]=((n={position:"relative",width:o?dt()(a,"sidebar.width",tp):dt()(a,"sidebar.closedWidth",rp),transition:a.transitions.create("width",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),backgroundColor:"transparent",borderRight:"none"})[a.breakpoints.only("xs")]={marginTop:0,height:"100vh",position:"inherit",backgroundColor:a.palette.background.default},n[a.breakpoints.up("md")]={border:"none"},n.zIndex="inherit",n),t})),tp=240,rp=55,np=r(2856);function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},op.apply(this,arguments)}function ap(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const ip=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(AB){}new Map;n.startTransition,bo.flushSync,n.useId;const sp="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,lp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cp=t.forwardRef((function(e,r){let n,{onClick:o,relative:a,reloadDocument:i,replace:s,state:l,target:c,to:u,preventScrollReset:d,unstable_viewTransition:p}=e,m=ap(e,ip),{basename:v}=t.useContext(Q),y=!1;if("string"===typeof u&&lp.test(u)&&(n=u,sp))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=T(t.pathname,v);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:y=!0}catch(AB){}let g=function(e,r){let{relative:n}=void 0===r?{}:r;Y()||f(!1);let{basename:o,navigator:a}=t.useContext(Q),{hash:i,pathname:s,search:l}=ne(e,{relative:n}),c=s;return"/"!==o&&(c="/"===s?o:F([o,s])),a.createHref({pathname:c,search:l,hash:i})}(u,{relative:a}),b=function(e,r){let{target:n,replace:o,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l}=void 0===r?{}:r,c=ee(),u=J(),d=ne(e,{relative:s});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let r=void 0!==o?o:h(u)===h(d);c(e,{replace:r,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l})}}),[u,c,d,o,a,n,e,i,s,l])}(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:p});return t.createElement("a",op({},m,{href:n||g,onClick:y||i?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:r,target:c}))}));var up,dp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(up||(up={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(dp||(dp={}));var pp=function(){return pp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pp.apply(this,arguments)},fp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mp=(0,t.forwardRef)((function(e,r){var n=e.className,o=e.primaryText,a=e.leftIcon,i=e.onClick,s=(e.sidebarIsOpen,e.tooltipProps),l=e.children,c=fp(e,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),u=yr((function(e){return e.breakpoints.down("md")})),d=Ps(),p=kr(),m=Ts(),h=m[0],v=m[1],y=(0,t.useCallback)((function(e){u&&v(!1),i&&i(e)}),[v,u,i]),g=("string"===typeof e.to?e.to:e.to.pathname)||"",b=function(e){Y()||f(!1);let{pathname:r}=J();return t.useMemo((()=>P(e,r)),[r,e])}({path:g,end:g==="".concat(p,"/")}),x=function(){var e;return t.createElement(yp,pp({className:zn(n,(e={},e[vp.active]=!!b,e)),component:gp,ref:r,tabIndex:0},c,{onClick:y}),a&&t.createElement(gu,{className:vp.icon},a),l||("string"===typeof o?d(o,{_:o}):o))};return h?x():t.createElement(qi,pp({title:"string"===typeof o?d(o,{_:o}):o,placement:"right"},s),x())}));mp.propTypes={className:Bn().string,leftIcon:Bn().element,onClick:Bn().func,primaryText:Bn().node,to:Bn().oneOfType([Bn().string,Bn().object]).isRequired,sidebarIsOpen:Bn().bool};var hp="RaMenuItemLink",vp={active:"".concat(hp,"-active"),icon:"".concat(hp,"-icon")},yp=(0,En.Ay)(Bu,{name:hp,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={color:r.palette.text.secondary})["&.".concat(vp.active)]={color:r.palette.text.primary},t["& .".concat(vp.icon)]={minWidth:r.spacing(5)},t})),gp=(0,t.forwardRef)((function(e,r){return t.createElement(cp,pp({ref:r},e))})),bp=function(){return bp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bp.apply(this,arguments)},xp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wp=function(e){var r=kr(),n=e.leftIcon,o=void 0===n?t.createElement(np.A,null):n,a=e.to,i=void 0===a?"".concat(r,"/"):a,s=e.primaryText,l=void 0===s?"ra.page.dashboard":s,c=xp(e,["leftIcon","to","primaryText"]);return t.createElement(mp,bp({leftIcon:o,to:i,primaryText:l},c))};wp.propTypes={leftIcon:Bn().element,locale:Bn().string,onClick:Bn().func,dense:Bn().bool,sidebarIsOpen:Bn().bool};var Ap=r(7981),Sp=function(){return an().definitions},Op=r(9700),_p=r.n(Op),Ep=function(){var e=Ps(),t=Sp();return function(r,n){void 0===n&&(n=2);var o=t[r];return e("resources.".concat(r,".name"),{smart_count:n,_:o&&o.options&&o.options.label?e(o.options.label,{smart_count:n,_:o.options.label}):_p().humanize(n>1?_p().pluralize(r):_p().singularize(r))})}},kp=function(e){var r=e.name,n=Sp(),o=Ep(),a=jr();return n&&n[r]?t.createElement(mp,{to:a({resource:r,type:"list"}),state:{_scrollToTop:!0},primaryText:t.createElement(t.Fragment,null,o(r,2)),leftIcon:n[r].icon?(0,t.createElement)(n[r].icon):t.createElement(Ap.A,null)}):null},jp=function(){var e=Sp();return t.createElement(t.Fragment,null,Object.keys(e).filter((function(t){return e[t].hasList})).map((function(e){return t.createElement(kp,{key:e,name:e})})))},Cp=function(){return Cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cp.apply(this,arguments)},Pp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rp=function(e){var r,n=e.hasDashboard,o=e.children,a=void 0===o?n?[t.createElement(wp,{key:"default-dashboard-menu-item"}),t.createElement(jp,{key:"default-resource-menu-items"})]:t.createElement(jp,null):o,i=e.className,s=Pp(e,["hasDashboard","children","className"]),l=Ts()[0];return t.createElement(Mp,Cp({className:zn((r={},r[Ip.open]=l,r[Ip.closed]=!l,r),i)},s),a)};Rp.propTypes={className:Bn().string,dense:Bn().bool,hasDashboard:Bn().bool},Rp.Item=mp,Rp.DashboardItem=wp,Rp.ResourceItem=kp,Rp.ResourceItems=jp;var Tp="RaMenu",Ip={open:"".concat(Tp,"-open"),closed:"".concat(Tp,"-closed")},Mp=(0,En.Ay)(uc,{name:Tp,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"flex-start"})[r.breakpoints.only("xs")]={marginTop:0},t.transition=r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),t["&.".concat(Ip.open)]={width:dt()(r,"sidebar.width",tp)},t["&.".concat(Ip.closed)]={width:dt()(r,"sidebar.closedWidth",rp)},t})),Np=r(9990),Lp=r(1958),Fp=(0,t.createContext)(""),zp=function(e){var r=e.value,n=void 0===r?"":r,o=e.children;return t.createElement(Fp.Provider,{value:n},o)},Dp=function(e,r){var n=(0,t.useContext)(Fp);if(!n)throw new Error("usePreference cannot be used outside of a Configurable component. Did you forget to wrap your component with <Configurable>? If you don't want to use Configurable, you can use the useStore hook instead.");return jt(n&&e?"".concat(n,".").concat(e):null!==n&&void 0!==n?n:e,r)},Bp=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Vp=r(992),Wp=r(3216),Up=r(6632),qp=r(4059);const Hp=["onChange","maxRows","minRows","style","value"];function $p(e){return parseInt(e,10)||0}const Qp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const Kp=t.forwardRef((function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:i,value:s}=e,l=(0,Kt.A)(e,Hp),{current:c}=t.useRef(null!=s),u=t.useRef(null),d=(0,Do.A)(r,u),p=t.useRef(null),f=t.useCallback((()=>{const t=u.current,r=(0,hc.A)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};const n=p.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=r.boxSizing,s=$p(r.paddingBottom)+$p(r.paddingTop),l=$p(r.borderBottomWidth)+$p(r.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=c;a&&(f=Math.max(Number(a)*d,f)),o&&(f=Math.min(Number(o)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?s+l:0),overflowing:Math.abs(f-c)<=1}}),[o,a,e.placeholder]),m=t.useCallback((()=>{const e=f();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const r=u.current;r.style.height="".concat(e.outerHeightStyle,"px"),r.style.overflow=e.overflowing?"hidden":""}),[f]);(0,pr.A)((()=>{const e=()=>{m()};let t;const r=(0,qp.A)(e),n=u.current,o=(0,hc.A)(n);let a;return o.addEventListener("resize",r),"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(n)),()=>{r.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",r),a&&a.disconnect()}}),[f,m]),(0,pr.A)((()=>{m()}));return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)("textarea",(0,Se.A)({value:s,onChange:e=>{c||m(),n&&n(e)},ref:d,rows:a,style:i},l)),(0,Jt.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,Se.A)({},Qp,i,{paddingTop:0,paddingBottom:0})})]})}));function Gp(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce(((e,r)=>(e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e)),{})}const Xp=t.createContext(void 0);function Yp(){return t.useContext(Xp)}var Jp=r(869);const Zp=function(e){let{styles:t,themeId:r,defaultTheme:n={}}=e;const o=(0,mo.A)(n),a="function"===typeof t?t(r&&o[r]||o):t;return(0,Jt.jsx)(Jp.A,{styles:a})};const ef=function(e){return(0,Jt.jsx)(Zp,(0,Se.A)({},e,{defaultTheme:ho.A,themeId:cr.A}))};function tf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function rf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(tf(e.value)&&""!==e.value||t&&tf(e.defaultValue)&&""!==e.defaultValue)}function nf(e){return(0,Pn.Ay)("MuiInputBase",e)}const of=(0,Cn.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),af=["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"],sf=(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".concat((0,$n.A)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},lf=(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]},cf=(0,En.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sf})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(of.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,Se.A)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),uf=(0,En.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:lf})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode,o=(0,Se.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,Se.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] + .".concat(of.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(of.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),df=(0,Jt.jsx)(ef,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pf=t.forwardRef((function(e,r){var n;const o=(0,_n.A)({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,fullWidth:h=!1,id:v,inputComponent:y="input",inputProps:g={},inputRef:b,maxRows:x,minRows:w,multiline:A=!1,name:S,onBlur:O,onChange:_,onClick:E,onFocus:k,onKeyDown:j,onKeyUp:C,placeholder:P,readOnly:R,renderSuffix:T,rows:I,slotProps:M={},slots:N={},startAdornment:L,type:F="text",value:z}=o,D=(0,Kt.A)(o,af),B=null!=g.value?g.value:z,{current:V}=t.useRef(null!=B),W=t.useRef(),U=t.useCallback((e=>{0}),[]),q=(0,To.A)(W,b,g.ref,U),[H,$]=t.useState(!1),Q=Yp();const K=Gp({props:o,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=Q?Q.focused:H,t.useEffect((()=>{!Q&&p&&H&&($(!1),O&&O())}),[Q,p,H,O]);const G=Q&&Q.onFilled,X=Q&&Q.onEmpty,Y=t.useCallback((e=>{rf(e)?G&&G():X&&X()}),[G,X]);(0,oc.A)((()=>{V&&Y({value:B})}),[B,Y,V]);t.useEffect((()=>{Y(W.current)}),[]);let J=y,Z=g;A&&"input"===J&&(Z=I?(0,Se.A)({type:void 0,minRows:I,maxRows:I},Z):(0,Se.A)({type:void 0,maxRows:x,minRows:w},Z),J=Kp);t.useEffect((()=>{Q&&Q.setAdornedStart(Boolean(L))}),[Q,L]);const ee=(0,Se.A)({},o,{color:K.color||"primary",disabled:K.disabled,endAdornment:m,error:K.error,focused:K.focused,formControl:Q,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:A,size:K.size,startAdornment:L,type:F}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e,h={root:["root","color".concat((0,$n.A)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&"medium"!==p&&"size".concat((0,$n.A)(p)),u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,On.A)(h,nf,t)})(ee),re=N.root||c.Root||cf,ne=M.root||u.root||{},oe=N.input||c.Input||uf;return Z=(0,Se.A)({},Z,null!=(n=M.input)?n:u.input),(0,Jt.jsxs)(t.Fragment,{children:[!f&&df,(0,Jt.jsxs)(re,(0,Se.A)({},ne,!po(re)&&{ownerState:(0,Se.A)({},ee,ne.ownerState)},{ref:r,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),E&&E(e)}},D,{className:(0,Sn.A)(te.root,ne.className,l,R&&"MuiInputBase-readOnly"),children:[L,(0,Jt.jsx)(Xp.Provider,{value:null,children:(0,Jt.jsx)(oe,(0,Se.A)({ownerState:ee,"aria-invalid":K.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:d,disabled:K.disabled,id:v,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:P,readOnly:R,required:K.required,rows:I,value:B,onKeyDown:j,onKeyUp:C,type:F},Z,!po(oe)&&{as:J,ownerState:(0,Se.A)({},ee,Z.ownerState)},{ref:q,className:(0,Sn.A)(te.input,Z.className,R&&"MuiInputBase-readOnly"),onBlur:e=>{O&&O(e),g.onBlur&&g.onBlur(e),Q&&Q.onBlur?Q.onBlur(e):$(!1)},onChange:function(e){if(!V){const t=e.target||W.current;if(null==t)throw new Error((0,Up.A)(1));Y({value:t.value})}for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];g.onChange&&g.onChange(e,...r),_&&_(e,...r)},onFocus:e=>{K.disabled?e.stopPropagation():(k&&k(e),g.onFocus&&g.onFocus(e),Q&&Q.onFocus?Q.onFocus(e):$(!0))}}))}),m,T?T((0,Se.A)({},K,{startAdornment:L})):null]}))]})})),ff=pf;function mf(e){return(0,Pn.Ay)("MuiInput",e)}const hf=(0,Se.A)({},of,(0,Cn.A)("MuiInput",["root","underline","input"])),vf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yf=(0,En.Ay)(cf,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sf(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,Se.A)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(hf.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(hf.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(hf.disabled,", .").concat(hf.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(hf.disabled,":before")]:{borderBottomStyle:"dotted"}})})),gf=(0,En.Ay)(uf,{name:"MuiInput",slot:"Input",overridesResolver:lf})({}),bf=t.forwardRef((function(e,t){var r,n,o,a;const i=(0,_n.A)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=i,v=(0,Kt.A)(i,vf),y=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,On.A)(n,mf,t);return(0,Se.A)({},t,o)})(i),g={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:c)?(0,Wp.A)(null!=f?f:c,g):g,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:yf,w=null!=(o=null!=(a=m.input)?a:l.Input)?o:gf;return(0,Jt.jsx)(ff,(0,Se.A)({slots:{root:x,input:w},slotProps:b,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:h},v,{classes:y}))}));bf.muiName="Input";const xf=bf;function wf(e){return(0,Pn.Ay)("MuiFilledInput",e)}const Af=(0,Se.A)({},of,(0,Cn.A)("MuiFilledInput",["root","underline","input"])),Sf=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Of=(0,En.Ay)(cf,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sf(e,t),!r.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:r}=e;var n;const o="light"===t.palette.mode,a=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)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,Se.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},["&.".concat(Af.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},["&.".concat(Af.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(n=(t.vars||t).palette[r.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(Af.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(Af.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(Af.disabled,", .").concat(Af.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(Af.disabled,":before")]:{borderBottomStyle:"dotted"}},r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&(0,Se.A)({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9}))})),_f=(0,En.Ay)(uf,{name:"MuiFilledInput",slot:"Input",overridesResolver:lf})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Ef=t.forwardRef((function(e,t){var r,n,o,a;const i=(0,_n.A)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=i,h=(0,Kt.A)(i,Sf),v=(0,Se.A)({},i,{fullWidth:c,inputComponent:u,multiline:d,type:m}),y=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,On.A)(n,wf,t);return(0,Se.A)({},t,o)})(i),g={root:{ownerState:v},input:{ownerState:v}},b=(null!=p?p:l)?(0,Wp.A)(g,null!=p?p:l):g,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Of,w=null!=(o=null!=(a=f.input)?a:s.Input)?o:_f;return(0,Jt.jsx)(ff,(0,Se.A)({slots:{root:x,input:w},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:m},h,{classes:y}))}));Ef.muiName="Input";const kf=Ef;var jf;const Cf=["children","classes","className","label","notched"],Pf=(0,En.Ay)("fieldset",{shouldForwardProp:Al.A})({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%"}),Rf=(0,En.Ay)("legend",{shouldForwardProp:Al.A})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,Se.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function Tf(e){return(0,Pn.Ay)("MuiOutlinedInput",e)}const If=(0,Se.A)({},of,(0,Cn.A)("MuiOutlinedInput",["root","notchedOutline","input"])),Mf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Nf=(0,En.Ay)(cf,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sf})((e=>{let{theme:t,ownerState:r}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,Se.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(If.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(If.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(If.focused," .").concat(If.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(If.error," .").concat(If.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(If.disabled," .").concat(If.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,Se.A)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),Lf=(0,En.Ay)((function(e){const{className:t,label:r,notched:n}=e,o=(0,Kt.A)(e,Cf),a=null!=r&&""!==r,i=(0,Se.A)({},e,{notched:n,withLabel:a});return(0,Jt.jsx)(Pf,(0,Se.A)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,Jt.jsx)(Rf,{ownerState:i,children:a?(0,Jt.jsx)("span",{children:r}):jf||(jf=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),Ff=(0,En.Ay)(uf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:lf})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),zf=t.forwardRef((function(e,r){var n,o,a,i,s;const l=(0,_n.A)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:m,slots:h={},type:v="text"}=l,y=(0,Kt.A)(l,Mf),g=(e=>{const{classes:t}=e,r=(0,On.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Tf,t);return(0,Se.A)({},t,r)})(l),b=Yp(),x=Gp({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w=(0,Se.A)({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:v}),A=null!=(n=null!=(o=h.root)?o:c.Root)?n:Nf,S=null!=(a=null!=(i=h.input)?i:c.Input)?a:Ff;return(0,Jt.jsx)(ff,(0,Se.A)({slots:{root:A,input:S},renderSuffix:e=>(0,Jt.jsx)(Lf,{ownerState:w,className:g.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=(0,Jt.jsxs)(t.Fragment,{children:[p,"\u2009","*"]})):p,notched:"undefined"!==typeof m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:f,ref:r,type:v},y,{classes:(0,Se.A)({},g,{notchedOutline:null})}))}));zf.muiName="Input";const Df=zf;function Bf(e){return(0,Pn.Ay)("MuiFormLabel",e)}const Vf=(0,Cn.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Wf=["children","className","color","component","disabled","error","filled","focused","required"],Uf=(0,En.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Se.A)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(Vf.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(Vf.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(Vf.error)]:{color:(t.vars||t).palette.error.main}})})),qf=(0,En.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Vf.error)]:{color:(t.vars||t).palette.error.main}}})),Hf=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=(0,Kt.A)(r,Wf),s=Gp({props:r,muiFormControl:Yp(),states:["color","required","focused","disabled","error","filled"]}),l=(0,Se.A)({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e,l={root:["root","color".concat((0,$n.A)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,On.A)(l,Bf,t)})(l);return(0,Jt.jsxs)(Uf,(0,Se.A)({as:a,ownerState:l,className:(0,Sn.A)(c.root,o),ref:t},i,{children:[n,s.required&&(0,Jt.jsxs)(qf,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))})),$f=Hf;function Qf(e){return(0,Pn.Ay)("MuiInputLabel",e)}(0,Cn.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Kf=["disableAnimation","margin","shrink","variant","className"],Gf=(0,En.Ay)($f,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(Vf.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]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,Se.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,Se.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,Se.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),Xf=t.forwardRef((function(e,t){const r=(0,_n.A)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=(0,Kt.A)(r,Kf),s=Yp();let l=o;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=Gp({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,Se.A)({},r,{disableAnimation:n,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,$n.A)(n)),i],asterisk:[s&&"asterisk"]},c=(0,On.A)(l,Qf,t);return(0,Se.A)({},t,c)})(u);return(0,Jt.jsx)(Gf,(0,Se.A)({"data-shrink":l,ownerState:u,ref:t,className:(0,Sn.A)(d.root,a)},i,{classes:d}))})),Yf=Xf;var Jf=r(154);function Zf(e){return(0,Pn.Ay)("MuiFormControl",e)}(0,Cn.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const em=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tm=(0,En.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,Se.A)({},t.root,t["margin".concat((0,$n.A)(r.margin))],r.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),rm=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:p=!1,margin:f="none",required:m=!1,size:h="medium",variant:v="outlined"}=n,y=(0,Kt.A)(n,em),g=(0,Se.A)({},n,{color:i,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:p,margin:f,required:m,size:h,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin".concat((0,$n.A)(r)),n&&"fullWidth"]};return(0,On.A)(o,Zf,t)})(g),[x,w]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{if(!(0,Jf.A)(t,["Input","Select"]))return;const r=(0,Jf.A)(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[A,S]=t.useState((()=>{let e=!1;return o&&t.Children.forEach(o,(t=>{(0,Jf.A)(t,["Input","Select"])&&(rf(t.props,!0)||rf(t.props.inputProps,!0))&&(e=!0)})),e})),[O,_]=t.useState(!1);l&&O&&_(!1);const E=void 0===u||l?O:u;let k;const j=t.useMemo((()=>({adornedStart:x,setAdornedStart:w,color:i,disabled:l,error:c,filled:A,focused:E,fullWidth:d,hiddenLabel:p,size:h,onBlur:()=>{_(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{_(!0)},registerEffect:k,required:m,variant:v})),[x,i,l,c,A,E,d,p,k,m,h,v]);return(0,Jt.jsx)(Xp.Provider,{value:j,children:(0,Jt.jsx)(tm,(0,Se.A)({as:s,ownerState:g,className:(0,Sn.A)(b.root,a),ref:r},y,{children:o}))})})),nm=rm;function om(e){return(0,Pn.Ay)("MuiFormHelperText",e)}const am=(0,Cn.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var im;const sm=["children","className","component","disabled","error","filled","focused","margin","required","variant"],lm=(0,En.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,$n.A)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(am.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(am.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),cm=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=(0,Kt.A)(r,sm),s=Gp({props:r,muiFormControl:Yp(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,Se.A)({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e,c={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,$n.A)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,On.A)(c,om,t)})(l);return(0,Jt.jsx)(lm,(0,Se.A)({as:a,ownerState:l,className:(0,Sn.A)(c.root,o),ref:t},i,{children:" "===n?im||(im=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),um=cm;function dm(e){return(0,Pn.Ay)("MuiNativeSelect",e)}const pm=(0,Cn.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),fm=["className","disabled","error","IconComponent","inputRef","variant"],mm=e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,Se.A)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(pm.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},hm=(0,En.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Al.A,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(pm.multiple)]:t.multiple}]}})(mm),vm=e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(pm.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ym=(0,En.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,$n.A)(r.variant))],r.open&&t.iconOpen]}})(vm),gm=t.forwardRef((function(e,r){const{className:n,disabled:o,error:a,IconComponent:i,inputRef:s,variant:l="standard"}=e,c=(0,Kt.A)(e,fm),u=(0,Se.A)({},e,{disabled:o,variant:l,error:a}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,$n.A)(r)),a&&"iconOpen",n&&"disabled"]};return(0,On.A)(s,dm,t)})(u);return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)(hm,(0,Se.A)({ownerState:u,className:(0,Sn.A)(d.select,n),disabled:o,ref:s||r},c)),e.multiple?null:(0,Jt.jsx)(ym,{as:i,ownerState:u,className:d.icon})]})})),bm=gm;var xm=r(7123);function wm(e){return(0,Pn.Ay)("MuiSelect",e)}const Am=(0,Cn.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Sm;const Om=["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"],_m=(0,En.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["&.".concat(Am.select)]:t.select},{["&.".concat(Am.select)]:t[r.variant]},{["&.".concat(Am.error)]:t.error},{["&.".concat(Am.multiple)]:t.multiple}]}})(mm,{["&.".concat(Am.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Em=(0,En.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,$n.A)(r.variant))],r.open&&t.iconOpen]}})(vm),km=(0,En.Ay)("input",{shouldForwardProp:e=>(0,xm.A)(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 jm(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Cm(e){return null==e||"string"===typeof e&&!e.trim()}const Pm=t.forwardRef((function(e,r){var n;const{"aria-describedby":o,"aria-label":a,autoFocus:i,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:m=!1,IconComponent:h,inputRef:v,labelId:y,MenuProps:g={},multiple:b,name:x,onBlur:w,onChange:A,onClose:S,onFocus:O,onOpen:_,open:E,readOnly:k,renderValue:j,SelectDisplayProps:C={},tabIndex:P,value:R,variant:T="standard"}=e,I=(0,Kt.A)(e,Om),[M,N]=(0,Ti.A)({controlled:R,default:d,name:"Select"}),[L,F]=(0,Ti.A)({controlled:E,default:u,name:"Select"}),z=t.useRef(null),D=t.useRef(null),[B,V]=t.useState(null),{current:W}=t.useRef(null!=E),[U,q]=t.useState(),H=(0,To.A)(r,v),$=t.useCallback((e=>{D.current=e,e&&V(e)}),[]),Q=null==B?void 0:B.parentNode;t.useImperativeHandle(H,(()=>({focus:()=>{D.current.focus()},node:z.current,value:M})),[M]),t.useEffect((()=>{u&&L&&B&&!W&&(q(s?null:Q.clientWidth),D.current.focus())}),[B,s]),t.useEffect((()=>{i&&D.current.focus()}),[i]),t.useEffect((()=>{if(!y)return;const e=(0,Gl.A)(D.current).getElementById(y);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[y]);const K=(e,t)=>{e?_&&_(t):S&&S(t),W||(q(s?null:Q.clientWidth),F(e))},G=t.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(M)?M.slice():[];const t=M.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),M!==r&&(N(r),A)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),A(o,e)}b||K(!1,t)}},Y=null!==B&&L;let J,Z;delete I["aria-invalid"];const ee=[];let te=!1,re=!1;(rf({value:M})||f)&&(j?J=j(M):te=!0);const ne=G.map((e=>{if(!t.isValidElement(e))return null;let r;if(b){if(!Array.isArray(M))throw new Error((0,Up.A)(2));r=M.some((t=>jm(t,e.props.value))),r&&te&&ee.push(e.props.children)}else r=jm(M,e.props.value),r&&te&&(Z=e.props.children);return r&&(re=!0),t.cloneElement(e,{"aria-selected":r?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:r,value:void 0,"data-value":e.props.value})}));te&&(J=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let oe,ae=U;!s&&W&&B&&(ae=Q.clientWidth),oe="undefined"!==typeof P?P:p?null:0;const ie=C.id||(x?"mui-component-select-".concat(x):void 0),se=(0,Se.A)({},e,{variant:T,value:M,open:Y,error:m}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,s={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,$n.A)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,On.A)(s,wm,t)})(se),ce=(0,Se.A)({},g.PaperProps,null==(n=g.slotProps)?void 0:n.paper),ue=(0,Vp.A)();return(0,Jt.jsxs)(t.Fragment,{children:[(0,Jt.jsx)(_m,(0,Se.A)({ref:$,tabIndex:oe,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[y,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:p||k?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),K(!0,e))},onBlur:e=>{!Y&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:x}}),w(e))},onFocus:O},C,{ownerState:se,className:(0,Sn.A)(C.className,le.select,c),id:ie,children:Cm(J)?Sm||(Sm=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):J})),(0,Jt.jsx)(km,(0,Se.A)({"aria-invalid":m,value:Array.isArray(M)?M.join(","):M,name:x,ref:z,"aria-hidden":!0,onChange:e=>{const t=G.find((t=>t.props.value===e.target.value));void 0!==t&&(N(t.props.value),A&&A(e,t))},tabIndex:-1,disabled:p,className:le.nativeInput,autoFocus:i,ownerState:se},I)),(0,Jt.jsx)(Em,{as:h,className:le.icon,ownerState:se}),(0,Jt.jsx)(cu,(0,Se.A)({id:"menu-".concat(x||""),anchorEl:Q,open:Y,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:(0,Se.A)({"aria-labelledby":y,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},g.MenuListProps),slotProps:(0,Se.A)({},g.slotProps,{paper:(0,Se.A)({},ce,{style:(0,Se.A)({minWidth:ae},null!=ce?ce.style:null)})}),children:ne}))]})})),Rm=Pm,Tm=(0,Nl.A)((0,Jt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Im=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Mm=["root"],Nm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,Al.A)(e)&&"variant"!==e,slot:"Root"},Lm=(0,En.Ay)(xf,Nm)(""),Fm=(0,En.Ay)(Df,Nm)(""),zm=(0,En.Ay)(kf,Nm)(""),Dm=t.forwardRef((function(e,r){const n=(0,_n.A)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Tm,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:v,multiple:y=!1,native:g=!1,onClose:b,onOpen:x,open:w,renderValue:A,SelectDisplayProps:S,variant:O="outlined"}=n,_=(0,Kt.A)(n,Im),E=g?bm:Rm,k=Gp({props:n,muiFormControl:Yp(),states:["variant","error"]}),j=k.variant||O,C=(0,Se.A)({},n,{variant:j,classes:i}),P=(e=>{const{classes:t}=e;return t})(C),R=(0,Kt.A)(P,Mm),T=p||{standard:(0,Jt.jsx)(Lm,{ownerState:C}),outlined:(0,Jt.jsx)(Fm,{label:m,ownerState:C}),filled:(0,Jt.jsx)(zm,{ownerState:C})}[j],I=(0,To.A)(r,T.ref);return(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(T,(0,Se.A)({inputComponent:E,inputProps:(0,Se.A)({children:a,error:k.error,IconComponent:u,variant:j,type:void 0,multiple:y},g?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:v,onClose:b,onOpen:x,open:w,renderValue:A,SelectDisplayProps:(0,Se.A)({id:d},S)},f,{classes:f?(0,Wp.A)(R,f.classes):R},p?p.props.inputProps:{})},(y&&g||c)&&"outlined"===j?{notched:!0}:{},{ref:I,className:(0,Sn.A)(T.props.className,s,P.root)},!p&&{variant:j},_))})}));Dm.muiName="Select";const Bm=Dm;function Vm(e){return(0,Pn.Ay)("MuiTextField",e)}(0,Cn.A)("MuiTextField",["root"]);const Wm=["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"],Um={standard:xf,filled:kf,outlined:Df},qm=(0,En.Ay)(nm,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hm=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:v,InputProps:y,inputRef:g,label:b,maxRows:x,minRows:w,multiline:A=!1,name:S,onBlur:O,onChange:_,onFocus:E,placeholder:k,required:j=!1,rows:C,select:P=!1,SelectProps:R,type:T,value:I,variant:M="outlined"}=r,N=(0,Kt.A)(r,Wm),L=(0,Se.A)({},r,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:p,multiline:A,required:j,select:P,variant:M}),F=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},Vm,t)})(L);const z={};"outlined"===M&&(h&&"undefined"!==typeof h.shrink&&(z.notched=h.shrink),z.label=b),P&&(R&&R.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=(0,Vp.A)(m),B=f&&D?"".concat(D,"-helper-text"):void 0,V=b&&D?"".concat(D,"-label"):void 0,W=Um[M],U=(0,Jt.jsx)(W,(0,Se.A)({"aria-describedby":B,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:p,multiline:A,name:S,rows:C,maxRows:x,minRows:w,type:T,value:I,id:D,inputRef:g,onBlur:O,onChange:_,onFocus:E,placeholder:k,inputProps:v},z,y));return(0,Jt.jsxs)(qm,(0,Se.A)({className:(0,Sn.A)(F.root,i),disabled:c,error:u,fullWidth:p,ref:t,required:j,color:s,variant:M,ownerState:L},N,{children:[null!=b&&""!==b&&(0,Jt.jsx)(Yf,(0,Se.A)({htmlFor:D,id:V},h,{children:b})),P?(0,Jt.jsx)(Bm,(0,Se.A)({"aria-describedby":B,id:D,labelId:V,value:I,input:U},R,{children:a})):U,f&&(0,Jt.jsx)(um,(0,Se.A)({id:B},d,{children:f}))]}))})),$m=Hm;var Qm=function(){return(0,t.useContext)(yt)},Km=r(7040);function Gm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,Km.A)(e,t,r)}function Xm(e){if(e.type)return e;if("#"===e.charAt(0))return Xm(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(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".concat(4===r.length?"a":"","(").concat(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,Up.A)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Up.A)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ym(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function Jm(e,t){return e=Xm(e),t=Gm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,Ym(e)}function Zm(e,t){if(e=Xm(e),t=Gm(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 Ym(e)}var eh=r(2577),th=function(e){var r=e.children,n=e.editor,o=e.preferenceKey,a=e.openButtonLabel,i=void 0===a?"ra.configurable.customize":a,s=e.sx,l="preferences.".concat(o),c=Qm(),u=!!c,d=Ps(),p=c||{},f=p.isEnabled,m=p.setEditor,h=p.preferenceKey,v=p.setPreferenceKey,y=l===h,g=(0,t.useRef)(y),b=(0,t.useRef)(null),x=(0,t.useState)(!1),w=x[0],A=x[1];if((0,t.useEffect)((function(){g.current=y}),[y]),(0,t.useEffect)((function(){return function(){g.current&&(v&&v(null),m&&m(null))}}),[m,v]),!u)return r;var S=function(){A(!0)},O=function(){A(!1)};return t.createElement(zp,{value:l},t.createElement(oh,{className:zn(nh.root,f&&nh.editMode,y&&nh.editorActive),sx:s,ref:b,onMouseEnter:f?S:void 0,onMouseLeave:f?O:void 0},r),t.createElement(Zc,{open:f&&(w||y),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:O,PaperProps:{elevation:1,onMouseEnter:S,onMouseLeave:O,title:d(i),onClick:function(){m((0,t.cloneElement)(n,{preferenceKey:l,key:l})),v(l)}},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},t.createElement(eh.A,{fontSize:"12px"})))},rh="RaConfigurable",nh={root:"".concat(rh,"-root"),editMode:"".concat(rh,"-editMode"),editorActive:"".concat(rh,"-editorActive")},oh=(0,En.Ay)("span",{name:rh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative",display:"inline-block"})["&.".concat(nh.editMode)]={transition:r.transitions.create("outline"),outline:"".concat(Jm(r.palette.warning.main,.3)," solid 2px")},t["&.".concat(nh.editMode,":hover ")]={outline:"".concat(Jm(r.palette.warning.main,.5)," solid 2px")},t["&.".concat(nh.editMode,".").concat(nh.editorActive," , &.").concat(nh.editMode,".").concat(nh.editorActive,":hover ")]={outline:"".concat(r.palette.warning.main," solid 2px")},t})),ah=(0,t.createContext)(void 0);ah.displayName="RecordContext";var ih=function(e){var r=e.children,n=e.value;return t.createElement(ah.Provider,{value:n},r)},sh=function(e){var r=(0,t.useContext)(ah);return e&&e.record||r},lh=function(){return lh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lh.apply(this,arguments)},ch=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uh=function(e){var r=e.title,n=e.defaultTitle,o=e.className,a=ch(e,["title","defaultTitle","className"]),i=Dp()[0],s=Ps(),l=sh();return i?t.createElement("span",lh({className:o},a),s(i,lh(lh({},l),{_:i}))):t.createElement("span",{className:o},r?"string"===typeof r?t.createElement("span",lh({},a),s(r,{_:r})):r:t.createElement("span",lh({},a),n))},dh=function(){return dh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dh.apply(this,arguments)},ph=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fh=function(){var e=function(e,r){var n=Dp(e,r),o=n[0],a=n[1],i=(0,t.useState)(o),s=i[0],l=i[1];return(0,t.useEffect)((function(){l(o||r)}),[o,r]),{value:s,onChange:function(e){l(""===e.target.value?r:e.target.value)},onBlur:function(){a(s)},onKeyDown:function(e){var t;if("Enter"===e.key){a(s);var r=e.target.form;if(r){var n=Bp([],r,!0).indexOf(e.target);null===(t=r.elements[n+1])||void 0===t||t.focus()}e.preventDefault()}}}}();return t.createElement("form",null,t.createElement($m,dh({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},mh=function(e){var r=e.preferenceKey,n=ph(e,["preferenceKey"]),o=J().pathname;return t.createElement(th,{editor:t.createElement(fh,null),preferenceKey:r||"".concat(o,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},t.createElement(uh,dh({},n)))},hh=function(){return hh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hh.apply(this,arguments)},vh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yh=function(e){var r=e.defaultTitle,n=e.title,o=e.preferenceKey,a=vh(e,["defaultTitle","title","preferenceKey"]),i=(0,t.useState)((function(){return"undefined"!==typeof document?document.getElementById("react-admin-title"):null})),s=i[0],l=i[1];return(0,t.useEffect)((function(){l((function(e){var t="undefined"!==typeof document&&document.body.contains(e);return e&&t?e:"undefined"!==typeof document?document.getElementById("react-admin-title"):null}))}),[]),s?(Mr(),(0,go.createPortal)(t.createElement(mh,hh({title:n,defaultTitle:r,preferenceKey:o},a)),s)):null},gh=Bn().oneOfType([Bn().string,Bn().element]);yh.propTypes={defaultTitle:Bn().string,className:Bn().string,record:Bn().any,title:gh};var bh=function(){return bh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bh.apply(this,arguments)},xh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wh=function(e){var r=e.error,n=e.errorComponent,o=e.errorInfo,a=e.resetErrorBoundary,i=e.className,s=e.title,l=xh(e,["error","errorComponent","errorInfo","resetErrorBoundary","className","title"]),c=Ps();return function(e){var r=J().pathname,n=(0,t.useRef)(r);(0,t.useEffect)((function(){r!==n.current&&e()}),[r,e])}(a),n?t.createElement(n,{error:r,errorInfo:o,title:s}):t.createElement(t.Fragment,null,s&&t.createElement(yh,{title:s}),t.createElement(Oh,bh({className:i},l),t.createElement("h1",{className:Sh.title,role:"alert"},t.createElement(Np.A,{className:Sh.icon}),c("ra.page.error")),t.createElement("div",null,c("ra.message.error")),!1,t.createElement("div",{className:Sh.toolbar},t.createElement(Il,{variant:"contained",startIcon:t.createElement(Lp.A,null),onClick:_h},c("ra.action.back")))))};wh.propTypes={className:Bn().string,error:Bn().object.isRequired,errorInfo:Bn().object,title:gh};var Ah="RaError",Sh={container:"".concat(Ah,"-container"),title:"".concat(Ah,"-title"),icon:"".concat(Ah,"-icon"),panel:"".concat(Ah,"-panel"),panelSumary:"".concat(Ah,"-panelSumary"),panelDetails:"".concat(Ah,"-panelDetails"),toolbar:"".concat(Ah,"-toolbar"),advice:"".concat(Ah,"-advice")},Oh=(0,En.Ay)("div",{name:Ah,overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"})[e.theme.breakpoints.down("md")]={padding:"1em"},t.fontFamily="Roboto, sans-serif",t.opacity=.5,t["& .".concat(Sh.title)]={display:"flex",alignItems:"center"},t["& .".concat(Sh.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(Sh.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(Sh.panelSumary)]={userSelect:"all"},t["& .".concat(Sh.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(Sh.toolbar)]={marginTop:"2em"},t["& .".concat(Sh.advice)]={marginTop:"2em"},t}));function _h(){window.history.go(-1)}var Eh=function(){return Eh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Eh.apply(this,arguments)},kh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jh=function(e){var r=e.alignIcon,n=void 0===r?"left":r,o=e.children,a=e.className,i=e.disabled,s=e.label,l=e.color,c=void 0===l?"primary":l,u=e.size,d=void 0===u?"small":u,p=e.to,f=kh(e,["alignIcon","children","className","disabled","label","color","size","to"]),m=Ps(),h=s?m(s,{_:s}):void 0,v=Ph(p);return yr((function(e){return e.breakpoints.down("sm")}))?s&&!i?t.createElement(qi,{title:h},t.createElement(js,Eh({"aria-label":h,className:a,color:c,size:"large"},v,f),o)):t.createElement(js,Eh({className:a,color:c,disabled:i,size:"large"},v,f),o):t.createElement(Ch,Eh({className:a,color:c,size:d,"aria-label":h,disabled:i,startIcon:"left"===n&&o?o:void 0,endIcon:"right"===n&&o?o:void 0},v,f),h)};jh.propTypes={alignIcon:Bn().oneOf(["left","right"]),children:Bn().element,className:Bn().string,color:Bn().oneOfType([Bn().oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),Bn().string]),disabled:Bn().bool,label:Bn().string,size:Bn().oneOf(["small","medium","large"])};var Ch=(0,En.Ay)(Il,{name:"RaButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),Ph=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:kh(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},Rh=function(){return t.createElement(Th,{onClick:Ih,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Th=(0,En.Ay)(jh,{name:"RaSkipNavigationButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}})),Ih=function(){if("undefined"!==typeof document){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Mh=r(8256),Nh=r(697),Lh=function(e,r){var n=Qm().setTitle;(0,t.useEffect)((function(){n(e,r)}),[e,JSON.stringify(r),n])},Fh=function(){var e=Ps();return Lh("ra.configurable.inspector.title",{_:"Inspector"}),t.createElement(Eu,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},zh=function(){var e=Qm(),r=e.isEnabled,n=e.disable,o=e.title,a=e.titleOptions,i=e.editor,s=e.preferenceKey,l=(0,t.useRef)(!1),c=function(e){var r=kt().removeItems;return(0,t.useCallback)((function(t){if("undefined"===typeof t&&"undefined"===typeof e)throw new Error("You must provide a key to remove an item from the store");return r(null!==t&&void 0!==t?t:e)}),[r,e])}(s),u=vo(),d=Ps(),p=(0,t.useState)(0),f=p[0],m=p[1],h=jt("ra.inspector.position",{x:(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8,y:8}),v=h[0],y=h[1],g=(0,t.useState)(),b=g[0],x=g[1];(0,t.useEffect)((function(){if(r){var e=function(e){e.dataTransfer.types.includes("inspector")&&e.preventDefault()};return null===document||void 0===document||document.addEventListener("dragover",e),function(){null===document||void 0===document||document.removeEventListener("dragover",e)}}}),[r]),(0,t.useEffect)((function(){if(r){var e=function(){null===window||void 0===window||window.requestAnimationFrame((function(){y((function(e){return{x:Math.min(e.x,(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8),y:Math.min(e.y,(null===window||void 0===window?void 0:window.innerHeight)-50)}}))}))};return e(),null===window||void 0===window||window.addEventListener("resize",e),function(){null===window||void 0===window||window.removeEventListener("resize",e)}}}),[r,y,u.breakpoints.values.sm]);return r?t.createElement(Vh,{className:Bh.modal,elevation:3,draggable:!0,onDragStart:function(e){"inspector-dialog-title"===(null===document||void 0===document?void 0:document.elementFromPoint(e.clientX,e.clientY)).id&&(l.current=!0,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("inspector",""),setTimeout((function(){e.target.classList.add("hide")}),0),x({x:e.clientX-v.x,y:e.clientY-v.y}))},onDragEnd:function(e){l.current&&(y({x:e.clientX-b.x,y:e.clientY-b.y}),e.target.classList.remove("hide"),l.current=!1)},sx:{left:v.x,top:v.y}},t.createElement("div",{className:Bh.title},t.createElement(Eu,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},o&&d(o,a)),t.createElement("span",{id:"inspector-toolbar"}),s&&t.createElement(js,{"aria-label":d("ra.action.remove"),onClick:function(){c(),m((function(e){return e+1}))},size:"small"},t.createElement(Nh.A,{fontSize:"inherit"})),t.createElement(js,{"aria-label":d("ra.action.close"),onClick:n,size:"small",sx:{mr:1}},t.createElement(Mh.A,{fontSize:"inherit"}))),t.createElement("div",{className:Bh.content,key:f},t.createElement(zp,{value:s},i||t.createElement(Fh,null)))):null},Dh="RaInspector",Bh={modal:"".concat(Dh,"-modal"),title:"".concat(Dh,"-title"),content:"".concat(Dh,"-content")},Vh=(0,En.Ay)(Zn,{name:Dh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}})["& .".concat(Bh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Bh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t}));zh.displayName="Inspector";var Wh=function(){return Wh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wh.apply(this,arguments)},Uh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},qh=function(e){var r=e.className,n=e.loadingPrimary,o=void 0===n?"ra.page.loading":n,a=e.loadingSecondary,i=void 0===a?"ra.message.loading":a,s=Uh(e,["className","loadingPrimary","loadingSecondary"]),l=on(1e3),c=Ps();return l?t.createElement(Qh,Wh({className:r},s),t.createElement("div",{className:$h.message},t.createElement(el,{className:$h.icon}),t.createElement(Eu,{variant:"h5",mt:3,color:"text.secondary"},c(o,{_:o})),t.createElement(Eu,{variant:"body2"},c(i,{_:i})))):null};qh.propTypes={className:Bn().string,loadingPrimary:Bn().string,loadingSecondary:Bn().string};var Hh="RaLoading",$h={root:"".concat(Hh,"-root"),icon:"".concat(Hh,"-icon"),message:"".concat(Hh,"-message")},Qh=(0,En.Ay)("div",{name:Hh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"})["& .".concat($h.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:r.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat($h.icon)]={width:"9em",height:"9em"},t})),Kh=function(){return Kh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kh.apply(this,arguments)},Gh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Xh=function(e){var r=e.appBar,n=void 0===r?Id:r,o=e.appBarAlwaysOn,a=e.children,i=e.className,s=e.dashboard,l=e.error,c=e.menu,u=void 0===c?Rp:c,d=e.sidebar,p=void 0===d?Yd:d,f=e.title,m=Gh(e,["appBar","appBarAlwaysOn","children","className","dashboard","error","menu","sidebar","title"]),h=Ts()[0],v=(0,t.useState)(null),y=v[0],g=v[1];return t.createElement(Zh,Kh({className:zn("layout",i)},m),t.createElement(Rh,null),t.createElement("div",{className:Jh.appFrame},t.createElement(n,{open:h,title:f,alwaysOn:o}),t.createElement("main",{className:Jh.contentWithSidebar},t.createElement(p,{appBarAlwaysOn:o},t.createElement(u,{hasDashboard:!!s})),t.createElement("div",{id:"main-content",className:Jh.content},t.createElement(Ln.ErrorBoundary,{onError:function(e,t){g(t)},fallbackRender:function(e){var r=e.error,n=e.resetErrorBoundary;return t.createElement(wh,{error:r,errorComponent:l,errorInfo:y,resetErrorBoundary:n,title:f})}},t.createElement(t.Suspense,{fallback:t.createElement(qh,null)},a)))),t.createElement(zh,null)))},Yh="RaLayout",Jh={appFrame:"".concat(Yh,"-appFrame"),contentWithSidebar:"".concat(Yh,"-contentWithSidebar"),content:"".concat(Yh,"-content")},Zh=(0,En.Ay)("div",{name:Yh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={display:"flex",flexDirection:"column",zIndex:1,minHeight:"100vh",backgroundColor:o.palette.background.default,position:"relative",minWidth:"fit-content",width:"100%",color:o.palette.getContrastText(o.palette.background.default)})["& .".concat(Jh.appFrame)]=((r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:o.spacing(6)})[o.breakpoints.down("sm")]={marginTop:o.spacing(7)},r),t["& .".concat(Jh.contentWithSidebar)]={display:"flex",flexGrow:1,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["& .".concat(Jh.content)]=((n={backgroundColor:o.palette.background.default,zIndex:2,display:"flex",flexDirection:"column",flexGrow:1,flexBasis:0,padding:0})[o.breakpoints.up("xs")]={paddingRight:o.spacing(1),paddingLeft:o.spacing(1)},n),t})),ev=r(7278),tv=function(){return tv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tv.apply(this,arguments)},rv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nv=function(e){var r=e.className,n=e.title,o=rv(e,["className","title"]),a=Ps();return Vr(),t.createElement(sv,tv({className:r},ov(o)),t.createElement(yh,{defaultTitle:n}),t.createElement("div",{className:iv.message},t.createElement(ev.A,{className:iv.icon}),t.createElement("h1",null,a("ra.page.not_found")),t.createElement("div",null,a("ra.message.not_found"),".")),t.createElement("div",{className:iv.toolbar},t.createElement(Il,{variant:"contained",startIcon:t.createElement(Lp.A,null),onClick:lv},a("ra.action.back"))))},ov=function(e){e.staticContext,e.history,e.location,e.match;return rv(e,["staticContext","history","location","match"])};nv.propTypes={className:Bn().string,title:Bn().string,location:Bn().object};var av="RaNotFound",iv={icon:"".concat(av,"-icon"),message:"".concat(av,"-message"),toolbar:"".concat(av,"-toolbar")},sv=(0,En.Ay)("div",{name:av,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("md")]={height:"100vh",marginTop:"-3em"},t["& .".concat(iv.icon)]={width:"9em",height:"9em"},t["& .".concat(iv.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(iv.toolbar)]={textAlign:"center",marginTop:"2em"},t}));function lv(){window.history.go(-1)}var cv=function(){return cv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cv.apply(this,arguments)},uv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dv=function(e){var r=e.loadingPrimary,n=void 0===r?"ra.page.loading":r,o=e.loadingSecondary,a=void 0===o?"ra.message.loading":o,i=uv(e,["loadingPrimary","loadingSecondary"]);return t.createElement(qh,cv({loadingPrimary:n,loadingSecondary:a},i))};function pv(e){return e.substring(2).toLowerCase()}function fv(e){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=t.useRef(!1),l=t.useRef(null),c=t.useRef(!1),u=t.useRef(!1);t.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,Do.A)(r.ref,l),p=(0,fc.A)((e=>{const t=u.current;u.current=!1;const r=(0,Bo.A)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||a(e)})),f=e=>t=>{u.current=!0;const n=r.props[e];n&&n(t)},m={ref:d};return!1!==i&&(m[i]=f(i)),t.useEffect((()=>{if(!1!==i){const e=pv(i),t=(0,Bo.A)(l.current),r=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",r)}}}),[p,i]),!1!==o&&(m[o]=f(o)),t.useEffect((()=>{if(!1!==o){const e=pv(o),t=(0,Bo.A)(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(r,m)})}function mv(e){return(0,Pn.Ay)("MuiSnackbarContent",e)}dv.propTypes={theme:Bn().object,className:Bn().string,loadingPrimary:Bn().string,loadingSecondary:Bn().string};(0,Cn.A)("MuiSnackbarContent",["root","message","action"]);const hv=["action","className","message","role"],vv=(0,En.Ay)(Zn,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const r="light"===t.palette.mode?.8:.98,n=(0,Qn.tL)(t.palette.background.default,r);return(0,Se.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),yv=(0,En.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),gv=(0,En.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),bv=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:i="alert"}=r,s=(0,Kt.A)(r,hv),l=r,c=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"],action:["action"],message:["message"]},mv,t)})(l);return(0,Jt.jsxs)(vv,(0,Se.A)({role:i,square:!0,elevation:6,className:(0,Sn.A)(c.root,o),ownerState:l,ref:t},s,{children:[(0,Jt.jsx)(yv,{className:c.message,ownerState:l,children:a}),n?(0,Jt.jsx)(gv,{className:c.action,ownerState:l,children:n}):null]}))})),xv=bv;function wv(e){return(0,Pn.Ay)("MuiSnackbar",e)}(0,Cn.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Av=["onEnter","onExited"],Sv=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Ov=(0,En.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,$n.A)(r.anchorOrigin.vertical)).concat((0,$n.A)(r.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,Se.A)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),_v=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiSnackbar"}),o=vo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:m=!1,message:h,open:v,TransitionComponent:y=zo,transitionDuration:g=a,TransitionProps:{onEnter:b,onExited:x}={}}=n,w=(0,Kt.A)(n.TransitionProps,Av),A=(0,Kt.A)(n,Sv),S=(0,Se.A)({},n,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:y,transitionDuration:g}),O=(e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,$n.A)(r.vertical)).concat((0,$n.A)(r.horizontal))]};return(0,On.A)(n,wv,t)})(S),{getRootProps:_,onClickAway:E}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:r=null,disableWindowBlurListener:n=!1,onClose:o,open:a,resumeHideDuration:i}=e,s=(0,uo.A)();t.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[a,o]);const l=(0,fc.A)(((e,t)=>{null==o||o(e,t)})),c=(0,fc.A)((e=>{o&&null!=e&&s.start(e,(()=>{l(null,"timeout")}))}));t.useEffect((()=>(a&&c(r),s.clear)),[a,r,c,s]);const u=s.clear,d=t.useCallback((()=>{null!=r&&c(null!=i?i:.5*r)}),[r,i,c]),p=e=>t=>{const r=e.onFocus;null==r||r(t),u()},f=e=>t=>{const r=e.onMouseEnter;null==r||r(t),u()},m=e=>t=>{const r=e.onMouseLeave;null==r||r(t),d()};return t.useEffect((()=>{if(!n&&a)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[n,a,d,u]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,Se.A)({},ci(e),ci(t));return(0,Se.A)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),d()}),onFocus:p(r),onMouseEnter:f(r),onMouseLeave:m(r)});var n},onClickAway:e=>{null==o||o(e,"clickaway")}}}((0,Se.A)({},S)),[k,j]=t.useState(!0),C=mi({elementType:Ov,getSlotProps:_,externalForwardedProps:A,ownerState:S,additionalProps:{ref:r},className:[O.root,d]});return!v&&k?null:(0,Jt.jsx)(fv,(0,Se.A)({onClickAway:E},p,{children:(0,Jt.jsx)(Ov,(0,Se.A)({},C,{children:(0,Jt.jsx)(y,(0,Se.A)({appear:!0,in:v,timeout:g,direction:"top"===s?"down":"up",onEnter:(e,t)=>{j(!1),b&&b(e,t)},onExited:e=>{j(!0),x&&x(e)}},w,{children:u||(0,Jt.jsx)(xv,(0,Se.A)({message:h,action:i},f))}))}))}))})),Ev=_v;var kv=function(){return(0,t.useContext)(zt)},jv=r(7283);const Cv=new(r.n(jv)());var Pv=function(){return Pv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pv.apply(this,arguments)},Rv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Tv={vertical:"bottom",horizontal:"center"},Iv=function(e){var r,n=e.className,o=e.type,a=void 0===o?"info":o,i=e.autoHideDuration,s=void 0===i?4e3:i,l=e.multiLine,c=void 0!==l&&l,u=e.anchorOrigin,d=void 0===u?Tv:u,p=Rv(e,["className","type","autoHideDuration","multiLine","anchorOrigin"]),f=kv(),m=f.notifications,h=f.takeNotification,v=(0,t.useState)(!1),y=v[0],g=v[1],b=t.useState(void 0),x=b[0],w=b[1],A=Ps();(0,t.useEffect)((function(){var e,t=function(e){e.preventDefault();return e.returnValue="",""};return(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.addEventListener("beforeunload",t),m.length&&!x?(w(h()),g(!0)):m.length&&x&&y&&g(!1),function(){var e;(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.removeEventListener("beforeunload",t)}}),[m,x,y,h]);var S=(0,t.useCallback)((function(){g(!1)}),[g]),O=(0,t.useCallback)((function(){x&&x.notificationOptions.undoable&&Cv.emit("end",{isUndo:!1}),w(void 0)}),[x]),_=(0,t.useCallback)((function(){Cv.emit("end",{isUndo:!0}),g(!1)}),[]);if(!x)return null;var E=x.message,k=x.type,j=x.notificationOptions,C=j.autoHideDuration,P=j.messageArgs,R=j.multiLine,T=j.undoable,I=Rv(j,["autoHideDuration","messageArgs","multiLine","undoable"]);return t.createElement(Lv,Pv({className:n,open:y,message:E&&"string"===typeof E&&A(E,P),autoHideDuration:void 0===C?s:C,disableWindowBlurListener:T,TransitionProps:{onExited:O},onClose:S,ContentProps:{className:zn(Nv[k||a],(r={},r[Nv.multiLine]=R||c,r))},action:T?t.createElement(Il,{color:"primary",className:Nv.undo,size:"small",onClick:_},t.createElement(t.Fragment,null,A("ra.action.undo"))):null,anchorOrigin:d},p,I),E&&"string"!==typeof E?E:null)};Iv.propTypes={type:Bn().string,autoHideDuration:Bn().number,multiLine:Bn().bool};var Mv="RaNotification",Nv={success:"".concat(Mv,"-success"),error:"".concat(Mv,"-error"),warning:"".concat(Mv,"-warning"),undo:"".concat(Mv,"-undo"),multiLine:"".concat(Mv,"-multiLine")},Lv=(0,En.Ay)(Ev,{name:Mv,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme,n=e.type;return(t={})["& .".concat(Nv.success)]={backgroundColor:r.palette.success.main,color:r.palette.success.contrastText},t["& .".concat(Nv.error)]={backgroundColor:r.palette.error.main,color:r.palette.error.contrastText},t["& .".concat(Nv.warning)]={backgroundColor:r.palette.warning.main,color:r.palette.warning.contrastText},t["& .".concat(Nv.undo)]={color:"success"===n?r.palette.success.contrastText:r.palette.primary.light},t["& .".concat(Nv.multiLine)]={whiteSpace:"pre-wrap"},t}));function Fv(e){return(0,Pn.Ay)("MuiCard",e)}(0,Cn.A)("MuiCard",["root"]);const zv=["className","raised"],Dv=(0,En.Ay)(Zn,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),Bv=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiCard"}),{className:n,raised:o=!1}=r,a=(0,Kt.A)(r,zv),i=(0,Se.A)({},r,{raised:o}),s=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},Fv,t)})(i);return(0,Jt.jsx)(Dv,(0,Se.A)({className:(0,Sn.A)(s.root,n),elevation:o?8:void 0,ref:t,ownerState:i},a))})),Vv=Bv;var Wv=r(7555);function Uv(e){return(0,Pn.Ay)("MuiCardContent",e)}(0,Cn.A)("MuiCardContent",["root"]);const qv=["className","component"],Hv=(0,En.Ay)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}}))),$v=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiCardContent"}),{className:n,component:o="div"}=r,a=(0,Kt.A)(r,qv),i=(0,Se.A)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},Uv,t)})(i);return(0,Jt.jsx)(Hv,(0,Se.A)({as:o,className:(0,Sn.A)(s.root,n),ownerState:i,ref:t},a))})),Qv=$v;const Kv=function(){var e=Er(),r=J().state,n=ee(),o=kr(),a=kv().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,l=Cr("".concat(o,"/").concat(_r)),c=(0,t.useCallback)((function(t,r){return void 0===t&&(t={}),e.login(t).then((function(e){(a(),e&&e.hasOwnProperty("redirectTo"))?e&&n(e.redirectTo):n(r||(i+s||l));return e}))}),[e,n,i,s,a,l]),u=(0,t.useCallback)((function(e,t){return a(),n(l),Promise.resolve()}),[n,a,l]);return e?c:u};var Gv=r(5797),Xv=r.n(Gv),Yv=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Jv=function(e){return"undefined"===typeof e||null===e||""===e||Array.isArray(e)&&0===e.length};var Zv=function(e,t,r,n){return"function"===typeof e?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},ey=function(e){return Xv()(e,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}))},ty=function(e){return"function"===typeof e},ry=function(e,t){return function(r,n,o){var a,i=e(r,n,o);return i?"string"===typeof i||(a=i)&&a.hasOwnProperty("message")?i:i.then((function(e){return e||t(r,n,o)})):t(r,n,o)}},ny=ey((function(e){return void 0===e&&(e="ra.validation.required"),Object.assign((function(t,r){return Jv(t)?Zv(e,void 0,t,r):void 0}),{isRequired:!0})})),oy=(ey((function(e,t){return void 0===t&&(t="ra.validation.minLength"),function(r,n){return!Jv(r)&&r.length<e?Zv(t,{min:e},r,n):void 0}})),ey((function(e,t){return void 0===t&&(t="ra.validation.maxLength"),function(r,n){return!Jv(r)&&r.length>e?Zv(t,{max:e},r,n):void 0}}))),ay=(ey((function(e,t){return void 0===t&&(t="ra.validation.minValue"),function(r,n){return!Jv(r)&&r<e?Zv(t,{min:e},r,n):void 0}})),ey((function(e,t){return void 0===t&&(t="ra.validation.maxValue"),function(r,n){return!Jv(r)&&r>e?Zv(t,{max:e},r,n):void 0}}))),iy=ey((function(e){return void 0===e&&(e="ra.validation.number"),function(t,r){return!Jv(t)&&isNaN(Number(t))?Zv(e,void 0,t,r):void 0}})),sy=Xv()((function(e,t){return void 0===t&&(t="ra.validation.regex"),function(r,n){return Jv(r)||"string"!==typeof r||e.test(r)?void 0:Zv(t,{pattern:e},r,n)}}),(function(e,t){return e.toString()+t})),ly=(ey((function(e){return void 0===e&&(e="ra.validation.email"),sy(Yv,e)})),function(e){return{message:"ra.validation.oneOf",args:e.args}}),cy=(ey((function(e,t){return void 0===t&&(t=ly),function(r,n){return Jv(r)||-1!==e.indexOf(r)?void 0:Zv(t,{list:e},r,n)}})),function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&!!e.find((function(e){return e.isRequired}))}),uy=e=>"checkbox"===e.type,dy=e=>e instanceof Date,py=e=>null==e;const fy=e=>"object"===typeof e;var my=e=>!py(e)&&!Array.isArray(e)&&fy(e)&&!dy(e),hy=e=>my(e)&&e.target?uy(e.target)?e.target.checked:e.target.value:e,vy=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),yy=e=>{const t=e.constructor&&e.constructor.prototype;return my(t)&&t.hasOwnProperty("isPrototypeOf")},gy="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function by(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(gy&&(e instanceof Blob||e instanceof FileList)||!r&&!my(e))return e;if(t=r?[]:{},r||yy(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=by(e[r]));else t=e}return t}var xy=e=>Array.isArray(e)?e.filter(Boolean):[],wy=e=>void 0===e,Ay=(e,t,r)=>{if(!t||!my(e))return r;const n=xy(t.split(/[,[\].]+?/)).reduce(((e,t)=>py(e)?e:e[t]),e);return wy(n)||n===e?wy(e[t])?r:e[t]:n},Sy=e=>"boolean"===typeof e;const Oy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_y={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ey="max",ky="min",jy="maxLength",Cy="minLength",Py="pattern",Ry="required",Ty="validate",Iy=t.createContext(null),My=()=>t.useContext(Iy),Ny=e=>{const{children:r,...n}=e;return t.createElement(Iy.Provider,{value:n},r)};var Ly=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const o=a;return t._proxyFormState[o]!==_y.all&&(t._proxyFormState[o]=!n||_y.all),r&&(r[o]=!0),e[o]}});return o},Fy=e=>my(e)&&!Object.keys(e).length,zy=(e,t,r,n)=>{r(e);const{name:o,...a}=e;return Fy(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!n||_y.all)))},Dy=e=>Array.isArray(e)?e:[e],By=(e,t,r)=>!e||!t||e===t||Dy(e).some((e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))));function Vy(e){const r=t.useRef(e);r.current=e,t.useEffect((()=>{const t=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}function Wy(e){const r=My(),{control:n=r.control,disabled:o,name:a,exact:i}=e||{},[s,l]=t.useState(n._formState),c=t.useRef(!0),u=t.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=t.useRef(a);return d.current=a,Vy({disabled:o,next:e=>c.current&&By(d.current,e.name,i)&&zy(e,u.current,n._updateFormState)&&l({...n._formState,...e}),subject:n._subjects.state}),t.useEffect((()=>(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),Ly(s,n,u.current,!1)}var Uy=e=>"string"===typeof e,qy=(e,t,r,n,o)=>Uy(e)?(n&&t.watch.add(e),Ay(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),Ay(r,e)))):(n&&(t.watchAll=!0),r);function Hy(e){const r=My(),{control:n=r.control,name:o,defaultValue:a,disabled:i,exact:s}=e||{},l=t.useRef(o);l.current=o,Vy({disabled:i,subject:n._subjects.values,next:e=>{By(l.current,e.name,s)&&u(by(qy(l.current,n._names,e.values||n._formValues,!1,a)))}});const[c,u]=t.useState(n._getWatch(o,a));return t.useEffect((()=>n._removeUnmounted())),c}var $y=e=>/^\w*$/.test(e),Qy=e=>xy(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ky=(e,t,r)=>{let n=-1;const o=$y(t)?[t]:Qy(t),a=o.length,i=a-1;for(;++n<a;){const t=o[n];let a=r;if(n!==i){const r=e[t];a=my(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}e[t]=a,e=e[t]}return e};function Gy(e){const r=My(),{name:n,disabled:o,control:a=r.control,shouldUnregister:i}=e,s=vy(a._names.array,n),l=Hy({control:a,name:n,defaultValue:Ay(a._formValues,n,Ay(a._defaultValues,n,e.defaultValue)),exact:!0}),c=Wy({control:a,name:n}),u=t.useRef(a.register(n,{...e.rules,value:l,...Sy(e.disabled)?{disabled:e.disabled}:{}}));return t.useEffect((()=>{const e=a._options.shouldUnregister||i,t=(e,t)=>{const r=Ay(a._fields,e);r&&(r._f.mount=t)};if(t(n,!0),e){const e=by(Ay(a._options.defaultValues,n));Ky(a._defaultValues,n,e),wy(Ay(a._formValues,n))&&Ky(a._formValues,n,e)}return()=>{(s?e&&!a._state.action:e)?a.unregister(n):t(n,!1)}}),[n,a,s,i]),t.useEffect((()=>{Ay(a._fields,n)&&a._updateDisabledField({disabled:o,fields:a._fields,name:n,value:Ay(a._fields,n)._f.value})}),[o,n,a]),{field:{name:n,value:l,...Sy(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:t.useCallback((e=>u.current.onChange({target:{value:hy(e),name:n},type:Oy.CHANGE})),[n]),onBlur:t.useCallback((()=>u.current.onBlur({target:{value:Ay(a._formValues,n),name:n},type:Oy.BLUR})),[n,a]),ref:e=>{const t=Ay(a._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ay(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ay(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ay(c.touchedFields,n)},error:{enumerable:!0,get:()=>Ay(c.errors,n)}})}}var Xy=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{},Yy=()=>{const e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},Jy=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.shouldFocus||wy(r.shouldFocus)?r.focusName||"".concat(e,".").concat(wy(r.focusIndex)?t:r.focusIndex,"."):""},Zy=e=>({isOnSubmit:!e||e===_y.onSubmit,isOnBlur:e===_y.onBlur,isOnChange:e===_y.onChange,isOnAll:e===_y.all,isOnTouch:e===_y.onTouched}),eg=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const tg=(e,t,r,n)=>{for(const o of r||Object.keys(e)){const r=Ay(e,o);if(r){const{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!n)break;if(e.ref&&t(e.ref,e.name)&&!n)break;tg(a,t)}else my(a)&&tg(a,t)}}};var rg=(e,t,r)=>{const n=xy(Ay(e,r));return Ky(n,"root",t[r]),Ky(e,r,n),e},ng=e=>"file"===e.type,og=e=>"function"===typeof e,ag=e=>{if(!gy)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ig=e=>Uy(e),sg=e=>"radio"===e.type,lg=e=>e instanceof RegExp;const cg={value:!1,isValid:!1},ug={value:!0,isValid:!0};var dg=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!wy(e[0].attributes.value)?wy(e[0].value)||""===e[0].value?ug:{value:e[0].value,isValid:!0}:ug:cg}return cg};const pg={isValid:!1,value:null};var fg=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),pg):pg;function mg(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(ig(e)||Array.isArray(e)&&e.every(ig)||Sy(e)&&!e)return{type:r,message:ig(e)?e:"",ref:t}}var hg=e=>my(e)&&!lg(e)?e:{value:e,message:""},vg=async(e,t,r,n,o)=>{const{ref:a,refs:i,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:p,validate:f,name:m,valueAsNumber:h,mount:v,disabled:y}=e._f,g=Ay(t,m);if(!v||y)return{};const b=i?i[0]:a,x=e=>{n&&b.reportValidity&&(b.setCustomValidity(Sy(e)?"":e||""),b.reportValidity())},w={},A=sg(a),S=uy(a),O=A||S,_=(h||ng(a))&&wy(a.value)&&wy(g)||ag(a)&&""===a.value||""===g||Array.isArray(g)&&!g.length,E=Xy.bind(null,m,r,w),k=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jy,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Cy;const i=e?t:r;w[m]={type:e?n:o,message:i,ref:a,...E(e?n:o,i)}};if(o?!Array.isArray(g)||!g.length:s&&(!O&&(_||py(g))||Sy(g)&&!g||S&&!dg(i).isValid||A&&!fg(i).isValid)){const{value:e,message:t}=ig(s)?{value:!!s,message:s}:hg(s);if(e&&(w[m]={type:Ry,message:t,ref:b,...E(Ry,t)},!r))return x(t),w}if(!_&&(!py(u)||!py(d))){let e,t;const n=hg(d),o=hg(u);if(py(g)||isNaN(g)){const r=a.valueAsDate||new Date(g),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;Uy(n.value)&&g&&(e=s?i(g)>i(n.value):l?g>n.value:r>new Date(n.value)),Uy(o.value)&&g&&(t=s?i(g)<i(o.value):l?g<o.value:r<new Date(o.value))}else{const r=a.valueAsNumber||(g?+g:g);py(n.value)||(e=r>n.value),py(o.value)||(t=r<o.value)}if((e||t)&&(k(!!e,n.message,o.message,Ey,ky),!r))return x(w[m].message),w}if((l||c)&&!_&&(Uy(g)||o&&Array.isArray(g))){const e=hg(l),t=hg(c),n=!py(e.value)&&g.length>+e.value,o=!py(t.value)&&g.length<+t.value;if((n||o)&&(k(n,e.message,t.message),!r))return x(w[m].message),w}if(p&&!_&&Uy(g)){const{value:e,message:t}=hg(p);if(lg(e)&&!g.match(e)&&(w[m]={type:Py,message:t,ref:a,...E(Py,t)},!r))return x(t),w}if(f)if(og(f)){const e=mg(await f(g,t),b);if(e&&(w[m]={...e,...E(Ty,e.message)},!r))return x(e.message),w}else if(my(f)){let e={};for(const n in f){if(!Fy(e)&&!r)break;const o=mg(await f[n](g,t),b,n);o&&(e={...o,...E(n,o.message)},x(o.message),r&&(w[m]=e))}if(!Fy(e)&&(w[m]={ref:b,...e},!r))return w}return x(!0),w},yg=(e,t)=>[...e,...Dy(t)],gg=e=>Array.isArray(e)?e.map((()=>{})):void 0;function bg(e,t,r){return[...e.slice(0,t),...Dy(r),...e.slice(t)]}var xg=(e,t,r)=>Array.isArray(e)?(wy(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],wg=(e,t)=>[...Dy(t),...Dy(e)];var Ag=(e,t)=>wy(t)?[]:function(e,t){let r=0;const n=[...e];for(const o of t)n.splice(o-r,1),r++;return xy(n).length?n:[]}(e,Dy(t).sort(((e,t)=>e-t))),Sg=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function Og(e,t){const r=Array.isArray(t)?t:$y(t)?[t]:Qy(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=wy(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,a=r[o];return n&&delete n[a],0!==o&&(my(n)&&Fy(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!wy(e[t]))return!1;return!0}(n))&&Og(e,r.slice(0,-1)),e}var _g=(e,t,r)=>(e[t]=r,e);var Eg=()=>{let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},kg=e=>py(e)||!fy(e);function jg(e,t){if(kg(e)||kg(t))return e===t;if(dy(e)&&dy(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(dy(r)&&dy(e)||my(r)&&my(e)||Array.isArray(r)&&Array.isArray(e)?!jg(r,e):r!==e)return!1}}return!0}var Cg=e=>"select-multiple"===e.type,Pg=e=>sg(e)||uy(e),Rg=e=>ag(e)&&e.isConnected,Tg=e=>{for(const t in e)if(og(e[t]))return!0;return!1};function Ig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Array.isArray(e);if(my(e)||r)for(const n in e)Array.isArray(e[n])||my(e[n])&&!Tg(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Ig(e[n],t[n])):py(e[n])||(t[n]=!0);return t}function Mg(e,t,r){const n=Array.isArray(e);if(my(e)||n)for(const o in e)Array.isArray(e[o])||my(e[o])&&!Tg(e[o])?wy(t)||kg(r[o])?r[o]=Array.isArray(e[o])?Ig(e[o],[]):{...Ig(e[o])}:Mg(e[o],py(t)?{}:t[o],r[o]):r[o]=!jg(e[o],t[o]);return r}var Ng=(e,t)=>Mg(e,t,Ig(t)),Lg=(e,t)=>{let{valueAsNumber:r,valueAsDate:n,setValueAs:o}=t;return wy(e)?e:r?""===e?NaN:e?+e:e:n&&Uy(e)?new Date(e):o?o(e):e};function Fg(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return ng(t)?t.files:sg(t)?fg(e.refs).value:Cg(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):uy(t)?dg(e.refs).value:Lg(wy(t.value)?e.ref.value:t.value,e)}var zg=(e,t,r,n)=>{const o={};for(const a of e){const e=Ay(t,a);e&&Ky(o,a,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}},Dg=e=>wy(e)?e:lg(e)?e.source:my(e)?lg(e.value)?e.value.source:e.value:e,Bg=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Vg(e,t,r){const n=Ay(e,r);if(n||$y(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),a=Ay(t,n),i=Ay(e,n);if(a&&!Array.isArray(a)&&r!==n)return{name:r};if(i&&i.type)return{name:n,error:i};o.pop()}return{name:r}}var Wg=(e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e),Ug=(e,t)=>!xy(Ay(e,t)).length&&Og(e,t);const qg={mode:_y.onSubmit,reValidateMode:_y.onChange,shouldFocusError:!0};function Hg(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n={...qg,...t},o={submitCount:0,isDirty:!1,isLoading:og(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},a={},i=(my(n.values)||my(n.defaultValues))&&by(n.values||n.defaultValues)||{},s=n.shouldUnregister?{}:by(i),l={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Eg(),array:Eg(),state:Eg()},f=Zy(n.mode),m=Zy(n.reValidateMode),h=n.criteriaMode===_y.all,v=async e=>{if(d.isValid||e){const e=n.resolver?Fy((await w()).errors):await A(a,!0);e!==o.isValid&&p.state.next({isValid:e})}},y=e=>d.isValidating&&p.state.next({isValidating:e}),g=(e,t,r,n)=>{const o=Ay(a,e);if(o){const a=Ay(s,e,wy(r)?Ay(i,e):r);wy(a)||n&&n.defaultChecked||t?Ky(s,e,t?a:Fg(o._f)):_(e,a),l.mount&&v()}},b=(e,t,r,n,s)=>{let l=!1,c=!1;const u={name:e},f=!(!Ay(a,e)||!Ay(a,e)._f.disabled);if(!r||n){d.isDirty&&(c=o.isDirty,o.isDirty=u.isDirty=S(),l=c!==u.isDirty);const r=f||jg(Ay(i,e),t);c=!(f||!Ay(o.dirtyFields,e)),r||f?Og(o.dirtyFields,e):Ky(o.dirtyFields,e,!0),u.dirtyFields=o.dirtyFields,l=l||d.dirtyFields&&c!==!r}if(r){const t=Ay(o.touchedFields,e);t||(Ky(o.touchedFields,e,r),u.touchedFields=o.touchedFields,l=l||d.touchedFields&&t!==r)}return l&&s&&p.state.next(u),l?u:{}},x=(r,n,a,i)=>{const s=Ay(o.errors,r),l=d.isValid&&Sy(n)&&o.isValid!==n;var c;if(t.delayError&&a?(c=()=>((e,t)=>{Ky(o.errors,e,t),p.state.next({errors:o.errors})})(r,a),e=e=>{clearTimeout(u),u=setTimeout(c,e)},e(t.delayError)):(clearTimeout(u),e=null,a?Ky(o.errors,r,a):Og(o.errors,r)),(a?!jg(s,a):s)||!Fy(i)||l){const e={...i,...l&&Sy(n)?{isValid:n}:{},errors:o.errors,name:r};o={...o,...e},p.state.next(e)}y(!1)},w=async e=>n.resolver(s,n.context,zg(e||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)),A=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const a in e){const i=e[a];if(i){const{_f:e,...a}=i;if(e){const a=c.array.has(e.name),l=await vg(i,s,h,n.shouldUseNativeValidation&&!t,a);if(l[e.name]&&(r.valid=!1,t))break;!t&&(Ay(l,e.name)?a?rg(o.errors,l,e.name):Ky(o.errors,e.name,l[e.name]):Og(o.errors,e.name))}a&&await A(a,t,r)}}return r.valid},S=(e,t)=>(e&&t&&Ky(s,e,t),!jg(R(),i)),O=(e,t,r)=>qy(e,c,{...l.mount?s:wy(t)?i:Uy(e)?{[e]:t}:t},r,t),_=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Ay(a,e);let o=t;if(n){const r=n._f;r&&(!r.disabled&&Ky(s,e,Lg(t,r)),o=ag(r.ref)&&py(t)?"":t,Cg(r.ref)?[...r.ref.options].forEach((e=>e.selected=o.includes(e.value))):r.refs?uy(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):r.refs[0]&&(r.refs[0].checked=!!o):r.refs.forEach((e=>e.checked=e.value===o)):ng(r.ref)?r.ref.value="":(r.ref.value=o,r.ref.type||p.values.next({name:e,values:{...s}})))}(r.shouldDirty||r.shouldTouch)&&b(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&P(e)},E=(e,t,r)=>{for(const n in t){const o=t[n],i="".concat(e,".").concat(n),s=Ay(a,i);!c.array.has(e)&&kg(o)&&(!s||s._f)||dy(o)?_(i,o,r):E(i,o,r)}},k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=Ay(a,e),f=c.array.has(e),m=by(t);Ky(s,e,m),f?(p.array.next({name:e,values:{...s}}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&p.state.next({name:e,dirtyFields:Ng(i,s),isDirty:S(e,m)})):!u||u._f||py(m)?_(e,m,n):E(e,m,n),eg(e,c)&&p.state.next({...o}),p.values.next({name:e,values:{...s}}),!l.mount&&r()},j=async t=>{const r=t.target;let i=r.name,l=!0;const u=Ay(a,i),g=e=>{l=Number.isNaN(e)||e===Ay(s,i,e)};if(u){let S,O;const _=r.type?Fg(u._f):hy(t),E=t.type===Oy.BLUR||t.type===Oy.FOCUS_OUT,k=!Bg(u._f)&&!n.resolver&&!Ay(o.errors,i)&&!u._f.deps||Wg(E,Ay(o.touchedFields,i),o.isSubmitted,m,f),j=eg(i,c,E);Ky(s,i,_),E?(u._f.onBlur&&u._f.onBlur(t),e&&e(0)):u._f.onChange&&u._f.onChange(t);const C=b(i,_,E,!1),R=!Fy(C)||j;if(!E&&p.values.next({name:i,type:t.type,values:{...s}}),k)return d.isValid&&v(),R&&p.state.next({name:i,...j?{}:C});if(!E&&j&&p.state.next({...o}),y(!0),n.resolver){const{errors:e}=await w([i]);if(g(_),l){const t=Vg(o.errors,a,i),r=Vg(e,a,t.name||i);S=r.error,i=r.name,O=Fy(e)}}else S=(await vg(u,s,h,n.shouldUseNativeValidation))[i],g(_),l&&(S?O=!1:d.isValid&&(O=await A(a,!0)));l&&(u._f.deps&&P(u._f.deps),x(i,O,S,C))}},C=(e,t)=>{if(Ay(o.errors,t)&&e.focus)return e.focus(),1},P=async function(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=Dy(e);if(y(!0),n.resolver){const n=await(async e=>{const{errors:t}=await w(e);if(e)for(const r of e){const e=Ay(t,r);e?Ky(o.errors,r,e):Og(o.errors,r)}else o.errors=t;return t})(wy(e)?e:s);t=Fy(n),r=e?!s.some((e=>Ay(n,e))):t}else e?(r=(await Promise.all(s.map((async e=>{const t=Ay(a,e);return await A(t&&t._f?{[e]:t}:t)})))).every(Boolean),(r||o.isValid)&&v()):r=t=await A(a);return p.state.next({...!Uy(e)||d.isValid&&t!==o.isValid?{}:{name:e},...n.resolver||!e?{isValid:t}:{},errors:o.errors,isValidating:!1}),i.shouldFocus&&!r&&tg(a,C,e?s:c.mount),r},R=e=>{const t={...i,...l.mount?s:{}};return wy(e)?t:Uy(e)?Ay(t,e):e.map((e=>Ay(t,e)))},T=(e,t)=>({invalid:!!Ay((t||o).errors,e),isDirty:!!Ay((t||o).dirtyFields,e),isTouched:!!Ay((t||o).touchedFields,e),error:Ay((t||o).errors,e)}),I=(e,t,r)=>{const n=(Ay(a,e,{_f:{}})._f||{}).ref;Ky(o.errors,e,{...t,ref:n}),p.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const r of e?Dy(e):c.mount)c.mount.delete(r),c.array.delete(r),t.keepValue||(Og(a,r),Og(s,r)),!t.keepError&&Og(o.errors,r),!t.keepDirty&&Og(o.dirtyFields,r),!t.keepTouched&&Og(o.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&Og(i,r);p.values.next({values:{...s}}),p.state.next({...o,...t.keepDirty?{isDirty:S()}:{}}),!t.keepIsValid&&v()},N=e=>{let{disabled:t,name:r,field:n,fields:o,value:a}=e;if(Sy(t)){const e=t?void 0:wy(a)?Fg(n?n._f:Ay(o,r)._f):a;Ky(s,r,e),b(r,e,!1,!1,!0)}},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Ay(a,e);const o=Sy(t.disabled);return Ky(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),r?N({field:r,disabled:t.disabled,name:e,value:t.value}):g(e,!0,t.value),{...o?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Dg(t.min),max:Dg(t.max),minLength:Dg(t.minLength),maxLength:Dg(t.maxLength),pattern:Dg(t.pattern)}:{},name:e,onChange:j,onBlur:j,ref:o=>{if(o){L(e,t),r=Ay(a,e);const n=wy(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,s=Pg(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;Ky(a,e,{_f:{...r._f,...s?{refs:[...l.filter(Rg),n,...Array.isArray(Ay(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=Ay(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!vy(c.array,e)||!l.action)&&c.unMount.add(e)}}},F=()=>n.shouldFocusError&&tg(a,C,c.mount),z=(e,t)=>async r=>{let i;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let l=by(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await w();o.errors=e,l=t}else await A(a);if(Og(o.errors,"root"),Fy(o.errors)){p.state.next({errors:{}});try{await e(l,r)}catch(c){i=c}}else t&&await t({...o.errors},r),F(),setTimeout(F);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fy(o.errors)&&!i,submitCount:o.submitCount+1,errors:o.errors}),i)throw i},D=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=e?by(e):i,f=by(u),m=e&&!Fy(e)?f:i;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of c.mount)Ay(o.dirtyFields,e)?Ky(m,e,Ay(s,e)):k(e,Ay(m,e));else{if(gy&&wy(e))for(const e of c.mount){const t=Ay(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ag(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}s=t.shouldUnregister?n.keepDefaultValues?by(i):{}:by(m),p.array.next({values:{...m}}),p.values.next({values:{...m}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&r(),l.mount=!d.isValid||!!n.keepIsValid||!!n.keepDirtyValues,l.watch=!!t.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty?o.isDirty:!(!n.keepDefaultValues||jg(e,i)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&s?Ng(i,s):o.dirtyFields:n.keepDefaultValues&&e?Ng(i,e):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>D(og(e)?e(s):e,t);return{control:{register:L,unregister:M,getFieldState:T,handleSubmit:z,setError:I,_executeSchema:w,_getWatch:O,_getDirty:S,_updateValid:v,_removeUnmounted:()=>{for(const e of c.unMount){const t=Ay(a,e);t&&(t._f.refs?t._f.refs.every((e=>!Rg(e))):!Rg(t._f.ref))&&M(e)}c.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(n&&r){if(l.action=!0,u&&Array.isArray(Ay(a,e))){const t=r(Ay(a,e),n.argA,n.argB);c&&Ky(a,e,t)}if(u&&Array.isArray(Ay(o.errors,e))){const t=r(Ay(o.errors,e),n.argA,n.argB);c&&Ky(o.errors,e,t),Ug(o.errors,e)}if(d.touchedFields&&u&&Array.isArray(Ay(o.touchedFields,e))){const t=r(Ay(o.touchedFields,e),n.argA,n.argB);c&&Ky(o.touchedFields,e,t)}d.dirtyFields&&(o.dirtyFields=Ng(i,s)),p.state.next({name:e,isDirty:S(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else Ky(s,e,t)},_updateDisabledField:N,_getFieldArray:e=>xy(Ay(l.mount?s:i,e,t.shouldUnregister?Ay(i,e,[]):[])),_reset:D,_resetDefaultValues:()=>og(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),p.state.next({isLoading:!1})})),_updateFormState:e=>{o={...o,...e}},_disableForm:e=>{Sy(e)&&(p.state.next({disabled:e}),tg(a,((t,r)=>{let n=e;const o=Ay(a,r);o&&Sy(o._f.disabled)&&(n||(n=o._f.disabled)),t.disabled=n}),0,!1))},_subjects:p,_proxyFormState:d,_setErrors:e=>{o.errors=e,p.state.next({errors:o.errors,isValid:!1})},get _fields(){return a},get _formValues(){return s},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return c},set _names(e){c=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:P,register:L,handleSubmit:z,watch:(e,t)=>og(e)?p.values.subscribe({next:r=>e(O(void 0,t),r)}):O(e,t,!0),setValue:k,getValues:R,reset:B,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ay(a,e)&&(wy(t.defaultValue)?k(e,by(Ay(i,e))):(k(e,t.defaultValue),Ky(i,e,by(t.defaultValue))),t.keepTouched||Og(o.touchedFields,e),t.keepDirty||(Og(o.dirtyFields,e),o.isDirty=t.defaultValue?S(e,by(Ay(i,e))):S()),t.keepError||(Og(o.errors,e),d.isValid&&v()),p.state.next({...o}))},clearErrors:e=>{e&&Dy(e).forEach((e=>Og(o.errors,e))),p.state.next({errors:e?o.errors:{}})},unregister:M,setError:I,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Ay(a,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:T}}function $g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t.useRef(),n=t.useRef(),[o,a]=t.useState({isDirty:!1,isValidating:!1,isLoading:og(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:og(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...Hg(e,(()=>a((e=>({...e}))))),formState:o});const i=r.current.control;return i._options=e,Vy({subject:i._subjects.state,next:e=>{zy(e,i._proxyFormState,i._updateFormState,!0)&&a({...i._formState})}}),t.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),t.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==o.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,o.isDirty]),t.useEffect((()=>{e.values&&!jg(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,a((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),t.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),t.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),t.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),r.current.formState=Ly(o,i),r.current}var Qg=(0,t.createContext)(void 0),Kg=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Gg=function(e){var r=e.children,n=(0,t.useRef)({}),o=(0,t.useRef)({}),a=(0,t.useMemo)((function(){return{subscribe:function(e,t){return o.current[e]||(o.current[e]=[]),o.current[e].push(t),function(){o.current[e]=o.current[e].filter((function(e){return e!==t}))}},getGroupFields:function(e){return n.current[e]||[]},registerGroup:function(e){n.current[e]=n.current[e]||[]},unregisterGroup:function(e){delete n[e]},registerField:function(e,t){null!=t&&((n.current[t]||[]).includes(e)||(n.current[t]=Kg(Kg([],n.current[t]||[],!0),[e],!1),o.current[t]&&o.current[t].forEach((function(e){return e()}))))},unregisterField:function(e,t){if(null!=t)if(n.current[t]){var r=new Set(n.current[t]);r.delete(e),n.current[t]=Array.from(r),o.current[t]&&o.current[t].forEach((function(e){return e()}))}else console.warn("Invalid form group ".concat(t))}}}),[]);return t.createElement(Qg.Provider,{value:a},r)},Xg=function(e){var r=e.value,n=e.children;return r?t.createElement(ih,{value:r},n):n},Yg=(0,t.createContext)(void 0),Jg=function(e){var r=(0,t.useContext)(Yg);return e&&e.resource||r},Zg=(0,t.createContext)(""),eb=function(){return(0,t.useContext)(Zg)},tb=function(e){var r=e.prefix,n=e.concatenate,o=void 0===n||n,a=e.children,i=eb(),s=i&&o?"".concat(i,".").concat(r):r;return t.createElement(Zg.Provider,{value:s},a)},rb=(0,t.createContext)(void 0),nb=function(e){return(0,t.useContext)(rb)};var ob=function(){return ob=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ob.apply(this,arguments)},ab=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},ib=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},sb=function(e){return Object.keys(e).reduce((function(t,r){var n,o,a;if(Array.isArray(e[r])){var i=!1,s=e[r].map((function(e){return ub(e)||(i=!0),sb(e)}));return i?ob(ob({},t),((n={})[r]=s,n)):t}return ub(e[r])?t:"object"!==typeof e[r]||cb(e[r])?ob(ob({},t),((a={})[r]=lb(e[r]),a)):ob(ob({},t),((o={})[r]=sb(e[r]),o))}),{})},lb=function(e){return{type:"manual",message:cb(e)?e:{message:e}}},cb=function(e){return Object.keys(e).includes("message")&&Object.keys(e).includes("args")},ub=function(e){return 0===Object.getOwnPropertyNames(e).length},db=function(e,t){var r=function(e,n){Object.entries(e).forEach((function(e){var o=e[0],a=e[1];"object"!==typeof a?t("".concat(n).concat(o),{type:"server",message:a.toString()}):r(a,"".concat(n).concat(o,"."))}))};r(e,"")},pb=function(){return pb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pb.apply(this,arguments)},fb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},mb=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},hb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vb=function(e){var r=e.criteriaMode,n=void 0===r?"firstError":r,o=e.defaultValues,a=e.formRootPathname,s=e.resolver,l=e.reValidateMode,c=void 0===l?"onChange":l,u=e.onSubmit,d=e.sanitizeEmptyValues,p=e.warnWhenUnsavedChanges,f=e.validate,m=e.disableInvalidFormNotification,h=hb(e,["criteriaMode","defaultValues","formRootPathname","resolver","reValidateMode","onSubmit","sanitizeEmptyValues","warnWhenUnsavedChanges","validate","disableInvalidFormNotification"]),v=sh(e),y=nb(),g=(0,t.useMemo)((function(){return function(e,t){var r=i()({},function(e,t){return"object"===typeof e?e:"function"===typeof e?e(t):{}}(e,t),t);return r}(o,v)}),[JSON.stringify({defaultValues:"function"===typeof o?"function":o,record:v})]),b=s||(f?function(e){return function(t){return ab(void 0,void 0,void 0,(function(){var r,n;return ib(this,(function(o){switch(o.label){case 0:return[4,e(t)];case 1:return!(r=o.sent())||ub(r)||!(n=sb(r))||ub(n)?[2,{values:t,errors:{}}]:[2,{values:{},errors:n}]}}))}))}}(f):void 0),x=$g(pb({criteriaMode:n,values:g,reValidateMode:c,resolver:b},h)),w=(0,t.useRef)(x);!function(e,r){void 0===r&&(r=!0);var n=Wy(e?{control:e}:void 0),o=n.submitCount,a=n.errors,i=(0,t.useRef)(o),s=Rt();(0,t.useEffect)((function(){o>i.current&&r&&(i.current=o,Object.keys(a).length>0&&s("ra.message.invalid_form",{type:"error"}))}),[a,o,s,r])}(x.control,!m),function(e,r,n){var o=(0,t.useContext)(Q).navigator,a=J(),i=Ps(),s=Wy(n?{control:n}:void 0),l=s.isSubmitSuccessful,c=s.isSubmitting,u=s.dirtyFields,d=Object.keys(u).length>0,p=(0,t.useRef)(r||a.pathname);(0,t.useEffect)((function(){if(e&&d&&o.block){var t=o.block((function(e){var r=e.location.pathname.startsWith(p.current),n=e.location.pathname.startsWith("".concat(p.current,"/show"));!c&&(r&&!n||l||window.confirm(i("ra.message.unsaved_changes")))?(t(),e.retry()):c&&setTimeout((function(){e.retry()}),100)}));return t}}),[e,a,o,d,c,l,i])}(Boolean(p),a,x.control);var A=(0,t.useCallback)((function(e,t){return fb(void 0,void 0,void 0,(function(){var r,n;return mb(this,(function(o){switch(o.label){case 0:return n=d?function(e,t){void 0===t&&(t={});var r={};return Object.keys(e).forEach((function(n){null==e[n]||""===e[n]?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]})),r}(e,v):e,u?[4,u(n,t)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return null==u&&(null===y||void 0===y?void 0:y.save)?[4,y.save(n,t)]:[3,4];case 3:r=o.sent(),o.label=4;case 4:return null!=r&&db(r,w.current.setError),[2]}}))}))}),[u,y,d,v]),S=(0,t.useCallback)((function(e){e.defaultPrevented||(e.stopPropagation(),x.handleSubmit(A)(e))}),[x,A]);return{form:x,handleSubmit:A,formHandleSubmit:S}},yb=function(){return yb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yb.apply(this,arguments)},gb=function(e){var r=e.children,n=e.id,o=e.className,a=e.noValidate,i=void 0!==a&&a,s=sh(e),l=Jg(e),c=vb(e),u=c.form,d=c.formHandleSubmit;return t.createElement(Xg,{value:s},t.createElement(tb,{prefix:"resources.".concat(l,".fields"),concatenate:!1},t.createElement(Ny,yb({},u),t.createElement(Gg,null,t.createElement("form",{onSubmit:d,noValidate:i,id:n,className:o},r)))))};const bb=function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&e.some((function(e){return e.isRequired}))};var xb=(0,t.createContext)(void 0),wb=function(){return(0,t.useContext)(xb)},Ab=function(){return(0,t.useContext)(Qg)},Sb=function(e){var r=e.inputProps,n=e.isArrayInput,o=e.fieldArrayInputControl,a=r.defaultValue,i=r.source,s=sh(r),l=My(),c=l.getValues,u=l.resetField,d=l.getFieldState,p=l.formState,f=l.reset,m=dt()(s,i),h=dt()(c(),i),v=d(i,p).isDirty;(0,t.useEffect)((function(){if(null!=a&&null==h&&null==m&&!v){if(i.split(".").some((function(e){return Ob.test(e)}))){var e=i.split(".").slice(0,-1).join(".");if(null==dt()(c(),e))return}if(n){if(!o)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");return o.replace(a),void f({},{keepValues:!0})}u(i,{defaultValue:a})}}))},Ob=/^\d+$/,_b=function(){return _b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_b.apply(this,arguments)},Eb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},kb=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},jb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Cb=function(e){return null==e?"":e},Pb=function(e){return""===e?null:e},Rb=function(e){var r=e.defaultValue,n=e.format,o=void 0===n?Cb:n,a=e.id,i=e.isRequired,s=e.name,l=e.onBlur,c=e.onChange,u=e.parse,d=void 0===u?Pb:u,p=e.source,f=e.validate,m=jb(e,["defaultValue","format","id","isRequired","name","onBlur","onChange","parse","source","validate"]),h=s||p,v=wb(),y=Ab(),g=sh();(0,t.useEffect)((function(){if(y&&null!=v)return y.registerField(p,v),function(){y.unregisterField(p,v)}}),[y,v,p]);var b=Array.isArray(f)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(Array.isArray(e[0])?e[0]:e).filter(ty).reduce(ry,(function(){return null}))}(f):f,x=Gy(_b(_b({name:h,defaultValue:dt()(g,p,r),rules:{validate:function(t,r){return Eb(void 0,void 0,void 0,(function(){var n;return kb(this,(function(o){switch(o.label){case 0:return b?[4,b(t,r,e)]:[2,!0];case 1:return(n=o.sent())?[2,"@@react-admin@@".concat(JSON.stringify(n))]:[2,!0]}}))}))}}},m),{disabled:m.disabled||void 0})),w=x.field,A=x.fieldState,S=x.formState;Sb({inputProps:e});var O=Et((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w.onBlur(),l&&l.apply(void 0,e)})),_=Et((function(){for(var t,r,n,o,a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var l="checkbox"===e.type&&"on"===(null===(r=null===(t=i[0])||void 0===t?void 0:t.target)||void 0===r?void 0:r.value)?i[0].target.checked:null!==(a=null===(o=null===(n=i[0])||void 0===n?void 0:n.target)||void 0===o?void 0:o.value)&&void 0!==a?a:i[0];w.onChange(d?d(l):l),c&&c.apply(void 0,i)})),E=_b(_b({},w),{value:o?o(w.value):w.value,onBlur:O,onChange:_});return{id:a||p,field:E,fieldState:A,formState:S,isRequired:i||bb(f)}};var Tb=function(e){var t,r=e.replace(/\.\d+\./g,"."),n=e.split(".");return n.forEach((function(e,r){Ib(e)&&(t=r)})),{sourceWithoutDigits:r,sourceSuffix:null!=t?n.slice(t+1).join("."):e}},Ib=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},Mb=function(){var e=Ps(),r=eb(),n=Jg();return(0,t.useCallback)((function(t){var o=t.source,a=t.label,i=t.resource;return!1===a||""===a?null:a&&"string"!==typeof a?a:e.apply(void 0,function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if("undefined"!==typeof t)return[t,{_:t}];if("undefined"===typeof a)return[""];var i=Tb(a),s=i.sourceWithoutDigits,l=i.sourceSuffix,c=_p().transform(l.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:c}]:r?["".concat(r,".").concat(s),{_:c}]:["resources.".concat(o,".fields.").concat(s),{_:c}]}({label:a,prefix:r,resource:i,resourceFromContext:n,source:o}))}),[r,n,e])},Nb=function(e){var r=e.source,n=e.label,o=e.resource,a=e.isRequired,i=Mb();if(!0===n)throw new Error("Label parameter must be a string, a ReactElement or false");return!1===n||""===n?null:n&&"string"!==typeof n?n:t.createElement("span",null,i({label:n,resource:o,source:r}),a&&t.createElement("span",{"aria-hidden":"true"},"\u2009*"))};Nb.displayName="FieldTitle";const Lb=(0,t.memo)(Nb);function Fb(e){return(0,Pn.Ay)("MuiInputAdornment",e)}const zb=(0,Cn.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Db;const Bb=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Vb=(0,En.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position".concat((0,$n.A)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(zb.positionStart,"&:not(.").concat(zb.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),Wb=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=(0,Kt.A)(n,Bb),p=Yp()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const m=(0,Se.A)({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,s={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,$n.A)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,$n.A)(a))]};return(0,On.A)(s,Fb,t)})(m);return(0,Jt.jsx)(Xp.Provider,{value:null,children:(0,Jt.jsx)(Vb,(0,Se.A)({as:i,ownerState:m,className:(0,Sn.A)(h.root,a),ref:r},d,{children:"string"!==typeof o||l?(0,Jt.jsxs)(t.Fragment,{children:["start"===c?Db||(Db=(0,Jt.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,Jt.jsx)(Eu,{color:"text.secondary",children:o})}))})})),Ub=Wb;var qb,Hb=r(155),$b=function(){return $b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$b.apply(this,arguments)},Qb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Kb=(0,t.forwardRef)((function(e,r){var n=e.clearAlwaysVisible,o=e.InputProps,a=e.value,i=e.resettable,s=e.disabled,l=e.readOnly,c=e.variant,u=e.margin,d=e.className,p=Qb(e,["clearAlwaysVisible","InputProps","value","resettable","disabled","readOnly","variant","margin","className"]),f=Ps(),m=e.onChange,h=e.onFocus,v=e.onBlur,y=(0,t.useCallback)((function(e){e.preventDefault(),m("")}),[m]),g=(0,t.useCallback)((function(e){h&&h(e)}),[h]),b=(0,t.useCallback)((function(e){v&&v(e)}),[v]),x=Yb.clearButton,w=Yb.clearIcon,A=Yb.inputAdornedEnd,S=Yb.selectAdornment,O=Yb.visibleClearIcon,_=o||{},E=_.endAdornment,k=Qb(_,["endAdornment"]);if(n&&E)throw new Error("ResettableTextField cannot display both an endAdornment and a clear button always visible");return t.createElement(Zb,$b({value:a,InputProps:$b({readOnly:l,classes:e.select&&"filled"===c?{adornedEnd:A}:{},endAdornment:function(){var r;return i?a?t.createElement(Ub,{position:"end",classes:{root:e.select?S:null}},t.createElement(js,{className:x,"aria-label":f("ra.action.clear_input_value"),title:f("ra.action.clear_input_value"),onClick:y,onMouseDown:Gb,disabled:s||l,size:"large"},t.createElement(Hb.A,{className:zn(w,(r={},r[O]=n||a,r))}))):n?t.createElement(Ub,{position:"end",classes:{root:e.select?S:null}},t.createElement(js,{className:x,"aria-label":f("ra.action.clear_input_value"),title:f("ra.action.clear_input_value"),disabled:!0,size:"large"},t.createElement(Hb.A,{className:zn(w,O)}))):E||t.createElement(Ub,{position:"end",classes:{root:e.select?S:null}},t.createElement("span",{className:x},"\xa0")):E}()},k),disabled:s||l,variant:c,margin:u,className:d,size:"small"},p,{onFocus:g,onBlur:b,inputRef:r}))}));Kb.displayName="ResettableTextField";var Gb=function(e){e.preventDefault()};Kb.propTypes={clearAlwaysVisible:Bn().bool,readOnly:Bn().bool,disabled:Bn().bool,InputProps:Bn().object,onBlur:Bn().func,onChange:Bn().func.isRequired,onFocus:Bn().func,resettable:Bn().bool,value:Bn().any};var Xb="RaResettableTextField",Yb={clearIcon:"".concat(Xb,"-clearIcon"),visibleClearIcon:"".concat(Xb,"-visibleClearIcon"),clearButton:"".concat(Xb,"-clearButton"),selectAdornment:"".concat(Xb,"-selectAdornment"),inputAdornedEnd:"".concat(Xb,"-inputAdornedEnd")},Jb=((qb={})["& .".concat(Yb.clearIcon)]={height:16,width:0},qb["& .".concat(Yb.visibleClearIcon)]={width:16},qb["& .".concat(Yb.clearButton)]={height:24,width:24,padding:0},qb["& .".concat(Yb.selectAdornment)]={position:"absolute",right:24},qb["& .".concat(Yb.inputAdornedEnd)]={paddingRight:0},qb),Zb=(0,En.Ay)($m,{name:Xb,overridesResolver:function(e,t){return t.root}})(Jb),ex=function(){return ex=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ex.apply(this,arguments)},tx="@@react-admin@@";const rx=function(e){var r=e.error,n=r,o=Ps();if("string"===typeof r&&r.startsWith(tx)&&(n=JSON.parse(r.substring(15))),n.message){var a=n,i=a.message,s=a.args;return t.createElement(t.Fragment,null,o(i,ex({_:i},s)))}return t.createElement(t.Fragment,null,o(n,{_:n}))};var nx=function(e){var r=e.helperText,n=e.touched,o=e.error,a=Ps();return n&&o?t.createElement(rx,{error:o}):!1===r?null:(0,t.isValidElement)(r)?r:"string"===typeof r?t.createElement(t.Fragment,null,a(r,{_:r})):t.createElement("span",{dangerouslySetInnerHTML:ox})},ox={__html:"&#8203;"},ax=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ix=function(e){e.afterSubmit,e.allowNull,e.alwaysOn,e.beforeSubmit,e.component,e.data,e.defaultValue,e.error,e.format,e.formatOnBlur,e.formClassName,e.initialValue,e.initializeForm,e.input,e.isEqual,e.isRequired,e.label,e.limitChoicesToValue,e.locale,e.meta,e.multiple,e.name,e.options,e.optionText,e.optionValue,e.parse,e.record,e.ref,e.refetch,e.render,e.resource,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.source,e.submitError,e.subscription,e.textAlign,e.translate,e.translateChoice,e.validate,e.validateFields,e.value;return ax(e,["afterSubmit","allowNull","alwaysOn","beforeSubmit","component","data","defaultValue","error","format","formatOnBlur","formClassName","initialValue","initializeForm","input","isEqual","isRequired","label","limitChoicesToValue","locale","meta","multiple","name","options","optionText","optionValue","parse","record","ref","refetch","render","resource","setFilter","setPagination","setSort","shouldUnregister","source","submitError","subscription","textAlign","translate","translateChoice","validate","validateFields","value"])},sx=function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sx.apply(this,arguments)},lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cx=function(e){var r=e.className,n=e.defaultValue,o=e.label,a=e.format,i=e.helperText,s=e.onBlur,l=e.onChange,c=e.parse,u=e.resource,d=e.source,p=e.validate,f=lx(e,["className","defaultValue","label","format","helperText","onBlur","onChange","parse","resource","source","validate"]),m=Rb(sx({defaultValue:n,format:a,parse:c,resource:u,source:d,type:"text",validate:p,onBlur:s,onChange:l},f)),h=m.field,v=m.fieldState,y=v.error,g=v.invalid,b=v.isTouched,x=m.formState.isSubmitted,w=m.id,A=m.isRequired,S=!1!==i||(b||x)&&g;return t.createElement(Kb,sx({id:w},h,{className:zn("ra-input","ra-input-".concat(d),r),label:""!==o&&!1!==o?t.createElement(Lb,{label:o,source:d,resource:u,isRequired:A}):null,error:(b||x)&&g,helperText:S?t.createElement(nx,{touched:b||x,error:null===y||void 0===y?void 0:y.message,helperText:i}):null},ix(f)))};cx.propTypes={className:Bn().string,label:Bn().oneOfType([Bn().string,Bn().bool,Bn().element]),resource:Bn().string,source:Bn().string};var ux=function(e){var r=e.redirectTo,n=e.className,o=nn(!1),a=o[0],i=o[1],s=Kv(),l=Ps(),c=Rt();return t.createElement(fx,{onSubmit:function(e){i(!0),s(e,r).then((function(){i(!1)})).catch((function(e){i(!1),c("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}))},mode:"onChange",noValidate:!0,className:n},t.createElement(Qv,{className:px.content},t.createElement(cx,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:ny(),fullWidth:!0}),t.createElement(cx,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:ny(),fullWidth:!0}),t.createElement(Il,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:px.button},a?t.createElement(el,{className:px.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},dx="RaLoginForm",px={content:"".concat(dx,"-content"),button:"".concat(dx,"-button"),icon:"".concat(dx,"-icon")},fx=(0,En.Ay)(gb,{name:dx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(px.content)]={width:300},t["& .".concat(px.button)]={marginTop:r.spacing(2)},t["& .".concat(px.icon)]={margin:r.spacing(.3)},t}));ux.propTypes={redirectTo:Bn().string};var mx=function(){return mx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mx.apply(this,arguments)},hx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vx=function(e){var r=e.children,n=void 0===r?yx:r,o=e.backgroundImage,a=hx(e,["children","backgroundImage"]),i=(0,t.useRef)(),s=!1,l=Rr(),c=ee();(0,t.useEffect)((function(){l({},!1).then((function(){c("/")})).catch((function(){}))}),[l,c]);var u=function(){!s&&i.current&&(i.current.style.backgroundImage="url(".concat(o,")"),s=!0)};return(0,t.useEffect)((function(){s||function(){if(o){var e=new Image;e.onload=u,e.src=o}}()})),t.createElement(xx,mx({},a,{ref:i}),t.createElement(Vv,{className:bx.card},t.createElement("div",{className:bx.avatar},t.createElement(Ql,{className:bx.icon},t.createElement(Wv.A,null))),n))},yx=t.createElement(ux,null),gx="RaLogin",bx={card:"".concat(gx,"-card"),avatar:"".concat(gx,"-avatar"),icon:"".concat(gx,"-icon")},xx=(0,En.Ay)("div",{name:gx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)"})["& .".concat(bx.card)]={minWidth:300,marginTop:"6em"},t["& .".concat(bx.avatar)]={margin:"1em",display:"flex",justifyContent:"center"},t["& .".concat(bx.icon)]={backgroundColor:r.palette.secondary[500]},t}));vx.propTypes={backgroundImage:Bn().string,children:Bn().node,className:Bn().string};var wx=function(){return wx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wx.apply(this,arguments)},Ax=function(){var e=ee(),r=kr(),n=jr();return(0,t.useCallback)((function(t,o,a,i,s){if(void 0===o&&(o=""),void 0===s&&(s={}),t){if("function"===typeof t){var l=t(o,a,i),c="string"===typeof l?"".concat(r,"/").concat(l):wx({pathname:"".concat(r,"/").concat(l.pathname)},l);return void e("string"===typeof c?Te(c):c,{state:wx({_scrollToTop:!0},s)})}return"string"===typeof t&&t.startsWith("http")&&window?void(window.location.href=t):void e(n({resource:o,id:a,type:t}),{state:wx({_scrollToTop:!0},s)})}}),[e,r,n])},Sx=function(){return Sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sx.apply(this,arguments)},Ox="@react-admin/nextPathname",_x=function(){return _x=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_x.apply(this,arguments)},Ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kx=function(e){var r=e.className,n=e.title,o=void 0===n?"ra.page.error":n,a=e.message,i=void 0===a?"ra.message.auth_error":a,s=Ex(e,["className","title","message"]),l=Ps();return t.createElement(Px,_x({className:r},s),t.createElement("div",{className:Cx.message},t.createElement("h1",null,l(o,{_:o})),t.createElement("div",null,l(i,{_:i})),t.createElement(jh,{component:cp,to:"/login",label:"ra.auth.sign_in"},t.createElement(Wv.A,null))))};kx.propTypes={className:Bn().string,title:Bn().string,message:Bn().string};var jx="RaAuthError",Cx={root:"".concat(jx,"-root"),message:"".concat(jx,"-message")},Px=(0,En.Ay)("div",{name:jx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("xl")]={height:"100vh",marginTop:"-3em"},t["& .".concat(Cx.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t})),Rx=function(){var e=function(e){var t=Er(),r=Ax(),n=J().state,o=n&&n.nextPathname,a=n&&n.nextSearch,i=o?o+a:"/";return(0,d.useQuery)(["auth","handleCallback"],(function(){return t&&"function"===typeof t.handleCallback?t.handleCallback():Promise.resolve()}),Sx({retry:!1,onSuccess:function(e){var t,n=localStorage.getItem(Ox),o=null!==(t=null===e||void 0===e?void 0:e.redirectTo)&&void 0!==t?t:n;!1!==o&&r(null!==o&&void 0!==o?o:i)}},e))}().error;return e?t.createElement(kx,{message:e?e.message:void 0}):t.createElement(qh,null)},Tx=function(){return Tx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tx.apply(this,arguments)},Ix=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Mx=function(e){var r=e.layout,n=void 0===r?Xh:r,o=e.catchAll,a=void 0===o?nv:o,i=e.loading,s=void 0===i?dv:i,l=e.loginPage,c=void 0===l?vx:l,u=e.authCallbackPage,d=void 0===u?Rx:u,p=e.notification,f=void 0===p?Iv:p,m=Ix(e,["layout","catchAll","loading","loginPage","authCallbackPage","notification"]);return t.createElement(Nn,{enableColorScheme:!0},t.createElement(xn,Tx({layout:n,catchAll:a,loading:s,loginPage:c,authCallbackPage:d},m)),(0,t.createElement)(f))};const Nx={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:"\u2003"},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",are_you_sure:"Are you sure?",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update this %{name}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this item?",delete_title:"Delete %{name} #%{id}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",yes:"Yes",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?"},navigation:{no_results:"No results found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}};var Lx=r(4617),Fx=r.n(Lx),zx=function(){return zx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zx.apply(this,arguments)};const Dx=function(e,t,r,n){void 0===t&&(t="en"),void 0===r&&(r=[{locale:"en",name:"English"}]),void 0===n&&(n={});var o,a,i=t,s=e(t);if(s instanceof Promise)throw new Error("The i18nProvider returned a Promise for the messages of the default locale (".concat(t,"). Please update your i18nProvider to return the messages of the default locale in a synchronous way."));Array.isArray(r)?(o=r,a=n):(o=[{locale:"en",name:"English"}],a=r);var l=new(Fx())(zx({locale:i,phrases:zx({"":""},s)},a)),c=l.t.bind(l);return{translate:function(e,t){return void 0===t&&(t={}),c(e,t)},changeLocale:function(t){return Promise.resolve(e(t)).then((function(e){i=t;var r=new(Fx())(zx({locale:t,phrases:zx({"":""},e)},n));c=r.t.bind(r)}))},getLocale:function(){return i},getLocales:function(){return o}}};var Bx=Dx((function(){return Nx}),"en",[{name:"en",value:"English"}],{allowMissing:!0}),Vx=function(e,t){void 0===e&&(e="1"),void 0===t&&(t="");var r="".concat("RaStore").concat(t),n=r.length,o={},a=function(e,t){Object.keys(o).forEach((function(r){o[r]&&o[r].key===e&&o[r].callback(t)}))},i=function(e){var t;if((null===(t=e.key)||void 0===t?void 0:t.substring(0,n))===r){var a=e.key.substring(n+1),i=e.newValue?l(e.newValue):void 0;Object.keys(o).forEach((function(e){o[e]&&o[e].key===a&&(null===i?o[e].callback(void 0):o[e].callback(null==i?void 0:i))}))}};return{setup:function(){if(s){var t=u().getItem("".concat(r,".version"));if(t&&t!==e){var n=u();Object.keys(n).forEach((function(e){e.startsWith(r)&&n.removeItem(e)}))}u().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){s&&window.removeEventListener("storage",i)},getItem:function(e,t){var n=u().getItem("".concat(r,".").concat(e));return null==n?t:l(n)},setItem:function(e,t){void 0===t?u().removeItem("".concat(r,".").concat(e)):u().setItem("".concat(r,".").concat(e),JSON.stringify(t)),a(e,t)},removeItem:function(e){u().removeItem("".concat(r,".").concat(e)),a(e,void 0)},removeItems:function(e){var t=u();Object.keys(t).forEach((function(o){if(o.startsWith("".concat(r,".").concat(e))){t.removeItem(o);var i=o.substring(n+1);a(i,void 0)}}))},reset:function(){var e=u();Object.keys(e).forEach((function(t){if(t.startsWith(r)){e.removeItem(t);var o=t.substring(n+1);a(o,void 0)}}))},subscribe:function(e,t){var r=Math.random().toString();return o[r]={key:e,callback:t},function(){delete o[r]}}}}(),Wx=function(e){var r=e.authProvider,n=e.basename,o=e.catchAll,a=e.children,i=e.dashboard,s=e.dataProvider,l=e.disableTelemetry,c=e.history,u=e.i18nProvider,d=void 0===u?Bx:u,p=e.layout,f=e.loading,m=e.loginPage,h=e.authCallbackPage,v=e.menu,y=e.notification,g=e.queryClient,b=e.requireAuth,x=e.store,w=void 0===x?Vx:x,A=e.ready,S=e.theme,O=e.lightTheme,_=e.darkTheme,E=e.defaultTheme,k=e.title,j=void 0===k?"React Admin":k;return t.createElement(Sr,{authProvider:r,basename:n,dataProvider:s,i18nProvider:d,store:w,history:c,queryClient:g,theme:S,lightTheme:O,darkTheme:_,defaultTheme:E},t.createElement(Mx,{layout:p,dashboard:i,disableTelemetry:l,menu:v,catchAll:o,title:j,loading:f,loginPage:m,authCallbackPage:h,notification:y,requireAuth:b,ready:A},a))};var Ux=function(e){return null};Ux.raName="CustomRoutes";var qx=function(e){var r=e.children,n=e.value;return n?t.createElement(Yg.Provider,{value:n},r):r},Hx=function(e){var r=e.create,n=e.edit,o=e.list,a=e.name,i=e.show;return t.createElement(qx,{value:a},t.createElement(xe,null,r&&t.createElement(ge,{path:"create/*",element:$x(r)}),i&&t.createElement(ge,{path:":id/show/*",element:$x(i)}),n&&t.createElement(ge,{path:":id/*",element:$x(n)}),o&&t.createElement(ge,{path:"/*",element:$x(o)}),e.children))},$x=function(e){return(0,t.isValidElement)(e)?e:(0,lo.isValidElementType)(e)?t.createElement(e,null):null};Hx.raName="Resource",Hx.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,l=e.recordRepresentation,c=e.hasCreate,u=e.hasEdit,d=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!c,hasEdit:!!r||!!u,hasShow:!!s||!!d,icon:n,recordRepresentation:l}};var Qx=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Kx=function(e){function t(r,n,o){void 0===o&&(o=null);var a=e.call(this,r)||this;return a.message=r,a.status=n,a.body=o,Object.setPrototypeOf(a,t.prototype),a.name=a.constructor.name,"function"===typeof Error.captureStackTrace?Error.captureStackTrace(a,a.constructor):a.stack=new Error(r).stack,a.stack=(new Error).stack,a}return Qx(t,e),t}(Error);const Gx=Kx;var Xx=r(9370),Yx=function(){return Yx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yx.apply(this,arguments)},Jx=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Zx=function(e,t){void 0===t&&(t={});var r=function(e){var t=e.headers||new Headers({Accept:"application/json"}),r=e&&e.body,n=t.has("Content-Type"),o=!(null===e||void 0===e?void 0:e.method)||"GET"===(null===e||void 0===e?void 0:e.method),a=(null===e||void 0===e?void 0:e.body)instanceof FormData;return r&&!n&&!o&&!a&&t.set("Content-Type","application/json"),e.user&&e.user.authenticated&&e.user.token&&t.set("Authorization",e.user.token),t}(t);return fetch(e,Yx(Yx({},t),{headers:r})).then((function(e){return e.text().then((function(t){return{status:e.status,statusText:e.statusText,headers:e.headers,body:t}}))})).then((function(e){var t,r=e.status,n=e.statusText,o=e.headers,a=e.body;try{t=JSON.parse(a)}catch(AB){}return r<200||r>=300?Promise.reject(new Gx(t&&t.message||n,r,t)):Promise.resolve({status:r,headers:o,body:a,json:t})}))},ew=function(e,t){var r;return void 0===t&&(t=[]),function(e){if(!e)return!1;var t=Array.isArray(e),r="undefined"!==typeof Buffer&&Buffer.isBuffer(e),n="[object Object]"===Object.prototype.toString.call(e),o=!!Object.keys(e).length;return!t&&!r&&n&&o}(e)?Object.assign.apply(Object,Jx([{}],Object.keys(e).map((function(r){return ew(e[r],t.concat([r]))})),!1)):t.length?((r={})[t.join(".")]=e,r):e};const tw={login:e=>{let{base_url:t,username:r,password:n,loginToken:o}=e;t={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER||t,console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},o?{type:"m.login.token",token:o}:{type:"m.login.password",user:r,password:n}))};t=t.replace(/\/+$/g,""),localStorage.setItem("base_url",t);const i=window.decodeURIComponent(t);return Zx(i+"/_matrix/client/r0/login",a).then((e=>{let{json:t}=e;localStorage.setItem("home_server",t.home_server),localStorage.setItem("user_id",t.user_id),localStorage.setItem("access_token",t.access_token),localStorage.setItem("device_id",t.device_id)}))},logout:()=>{console.log("logout");const e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:"Bearer ".concat(t)}};return"string"===typeof t&&Zx(e,r).then((e=>{let{json:t}=e;localStorage.removeItem("access_token")})),Promise.resolve()},checkError:e=>{let{status:t}=e;return console.log("checkError "+t),401===t||403===t?Promise.reject():Promise.resolve()},checkAuth:()=>{const e=localStorage.getItem("access_token");return console.log("checkAuth "+e),"string"===typeof e?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},rw=tw,nw=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=localStorage.getItem("access_token");return console.log("httpClient "+e),null!=r&&(t.user={authenticated:!0,token:"Bearer ".concat(r)}),Zx(e,t)},ow=e=>{const t=localStorage.getItem("base_url");var r=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+r),null==r)return null;const n=r[1],o=r[2];return"".concat(t,"/_matrix/media/r0/thumbnail/").concat(n,"/").concat(o,"?width=24&height=24&method=scale")},aw={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:ow(e.avatar_url),is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:1e3*e.creation_ts}),data:"users",total:e=>e.total,create:e=>({endpoint:"/_synapse/admin/v2/users/@".concat(encodeURIComponent(e.id),":").concat(localStorage.getItem("home_server")),body:e,method:"PUT"}),delete:e=>({endpoint:"/_synapse/admin/v1/deactivate/".concat(encodeURIComponent(e.id)),body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:"/_synapse/admin/v2/rooms/".concat(e.id),body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e,id:e.id}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e),"/devices")}),delete:e=>({endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e.previousData.user_id),"/devices/").concat(e.id)})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/members")}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/state")}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/pushers")}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/joined_rooms")}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/media")}),data:"media",total:e=>e.total,delete:e=>({endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/").concat(e.id)})},delete_media:{delete:e=>({endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/delete?before_ts=").concat(e.meta.before_ts,"&size_gt=").concat(e.meta.size_gt,"&keep_profiles=").concat(e.meta.keep_profiles),method:"POST"})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:"/_synapse/admin/v1/media/protect/".concat(e.media_id),method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/media/unprotect/".concat(e.id),method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:"/_synapse/admin/v1/media/quarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.media_id),method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/media/unquarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.id),method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/forward_extremities")}),data:"results",total:e=>e.count,delete:e=>({endpoint:"/_synapse/admin/v1/rooms/".concat(e.id,"/forward_extremities")})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:ow(e.avatar_url)}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e.id,"/reset_connection"),method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e,"/rooms")}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/".concat(e.id)})}};function iw(e,t){if(null!==t||"user_type"===e)return t}function sw(e){return"DESC"===e?"b":"f"}const lw={getList:(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:o,deactivated:a,search_term:i,destination:s,valid:l}=t.filter,{page:c,perPage:u}=t.pagination,{field:d,order:p}=t.sort,f=(c-1)*u,m={from:f,limit:u,user_id:r,search_term:i,name:n,destination:s,guests:o,deactivated:a,valid:l,order_by:d,dir:sw(p)},h=localStorage.getItem("base_url");if(!h||!(e in aw))return Promise.reject();const v=aw[e],y=h+v.path,g="".concat(y,"?").concat((0,Xx.stringify)(m));return nw(g).then((e=>{let{json:t}=e;return{data:t[v.data].map(v.map),total:v.total(t,f,u)}}))},getOne:(e,t)=>{console.log("getOne "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e],o=r+n.path;return nw("".concat(o,"/").concat(encodeURIComponent(t.id))).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},getMany:(e,t)=>{console.log("getMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e],o=r+n.path;return Promise.all(t.ids.map((e=>nw("".concat(o,"/").concat(encodeURIComponent(e)))))).then((e=>({data:e.map((e=>{let{json:t}=e;return n.map(t)})),total:e.length})))},getManyReference:(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:o,order:a}=t.sort,i=(r-1)*n,s={from:i,limit:n,order_by:o,dir:sw(a)},l=localStorage.getItem("base_url");if(!l||!(e in aw))return Promise.reject();const c=aw[e],u=c.reference(t.id),d="".concat(l).concat(u.endpoint,"?").concat((0,Xx.stringify)(s));return nw(d).then((e=>{let{headers:t,json:r}=e;return{data:r[c.data].map(c.map),total:c.total(r,i,n)}}))},update:(e,t)=>{console.log("update "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e],o=r+n.path;return nw("".concat(o,"/").concat(encodeURIComponent(t.id)),{method:"PUT",body:JSON.stringify(t.data,iw)}).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},updateMany:(e,t)=>{console.log("updateMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=r+aw[e].path;return Promise.all(t.ids.map((e=>nw("".concat(n,"/").concat(encodeURIComponent(e)))),{method:"PUT",body:JSON.stringify(t.data,iw)})).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})))},create:(e,t)=>{console.log("create "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e];if(!("create"in n))return Promise.reject();const o=n.create(t.data),a=r+o.endpoint;return nw(a,{method:o.method,body:JSON.stringify(o.body,iw)}).then((e=>{let{json:t}=e;return{data:n.map(t)}}))},createMany:(e,t)=>{console.log("createMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e];return"create"in n?Promise.all(t.ids.map((e=>{t.data.id=e;const o=n.create(t.data),a=r+o.endpoint;return nw(a,{method:o.method,body:JSON.stringify(o.body,iw)})}))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))}))):Promise.reject()},delete:(e,t)=>{console.log("delete "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e];if("delete"in n){const e=n.delete(t),o=r+e.endpoint;return nw(o,{method:"method"in e?e.method:"DELETE",body:"body"in e?JSON.stringify(e.body):null}).then((e=>{let{json:t}=e;return{data:t}}))}{const e=r+n.path;return nw("".concat(e,"/").concat(t.id),{method:"DELETE",body:JSON.stringify(t.previousData,iw)}).then((e=>{let{json:t}=e;return{data:t}}))}},deleteMany:(e,t)=>{console.log("deleteMany "+e);const r=localStorage.getItem("base_url");if(!r||!(e in aw))return Promise.reject();const n=aw[e];if("delete"in n)return Promise.all(t.ids.map((e=>{const o=n.delete({...t,id:e}),a=r+o.endpoint;return nw(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null})}))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})));{const e=r+n.path;return Promise.all(t.ids.map((r=>nw("".concat(e,"/").concat(r),{method:"DELETE",body:JSON.stringify(t.data,iw)})))).then((e=>({data:e.map((e=>{let{json:t}=e;return t}))})))}}},cw=lw;var uw=r(288),dw=r(3441),pw=r(4705),fw=r(5971),mw=r(5310),hw=r(400),vw=r(974),yw=r(9877),gw=r(6893),bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bw.apply(this,arguments)},xw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ww=function(e){var r=yr((function(e){return e.breakpoints.down("sm")}));return t.createElement(Sw,bw({disableGutters:!0,variant:r?"regular":"dense"},Ow(e)))};ww.propTypes={children:Bn().node,className:Bn().string};const Aw=ww;var Sw=(0,En.Ay)(Hn,{name:"RaTopToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:r.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",padding:r.spacing(.5),paddingBottom:r.spacing(1)})[r.breakpoints.down("md")]={flex:"0 1 100%"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,padding:0,paddingBottom:0},t})),Ow=function(e){e.hasCreate;return xw(e,["hasCreate"])},_w=["getList","getMany","getManyReference"],Ew=function(){var e=(0,t.useContext)(at)||Ue,r=Qr(),n=(0,t.useMemo)((function(){return new Proxy(e,{get:function(t,n){if("symbol"!==typeof n&&"then"!==n)return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var a=n.toString();if("function"!==typeof e[a])throw new Error("Unknown dataProvider function: ".concat(a));try{return e[a].apply(e,t).then((function(e){return e})).catch((function(e){return r(e).then((function(t){if(t)return{data:_w.includes(a)?[]:{}};throw e}))}))}catch(AB){throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})}),[e,r]);return n},kw=function(){return kw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kw.apply(this,arguments)};function jw(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var Cw=function(e,t){if(jw(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!jw(e[r[o]],t[r[o]]))return!1;return!0},Pw=function(){return Pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pw.apply(this,arguments)},Rw=function(e){return Object.keys(e).reduce((function(t,r){var n,o,a=e[r];return(o=e[r])&&"[object Object]"===Object.prototype.toString.call(o)&&(a=Rw(e[r])),function(e){return!(e instanceof Date)&&(""===e||null===e||void 0===e||Cw(e,{}))}(a)?t:Pw(Pw({},t),((n={})[r]=a,n))}),{})};const Tw=Rw;var Iw=function(e,t){return Object.keys(e).reduce((function(r,n){var o;return n!==t?Object.assign({},r,((o={})[n]=e[n],o)):r}),{})},Mw=function(e,t){var r,n=t.split(".");if(1===n.length)return Iw(e,t);var o=n[0];if(void 0===e[o])return e;var a=Mw(e[o],n.slice(1).join("."));return 0===Object.keys(a).length?Iw(e,o):Object.assign({},e,((r={})[o]=a,r))};const Nw=Mw;var Lw=function(){return Lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lw.apply(this,arguments)},Fw="SET_SORT",zw="ASC",Dw="DESC",Bw="SET_PAGE",Vw="SET_PER_PAGE",Ww="SET_FILTER",Uw="SHOW_FILTER",qw="HIDE_FILTER";const Hw=function(e,t){var r,n;switch(t.type){case Fw:return t.payload.field===e.sort?Lw(Lw({},e),{order:(n=e.order,n===Dw?zw:Dw),page:1}):Lw(Lw({},e),{sort:t.payload.field,order:t.payload.order||zw,page:1});case Bw:return Lw(Lw({},e),{page:t.payload});case Vw:return Lw(Lw({},e),{page:1,perPage:t.payload});case Ww:return Lw(Lw({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case Uw:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:Lw(Lw({},e),{filter:"undefined"!==typeof t.payload.defaultValue?st()(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:Lw(Lw({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case qw:return Lw(Lw({},e),{filter:Tw(Nw(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce((function(e,r){var n;return r!==t.payload?Lw(Lw({},e),((n={})[r]=!0,n)):e}),{}):e.displayedFilters});default:return e}};var $w=r(5801),Qw=r.n($w);const Kw=function(e,t,r,n){return Qw()(e,(function(e,t){return function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())}(t,n)}))};var Gw=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Xw=function(e){var r="".concat(e,".selectedIds"),n=jt(r,Yw),o=n[0],a=n[1],i=function(e){var r=kt().removeItem;return(0,t.useCallback)((function(t){if("undefined"===typeof t&&"undefined"===typeof e)throw new Error("You must provide a key to remove an item from the store");return r(null!==t&&void 0!==t?t:e)}),[r,e])}(r),s=(0,t.useMemo)((function(){return{select:function(e){e&&a(Gw([],e,!0))},unselect:function(e){e&&0!==e.length&&a((function(t){return Array.isArray(t)?t.filter((function(t){return!e.includes(t)})):[]}))},toggle:function(e){"undefined"!==typeof e&&a((function(t){if(!Array.isArray(t))return Gw([],t,!0);var r=t.indexOf(e);return r>-1?Gw(Gw([],t.slice(0,r),!0),t.slice(r+1),!0):Gw(Gw([],t,!0),[e],!1)}))},clearSelection:function(){i()}}}),[a,i]);return[o,s]},Yw=[],Jw=r(3950),Zw=r.n(Jw),eA=r(7273),tA=r.n(eA),rA=function(){return rA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rA.apply(this,arguments)},nA=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},oA=function(e){var r=e.debounce,n=void 0===r?500:r,o=e.disableSyncWithLocation,a=void 0!==o&&o,i=e.filterDefaultValues,s=e.perPage,l=void 0===s?10:s,c=e.resource,u=e.sort,d=void 0===u?dA:u,p=e.storeKey,f=void 0===p?"".concat(c,".listParams"):p,m=J(),h=ee(),v=(0,t.useState)(pA),y=v[0],g=v[1],b=jt(f||"".concat(c,".listParams"),pA),x=b[0],w=b[1],A=(0,t.useRef)(),S=function(){var e=(0,t.useRef)(!0);return(0,t.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}(),O=!1===f,_=[m.search,c,f,JSON.stringify(a||O?y:x),JSON.stringify(i),JSON.stringify(d),l,a],E=a?{}:sA(m),k=(0,t.useMemo)((function(){return lA({queryFromLocation:E,params:a||O?y:x,filterDefaultValues:i,sort:d,perPage:l})}),_);(0,t.useEffect)((function(){Object.keys(E).length>0&&!O&&w(k)}),[m.search]);var j=(0,t.useCallback)((function(e){S.current&&(A.current?A.current=Hw(A.current,e):(A.current=Hw(k,e),setTimeout((function(){a?g(A.current):h({search:"?".concat((0,Xx.stringify)(rA(rA({},A.current),{filter:JSON.stringify(A.current.filter),displayedFilters:JSON.stringify(A.current.displayedFilters)})))},{state:{_scrollToTop:e.type===Bw}}),A.current=void 0}),0)))}),nA(nA([],_,!0),[h],!1)),C=(0,t.useCallback)((function(e){return j({type:Fw,payload:e})}),[j]),P=(0,t.useCallback)((function(e){return j({type:Bw,payload:e})}),[j]),R=(0,t.useCallback)((function(e){return j({type:Vw,payload:e})}),[j]),T=k.filter||uA,I=k.displayedFilters||uA,M=Zw()((function(e,t){j({type:Ww,payload:{filter:Tw(e),displayedFilters:t}})}),n),N=(0,t.useCallback)((function(e,t,r){return void 0===r&&(r=!0),r?M(e,t):j({type:Ww,payload:{filter:Tw(e),displayedFilters:t}})}),[j]),L=(0,t.useCallback)((function(e){j({type:qw,payload:e})}),[j]),F=(0,t.useCallback)((function(e,t){j({type:Uw,payload:{filterName:e,defaultValue:t}})}),[j]);return[rA({displayedFilters:I,filterValues:T,requestSignature:_},k),{changeParams:j,setPage:P,setPerPage:R,setSort:C,setFilters:N,hideFilter:L,showFilter:F}]},aA=["page","perPage","sort","order","filter","displayedFilters"],iA=function(e,t){if(e[t]&&"string"===typeof e[t])try{e[t]=JSON.parse(e[t])}catch(r){delete e[t]}},sA=function(e){var t=e.search,r=tA()((0,Xx.parse)(t),(function(e,t){return-1!==aA.indexOf(t)}));return iA(r,"filter"),iA(r,"displayedFilters"),r},lA=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||null!=e.order||1!==e.page||null!=e.perPage||null!=e.sort)}(r)?rA({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),null==i.perPage&&(i.perPage=a),null==i.page&&(i.page=1),rA(rA({},i),{page:cA(i.page,1),perPage:cA(i.perPage,10)})},cA=function(e,t){var r="string"===typeof e?parseInt(e,10):e;return isNaN(r)?t:r},uA={},dA={field:"id",order:zw},pA={},fA=function(){return fA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fA.apply(this,arguments)},mA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},hA=function(e){void 0===e&&(e={});var r=e.debounce,n=void 0===r?500:r,o=e.disableAuthentication,a=e.disableSyncWithLocation,i=e.exporter,s=void 0===i?Kw:i,l=e.filter,c=e.filterDefaultValues,u=e.perPage,p=void 0===u?10:u,f=e.queryOptions,m=void 0===f?{}:f,h=e.sort,v=void 0===h?vA:h,y=e.storeKey;Vr({enabled:!o});var g=Jg(e),b=m.meta,x=mA(m,["meta"]);if(!g)throw new Error("<List> was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(l&&(0,t.isValidElement)(l))throw new Error("<List> received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var w=Ps(),A=Rt(),S=oA({debounce:n,disableSyncWithLocation:a,filterDefaultValues:c,perPage:p,resource:g,sort:v,storeKey:y}),O=S[0],_=S[1],E=Xw(g),k=E[0],j=E[1],C=function(e,r,n){void 0===r&&(r={});var o=r.pagination,a=void 0===o?{page:1,perPage:25}:o,i=r.sort,s=void 0===i?{field:"id",order:"DESC"}:i,l=r.filter,c=void 0===l?{}:l,u=r.meta,p=Ew(),f=(0,d.useQueryClient)(),m=(0,d.useQuery)([e,"getList",{pagination:a,sort:s,filter:c,meta:u}],(function(){return p.getList(e,{pagination:a,sort:s,filter:c,meta:u}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}}))}),kw(kw({},n),{onSuccess:function(t){(null===t||void 0===t?void 0:t.data)&&t.data.length<=100&&t.data.forEach((function(t){f.setQueryData([e,"getOne",{id:String(t.id),meta:u}],(function(e){return null!==e&&void 0!==e?e:t}))})),(null===n||void 0===n?void 0:n.onSuccess)&&n.onSuccess(t)}}));return(0,t.useMemo)((function(){var e,t,r;return m.data?kw(kw({},m),{data:null===(e=m.data)||void 0===e?void 0:e.data,total:null===(t=m.data)||void 0===t?void 0:t.total,pageInfo:null===(r=m.data)||void 0===r?void 0:r.pageInfo}):m}),[m])}(g,{pagination:{page:O.page,perPage:O.perPage},sort:{field:O.sort,order:O.order},filter:fA(fA({},O.filter),l),meta:b},fA({keepPreviousData:!0,retry:!1,onError:function(e){return A((null===e||void 0===e?void 0:e.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:null===e||void 0===e?void 0:e.message}})}},x)),P=C.data,R=C.pageInfo,T=C.total,I=C.error,M=C.isLoading,N=C.isFetching,L=C.refetch;(0,t.useEffect)((function(){if(O.page<=0||!N&&O.page>1&&(null==P||0===(null===P||void 0===P?void 0:P.length)))_.setPage(1);else if(null!=T){var e=Math.ceil(T/O.perPage)||1;!N&&O.page>e&&_.setPage(e)}}),[N,O.page,O.perPage,P,_,T]);var F=(0,t.useMemo)((function(){return{field:O.sort,order:O.order}}),[O.sort,O.order]),z=w("ra.page.list",{name:Ep()(g,2)});return{sort:F,data:P,defaultTitle:z,displayedFilters:O.displayedFilters,error:I,exporter:s,filter:l,filterValues:O.filterValues,hideFilter:_.hideFilter,isFetching:N,isLoading:M,onSelect:j.select,onToggleItem:j.toggle,onUnselectItems:j.clearSelection,page:O.page,perPage:O.perPage,refetch:L,resource:g,selectedIds:k,setFilters:_.setFilters,setPage:_.setPage,setPerPage:_.setPerPage,setSort:_.setSort,showFilter:_.showFilter,total:T,hasNextPage:R?R.hasNextPage:null!=T?O.page*O.perPage<T:void 0,hasPreviousPage:R?R.hasPreviousPage:O.page>1}},vA={field:"id",order:zw},yA=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],gA=function(e){return Object.keys(e).filter((function(e){return!yA.includes(e)})).reduce((function(t,r){var n;return fA(fA({},t),((n={})[r]=e[r],n))}),{})},bA=r(2505);function xA(e){return(0,Pn.Ay)("MuiFab",e)}const wA=(0,Cn.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),AA=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],SA=(0,En.Ay)(As,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,$n.A)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,$n.A)(r.size)],t[r.color]]}})((e=>{let{theme:t,ownerState:r}=e;var n,o;return(0,Se.A)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(n=(o=t.palette).getContrastText)?void 0:n.call(o,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},["&.".concat(wA.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]}},"small"===r.size&&{width:40,height:40},"medium"===r.size&&{width:48,height:48},"extended"===r.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===r.variant&&"small"===r.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===r.variant&&"medium"===r.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===r.color&&{color:"inherit"})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})}),(e=>{let{theme:t}=e;return{["&.".concat(wA.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}})),OA=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiFab"}),{children:n,className:o,color:a="default",component:i="button",disabled:s=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:u="large",variant:d="circular"}=r,p=(0,Kt.A)(r,AA),f=(0,Se.A)({},r,{color:a,component:i,disabled:s,disableFocusRipple:l,size:u,variant:d}),m=(e=>{const{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,"size".concat((0,$n.A)(o)),"inherit"===t?"colorInherit":t]},i=(0,On.A)(a,xA,n);return(0,Se.A)({},n,i)})(f);return(0,Jt.jsx)(SA,(0,Se.A)({className:(0,Sn.A)(m.root,o),component:i,disabled:s,focusRipple:!l,focusVisibleClassName:(0,Sn.A)(m.focusVisible,c),ownerState:f,ref:t},p,{classes:m,children:n}))})),_A=OA;var EA=function(){return EA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EA.apply(this,arguments)},kA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jA=function(e){var r=e.className,n=e.icon,o=void 0===n?PA:n,a=e.label,s=void 0===a?"ra.action.create":a,l=(e.resource,e.scrollToTop),c=void 0===l||l,u=e.variant,d=e.to,p=e.state,f=void 0===p?{}:p,m=kA(e,["className","icon","label","resource","scrollToTop","variant","to","state"]),h=Jg(e),v=jr(),y=Ps(),g=yr((function(e){return e.breakpoints.down("md")})),b=i()({},CA.get(String(c)),f),x=LA(d);return g?t.createElement(IA,EA({component:cp,to:v({resource:h,type:"create"}),state:b,color:"primary",className:zn(TA.floating,r),"aria-label":s&&y(s)},m,x),o):t.createElement(MA,EA({component:cp,to:v({resource:h,type:"create"}),state:b,className:zn(TA.root,r),label:s,variant:u},m,x),o)},CA=new Map([["true",{_scrollToTop:!0}],["false",{}]]),PA=t.createElement(bA.A,null);jA.propTypes={resource:Bn().string,className:Bn().string,icon:Bn().element,label:Bn().string};var RA="RaCreateButton",TA={root:"".concat(RA,"-root"),floating:"".concat(RA,"-floating")},IA=(0,En.Ay)(_A,{name:RA,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["&.".concat(TA.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t})),MA=(0,En.Ay)(jh,{name:RA,overridesResolver:function(e,t){return t.root}})({});const NA=t.memo(jA,(function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&Ot()(e.to,t.to)&&Ot()(e.state,t.state)}));var LA=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:kA(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},FA=r(1163),zA=r.n(FA),DA=(0,t.createContext)({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});DA.displayName="ListContext";var BA=function(e){var r=(0,t.useContext)(DA);return(0,t.useMemo)((function(){return zA()({},null!=e?VA(e):{},r)}),[r,e])},VA=function(e){return{sort:e.sort,data:e.data,defaultTitle:e.defaultTitle,displayedFilters:e.displayedFilters,exporter:e.exporter,filterValues:e.filterValues,hasCreate:e.hasCreate,hideFilter:e.hideFilter,isFetching:e.isFetching,isLoading:e.isLoading,onSelect:e.onSelect,onToggleItem:e.onToggleItem,onUnselectItems:e.onUnselectItems,page:e.page,perPage:e.perPage,refetch:e.refetch,resource:e.resource,selectedIds:e.selectedIds,setFilters:e.setFilters,setPage:e.setPage,setPerPage:e.setPerPage,setSort:e.setSort,showFilter:e.showFilter,total:e.total}},WA=function(e,t){return Array.from(new Set(e.filter((function(e){return null!=e[t]})).map((function(e){return e[t]})).reduce((function(e,t){return e.concat(t)}),[])))};const UA=function(e){return function(t,r,n){return e.getMany(n,{ids:WA(t,r)}).then((function(e){return e.data.reduce((function(e,t){return e[t.id]=t,e}),{})}))}};var qA=function(){return qA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qA.apply(this,arguments)},HA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$A=function(e){var r=e.maxResults,n=void 0===r?1e3:r,o=e.onClick,a=e.label,i=void 0===a?"ra.action.export":a,s=e.icon,l=void 0===s?QA:s,c=e.exporter,u=e.meta,d=HA(e,["maxResults","onClick","label","icon","exporter","meta"]),p=BA(e),f=p.filter,m=p.filterValues,h=p.sort,v=p.exporter,y=p.total,g=Jg(e),b=c||v,x=Ew(),w=Rt(),A=(0,t.useCallback)((function(e){x.getList(g,{sort:h,filter:f?qA(qA({},m),f):m,pagination:{page:1,perPage:n},meta:u}).then((function(e){var t=e.data;return b&&b(t,UA(x),x,g)})).catch((function(e){console.error(e),w("ra.notification.http_error",{type:"error"})})),"function"===typeof o&&o(e)}),[x,b,f,m,n,w,o,g,h,u]);return t.createElement(jh,qA({onClick:A,label:i,disabled:0===y},KA(d)),l)},QA=t.createElement(fw.A,null),KA=function(e){e.filterValues,e.resource;return HA(e,["filterValues","resource"])};$A.propTypes={exporter:Bn().func,filterValues:Bn().object,label:Bn().string,maxResults:Bn().number,resource:Bn().string,sort:Bn().exact({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),icon:Bn().element,meta:Bn().any};const GA=t.createContext();const XA=t.createContext();function YA(e){return(0,Pn.Ay)("MuiTableCell",e)}const JA=(0,Cn.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ZA=["align","className","component","padding","scope","size","sortDirection","variant"],eS=(0,En.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,$n.A)(r.size))],"normal"!==r.padding&&t["padding".concat((0,$n.A)(r.padding))],"inherit"!==r.align&&t["align".concat((0,$n.A)(r.align))],r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,Qn.a)((0,Qn.X4)(t.palette.divider,1),.88):(0,Qn.e$)((0,Qn.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(JA.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),tS=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:l,size:c,sortDirection:u,variant:d}=n,p=(0,Kt.A)(n,ZA),f=t.useContext(GA),m=t.useContext(XA),h=m&&"head"===m.variant;let v;v=i||(h?"th":"td");let y=l;"td"===v?y=void 0:!y&&h&&(y="col");const g=d||m&&m.variant,b=(0,Se.A)({},n,{align:o,component:v,padding:s||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===g&&f&&f.stickyHeader,variant:g}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,s={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,$n.A)(n)),"normal"!==o&&"padding".concat((0,$n.A)(o)),"size".concat((0,$n.A)(a))]};return(0,On.A)(s,YA,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,Jt.jsx)(eS,(0,Se.A)({as:v,ref:r,className:(0,Sn.A)(x.root,a),"aria-sort":w,scope:y,ownerState:b},p))})),rS=tS,nS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),oS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),aS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),iS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),sS=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],lS=t.forwardRef((function(e,t){var r,n,o,a,i,s,l,c;const{backIconButtonProps:u,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:h,page:v,rowsPerPage:y,showFirstButton:g,showLastButton:b,slots:x={},slotProps:w={}}=e,A=(0,Kt.A)(e,sS),S=or(),O=null!=(r=x.firstButton)?r:js,_=null!=(n=x.lastButton)?n:js,E=null!=(o=x.nextButton)?o:js,k=null!=(a=x.previousButton)?a:js,j=null!=(i=x.firstButtonIcon)?i:iS,C=null!=(s=x.lastButtonIcon)?s:aS,P=null!=(l=x.nextButtonIcon)?l:oS,R=null!=(c=x.previousButtonIcon)?c:nS,T=S?_:O,I=S?E:k,M=S?k:E,N=S?O:_,L=S?w.lastButton:w.firstButton,F=S?w.nextButton:w.previousButton,z=S?w.previousButton:w.nextButton,D=S?w.firstButton:w.lastButton;return(0,Jt.jsxs)("div",(0,Se.A)({ref:t},A,{children:[g&&(0,Jt.jsx)(T,(0,Se.A)({onClick:e=>{h(e,0)},disabled:p||0===v,"aria-label":f("first",v),title:f("first",v)},L,{children:S?(0,Jt.jsx)(C,(0,Se.A)({},w.lastButtonIcon)):(0,Jt.jsx)(j,(0,Se.A)({},w.firstButtonIcon))})),(0,Jt.jsx)(I,(0,Se.A)({onClick:e=>{h(e,v-1)},disabled:p||0===v,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},null!=F?F:u,{children:S?(0,Jt.jsx)(P,(0,Se.A)({},w.nextButtonIcon)):(0,Jt.jsx)(R,(0,Se.A)({},w.previousButtonIcon))})),(0,Jt.jsx)(M,(0,Se.A)({onClick:e=>{h(e,v+1)},disabled:p||-1!==d&&v>=Math.ceil(d/y)-1,color:"inherit","aria-label":f("next",v),title:f("next",v)},null!=z?z:m,{children:S?(0,Jt.jsx)(R,(0,Se.A)({},w.previousButtonIcon)):(0,Jt.jsx)(P,(0,Se.A)({},w.nextButtonIcon))})),b&&(0,Jt.jsx)(N,(0,Se.A)({onClick:e=>{h(e,Math.max(0,Math.ceil(d/y)-1))},disabled:p||v>=Math.ceil(d/y)-1,"aria-label":f("last",v),title:f("last",v)},D,{children:S?(0,Jt.jsx)(j,(0,Se.A)({},w.firstButtonIcon)):(0,Jt.jsx)(C,(0,Se.A)({},w.lastButtonIcon))}))]}))}));function cS(e){return(0,Pn.Ay)("MuiTablePagination",e)}const uS=(0,Cn.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var dS;const pS=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],fS=(0,En.Ay)(rS,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),mS=(0,En.Ay)(Hn,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,Se.A)({["& .".concat(uS.actions)]:t.actions},t.toolbar)})((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(uS.actions)]:{flexShrink:0,marginLeft:20}}})),hS=(0,En.Ay)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),vS=(0,En.Ay)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((e=>{let{theme:t}=e;return(0,Se.A)({},t.typography.body2,{flexShrink:0})})),yS=(0,En.Ay)(Bm,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,Se.A)({["& .".concat(uS.selectIcon)]:t.selectIcon,["& .".concat(uS.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(uS.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),gS=(0,En.Ay)(Bu,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),bS=(0,En.Ay)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((e=>{let{theme:t}=e;return(0,Se.A)({},t.typography.body2,{flexShrink:0})}));function xS(e){let{from:t,to:r,count:n}=e;return"".concat(t,"\u2013").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function wS(e){return"Go to ".concat(e," page")}const AS=t.forwardRef((function(e,r){var n;const o=(0,_n.A)({props:e,name:"MuiTablePagination"}),{ActionsComponent:a=lS,backIconButtonProps:i,className:s,colSpan:l,component:c=rS,count:u,disabled:d=!1,getItemAriaLabel:p=wS,labelDisplayedRows:f=xS,labelRowsPerPage:m="Rows per page:",nextIconButtonProps:h,onPageChange:v,onRowsPerPageChange:y,page:g,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:A=!1,showLastButton:S=!1,slotProps:O={},slots:_={}}=o,E=(0,Kt.A)(o,pS),k=o,j=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},cS,t)})(k),C=null!=(n=null==O?void 0:O.select)?n:w,P=C.native?"option":gS;let R;c!==rS&&"td"!==c||(R=l||1e3);const T=(0,Pi.A)(C.id),I=(0,Pi.A)(C.labelId);return(0,Jt.jsx)(fS,(0,Se.A)({colSpan:R,ref:r,as:c,ownerState:k,className:(0,Sn.A)(j.root,s)},E,{children:(0,Jt.jsxs)(mS,{className:j.toolbar,children:[(0,Jt.jsx)(hS,{className:j.spacer}),x.length>1&&(0,Jt.jsx)(vS,{className:j.selectLabel,id:I,children:m}),x.length>1&&(0,Jt.jsx)(yS,(0,Se.A)({variant:"standard"},!C.variant&&{input:dS||(dS=(0,Jt.jsx)(ff,{}))},{value:b,onChange:y,id:T,labelId:I},C,{classes:(0,Se.A)({},C.classes,{root:(0,Sn.A)(j.input,j.selectRoot,(C.classes||{}).root),select:(0,Sn.A)(j.select,(C.classes||{}).select),icon:(0,Sn.A)(j.selectIcon,(C.classes||{}).icon)}),disabled:d,children:x.map((e=>(0,t.createElement)(P,(0,Se.A)({},!po(P)&&{ownerState:k},{className:j.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)))})),(0,Jt.jsx)(bS,{className:j.displayedRows,children:f({from:0===u?0:g*b+1,to:-1===u?(g+1)*b:-1===b?u:Math.min(u,(g+1)*b),count:-1===u?-1:u,page:g})}),(0,Jt.jsx)(a,{className:j.actions,backIconButtonProps:i,count:u,nextIconButtonProps:h,onPageChange:v,page:g,rowsPerPage:b,showFirstButton:A,showLastButton:S,slotProps:O.actions,slots:_.actions,getItemAriaLabel:p,disabled:d})]})}))})),SS=AS;var OS=r(2616),_S=r.n(OS),ES=(0,t.createContext)({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});ES.displayName="ListPaginationContext";var kS=function(e){return(0,t.useMemo)((function(){return _S()(e,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])}),[e.isLoading,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},jS=function(e){var r=(0,t.useContext)(ES);return(0,t.useMemo)((function(){return zA()({},null!=e?CS(e):{},r)}),[r,e])},CS=function(e){return{isLoading:e.isLoading,page:e.page,perPage:e.perPage,setPage:e.setPage,setPerPage:e.setPerPage,hasPreviousPage:e.hasPreviousPage,hasNextPage:e.hasNextPage,total:e.total,resource:e.resource}};function PS(e){return(0,Pn.Ay)("MuiPagination",e)}(0,Cn.A)("MuiPagination",["root","ul","outlined","text"]);var RS=r(1944);const TS=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function IS(e){return(0,Pn.Ay)("MuiPaginationItem",e)}const MS=(0,Cn.A)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),NS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),LS=(0,Nl.A)((0,Jt.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),FS=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],zS=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,$n.A)(r.size))],"text"===r.variant&&t["text".concat((0,$n.A)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,$n.A)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},DS=(0,En.Ay)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:zS})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(MS.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),BS=(0,En.Ay)(As,{name:"MuiPaginationItem",slot:"Root",overridesResolver:zS})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(MS.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(MS.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(MS.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Qn.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(MS.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Qn.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(MS.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},"text"===r.variant&&{["&.".concat(MS.selected)]:(0,Se.A)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(MS.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(MS.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(MS.selected)]:(0,Se.A)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,Qn.X4)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,Qn.X4)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Qn.X4)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(MS.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,Qn.X4)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(MS.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})})),VS=(0,En.Ay)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),WS=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiPaginationItem"}),{className:n,color:o="standard",component:a,components:i={},disabled:s=!1,page:l,selected:c=!1,shape:u="circular",size:d="medium",slots:p={},type:f="page",variant:m="text"}=r,h=(0,Kt.A)(r,FS),v=(0,Se.A)({},r,{color:o,disabled:s,selected:c,shape:u,size:d,type:f,variant:m}),y=or(),g=(e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:s,variant:l}=e,c={root:["root","size".concat((0,$n.A)(a)),l,i,"standard"!==r&&"color".concat((0,$n.A)(r)),"standard"!==r&&"".concat(l).concat((0,$n.A)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,On.A)(c,IS,t)})(v),b=(y?{previous:p.next||i.next||LS,next:p.previous||i.previous||NS,last:p.first||i.first||iS,first:p.last||i.last||aS}:{previous:p.previous||i.previous||NS,next:p.next||i.next||LS,first:p.first||i.first||iS,last:p.last||i.last||aS})[f];return"start-ellipsis"===f||"end-ellipsis"===f?(0,Jt.jsx)(DS,{ref:t,ownerState:v,className:(0,Sn.A)(g.root,n),children:"\u2026"}):(0,Jt.jsxs)(BS,(0,Se.A)({ref:t,ownerState:v,component:a,disabled:s,className:(0,Sn.A)(g.root,n)},h,{children:["page"===f&&l,b?(0,Jt.jsx)(VS,{as:b,ownerState:v,className:g.icon}):null]}))})),US=WS,qS=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],HS=(0,En.Ay)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),$S=(0,En.Ay)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function QS(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}const KS=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiPagination"}),{boundaryCount:n=1,className:o,color:a="standard",count:i=1,defaultPage:s=1,disabled:l=!1,getItemAriaLabel:c=QS,hideNextButton:u=!1,hidePrevButton:d=!1,renderItem:p=(e=>(0,Jt.jsx)(US,(0,Se.A)({},e))),shape:f="circular",showFirstButton:m=!1,showLastButton:h=!1,siblingCount:v=1,size:y="medium",variant:g="text"}=r,b=(0,Kt.A)(r,qS),{items:x}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:s=!1,onChange:l,page:c,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:p=1}=e,f=(0,Kt.A)(e,TS),[m,h]=(0,RS.A)({controlled:c,default:o,name:r,state:"page"}),v=(e,t)=>{c||h(t),l&&l(e,t)},y=(e,t)=>{const r=t-e+1;return Array.from({length:r},((t,r)=>e+r))},g=y(1,Math.min(t,n)),b=y(Math.max(n-t+1,t+1),n),x=Math.max(Math.min(m-p,n-t-2*p-1),t+2),w=Math.min(Math.max(m+p,t+2*p+2),b.length>0?b[0]-2:n-1),A=[...u?["first"]:[],...s?[]:["previous"],...g,...x>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...y(x,w),...w<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...b,...i?[]:["next"],...d?["last"]:[]],S=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},O=A.map((e=>"number"===typeof e?{onClick:t=>{v(t,e)},type:"page",page:e,selected:e===m,disabled:a,"aria-current":e===m?"true":void 0}:{onClick:t=>{v(t,S(e))},type:e,page:S(e),selected:!1,disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=n:m<=1)}));return(0,Se.A)({items:O},f)}((0,Se.A)({},r,{componentName:"Pagination"})),w=(0,Se.A)({},r,{boundaryCount:n,color:a,count:i,defaultPage:s,disabled:l,getItemAriaLabel:c,hideNextButton:u,hidePrevButton:d,renderItem:p,shape:f,showFirstButton:m,showLastButton:h,siblingCount:v,size:y,variant:g}),A=(e=>{const{classes:t,variant:r}=e,n={root:["root",r],ul:["ul"]};return(0,On.A)(n,PS,t)})(w);return(0,Jt.jsx)(HS,(0,Se.A)({"aria-label":"pagination navigation",className:(0,Sn.A)(A.root,o),ownerState:w,ref:t},b,{children:(0,Jt.jsx)($S,{className:A.ul,ownerState:w,children:x.map(((e,t)=>(0,Jt.jsx)("li",{children:p((0,Se.A)({},e,{color:a,"aria-label":c(e.type,e.page,e.selected),shape:f,size:y,variant:g}))},t)))})}))})),GS=KS;var XS=function(){return XS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XS.apply(this,arguments)},YS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},JS=(0,t.memo)((function(e){var r=e.page,n=e.rowsPerPage,o=e.count,a=e.onPageChange,i=e.size,s=void 0===i?"small":i,l=e.className,c=YS(e,["page","rowsPerPage","count","onPageChange","size","className"]),u=Ps(),d=Math.ceil(o/n)||1;if(1===d)return t.createElement(ZS,{className:l});return t.createElement(ZS,{className:l},t.createElement(GS,XS({size:s,count:d,page:r+1,onChange:function(e,t){return a(e,t-1)}},eO(c),{getItemAriaLabel:function(e,t,r){return"page"===e?r?u("ra.navigation.current_page",{page:t,_:"page ".concat(t)}):u("ra.navigation.page",{page:t,_:"Go to page ".concat(t)}):u("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}})))}));JS.propTypes={count:Bn().number.isRequired,onPageChange:Bn().func.isRequired,page:Bn().number.isRequired,rowsPerPage:Bn().number.isRequired,color:Bn().oneOf(["primary","secondary","standard"]),size:Bn().oneOf(["small","medium","large"])};var ZS=(0,En.Ay)("div",{name:"RaPaginationActions",overridesResolver:function(e,t){return t.root}})((function(){return{flexShrink:0,ml:4}})),eO=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;return YS(e,["nextIconButtonProps","backIconButtonProps","slotProps"])},tO=function(){return tO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tO.apply(this,arguments)},rO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nO=(0,t.memo)((function(e){var r=e.rowsPerPageOptions,n=void 0===r?oO:r,o=e.actions,a=(e.limit,rO(e,["rowsPerPageOptions","actions","limit"])),i=jS(e),s=i.isLoading,l=i.hasNextPage,c=i.page,u=i.perPage,d=i.total,p=i.setPage,f=i.setPerPage,m=Ps(),h=yr((function(e){return e.breakpoints.down("md")})),v=(0,t.useMemo)((function(){return null!=d?Math.ceil(d/u):void 0}),[u,d]),y=(0,t.useCallback)((function(e,t){if(e&&e.stopPropagation(),t<0||t>v-1)throw new Error(m("ra.navigation.page_out_of_boundaries",{page:t+1}));p(t+1)}),[v,p,m]),g=(0,t.useCallback)((function(e){f(e.target.value)}),[f]),b=(0,t.useCallback)((function(e){var t=e.from,r=e.to,n=e.count;return-1===n&&l?m("ra.navigation.partial_page_range_info",{offsetBegin:t,offsetEnd:r,_:"%{from}-%{to} of more than %{to}"}):m("ra.navigation.page_range_info",{offsetBegin:t,offsetEnd:r,total:-1===n?r:n,_:"%{from}-%{to} of %{count === -1 ? to : count}"})}),[m,l]),x=(0,t.useCallback)((function(e){return m("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}),[m]);if(s)return t.createElement(Hn,{variant:"dense"});if(0===d||c<1||null!=d&&c>v)return null;if(h)return t.createElement(SS,tO({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:y,rowsPerPageOptions:aO,component:"span",labelDisplayedRows:b},gA(a)));var w=o||(s||null==d?void 0:JS);return t.createElement(SS,tO({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:y,onRowsPerPageChange:g,ActionsComponent:w,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:m("ra.navigation.page_rows_per_page"),labelDisplayedRows:b,getItemAriaLabel:x,rowsPerPageOptions:n},gA(a)))}));nO.propTypes={actions:co,limit:Bn().element,rowsPerPageOptions:Bn().arrayOf(Bn().oneOfType([Bn().number,Bn().exact({label:Bn().string.isRequired,value:Bn().number.isRequired})]))};var oO=[5,10,25,50],aO=[],iO=r(6360),sO=function(){return sO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sO.apply(this,arguments)},lO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cO=function(e){var r=e.label,n=lO(e,["label"]),o=Ps();if(r)throw new Error("<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.");return t.createElement(uO,sO({hiddenLabel:!0,label:"",resettable:!0,placeholder:o("ra.action.search"),InputProps:{endAdornment:t.createElement(Ub,{position:"end"},t.createElement(iO.A,{color:"disabled"}))},size:"small"},n))},uO=(0,En.Ay)(cx,{name:"RaSearchInput",overridesResolver:function(e,t){return t.root}})({marginTop:0}),dO=r(8280);const pO=["ownerState"],fO=["variants"],mO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hO(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vO=(0,dO.A)(),yO=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gO(e){let{defaultTheme:t,theme:r,themeId:n}=e;return o=r,0===Object.keys(o).length?t:r[n]||r;var o}function bO(e){return e?(t,r)=>r[e]:null}function xO(e,t){let{ownerState:r}=t,n=(0,Kt.A)(t,pO);const o="function"===typeof e?e((0,Se.A)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>xO(e,(0,Se.A)({ownerState:r},n))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Kt.A)(o,fO);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,Se.A)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,Se.A)({ownerState:r},n,r)):e.style))})),t}return o}const wO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:r=vO,rootShouldForwardProp:n=hO,slotShouldForwardProp:o=hO}=e,a=e=>(0,hd.A)((0,Se.A)({},e,{theme:gO((0,Se.A)({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,md.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=bO(yO(l))}=i,p=(0,Kt.A)(i,mO),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=hO;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const v=(0,md.default)(e,(0,Se.A)({shouldForwardProp:h,label:undefined},p)),y=e=>"function"===typeof e&&e.__emotion_real!==e||(0,Wp.Q)(e)?n=>xO(e,(0,Se.A)({},n,{theme:gO({theme:n.theme,defaultTheme:r,themeId:t})})):e,g=function(n){let o=y(n);for(var i=arguments.length,l=new Array(i>1?i-1:0),c=1;c<i;c++)l[c-1]=arguments[c];const u=l?l.map(y):[];s&&d&&u.push((e=>{const n=gO((0,Se.A)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,a={};return Object.entries(o).forEach((t=>{let[r,o]=t;a[r]=xO(o,(0,Se.A)({},e,{theme:n}))})),d(e,a)})),s&&!f&&u.push((e=>{var n;const o=gO((0,Se.A)({},e,{defaultTheme:r,themeId:t}));return xO({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Se.A)({},e,{theme:o}))})),m||u.push(a);const p=u.length-l.length;if(Array.isArray(n)&&p>0){const e=new Array(p).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const h=v(o,...u);return e.muiName&&(h.muiName=e.muiName),h};return v.withConfig&&(g.withConfig=v.withConfig),g}}(),AO=wO;var SO=r(2900),OO=r(9751),_O=r(8604);const EO=["component","direction","spacing","divider","children","className","useFlexGap"],kO=(0,dO.A)(),jO=AO("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function CO(e){return(0,SO.A)({props:e,name:"MuiStack",defaultTheme:kO})}function PO(e,r){const n=t.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,a)=>(e.push(o),a<n.length-1&&e.push(t.cloneElement(r,{key:"separator-".concat(a)})),e)),[])}const RO=e=>{let{ownerState:t,theme:r}=e,n=(0,Se.A)({display:"flex",flexDirection:"column"},(0,OO.NI)({theme:r},(0,OO.kW)({values:t.direction,breakpoints:r.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,_O.LX)(r),o=Object.keys(r.breakpoints.values).reduce(((e,r)=>(("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e)),{}),a=(0,OO.kW)({values:t.direction,base:o}),i=(0,OO.kW)({values:t.spacing,base:o});"object"===typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));const s=(r,n)=>{return t.useFlexGap?{gap:(0,_O._W)(e,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((o=n?a[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]))]:(0,_O._W)(e,r)}};var o};n=(0,Wp.A)(n,(0,OO.NI)({theme:r},i,s))}return n=(0,OO.iZ)(r.breakpoints,n),n};const TO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:r=jO,useThemeProps:n=CO,componentName:o="MuiStack"}=e,a=r(RO),i=t.forwardRef((function(e,t){const r=n(e),i=(0,bu.A)(r),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:d,className:p,useFlexGap:f=!1}=i,m=(0,Kt.A)(i,EO),h={direction:l,spacing:c,useFlexGap:f},v=(0,On.A)({root:["root"]},(e=>(0,Pn.Ay)(o,e)),{});return(0,Jt.jsx)(a,(0,Se.A)({as:s,ownerState:h,ref:t,className:(0,Sn.A)(v.root,p)},m,{children:u?PO(d,u):d}))}));return i}({createStyledComponent:(0,En.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,_n.A)({props:e,name:"MuiStack"})}),IO=TO;function MO(e){return(0,Pn.Ay)("MuiFormControlLabel",e)}const NO=(0,Cn.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),LO=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],FO=(0,En.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(NO.label)]:t.label},t.root,t["labelPlacement".concat((0,$n.A)(r.labelPlacement))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(NO.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(NO.label)]:{["&.".concat(NO.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),zO=(0,En.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(NO.error)]:{color:(t.vars||t).palette.error.main}}})),DO=t.forwardRef((function(e,r){var n,o;const a=(0,_n.A)({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:f,slotProps:m={}}=a,h=(0,Kt.A)(a,LO),v=Yp(),y=null!=(n=null!=c?c:l.props.disabled)?n:null==v?void 0:v.disabled,g=null!=f?f:l.props.required,b={disabled:y,required:g};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof a[e]&&(b[e]=a[e])}));const x=Gp({props:a,muiFormControl:v,states:["error"]}),w=(0,Se.A)({},a,{disabled:y,labelPlacement:p,required:g,error:x.error}),A=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e,i={root:["root",r&&"disabled","labelPlacement".concat((0,$n.A)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,On.A)(i,MO,t)})(w),S=null!=(o=m.typography)?o:s.typography;let O=d;return null==O||O.type===Eu||u||(O=(0,Jt.jsx)(Eu,(0,Se.A)({component:"span"},S,{className:(0,Sn.A)(A.label,null==S?void 0:S.className),children:O}))),(0,Jt.jsxs)(FO,(0,Se.A)({className:(0,Sn.A)(A.root,i),ownerState:w,ref:r},h,{children:[t.cloneElement(l,b),g?(0,Jt.jsxs)(IO,{display:"block",children:[O,(0,Jt.jsxs)(zO,{ownerState:w,"aria-hidden":!0,className:A.asterisk,children:["\u2009","*"]})]}):O]}))})),BO=DO;function VO(e){return(0,Pn.Ay)("MuiFormGroup",e)}(0,Cn.A)("MuiFormGroup",["root","row","error"]);const WO=["className","row"],UO=(0,En.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),qO=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=(0,Kt.A)(r,WO),i=Gp({props:r,muiFormControl:Yp(),states:["error"]}),s=(0,Se.A)({},r,{row:o,error:i.error}),l=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,On.A)(o,VO,t)})(s);return(0,Jt.jsx)(UO,(0,Se.A)({className:(0,Sn.A)(l.root,n),ownerState:s,ref:t},a))})),HO=qO;function $O(e){return(0,Pn.Ay)("PrivateSwitchBase",e)}(0,Cn.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const QO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],KO=(0,En.Ay)(As)((e=>{let{ownerState:t}=e;return(0,Se.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),GO=(0,En.Ay)("input",{shouldForwardProp:Al.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),XO=t.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:m,onBlur:h,onChange:v,onFocus:y,readOnly:g,required:b=!1,tabIndex:x,type:w,value:A}=e,S=(0,Kt.A)(e,QO),[O,_]=(0,Ti.A)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=Yp();let k=s;E&&"undefined"===typeof k&&(k=E.disabled);const j="checkbox"===w||"radio"===w,C=(0,Se.A)({},e,{checked:O,disabled:k,disableFocusRipple:l,edge:c}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,$n.A)(o))],input:["input"]};return(0,On.A)(a,$O,t)})(C);return(0,Jt.jsxs)(KO,(0,Se.A)({component:"span",className:(0,Sn.A)(P.root,a),centerRipple:!0,focusRipple:!l,disabled:k,tabIndex:null,role:void 0,onFocus:e=>{y&&y(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{h&&h(e),E&&E.onBlur&&E.onBlur(e)},ownerState:C,ref:t},S,{children:[(0,Jt.jsx)(GO,(0,Se.A)({autoFocus:r,checked:n,defaultChecked:i,className:P.input,disabled:k,id:j?d:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;_(t),v&&v(e,t)},readOnly:g,ref:f,required:b,ownerState:C,tabIndex:x,type:w},"checkbox"===w&&void 0===A?{}:{value:A},p)),O?o:u]}))})),YO=XO;function JO(e){return(0,Pn.Ay)("MuiSwitch",e)}const ZO=(0,Cn.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),e_=["className","color","edge","size","sx"],t_=Ml(),r_=(0,En.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,$n.A)(r.edge))],t["size".concat((0,$n.A)(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,["& .".concat(ZO.thumb)]:{width:16,height:16},["& .".concat(ZO.switchBase)]:{padding:4,["&.".concat(ZO.checked)]:{transform:"translateX(16px)"}}}}]}),n_=(0,En.Ay)(YO,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{["& .".concat(ZO.input)]:t.input},"default"!==r.color&&t["color".concat((0,$n.A)(r.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(ZO.checked)]:{transform:"translateX(20px)"},["&.".concat(ZO.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(ZO.checked," + .").concat(ZO.track)]:{opacity:.5},["&.".concat(ZO.disabled," + .").concat(ZO.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(ZO.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(ZO.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(ZO.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,Qn.a)(t.palette[r].main,.62):(0,Qn.e$)(t.palette[r].main,.55))}},["&.".concat(ZO.checked," + .").concat(ZO.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}}))]}})),o_=(0,En.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),a_=(0,En.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),i_=t.forwardRef((function(e,t){const r=t_({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:a=!1,size:i="medium",sx:s}=r,l=(0,Kt.A)(r,e_),c=(0,Se.A)({},r,{color:o,edge:a,size:i}),u=(e=>{const{classes:t,edge:r,size:n,color:o,checked:a,disabled:i}=e,s={root:["root",r&&"edge".concat((0,$n.A)(r)),"size".concat((0,$n.A)(n))],switchBase:["switchBase","color".concat((0,$n.A)(o)),a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,On.A)(s,JO,t);return(0,Se.A)({},t,l)})(c),d=(0,Jt.jsx)(a_,{className:u.thumb,ownerState:c});return(0,Jt.jsxs)(r_,{className:(0,Sn.A)(u.root,n),sx:s,ownerState:c,children:[(0,Jt.jsx)(n_,(0,Se.A)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,Se.A)({},u,{root:u.switchBase})})),(0,Jt.jsx)(o_,{className:u.track,ownerState:c})]})})),s_=i_;var l_={label:Bn().oneOfType([Bn().string,Bn().bool,Bn().element]),resource:Bn().string,source:Bn().string},c_=function(){return c_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c_.apply(this,arguments)},u_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},d_=function(e){var r=e.className,n=e.row,o=void 0!==n&&n,a=e.defaultValue,i=void 0!==a&&a,s=e.format,l=e.label,c=(e.fullWidth,e.helperText),u=e.onBlur,d=e.onChange,p=e.onFocus,f=e.readOnly,m=e.disabled,h=e.parse,v=e.resource,y=e.source,g=e.validate,b=e.options,x=void 0===b?p_:b,w=e.sx,A=u_(e,["className","row","defaultValue","format","label","fullWidth","helperText","onBlur","onChange","onFocus","readOnly","disabled","parse","resource","source","validate","options","sx"]),S=Rb(c_({defaultValue:i,format:s,parse:h,resource:v,source:y,onBlur:u,onChange:d,type:"checkbox",validate:g,disabled:m,readOnly:f},A)),O=S.id,_=S.field,E=S.isRequired,k=S.fieldState,j=k.error,C=k.invalid,P=k.isTouched,R=S.formState.isSubmitted,T=(0,t.useCallback)((function(e){_.onChange(e),_.onBlur()}),[_]),I=!1!==c||(P||R)&&C;return t.createElement(HO,{className:zn("ra-input","ra-input-".concat(y),r),row:o,sx:w},t.createElement(BO,{inputRef:_.ref,control:t.createElement(s_,c_({id:O,name:_.name,onChange:T,onFocus:p,checked:Boolean(_.value)},ix(A),x,{disabled:m||f,readOnly:f})),label:t.createElement(Lb,{label:l,source:y,resource:v,isRequired:E})}),I?t.createElement(um,{error:(P||R)&&C},t.createElement(nx,{touched:P||R,error:null===j||void 0===j?void 0:j.message,helperText:c})):null)};d_.propTypes=c_(c_({},l_),{options:Bn().shape(s_.propTypes),disabled:Bn().bool,readOnly:Bn().bool});var p_={},f_=r(3471),m_=function(){return m_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m_.apply(this,arguments)},h_=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},v_=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},y_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},g_=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},b_=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=Ew(),a=(0,d.useQueryClient)(),i=r.ids,s=n.mutationMode,l=void 0===s?"pessimistic":s,c=y_(n,["mutationMode"]),u=(0,t.useRef)(l),p=(0,t.useRef)({}),f=(0,t.useRef)([]),m=function(e){var t=e.resource,r=e.ids,n=Date.now(),o="undoable"===u.current?n+5e3:n,i=function(e){if(e){var t=g_([],e,!0);return r.forEach((function(e){var r=t.findIndex((function(t){return t.id==e}));-1!==r&&(t=g_(g_([],t.slice(0,r),!0),t.slice(r+1),!0))})),t}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?m_(m_({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?m_(m_({},e),{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-(e.data.length-t.length)}:e}),{updatedAt:o})},h=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.ids,s=void 0===i?p.current.ids:i,l=r.meta,c=void 0===l?p.current.meta:l;return o.deleteMany(a,{ids:s,meta:c}).then((function(e){return e.data}))}),m_(m_({},c),{onMutate:function(e){return h_(void 0,void 0,void 0,(function(){var t;return v_(this,(function(r){switch(r.label){case 0:return c.onMutate?[4,c.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,m_({snapshot:f.current},t)];case 2:return[2,{snapshot:f.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==u.current&&"undoable"!==u.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),c.onError)return c.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===u.current){var o=r.resource,a=void 0===o?e:o,s=r.ids;m({resource:a,ids:void 0===s?i:s}),c.onSuccess&&c.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==u.current&&"undoable"!==u.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),c.onSettled)return c.onSettled(e,t,r,n)}}));return[Et((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),h_(void 0,void 0,void 0,(function(){var e,s,l,d,v,y,g;return v_(this,(function(b){switch(b.label){case 0:return e=o.mutationMode,s=o.onSuccess,l=o.onSettled,d=o.onError,p.current=r,e&&(u.current=e),"pessimistic"===u.current?[2,h.mutate(m_({resource:t},n),{onSuccess:s,onSettled:l,onError:d})]:(v=n.ids,y=void 0===v?i:v,g=[[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],f.current=g.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(f.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return b.sent(),m({resource:t,ids:y}),s&&setTimeout((function(){return s(y,m_({resource:t},n),{snapshot:f.current})}),0),c.onSuccess&&setTimeout((function(){return c.onSuccess(y,m_({resource:t},n),{snapshot:f.current})}),0),"optimistic"===u.current?[2,h.mutate(m_({resource:t},n),{onSettled:l,onError:d})]:(Cv.once("end",(function(e){e.isUndo?f.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):h.mutate(m_({resource:t},n),{onSettled:l,onError:d})})),[2])}}))}))})),h]};function x_(e){return(0,Pn.Ay)("MuiDialog",e)}const w_=(0,Cn.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const A_=t.createContext({}),S_=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],O_=(0,En.Ay)(Nc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),__=(0,En.Ay)(Vc,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),E_=(0,En.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll".concat((0,$n.A)(r.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),k_=(0,En.Ay)(Zn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,$n.A)(r.scroll))],t["paperWidth".concat((0,$n.A)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(w_.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(w_.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(w_.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),j_=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiDialog"}),o=vo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:f=!1,fullWidth:m=!1,maxWidth:h="sm",onBackdropClick:v,onClose:y,open:g,PaperComponent:b=Zn,PaperProps:x={},scroll:w="paper",TransitionComponent:A=Pc,transitionDuration:S=a,TransitionProps:O}=n,_=(0,Kt.A)(n,S_),E=(0,Se.A)({},n,{disableEscapeKeyDown:p,fullScreen:f,fullWidth:m,maxWidth:h,scroll:w}),k=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,$n.A)(r))],paper:["paper","paperScroll".concat((0,$n.A)(r)),"paperWidth".concat((0,$n.A)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,On.A)(i,x_,t)})(E),j=t.useRef(),C=(0,Vp.A)(s),P=t.useMemo((()=>({titleId:C})),[C]);return(0,Jt.jsx)(__,(0,Se.A)({className:(0,Sn.A)(k.root,d),closeAfterTransition:!0,components:{Backdrop:O_},componentsProps:{backdrop:(0,Se.A)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:p,onClose:y,open:g,ref:r,onClick:e=>{j.current&&(j.current=null,v&&v(e),y&&y(e,"backdropClick"))},ownerState:E},_,{children:(0,Jt.jsx)(A,(0,Se.A)({appear:!0,in:g,timeout:S,role:"presentation"},O,{children:(0,Jt.jsx)(E_,{className:(0,Sn.A)(k.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:E,children:(0,Jt.jsx)(k_,(0,Se.A)({as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":C},x,{className:(0,Sn.A)(k.paper,x.className),ownerState:E,children:(0,Jt.jsx)(A_.Provider,{value:P,children:u})}))})}))}))})),C_=j_;function P_(e){return(0,Pn.Ay)("MuiDialogActions",e)}(0,Cn.A)("MuiDialogActions",["root","spacing"]);const R_=["className","disableSpacing"],T_=(0,En.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),I_=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,Kt.A)(r,R_),i=(0,Se.A)({},r,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,On.A)(n,P_,t)})(i);return(0,Jt.jsx)(T_,(0,Se.A)({className:(0,Sn.A)(s.root,n),ownerState:i,ref:t},a))})),M_=I_;function N_(e){return(0,Pn.Ay)("MuiDialogContent",e)}(0,Cn.A)("MuiDialogContent",["root","dividers"]);function L_(e){return(0,Pn.Ay)("MuiDialogTitle",e)}const F_=(0,Cn.A)("MuiDialogTitle",["root"]),z_=["className","dividers"],D_=(0,En.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(F_.root," + &")]:{paddingTop:0}})})),B_=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,a=(0,Kt.A)(r,z_),i=(0,Se.A)({},r,{dividers:o}),s=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,On.A)(n,N_,t)})(i);return(0,Jt.jsx)(D_,(0,Se.A)({className:(0,Sn.A)(s.root,n),ownerState:i,ref:t},a))})),V_=B_;function W_(e){return(0,Pn.Ay)("MuiDialogContentText",e)}(0,Cn.A)("MuiDialogContentText",["root"]);const U_=["children","className"],q_=(0,En.Ay)(Eu,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),H_=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiDialogContentText"}),{className:n}=r,o=(0,Kt.A)(r,U_),a=(e=>{const{classes:t}=e,r=(0,On.A)({root:["root"]},W_,t);return(0,Se.A)({},t,r)})(o);return(0,Jt.jsx)(q_,(0,Se.A)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,Sn.A)(a.root,n)},r,{classes:a}))})),$_=H_,Q_=["className","id"],K_=(0,En.Ay)(Eu,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),G_=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,Kt.A)(n,Q_),s=n,l=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},L_,t)})(s),{titleId:c=a}=t.useContext(A_);return(0,Jt.jsx)(K_,(0,Se.A)({component:"h2",className:(0,Sn.A)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:c},i))})),X_=G_;var Y_=r(9778),J_=r(7948),Z_=function(){return Z_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z_.apply(this,arguments)},eE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tE=function(e){var r,n=e.className,o=e.isOpen,a=void 0!==o&&o,i=e.loading,s=e.title,l=e.content,c=e.cancel,u=void 0===c?"ra.action.cancel":c,d=e.confirm,p=void 0===d?"ra.action.confirm":d,f=e.confirmColor,m=void 0===f?"primary":f,h=e.ConfirmIcon,v=void 0===h?Y_.A:h,y=e.CancelIcon,g=void 0===y?J_.A:y,b=e.onClose,x=e.onConfirm,w=e.translateOptions,A=void 0===w?{}:w,S=eE(e,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),O=Ps(),_=(0,t.useCallback)((function(e){e.stopPropagation(),x(e)}),[x]),E=(0,t.useCallback)((function(e){e.stopPropagation()}),[]);return t.createElement(oE,Z_({className:n,open:a,onClose:b,onClick:E,"aria-labelledby":"alert-dialog-title"},S),t.createElement(X_,{id:"alert-dialog-title"},"string"===typeof s?O(s,Z_({_:s},A)):s),t.createElement(V_,null,"string"===typeof l?t.createElement($_,null,O(l,Z_({_:l},A))):l),t.createElement(M_,null,t.createElement(Il,{disabled:i,onClick:b,startIcon:t.createElement(g,null)},O(u,{_:u})),t.createElement(Il,{disabled:i,onClick:_,className:zn("ra-confirm",(r={},r[nE.confirmWarning]="warning"===m,r[nE.confirmPrimary]="primary"===m,r)),autoFocus:!0,startIcon:t.createElement(v,null)},O(p,{_:p}))))};tE.propTypes={cancel:Bn().string,className:Bn().string,confirm:Bn().string,confirmColor:Bn().string,ConfirmIcon:Bn().elementType,CancelIcon:Bn().elementType,content:Bn().node.isRequired,isOpen:Bn().bool,loading:Bn().bool,onClose:Bn().func.isRequired,onConfirm:Bn().func.isRequired,title:Bn().node.isRequired,sx:Bn().any};var rE="RaConfirm",nE={confirmPrimary:"".concat(rE,"-confirmPrimary"),confirmWarning:"".concat(rE,"-confirmWarning")},oE=(0,En.Ay)(C_,{name:rE,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(nE.confirmPrimary)]={color:r.palette.primary.main},t["& .".concat(nE.confirmWarning)]={color:r.palette.error.main,"&:hover":{backgroundColor:Jm(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t})),aE=function(){return aE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aE.apply(this,arguments)},iE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},sE=function(e){var r=e.confirmTitle,n=void 0===r?"ra.message.bulk_delete_title":r,o=e.confirmContent,a=void 0===o?"ra.message.bulk_delete_content":o,i=e.confirmColor,s=void 0===i?"primary":i,l=e.icon,c=void 0===l?uE:l,u=e.label,d=void 0===u?"ra.action.delete":u,p=e.mutationMode,f=void 0===p?"pessimistic":p,m=e.mutationOptions,h=void 0===m?{}:m,v=e.onClick,y=iE(e,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","onClick"]),g=h.meta,b=iE(h,["meta"]),x=BA(e),w=x.selectedIds,A=x.onUnselectItems,S=nn(!1),O=S[0],_=S[1],E=Rt(),k=Jg(e),j=rl(),C=Ps(),P=b_(k,{ids:w,meta:g},aE({onSuccess:function(){j(),E("ra.notification.deleted",{type:"info",messageArgs:{smart_count:w.length},undoable:"undoable"===f}),A(),_(!1)},onError:function(e){E("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),_(!1)},mutationMode:f},b)),R=P[0],T=P[1].isLoading;return t.createElement(t.Fragment,null,t.createElement(cE,aE({onClick:function(e){_(!0),e.stopPropagation()},label:d},lE(y)),c),t.createElement(tE,{isOpen:O,loading:T,title:n,content:a,confirmColor:s,translateOptions:{smart_count:w.length,name:C("resources.".concat(k,".forcedCaseName"),{smart_count:w.length,_:_p().humanize(C("resources.".concat(k,".name"),{smart_count:w.length,_:_p().inflect(k,w.length)}),!0)})},onConfirm:function(e){R(),"function"===typeof v&&v(e)},onClose:function(){_(!1)}}))},lE=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return iE(e,["classes","filterValues","label","selectedIds"])},cE=(0,En.Ay)(jh,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:Jm(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}})),uE=t.createElement(f_.A,null);sE.propTypes={confirmTitle:Bn().node,confirmContent:Bn().node,confirmColor:Bn().string,icon:Bn().element,label:Bn().string,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),resource:Bn().string,selectedIds:Bn().arrayOf(Bn().any)};var dE=function(){return dE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dE.apply(this,arguments)},pE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fE=function(e){var r=e.label,n=void 0===r?"ra.action.delete":r,o=e.icon,a=void 0===o?mE:o,i=e.onClick,s=e.mutationOptions,l=void 0===s?{}:s,c=pE(e,["label","icon","onClick","mutationOptions"]),u=l.meta,d=pE(l,["meta"]),p=BA(e),f=p.selectedIds,m=p.onUnselectItems,h=Rt(),v=Jg(e),y=rl(),g=b_(),b=g[0],x=g[1].isLoading;return t.createElement(vE,dE({onClick:function(e){b(v,{ids:f,meta:u},dE({onSuccess:function(){h("ra.notification.deleted",{type:"info",messageArgs:{smart_count:f.length},undoable:!0}),m()},onError:function(e){h("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),y()},mutationMode:"undoable"},d)),"function"===typeof i&&i(e)},label:n,disabled:x},hE(c)),a)},mE=t.createElement(f_.A,null),hE=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return pE(e,["classes","filterValues","label","selectedIds"])},vE=(0,En.Ay)(jh,{name:"RaBulkDeleteWithUndoButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:Jm(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}}));fE.propTypes={label:Bn().string,resource:Bn().string,selectedIds:Bn().arrayOf(Bn().any),icon:Bn().element};var yE=function(){return yE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yE.apply(this,arguments)},gE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},bE=function(e){var r=e.mutationMode,n=void 0===r?"undoable":r,o=gE(e,["mutationMode"]);return"undoable"===n?t.createElement(fE,yE({},o)):t.createElement(sE,yE({mutationMode:n},o))};bE.propTypes={label:Bn().string,resource:Bn().string,selectedIds:Bn().arrayOf(Bn().any),mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),icon:Bn().element};var xE=(0,t.createContext)({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null});xE.displayName="ListFilterContext";var wE=(0,t.createContext)({sort:null,setSort:null,resource:null}),AE=function(e){return(0,t.useMemo)((function(){return _S()(e,["sort","setSort","resource"])}),[e.sort,e.setSort])};wE.displayName="ListSortContext";var SE=function(e){var r,n=e.value,o=e.children;return t.createElement(DA.Provider,{value:n},t.createElement(xE.Provider,{value:(r=n,(0,t.useMemo)((function(){return _S()(r,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])}),[r.displayedFilters,r.filterValues,r.hideFilter,r.setFilters,r.showFilter]))},t.createElement(wE.Provider,{value:AE(n)},t.createElement(ES.Provider,{value:kS(n)},o))))},OE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_E=function(e){var r=e.children,n=OE(e,["children"]);return t.createElement(qx,{value:n.resource},t.createElement(SE,{value:hA(n)},r))},EE=r(6434),kE=r.n(EE),jE=r(728),CE=function(e){var r,n=e.filterElement,o=e.handleHide,a=e.className,i=Jg(e),s=Ps();return t.createElement(TE,{"data-source":n.props.source,className:zn("filter-field",a)},t.cloneElement(n,{resource:i,record:IE,size:null!==(r=n.props.size)&&void 0!==r?r:"small",helperText:!1,defaultValue:void 0}),!n.props.alwaysOn&&t.createElement(js,{className:zn("hide-filter",RE.hideButton),onClick:o,"data-key":n.props.source,title:s("ra.action.remove_filter"),size:"small"},t.createElement(jE.A,null)),t.createElement("div",{className:RE.spacer},"\xa0"))};CE.propTypes={filterElement:Bn().node,handleHide:Bn().func,resource:Bn().string,className:Bn().string};var PE="RaFilterFormInput",RE={spacer:"".concat(PE,"-spacer"),hideButton:"".concat(PE,"-hideButton")},TE=(0,En.Ay)("div",{name:PE,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"})[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(RE.spacer)]={width:r.spacing(2)},t["& .".concat(RE.hideButton)]={marginBottom:r.spacing(1)},t})),IE={},ME=t.createContext(void 0),NE=function(){return NE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NE.apply(this,arguments)},LE=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},FE=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},zE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DE=function(e){var r=e.defaultValues,n=e.filters,o=zE(e,["defaultValues","filters"]),a=BA(e),i=a.setFilters,s=a.displayedFilters,l=a.filterValues,c=(0,t.useContext)(ME)||n,u=$g({defaultValues:UE(r||l,c)}),d=u.getValues,p=u.reset,f=u.trigger,m=u.watch;return(0,t.useEffect)((function(){var e=KE(d(),l),t=d();Ot()(e,t)||p(e)}),[JSON.stringify(l),l,d,p]),(0,t.useEffect)((function(){var e=m((function(e,t){var r=t.name;return LE(void 0,void 0,void 0,(function(){var t,n;return FE(this,(function(o){switch(o.label){case 0:return[4,f()];case 1:return t=o.sent(),r&&t&&(""===dt()(e,r)?(n=kE()(e),ct()(n,r),i(n,s)):i(e,s)),[2]}}))}))}));return function(){return e.unsubscribe()}}),[s,i,f,m]),t.createElement(Ny,NE({},u),t.createElement(Gg,null,t.createElement(BE,NE({onSubmit:qE,filters:c},o))))},BE=function(e){var r=e.className,n=e.filters,o=zE(e,["className","filters"]),a=Jg(e),i=My(),s=BA(e),l=s.displayedFilters,c=void 0===l?{}:l,u=s.hideFilter;(0,t.useEffect)((function(){n.forEach((function(e){if(e.props.alwaysOn&&e.props.defaultValue)throw new Error("Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.")}))}),[n]);var d=(0,t.useCallback)((function(e){return u(e.currentTarget.dataset.key)}),[u]);return t.createElement(tb,{prefix:"resources.".concat(a,".fields"),concatenate:!1},t.createElement(QE,NE({className:r},WE(o),{onSubmit:VE}),function(){var e=i.getValues();return n.filter((function(t){var r=dt()(e,t.props.source);return t.props.alwaysOn||c[t.props.source]||""!==r&&"undefined"!==typeof r}))}().map((function(e){return t.createElement(CE,{key:e.key||e.props.source,filterElement:e,handleHide:d,resource:a,className:$E.filterFormInput})})),t.createElement("div",{className:$E.clearFix})))},VE=function(e){return e.preventDefault(),!1};BE.propTypes={resource:Bn().string,filters:Bn().arrayOf(Bn().node).isRequired,displayedFilters:Bn().object,hideFilter:Bn().func,initialValues:Bn().object,className:Bn().string};var WE=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;return zE(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"])},UE=function(e,t){return NE(NE({},t.filter((function(e){return e.props.alwaysOn&&e.props.defaultValue})).reduce((function(e,t){return st()(NE({},e),t.props.source,t.props.defaultValue)}),{})),e)},qE=function(e){return e.preventDefault(),e.stopPropagation(),!1},HE="RaFilterForm",$E={clearFix:"".concat(HE,"-clearFix"),filterFormInput:"".concat(HE,"-filterFormInput")},QE=(0,En.Ay)("form",{name:HE,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flex:"0 1 auto"})[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat($E.clearFix)]={clear:"right"},t["& .".concat($E.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t})),KE=function(e,t){var r;return Object.keys(e).reduce((function(r,n){return r[n]=GE(e,n,t),r}),null!==(r=kE()(t))&&void 0!==r?r:{})},GE=function(e,t,r){if(void 0===e[t]||null===e[t])return"";if(Array.isArray(e[t]))return dt()(r,t,"");if(e[t]instanceof Date)return dt()(r,t,"");if("object"===typeof e[t]){var n=Object.keys(e[t]).reduce((function(n,o){var a,i=GE(e[t],o,null!==(a=(r||{})[t])&&void 0!==a?a:{});return n[o]=i,n}),{});return Object.keys(n).length?n:""}return dt()(r,t,"")},XE=function(){return XE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XE.apply(this,arguments)},YE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},JE=(0,t.memo)((function(e){var r=e.filters,n=e.actions,o=e.className,a=YE(e,["filters","actions","className"]);return Array.isArray(r)?t.createElement(ME.Provider,{value:r},t.createElement(ZE,{className:o},t.createElement(DE,null),t.createElement("span",null),n&&t.cloneElement(n,XE(XE({},a),n.props)))):t.createElement(ZE,{className:o},r&&t.cloneElement(r,XE(XE({},a),{context:"form"})),t.createElement("span",null),n&&t.cloneElement(n,XE(XE(XE({},a),{filters:r}),n.props)))}));JE.propTypes={filters:Bn().oneOfType([Bn().element,Bn().arrayOf(Bn().element)]),actions:Bn().oneOfType([Bn().bool,Bn().element]),exporter:Bn().oneOfType([Bn().func,Bn().bool])};var ZE=(0,En.Ay)("div",{name:"RaListToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%"})[r.breakpoints.down("md")]={flexWrap:"wrap"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"},t})),ek=function(e){var r=Jg(e),n=Sp(),o=e||{},a=o.hasCreate,i=o.hasEdit,s=o.hasList,l=o.hasShow,c=o.recordRepresentation;return(0,t.useMemo)((function(){return zA()({},{hasCreate:a,hasEdit:i,hasList:s,hasShow:l,recordRepresentation:c},n[r])}),[r,n,a,i,s,l,c])},tk=r(8242),rk=(0,t.forwardRef)((function(e,r){var n=e.filter,o=e.onShow,a=e.autoFocus,i=Jg(e),s=(0,t.useCallback)((function(){o({source:n.props.source,defaultValue:n.props.defaultValue})}),[n.props.defaultValue,n.props.source,o]);return t.createElement(Bu,{className:"new-filter-item","data-key":n.props.source,"data-default-value":n.props.defaultValue,key:n.props.source,onClick:s,autoFocus:a,ref:r,disabled:n.props.disabled},t.createElement(Lb,{label:n.props.label,source:n.props.source,resource:i}))}));rk.propTypes={filter:Bn().element.isRequired,onShow:Bn().func.isRequired,resource:Bn().string,autoFocus:Bn().bool};var nk=function(e){return jt("".concat(e,".savedQueries"),[])},ok=function(e){return Array.isArray(e)?e.filter((function(e){return ak(e)})):[]},ak=function(e){var t,r;return!!(e.label&&"string"===typeof e.label&&e.value&&(Array.isArray(e.value.displayedFilters),1)&&"number"===typeof e.value.perPage&&"string"===typeof(null===(t=e.value.sort)||void 0===t?void 0:t.field)&&"string"===typeof(null===(r=e.value.sort)||void 0===r?void 0:r.order)&&"object"===typeof e.value.filter)},ik=function(e){var r=e.open,n=e.onClose,o=Ps(),a=BA(),i=a.resource,s=a.filterValues,l=a.displayedFilters,c=a.sort,u=a.perPage,d=nk(i),p=d[0],f=d[1],m=(0,t.useState)(""),h=m[0],v=m[1],y=function(){var e={label:h,value:{filter:s,sort:c,perPage:u,displayedFilters:l}},t=ok(p);f(t.concat(e)),v(""),n()};return t.createElement(C_,{open:r,onClose:n,"aria-labelledby":"form-dialog-title"},t.createElement(X_,{id:"form-dialog-title"},o("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),t.createElement(V_,null,t.createElement("form",{onSubmit:function(e){e.preventDefault(),y()}},t.createElement($m,{autoFocus:!0,margin:"dense",id:"name",label:o("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:h,onChange:function(e){v(e.target.value)}}))),t.createElement(M_,null,t.createElement(Il,{onClick:n},o("ra.action.cancel")),t.createElement(Il,{onClick:y,color:"primary"},o("ra.action.save"))))},sk=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},lk=function(e){var r=e.open,n=e.onClose,o=Ps(),a=BA(),i=a.resource,s=a.filterValues,l=a.sort,c=a.perPage,u=a.displayedFilters,d=nk(i),p=d[0],f=d[1];return t.createElement(C_,{open:r,onClose:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},t.createElement(X_,{id:"alert-dialog-title"},o("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),t.createElement(V_,null,t.createElement($_,null,o("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),t.createElement(M_,null,t.createElement(Il,{onClick:n},o("ra.action.cancel")),t.createElement(Il,{onClick:function(){var e={filter:s,sort:l,perPage:c,displayedFilters:u},t=ok(p),r=t.findIndex((function(t){return Ot()(t.value,e)}));f(sk(sk([],t.slice(0,r),!0),t.slice(r+1),!0)),n()},color:"primary",autoFocus:!0},o("ra.action.confirm"))))},ck=function(){return ck=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ck.apply(this,arguments)},uk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dk=function(e){var r=e.filters,n=e.className,o=e.disableSaveQuery,a=e.size,i=e.variant,s=uk(e,["filters","className","disableSaveQuery","size","variant"]),l=(0,t.useContext)(ME)||r,c=Jg(e),u=Ps(),d=nk(c)[0],p=ee(),f=BA(e),m=f.displayedFilters,h=void 0===m?{}:m,v=f.filterValues,y=f.perPage,g=f.setFilters,b=f.showFilter,x=f.sort,w=!Ot()(v,{}),A=ok(d),S=A.some((function(e){return Ot()(e.value,{filter:v,sort:x,perPage:y,displayedFilters:h})})),O=(0,t.useState)(!1),_=O[0],E=O[1],k=(0,t.useRef)();if(void 0===l)throw new Error("The <FilterButton> component requires the <List filters> prop to be set");var j=l.filter((function(e){return!e.props.alwaysOn&&!h[e.props.source]&&"undefined"===typeof dt()(v,e.props.source)})),C=(0,t.useCallback)((function(e){e.preventDefault(),E(!0),k.current=e.currentTarget}),[k,E]),P=(0,t.useCallback)((function(){E(!1)}),[E]),R=(0,t.useCallback)((function(e){var t=e.source,r=e.defaultValue;b(t,""===r?void 0:r),setTimeout((function(){var e=document.querySelector("input[name='".concat(t,"']"));e&&e.focus()}),50),E(!1)}),[b,E]),T=(0,t.useState)(!1),I=T[0],M=T[1],N=(0,t.useState)(!1),L=N[0],F=N[1],z=function(){E(!1),F(!0)};return 0!==j.length||0!==A.length||w?t.createElement(fk,ck({className:n},pk(s)),t.createElement(jh,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:C,variant:i,size:a},t.createElement(tk.A,null)),t.createElement(cu,{open:_,anchorEl:k.current,onClose:P},j.map((function(e,r){return t.createElement(rk,{key:e.props.source,filter:e,resource:c,onShow:R,autoFocus:0===r})})),A.map((function(e,r){return Ot()(e.value,{filter:v,sort:x,perPage:y,displayedFilters:h})?t.createElement(Bu,{onClick:z,key:r},u("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:e.label})):t.createElement(Bu,{onClick:function(){p({search:(0,Xx.stringify)({filter:JSON.stringify(e.value.filter),sort:e.value.sort.field,order:e.value.sort.order,page:1,perPage:e.value.perPage,displayedFilters:JSON.stringify(e.value.displayedFilters)})}),E(!1)},key:r},e.label)})),w&&!S&&!o&&t.createElement(Bu,{onClick:function(){E(!1),M(!0)}},u("ra.saved_queries.new_label",{_:"Save current query..."})),w&&t.createElement(Bu,{onClick:function(){g({},{},!1),E(!1)}},u("ra.action.remove_all_filters",{_:"Remove all filters"}))),!o&&t.createElement(t.Fragment,null,t.createElement(ik,{open:I,onClose:function(){M(!1)}}),t.createElement(lk,{open:L,onClose:function(){F(!1)}}))):null},pk=function(e){e.displayedFilters,e.filterValues,e.showFilter;return uk(e,["displayedFilters","filterValues","showFilter"])};dk.propTypes={resource:Bn().string,filters:Bn().arrayOf(Bn().node),displayedFilters:Bn().object,filterValues:Bn().object,showFilter:Bn().func,className:Bn().string};var fk=(0,En.Ay)("div",{name:"RaFilterButton",overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),mk=function(){return mk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mk.apply(this,arguments)},hk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vk=function(e){var r=e.className,n=e.filters,o=(e.hasCreate,e.selectedIds),a=void 0===o?yk:o,i=e.onUnselectItems,s=void 0===i?gk:i,l=hk(e,["className","filters","hasCreate","selectedIds","onUnselectItems"]),c=BA(mk(mk({},e),{selectedIds:a,onUnselectItems:s})),u=c.sort,d=c.displayedFilters,p=c.filterValues,f=c.exporter,m=c.showFilter,h=c.total,v=Jg(e),y=ek(e).hasCreate,g=(0,t.useContext)(ME)||n;return(0,t.useMemo)((function(){return t.createElement(Aw,mk({className:r},gA(l)),n?(0,t.cloneElement)(n,{resource:v,showFilter:m,displayedFilters:d,filterValues:p,context:"button"}):g&&t.createElement(dk,null),y&&t.createElement(NA,null),!1!==f&&t.createElement($A,{disabled:0===h,resource:v,sort:u,filterValues:p}))}),[v,d,p,n,m,g,h,r,u,f,y])};vk.propTypes={className:Bn().string,sort:Bn().shape({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),displayedFilters:Bn().object,exporter:Bn().oneOfType([Bn().func,Bn().bool]),filters:Bn().element,filterValues:Bn().object,hasCreate:Bn().bool,resource:Bn().string,onUnselectItems:Bn().func,selectedIds:Bn().arrayOf(Bn().any),showFilter:Bn().func,total:Bn().number};var yk=[],gk=function(){return null},bk=r(8029),xk="RaEmpty",wk={message:"".concat(xk,"-message"),icon:"".concat(xk,"-icon"),toolbar:"".concat(xk,"-toolbar")},Ak=(0,En.Ay)("span",{name:xk,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(wk.message)]={textAlign:"center",opacity:"light"===r.palette.mode?.5:.8,margin:"0 1em",color:"light"===r.palette.mode?"inherit":r.palette.text.primary},t["& .".concat(wk.icon)]={width:"9em",height:"9em"},t["& .".concat(wk.toolbar)]={textAlign:"center",marginTop:"2em"},t})),Sk=function(){return Sk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sk.apply(this,arguments)},Ok=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_k=t.createElement(vk,null),Ek=t.createElement(nO,null),kk=t.createElement((function(e){var r=e.className,n=ek(e).hasCreate,o=Jg(e),a=Ps(),i=Ep(),s=a("resources.".concat(o,".forcedCaseName"),{smart_count:0,_:i(o,0)}),l=a("ra.page.empty",{name:s}),c=a("ra.page.invite");return t.createElement(Ak,{className:r},t.createElement("div",{className:wk.message},t.createElement(bk.A,{className:wk.icon}),t.createElement(Eu,{variant:"h4",paragraph:!0},a("resources.".concat(o,".empty"),{_:l})),n&&t.createElement(Eu,{variant:"body1"},a("resources.".concat(o,".invite"),{_:c}))),n&&t.createElement("div",{className:wk.toolbar},t.createElement(NA,{variant:"contained"})))}),null),jk=Vv,Ck=function(e){var r=e.actions,n=void 0===r?_k:r,o=e.aside,a=e.filters,i=e.bulkActionButtons,s=e.emptyWhileLoading,l=e.hasCreate,c=e.pagination,u=void 0===c?Ek:c,d=e.children,p=e.className,f=e.component,m=void 0===f?jk:f,h=e.title,v=e.empty,y=void 0===v?kk:v,g=Ok(e,["actions","aside","filters","bulkActionButtons","emptyWhileLoading","hasCreate","pagination","children","className","component","title","empty"]),b=BA(e),x=b.defaultTitle,w=b.data,A=b.error,S=b.isLoading,O=b.filterValues,_=b.resource;if(!d||!w&&S&&s)return null;var E=!S&&0===(null===w||void 0===w?void 0:w.length)&&!Object.keys(O).length&&!1!==y;return t.createElement(Tk,Sk({className:zn("list-page",p)},g),t.createElement(yh,{title:h,defaultTitle:x,preferenceKey:"".concat(_,".list.title")}),E?!1!==y&&(0,t.cloneElement)(y,{className:Rk.noResults,hasCreate:l}):t.createElement("div",{className:Rk.main},(a||n)&&t.createElement(JE,{className:Rk.actions,filters:a,actions:n,hasCreate:l}),t.createElement(m,{className:Rk.content},i&&d&&t.isValidElement(d)?(0,t.cloneElement)(d,{bulkActionButtons:i}):d),A?t.createElement(wh,{error:A,resetErrorBoundary:null}):!1!==u&&u),o)};Ck.propTypes={actions:Bn().oneOfType([Bn().bool,Bn().element]),aside:Bn().element,children:Bn().node,className:Bn().string,component:co,emptyWhileLoading:Bn().bool,filters:Bn().oneOfType([Bn().element,Bn().arrayOf(Bn().element)]),hasCreate:Bn().bool,pagination:Bn().oneOfType([Bn().element,Bn().bool]),title:gh};var Pk="RaList",Rk={main:"".concat(Pk,"-main"),content:"".concat(Pk,"-content"),actions:"".concat(Pk,"-actions"),noResults:"".concat(Pk,"-noResults")},Tk=(0,En.Ay)("div",{name:Pk,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={display:"flex"})["& .".concat(Rk.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(Rk.content)]=((r={position:"relative"})[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(Rk.actions)]={},t["& .".concat(Rk.noResults)]={},t})),Ik=function(){return Ik=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ik.apply(this,arguments)},Mk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Nk=function(e){var r=e.debounce,n=e.disableAuthentication,o=e.disableSyncWithLocation,a=e.exporter,i=e.filter,s=void 0===i?Lk:i,l=e.filterDefaultValues,c=e.perPage,u=void 0===c?10:c,d=e.queryOptions,p=e.resource,f=e.sort,m=e.storeKey,h=Mk(e,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","perPage","queryOptions","resource","sort","storeKey"]);return t.createElement(_E,{debounce:r,disableAuthentication:n,disableSyncWithLocation:o,exporter:a,filter:s,filterDefaultValues:l,perPage:u,queryOptions:d,resource:p,sort:f,storeKey:m},t.createElement(Ck,Ik({},h)))};Nk.propTypes={actions:Bn().oneOfType([Bn().bool,Bn().element]),aside:Bn().element,children:Bn().node.isRequired,className:Bn().string,emptyWhileLoading:Bn().bool,filter:Bn().object,filterDefaultValues:Bn().object,filters:Bn().oneOfType([Bn().element,Bn().arrayOf(Bn().element)]),pagination:Bn().oneOfType([Bn().element,Bn().bool]),perPage:Bn().number,sort:Bn().shape({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),sx:Bn().any,title:gh,disableSyncWithLocation:Bn().bool,hasCreate:Bn().bool,resource:Bn().string};var Lk={};function Fk(e){return(0,Pn.Ay)("MuiTable",e)}(0,Cn.A)("MuiTable",["root","stickyHeader"]);const zk=["className","component","padding","size","stickyHeader"],Dk=(0,En.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Se.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),Bk="table",Vk=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTable"}),{className:o,component:a=Bk,padding:i="normal",size:s="medium",stickyHeader:l=!1}=n,c=(0,Kt.A)(n,zk),u=(0,Se.A)({},n,{component:a,padding:i,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:r}=e,n={root:["root",r&&"stickyHeader"]};return(0,On.A)(n,Fk,t)})(u),p=t.useMemo((()=>({padding:i,size:s,stickyHeader:l})),[i,s,l]);return(0,Jt.jsx)(GA.Provider,{value:p,children:(0,Jt.jsx)(Dk,(0,Se.A)({as:a,role:a===Bk?null:"table",ref:r,className:(0,Sn.A)(d.root,o),ownerState:u},c))})})),Wk=Vk;var Uk=r(450),qk=r.n(Uk),Hk=r(8458),$k=r.n(Hk);function Qk(e){return(0,Pn.Ay)("MuiTableHead",e)}(0,Cn.A)("MuiTableHead",["root"]);const Kk=["className","component"],Gk=(0,En.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Xk={variant:"head"},Yk="thead",Jk=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiTableHead"}),{className:n,component:o=Yk}=r,a=(0,Kt.A)(r,Kk),i=(0,Se.A)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},Qk,t)})(i);return(0,Jt.jsx)(XA.Provider,{value:Xk,children:(0,Jt.jsx)(Gk,(0,Se.A)({as:o,className:(0,Sn.A)(s.root,n),ref:t,role:o===Yk?null:"rowgroup",ownerState:i},a))})})),Zk=Jk;function ej(e){return(0,Pn.Ay)("MuiTableRow",e)}const tj=(0,Cn.A)("MuiTableRow",["root","selected","hover","head","footer"]),rj=["className","component","hover","selected"],nj=(0,En.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(tj.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(tj.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,Qn.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}})),oj="tr",aj=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTableRow"}),{className:o,component:a=oj,hover:i=!1,selected:s=!1}=n,l=(0,Kt.A)(n,rj),c=t.useContext(XA),u=(0,Se.A)({},n,{component:a,hover:i,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:a}=e,i={root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]};return(0,On.A)(i,ej,t)})(u);return(0,Jt.jsx)(nj,(0,Se.A)({as:a,ref:r,className:(0,Sn.A)(d.root,o),role:a===oj?null:"row",ownerState:u},l))})),ij=aj,sj=(0,Nl.A)((0,Jt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),lj=(0,Nl.A)((0,Jt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),cj=(0,Nl.A)((0,Jt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uj(e){return(0,Pn.Ay)("MuiCheckbox",e)}const dj=(0,Cn.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pj=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],fj=(0,En.Ay)(YO,{shouldForwardProp:e=>(0,Al.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,$n.A)(r.size))],"default"!==r.color&&t["color".concat((0,$n.A)(r.color))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Qn.X4)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(dj.checked,", &.").concat(dj.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(dj.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),mj=(0,Jt.jsx)(lj,{}),hj=(0,Jt.jsx)(sj,{}),vj=(0,Jt.jsx)(cj,{}),yj=t.forwardRef((function(e,r){var n,o;const a=(0,_n.A)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=mj,color:s="primary",icon:l=hj,indeterminate:c=!1,indeterminateIcon:u=vj,inputProps:d,size:p="medium",className:f}=a,m=(0,Kt.A)(a,pj),h=c?u:l,v=c?u:i,y=(0,Se.A)({},a,{color:s,indeterminate:c,size:p}),g=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,$n.A)(n)),"size".concat((0,$n.A)(o))]},i=(0,On.A)(a,uj,t);return(0,Se.A)({},t,i)})(y);return(0,Jt.jsx)(fj,(0,Se.A)({type:"checkbox",inputProps:(0,Se.A)({"data-indeterminate":c},d),icon:t.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:p}),checkedIcon:t.cloneElement(v,{fontSize:null!=(o=v.props.fontSize)?o:p}),ownerState:y,ref:r,className:(0,Sn.A)(g.root,f)},m,{classes:g}))})),gj=yj,bj=(0,Nl.A)((0,Jt.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function xj(e){return(0,Pn.Ay)("MuiTableSortLabel",e)}const wj=(0,Cn.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Aj=["active","children","className","direction","hideSortIcon","IconComponent"],Sj=(0,En.Ay)(As,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(wj.icon)]:{opacity:.5}},["&.".concat(wj.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(wj.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),Oj=(0,En.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t["iconDirection".concat((0,$n.A)(r.direction))]]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})})),_j=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiTableSortLabel"}),{active:n=!1,children:o,className:a,direction:i="asc",hideSortIcon:s=!1,IconComponent:l=bj}=r,c=(0,Kt.A)(r,Aj),u=(0,Se.A)({},r,{active:n,direction:i,hideSortIcon:s,IconComponent:l}),d=(e=>{const{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,$n.A)(r))]};return(0,On.A)(o,xj,t)})(u);return(0,Jt.jsxs)(Sj,(0,Se.A)({className:(0,Sn.A)(d.root,a),component:"span",disableRipple:!0,ownerState:u,ref:t},c,{children:[o,s&&!n?null:(0,Jt.jsx)(Oj,{as:l,className:(0,Sn.A)(d.icon),ownerState:u})]}))})),Ej=_j;var kj,jj=function(){return jj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jj.apply(this,arguments)},Cj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Pj=function(e){var r=e.className,n=e.field,o=e.sort,a=e.updateSort,i=(e.isSorting,Cj(e,["className","field","sort","updateSort","isSorting"])),s=Jg(e),l=Ps(),c=l("ra.sort.sort_by",{field:Mb()({label:n.props.label,resource:s,source:n.props.source}),order:l("ra.sort.".concat("ASC"===o.order?"DESC":"ASC")),_:l("ra.action.sort")});return t.createElement(Mj,jj({className:zn(r,n.props.headerClassName),align:n.props.textAlign,variant:"head"},i),a&&!1!==n.props.sortable&&(n.props.sortBy||n.props.source)?t.createElement(qi,{title:c,placement:"right"===n.props.textAlign?"bottom-end":"bottom-start",enterDelay:300},t.createElement(Ej,{active:o.field===(n.props.sortBy||n.props.source),direction:"ASC"===o.order?"asc":"desc","data-field":n.props.sortBy||n.props.source,"data-order":n.props.sortByOrder||"ASC",onClick:a,classes:Ij},t.createElement(Lb,{label:n.props.label,source:n.props.source,resource:s}))):t.createElement(Lb,{label:n.props.label,source:n.props.source,resource:s}))};Pj.propTypes={className:Bn().string,field:Bn().element,sort:Bn().shape({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}).isRequired,isSorting:Bn().bool,resource:Bn().string,updateSort:Bn().func};const Rj=(0,t.memo)(Pj,(function(e,t){return e.updateSort===t.updateSort&&e.sort.field===t.sort.field&&e.sort.order===t.sort.order&&e.isSorting===t.isSorting&&e.resource===t.resource}));var Tj="RaDatagridHeaderCell",Ij={icon:"".concat(Tj,"-icon")},Mj=(0,En.Ay)(rS,{name:Tj,overridesResolver:function(e,t){return t.root}})(((kj={})["& .MuiTableSortLabel-icon"]={display:"none"},kj["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},kj)),Nj="RaDatagrid",Lj={root:"".concat(Nj,"-root"),table:"".concat(Nj,"-table"),tableWrapper:"".concat(Nj,"-tableWrapper"),thead:"".concat(Nj,"-thead"),tbody:"".concat(Nj,"-tbody"),headerRow:"".concat(Nj,"-headerRow"),headerCell:"".concat(Nj,"-headerCell"),checkbox:"".concat(Nj,"-checkbox"),row:"".concat(Nj,"-row"),clickableRow:"".concat(Nj,"-clickableRow"),rowEven:"".concat(Nj,"-rowEven"),rowOdd:"".concat(Nj,"-rowOdd"),rowCell:"".concat(Nj,"-rowCell"),selectable:"".concat(Nj,"-selectable"),expandHeader:"".concat(Nj,"-expandHeader"),expandIconCell:"".concat(Nj,"-expandIconCell"),expandIcon:"".concat(Nj,"-expandIcon"),expandable:"".concat(Nj,"-expandable"),expanded:"".concat(Nj,"-expanded"),expandedPanel:"".concat(Nj,"-expandedPanel")},Fj=(0,En.Ay)("div",{name:Nj,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Lj.table)]={tableLayout:"auto"},t["& .".concat(Lj.tableWrapper)]={},t["& .".concat(Lj.thead)]={},t["& .".concat(Lj.tbody)]={},t["& .".concat(Lj.headerRow)]={},t["& .".concat(Lj.headerCell)]={position:"sticky",top:0,zIndex:2,backgroundColor:r.palette.background.paper,"&:first-of-type":{borderTopLeftRadius:r.shape.borderRadius},"&:last-child":{borderTopRightRadius:r.shape.borderRadius}},t["& .".concat(Lj.checkbox)]={},t["& .".concat(Lj.row)]={},t["& .".concat(Lj.clickableRow)]={cursor:"pointer"},t["& .".concat(Lj.rowEven)]={},t["& .".concat(Lj.rowOdd)]={},t["& .".concat(Lj.rowCell)]={},t["& .".concat(Lj.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(Lj.expandIconCell)]={width:r.spacing(6)},t["& .".concat(Lj.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(Lj.expandIcon,".").concat(Lj.expanded)]={transform:"rotate(0deg)"},t["& .".concat(Lj.expandedPanel)]={},t})),zj=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};const Dj=(0,t.memo)((function(e){var r,n=e.resource,o=e.ids,a=Ps(),i=function(e,r){var n=jt("".concat(e,".datagrid.expanded"),[]),o=n[0],a=n[1],i=!!Array.isArray(o)&&o.some((function(e){return r.some((function(t){return t==e}))})),s=(0,t.useCallback)((function(){var e=o.filter((function(e){return!r.some((function(t){return t==e}))}));a(i?e:e.concat(r))}),[o,a,i,r]);return[i,s]}(n,o),s=i[0],l=i[1];return t.createElement(js,{className:zn(Lj.expandIcon,(r={},r[Lj.expanded]=s,r)),"aria-label":a(s?"ra.action.close":"ra.action.expand"),"aria-expanded":s,tabIndex:-1,"aria-hidden":"true",onClick:l,size:"small"},t.createElement(Sd.A,{fontSize:"inherit"}))}));var Bj=(0,t.createContext)({});Bj.displayName="DatagridContext";const Vj=Bj;var Wj=function(e){var r=(0,t.useContext)(Vj);return(0,t.useMemo)((function(){return zA()({},null!=e?{isRowExpandable:e.isRowExpandable}:{},r)}),[r,e])},Uj=function(e){var r=e.children,n=e.className,o=e.hasExpand,a=void 0!==o&&o,i=e.hasBulkActions,s=void 0!==i&&i,l=e.isRowSelectable,c=Jg(e),u=Ps(),d=BA(e),p=d.sort,f=d.data,m=d.onSelect,h=d.selectedIds,v=d.setSort,y=Wj().expandSingle,g=(0,t.useCallback)((function(e){e.stopPropagation();var t=e.currentTarget.dataset.field,r=p.field===t?"ASC"===p.order?"DESC":"ASC":e.currentTarget.dataset.order;v({field:t,order:r})}),[p.field,p.order,v]),b=v?g:null,x=(0,t.useCallback)((function(e){return m(e.target.checked?h.concat(f.filter((function(e){return!h.includes(e.id)})).filter((function(e){return!l||l(e)})).map((function(e){return e.id}))):[])}),[f,m,l,h]),w=Array.isArray(f)?l?f.filter((function(e){return l(e)})).map((function(e){return e.id})):f.map((function(e){return e.id})):[];return t.createElement(Zk,{className:zn(n,Lj.thead)},t.createElement(ij,{className:zn(Lj.row,Lj.headerRow)},a&&t.createElement(rS,{padding:"none",className:zn(Lj.headerCell,Lj.expandHeader)},y?null:t.createElement(Dj,{resource:c,ids:f.map((function(e){return e.id}))})),s&&h&&t.createElement(rS,{padding:"checkbox",className:Lj.headerCell},t.createElement(gj,{"aria-label":u("ra.action.select_all",{_:"Select all"}),className:"select-all",color:"primary",checked:h.length>0&&w.length>0&&w.every((function(e){return h.includes(e)})),onChange:x,onClick:function(e){return e.stopPropagation()}})),t.Children.map(r,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(Rj,{className:zn(Lj.headerCell,"column-".concat(e.props.source)),sort:p,field:e,isSorting:p.field===(e.props.sortBy||e.props.source),key:e.props.source||r,resource:c,updateSort:b}):null}))))};function qj(e){return(0,Pn.Ay)("MuiTableBody",e)}Uj.propTypes={children:Bn().node,className:Bn().string,sort:Bn().exact({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),data:Bn().arrayOf(Bn().any),hasExpand:Bn().bool,hasBulkActions:Bn().bool,isRowSelectable:Bn().func,isRowExpandable:Bn().func,onSelect:Bn().func,onToggleItem:Bn().func,resource:Bn().string,selectedIds:Bn().arrayOf(Bn().any),setSort:Bn().func},Uj.displayName="DatagridHeader";(0,Cn.A)("MuiTableBody",["root"]);const Hj=["className","component"],$j=(0,En.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Qj={variant:"body"},Kj="tbody",Gj=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiTableBody"}),{className:n,component:o=Kj}=r,a=(0,Kt.A)(r,Hj),i=(0,Se.A)({},r,{component:o}),s=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},qj,t)})(i);return(0,Jt.jsx)(XA.Provider,{value:Qj,children:(0,Jt.jsx)($j,(0,Se.A)({className:(0,Sn.A)(s.root,n),as:o,ref:t,role:o===Kj?null:"rowgroup",ownerState:i},a))})})),Xj=Gj;var Yj=function(e){return t.createElement(Jj,{className:e.className},"\xa0")},Jj=(0,En.Ay)("span",{name:"RaPlaceholder",overridesResolver:function(e,t){return t.root}})((function(e){return{backgroundColor:e.theme.palette.grey[300],display:"flex"}})),Zj=function(e,t){return Array.from({length:e},(function(e,r){return t(r)}))},eC=function(e){var r=e.className,n=e.expand,o=e.hasBulkActions,a=e.nbChildren,i=e.nbFakeLines,s=void 0===i?5:i,l=e.size;return on(1e3)?t.createElement("div",{className:Lj.root},t.createElement(Wk,{className:zn(Lj.table,r),size:l},t.createElement(Zk,null,t.createElement(ij,{className:Lj.row},n&&t.createElement(rS,{padding:"none",className:Lj.expandHeader}),o&&t.createElement(rS,{padding:"checkbox",className:Lj.expandIconCell},t.createElement(gj,{className:"select-all",color:"primary",checked:!1})),Zj(a,(function(e){return t.createElement(rS,{variant:"head",className:Lj.headerCell,key:e},t.createElement(Yj,null))})))),t.createElement(Xj,null,Zj(s,(function(e){return t.createElement(ij,{key:e,style:{opacity:1/(e+1)}},n&&t.createElement(rS,{padding:"none",className:Lj.expandIconCell},t.createElement(js,{className:Lj.expandIcon,component:"div","aria-hidden":"true",size:"large"},t.createElement(Sd.A,null))),o&&t.createElement(rS,{padding:"checkbox",className:Lj.expandIconCell},t.createElement(gj,{className:"select-all",color:"primary",checked:!1})),Zj(a,(function(e){return t.createElement(rS,{className:Lj.rowCell,key:e},t.createElement(Yj,null))})))}))))):null};eC.propTypes={className:Bn().string,expand:Bn().oneOfType([Bn().element,Bn().elementType]),hasBulkActions:Bn().bool,nbChildren:Bn().number,nbFakeLines:Bn().number,size:Bn().oneOf(["small","medium"])};const tC=(0,t.memo)(eC);var rC=function(){return rC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rC.apply(this,arguments)},nC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},oC=t.forwardRef((function(e,r){var n=e.className,o=e.field,a=(e.record,e.resource,nC(e,["className","field","record","resource"]));return t.createElement(rS,rC({className:zn(n,o.props.cellClassName),align:o.props.textAlign,ref:r},a),o)}));oC.propTypes={className:Bn().string,field:Bn().element,record:Bn().object,resource:Bn().string},oC.displayName="DatagridCell";const aC=oC;var iC=function(){return iC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iC.apply(this,arguments)},sC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const lC=(0,t.memo)((function(e){var r=e.expanded,n=e.expandContentId,o=sC(e,["expanded","expandContentId"]),a=Ps();return t.createElement(js,iC({"aria-label":a(r?"ra.action.close":"ra.action.expand"),"aria-expanded":r,"aria-controls":n,tabIndex:-1,"aria-hidden":"true",component:"div"},o,{size:"small"}),t.createElement(Sd.A,{fontSize:"inherit"}))}));var cC=function(){return cC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cC.apply(this,arguments)},uC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},dC=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},pC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fC=function(e,r,n){return e?1+(n?1:0)+t.Children.toArray(r).filter((function(e){return!!e})).length:0},mC=t.forwardRef((function(e,r){var n,o,a=e.children,i=e.className,s=e.expand,l=e.hasBulkActions,c=void 0!==l&&l,u=e.hover,d=void 0===u||u,p=e.id,f=e.onToggleItem,m=(e.record,e.rowClick),h=e.selected,v=void 0!==h&&h,y=e.style,g=e.selectable,b=void 0===g||g,x=pC(e,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]),w=Wj(),A=Ps(),S=sh(e),O=(!w||!w.isRowExpandable||w.isRowExpandable(S))&&s,_=Jg(e),E=jr(),k=function(e,r,n){void 0===n&&(n=!1);var o=jt("".concat(e,".datagrid.expanded"),[]),a=o[0],i=o[1];return[!!Array.isArray(a)&&-1!==a.map((function(e){return e==r})).indexOf(!0),(0,t.useCallback)((function(){i((function(e){if(!Array.isArray(e))return[r];var t=e.findIndex((function(e){return e==r}));return t>-1?n?[]:zj(zj([],e.slice(0,t),!0),e.slice(t+1),!0):n?[r]:zj(zj([],e,!0),[r],!1)}))}),[i,r,n])]}(_,p,w&&w.expandSingle),j=k[0],C=k[1],P=(0,t.useState)((function(){return fC(O,a,c)})),R=P[0],T=P[1];(0,t.useEffect)((function(){var e=fC(O,a,c);e!==R&&T(e)}),[O,R,a,c]);var I=ee(),M=(0,t.useCallback)((function(e){C(),e.stopPropagation()}),[C]),N=(0,t.useCallback)((function(e){b&&(f(p,e),e.stopPropagation())}),[p,f,b]),L=(0,t.useCallback)((function(e){return uC(void 0,void 0,void 0,(function(){var t,r;return dC(this,(function(n){switch(n.label){case 0:return e.persist(),"function"!==typeof m?[3,2]:[4,m(p,_,S)];case 1:return r=n.sent(),[3,3];case 2:r=m,n.label=3;case 3:return!1===(t=r)||null==t?[2]:["edit","show"].includes(t)?(I(E({resource:_,id:p,type:t}),{state:{_scrollToTop:!0}}),[2]):"expand"===t?(M(e),[2]):"toggleSelection"===t?(N(e),[2]):(I(t),[2])}}))}))}),[m,p,_,S,I,E,M,N]);return t.createElement(ih,{value:S},t.createElement(ij,cC({ref:r,className:zn(i,(n={},n[Lj.expandable]=O,n[Lj.selectable]=b,n[Lj.clickableRow]="function"===typeof m||m,n)),key:p,style:y,hover:d,onClick:L},x),s&&t.createElement(rS,{padding:"none",className:Lj.expandIconCell},O&&t.createElement(lC,{className:zn(Lj.expandIcon,(o={},o[Lj.expanded]=j,o)),expanded:j,onClick:M,expandContentId:"".concat(p,"-expand")})),c&&t.createElement(rS,{padding:"checkbox"},t.createElement(gj,{"aria-label":A("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(Lj.checkbox),checked:b&&v,onClick:N,disabled:!b})),t.Children.map(a,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(aC,{key:"".concat(p,"-").concat(e.props.source||r),className:zn("column-".concat(e.props.source),Lj.rowCell),record:S,field:e,resource:_}):null}))),O&&j&&t.createElement(ij,{key:"".concat(p,"-expand"),id:"".concat(p,"-expand"),className:Lj.expandedPanel},t.createElement(rS,{colSpan:R},(0,Kl.isElement)(s)?(0,t.cloneElement)(s,{record:S,resource:_,id:String(p)}):(0,t.createElement)(s,{record:S,resource:_,id:String(p)}))))}));mC.propTypes={children:Bn().node,className:Bn().string,expand:Bn().oneOfType([Bn().element,Bn().elementType]),hasBulkActions:Bn().bool,hover:Bn().bool,id:Bn().any,onToggleItem:Bn().func,record:Bn().object,resource:Bn().string,rowClick:Bn().oneOfType([Bn().string,Bn().func,Bn().bool]),selected:Bn().bool,style:Bn().object,selectable:Bn().bool};var hC=(0,t.memo)(mC,(function(e,t){e.children,e.expand;var r=pC(e,["children","expand"]),n=(t.children,t.expand,pC(t,["children","expand"]));return Cw(r,n)}));hC.displayName="PureDatagridRow";const vC=mC;var yC=function(){return yC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yC.apply(this,arguments)},gC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},bC=t.forwardRef((function(e,r){var n=e.children,o=e.className,a=e.data,i=void 0===a?wC:a,s=e.expand,l=e.hasBulkActions,c=void 0!==l&&l,u=e.hover,d=e.onToggleItem,p=e.resource,f=e.row,m=void 0===f?xC:f,h=e.rowClick,v=e.rowSx,y=e.rowStyle,g=e.selectedIds,b=e.isRowSelectable,x=gC(e,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return t.createElement(Xj,yC({ref:r,className:zn("datagrid-body",o,Lj.tbody)},x),i.map((function(e,r){var o,a,i;return(0,t.cloneElement)(m,{className:zn(Lj.row,(o={},o[Lj.rowEven]=r%2===0,o[Lj.rowOdd]=r%2!==0,o)),expand:s,hasBulkActions:c&&!!g,hover:u,id:null!==(a=e.id)&&void 0!==a?a:"row".concat(r),key:null!==(i=e.id)&&void 0!==i?i:"row".concat(r),onToggleItem:d,record:e,resource:p,rowClick:h,selectable:!b||b(e),selected:null===g||void 0===g?void 0:g.includes(e.id),sx:null===v||void 0===v?void 0:v(e,r),style:null===y||void 0===y?void 0:y(e,r)},n)})))})),xC=t.createElement(vC,null);bC.propTypes={className:Bn().string,children:Bn().node,data:Bn().arrayOf(Bn().object),expand:Bn().oneOfType([Bn().element,Bn().elementType]),hasBulkActions:Bn().bool,hover:Bn().bool,onToggleItem:Bn().func,resource:Bn().string,row:Bn().element,rowClick:Bn().oneOfType([Bn().string,Bn().func,Bn().bool]),rowSx:Bn().func,rowStyle:Bn().func,selectedIds:Bn().arrayOf(Bn().any),styles:Bn().object,isRowSelectable:Bn().func};var wC=[];bC.muiName="TableBody";var AC=(0,t.memo)((function(e){return t.createElement(bC,yC({row:t.createElement(hC,null)},e))}));AC.muiName="TableBody";const SC=bC;const OC=function(e){var r=e.children,n=e.value;return t.createElement(Vj.Provider,{value:n},r)};var _C=r(4802),EC=function(){return EC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EC.apply(this,arguments)},kC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jC=function(e){var r,n=e.label,o=void 0===n?"ra.action.bulk_actions":n,a=e.children,i=e.className,s=kC(e,["label","children","className"]),l=BA(e),c=l.filterValues,u=l.resource,d=l.selectedIds,p=void 0===d?[]:d,f=l.onUnselectItems,m=Ps(),h=(0,t.useCallback)((function(){f()}),[f]);return t.createElement(RC,{className:i},t.createElement(Hn,EC({"data-test":"bulk-actions-toolbar",className:zn(PC.toolbar,(r={},r[PC.collapsed]=0===p.length,r))},gA(s)),t.createElement("div",{className:PC.title},t.createElement(js,{className:PC.icon,"aria-label":m("ra.action.unselect"),title:m("ra.action.unselect"),onClick:h,size:"small"},t.createElement(_C.A,{fontSize:"small"})),t.createElement(Eu,{color:"inherit",variant:"subtitle1"},m(o,{_:o,smart_count:p.length}))),t.createElement(Aw,{className:PC.topToolbar},t.Children.map(a,(function(e){return(0,t.isValidElement)(e)?(0,t.cloneElement)(e,{filterValues:c,resource:u,selectedIds:p}):null})))))};jC.propTypes={children:Bn().node,label:Bn().string};var CC="RaBulkActionsToolbar",PC={toolbar:"".concat(CC,"-toolbar"),topToolbar:"".concat(CC,"-topToolbar"),buttons:"".concat(CC,"-buttons"),collapsed:"".concat(CC,"-collapsed"),title:"".concat(CC,"-title"),icon:"".concat(CC,"-icon")},RC=(0,En.Ay)("div",{name:CC,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={position:"relative"})["& .".concat(PC.toolbar)]={position:"absolute",left:0,right:0,zIndex:3,color:"light"===n.palette.mode?n.palette.primary.main:n.palette.text.primary,justifyContent:"space-between",backgroundColor:"light"===n.palette.mode?Zm(n.palette.primary.light,.8):n.palette.primary.dark,minHeight:n.spacing(6),height:n.spacing(6),transform:"translateY(-".concat(n.spacing(6),")"),transition:"".concat(n.transitions.create("height"),", ").concat(n.transitions.create("min-height"),", ").concat(n.transitions.create("transform")),borderTopLeftRadius:n.shape.borderRadius,borderTopRightRadius:n.shape.borderRadius},t["& .".concat(PC.topToolbar)]=((r={paddingBottom:n.spacing(1),minHeight:"auto"})[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(PC.buttons)]={},t["& .".concat(PC.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(PC.title)]={display:"flex",flex:"0 0 auto"},t["& .".concat(PC.icon)]={marginLeft:"-0.5em",marginRight:"0.5em"},t})),TC=(0,t.memo)((function(){var e=Ps(),r=Jg();return t.createElement(Qv,null,t.createElement(Eu,{variant:"body2"},e("ra.navigation.no_results",{resource:r})))})),IC=function(){return IC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IC.apply(this,arguments)},MC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},NC=t.createElement(bE,null),LC=t.forwardRef((function(e,r){var n=e.optimized,o=void 0!==n&&n,a=e.body,i=void 0===a?o?AC:SC:a,s=e.header,l=void 0===s?Uj:s,c=e.children,u=e.className,d=e.empty,p=void 0===d?BC:d,f=e.expand,m=e.bulkActionButtons,h=void 0===m?NC:m,v=e.hover,y=e.isRowSelectable,g=e.isRowExpandable,b=e.resource,x=e.rowClick,w=e.rowSx,A=e.rowStyle,S=e.size,O=void 0===S?"small":S,_=e.sx,E=e.expandSingle,k=void 0!==E&&E,j=MC(e,["optimized","body","header","children","className","empty","expand","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),C=BA(e),P=C.sort,R=C.data,T=C.isLoading,I=C.onSelect,M=C.onToggleItem,N=C.selectedIds,L=C.setSort,F=C.total,z=!1!==!!h,D=(0,t.useMemo)((function(){return{isRowExpandable:g,expandSingle:k}}),[g,k]),B=(0,t.useRef)(null);(0,t.useEffect)((function(){N&&0!==N.length||(B.current=null)}),[JSON.stringify(N)]);var V=(0,t.useCallback)((function(e,t){var r=R.map((function(e){return e.id})),n=r.indexOf(B.current);if(B.current=t.target.checked?e:null,t.shiftKey&&-1!==n){var o=r.indexOf(e),a=r.slice(Math.min(n,o),Math.max(n,o)+1),i=t.target.checked?qk()(N,a):$k()(N,a);I(y?i.filter((function(e){return y(R.find((function(t){return t.id===e})))})):i)}else M(e)}),[R,y,I,M,N]);return!0===T?t.createElement(tC,{className:u,expand:f,hasBulkActions:z,nbChildren:t.Children.count(c),size:O}):null==R||0===R.length||0===F?p||null:t.createElement(OC,{value:D},t.createElement(Fj,{sx:_,className:zn(Lj.root,u)},!1!==h?t.createElement(jC,{selectedIds:N},(0,t.isValidElement)(h)?h:NC):null,t.createElement("div",{className:Lj.tableWrapper},t.createElement(Wk,IC({ref:r,className:Lj.table,size:O},DC(j)),FC(l,{children:c,sort:P,data:R,hasExpand:!!f,hasBulkActions:z,isRowSelectable:y,onSelect:I,resource:b,selectedIds:N,setSort:L},c),FC(i,{expand:f,rowClick:x,data:R,hasBulkActions:z,hover:v,onToggleItem:V,resource:b,rowSx:w,rowStyle:A,selectedIds:N,isRowSelectable:y},c)))))})),FC=function(e,r,n){return(0,t.isValidElement)(e)?(0,t.cloneElement)(e,r,n):(0,t.createElement)(e,r,n)};LC.propTypes={body:Bn().oneOfType([Bn().element,Bn().elementType]),bulkActionButtons:Bn().oneOfType([Bn().bool,Bn().element]),children:Bn().node.isRequired,className:Bn().string,sort:Bn().exact({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),data:Bn().arrayOf(Bn().any),empty:Bn().element,expand:Bn().oneOfType([Bn().element,Bn().elementType]),header:Bn().oneOfType([Bn().element,Bn().elementType]),hover:Bn().bool,isLoading:Bn().bool,onSelect:Bn().func,onToggleItem:Bn().func,resource:Bn().string,rowClick:Bn().oneOfType([Bn().string,Bn().func,Bn().bool]),rowSx:Bn().func,rowStyle:Bn().func,selectedIds:Bn().arrayOf(Bn().any),setSort:Bn().func,total:Bn().number,isRowSelectable:Bn().func,isRowExpandable:Bn().func,expandSingle:Bn().bool};var zC=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],DC=function(e){return Object.keys(gA(e)).filter((function(e){return!zC.includes(e)})).reduce((function(t,r){var n;return IC(IC({},t),((n={})[r]=e[r],n))}),{})};LC.displayName="Datagrid";var BC=t.createElement(TC,null),VC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},WC=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;return VC(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"])},UC={sortBy:Bn().string,sortByOrder:Bn().oneOf(["ASC","DESC"]),source:Bn().string,label:Bn().oneOfType([Bn().string,Bn().element,Bn().bool]),sortable:Bn().bool,className:Bn().string,cellClassName:Bn().string,headerClassName:Bn().string,textAlign:Bn().oneOf(["inherit","left","center","right","justify"]),emptyText:Bn().string},qC=function(e){var r,n=(0,t.memo)(e);return n.propTypes=e.propTypes,n.defaultProps=e.defaultProps,n.displayName=null===(r=e.displayName)||void 0===r?void 0:r.replace("Impl",""),n},HC=function(){return HC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HC.apply(this,arguments)},$C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QC=function(e){var r,n=e.className,o=e.source,a=e.emptyText,i=$C(e,["className","source","emptyText"]),s=sh(e),l=null===(r=dt()(s,o))||void 0===r?void 0:r.toString(),c=Ps();return t.createElement(Eu,HC({component:"span",variant:"body2",className:n},WC(i)),null!=l&&"string"!==typeof l?JSON.stringify(l):l||(a?c(a,{_:a}):null))};QC.propTypes=HC(HC({},Eu.propTypes),UC),QC.displayName="TextFieldImpl";var KC,GC=qC(QC),XC=r(7500),YC=function(){return YC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YC.apply(this,arguments)},JC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ZC=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.valueLabelTrue,i=e.valueLabelFalse,s=e.TrueIcon,l=void 0===s?XC.A:s,c=e.FalseIcon,u=void 0===c?Hb.A:c,d=e.looseValue,p=void 0!==d&&d,f=JC(e,["className","emptyText","source","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),m=sh(e),h=Ps(),v=dt()(m,o),y=!0===v||p&&v,g=v?a:i;return g||(g=y?"ra.boolean.true":"ra.boolean.false"),p||!1===v||!0===v?t.createElement(nP,YC({component:"span",variant:"body2",className:r},WC(f)),t.createElement(qi,{title:h(g,{_:g})},y?l?t.createElement(l,{"data-testid":"true",fontSize:"small",className:rP.trueIcon}):t.createElement(t.Fragment,null):u?t.createElement(u,{"data-testid":"false",fontSize:"small",className:rP.falseIcon}):t.createElement(t.Fragment,null))):t.createElement(Eu,YC({component:"span",variant:"body2",className:r},WC(f)),n&&h(n,{_:n}))};ZC.propTypes=YC(YC(YC({},Eu.propTypes),UC),{valueLabelFalse:Bn().string,valueLabelTrue:Bn().string,TrueIcon:Bn().elementType,FalseIcon:Bn().elementType,looseValue:Bn().bool}),ZC.displayName="BooleanFieldImpl";var eP=qC(ZC),tP="RaBooleanField",rP={trueIcon:"".concat(tP,"-trueIcon"),falseIcon:"".concat(tP,"-falseIcon")},nP=(0,En.Ay)(Eu,{name:tP,overridesResolver:function(e,t){return t.root}})(((KC={display:"inline-flex",verticalAlign:"middle",lineHeight:0})["& .".concat(rP.trueIcon)]={},KC["& .".concat(rP.falseIcon)]={},KC)),oP=function(){return oP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oP.apply(this,arguments)},aP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iP=function(e){var r=e.className,n=e.emptyText,o=e.locales,a=e.options,i=e.showTime,s=void 0!==i&&i,l=e.showDate,c=void 0===l||l,u=e.source,d=e.transform,p=void 0===d?lP:d,f=aP(e,["className","emptyText","locales","options","showTime","showDate","source","transform"]),m=Ps();if(!s&&!c)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var h=sh(e);if(!h)return null;var v=dt()(h,u);if(null==v||""===v)return n?t.createElement(Eu,oP({component:"span",variant:"body2",className:r},WC(f)),n&&m(n,{_:n})):null;var y=p(v),g="";if(s&&c)g=cP?y.toLocaleString(o,a):y.toLocaleString();else if(c){var b=null!==a&&void 0!==a?a:"string"===typeof v&&v.length<=10?{timeZone:"UTC"}:void 0;g=cP?y.toLocaleDateString(o,b):y.toLocaleDateString()}else s&&(g=cP?y.toLocaleTimeString(o,a):y.toLocaleTimeString());return t.createElement(Eu,oP({component:"span",variant:"body2",className:r},WC(f)),g)};iP.propTypes=oP(oP(oP({},Eu.propTypes),UC),{locales:Bn().oneOfType([Bn().string,Bn().arrayOf(Bn().string)]),options:Bn().object,showTime:Bn().bool,showDate:Bn().bool}),iP.displayName="DateFieldImpl";var sP=qC(iP),lP=function(e){return e instanceof Date?e:"string"===typeof e||"number"===typeof e?new Date(e):void 0},cP=function(){try{(new Date).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),uP=r(4329),dP=function(){return dP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dP.apply(this,arguments)},pP=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},fP=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},mP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},hP=function(e){var r=e.color,n=void 0===r?"primary":r,o=e.icon,a=void 0===o?yP:o,i=(e.invalid,e.label),s=void 0===i?"ra.action.save":i,l=e.onClick,c=e.mutationOptions,u=e.disabled,d=e.type,p=void 0===d?"submit":d,f=e.transform,m=e.variant,h=void 0===m?"contained":m,v=e.alwaysEnable,y=void 0!==v&&v,g=mP(e,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),b=Ps(),x=My(),w=nb(),A=Wy(),S=A.dirtyFields,O=A.isValidating,_=A.isSubmitting,E=Object.keys(S).length>0,k=bP(!1===y||void 0===y?void 0:!y,u||!E||O||_);Mr("submit"===p&&(c&&(c.onSuccess||c.onError)));var j=(0,t.useCallback)((function(e){return pP(void 0,void 0,void 0,(function(){var t;return fP(this,(function(r){switch(r.label){case 0:return(null===w||void 0===w?void 0:w.save)?[4,w.save(e,dP(dP({},c),{transform:f}))]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return null!=t&&db(t,x.setError),[2]}}))}))}),[x.setError,w,c,f]),C=(0,t.useCallback)((function(e){return pP(void 0,void 0,void 0,(function(){return fP(this,(function(t){switch(t.label){case 0:return l&&l(e),e.defaultPrevented?[2]:"button"!==p?[3,2]:(e.stopPropagation(),[4,x.handleSubmit(j)(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[l,p,x,j]),P=s&&b(s,{_:s});return t.createElement(gP,dP({variant:h,type:p,color:n,"aria-label":P,disabled:k,onClick:C},g),_?t.createElement(el,{sx:vP,size:14,thickness:3,color:"inherit"}):a,P)},vP={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},yP=t.createElement(uP.A,null);hP.propTypes={className:Bn().string,invalid:Bn().bool,label:Bn().string,variant:Bn().oneOf(["text","outlined","contained"]),icon:Bn().element,alwaysEnable:Bn().bool};var gP=(0,En.Ay)(Il,{name:"RaSaveButton",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative"})["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t})),bP=function(e,t){return"undefined"===typeof e?t:e},xP=function(){return xP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xP.apply(this,arguments)},wP=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},AP=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},SP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},OP=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},_P=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=Ew(),a=(0,d.useQueryClient)(),i=r.id,s=r.previousData,l=n.mutationMode,c=void 0===l?"pessimistic":l,u=SP(n,["mutationMode"]),p=(0,t.useRef)(c),f=(0,t.useRef)(r),m=(0,t.useRef)([]),h=function(e){var t=e.resource,r=e.id,n=Date.now(),o="undoable"===p.current?n+5e3:n,i=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:OP(OP([],e.slice(0,t),!0),e.slice(t+1),!0)}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?xP(xP({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?xP(xP({},e),{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-1}:e}),{updatedAt:o})},v=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.id,s=void 0===i?f.current.id:i,l=r.previousData,c=void 0===l?f.current.previousData:l,u=r.meta,d=void 0===u?f.current.meta:u;return o.delete(a,{id:s,previousData:c,meta:d}).then((function(e){return e.data}))}),xP(xP({},u),{onMutate:function(e){return wP(void 0,void 0,void 0,(function(){var t;return AP(this,(function(r){switch(r.label){case 0:return u.onMutate?[4,u.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,xP({snapshot:m.current},t)];case 2:return[2,{snapshot:m.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==p.current&&"undoable"!==p.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),u.onError)return u.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===p.current){var o=r.resource,a=void 0===o?e:o,s=r.id;h({resource:a,id:void 0===s?i:s}),u.onSuccess&&u.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==p.current&&"undoable"!==p.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),u.onSettled)return u.onSettled(e,t,r,n)}}));return[Et((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),wP(void 0,void 0,void 0,(function(){var e,l,c,d,y,g,b,x,w;return AP(this,(function(A){switch(A.label){case 0:return e=o.mutationMode,l=o.onSuccess,c=o.onSettled,d=o.onError,f.current=r,e&&(p.current=e),"pessimistic"===p.current?[2,v.mutate(xP({resource:t},n),{onSuccess:l,onSettled:c,onError:d})]:(y=n.id,g=void 0===y?i:y,b=n.previousData,x=void 0===b?s:b,w=[[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],m.current=w.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(m.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return A.sent(),h({resource:t,id:g}),l&&setTimeout((function(){return l(x,xP({resource:t},n),{snapshot:m.current})}),0),u.onSuccess&&setTimeout((function(){return u.onSuccess(x,xP({resource:t},n),{snapshot:m.current})}),0),"optimistic"===p.current?[2,v.mutate(xP({resource:t},n),{onSettled:c,onError:d})]:(Cv.once("end",(function(e){e.isUndo?m.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):v.mutate(xP({resource:t},n),{onSettled:c,onError:d})})),[2])}}))}))})),v]},EP=function(e){var r=Xw(e)[1].unselect;return(0,t.useCallback)((function(e){r(e)}),[r])},kP=function(){return kP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kP.apply(this,arguments)},jP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const CP=function(e){var r=e.record,n=e.redirect,o=void 0===n?"list":n,a=e.onClick,i=e.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=jP(s,["meta"]),u=Jg(e),d=Rt(),p=EP(u),f=Ax(),m=_P(),h=m[0];return{isLoading:m[1].isLoading,handleDelete:(0,t.useCallback)((function(e){e.stopPropagation(),h(u,{id:r.id,previousData:r,meta:l},kP({onSuccess:function(){d("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:!0}),p([r.id]),f(o,u)},onError:function(e){d("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:"undoable"},c)),"function"===typeof a&&a(e)}),[h,l,c,d,a,r,f,o,u,p])}};var PP=function(){return PP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PP.apply(this,arguments)},RP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TP=function(e){var r=e.label,n=void 0===r?"ra.action.delete":r,o=e.className,a=e.icon,i=void 0===a?IP:a,s=e.onClick,l=e.redirect,c=void 0===l?"list":l,u=e.mutationOptions,d=e.color,p=void 0===d?"error":d,f=RP(e,["label","className","icon","onClick","redirect","mutationOptions","color"]),m=sh(e),h=Jg(e),v=CP({record:m,resource:h,redirect:c,onClick:s,mutationOptions:u}),y=v.isLoading,g=v.handleDelete;return t.createElement(jh,PP({onClick:g,disabled:y,label:n,className:zn("ra-delete-button",o),key:"button",color:p},f),i)},IP=t.createElement(f_.A,null);TP.propTypes={className:Bn().string,label:Bn().string,record:Bn().any,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,icon:Bn().element};var MP=function(){return MP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MP.apply(this,arguments)},NP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const LP=function(e){var r=e.record,n=e.redirect,o=e.mutationMode,a=e.onClick,i=e.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=NP(s,["meta"]),u=Jg(e),d=(0,t.useState)(!1),p=d[0],f=d[1],m=Rt(),h=EP(u),v=Ax(),y=_P(),g=y[0];return{open:p,isLoading:y[1].isLoading,handleDialogOpen:function(e){f(!0),e.stopPropagation()},handleDialogClose:function(e){f(!1),e.stopPropagation()},handleDelete:(0,t.useCallback)((function(e){e.stopPropagation(),g(u,{id:r.id,previousData:r,meta:l},MP({onSuccess:function(){f(!1),m("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===o}),h([r.id]),v(n,u)},onError:function(e){f(!1),m("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:o},c)),"function"===typeof a&&a(e)}),[g,l,o,c,m,a,r,v,n,u,h])}};var FP=function(){return FP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FP.apply(this,arguments)},zP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DP=function(e){var r=e.className,n=e.confirmTitle,o=void 0===n?"ra.message.delete_title":n,a=e.confirmContent,i=void 0===a?"ra.message.delete_content":a,s=e.confirmColor,l=void 0===s?"primary":s,c=e.icon,u=void 0===c?BP:c,d=e.label,p=void 0===d?"ra.action.delete":d,f=e.mutationMode,m=void 0===f?"pessimistic":f,h=e.onClick,v=e.redirect,y=void 0===v?"list":v,g=e.translateOptions,b=void 0===g?{}:g,x=e.mutationOptions,w=e.color,A=void 0===w?"error":w,S=zP(e,["className","confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","onClick","redirect","translateOptions","mutationOptions","color"]),O=Ps(),_=sh(e),E=Jg(e),k=LP({record:_,redirect:y,mutationMode:m,onClick:h,mutationOptions:x,resource:E}),j=k.open,C=k.isLoading,P=k.handleDialogOpen,R=k.handleDialogClose,T=k.handleDelete;return t.createElement(t.Fragment,null,t.createElement(jh,FP({onClick:P,label:p,className:zn("ra-delete-button",r),key:"button",color:A},S),u),t.createElement(tE,{isOpen:j,loading:C,title:o,content:i,confirmColor:l,translateOptions:FP({name:O("resources.".concat(E,".forcedCaseName"),{smart_count:1,_:_p().humanize(O("resources.".concat(E,".name"),{smart_count:1,_:_p().singularize(E)}),!0)}),id:null===_||void 0===_?void 0:_.id},b),onConfirm:T,onClose:R}))},BP=t.createElement(f_.A,null);DP.propTypes={className:Bn().string,confirmTitle:Bn().node,confirmContent:Bn().node,confirmColor:Bn().string,label:Bn().string,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),record:Bn().any,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,icon:Bn().element,translateOptions:Bn().object};var VP=function(){return VP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VP.apply(this,arguments)},WP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},UP=function(e){var r=e.mutationMode,n=WP(e,["mutationMode"]),o=sh(e),a=nb();if(!o||null==o.id)return null;var i=r||((null===a||void 0===a?void 0:a.mutationMode)?a.mutationMode:"undoable");return"undoable"===i?t.createElement(TP,VP({record:o},n)):t.createElement(DP,VP({mutationMode:i,record:o},n))};UP.propTypes={label:Bn().string,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),record:Bn().any,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,icon:Bn().element};var qP=function(){return qP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qP.apply(this,arguments)},HP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$P=function(e){var r,n=e.children,o=e.className,a=e.resource,i=HP(e,["children","className","resource"]),s=yr((function(e){return e.breakpoints.down("sm")}));return t.createElement(GP,qP({className:zn((r={},r[KP.mobileToolbar]=s,r[KP.desktopToolbar]=!s,r),o),role:"toolbar"},i),0===t.Children.count(n)?t.createElement("div",{className:KP.defaultToolbar},t.createElement(hP,null),t.createElement(UP,{resource:a})):n)};$P.propTypes={children:Bn().node,className:Bn().string,resource:Bn().string};var QP="RaToolbar",KP={desktopToolbar:"".concat(QP,"-desktopToolbar"),mobileToolbar:"".concat(QP,"-mobileToolbar"),defaultToolbar:"".concat(QP,"-defaultToolbar")},GP=(0,En.Ay)(Hn,{name:QP,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={backgroundColor:"light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[900]})["&.".concat(KP.desktopToolbar)]={},t["&.".concat(KP.mobileToolbar)]={position:"fixed",bottom:0,left:0,right:0,padding:"16px",width:"100%",boxSizing:"border-box",flexShrink:0,zIndex:2},t["& .".concat(KP.defaultToolbar)]={flex:1,display:"flex",justifyContent:"space-between"},t}));var XP=function(e,t,r){var n=Object.keys(r),o=t.filter((function(e){return!n.includes(e)}));if(o.length>0)throw new Error("<".concat(e,"> component is not properly configured, some essential props are missing.\nBe sure to pass the props from the parent. Example:\n\nconst My").concat(e," = props => (\n <").concat(e," {...props}></").concat(e,">\n);\n\nThe missing props are: ").concat(o.join(", ")))},YP=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,redirect:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});YP.displayName="CreateContext";var JP=function(e){return{record:e.record,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},ZP=function(){return ZP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZP.apply(this,arguments)},eR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tR=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Vv:s,c=e.title,u=eR(e,["actions","aside","children","className","component","title"]),d=function(e){var r=(0,t.useContext)(YP);return(0,t.useMemo)((function(){return zA()({},null!=e?JP(e):{},r)}),[r,e])}(e),p=d.resource,f=d.defaultTitle;return t.createElement(aR,ZP({className:zn("create-page",i)},rR(u)),t.createElement(yh,{title:c,defaultTitle:f,preferenceKey:"".concat(p,".create.title")}),n,t.createElement("div",{className:zn(oR.main,(r={},r[oR.noActions]=!n,r))},t.createElement(l,{className:oR.card},a),o))};tR.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),aside:Bn().element,children:Bn().node,className:Bn().string,defaultTitle:Bn().any,hasList:Bn().bool,hasShow:Bn().bool,mutationOptions:Bn().object,record:Bn().object,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,save:Bn().func,title:Bn().node};var rR=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.isFetching,e.isLoading,e.location,e.match,e.mutationOptions,e.options,e.permissions,e.save,e.saving,e.transform,e.removeMiddleware;return eR(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","isFetching","isLoading","location","match","mutationOptions","options","permissions","save","saving","transform","removeMiddleware"])},nR="RaCreate",oR={main:"".concat(nR,"-main"),noActions:"".concat(nR,"-noActions"),card:"".concat(nR,"-card")},aR=(0,En.Ay)("div",{name:nR,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(oR.main)]={display:"flex"},t["& .".concat(oR.noActions)]=((r={})[n.breakpoints.up("sm")]={marginTop:"1em"},r),t["& .".concat(oR.card)]={flex:"1 1 auto"},t})),iR=function(){return iR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},iR.apply(this,arguments)},sR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},lR=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=Ew(),a=(0,d.useQueryClient)(),i=(0,t.useRef)(r),s=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,s=r.data,l=void 0===s?i.current.data:s,c=r.meta,u=void 0===c?i.current.meta:c;return o.create(a,{data:l,meta:u}).then((function(e){return e.data}))}),iR(iR({},n),{onSuccess:function(t,r,o){void 0===r&&(r={});var i=r.resource,s=void 0===i?e:i;a.setQueryData([s,"getOne",{id:String(t.id)}],t),a.invalidateQueries([s,"getList"]),a.invalidateQueries([s,"getInfiniteList"]),a.invalidateQueries([s,"getMany"]),a.invalidateQueries([s,"getManyReference"]),n.onSuccess&&n.onSuccess(t,r,o)}}));return[Et((function(t,r,o){void 0===t&&(t=e),void 0===r&&(r={}),void 0===o&&(o={});var a=o.returnPromise,i=void 0===a?n.returnPromise:a,l=sR(o,["returnPromise"]);if(i)return s.mutateAsync(iR({resource:t},r),o);s.mutate(iR({resource:t},r),l)})),s]},cR=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},uR=function(){var e=(0,t.useRef)([]),r=(0,t.useCallback)((function(t){e.current.push(t)}),[]),n=(0,t.useCallback)((function(t){e.current=e.current.filter((function(e){return e!==t}))}),[]),o=(0,t.useCallback)((function(t){return function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=e.current.length-1,i=function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return--a>=0?(r=e.current)[a].apply(r,cR(cR([],n,!1),[i],!1)):t.apply(void 0,n)};return e.current.length>0?(r=e.current)[a].apply(r,cR(cR([],n,!1),[i],!1)):t.apply(void 0,n)}}),[]);return(0,t.useMemo)((function(){return{registerMutationMiddleware:r,getMutateWithMiddlewares:o,unregisterMutationMiddleware:n}}),[r,o,n])},dR=function(){return dR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dR.apply(this,arguments)},pR=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},fR=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},mR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},hR=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=(0,Xx.parse)(r);if(n.source)return Array.isArray(n.source)?void console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')')):JSON.parse(n.source)}catch(AB){console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')'))}return null},vR=function(e,t){return t?"edit":e?"show":"list"},yR=function(e){var r=e.children,n=e.value;return t.createElement(rb.Provider,{value:n},r)},gR=function(e){return(0,t.useMemo)((function(){return _S()(e,["save","saving","mutationMode","registerMutationMiddleware","unregisterMutationMiddleware"])}),[e.save,e.saving,e.mutationMode,e.registerMutationMiddleware,e.unregisterMutationMiddleware])},bR=function(){return bR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bR.apply(this,arguments)},xR=function(e){var r=e.children,n=e.value;return t.createElement(YP.Provider,{value:n},t.createElement(yR,{value:bR(bR({},gR(n)),{mutationMode:"pessimistic"})},t.createElement(ih,{value:n&&n.record},r)))},wR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},AR=function(e){var r=e.children,n=wR(e,["children"]),o=function(e){var r;void 0===e&&(e={});var n=e.disableAuthentication,o=e.record,a=e.redirect,i=e.transform,s=e.mutationOptions,l=void 0===s?{}:s;Vr({enabled:!n});var c=Jg(e),u=ek(e),d=u.hasEdit,p=u.hasShow,f=null!==a&&void 0!==a?a:vR(p,d),m=J(),h=Ps(),v=Rt(),y=Ax(),g=null!==(r=null!==o&&void 0!==o?o:hR(m))&&void 0!==r?r:void 0,b=l.onSuccess,x=l.onError,w=l.meta,A=mR(l,["onSuccess","onError","meta"]),S=uR(),O=S.registerMutationMiddleware,_=S.getMutateWithMiddlewares,E=S.unregisterMutationMiddleware,k=lR(c,void 0,dR(dR({},A),{returnPromise:!0})),j=k[0],C=k[1].isLoading,P=(0,t.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,a=r.transform,s=r.meta;return Promise.resolve(a?a(e):i?i(e):e).then((function(e){return pR(void 0,void 0,void 0,(function(){var t,r,a;return fR(this,(function(i){switch(i.label){case 0:t=_(j),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t(c,{data:e,meta:null!==s&&void 0!==s?s:w},{onSuccess:function(e,t,r){return pR(void 0,void 0,void 0,(function(){return fR(this,(function(o){return n?[2,n(e,t,r)]:b?[2,b(e,t,r)]:(v("ra.notification.created",{type:"info",messageArgs:{smart_count:1}}),y(f,c,e.id,e),[2])}))}))},onError:o||x||function(e){v("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}})];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),null!=(null===(a=r.body)||void 0===a?void 0:a.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[j,f,_,w,v,x,b,y,c,i]);return{isFetching:!1,isLoading:!1,saving:C,defaultTitle:h("ra.page.create",{name:Ep()(c,1)}),save:P,resource:c,record:g,redirect:f,registerMutationMiddleware:O,unregisterMutationMiddleware:E}}(n),a=t.createElement(xR,{value:o},r);return n.resource?t.createElement(qx,{value:n.resource},a):a},SR=function(){return SR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SR.apply(this,arguments)},OR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_R=function(e){XP("Create",["children"],e);var r=e.resource,n=e.record,o=e.redirect,a=e.transform,i=e.mutationOptions,s=e.disableAuthentication,l=e.hasEdit,c=e.hasShow,u=OR(e,["resource","record","redirect","transform","mutationOptions","disableAuthentication","hasEdit","hasShow"]);return t.createElement(AR,{resource:r,record:n,redirect:o,transform:a,mutationOptions:i,disableAuthentication:s,hasEdit:l,hasShow:c},t.createElement(tR,SR({},u)))};_R.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),aside:Bn().element,children:Bn().node,className:Bn().string,disableAuthentication:Bn().bool,hasEdit:Bn().bool,hasShow:Bn().bool,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,title:Bn().node,record:Bn().object,mutationOptions:Bn().object,transform:Bn().func,sx:Bn().any};var ER=function(){return ER=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ER.apply(this,arguments)},kR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jR=function(e){var r=e.children,n=e.className,o=e.component,a=void 0===o?CR:o,i=e.sx,s=e.toolbar,l=void 0===s?PR:s,c=kR(e,["children","className","component","sx","toolbar"]);return t.createElement(gb,ER({},c),t.createElement(a,{className:n,sx:i},t.createElement(IO,ER({alignItems:"flex-start"},RR(e)),r)),!1!==l?l:null)};jR.propTypes={children:Bn().node,defaultValues:Bn().oneOfType([Bn().object,Bn().func]),record:Bn().object,toolbar:Bn().oneOfType([Bn().element,Bn().oneOf([!1])]),validate:Bn().func};var CR=(0,En.Ay)(Qv,{name:"RaSimpleForm",overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={paddingBottom:"5em"},t})),PR=t.createElement($P,null),RR=function(e){e.children,e.className,e.component,e.criteriaMode,e.defaultValues,e.delayError,e.onSubmit,e.record,e.resource,e.reValidateMode,e.sx,e.toolbar,e.validate,e.resetOptions,e.resolver,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.warnWhenUnsavedChanges;return kR(e,["children","className","component","criteriaMode","defaultValues","delayError","onSubmit","record","resource","reValidateMode","sx","toolbar","validate","resetOptions","resolver","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","warnWhenUnsavedChanges"])},TR=r(7260),IR=r(2819),MR=function(){return MR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MR.apply(this,arguments)},NR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LR=function(e){var r=e.initiallyVisible,n=void 0!==r&&r,o=NR(e,["initiallyVisible"]),a=(0,t.useState)(n),i=a[0],s=a[1],l=Ps();return t.createElement(cx,MR({type:i?"text":"password",size:"small",InputProps:{endAdornment:t.createElement(Ub,{position:"end"},t.createElement(js,{"aria-label":l(i?"ra.input.password.toggle_visible":"ra.input.password.toggle_hidden"),onClick:function(){s(!i)},size:"large"},i?t.createElement(TR.A,null):t.createElement(IR.A,null)))}},o))},FR=function(){return FR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FR.apply(this,arguments)},zR=function(e,t){return FR(FR({},e),t)},DR={page:1,perPage:25};const BR=function(e){void 0===e&&(e={});var r=(0,t.useReducer)(zR,FR(FR({},DR),e)),n=r[0],o=r[1],a=(0,t.useRef)(!0),i=(0,t.useCallback)((function(e){return o({perPage:e,page:1})}),[]),s=(0,t.useCallback)((function(e){return o({page:e})}),[]);return(0,t.useEffect)((function(){a.current?a.current=!1:i(e.perPage||25)}),[e.perPage,i]),{page:n.page,perPage:n.perPage,pagination:n,setPage:s,setPerPage:i,setPagination:o}};var VR=function(e,t){switch(t.type){case"SET_SORT":return t.payload;case"SET_SORT_FIELD":var r=t.payload;return{field:r,order:n=e.field===r&&e.order===zw?Dw:zw};case"SET_SORT_ORDER":var n=t.payload;if(!e.field)throw new Error("cannot change the order on an undefined sort field");return{field:e.field,order:n};default:return e}},WR={field:"",order:"ASC"};const UR=function(e){void 0===e&&(e=WR);var r=(0,t.useReducer)(VR,e),n=r[0],o=r[1],a=(0,t.useRef)(!0);return(0,t.useEffect)((function(){a.current?a.current=!1:o({type:"SET_SORT",payload:e})}),[e.field,e.order]),{setSort:(0,t.useCallback)((function(e){return o({type:"SET_SORT",payload:e})}),[o]),setSortField:(0,t.useCallback)((function(e){return o({type:"SET_SORT_FIELD",payload:e})}),[o]),setSortOrder:(0,t.useCallback)((function(e){return o({type:"SET_SORT_ORDER",payload:e})}),[o]),sort:n}};var qR=function(){return qR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qR.apply(this,arguments)},HR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$R=function(){throw new Error("refetch is not available for a ListContext built from useList based on local data")},QR=function(e){var r=e.data,n=e.error,o=e.filter,a=void 0===o?KR:o,i=e.isFetching,s=void 0!==i&&i,l=e.isLoading,c=void 0!==l&&l,u=e.page,d=void 0===u?1:u,p=e.perPage,f=void 0===p?1e3:p,m=e.sort,h=e.filterCallback,v=void 0===h?function(e){return Boolean(e)}:h,y=Jg(e),g=nn(s),b=g[0],x=g[1],w=nn(c),A=w[0],S=w[1],O=nn((function(){return{data:r,total:r?r.length:void 0}})),_=O[0],E=O[1],k=BR({page:d,perPage:f}),j=k.page,C=k.setPage,P=k.perPage,R=k.setPerPage,T=UR(m),I=T.sort,M=T.setSort,N=(0,t.useCallback)((function(e){M(e),C(1)}),[C,M]),L=Xw(y),F=L[0],z=L[1],D=(0,t.useRef)(a),B=nn({}),V=B[0],W=B[1],U=nn(a),q=U[0],H=U[1],$=(0,t.useCallback)((function(e){W((function(t){var r=t,n=e;r[n];return HR(r,["symbol"===typeof n?n:n+""])})),H((function(t){var r=t,n=e;r[n];return HR(r,["symbol"===typeof n?n:n+""])}))}),[W,H]),Q=(0,t.useCallback)((function(e,t){W((function(t){var r;return qR(qR({},t),((r={})[e]=!0,r))})),H((function(r){var n;return Tw(qR(qR({},r),((n={})[e]=t,n)))}))}),[W,H]),K=(0,t.useCallback)((function(e,t){H(Tw(e)),t&&W(t),C(1)}),[W,H,C]);return(0,t.useEffect)((function(){Ot()(a,D.current)||(D.current=a,H(a))})),(0,t.useEffect)((function(){if(!c&&r){var e=r;if(q){var t=ew(q);e=r.filter((function(e){return Object.entries(t).every((function(t){var r=t[0],n=t[1],o=dt()(e,r);return Array.isArray(o)?Array.isArray(n)?o.some((function(e){return n.includes(e)})):o.includes(n):Array.isArray(n)?n.includes(o):"q"===r?Object.keys(e).some((function(t){return"string"===typeof e[t]&&e[t].toLowerCase().includes(n.toLowerCase())})):n==o}))})).filter(v)}var n=e.length;I.field&&(e=e.sort((function(e,t){return dt()(e,I.field)>dt()(t,I.field)?"ASC"===I.order?1:-1:dt()(e,I.field)<dt()(t,I.field)?"ASC"===I.order?-1:1:0}))),e=e.slice((j-1)*P,j*P),E({data:e,total:n})}}),[JSON.stringify(r),q,c,j,P,E,I.field,I.order]),(0,t.useEffect)((function(){s!==b&&x(s)}),[s,b,x]),(0,t.useEffect)((function(){c!==A&&S(c)}),[c,A,S]),{sort:I,data:null===_||void 0===_?void 0:_.data,defaultTitle:"",error:n,displayedFilters:V,filterValues:q,hasNextPage:null!=(null===_||void 0===_?void 0:_.total)&&j*P<_.total,hasPreviousPage:j>1,hideFilter:$,isFetching:b,isLoading:A,onSelect:z.select,onToggleItem:z.toggle,onUnselectItems:z.clearSelection,page:j,perPage:P,resource:void 0,refetch:$R,selectedIds:F,setFilters:K,setPage:C,setPerPage:R,setSort:N,showFilter:Q,total:null===_||void 0===_?void 0:_.total}},KR={},GR=(0,t.createContext)(void 0),XR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},YR=function(e){var r=ek({resource:e}).recordRepresentation;return(0,t.useCallback)((function(e){return e?"function"===typeof r?r(e):"string"===typeof r?dt()(e,r):t.isValidElement(r)?r:"#".concat(e.id):""}),[r])},JR=function(e){var r=e.optionText,n=void 0===r?"name":r,o=e.optionValue,a=void 0===o?"id":o,i=e.disableValue,s=void 0===i?"disabled":i,l=e.translateChoice,c=void 0===l||l,u=Ps();return{getChoiceText:(0,t.useCallback)((function(e){if((0,t.isValidElement)(n))return t.createElement(ih,{value:e},n);var r="function"===typeof n?n(e):dt()(e,n);return(0,t.isValidElement)(r)?r:c?u(String(r),{_:r}):String(r)}),[n,u,c]),getChoiceValue:(0,t.useCallback)((function(e){return dt()(e,a)}),[a]),getDisableValue:(0,t.useCallback)((function(e){return dt()(e,s)}),[s])}},ZR=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},eT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},tT=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},rT=(0,t.createContext)(void 0),nT=function(e){var r=e.fullWidth,n=e.label,o=e.helperText,a=e.margin,i=e.size,s=e.sx,l=e.timeout,c=void 0===l?1e3:l,u=e.variant,d=on(c);return t.createElement(oT,{sx:s,label:n,helperText:o,fullWidth:r,variant:u,margin:a,size:i,disabled:!0,onChange:function(){},InputProps:{endAdornment:t.createElement(Ub,{position:"end"},d?t.createElement(el,{color:"inherit",size:20}):t.createElement("span",{style:{width:20}},"\xa0"))}})},oT=(0,En.Ay)(Kb,{name:"RaLoadingInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{"& .MuiInputLabel-root.Mui-disabled":{color:t.palette.text.secondary},"& .MuiFilledInput-root.Mui-disabled":{background:"light"===t.palette.mode?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.09)"},"& .MuiFilledInput-root.Mui-disabled:before":{borderBottomStyle:"solid"}}})),aT=function(){return aT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aT.apply(this,arguments)},iT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},sT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},lT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cT=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},uT=function(e){var r=e.choices,n=e.className,o=e.create,a=e.createLabel,i=e.createValue,s=e.defaultValue,l=e.disableValue,c=void 0===l?"disabled":l,u=e.emptyText,d=void 0===u?"":u,p=e.emptyValue,f=void 0===p?"":p,m=e.format,h=(e.filter,e.helperText),v=e.isFetching,y=e.isLoading,g=e.label,b=e.margin,x=void 0===b?"dense":b,w=e.onBlur,A=e.onChange,S=e.onCreate,O=e.optionText,_=e.optionValue,E=e.parse,k=e.resource,j=e.source,C=e.translateChoice,P=e.validate,R=lT(e,["choices","className","create","createLabel","createValue","defaultValue","disableValue","emptyText","emptyValue","format","filter","helperText","isFetching","isLoading","label","margin","onBlur","onChange","onCreate","optionText","optionValue","parse","resource","source","translateChoice","validate"]),T=Ps();(0,t.useEffect)((function(){if(null==f)throw new Error("emptyValue being set to null or undefined is not supported. Use parse to turn the empty string into null.")}),[f]);var I=function(e){void 0===e&&(e={});var r=(0,t.useContext)(GR),n=QR({data:e.choices,isLoading:e.isLoading,perPage:1/0}),o=n.data,a=XR(n,["data"]),i=(0,t.useMemo)((function(){var t,n,i,s,l,c,u,d,p,f,m,h,v,y,g,b,x,w,A;return e.choices||!r?{allChoices:o,availableChoices:null!==(t=e.availableChoices)&&void 0!==t?t:o,selectedChoices:null!==(n=e.selectedChoices)&&void 0!==n?n:o,displayedFilters:null!==(i=e.selectedChoices)&&void 0!==i?i:a.displayedFilters,error:e.error,filter:null!==(s=e.filter)&&void 0!==s?s:a.filter,filterValues:null!==(l=e.filterValues)&&void 0!==l?l:a.filterValues,hasNextPage:null!==(c=e.hasNextPage)&&void 0!==c?c:a.hasNextPage,hasPreviousPage:null!==(u=e.hasPreviousPage)&&void 0!==u?u:a.hasPreviousPage,hideFilter:null!==(d=e.hideFilter)&&void 0!==d?d:a.hideFilter,isLoading:a.isLoading,isFetching:a.isFetching,page:null!==(p=e.page)&&void 0!==p?p:a.page,perPage:null!==(f=e.perPage)&&void 0!==f?f:a.perPage,refetch:null!==(m=e.refetch)&&void 0!==m?m:a.refetch,resource:null!==(h=e.resource)&&void 0!==h?h:a.resource,setFilters:null!==(v=e.setFilters)&&void 0!==v?v:a.setFilters,setPage:null!==(y=e.setPage)&&void 0!==y?y:a.setPage,setPerPage:null!==(g=e.setPerPage)&&void 0!==g?g:a.setPerPage,setSort:null!==(b=e.setSort)&&void 0!==b?b:a.setSort,showFilter:null!==(x=e.showFilter)&&void 0!==x?x:a.showFilter,sort:null!==(w=e.sort)&&void 0!==w?w:a.sort,source:e.source,total:null!==(A=e.total)&&void 0!==A?A:a.total,isFromReference:!1}:r}),[r,o,a,e]);return i}({choices:r,isLoading:y,isFetching:v,resource:k,source:j}),M=I.allChoices,N=I.isLoading,L=I.error,F=I.source,z=I.resource,D=I.isFromReference;if(void 0===F)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the source prop");if(!N&&!L&&void 0===M)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the choices prop");var B=YR(z),V=JR({optionText:null!==O&&void 0!==O?O:D?B:void 0,optionValue:_,disableValue:c,translateChoice:null!==C&&void 0!==C?C:!D}),W=V.getChoiceText,U=V.getChoiceValue,q=V.getDisableValue,H=Rb(aT({defaultValue:s,parse:E,format:m,onBlur:w,onChange:A,resource:z,source:F,validate:P},R)),$=H.field,Q=H.fieldState,K=H.id,G=H.isRequired,X=H.formState.isSubmitted,Y=Q.error,J=Q.invalid,Z=Q.isTouched,ee=(0,t.useCallback)((function(){return(0,Kl.isElement)(d)?d:""===d?"\u2003":T(d,{_:d})}),[d,T]),te=(0,t.useCallback)((function(e){return W(e)}),[W]),re=function(e){var r=e.create,n=e.createLabel,o=void 0===n?"ra.action.create":n,a=e.createItemLabel,i=void 0===a?"ra.action.create_item":a,s=e.createValue,l=void 0===s?"@@ra-create":s,c=e.optionText,u=void 0===c?"name":c,d=e.filter,p=e.handleChange,f=e.onCreate,m=Ps(),h=(0,t.useState)(!1),v=h[0],y=h[1],g=(0,t.useRef)(d);(0,t.useEffect)((function(){g.current!==d&&""!==d&&(g.current=d)}),[d]);var b=(0,t.useMemo)((function(){return{filter:g.current,onCancel:function(){return y(!1)},onCreate:function(e){y(!1),p(e)}}}),[p]);return{createId:l,getCreateItem:function(){return"string"!==typeof u?{id:l,name:d&&i?m(i,{item:d,_:i}):m(o,{_:o})}:st()({id:l},u,d&&i?m(i,{item:d,_:i}):m(o,{_:o}))},handleChange:function(e){return ZR(void 0,void 0,void 0,(function(){var n,o,a,i;return eT(this,(function(s){switch(s.label){case 0:return n=(null===(i=null===e||void 0===e?void 0:e.target)||void 0===i?void 0:i.value)||e,(null===(o=Array.isArray(n)?tT([],n,!0).pop():n)||void 0===o?void 0:o.id)!==l&&o!==l?[3,3]:(0,t.isValidElement)(r)?[3,2]:[4,f(d)];case 1:return(a=s.sent())?(p(a),[2]):[3,3];case 2:return y(!0),[2];case 3:return p(e),[2]}}))}))},createElement:v&&(0,t.isValidElement)(r)?t.createElement(rT.Provider,{value:b},r):null}}({create:o,createLabel:a,createValue:i,handleChange:(0,t.useCallback)((function(e){return iT(void 0,void 0,void 0,(function(){return sT(this,(function(t){return(null===e||void 0===e?void 0:e.target)?$.onChange(e):$.onChange(U(e)),[2]}))}))}),[$,U]),onCreate:S,optionText:O}),ne=re.getCreateItem,oe=re.handleChange,ae=re.createElement,ie=o||S?ne():null,se=M;(o||S)&&(se=cT(cT([],se,!0),[ie],!1));var le=(0,t.useCallback)((function(e){return e?t.createElement(Bu,{key:U(e),value:U(e),disabled:q(e)},te(ie&&(null===e||void 0===e?void 0:e.id)===ie.id?ie:e)):null}),[U,q,te,ie]);if(N)return t.createElement(nT,{label:""!==g&&!1!==g&&t.createElement(Lb,{label:g,source:F,resource:k,isRequired:G}),sx:e.sx,helperText:t.createElement(nx,{touched:Z||X,error:null===Y||void 0===Y?void 0:Y.message,helperText:h}),variant:e.variant,size:e.size,margin:e.margin,fullWidth:e.fullWidth});var ce=!!L||!1!==h||(Z||X)&&J;return t.createElement(t.Fragment,null,t.createElement(pT,aT({id:K},$,{className:zn("ra-input","ra-input-".concat(F),n),onChange:oe,select:!0,label:""!==g&&!1!==g&&t.createElement(Lb,{label:g,source:F,resource:k,isRequired:G}),clearAlwaysVisible:!0,error:!!L||(Z||X)&&J,helperText:ce?t.createElement(nx,{touched:Z||X||L,error:(null===Y||void 0===Y?void 0:Y.message)||(null===L||void 0===L?void 0:L.message),helperText:h}):null,margin:x},dT(R)),!G&&t.createElement(Bu,{value:f,key:"null","aria-label":T("ra.action.clear_input_value"),title:T("ra.action.clear_input_value")},ee()),se.map(le)),ae)};uT.propTypes={emptyText:Bn().oneOfType([Bn().string,Bn().element]),emptyValue:Bn().any,choices:Bn().arrayOf(Bn().object),className:Bn().string,label:Bn().oneOfType([Bn().string,Bn().bool,Bn().element]),optionText:Bn().oneOfType([Bn().string,Bn().func,Bn().element]),optionValue:Bn().string,disableValue:Bn().string,resettable:Bn().bool,resource:Bn().string,source:Bn().string,translateChoice:Bn().bool};var dT=function(e){e.afterSubmit,e.allowNull,e.beforeSubmit,e.choices,e.className,e.crudGetMatching,e.crudGetOne,e.data,e.field,e.fieldState,e.formState,e.filter,e.filterToQuery,e.formatOnBlur,e.isEqual,e.limitChoicesToValue,e.multiple,e.name,e.pagination,e.perPage,e.ref,e.reference,e.refetch,e.render,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.sort,e.subscription,e.type,e.validateFields,e.validation,e.value;var t=lT(e,["afterSubmit","allowNull","beforeSubmit","choices","className","crudGetMatching","crudGetOne","data","field","fieldState","formState","filter","filterToQuery","formatOnBlur","isEqual","limitChoicesToValue","multiple","name","pagination","perPage","ref","reference","refetch","render","setFilter","setPagination","setSort","shouldUnregister","sort","subscription","type","validateFields","validation","value"]);return ix(t)},pT=(0,En.Ay)(Kb,{name:"RaSelectInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return aT(aT({},Jb),{minWidth:t.spacing(20),"& .MuiFilledInput-root":{paddingRight:0}})})),fT=function(){return fT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fT.apply(this,arguments)};function mT(e){return(0,Pn.Ay)("MuiLinearProgress",e)}(0,Cn.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var hT,vT,yT,gT,bT,xT;const wT=["className","color","value","valueBuffer","variant"];let AT,ST,OT,_T,ET,kT;const jT=(0,Ji.i7)(AT||(AT=hT||(hT=Hi(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),CT=(0,Ji.i7)(ST||(ST=vT||(vT=Hi(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),PT=(0,Ji.i7)(OT||(OT=yT||(yT=Hi(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),RT=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,Qn.a)(e.palette[t].main,.62):(0,Qn.e$)(e.palette[t].main,.5),TT=(0,En.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["color".concat((0,$n.A)(r.color))],t[r.variant]]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:RT(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),IT=(0,En.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t["dashedColor".concat((0,$n.A)(r.color))]]}})((e=>{let{ownerState:t,theme:r}=e;const n=RT(r,t.color);return(0,Se.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,Ji.AH)(_T||(_T=gT||(gT=Hi(["\n animation: "," 3s infinite linear;\n "]))),PT)),MT=(0,En.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t["barColor".concat((0,$n.A)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Ji.AH)(ET||(ET=bT||(bT=Hi(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),jT)})),NT=(0,En.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t["barColor".concat((0,$n.A)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:RT(r,t.color),transition:"transform .".concat(4,"s linear")})}),(e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,Ji.AH)(kT||(kT=xT||(xT=Hi(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),CT)})),LT=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:a,valueBuffer:i,variant:s="indeterminate"}=r,l=(0,Kt.A)(r,wT),c=(0,Se.A)({},r,{color:o,variant:s}),u=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root","color".concat((0,$n.A)(n)),r],dashed:["dashed","dashedColor".concat((0,$n.A)(n))],bar1:["bar","barColor".concat((0,$n.A)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,$n.A)(n)),"buffer"===r&&"color".concat((0,$n.A)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,On.A)(o,mT,t)})(c),d=or(),p={},f={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;d&&(e=-e),f.bar1.transform="translateX(".concat(e,"%)")}else 0;if("buffer"===s)if(void 0!==i){let e=(i||0)-100;d&&(e=-e),f.bar2.transform="translateX(".concat(e,"%)")}else 0;return(0,Jt.jsxs)(TT,(0,Se.A)({className:(0,Sn.A)(u.root,n),ownerState:c,role:"progressbar"},p,{ref:t},l,{children:["buffer"===s?(0,Jt.jsx)(IT,{className:u.dashed,ownerState:c}):null,(0,Jt.jsx)(MT,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===s?null:(0,Jt.jsx)(NT,{className:u.bar2,ownerState:c,style:f.bar2})]}))})),FT=LT;var zT=function(){return zT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zT.apply(this,arguments)},DT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},BT=function(e){var r=e.timeout,n=void 0===r?1e3:r,o=DT(e,["timeout"]),a=o.className,i=DT(o,["className"]);return on(n)?t.createElement(WT,zT({className:a},i)):t.createElement(wd,{my:1,height:4})};BT.propTypes={className:Bn().string,timeout:Bn().number},BT.displayName="LinearProgress";var VT,WT=(0,En.Ay)(FT,{name:"RaLinearProgress",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{margin:"".concat(t.spacing(1)," 0"),width:t.spacing(20)}})),UT=function(){return UT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UT.apply(this,arguments)},qT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},HT=function(e){var r,n,o,a=e.children,i=e.className,s=void 0===i?"":i,l=e.color,c=void 0===l?"text.secondary":l,u=e.component,d=void 0===u?"span":u,p=e.fullWidth,f=e.isRequired,m=e.label,h=e.resource,v=e.source,y=qT(e,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return t.createElement(KT,UT({component:d,className:zn(s,(r={},r[QT.fullWidth]=p,r))},y),!1!==m&&!1!==a.props.label&&"string"!==typeof a.type&&"Labeled"!==(null===(n=a.type)||void 0===n?void 0:n.displayName)&&"Labeled"!==(null===(o=a.type)||void 0===o?void 0:o.displayName)?t.createElement(Eu,{color:c,className:QT.label},t.createElement(Lb,{label:m||a.props.label,source:v||a.props.source,resource:h,isRequired:f})):null,a)};HT.displayName="Labeled";var $T="RaLabeled",QT={label:"".concat($T,"-label"),fullWidth:"".concat($T,"-fullWidth")},KT=(0,En.Ay)(IO,{name:$T,overridesResolver:function(e,t){return t.root}})(((VT={display:"inline-flex",marginBottom:"0.2em"})["&.".concat(QT.fullWidth)]={width:"100%"},VT["& .".concat(QT.label)]={fontSize:"0.75em",marginBottom:"0.2em"},VT)),GT=(0,t.createContext)(void 0),XT=function(){return XT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XT.apply(this,arguments)},YT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},JT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ZT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},eI=function(e){var r,n,o=e.className,a=(e.defaultValue,e.label),i=(e.isFetching,e.isLoading),s=e.children,l=e.helperText,c=e.record,u=e.resource,d=e.source,p=e.validate,f=e.variant,m=e.disabled,h=e.readOnly,v=e.margin,y=void 0===v?"dense":v,g=ZT(e,["className","defaultValue","label","isFetching","isLoading","children","helperText","record","resource","source","validate","variant","disabled","readOnly","margin"]),b=wb(),x=Ab(),w=Array.isArray(p)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,r,n){for(var o=0,a=(Array.isArray(e[0])?e[0]:e).filter(ty);o<a.length;o++){var i=(0,a[o])(t,r,n);if(i)return i}}}(p):p,A=function(){var e=Ps();return function(t){if(null!=t.message){var r=t,n=r.message,o=r.args;return e(n,fT({_:n},o))}return e(t,{_:t})}}(),S=My(),O=S.getFieldState,_=S.formState,E=S.getValues,k=S.register,j=S.unregister,C=function(e){const r=My(),{control:n=r.control,name:o,keyName:a="id",shouldUnregister:i}=e,[s,l]=t.useState(n._getFieldArray(o)),c=t.useRef(n._getFieldArray(o).map(Yy)),u=t.useRef(s),d=t.useRef(o),p=t.useRef(!1);d.current=o,u.current=s,n._names.array.add(o),e.rules&&n.register(o,e.rules),Vy({next:e=>{let{values:t,name:r}=e;if(r===d.current||!r){const e=Ay(t,d.current);Array.isArray(e)&&(l(e),c.current=e.map(Yy))}},subject:n._subjects.array});const f=t.useCallback((e=>{p.current=!0,n._updateFieldArray(o,e)}),[n,o]);return t.useEffect((()=>{if(n._state.action=!1,eg(o,n._names)&&n._subjects.state.next({...n._formState}),p.current&&(!Zy(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([o]).then((e=>{const t=Ay(e.errors,o),r=Ay(n._formState.errors,o);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?Ky(n._formState.errors,o,t):Og(n._formState.errors,o),n._subjects.state.next({errors:n._formState.errors}))}));else{const e=Ay(n._fields,o);!e||!e._f||Zy(n._options.reValidateMode).isOnSubmit&&Zy(n._options.mode).isOnSubmit||vg(e,n._formValues,n._options.criteriaMode===_y.all,n._options.shouldUseNativeValidation,!0).then((e=>!Fy(e)&&n._subjects.state.next({errors:rg(n._formState.errors,e,o)})))}n._subjects.values.next({name:o,values:{...n._formValues}}),n._names.focus&&tg(n._fields,((e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1})),n._names.focus="",n._updateValid(),p.current=!1}),[s,o,n]),t.useEffect((()=>(!Ay(n._formValues,o)&&n._updateFieldArray(o),()=>{(n._options.shouldUnregister||i)&&n.unregister(o)})),[o,n,a,i]),{swap:t.useCallback(((e,t)=>{const r=n._getFieldArray(o);Sg(r,e,t),Sg(c.current,e,t),f(r),l(r),n._updateFieldArray(o,r,Sg,{argA:e,argB:t},!1)}),[f,o,n]),move:t.useCallback(((e,t)=>{const r=n._getFieldArray(o);xg(r,e,t),xg(c.current,e,t),f(r),l(r),n._updateFieldArray(o,r,xg,{argA:e,argB:t},!1)}),[f,o,n]),prepend:t.useCallback(((e,t)=>{const r=Dy(by(e)),a=wg(n._getFieldArray(o),r);n._names.focus=Jy(o,0,t),c.current=wg(c.current,r.map(Yy)),f(a),l(a),n._updateFieldArray(o,a,wg,{argA:gg(e)})}),[f,o,n]),append:t.useCallback(((e,t)=>{const r=Dy(by(e)),a=yg(n._getFieldArray(o),r);n._names.focus=Jy(o,a.length-1,t),c.current=yg(c.current,r.map(Yy)),f(a),l(a),n._updateFieldArray(o,a,yg,{argA:gg(e)})}),[f,o,n]),remove:t.useCallback((e=>{const t=Ag(n._getFieldArray(o),e);c.current=Ag(c.current,e),f(t),l(t),n._updateFieldArray(o,t,Ag,{argA:e})}),[f,o,n]),insert:t.useCallback(((e,t,r)=>{const a=Dy(by(t)),i=bg(n._getFieldArray(o),e,a);n._names.focus=Jy(o,e,r),c.current=bg(c.current,e,a.map(Yy)),f(i),l(i),n._updateFieldArray(o,i,bg,{argA:e,argB:gg(t)})}),[f,o,n]),update:t.useCallback(((e,t)=>{const r=by(t),a=_g(n._getFieldArray(o),e,r);c.current=[...a].map(((t,r)=>t&&r!==e?c.current[r]:Yy())),f(a),l([...a]),n._updateFieldArray(o,a,_g,{argA:e,argB:r},!0,!1)}),[f,o,n]),replace:t.useCallback((e=>{const t=Dy(by(e));c.current=t.map(Yy),f([...t]),l([...t]),n._updateFieldArray(o,[...t],(e=>e),{},!0,!1)}),[f,o,n]),fields:t.useMemo((()=>s.map(((e,t)=>({...e,[a]:c.current[t]||Yy()})))),[s,a])}}({name:d,rules:{validate:function(t){return YT(void 0,void 0,void 0,(function(){var r;return JT(this,(function(n){switch(n.label){case 0:return w?[4,w(t,E(),e)]:[2,!0];case 1:return(r=n.sent())?[2,A(r)]:[2,!0]}}))}))}}}),P=_.isSubmitted;(0,t.useEffect)((function(){return k(d),x.registerField(d,b),function(){j(d,{keepValue:!0,keepError:!0,keepDirty:!0,keepTouched:!0}),x.unregisterField(d,b)}}),[k,j,d,x,b]),Sb({inputProps:e,isArrayInput:!0,fieldArrayInputControl:C});var R=O(d,_),T=R.isDirty,I=R.error;if(i)return t.createElement(HT,{label:a,className:o},t.createElement(BT,null));var M=!1!==l||(T||P)&&!!I;return t.createElement(nI,XT({fullWidth:!0,margin:y,className:zn("ra-input","ra-input-".concat(d),rI.root,o),error:(T||P)&&!!I},ix(g)),t.createElement(Yf,{htmlFor:d,className:rI.label,shrink:!0,error:(T||P)&&!!I},t.createElement(Lb,{label:a,source:d,resource:u,isRequired:cy(p)})),t.createElement(GT.Provider,{value:C},(0,t.cloneElement)(t.Children.only(s),XT(XT({},C),{record:c,resource:u,source:d,variant:f,margin:y,disabled:s.props.disabled||m,readOnly:s.props.readOnly||h}))),M?t.createElement(um,{error:(T||P)&&!!I},t.createElement(nx,{touched:T||P,error:null!==(n=null===(r=null===I||void 0===I?void 0:I.root)||void 0===r?void 0:r.message)&&void 0!==n?n:null===I||void 0===I?void 0:I.message,helperText:l})):null)},tI="RaArrayInput",rI={root:"".concat(tI,"-root"),label:"".concat(tI,"-label")},nI=(0,En.Ay)(nm,{name:tI,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={marginTop:0})["& .".concat(rI.label)]={position:"relative",top:r.spacing(.5),left:r.spacing(-1.5)},t["& .".concat(rI.root)]={paddingLeft:r.spacing(2)},t})),oI=function(){return oI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oI.apply(this,arguments)},aI=function(){return aI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aI.apply(this,arguments)},iI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},sI=function(e){var t,r=e.children,n=(e.form,e.formData),o=e.source,a=e.index,i=iI(e,["children","form","formData","source","index"]);if("undefined"!==typeof a&&o){var s=dt()(n,o);t=r(aI({formData:n,scopedFormData:s,getSource:function(e){return"".concat(o,".").concat(e)}},i))}else t=r(aI({formData:n,getSource:function(e){return e}},i));return void 0===t?null:t};const lI=function(e){My().formState.isDirty;var r=function(){var e=My().getValues;return oI(oI({},Hy()),e())}();return t.createElement(sI,aI({formData:r},e))};var cI="RaSimpleFormIterator",uI={action:"".concat(cI,"-action"),add:"".concat(cI,"-add"),clear:"".concat(cI,"-clear"),form:"".concat(cI,"-form"),index:"".concat(cI,"-index"),inline:"".concat(cI,"-inline"),line:"".concat(cI,"-line"),list:"".concat(cI,"-list"),buttons:"".concat(cI,"-buttons")},dI=(0,t.createContext)(void 0),pI=function(){return(0,t.useContext)(dI)},fI=(0,t.createContext)(void 0),mI=function(){return mI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mI.apply(this,arguments)},hI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vI=t.forwardRef((function(e,r){var n=e.children,o=e.disabled,a=e.disableReordering,i=e.disableRemove,s=e.getItemLabel,l=e.index,c=e.inline,u=void 0!==c&&c,d=e.member,p=e.record,f=e.removeButton,m=e.reOrderButtons,h=e.resource,v=e.source,y=pI(),g=y.total,b=y.reOrder,x=y.remove,w=(0,t.useMemo)((function(){return{index:l,total:g,reOrder:function(e){return b(l,e)},remove:function(){return x(l)}}}),[l,g,b,x]),A="function"===typeof s?s(l):s;return t.createElement(fI.Provider,{value:w},t.createElement("li",{className:uI.line,ref:r},A&&t.createElement(Eu,{variant:"body2",className:uI.index},A),t.createElement("section",{className:zn(uI.form,u&&uI.inline)},t.Children.map(n,(function(e,r){if(!(0,t.isValidElement)(e))return null;var n=e.props,a=n.source,i=hI(n,["source"]);return(0,t.cloneElement)(e,mI({source:a?"".concat(d,".").concat(a):d,index:a?void 0:r,resource:h,disabled:o},i))}))),!o&&t.createElement("span",{className:uI.action},!a&&(0,t.cloneElement)(m,{index:l,max:g,reOrder:b,className:zn("button-reorder","button-reorder-".concat(v,"-").concat(l))}),!function(e){return"boolean"===typeof i?i:i&&i(e)}(p)&&(0,t.cloneElement)(f,{onClick:function(e,t){return function(r){x(t),e&&e(r)}}(f.props.onClick,l),className:zn("button-remove","button-remove-".concat(v,"-").concat(l))}))))})),yI=r(4783),gI=function(){return gI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gI.apply(this,arguments)},bI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},xI=function(e){var r=e.label,n=e.onClick,o=bI(e,["label","onClick"]),a=Ps(),i=t.useState(!1),s=i[0],l=i[1],c=function(){l(!1)},u=a(r,{_:r});return t.createElement(qi,{title:u,open:s,onOpen:function(){l(!0)},onClose:c},t.createElement(js,gI({"aria-label":u,onClick:function(e){c(),n(e)}},o)))},wI=function(){return wI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wI.apply(this,arguments)},AI=function(e){var r=pI().add;return t.createElement(xI,wI({label:"ra.action.add",size:"small",onClick:function(){return r()},color:"primary"},e),t.createElement(yI.A,{fontSize:"small"}))},SI=function(){return(0,t.useContext)(fI)},OI=function(){return OI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OI.apply(this,arguments)},_I=function(e){var r=SI().remove;return t.createElement(xI,OI({label:"ra.action.remove",size:"small",onClick:function(){return r()},color:"warning"},e),t.createElement(jE.A,{fontSize:"small"}))},EI=r(2010),kI=r(9343),jI=function(e){var r=e.className,n=SI(),o=n.index,a=n.total,i=n.reOrder;return t.createElement("span",{className:r},t.createElement(xI,{label:"ra.action.move_up",size:"small",onClick:function(){return i(o-1)},disabled:o<=0,color:"primary"},t.createElement(EI.A,{fontSize:"small"})),t.createElement(xI,{label:"ra.action.move_down",size:"small",onClick:function(){return i(o+1)},disabled:null==a||o>=a-1,color:"primary"},t.createElement(kI.A,{fontSize:"small"})))},CI=r(5393),PI=function(){return PI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PI.apply(this,arguments)},RI=function(e){return t.createElement(xI,PI({label:"ra.action.clear_array_input",size:"small",color:"warning"},e),t.createElement(CI.A,{fontSize:"small"}))};var TI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},II=function(e){var r=e.addButton,n=void 0===r?t.createElement(AI,null):r,o=e.removeButton,a=void 0===o?t.createElement(_I,null):o,i=e.reOrderButtons,s=void 0===i?t.createElement(jI,null):i,l=e.children,c=e.className,u=e.resource,d=e.source,p=e.readOnly,f=e.disabled,m=e.disableAdd,h=void 0!==m&&m,v=e.disableClear,y=e.disableRemove,g=void 0!==y&&y,b=e.disableReordering,x=e.inline,w=e.getItemLabel,A=void 0!==w&&w,S=e.fullWidth,O=e.sx,_=(0,t.useState)(!1),E=_[0],k=_[1],j=function(e){var r=(0,t.useContext)(GT),n=(0,t.useMemo)((function(){return{append:null===e||void 0===e?void 0:e.append,fields:null===e||void 0===e?void 0:e.fields,insert:null===e||void 0===e?void 0:e.insert,move:null===e||void 0===e?void 0:e.move,prepend:null===e||void 0===e?void 0:e.prepend,remove:null===e||void 0===e?void 0:e.remove,replace:null===e||void 0===e?void 0:e.replace,swap:null===e||void 0===e?void 0:e.swap,update:null===e||void 0===e?void 0:e.update}}),[e]);return(null===e||void 0===e?void 0:e.fields)?n:r}(e),C=j.append,P=j.fields,R=j.move,T=j.remove,I=j.replace,M=My().resetField,N=Ps(),L=sh(e),F=(0,t.useRef)({}),z=(0,t.useCallback)((function(e){T(e)}),[T]);if(P.length>0){var D=P[0],B=(D.id,TI(D,["id"]));for(var V in F.current=B,F.current)F.current[V]=null}var W,U=(0,t.useCallback)((function(e){void 0===e&&(e=void 0);var r=e;null==e&&(r=F.current,1===t.Children.count(l)&&t.isValidElement(t.Children.only(l))&&!t.Children.only(l).props.source&&t.Children.map(l,(function(e){return t.isValidElement(e)&&e.type!==lI})).some(Boolean)?r="":(r=r||{},t.Children.forEach(l,(function(e){var n;t.isValidElement(e)&&e.type!==lI&&e.props.source&&(r[e.props.source]=null!==(n=e.props.defaultValue)&&void 0!==n?n:null)})))),C(r),M("".concat(d,".").concat(P.length),{defaultValue:r})}),[C,l,M,d,P.length]),q=(0,t.useCallback)((function(e,t){R(e,t)}),[R]),H=(0,t.useCallback)((function(){I([]),k(!1)}),[I]),$=dt()(L,d),Q=(0,t.useMemo)((function(){return{total:P.length,add:U,remove:z,reOrder:q,source:d}}),[U,P.length,q,z,d]);return P?t.createElement(dI.Provider,{value:Q},t.createElement(MI,{className:zn(c,S&&"fullwidth",(f||p)&&"disabled"),sx:O},t.createElement("ul",{className:uI.list},P.map((function(e,r){return t.createElement(vI,{key:e.id,disabled:f||p,disableRemove:g,disableReordering:b,fields:P,getItemLabel:A,index:r,member:"".concat(d,".").concat(r),onRemoveField:z,onReorder:q,record:$&&$[r]||{},removeButton:a,reOrderButtons:s,resource:u,source:d,inline:x},l)}))),!(f||p)&&!(h&&(v||g))&&t.createElement("div",{className:uI.buttons},!h&&t.createElement("div",{className:uI.add},(0,t.cloneElement)(n,{className:zn("button-add","button-add-".concat(d)),onClick:(W=n.props.onClick,function(e){U(),W&&W(e)})})),P.length>0&&!v&&!g&&t.createElement("div",{className:uI.clear},t.createElement(tE,{isOpen:E,title:N("ra.action.clear_array_input"),content:N("ra.message.clear_array_input"),onConfirm:H,onClose:function(){return k(!1)}}),t.createElement(RI,{onClick:function(){return k(!0)}}))))):null};II.propTypes={addButton:Bn().element,removeButton:Bn().element,children:Bn().node,className:Bn().string,field:Bn().object,fields:Bn().array,fieldState:Bn().object,formState:Bn().object,fullWidth:Bn().bool,inline:Bn().bool,record:Bn().object,source:Bn().string,resource:Bn().string,translate:Bn().func,readOnly:Bn().bool,disabled:Bn().bool,disableAdd:Bn().bool,disableRemove:Bn().oneOfType([Bn().func,Bn().bool]),TransitionProps:Bn().shape({})};var MI=(0,En.Ay)("div",{name:cI,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}})["& .".concat(uI.line)]=((r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)})[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(uI.index)]=((n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)})[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(uI.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(uI.form)]={flex:2},t["& .".concat(uI.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(uI.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(uI.buttons)]={display:"flex"},t["& .".concat(uI.add)]={borderBottom:"none"},t["& .".concat(uI.clear)]={borderBottom:"none"},t["& .".concat(uI.line,":hover > .").concat(uI.action)]={visibility:"visible"},t})),NI=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,mutationMode:null,redirect:null,refetch:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});NI.displayName="EditContext";var LI=function(e){var r=(0,t.useContext)(NI);return(0,t.useMemo)((function(){return zA()({},null!=e?FI(e):{},r)}),[r,e])},FI=function(e){var t=e.data,r=e.record;return{data:r||t,record:r||t,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,mutationMode:e.mutationMode,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},zI=r(7796),DI=function(){return DI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DI.apply(this,arguments)},BI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VI=function(e){var r=e.icon,n=void 0===r?UI:r,o=e.label,a=void 0===o?"ra.action.show":o,i=(e.record,e.resource,e.scrollToTop),s=void 0===i||i,l=BI(e,["icon","label","record","resource","scrollToTop"]),c=Jg(e),u=sh(e),d=jr();return u?t.createElement(jh,DI({component:cp,to:d({type:"show",resource:c,id:u.id}),state:WI[String(s)],label:a,onClick:qI},l),n):null},WI={true:{_scrollToTop:!0},false:{}},UI=t.createElement(zI.A,null),qI=function(e){return e.stopPropagation()};VI.propTypes={icon:Bn().element,label:Bn().string,record:Bn().any,scrollToTop:Bn().bool};const HI=(0,t.memo)(VI,(function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled}));var $I=function(){return $I=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$I.apply(this,arguments)},QI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},KI=function(e){var r=e.className,n=QI(e,["className"]),o=LI(n).record,a=ek(n).hasShow;return t.createElement(Aw,$I({className:r},GI(n)),a&&t.createElement(HI,{record:o}))},GI=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList;return QI(e,["hasCreate","hasEdit","hasShow","hasList"])};KI.propTypes={className:Bn().string,data:Bn().object,hasCreate:Bn().bool,hasEdit:Bn().bool,hasShow:Bn().bool,hasList:Bn().bool,resource:Bn().string};var XI,YI=function(){return YI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},YI.apply(this,arguments)},JI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ZI=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Vv:s,c=e.title,u=(e.mutationMode,JI(e,["actions","aside","children","className","component","title","mutationMode"])),d=ek().hasShow,p=LI(e),f=p.resource,m=p.defaultTitle,h=p.record,v="undefined"===typeof n&&d?t.createElement(KI,null):n;return a?t.createElement(nM,YI({className:zn("edit-page",i)},eM(u)),t.createElement(yh,{title:c,defaultTitle:m,preferenceKey:"".concat(f,".edit.title")}),v,t.createElement("div",{className:zn(rM.main,(r={},r[rM.noActions]=!v,r))},t.createElement(l,{className:rM.card},h?a:t.createElement(Qv,null,"\xa0")),o)):null};ZI.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),aside:Bn().element,className:Bn().string,component:co,defaultTitle:Bn().any,hasList:Bn().bool,hasShow:Bn().bool,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:Bn().object,record:Bn().object,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,save:Bn().func,title:Bn().node};var eM=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;return JI(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"])},tM="RaEdit",rM={main:"".concat(tM,"-main"),noActions:"".concat(tM,"-noActions"),card:"".concat(tM,"-card")},nM=(0,En.Ay)("div",{name:tM,overridesResolver:function(e,t){return t.root}})(((XI={})["& .".concat(rM.main)]={display:"flex",alignItems:"flex-start"},XI["& .".concat(rM.noActions)]={marginTop:"1em"},XI["& .".concat(rM.card)]={flex:"1 1 auto"},XI)),oM=function(e,t,r){var n=t.id,o=t.meta,a=Ew();return(0,d.useQuery)([e,"getOne",{id:String(n),meta:o}],(function(){return a.getOne(e,{id:n,meta:o}).then((function(e){return e.data}))}),r)},aM=function(){return aM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aM.apply(this,arguments)},iM=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},sM=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},lM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cM=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},uM=function(){return uM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uM.apply(this,arguments)},dM=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(AB){a(AB)}}function s(e){try{l(n.throw(e))}catch(AB){a(AB)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},pM=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(AB){s=[6,AB],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},fM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mM=function(e){void 0===e&&(e={});var r=e.disableAuthentication,n=e.id,o=e.mutationMode,a=void 0===o?"undoable":o,i=e.mutationOptions,s=void 0===i?{}:i,l=e.queryOptions,c=void 0===l?{}:l,u=e.redirect,p=void 0===u?hM:u,f=e.transform;Vr({enabled:!r});var m=Jg(e),h=YR(m),v=Ps(),y=Rt(),g=Ax(),b=rl(),x=re().id,w=null!=n?n:decodeURIComponent(x),A=c.meta,S=fM(c,["meta"]),O=s.onSuccess,_=s.onError,E=s.meta,k=fM(s,["onSuccess","onError","meta"]),j=uR(),C=j.registerMutationMiddleware,P=j.getMutateWithMiddlewares,R=j.unregisterMutationMiddleware,T=oM(m,{id:w,meta:A},uM({onError:function(){y("ra.notification.item_doesnt_exist",{type:"error"}),g("list",m),b()},refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},S)),I=T.data,M=T.error,N=T.isLoading,L=T.isFetching,F=T.refetch;if(I&&I.id&&I.id!=w)throw new Error("useEditController: Fetched record's id attribute (".concat(I.id,") must match the requested 'id' (").concat(w,")"));var z=Ep(),D=h(I),B=v("ra.page.edit",{name:z(m,1),id:w,record:I,recordRepresentation:"string"===typeof D?D:""}),V={id:w,previousData:I},W=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=Ew(),a=(0,d.useQueryClient)(),i=r.id,s=r.data,l=r.meta,c=n.mutationMode,u=void 0===c?"pessimistic":c,p=lM(n,["mutationMode"]),f=(0,t.useRef)(u),m=(0,t.useRef)(r),h=(0,t.useRef)([]),v=function(e){var t=e.resource,r=e.id,n=e.data,o=Date.now(),i="undoable"===f.current?o+5e3:o,s=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:cM(cM(cM([],e.slice(0,t),!0),[aM(aM({},e[t]),n)],!1),e.slice(t+1),!0)}};a.setQueryData([t,"getOne",{id:String(r),meta:l}],(function(e){return aM(aM({},e),n)}),{updatedAt:i}),a.setQueriesData([t,"getList"],(function(e){return e&&e.data?aM(aM({},e),{data:s(e.data)}):e}),{updatedAt:i}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?aM(aM({},e),{pages:e.pages.map((function(e){return aM(aM({},e),{data:s(e.data)})}))}):e}),{updatedAt:i}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?s(e):e}),{updatedAt:i}),a.setQueriesData([t,"getManyReference"],(function(e){return e&&e.data?{data:s(e.data),total:e.total}:e}),{updatedAt:i})},y=(0,d.useMutation)((function(t){var r=void 0===t?{}:t,n=r.resource,a=void 0===n?e:n,i=r.id,s=void 0===i?m.current.id:i,l=r.data,c=void 0===l?m.current.data:l,u=r.meta,d=void 0===u?m.current.meta:u,p=r.previousData,f=void 0===p?m.current.previousData:p;return o.update(a,{id:s,data:c,previousData:f,meta:d}).then((function(e){return e.data}))}),aM(aM({},p),{onMutate:function(e){return iM(void 0,void 0,void 0,(function(){var t;return sM(this,(function(r){switch(r.label){case 0:return p.onMutate?[4,p.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,aM({snapshot:h.current},t)];case 2:return[2,{snapshot:h.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==f.current&&"undoable"!==f.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),p.onError)return p.onError(e,t,r)},onSuccess:function(t,r,n){if(void 0===r&&(r={}),"pessimistic"===f.current){var o=r.resource,a=void 0===o?e:o,s=r.id;v({resource:a,id:void 0===s?i:s,data:t}),p.onSuccess&&p.onSuccess(t,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==f.current&&"undoable"!==f.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),p.onSettled)return p.onSettled(e,t,r,n)}}));return[Et((function(t,n,o){return void 0===t&&(t=e),void 0===n&&(n={}),void 0===o&&(o={}),iM(void 0,void 0,void 0,(function(){var e,c,u,d,g,b,x,w,A,S,O,_,E,k;return sM(this,(function(j){switch(j.label){case 0:return e=o.mutationMode,c=o.returnPromise,u=void 0===c?p.returnPromise:c,d=o.onSuccess,g=o.onSettled,b=o.onError,m.current=r,e&&(f.current=e),u&&"pessimistic"!==f.current&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),"pessimistic"===f.current?u?[2,y.mutateAsync(aM({resource:t},n),{onSuccess:d,onSettled:g,onError:b})]:[2,y.mutate(aM({resource:t},n),{onSuccess:d,onSettled:g,onError:b})]:(x=n.id,w=void 0===x?i:x,A=n.data,S=void 0===A?s:A,O=n.meta,_=void 0===O?l:O,E=a.getQueryData([t,"getOne",{id:String(w),meta:_}]),k=[[t,"getOne",{id:String(w),meta:_}],[t,"getList"],[t,"getInfiniteList"],[t,"getMany"],[t,"getManyReference"]],h.current=k.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(h.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return j.sent(),v({resource:t,id:w,data:S}),d&&setTimeout((function(){return d(aM(aM({},E),S),aM({resource:t},n),{snapshot:h.current})}),0),p.onSuccess&&setTimeout((function(){return p.onSuccess(aM(aM({},E),S),aM({resource:t},n),{snapshot:h.current})}),0),"optimistic"===f.current?[2,y.mutate(aM({resource:t},n),{onSettled:g,onError:b})]:(Cv.once("end",(function(e){e.isUndo?h.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):y.mutate(aM({resource:t},n),{onSettled:g,onError:b})})),[2])}}))}))})),y]}(m,V,uM(uM({},k),{mutationMode:a,returnPromise:"pessimistic"===a})),U=W[0],q=W[1].isLoading,H=(0,t.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,i=r.transform,s=r.meta;return Promise.resolve(i?i(e,{previousData:V.previousData}):f?f(e,{previousData:V.previousData}):e).then((function(e){return dM(void 0,void 0,void 0,(function(){var t,r,i;return pM(this,(function(l){switch(l.label){case 0:t=P(U),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t(m,{id:w,data:e,meta:null!==s&&void 0!==s?s:E},{onSuccess:function(e,t,r){return dM(void 0,void 0,void 0,(function(){return pM(this,(function(o){return n?[2,n(e,t,r)]:O?[2,O(e,t,r)]:(y("ra.notification.updated",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===a}),g(p,m,e.id,e),[2])}))}))},onError:o||(_||function(e){y("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})})})];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),null!=(null===(i=r.body)||void 0===i?void 0:i.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[w,P,E,a,y,_,O,g,p,m,f,U,V.previousData]);return{defaultTitle:B,error:M,isFetching:L,isLoading:N,mutationMode:a,record:I,redirect:p,refetch:F,registerMutationMiddleware:C,resource:m,save:H,saving:q,unregisterMutationMiddleware:R}},hM="list",vM=function(e){var r=e.children,n=e.value;return t.createElement(NI.Provider,{value:n},t.createElement(yR,{value:gR(n)},t.createElement(ih,{value:n&&n.record},r)))},yM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gM=function(e){var r=e.children,n=yM(e,["children"]),o=mM(n),a=t.createElement(vM,{value:o},r);return n.resource?t.createElement(qx,{value:n.resource},a):a},bM=function(){return bM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bM.apply(this,arguments)},xM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wM=function(e){XP("Edit",["children"],e);var r=e.resource,n=e.id,o=e.mutationMode,a=e.mutationOptions,i=e.queryOptions,s=e.redirect,l=e.transform,c=e.disableAuthentication,u=xM(e,["resource","id","mutationMode","mutationOptions","queryOptions","redirect","transform","disableAuthentication"]);return t.createElement(gM,{resource:r,id:n,mutationMode:o,mutationOptions:a,queryOptions:i,redirect:s,transform:l,disableAuthentication:c},t.createElement(ZI,bM({},u)))};wM.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),aside:Bn().element,children:Bn().node,className:Bn().string,disableAuthentication:Bn().bool,hasCreate:Bn().bool,hasEdit:Bn().bool,hasShow:Bn().bool,hasList:Bn().bool,id:Bn().any,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:Bn().object,queryOptions:Bn().object,redirect:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]),resource:Bn().string,title:Bn().node,transform:Bn().func,sx:Bn().any};const AM=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],SM=(0,En.Ay)("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]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,Qn.X4)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,Se.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{ownerState:t}=e;return(0,Se.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),OM=(0,En.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),_M=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=(0,Kt.A)(r,AM),m=(0,Se.A)({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,On.A)(c,Iu,n)})(m);return(0,Jt.jsx)(SM,(0,Se.A)({as:i,className:(0,Sn.A)(h.root,a),role:u,ref:t,ownerState:m},f,{children:o?(0,Jt.jsx)(OM,{className:h.wrapper,ownerState:m,children:o}):null}))}));_M.muiSkipListHighlight=!0;const EM=_M;let kM;function jM(){if(kM)return kM;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),kM="reverse",e.scrollLeft>0?kM="default":(e.scrollLeft=1,0===e.scrollLeft&&(kM="negative")),document.body.removeChild(e),kM}function CM(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(jM()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function PM(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const RM=["onChange"],TM={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function IM(e){return(0,Pn.Ay)("MuiTabScrollButton",e)}const MM=(0,Cn.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),NM=["className","slots","slotProps","direction","orientation","disabled"],LM=(0,En.Ay)(As,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({width:40,flexShrink:0,opacity:.8,["&.".concat(MM.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),FM=t.forwardRef((function(e,t){var r,n;const o=(0,_n.A)({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:s={},direction:l}=o,c=(0,Kt.A)(o,NM),u=or(),d=(0,Se.A)({isRtl:u},o),p=(e=>{const{classes:t,orientation:r,disabled:n}=e,o={root:["root",r,n&&"disabled"]};return(0,On.A)(o,IM,t)})(d),f=null!=(r=i.StartScrollButtonIcon)?r:nS,m=null!=(n=i.EndScrollButtonIcon)?n:oS,h=mi({elementType:f,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),v=mi({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,Jt.jsx)(LM,(0,Se.A)({component:"div",className:(0,Sn.A)(p.root,a),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,Jt.jsx)(f,(0,Se.A)({},h)):(0,Jt.jsx)(m,(0,Se.A)({},v))}))})),zM=FM;function DM(e){return(0,Pn.Ay)("MuiTabs",e)}const BM=(0,Cn.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),VM=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],WM=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,UM=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,qM=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},HM=(0,En.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& .".concat(BM.scrollButtons)]:t.scrollButtons},{["& .".concat(BM.scrollButtons)]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(BM.scrollButtons)]:{[r.breakpoints.down("sm")]:{display:"none"}}})})),$M=(0,En.Ay)("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]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),QM=(0,En.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),KM=(0,En.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:r}=e;return(0,Se.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),GM=(0,En.Ay)((function(e){const{onChange:r}=e,n=(0,Kt.A)(e,RM),o=t.useRef(),a=t.useRef(null),i=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return(0,oc.A)((()=>{const e=(0,dc.A)((()=>{const e=o.current;i(),e!==o.current&&r(o.current)})),t=(0,pc.A)(a.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r]),t.useEffect((()=>{i(),r(o.current)}),[r]),(0,Jt.jsx)("div",(0,Se.A)({style:TM,ref:a},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),XM={};const YM=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTabs"}),o=vo(),a=or(),{"aria-label":i,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:h,orientation:v="horizontal",ScrollButtonComponent:y=zM,scrollButtons:g="auto",selectionFollowsFocus:b,slots:x={},slotProps:w={},TabIndicatorProps:A={},TabScrollButtonProps:S={},textColor:O="primary",value:_,variant:E="standard",visibleScrollbar:k=!1}=n,j=(0,Kt.A)(n,VM),C="scrollable"===E,P="vertical"===v,R=P?"scrollTop":"scrollLeft",T=P?"top":"left",I=P?"bottom":"right",M=P?"clientHeight":"clientWidth",N=P?"height":"width",L=(0,Se.A)({},n,{component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:v,vertical:P,scrollButtons:g,textColor:O,variant:E,visibleScrollbar:k,fixed:!C,hideScrollbar:C&&!k,scrollableX:C&&!P,scrollableY:C&&P,centered:c&&!C,scrollButtonsHideMobile:!f}),F=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]};return(0,On.A)(c,DM,l)})(L),z=mi({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:L}),D=mi({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:L});const[B,V]=t.useState(!1),[W,U]=t.useState(XM),[q,H]=t.useState(!1),[$,Q]=t.useState(!1),[K,G]=t.useState(!1),[X,Y]=t.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,Z=t.useRef(null),ee=t.useRef(null),te=()=>{const e=Z.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:CM(e,a?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==_){const e=ee.current.children;if(e.length>0){const t=e[J.get(_)];0,r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},re=(0,Ci.A)((()=>{const{tabsMeta:e,tabMeta:t}=te();let r,n=0;if(P)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=a?"right":"left",t&&e){const o=a?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(a?-1:1)*(t[r]-e[r]+o)}const o={[r]:n,[N]:t?t[N]:0};if(isNaN(W[r])||isNaN(W[N]))U(o);else{const e=Math.abs(W[r]-o[r]),t=Math.abs(W[N]-o[N]);(e>=1||t>=1)&&U(o)}})),ne=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:a=PM,duration:i=300}=n;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=n=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=n);const u=Math.min(1,(n-s)/i);t[e]=a(u)*(r-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===r?o(new Error("Element already at target position")):requestAnimationFrame(d)}(R,Z.current,e,{duration:o.transitions.duration.standard}):Z.current[R]=e},oe=e=>{let t=Z.current[R];P?t+=e:(t+=e*(a?-1:1),t*=a&&"reverse"===jM()?-1:1),ne(t)},ae=()=>{const e=Z.current[M];let t=0;const r=Array.from(ee.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[M]>e){0===n&&(t=e);break}t+=o[M]}return t},ie=()=>{oe(-1*ae())},se=()=>{oe(ae())},le=t.useCallback((e=>{Y({overflow:null,scrollbarWidth:e})}),[]),ce=(0,Ci.A)((e=>{const{tabsMeta:t,tabMeta:r}=te();if(r&&t)if(r[T]<t[T]){const n=t[R]+(r[T]-t[T]);ne(n,{animation:e})}else if(r[I]>t[I]){const n=t[R]+(r[I]-t[I]);ne(n,{animation:e})}})),ue=(0,Ci.A)((()=>{C&&!1!==g&&G(!K)}));t.useEffect((()=>{const e=(0,dc.A)((()=>{Z.current&&re()}));let t;const r=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(),ue()},n=(0,pc.A)(Z.current);let o;return n.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(o=new MutationObserver(r),o.observe(ee.current,{childList:!0})),()=>{var r,a;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(a=t)||a.disconnect()}}),[re,ue]),t.useEffect((()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&C&&!1!==g){const r=e[0],n=e[t-1],o={root:Z.current,threshold:.99},a=new IntersectionObserver((e=>{H(!e[0].isIntersecting)}),o);a.observe(r);const i=new IntersectionObserver((e=>{Q(!e[0].isIntersecting)}),o);return i.observe(n),()=>{a.disconnect(),i.disconnect()}}}),[C,g,K,null==u?void 0:u.length]),t.useEffect((()=>{V(!0)}),[]),t.useEffect((()=>{re()})),t.useEffect((()=>{ce(XM!==W)}),[ce,W]),t.useImperativeHandle(l,(()=>({updateIndicator:re,updateScrollButtons:ue})),[re,ue]);const de=(0,Jt.jsx)(KM,(0,Se.A)({},A,{className:(0,Sn.A)(F.indicator,A.className),ownerState:L,style:(0,Se.A)({},W,A.style)}));let pe=0;const fe=t.Children.map(u,(e=>{if(!t.isValidElement(e))return null;const r=void 0===e.props.value?pe:e.props.value;J.set(r,pe);const n=r===_;return pe+=1,t.cloneElement(e,(0,Se.A)({fullWidth:"fullWidth"===E,indicator:n&&!B&&de,selected:n,selectionFollowsFocus:b,onChange:h,textColor:O,value:r},1!==pe||!1!==_||e.props.tabIndex?{}:{tabIndex:0}))})),me=(()=>{const e={};e.scrollbarSizeListener=C?(0,Jt.jsx)(GM,{onChange:le,className:(0,Sn.A)(F.scrollableX,F.hideScrollbar)}):null;const t=C&&("auto"===g&&(q||$)||!0===g);return e.scrollButtonStart=t?(0,Jt.jsx)(y,(0,Se.A)({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:v,direction:a?"right":"left",onClick:ie,disabled:!q},S,{className:(0,Sn.A)(F.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?(0,Jt.jsx)(y,(0,Se.A)({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:v,direction:a?"left":"right",onClick:se,disabled:!$},S,{className:(0,Sn.A)(F.scrollButtons,S.className)})):null,e})();return(0,Jt.jsxs)(HM,(0,Se.A)({className:(0,Sn.A)(F.root,d),ownerState:L,ref:r,as:p},j,{children:[me.scrollButtonStart,me.scrollbarSizeListener,(0,Jt.jsxs)($M,{className:F.scroller,ownerState:L,style:{overflow:X.overflow,[P?"margin".concat(a?"Left":"Right"):"marginBottom"]:k?void 0:-X.scrollbarWidth},ref:Z,children:[(0,Jt.jsx)(QM,{"aria-label":i,"aria-labelledby":s,"aria-orientation":"vertical"===v?"vertical":null,className:F.flexContainer,ownerState:L,onKeyDown:e=>{const t=ee.current,r=(0,Gl.A)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===v?"ArrowLeft":"ArrowUp",o="horizontal"===v?"ArrowRight":"ArrowDown";switch("horizontal"===v&&a&&(n="ArrowRight",o="ArrowLeft"),e.key){case n:e.preventDefault(),qM(t,r,UM);break;case o:e.preventDefault(),qM(t,r,WM);break;case"Home":e.preventDefault(),qM(t,null,WM);break;case"End":e.preventDefault(),qM(t,null,UM)}},ref:ee,role:"tablist",children:fe}),B&&de]}),me.scrollButtonEnd]}))})),JM=YM;var ZM=function(){return ZM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZM.apply(this,arguments)},eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tN=function(e){var r=e.children,n=(e.url,e.syncWithLocation),o=e.value,a=eN(e,["children","url","syncWithLocation","value"]),i=re()["*"];return t.createElement(JM,ZM({value:n?i:o,indicatorColor:"primary"},a),t.Children.map(r,(function(e,r){if(!(0,t.isValidElement)(e))return null;var o=rN(e,r);return(0,t.cloneElement)(e,{intent:"header",value:n?o:r,syncWithLocation:n})})))};tN.propTypes={children:Bn().node,url:Bn().string,tabsWithErrors:Bn().arrayOf(Bn().string)};var rN=function(e,t){return null!=e.props.path?e.props.path:t>0?t.toString():""},nN=function(){return nN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nN.apply(this,arguments)},oN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},aN=function(e){var r=e.children,n=e.className,o=e.component,a=void 0===o?sN:o,i=e.formRootPathname,s=e.syncWithLocation,l=void 0===s||s,c=e.tabs,u=void 0===c?iN:c,d=e.toolbar,p=void 0===d?lN:d,f=oN(e,["children","className","component","formRootPathname","syncWithLocation","tabs","toolbar"]),m=J(),h=ne(""),v=Jg(e),y=(0,t.useState)(0),g=y[0],b=y[1],x=function(e,t){l||b(t)},w=function(){return(0,t.cloneElement)(u,{onChange:x,syncWithLocation:l,url:i,value:g},r)};return t.createElement(dN,nN({className:zn("tabbed-form",n)},pN(f)),l?t.createElement(xe,null,t.createElement(ge,{path:"/*",element:w()})):w(),t.createElement(EM,null),t.createElement(a,null,t.Children.map(r,(function(e,r){if(!e)return null;var n=rN(e,r),o=l?!P("".concat(h.pathname,"/").concat(n),m.pathname):g!==r;return(0,t.isValidElement)(e)?t.cloneElement(e,{intent:"content",resource:v,hidden:o,value:l?n:r}):null}))),!1!==p?p:null)};aN.propTypes={children:Bn().node,className:Bn().string,location:Bn().object,match:Bn().object,resource:Bn().string,tabs:Bn().element,toolbar:Bn().oneOfType([Bn().element,Bn().oneOf([!1])]),validate:Bn().func,value:Bn().number};var iN=t.createElement(tN,null),sN=function(e){var r=e.children;return t.createElement(Qv,null,r)},lN=t.createElement($P,null),cN="RaTabbedForm",uN={errorTabButton:"".concat(cN,"-errorTabButton")},dN=(0,En.Ay)("div",{name:cN,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .MuiTab-root.".concat(uN.errorTabButton)]={color:r.palette.error.main},t})),pN=function(e){e.record,e.resource;return oN(e,["record","resource"])},fN=function(e){var r=e.children,n=e.name,o=Ab();return(0,t.useEffect)((function(){if(o&&o.registerGroup&&o.unregisterGroup)return o.registerGroup(n),function(){o.unregisterGroup(n)};console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components")}),[o,n]),t.createElement(xb.Provider,{value:n},r)};function mN(e){return(0,Pn.Ay)("MuiTab",e)}const hN=(0,Cn.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),vN=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],yN=(0,En.Ay)(As,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,$n.A)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(hN.iconWrapper)]:(0,Se.A)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:t.spacing(1)},"end"===r.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===r.textColor&&{color:"inherit",opacity:.6,["&.".concat(hN.selected)]:{opacity:1},["&.".concat(hN.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(hN.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(hN.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(hN.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(hN.disabled)]:{color:(t.vars||t).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:t.typography.pxToRem(12)})})),gN=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:m,selected:h,selectionFollowsFocus:v,textColor:y="inherit",value:g,wrapped:b=!1}=n,x=(0,Kt.A)(n,vN),w=(0,Se.A)({},n,{disabled:a,disableFocusRipple:i,selected:h,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:y,wrapped:b}),A=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon","textColor".concat((0,$n.A)(r)),n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,On.A)(c,mN,t)})(w),S=l&&d&&t.isValidElement(l)?t.cloneElement(l,{className:(0,Sn.A)(A.iconWrapper,l.props.className)}):l;return(0,Jt.jsxs)(yN,(0,Se.A)({focusRipple:!i,className:(0,Sn.A)(A.root,o),ref:r,role:"tab","aria-selected":h,disabled:a,onClick:e=>{!h&&p&&p(e,g),f&&f(e)},onFocus:e=>{v&&!h&&p&&p(e,g),m&&m(e)},ownerState:w,tabIndex:h?0:-1},x,{children:["top"===c||"start"===c?(0,Jt.jsxs)(t.Fragment,{children:[S,d]}):(0,Jt.jsxs)(t.Fragment,{children:[d,S]}),u]}))})),bN=gN;var xN=function(e){return e.reduce((function(e,t){var r=e.errors||{};return t.error&&(r[t.name]=t.error),{isDirty:e.isDirty||t.isDirty,errors:r,isTouched:e.isTouched||t.isTouched,isValid:e.isValid&&t.isValid}}),{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},wN=function(){return wN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wN.apply(this,arguments)},AN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},SN=function(e){var r,n=e.count,o=e.label,a=e.value,i=e.icon,s=e.className,l=e.onChange,c=e.syncWithLocation,u=AN(e,["count","label","value","icon","className","onChange","syncWithLocation"]),d=Ps(),p=J(),f=Wy().isSubmitted,m=function(e){var r=Wy(),n=r.dirtyFields,o=r.touchedFields,a=r.errors,i=Ab(),s=(0,t.useState)({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),l=s[0],c=s[1],u=(0,t.useCallback)((function(){var t=i.getGroupFields(e).map((function(e){return{name:e,error:dt()(a,e,void 0),isDirty:!1!==dt()(n,e,!1),isValid:void 0==dt()(a,e,void 0),isTouched:!1!==dt()(o,e,!1)}})).filter((function(e){return void 0!=e})),r=xN(t);c((function(e){return Ot()(e,r)?e:r}))}),[n,a,o,i,e]);return(0,t.useEffect)((function(){u()}),[JSON.stringify({dirtyFields:n,errors:a,touchedFields:o}),u]),(0,t.useEffect)((function(){return i.subscribe(e,(function(){u()}))}),[i,e,u]),l}(a.toString()),h={component:cp,to:wN(wN({},p),{pathname:a})},v=(0,Kl.isElement)(o)?o:d(o,{_:o});return void 0!==n&&(v=t.createElement("span",null,v," (",n,")")),t.createElement(bN,wN({label:v,value:a,icon:i,className:zn("form-tab",s,(r={},r[uN.errorTabButton]=!m.isValid&&(m.isTouched||f),r.error=!m.isValid&&(m.isTouched||f),r))},c?h:{},{id:"tabheader-".concat(a),"aria-controls":"tabpanel-".concat(a),onChange:l},u))};SN.propTypes={className:Bn().string,contentClassName:Bn().string,count:Bn().node,children:Bn().node,intent:Bn().oneOf(["header","content"]),hidden:Bn().bool,icon:Bn().element,label:Bn().oneOfType([Bn().string,Bn().element]).isRequired,margin:Bn().oneOf(["none","dense","normal"]),path:Bn().string,record:Bn().object,resource:Bn().string,value:Bn().oneOfType([Bn().string,Bn().number]),variant:Bn().oneOf(["standard","outlined","filled"])};var ON=function(){return ON=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ON.apply(this,arguments)},_N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},EN=function(e){var r=e.children,n=e.className,o=e.contentClassName,a=e.count,i=e.hidden,s=e.icon,l=e.intent,c=e.label,u=e.onChange,d=(e.path,e.resource,e.syncWithLocation),p=e.value,f=_N(e,["children","className","contentClassName","count","hidden","icon","intent","label","onChange","path","resource","syncWithLocation","value"]);return"header"===l?t.createElement(SN,ON({label:c,count:a,value:p,icon:s,className:n,syncWithLocation:d,onChange:u},jN(f))):t.createElement(fN,{name:p.toString()},t.createElement(IO,ON({alignItems:"flex-start",style:i?kN:null,className:o,id:"tabpanel-".concat(p),"aria-labelledby":"tabheader-".concat(p),"aria-hidden":i||void 0},f),r))};EN.propTypes={className:Bn().string,contentClassName:Bn().string,children:Bn().node,count:Bn().node,intent:Bn().oneOf(["header","content"]),hidden:Bn().bool,icon:Bn().element,label:Bn().oneOfType([Bn().string,Bn().element]).isRequired,path:Bn().string,resource:Bn().string,value:Bn().oneOfType([Bn().string,Bn().number])},EN.displayName="FormTab";var kN={display:"none"},jN=function(e){e.classes,e.ref,e.margin;return _N(e,["classes","ref","margin"])},CN=function(){return CN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CN.apply(this,arguments)},PN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},RN=function(e){var r=function(){var e=J(),t=P(":resource/create/*",e.pathname),r=P(":resource/:id/*",e.pathname);return t?t.pathnameBase:r?r.pathnameBase:""}();return t.createElement(gb,CN({formRootPathname:r},e),t.createElement(aN,CN({formRootPathname:r},TN(e))))};RN.Tab=EN;var TN=function(e){e.criteriaMode,e.defaultValues,e.delayError,e.formRootPathname,e.mode,e.noValidate,e.onSubmit,e.record,e.resetOptions,e.resolver,e.reValidateMode,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.validate,e.warnWhenUnsavedChanges;return PN(e,["criteriaMode","defaultValues","delayError","formRootPathname","mode","noValidate","onSubmit","record","resetOptions","resolver","reValidateMode","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","validate","warnWhenUnsavedChanges"])};RN.propTypes={children:Bn().node,defaultValues:Bn().oneOfType([Bn().object,Bn().func]),formRootPathname:Bn().string,mutationMode:Bn().oneOf(["pessimistic","optimistic","undoable"]),record:Bn().object,saving:Bn().bool,validate:Bn().func};var IN=function(){return IN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IN.apply(this,arguments)},MN=function(){return MN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MN.apply(this,arguments)},NN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LN={},FN=function(e){var r=e.debounce,n=void 0===r?500:r,o=e.reference,a=e.record,i=e.target,s=e.filter,l=void 0===s?LN:s,c=e.source,u=e.page,p=e.perPage,f=e.sort,m=void 0===f?{field:"id",order:"DESC"}:f,h=Rt(),v=Jg(e),y=BR({page:u,perPage:p}),g=y.page,b=y.setPage,x=y.perPage,w=y.setPerPage,A=UR(m),S=A.sort,O=A.setSort,_=(0,t.useCallback)((function(e){O(e),b(1)}),[b,O]),E=Xw("".concat(v,".").concat(null===a||void 0===a?void 0:a.id,".").concat(o)),k=E[0],j=E[1],C=(0,t.useRef)(l),P=nn({}),R=P[0],T=P[1],I=nn(l),M=I[0],N=I[1],L=(0,t.useCallback)((function(e){T((function(t){var r=t,n=e;r[n];return NN(r,["symbol"===typeof n?n:n+""])})),N((function(t){var r=t,n=e;r[n];return NN(r,["symbol"===typeof n?n:n+""])}))}),[T,N]),F=(0,t.useCallback)((function(e,t){T((function(t){var r;return MN(MN({},t),((r={})[e]=!0,r))})),N((function(r){var n;return MN(MN({},r),((n={})[e]=t,n))}))}),[T,N]),z=(0,t.useCallback)(Zw()((function(e,t){N(Tw(e)),T(t),b(1)}),n),[T,N,b]),D=(0,t.useCallback)((function(e,t,r){void 0===r&&(r=!0),r?z(e,t):(N(Tw(e)),T(t),b(1))}),[T,N,b,z]);(0,t.useEffect)((function(){Ot()(l,C.current)||(C.current=l,N(l))}));var B=function(e,r,n){void 0===r&&(r={});var o=r.target,a=r.id,i=r.pagination,s=void 0===i?{page:1,perPage:25}:i,l=r.sort,c=void 0===l?{field:"id",order:"DESC"}:l,u=r.filter,p=void 0===u?{}:u,f=r.meta,m=Ew(),h=(0,d.useQueryClient)(),v=(0,d.useQuery)([e,"getManyReference",{target:o,id:a,pagination:s,sort:c,filter:p,meta:f}],(function(){return o&&null!=a?m.getManyReference(e,{target:o,id:a,pagination:s,sort:c,filter:p,meta:f}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}})):Promise.reject(new Error("target and id are required"))}),IN({onSuccess:function(t){var r;null===(r=null===t||void 0===t?void 0:t.data)||void 0===r||r.forEach((function(t){h.setQueryData([e,"getOne",{id:String(t.id),meta:f}],(function(e){return null!==e&&void 0!==e?e:t}))}))}},n));return(0,t.useMemo)((function(){var e,t,r;return v.data?IN(IN({},v),{data:null===(e=v.data)||void 0===e?void 0:e.data,total:null===(t=v.data)||void 0===t?void 0:t.total,pageInfo:null===(r=v.data)||void 0===r?void 0:r.pageInfo}):v}),[v])}(o,{target:i,id:dt()(a,c),pagination:{page:g,perPage:x},sort:S,filter:M},{enabled:null!=dt()(a,c),keepPreviousData:!0,onError:function(e){return h("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}}),V=B.data,W=B.total,U=B.pageInfo,q=B.error,H=B.isFetching,$=B.isLoading,Q=B.refetch;return{sort:S,data:V,defaultTitle:null,displayedFilters:R,error:q,filterValues:M,hideFilter:L,isFetching:H,isLoading:$,onSelect:j.select,onToggleItem:j.toggle,onUnselectItems:j.clearSelection,page:g,perPage:x,refetch:Q,resource:o,selectedIds:k,setFilters:D,setPage:b,setPerPage:w,hasNextPage:U?U.hasNextPage:null!=W?g*x<W:void 0,hasPreviousPage:U?U.hasPreviousPage:g>1,setSort:_,showFilter:F,total:W}},zN=function(e){var r=e.children,n=e.debounce,o=e.filter,a=void 0===o?DN:o,i=e.page,s=void 0===i?1:i,l=e.pagination,c=void 0===l?null:l,u=e.perPage,d=void 0===u?25:u,p=e.reference,f=e.resource,m=e.sort,h=void 0===m?BN:m,v=e.source,y=void 0===v?"id":v,g=e.target,b=sh(e),x=FN({debounce:n,filter:a,page:s,perPage:d,record:b,reference:p,resource:f,sort:h,source:y,target:g});return t.createElement(qx,{value:p},t.createElement(SE,{value:x},r,c))};zN.propTypes={children:Bn().node.isRequired,className:Bn().string,filter:Bn().object,label:UC.label,perPage:Bn().number,record:Bn().any,reference:Bn().string.isRequired,resource:Bn().string,sortBy:Bn().string,sortByOrder:UC.sortByOrder,source:Bn().string,sort:Bn().exact({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),target:Bn().string.isRequired};Bn().element,Bn().string,Bn().exact({field:Bn().string,order:Bn().oneOf(["ASC","DESC"])}),Bn().any,Bn().bool,Bn().element,Bn().string,Bn().func;var DN={},BN={field:"id",order:"DESC"},VN=r(1528),WN=function(){return WN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},WN.apply(this,arguments)},UN=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},qN=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout((function(){r=null,e(UN([],t,!0)),t=[]}),0)}}((function(e){var t=e[0].dataProvider,r=e[0].queryClient,n=e.reduce((function(e,t){return e[t.resource]||(e[t.resource]=[]),e[t.resource].push(t),e}),{});Object.keys(n).forEach((function(e){var o=n[e],a=o.reduce((function(e,t){var r=t.ids;return qk()(e,r)}),[]).filter((function(e){return null!=e&&""!==e})),i=o.reduce((function(e,t){return t.meta||e}),void 0);if(0!==a.length){var s=o.find((function(e){var t=e.ids;return JSON.stringify(t)===JSON.stringify(a)}));if(s){var l=s.dataProvider,c=s.resource,u=s.ids,d=s.meta;l.getMany(c,{ids:u,meta:d}).then((function(e){return e.data})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))}),(function(e){o.forEach((function(t){(0,t.reject)(e)}))}))}else r.fetchQuery([e,"getMany",{ids:a.map((function(e){return String(e)})),meta:i}],(function(){return t.getMany(e,{ids:a,meta:i}).then((function(e){return e.data}))})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))})).catch((function(e){return o.forEach((function(t){return(0,t.reject)(e)}))}))}else o.forEach((function(e){(0,e.resolve)([])}))}))})),HN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$N=function(e){var r=e.reference,n=e.id,o=e.options,a=void 0===o?{}:o,i=function(e,r,n){void 0===n&&(n={});var o=Ew(),a=(0,d.useQueryClient)(),i=a.getQueryCache(),s=r.ids,l=r.meta,c=(0,t.useMemo)((function(){var t=(Array.isArray(s)?s:[s]).map((function(t){var r,n,o=(0,d.hashQueryKey)([e,"getOne",{id:String(t),meta:l}]);return null===(n=null===(r=i.get(o))||void 0===r?void 0:r.state)||void 0===n?void 0:n.data}));return t.some((function(e){return void 0===e}))?void 0:t}),[s,i,e,l]);return(0,d.useQuery)([e,"getMany",{ids:(Array.isArray(s)?s:[s]).map((function(e){return String(e)})),meta:l}],(function(){return new Promise((function(t,r){return s&&0!==s.length?qN({resource:e,ids:s,meta:l,resolve:t,reject:r,dataProvider:o,queryClient:a}):t([])}))}),WN({placeholderData:c,onSuccess:function(t){(null!==t&&void 0!==t?t:[]).forEach((function(t){a.setQueryData([e,"getOne",{id:String(t.id),meta:l}],(function(e){return null!==e&&void 0!==e?e:t}))}))},retry:!1},n))}(r,{ids:[n],meta:a.meta},HN(a,["meta"])),s=i.data,l=i.error,c=i.isLoading,u=i.isFetching,p=i.refetch;return{referenceRecord:l?void 0:s?s[0]:void 0,refetch:p,error:l,isLoading:c,isFetching:u}};function QN(e){return(0,Pn.Ay)("MuiLink",e)}const KN=(0,Cn.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var GN=r(7162);const XN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},YN=e=>{let{theme:t,ownerState:r}=e;const n=(e=>XN[e]||e)(r.color),o=(0,GN.Yn)(t,"palette.".concat(n),!1)||r.color,a=(0,GN.Yn)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,Qn.X4)(o,.4)},JN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ZN=(0,En.Ay)(Eu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["underline".concat((0,$n.A)(r.underline))],"button"===r.component&&t.button]}})((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,Se.A)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:YN({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(KN.focusVisible)]:{outline:"auto"}})})),eL=t.forwardRef((function(e,r){const n=(0,_n.A)({props:e,name:"MuiLink"}),{className:o,color:a="primary",component:i="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,f=(0,Kt.A)(n,JN),{isFocusVisibleRef:m,onBlur:h,onFocus:v,ref:y}=(0,Ri.A)(),[g,b]=t.useState(!1),x=(0,To.A)(r,y),w=(0,Se.A)({},n,{color:a,component:i,focusVisible:g,underline:u,variant:d}),A=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,$n.A)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,On.A)(a,QN,t)})(w);return(0,Jt.jsx)(ZN,(0,Se.A)({color:a,className:(0,Sn.A)(A.root,o),classes:c,component:i,onBlur:e=>{h(e),!1===m.current&&b(!1),s&&s(e)},onFocus:e=>{v(e),!0===m.current&&b(!0),l&&l(e)},ref:x,ownerState:w,variant:d,sx:[...Object.keys(XN).includes(a)?[]:[{color:a}],...Array.isArray(p)?p:[p]]},f))})),tL=eL;var rL=function(){return rL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rL.apply(this,arguments)},nL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},oL=function(e){var r=e.to,n=e.children,o=e.className,a=nL(e,["to","children","className"]);return t.createElement(iL,rL({component:cp,to:r,className:zn(aL.link,o),underline:"none"},a),n)},aL={link:"".concat("RaLink","-link")},iL=(0,En.Ay)(tL)({});oL.propTypes={className:Bn().string,children:Bn().node,to:Bn().oneOfType([Bn().string,Bn().object])};var sL=function(){return sL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sL.apply(this,arguments)},lL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cL=function(e){var r=e.source,n=e.emptyText,o=e.link,a=void 0===o?"edit":o,i=lL(e,["source","emptyText","link"]),s=sh(e),l=dt()(s,r),c=Ps();return null==l?n?t.createElement(Eu,{component:"span",variant:"body2"},n&&c(n,{_:n})):null:t.createElement(uL,sL({},i,{link:a,emptyText:n,record:s,id:l}))};cL.propTypes={children:Bn().node,className:Bn().string,cellClassName:Bn().string,headerClassName:Bn().string,label:UC.label,record:Bn().any,reference:Bn().string.isRequired,resource:Bn().string,sortBy:Bn().string,sortByOrder:UC.sortByOrder,source:Bn().string.isRequired,translateChoice:Bn().oneOfType([Bn().func,Bn().bool]),link:Bn().oneOfType([Bn().string,Bn().bool,Bn().func])};var uL=function(e){var r=e.children,n=e.id,o=e.reference,a=e.queryOptions,i=e.link,s=lL(e,["children","id","reference","queryOptions","link"]);return t.createElement(qx,{value:o},t.createElement(fL,sL({reference:o},s,$N({reference:o,id:n,options:a}),{resourceLinkPath:i}),r))},dL=function(e){return e.stopPropagation()},pL=function(e){var r=e.children,n=e.className,o=e.emptyText,a=e.error,i=e.isLoading,s=e.reference,l=e.referenceRecord,c=e.resourceLinkPath,u=e.sx,d=YR(s),p=Ps(),f=jr(),m=ek({resource:s});if(a)return t.createElement(VN.A,{"aria-errormessage":a.message?a.message:a,role:"presentation",color:"error",fontSize:"small"});if(i)return t.createElement(BT,null);if(!l)return o?t.createElement(t.Fragment,null,o&&p(o,{_:o})):null;var h=!(!1===c||"edit"===c&&!m.hasEdit||"show"===c&&!m.hasShow)&&f({resource:s,id:l.id,type:"function"===typeof c?c(l,s):c}),v=r||t.createElement(Eu,{component:"span",variant:"body2"},d(l));return h?t.createElement(vL,{className:n,sx:u},t.createElement(ih,{value:l},t.createElement(oL,{to:h,className:hL.link,onClick:dL,state:{_scrollToTop:!0}},v))):t.createElement(vL,{className:n,sx:u},t.createElement(ih,{value:l},v))};pL.propTypes={children:Bn().element,className:Bn().string,isLoading:Bn().bool,record:Bn().any,reference:Bn().string,referenceRecord:Bn().any,resource:Bn().string,resourceLinkPath:Bn().oneOfType([Bn().string,Bn().bool,Bn().func]).isRequired,source:Bn().string,translateChoice:Bn().oneOfType([Bn().func,Bn().bool])};var fL=qC(pL),mL="RaReferenceField",hL={link:"".concat(mL,"-link")},vL=(0,En.Ay)("span",{name:mL,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={lineHeight:"initial"})["& .".concat(hL.link)]={"& > *":{color:r.palette.primary.main}},t})),yL=function(){return yL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yL.apply(this,arguments)},gL=function(e){var r=e.children,n=e.resource,o=e.source,a=e.perPage,i=e.sort,s=e.filter,l=sh(e),c=dt()(l,o,xL)||xL,u=QR({data:c,resource:n,perPage:a,sort:i,filter:s});return t.createElement(SE,{value:u},r)};gL.propTypes=yL({},UC),gL.displayName="ArrayFieldImpl";var bL=qC(gL),xL=[],wL=function(){return wL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wL.apply(this,arguments)},AL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},SL=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.locales,i=e.options,s=(e.textAlign,e.transform),l=void 0===s?OL:s,c=AL(e,["className","emptyText","source","locales","options","textAlign","transform"]),u=sh(e),d=Ps();if(!u)return null;var p=dt()(u,o);return null==p?n?t.createElement(Eu,wL({component:"span",variant:"body2",className:r},WC(c)),n&&d(n,{_:n})):null:(l&&(p=l(p)),t.createElement(Eu,wL({variant:"body2",component:"span",className:r},WC(c)),EL&&"number"===typeof p?p.toLocaleString(a,i):p))},OL=function(e){return e&&"string"===typeof e&&!isNaN(e)?+e:e};SL.propTypes=wL(wL(wL({},Eu.propTypes),UC),{locales:Bn().oneOfType([Bn().string,Bn().arrayOf(Bn().string)]),options:Bn().object}),SL.displayName="NumberFieldImpl",SL.defaultProps={textAlign:"right"};var _L=qC(SL),EL=!("object"!==typeof Intl||!Intl||"function"!==typeof Intl.NumberFormat);const kL=e=>{var t;let{source:r,...n}=e;const o=sh(n),a=null===(t=dt()(o,r))||void 0===t?void 0:t.toString(),{alt:i,classes:s,sizes:l,sx:c,variant:u}=n;return(0,Jt.jsx)(Ql,{alt:i,classes:s,sizes:l,src:a,sx:c,variant:u})};var jL=function(e){var r=Xw(e)[1].clearSelection;return(0,t.useCallback)((function(){r()}),[r])},CL=r(3813),PL=r(5502);const RL=e=>{let{open:t,loading:r,onClose:n,onSubmit:o}=e;const a=Ps(),i=e=>(0,Jt.jsxs)($P,{...e,children:[(0,Jt.jsx)(hP,{label:"resources.servernotices.action.send",disabled:e.pristine}),(0,Jt.jsx)(jh,{label:"ra.action.cancel",onClick:n,children:(0,Jt.jsx)(PL.A,{})})]});return(0,Jt.jsxs)(C_,{open:t,onClose:n,loading:r,children:[(0,Jt.jsx)(X_,{children:a("resources.servernotices.action.send")}),(0,Jt.jsxs)(V_,{children:[(0,Jt.jsx)($_,{children:a("resources.servernotices.helper.send")}),(0,Jt.jsx)(jR,{toolbar:(0,Jt.jsx)(i,{}),onSubmit:o,children:(0,Jt.jsx)(cx,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:ny()})})]})]})},TL=()=>{const e=sh(),[r,n]=(0,t.useState)(!1),o=Rt(),[a,{isloading:i}]=lR(),s=()=>n(!1);return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(jh,{label:"resources.servernotices.send",onClick:()=>n(!0),disabled:i,children:(0,Jt.jsx)(CL.A,{})}),(0,Jt.jsx)(RL,{open:r,onClose:s,onSubmit:t=>{a("servernotices",{data:{id:e.id,...t}},{onSuccess:()=>{o("resources.servernotices.action.send_success"),s()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})})}})]})},IL=()=>{const{selectedIds:e}=BA(),[r,n]=(0,t.useState)(!1),o=()=>n(!1),a=Rt(),i=jL("users"),s=Ew(),{mutate:l,isLoading:c}=(0,d.useMutation)((t=>s.createMany("servernotices",{ids:e,data:t})),{onSuccess:()=>{a("resources.servernotices.action.send_success"),i(),o()},onError:()=>a("resources.servernotices.action.send_failure",{type:"error"})});return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(jh,{label:"resources.servernotices.send",onClick:()=>n(!0),disabled:c,children:(0,Jt.jsx)(CL.A,{})}),(0,Jt.jsx)(RL,{open:r,onClose:o,onSubmit:l})]})},ML=e=>{const t=sh(),r=rl(),n=Rt(),[o]=_P();if(!t)return null;return(0,Jt.jsx)(UP,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",onConfirm:()=>{o("devices",{id:t.id,previousData:t},{onSuccess:()=>{n("resources.devices.action.erase.success"),r()},onError:()=>{n("resources.devices.action.erase.failure",{type:"error"})}})},mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}})};var NL=function(){return NL=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NL.apply(this,arguments)},LL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},FL=function(e){return e?new Date(e):""===e?null:e},zL=function(e){var r=e.className,n=e.defaultValue,o=e.format,a=void 0===o?HL:o,i=e.label,s=e.helperText,l=e.margin,c=e.onBlur,u=e.onChange,d=e.source,p=e.resource,f=e.parse,m=void 0===f?FL:f,h=e.validate,v=e.variant,y=e.disabled,g=e.readOnly,b=LL(e,["className","defaultValue","format","label","helperText","margin","onBlur","onChange","source","resource","parse","validate","variant","disabled","readOnly"]),x=Rb(NL({defaultValue:n,format:a,parse:m,onBlur:c,onChange:u,resource:p,source:d,validate:h,disabled:y,readOnly:g},b)),w=x.field,A=x.fieldState,S=x.formState,O=x.id,_=x.isRequired,E=A.error,k=A.invalid,j=A.isTouched,C=S.isSubmitted,P=!1!==s||(j||C)&&k;return t.createElement($m,NL({id:O},w,{className:zn("ra-input","ra-input-".concat(d),r),type:"datetime-local",size:"small",variant:v,margin:l,error:(j||C)&&k,disabled:y||g,readOnly:g,helperText:P?t.createElement(nx,{touched:j||C,error:null===E||void 0===E?void 0:E.message,helperText:s}):null,label:t.createElement(Lb,{label:i,source:d,resource:p,isRequired:_}),InputLabelProps:qL},ix(b)))};zL.propTypes={label:Bn().oneOfType([Bn().string,Bn().bool,Bn().element]),resource:Bn().string,source:Bn().string};var DL=function(e){return void 0===e&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},BL=DL(4),VL=DL(2),WL=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=BL(e.getFullYear()),r=VL(e.getMonth()+1),n=VL(e.getDate()),o=VL(e.getHours()),a=VL(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(o,":").concat(a)},UL=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,qL={shrink:!0},HL=function(e){return null==e||""===e?"":e instanceof Date?WL(e):UL.test(e)?e:WL(new Date(e))},$L=function(){return $L=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$L.apply(this,arguments)},QL=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},KL=function(e){var r=e.className,n=e.defaultValue,o=void 0===n?null:n,a=e.format,i=void 0===a?XL:a,s=e.helperText,l=e.label,c=e.margin,u=e.onChange,d=e.onBlur,p=e.onFocus,f=e.parse,m=e.resource,h=e.source,v=e.step,y=void 0===v?"any":v,g=e.min,b=e.max,x=e.validate,w=e.variant,A=e.inputProps,S=e.disabled,O=e.readOnly,_=QL(e,["className","defaultValue","format","helperText","label","margin","onChange","onBlur","onFocus","parse","resource","source","step","min","max","validate","variant","inputProps","disabled","readOnly"]),E=Rb($L({defaultValue:o,onBlur:d,resource:m,source:h,validate:x,disabled:S,readOnly:O},_)),k=E.field,j=E.fieldState,C=j.error,P=j.invalid,R=j.isTouched,T=E.formState.isSubmitted,I=E.id,M=E.isRequired,N=k.onBlur,L=$L($L({},A),{step:y,min:g,max:b}),F=t.useState(i(k.value)),z=F[0],D=F[1],B=t.useRef(!1);t.useEffect((function(){if(!B.current){var e=i(k.value);D((function(t){return t!==e?e:t}))}}),[k.value,i]);var V=!1!==s||(R||T)&&P,W=k.ref,U=QL(k,["ref"]);return t.createElement($m,$L({id:I},U,{inputRef:W,value:z,onChange:function(e){if(u&&u(e),"undefined"!==typeof e.target&&"undefined"!==typeof e.target.value){var t=e.target;D(t.value);var r=void 0===t.valueAsNumber||null===t.valueAsNumber||isNaN(t.valueAsNumber)?f?f(t.value):GL(t.value):f?f(t.valueAsNumber):t.valueAsNumber;k.onChange(r)}},onFocus:function(e){p&&p(e),B.current=!0},onBlur:function(){N&&N(),B.current=!1;var e=i(k.value);D((function(t){return t!==e?e:t}))},className:zn("ra-input","ra-input-".concat(h),r),type:"number",size:"small",variant:w,error:(R||T)&&P,disabled:S||O,readOnly:O,helperText:V?t.createElement(nx,{touched:R||T,error:null===C||void 0===C?void 0:C.message,helperText:s}):null,label:t.createElement(Lb,{label:l,source:h,resource:m,isRequired:M}),margin:c,inputProps:$L($L({},L),{readOnly:O})},ix(_)))};KL.propTypes={label:Bn().oneOfType([Bn().string,Bn().bool,Bn().element]),resource:Bn().string,source:Bn().string,step:Bn().oneOfType([Bn().string,Bn().number])};var GL=function(e){if(null==e||""===e)return null;var t=parseFloat(e);return isNaN(t)?0:t},XL=function(e){return null==e||isNaN(e)?"":e.toString()},YL=r(3723),JL=r(9719),ZL=r(3531);const eF=e=>{let{open:t,loading:r,onClose:n,onSubmit:o}=e;const a=Ps(),i=e=>(0,Jt.jsxs)($P,{...e,children:[(0,Jt.jsx)(hP,{label:"resources.delete_media.action.send",icon:(0,Jt.jsx)(JL.A,{})}),(0,Jt.jsx)(jh,{label:"ra.action.cancel",onClick:n,children:(0,Jt.jsx)(PL.A,{})})]});return(0,Jt.jsxs)(C_,{open:t,onClose:n,loading:r,children:[(0,Jt.jsx)(X_,{children:a("resources.delete_media.action.send")}),(0,Jt.jsxs)(V_,{children:[(0,Jt.jsx)($_,{children:a("resources.delete_media.helper.send")}),(0,Jt.jsxs)(jR,{toolbar:(0,Jt.jsx)(i,{}),onSubmit:o,children:[(0,Jt.jsx)(zL,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:e=>{const t=new Date(e);return isNaN(t)?0:t.getTime()}}),(0,Jt.jsx)(KL,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),(0,Jt.jsx)(d_,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},tF=e=>{const r=vo(),[n,o]=(0,t.useState)(!1),a=Rt(),[i,{isLoading:s}]=_P(),l=()=>o(!1);return(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(jh,{...e,label:"resources.delete_media.action.send",onClick:()=>o(!0),disabled:s,sx:{color:r.palette.error.main,"&:hover":{backgroundColor:Jm(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,Jt.jsx)(JL.A,{})}),(0,Jt.jsx)(eF,{open:n,onClose:l,onSubmit:e=>{i("delete_media",{meta:e},{onSuccess:()=>{a("resources.delete_media.action.send_success"),l()},onError:()=>a("resources.delete_media.action.send_failure",{type:"error"})})}})]})},rF=()=>{const e=sh(),t=Ps(),r=rl(),n=Rt(),[o,{isLoading:a}]=lR(),[i]=_P();if(!e)return null;return(0,Jt.jsxs)(Jt.Fragment,{children:[e.quarantined_by&&(0,Jt.jsx)(qi,{title:t("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{disabled:!0,children:(0,Jt.jsx)(Hb.A,{})})})}),e.safe_from_quarantine&&(0,Jt.jsx)(qi,{title:t("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{onClick:()=>{i("protect_media",{id:e.id},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(Wv.A,{})})})}),!e.safe_from_quarantine&&!e.quarantined_by&&(0,Jt.jsx)(qi,{title:t("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{onClick:()=>{o("protect_media",{data:e},{onSuccess:()=>{n("resources.protect_media.action.send_success"),r()},onError:()=>n("resources.protect_media.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(ZL.A,{})})})})]})},nF=e=>{const t=sh(),r=Ps(),n=rl(),o=Rt(),[a,{isLoading:i}]=lR(),[s]=_P();if(!t)return null;return(0,Jt.jsxs)(Jt.Fragment,{children:[t.safe_from_quarantine&&(0,Jt.jsx)(qi,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{...e,disabled:!0,children:(0,Jt.jsx)(Hb.A,{})})})}),t.quarantined_by&&(0,Jt.jsx)(qi,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{...e,onClick:()=>{s("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},disabled:i,children:(0,Jt.jsx)(YL.A,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&(0,Jt.jsx)(qi,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:(0,Jt.jsx)("div",{children:(0,Jt.jsx)(jh,{onClick:()=>{a("quarantine_media",{data:t},{onSuccess:()=>{o("resources.quarantine_media.action.send_success"),n()},onError:()=>o("resources.quarantine_media.action.send_failure",{type:"error"})})},disabled:i,children:(0,Jt.jsx)(YL.A,{})})})})]})},oF=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],aF=[{id:"bot",name:"bot"},{id:"support",name:"support"}],iF={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},sF=e=>{let{sort:r,className:n,resource:o,filters:a,displayedFilters:i,exporter:s,filterValues:l,permanentFilter:c,hasCreate:u,selectedIds:d,onUnselectItems:p,showFilter:f,maxResults:m,total:h,...v}=e;return(0,Jt.jsxs)(ww,{className:n,...gA(v),children:[a&&(0,t.cloneElement)(a,{resource:o,showFilter:f,displayedFilters:i,filterValues:l,context:"button"}),(0,Jt.jsx)(NA,{}),(0,Jt.jsx)($A,{disabled:0===h,resource:o,sort:r,filter:{...l,...c},exporter:s,maxResults:m}),(0,Jt.jsx)(jh,{component:cp,to:"/import_users",label:"CSV Import",children:(0,Jt.jsx)(fw.A,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})};sF.defaultProps={selectedIds:[],onUnselectItems:()=>null};const lF=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),cF=[(0,Jt.jsx)(cO,{source:"name",alwaysOn:!0}),(0,Jt.jsx)(d_,{source:"guests",alwaysOn:!0}),(0,Jt.jsx)(d_,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],uF=()=>(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(IL,{}),(0,Jt.jsx)(bE,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),dF=[ny(),oy(253),sy(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],pF=[ny(),oy(255)];function fF(){const e=localStorage.getItem("home_server");return{id:"@"+Array(8).fill("0123456789abcdefghijklmnopqrstuvwxyz").map((e=>e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)])).join("")+":"+e,password:Array(20).fill("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$").map((e=>e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)])).join("")}}const mF=e=>(0,Jt.jsx)($P,{...e,children:(0,Jt.jsx)(hP,{disabled:e.pristine})}),hF=e=>{let{data:t}=e;const r=Ps();var n="";return t&&(n=t.deactivated),(0,Jt.jsxs)(ww,{children:[!n&&(0,Jt.jsx)(TL,{record:t}),(0,Jt.jsx)(UP,{record:t,label:"resources.users.action.erase",confirmTitle:r("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},vF=()=>{const e=sh(),t=Ps();return(0,Jt.jsxs)("span",{children:[t("resources.users.name",{smart_count:1})," ",e?'"'.concat(e.displayname,'"'):""]})},yF={name:"users",icon:gw.A,list:e=>(0,Jt.jsx)(Nk,{...e,filters:cF,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:(0,Jt.jsx)(sF,{maxResults:1e4}),pagination:(0,Jt.jsx)(lF,{}),children:(0,Jt.jsxs)(LC,{rowClick:"edit",bulkActionButtons:(0,Jt.jsx)(uF,{}),children:[(0,Jt.jsx)(kL,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),(0,Jt.jsx)(GC,{source:"id",sortBy:"name"}),(0,Jt.jsx)(GC,{source:"displayname"}),(0,Jt.jsx)(eP,{source:"is_guest"}),(0,Jt.jsx)(eP,{source:"admin"}),(0,Jt.jsx)(eP,{source:"deactivated"}),(0,Jt.jsx)(sP,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:iF})]})}),edit:e=>{const t=Ps();return(0,Jt.jsx)(wM,{...e,title:(0,Jt.jsx)(vF,{}),actions:(0,Jt.jsx)(hF,{}),children:(0,Jt.jsxs)(RN,{toolbar:(0,Jt.jsx)(mF,{}),children:[(0,Jt.jsxs)(EN,{label:t("resources.users.name",{smart_count:1}),icon:(0,Jt.jsx)(vw.A,{}),children:[(0,Jt.jsx)(kL,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),(0,Jt.jsx)(cx,{source:"id",disabled:!0}),(0,Jt.jsx)(cx,{source:"displayname"}),(0,Jt.jsx)(LR,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),(0,Jt.jsx)(uT,{source:"user_type",choices:aF,translateChoice:!1,resettable:!0}),(0,Jt.jsx)(d_,{source:"admin"}),(0,Jt.jsx)(d_,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),(0,Jt.jsx)(sP,{source:"creation_ts_ms",showTime:!0,options:iF}),(0,Jt.jsx)(GC,{source:"consent_version"})]}),(0,Jt.jsx)(EN,{label:"resources.users.threepid",icon:(0,Jt.jsx)(dw.A,{}),path:"threepid",children:(0,Jt.jsx)(eI,{source:"threepids",children:(0,Jt.jsxs)(II,{disableReordering:!0,children:[(0,Jt.jsx)(uT,{source:"medium",choices:oF}),(0,Jt.jsx)(cx,{source:"address"})]})})}),(0,Jt.jsx)(EN,{label:"synapseadmin.users.tabs.sso",icon:(0,Jt.jsx)(uw.A,{}),path:"sso",children:(0,Jt.jsx)(eI,{source:"external_ids",label:!1,children:(0,Jt.jsxs)(II,{disableReordering:!0,children:[(0,Jt.jsx)(cx,{source:"auth_provider",validate:ny()}),(0,Jt.jsx)(cx,{source:"external_id",label:"resources.users.fields.id",validate:ny()})]})})}),(0,Jt.jsx)(EN,{label:t("resources.devices.name",{smart_count:2}),icon:(0,Jt.jsx)(pw.A,{}),path:"devices",children:(0,Jt.jsx)(zN,{reference:"devices",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},children:[(0,Jt.jsx)(GC,{source:"device_id",sortable:!1}),(0,Jt.jsx)(GC,{source:"display_name",sortable:!1}),(0,Jt.jsx)(GC,{source:"last_seen_ip",sortable:!1}),(0,Jt.jsx)(sP,{source:"last_seen_ts",showTime:!0,options:iF,sortable:!1}),(0,Jt.jsx)(ML,{})]})})}),(0,Jt.jsx)(EN,{label:"resources.connections.name",icon:(0,Jt.jsx)(yw.A,{}),path:"connections",children:(0,Jt.jsx)(cL,{reference:"connections",source:"id",addLabel:!1,link:!1,children:(0,Jt.jsx)(bL,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:(0,Jt.jsxs)(LC,{style:{width:"100%"},bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"ip",sortable:!1}),(0,Jt.jsx)(sP,{source:"last_seen",showTime:!0,options:iF,sortable:!1}),(0,Jt.jsx)(GC,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),(0,Jt.jsx)(EN,{label:t("resources.users_media.name",{smart_count:2}),icon:(0,Jt.jsx)(hw.A,{}),path:"media",children:(0,Jt.jsx)(zN,{reference:"users_media",target:"user_id",addLabel:!1,pagination:(0,Jt.jsx)(lF,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:(0,Jt.jsxs)(LC,{style:{width:"100%"},children:[(0,Jt.jsx)(sP,{source:"created_ts",showTime:!0,options:iF}),(0,Jt.jsx)(sP,{source:"last_access_ts",showTime:!0,options:iF}),(0,Jt.jsx)(GC,{source:"media_id"}),(0,Jt.jsx)(_L,{source:"media_length"}),(0,Jt.jsx)(GC,{source:"media_type"}),(0,Jt.jsx)(GC,{source:"upload_name"}),(0,Jt.jsx)(GC,{source:"quarantined_by"}),(0,Jt.jsx)(nF,{label:"resources.quarantine_media.action.name"}),(0,Jt.jsx)(rF,{label:"resources.users_media.fields.safe_from_quarantine"}),(0,Jt.jsx)(UP,{mutationMode:"pessimistic",redirect:!1})]})})}),(0,Jt.jsx)(EN,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Jt.jsx)(Ap.A,{}),path:"rooms",children:(0,Jt.jsx)(zN,{reference:"joined_rooms",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},rowClick:(e,t,r)=>"/rooms/"+e+"/show",bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(cL,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Jt.jsx)(GC,{source:"name",sortable:!1})})]})})}),(0,Jt.jsx)(EN,{label:t("resources.pushers.name",{smart_count:2}),icon:(0,Jt.jsx)(mw.A,{}),path:"pushers",children:(0,Jt.jsx)(zN,{reference:"pushers",target:"user_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"kind",sortable:!1}),(0,Jt.jsx)(GC,{source:"app_display_name",sortable:!1}),(0,Jt.jsx)(GC,{source:"app_id",sortable:!1}),(0,Jt.jsx)(GC,{source:"data.url",sortable:!1}),(0,Jt.jsx)(GC,{source:"device_display_name",sortable:!1}),(0,Jt.jsx)(GC,{source:"lang",sortable:!1}),(0,Jt.jsx)(GC,{source:"profile_tag",sortable:!1}),(0,Jt.jsx)(GC,{source:"pushkey",sortable:!1})]})})})]})})},create:e=>(0,Jt.jsx)(_R,{...e,children:(0,Jt.jsxs)(jR,{children:[(0,Jt.jsx)(cx,{source:"id",autoComplete:"off",validate:dF}),(0,Jt.jsx)(cx,{source:"displayname",validate:oy(256)}),(0,Jt.jsx)(LR,{source:"password",autoComplete:"new-password",validate:oy(512)}),(0,Jt.jsx)(uT,{source:"user_type",choices:aF,translateChoice:!1,resettable:!0}),(0,Jt.jsx)(d_,{source:"admin"}),(0,Jt.jsx)(eI,{source:"threepids",children:(0,Jt.jsxs)(II,{disableReordering:!0,children:[(0,Jt.jsx)(uT,{source:"medium",choices:oF,validate:ny()}),(0,Jt.jsx)(cx,{source:"address",validate:pF})]})}),(0,Jt.jsx)(eI,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:(0,Jt.jsxs)(II,{disableReordering:!0,children:[(0,Jt.jsx)(cx,{source:"auth_provider",validate:ny()}),(0,Jt.jsx)(cx,{source:"external_id",label:"resources.users.fields.id",validate:ny()})]})})]})})};var gF=function(){return gF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gF.apply(this,arguments)},bF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},xF=(0,t.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,refetch:null,resource:null});xF.displayName="ShowContext";var wF=function(e){var r=e.children,n=e.value;return t.createElement(xF.Provider,{value:n},t.createElement(ih,{value:n&&n.record},r))},AF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},SF=function(e){var r=e.children,n=AF(e,["children"]),o=function(e){void 0===e&&(e={});var t=e.disableAuthentication,r=e.id,n=e.queryOptions,o=void 0===n?{}:n;Vr({enabled:!t});var a=Jg(e),i=YR(a),s=Ps(),l=Rt(),c=Ax(),u=rl(),d=re().id,p=null!=r?r:decodeURIComponent(d),f=o.meta,m=bF(o,["meta"]),h=oM(a,{id:p,meta:f},gF({onError:function(){l("ra.notification.item_doesnt_exist",{type:"error"}),c("list",a),u()},retry:!1},m)),v=h.data,y=h.error,g=h.isLoading,b=h.isFetching,x=h.refetch;if(v&&v.id&&v.id!=p)throw new Error("useShowController: Fetched record's id attribute (".concat(v.id,") must match the requested 'id' (").concat(p,")"));var w=Ep(),A=i(v);return{defaultTitle:s("ra.page.show",{name:w(a,1),id:p,record:v,recordRepresentation:"string"===typeof A?A:""}),error:y,isLoading:g,isFetching:b,record:v,refetch:x,resource:a}}(n),a=t.createElement(wF,{value:o},r);return n.resource?t.createElement(qx,{value:n.resource},a):a},OF=function(e){var t=e.record,r=e.data;return{record:t||r,data:t||r,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,resource:e.resource}},_F=r(5824),EF=function(){return EF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EF.apply(this,arguments)},kF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jF=function(e){var r=e.icon,n=void 0===r?PF:r,o=e.label,a=void 0===o?"ra.action.edit":o,i=e.scrollToTop,s=void 0===i||i,l=e.className,c=kF(e,["icon","label","scrollToTop","className"]),u=Jg(e),d=sh(e),p=jr();return d?t.createElement(MF,EF({component:cp,to:p({type:"edit",resource:u,id:d.id}),state:CF[String(s)],label:a,onClick:RF,className:zn(IF.root,l)},c),n):null},CF={true:{_scrollToTop:!0},false:{}},PF=t.createElement(_F.A,null),RF=function(e){return e.stopPropagation()};jF.propTypes={icon:Bn().element,label:Bn().string,record:Bn().any,scrollToTop:Bn().bool};var TF="RaEditButton",IF={root:"".concat(TF,"-root")},MF=(0,En.Ay)(jh,{name:TF,overridesResolver:function(e,t){return t.root}})({}),NF=function(e){var r=sh(e);return ek().hasEdit?t.createElement(Aw,{className:e.className},t.createElement(jF,{record:r})):null};NF.propTypes={className:Bn().string,record:Bn().any};var LF,FF=function(){return FF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FF.apply(this,arguments)},zF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DF=t.createElement(NF,null),BF=function(e){var r,n=e.actions,o=e.aside,a=e.children,i=e.className,s=e.component,l=void 0===s?Vv:s,c=e.emptyWhileLoading,u=void 0!==c&&c,d=e.title,p=zF(e,["actions","aside","children","className","component","emptyWhileLoading","title"]),f=function(e){var r=(0,t.useContext)(xF);return(0,t.useMemo)((function(){return zA()({},null!=e?OF(e):{},r)}),[r,e])}(e),m=f.resource,h=f.defaultTitle,v=f.record,y=ek(e).hasEdit,g="undefined"===typeof n&&y?DF:n;return!a||!v&&u?null:t.createElement(qF,FF({className:zn("show-page",i)},VF(p)),t.createElement(yh,{title:d,defaultTitle:h,preferenceKey:"".concat(m,".show.title")}),!1!==g&&g,t.createElement("div",{className:zn(UF.main,(r={},r[UF.noActions]=!g,r))},t.createElement(l,{className:UF.card},a),o))};BF.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),children:Bn().node,className:Bn().string,emptyWhileLoading:Bn().bool,title:Bn().any};var VF=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;return zF(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"])},WF="RaShow",UF={main:"".concat(WF,"-main"),noActions:"".concat(WF,"-noActions"),card:"".concat(WF,"-card")},qF=(0,En.Ay)("div",{name:WF,overridesResolver:function(e,t){return t.root}})(((LF={})["& .".concat(UF.main)]={display:"flex"},LF["& .".concat(UF.noActions)]={marginTop:"1em"},LF["& .".concat(UF.card)]={flex:"1 1 auto"},LF)),HF=function(){return HF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HF.apply(this,arguments)},$F=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QF=function(e){var r=e.id,n=e.resource,o=e.queryOptions,a=e.disableAuthentication,i=$F(e,["id","resource","queryOptions","disableAuthentication"]);return t.createElement(SF,{id:r,disableAuthentication:a,queryOptions:o,resource:n},t.createElement(BF,HF({},i)))};QF.propTypes={actions:Bn().oneOfType([Bn().element,Bn().bool]),children:Bn().node.isRequired,className:Bn().string,disableAuthentication:Bn().bool,emptyWhileLoading:Bn().bool,component:Bn().elementType,resource:Bn().string,title:Bn().node,sx:Bn().any};var KF=function(){return KF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},KF.apply(this,arguments)},GF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},XF=function(e){var r=e.children,n=e.syncWithLocation,o=e.value,a=GF(e,["children","syncWithLocation","value"]),i=re()["*"];return t.createElement(JM,KF({indicatorColor:"primary",value:n?i:o},a),t.Children.map(r,(function(e,r){if(!e||!(0,t.isValidElement)(e))return null;var o=YF(e,r);return(0,t.cloneElement)(e,{context:"header",value:n?o:r,syncWithLocation:n})})))},YF=function(e,t){return"".concat(e.props.path?"".concat(e.props.path):t>0?t:"")};XF.propTypes={children:Bn().node};var JF=function(){return JF=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JF.apply(this,arguments)},ZF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ez=function(e){var r=e.children,n=e.contentClassName,o=e.context,a=e.count,i=e.className,s=e.divider,l=e.icon,c=e.label,u=(e.record,e.spacing),d=void 0===u?1:u,p=e.syncWithLocation,f=void 0===p||p,m=e.value,h=ZF(e,["children","contentClassName","context","count","className","divider","icon","label","record","spacing","syncWithLocation","value"]),v=Ps(),y=J(),g={component:cp,to:JF(JF({},y),{pathname:m})};return"header"===o?function(){var e="string"===typeof c?v(c,{_:c}):c;return void 0!==a&&(e=t.createElement("span",null,e," (",a,")")),t.createElement(bN,JF({key:"tab-header-".concat(m),label:e,value:m,icon:l,className:zn("show-tab",i)},f?g:{},h))}():t.createElement(nz,{className:n,spacing:d,divider:s},t.Children.map(r,(function(e){return e&&(0,t.isValidElement)(e)?t.createElement(HT,{key:e.props.source,className:zn("ra-field",e.props.source&&"ra-field-".concat(e.props.source),rz.row,e.props.className)},e):null})))},tz="RaTab",rz={row:"".concat(tz,"-row")},nz=(0,En.Ay)(IO,{name:tz,overridesResolver:function(e,t){return t.root}})((function(){var e;return(e={})["& .".concat(rz.row)]={display:"inline"},e}));ez.propTypes={children:Bn().node,className:Bn().string,contentClassName:Bn().string,context:Bn().oneOf(["header","content"]),count:Bn().node,icon:Bn().element,label:Bn().oneOfType([Bn().string,Bn().element]).isRequired,path:Bn().string,spacing:Bn().any,value:Bn().oneOfType([Bn().string,Bn().number])};var oz=function(){return oz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oz.apply(this,arguments)},az=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iz=function(e){var r=e.children,n=e.className,o=e.spacing,a=e.divider,i=e.syncWithLocation,s=void 0===i||i,l=e.tabs,c=void 0===l?sz:l,u=(e.value,az(e,["children","className","spacing","divider","syncWithLocation","tabs","value"])),d=sh(e),p=t.Children.toArray(r).filter((function(e){return null!==e})),f=(0,t.useState)(0),m=f[0],h=f[1],v=function(e,t){s||h(t)};if(!d)return null;var y=function(){return(0,t.cloneElement)(c,{onChange:v,syncWithLocation:s,value:m},p)};return t.createElement(Xg,{value:e.record},t.createElement(uz,oz({className:n},dz(u)),s?t.createElement(xe,null,t.createElement(ge,{path:"/*",element:t.createElement(t.Fragment,null,y(),t.createElement(EM,null),t.createElement("div",{className:cz.content},t.createElement(ye,null)))},t.Children.map(p,(function(e,r){return(0,t.isValidElement)(e)?t.createElement(ge,{path:YF(e,r),element:(0,t.cloneElement)(e,{context:"content",spacing:o,divider:a})}):null})))):t.createElement(t.Fragment,null,y(),t.createElement(EM,null),t.createElement("div",{className:cz.content},t.Children.map(p,(function(e,r){return(0,t.isValidElement)(e)&&m===r?(0,t.cloneElement)(e,{context:"content",spacing:o,divider:a}):null}))))))};iz.Tab=ez,iz.propTypes={children:Bn().node,className:Bn().string,record:Bn().object,spacing:Bn().any,sx:Bn().any,syncWithLocation:Bn().bool,tabs:Bn().element,value:Bn().number};var sz=t.createElement(XF,null),lz="RaTabbedShowLayout",cz={content:"".concat(lz,"-content")},uz=(0,En.Ay)("div",{name:lz,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(cz.content)]={padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t})),dz=function(e){e.record,e.resource,e.initialValues,e.staticContext,e.translate,e.tabs;return az(e,["record","resource","initialValues","staticContext","translate","tabs"])},pz=function(){return pz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pz.apply(this,arguments)},fz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mz=function(e){var r=e.className,n=e.emptyText,o=e.source,a=e.choices,i=e.optionValue,s=void 0===i?"id":i,l=e.optionText,c=void 0===l?"name":l,u=e.translateChoice,d=void 0===u||u,p=fz(e,["className","emptyText","source","choices","optionValue","optionText","translateChoice"]),f=sh(e),m=dt()(f,o),h=JR({optionText:c,optionValue:s,translateChoice:d}),v=h.getChoiceText,y=h.getChoiceValue,g=Ps(),b=a.find((function(e){return y(e)===m}));if(!b)return n?t.createElement(Eu,pz({component:"span",variant:"body2",className:r},WC(p)),n&&g(n,{_:n})):null;var x=v(b);return t.createElement(Eu,pz({component:"span",variant:"body2",className:r},WC(p)),x)};mz.propTypes=pz(pz(pz({},Eu.propTypes),UC),{choices:Bn().arrayOf(Bn().object).isRequired,optionText:Bn().oneOfType([Bn().string,Bn().func,Bn().element]),optionValue:Bn().string,translateChoice:Bn().bool}),mz.displayName="SelectFieldImpl";var hz=qC(mz),vz=r(8397),yz=r(6061),gz=function(e){var r=e.selected,n=e.label,o=e.onToggle,a=e.onMove,i=e.source,s=e.index,l=Jg(),c=t.useRef(null),u=t.useRef(null),d=t.useRef(null),p=t.useCallback((function(e){u.current=e.clientX,d.current=e.clientY}),[]);return t.createElement(bz,{key:i,draggable:a?"true":void 0,onDrag:a?function(e){var t=e.target;t.classList.add("drag-active");var r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n&&(n.classList.contains("dragIcon")&&(n=n.parentNode),n!==t&&r===n.parentNode.closest("ul")&&(c.current=n.dataset.index,n===t.nextSibling&&(n=n.nextSibling),r.insertBefore(t,n)))}:void 0,onDragStart:a?function(){document.addEventListener("dragover",p)}:void 0,onDragEnd:a?function(e){var t=e.target,r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n||(n=d.current>t.closest("ul").getBoundingClientRect().bottom?r.lastChild:r.firstChild),n&&r===n.closest("ul")?a(t.dataset.index,c.current):(e.preventDefault(),e.stopPropagation()),t.classList.remove("drag-active"),document.removeEventListener("dragover",p)}:void 0,onDragOver:a?function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}:void 0,"data-index":s},t.createElement("label",{htmlFor:"switch_".concat(s)},t.createElement(s_,{checked:r,onChange:o,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),t.createElement(Eu,{variant:"body2",component:"span"},t.createElement(Lb,{label:n,source:i,resource:l}))),a&&t.createElement(yz.A,{className:"dragIcon",color:"disabled",fontSize:"small"}))},bz=(0,En.Ay)("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}})),xz=function(){return xz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xz.apply(this,arguments)},wz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Az=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Sz=function(e){var r=e.preferenceKey,n=Jg(e),o=r||"".concat(n,".datagrid"),a=t.useState(null),i=a[0],s=a[1],l=jt("preferences.".concat(o,".availableColumns"),[]),c=l[0],u=l[1],d=jt("preferences.".concat(o,".omit"),[])[0],p=jt("preferences.".concat(o,".columns"),c.filter((function(e){return!(null===d||void 0===d?void 0:d.includes(e.source))})).map((function(e){return e.index}))),f=p[0],m=p[1],h=Ps(),v=yr((function(e){return e.breakpoints.down("sm")})),y=h("ra.action.select_columns",{_:"Columns"}),g=function(e){s(e.currentTarget)},b=function(e){e.target.checked?m(c.filter((function(t){return t.index===e.target.name||f.includes(t.index)})).map((function(e){return e.index}))):m(f.filter((function(t){return t!==e.target.name})))},x=function(e,t){var r,n=c.findIndex((function(t){return t.index==e})),o=c.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?Az(Az(Az(Az([],c.slice(0,o),!0),[c[n]],!1),c.slice(o,n),!0),c.slice(n+1),!0):Az(Az(Az(Az([],c.slice(0,n),!0),c.slice(n+1,o+1),!0),[c[n]],!1),c.slice(o+1),!0),u(r),m((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return t.createElement(t.Fragment,null,v?t.createElement(qi,{title:y},t.createElement(js,xz({"aria-label":y,color:"primary",onClick:g,size:"large"},_z(e)),t.createElement(vz.A,null))):t.createElement(Oz,xz({size:"small",onClick:g,startIcon:t.createElement(vz.A,null)},_z(e)),y),t.createElement(Zc,{open:Boolean(i),anchorEl:i,onClose:function(){s(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},t.createElement(wd,{component:"ul",p:1,my:0},c.map((function(e){return t.createElement(gz,{key:e.index,source:e.source,label:e.label,index:e.index,selected:f.includes(e.index),onToggle:b,onMove:x})})))))},Oz=(0,En.Ay)(Il,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),_z=function(e){e.resource,e.preferenceKey;return wz(e,["resource","preferenceKey"])},Ez=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},kz=function(e){var r=e.name,n=void 0===r?"columns":r,o=e.availableName,a=void 0===o?"availableColumns":o,i=Ps(),s=Dp(a,[]),l=s[0],c=s[1],u=Dp("omit",[])[0],d=Dp(n,l.filter((function(e){return!(null===u||void 0===u?void 0:u.includes(e.source))})).map((function(e){return e.index}))),p=d[0],f=d[1],m=function(e){e.target.checked?f(l.filter((function(t){return t.index===e.target.name||p.includes(t.index)})).map((function(e){return e.index}))):f(p.filter((function(t){return t!==e.target.name})))},h=function(e,t){var r,n=l.findIndex((function(t){return t.index==e})),o=l.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?Ez(Ez(Ez(Ez([],l.slice(0,o),!0),[l[n]],!1),l.slice(o,n),!0),l.slice(n+1),!0):Ez(Ez(Ez(Ez([],l.slice(0,n),!0),l.slice(n+1,o+1),!0),[l[n]],!1),l.slice(o+1),!0),c(r),f((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return t.createElement(wd,{pt:.5},t.createElement(wd,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map((function(e){return t.createElement(gz,{key:e.index,source:e.source,label:e.label,index:e.index,selected:p.includes(e.index),onToggle:m,onMove:h})}))),t.createElement(wd,{onDrop:function(e){return e.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},t.createElement(Il,{size:"small",onClick:function(){f([])}},i("ra.inspector.hideAll",{_:"Hide All"})),t.createElement(Il,{size:"small",onClick:function(){f(l.map((function(e){return e.index})))}},i("ra.inspector.showAll",{_:"Show All"}))))},jz=function(){return Lh("ra.inspector.Datagrid.title",{_:"Datagrid"}),t.createElement(kz,{name:"columns",availableName:"availableColumns"})},Cz=function(){return Cz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cz.apply(this,arguments)},Pz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rz=function(e){var r=e.preferenceKey,n=e.omit,o=Pz(e,["preferenceKey","omit"]);if(o.optimized)throw new Error("DatagridConfigurable does not support the optimized prop");var a=Ps(),i=Jg(o),s=r||"".concat(i,".datagrid"),l=jt("preferences.".concat(s,".availableColumns"),[]),c=l[0],u=l[1],d=jt("preferences.".concat(s,".omit"),n),p=(d[0],d[1]);return t.useEffect((function(){var e=t.Children.toArray(o.children).filter((function(e){return t.isValidElement(e)})).map((function(e,t){return{index:String(t),source:e.props.source,label:e.props.label&&"string"===typeof e.props.label?e.props.label:e.props.source?void 0:a("ra.configurable.Datagrid.unlabeled",{column:t,_:"Unlabeled column #%{column}"})}}));e.length!==c.length&&(u(e),p(n))}),[c]),t.createElement(th,{editor:t.createElement(jz,null),preferenceKey:s,sx:{display:"block",minHeight:2}},t.createElement(Tz,Cz({},o)))};Rz.propTypes=LC.propTypes;var Tz=function(e){var r=e.children,n=Pz(e,["children"]),o=Dp("availableColumns",[])[0],a=Dp("omit",[])[0],i=Dp("columns",o.filter((function(e){return!(null===a||void 0===a?void 0:a.includes(e.source))})).map((function(e){return e.index})))[0],s=t.Children.toArray(r);return t.createElement(LC,Cz({},n),void 0===i?r:i.map((function(e){return s[e]})))},Iz=function(){return Iz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Iz.apply(this,arguments)},Mz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Nz=function(e){var r=e.className,n=e.source,o=void 0===n?"":n,a=e.render,i=Mz(e,["className","source","render"]),s=sh(e);return(0,t.useMemo)((function(){return s?t.createElement(Eu,Iz({component:"span",variant:"body2",className:r},WC(i)),a(s,o)):null}),[r,s,o,a,i])};Nz.propTypes=Iz(Iz(Iz({},Eu.propTypes),UC),{render:Bn().func.isRequired});var Lz=r(2509),Fz=r(6199),zz=r(9282),Dz=r(8874),Bz=r(9709),Vz=r(6529);const Wz=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[100,500,1e3,2e3]}),Uz=e=>{const t=Ps();return(0,Jt.jsx)(UP,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:(0,Jt.jsx)(Vz.A,{})})},qz=e=>(0,Jt.jsx)(bE,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:(0,Jt.jsx)(Vz.A,{})}),Hz=e=>{const{selectedIds:t}=BA(),r=Rt(),n=rl(),o=jL("rooms"),a=Ew(),{mutate:i,isLoading:s}=(0,d.useMutation)((()=>a.createMany("room_directory",{ids:t,data:{}})),{onSuccess:()=>{r("resources.room_directory.action.send_success"),o(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return(0,Jt.jsx)(jh,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:s,children:(0,Jt.jsx)(Vz.A,{})})},$z=e=>{const t=sh(),r=Rt(),n=rl(),[o,{isLoading:a}]=lR();return(0,Jt.jsx)(jh,{...e,label:"resources.room_directory.action.create",onClick:()=>{o("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})},disabled:a,children:(0,Jt.jsx)(Vz.A,{})})},Qz=()=>(0,Jt.jsxs)(ww,{children:[(0,Jt.jsx)(Sz,{}),(0,Jt.jsx)($A,{})]}),Kz={name:"room_directory",icon:Vz.A,list:()=>(0,Jt.jsx)(Nk,{pagination:(0,Jt.jsx)(Wz,{}),perPage:100,actions:(0,Jt.jsx)(Qz,{}),children:(0,Jt.jsxs)(Rz,{rowClick:(e,t,r)=>"/rooms/"+e+"/show",bulkActionButtons:(0,Jt.jsx)(qz,{}),omit:["room_id","canonical_alias","topic"],children:[(0,Jt.jsx)(kL,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),(0,Jt.jsx)(GC,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),(0,Jt.jsx)(GC,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(GC,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),(0,Jt.jsx)(GC,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),(0,Jt.jsx)(_L,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),(0,Jt.jsx)(eP,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),(0,Jt.jsx)(eP,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})})},Gz={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Xz=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),Yz=()=>{const e=sh(),t=Ps();var r="";return e&&(r=""!==e.name?e.name:e.id),(0,Jt.jsxs)("span",{children:[t("resources.rooms.name",1)," ",r]})},Jz=()=>{const e=sh();var t="";return e&&(t=e.public),(0,Jt.jsxs)(ww,{children:[!1===t&&(0,Jt.jsx)($z,{}),!0===t&&(0,Jt.jsx)(Uz,{}),(0,Jt.jsx)(UP,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},Zz=()=>(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(Hz,{}),(0,Jt.jsx)(qz,{}),(0,Jt.jsx)(bE,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),eD=[(0,Jt.jsx)(cO,{source:"search_term",alwaysOn:!0})],tD=()=>(0,Jt.jsxs)(ww,{children:[(0,Jt.jsx)(Sz,{}),(0,Jt.jsx)($A,{})]}),rD={name:"rooms",icon:Ap.A,list:e=>{const t=vo();return(0,Jt.jsx)(Nk,{...e,pagination:(0,Jt.jsx)(Xz,{}),sort:{field:"name",order:"ASC"},filters:eD,actions:(0,Jt.jsx)(tD,{}),children:(0,Jt.jsxs)(Rz,{rowClick:"show",bulkActionButtons:(0,Jt.jsx)(Zz,{}),omit:["joined_local_members","state_events","version","federatable"],children:[(0,Jt.jsx)(eP,{source:"is_encrypted",sortBy:"encryption",TrueIcon:Fz.A,FalseIcon:zz.A,label:(0,Jt.jsx)(Fz.A,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),(0,Jt.jsx)(Nz,{source:"name",render:e=>e.name||e.canonical_alias||e.id}),(0,Jt.jsx)(GC,{source:"joined_members"}),(0,Jt.jsx)(GC,{source:"joined_local_members"}),(0,Jt.jsx)(GC,{source:"state_events"}),(0,Jt.jsx)(GC,{source:"version"}),(0,Jt.jsx)(eP,{source:"federatable"}),(0,Jt.jsx)(eP,{source:"public"})]})})},show:e=>{const t=Ps();return(0,Jt.jsx)(QF,{...e,actions:(0,Jt.jsx)(Jz,{}),title:(0,Jt.jsx)(Yz,{}),children:(0,Jt.jsxs)(iz,{children:[(0,Jt.jsxs)(ez,{label:"synapseadmin.rooms.tabs.basic",icon:(0,Jt.jsx)(Ap.A,{}),children:[(0,Jt.jsx)(GC,{source:"room_id"}),(0,Jt.jsx)(GC,{source:"name"}),(0,Jt.jsx)(GC,{source:"topic"}),(0,Jt.jsx)(GC,{source:"canonical_alias"}),(0,Jt.jsx)(cL,{source:"creator",reference:"users",children:(0,Jt.jsx)(GC,{source:"id"})})]}),(0,Jt.jsxs)(ez,{label:"synapseadmin.rooms.tabs.detail",icon:(0,Jt.jsx)(Dz.A,{}),path:"detail",children:[(0,Jt.jsx)(GC,{source:"joined_members"}),(0,Jt.jsx)(GC,{source:"joined_local_members"}),(0,Jt.jsx)(GC,{source:"joined_local_devices"}),(0,Jt.jsx)(GC,{source:"state_events"}),(0,Jt.jsx)(GC,{source:"version"}),(0,Jt.jsx)(GC,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),(0,Jt.jsx)(ez,{label:"synapseadmin.rooms.tabs.members",icon:(0,Jt.jsx)(gw.A,{}),path:"members",children:(0,Jt.jsx)(zN,{reference:"room_members",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},rowClick:(e,t,r)=>"/users/"+e,bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"id",sortable:!1,label:"resources.users.fields.id"}),(0,Jt.jsx)(cL,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:(0,Jt.jsx)(GC,{source:"displayname",sortable:!1})})]})})}),(0,Jt.jsxs)(ez,{label:"synapseadmin.rooms.tabs.permission",icon:(0,Jt.jsx)(TR.A,{}),path:"permission",children:[(0,Jt.jsx)(eP,{source:"federatable"}),(0,Jt.jsx)(eP,{source:"public"}),(0,Jt.jsx)(hz,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),(0,Jt.jsx)(hz,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),(0,Jt.jsx)(hz,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),(0,Jt.jsx)(ez,{label:t("resources.room_state.name",{smart_count:2}),icon:(0,Jt.jsx)(Bz.A,{}),path:"state",children:(0,Jt.jsx)(zN,{reference:"room_state",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"type",sortable:!1}),(0,Jt.jsx)(sP,{source:"origin_server_ts",showTime:!0,options:Gz,sortable:!1}),(0,Jt.jsx)(GC,{source:"content",sortable:!1}),(0,Jt.jsx)(cL,{source:"sender",reference:"users",sortable:!1,children:(0,Jt.jsx)(GC,{source:"id"})})]})})}),(0,Jt.jsxs)(ez,{label:"resources.forward_extremities.name",icon:(0,Jt.jsx)(Lz.A,{}),path:"forward_extremities",children:[(0,Jt.jsx)(wd,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),(0,Jt.jsx)(zN,{reference:"forward_extremities",target:"room_id",addLabel:!1,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"id",sortable:!1}),(0,Jt.jsx)(sP,{source:"received_ts",showTime:!0,options:Gz,sortable:!1}),(0,Jt.jsx)(_L,{source:"depth",sortable:!1}),(0,Jt.jsx)(GC,{source:"state_group",sortable:!1})]})})]})]})})}};var nD=r(8570);const oD=e=>{const{className:r,exporter:n,filters:o,maxResults:a,...i}=e,{sort:s,resource:l,displayedFilters:c,filterValues:u,showFilter:d,total:p}=BA();return(0,Jt.jsxs)(ww,{className:r,...gA(i),children:[o&&(0,t.cloneElement)(o,{resource:l,showFilter:d,displayedFilters:c,filterValues:u,context:"button"}),(0,Jt.jsx)(tF,{}),(0,Jt.jsx)($A,{disabled:0===p,resource:l,sort:s,filterValues:u,maxResults:a})]})},aD=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),iD=[(0,Jt.jsx)(cO,{source:"search_term",alwaysOn:!0})],sD={name:"user_media_statistics",icon:nD.A,list:e=>(0,Jt.jsx)(Nk,{...e,actions:(0,Jt.jsx)(oD,{}),filters:iD,pagination:(0,Jt.jsx)(aD,{}),sort:{field:"media_length",order:"DESC"},children:(0,Jt.jsxs)(LC,{rowClick:(e,t,r)=>"/users/"+e+"/media",bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"user_id",label:"resources.users.fields.id"}),(0,Jt.jsx)(GC,{source:"displayname",label:"resources.users.fields.displayname"}),(0,Jt.jsx)(_L,{source:"media_count"}),(0,Jt.jsx)(_L,{source:"media_length"})]})})};var lD=r(3102);const cD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},uD=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),dD=()=>{const e=sh();return(0,Jt.jsx)(ww,{children:(0,Jt.jsx)(UP,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},pD={name:"reports",icon:lD.A,list:e=>(0,Jt.jsx)(Nk,{...e,pagination:(0,Jt.jsx)(uD,{}),sort:{field:"received_ts",order:"DESC"},children:(0,Jt.jsxs)(LC,{rowClick:"show",bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"id",sortable:!1}),(0,Jt.jsx)(sP,{source:"received_ts",showTime:!0,options:cD,sortable:!0}),(0,Jt.jsx)(GC,{sortable:!1,source:"user_id"}),(0,Jt.jsx)(GC,{sortable:!1,source:"name"}),(0,Jt.jsx)(GC,{sortable:!1,source:"score"})]})}),show:e=>{const t=Ps();return(0,Jt.jsx)(QF,{...e,actions:(0,Jt.jsx)(dD,{}),children:(0,Jt.jsxs)(iz,{children:[(0,Jt.jsxs)(ez,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:(0,Jt.jsx)(Ap.A,{}),children:[(0,Jt.jsx)(sP,{source:"received_ts",showTime:!0,options:cD,sortable:!0}),(0,Jt.jsx)(cL,{source:"user_id",reference:"users",children:(0,Jt.jsx)(GC,{source:"id"})}),(0,Jt.jsx)(_L,{source:"score"}),(0,Jt.jsx)(GC,{source:"reason"}),(0,Jt.jsx)(GC,{source:"name"}),(0,Jt.jsx)(GC,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),(0,Jt.jsx)(cL,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:(0,Jt.jsx)(GC,{source:"id"})})]}),(0,Jt.jsxs)(ez,{label:"synapseadmin.reports.tabs.detail",icon:(0,Jt.jsx)(Dz.A,{}),path:"detail",children:[(0,Jt.jsx)(sP,{source:"event_json.origin_server_ts",showTime:!0,options:cD,sortable:!0}),(0,Jt.jsx)(cL,{source:"sender",reference:"users",children:(0,Jt.jsx)(GC,{source:"id"})}),(0,Jt.jsx)(GC,{source:"sender",label:"Sender (raw user ID)"}),(0,Jt.jsx)(GC,{source:"event_id"}),(0,Jt.jsx)(GC,{source:"event_json.origin"}),(0,Jt.jsx)(GC,{source:"event_json.type"}),(0,Jt.jsx)(GC,{source:"event_json.content.msgtype"}),(0,Jt.jsx)(GC,{source:"event_json.content.body"}),(0,Jt.jsx)(GC,{source:"event_json.content.format"}),(0,Jt.jsx)(GC,{source:"event_json.content.formatted_body"}),(0,Jt.jsx)(GC,{source:"event_json.content.algorithm"}),(0,Jt.jsx)(GC,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})}};var fD=r(2126),mD=r(6404);const hD=()=>(0,Jt.jsx)(nO,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),vD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},yD=(e,t)=>({backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}),gD=[(0,Jt.jsx)(cO,{source:"destination",alwaysOn:!0})],bD=()=>{const e=sh(),t=rl(),r=Rt(),[n,{isLoading:o}]=_P();if(!e||!e.failure_ts)return null;return(0,Jt.jsx)(jh,{label:"resources.destinations.action.reconnect",onClick:o=>{o.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})},disabled:o,children:(0,Jt.jsx)(fD.A,{})})},xD=()=>(0,Jt.jsx)(ww,{children:(0,Jt.jsx)(bD,{})}),wD=()=>{const e=sh(),t=Ps();return(0,Jt.jsxs)("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},AD={name:"destinations",icon:mD.A,list:e=>(0,Jt.jsx)(Nk,{...e,filters:gD,pagination:(0,Jt.jsx)(hD,{}),sort:{field:"destination",order:"ASC"},children:(0,Jt.jsxs)(LC,{rowSx:yD,rowClick:(e,t,r)=>"".concat(e,"/show/rooms"),bulkActionButtons:!1,children:[(0,Jt.jsx)(GC,{source:"destination"}),(0,Jt.jsx)(sP,{source:"failure_ts",showTime:!0,options:vD}),(0,Jt.jsx)(sP,{source:"retry_last_ts",showTime:!0,options:vD}),(0,Jt.jsx)(GC,{source:"retry_interval"}),(0,Jt.jsx)(GC,{source:"last_successful_stream_ordering"}),(0,Jt.jsx)(bD,{})]})}),show:e=>{const t=Ps();return(0,Jt.jsx)(QF,{actions:(0,Jt.jsx)(xD,{}),title:(0,Jt.jsx)(wD,{}),...e,children:(0,Jt.jsxs)(iz,{children:[(0,Jt.jsxs)(ez,{label:"status",icon:(0,Jt.jsx)(Ap.A,{}),children:[(0,Jt.jsx)(GC,{source:"destination"}),(0,Jt.jsx)(sP,{source:"failure_ts",showTime:!0,options:vD}),(0,Jt.jsx)(sP,{source:"retry_last_ts",showTime:!0,options:vD}),(0,Jt.jsx)(GC,{source:"retry_interval"}),(0,Jt.jsx)(GC,{source:"last_successful_stream_ordering"})]}),(0,Jt.jsx)(ez,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Jt.jsx)(Vz.A,{}),path:"rooms",children:(0,Jt.jsx)(zN,{reference:"destination_rooms",target:"destination",addLabel:!1,pagination:(0,Jt.jsx)(hD,{}),perPage:50,children:(0,Jt.jsxs)(LC,{style:{width:"100%"},rowClick:(e,t,r)=>"/rooms/".concat(e,"/show"),children:[(0,Jt.jsx)(GC,{source:"room_id",label:"resources.rooms.fields.room_id"}),(0,Jt.jsx)(GC,{source:"stream_ordering",sortable:!1}),(0,Jt.jsx)(cL,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Jt.jsx)(GC,{source:"name",sortable:!1})})]})})})]})})}};var SD=r(4216);const OD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},_D=[sy(/^[A-Za-z0-9._~-]{0,64}$/)],ED=[iy()],kD=[iy(),ay(64)],jD=e=>{const t=new Date(e);return isNaN(t)?0:t.getTime()},CD=e=>{if(void 0===e||null===e)return;const t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return"".concat(n,"-").concat(o,"-").concat(a,"T").concat(i,":").concat(s)},PD=[(0,Jt.jsx)(d_,{source:"valid",alwaysOn:!0})],RD={name:"registration_tokens",icon:SD.A,list:e=>(0,Jt.jsx)(Nk,{...e,filters:PD,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:(0,Jt.jsxs)(LC,{rowClick:"edit",children:[(0,Jt.jsx)(GC,{source:"token",sortable:!1}),(0,Jt.jsx)(_L,{source:"uses_allowed",sortable:!1}),(0,Jt.jsx)(_L,{source:"pending",sortable:!1}),(0,Jt.jsx)(_L,{source:"completed",sortable:!1}),(0,Jt.jsx)(sP,{source:"expiry_time",showTime:!0,options:OD,sortable:!1})]})}),edit:e=>(0,Jt.jsx)(wM,{...e,children:(0,Jt.jsxs)(jR,{children:[(0,Jt.jsx)(cx,{source:"token",disabled:!0}),(0,Jt.jsx)(KL,{source:"pending",disabled:!0}),(0,Jt.jsx)(KL,{source:"completed",disabled:!0}),(0,Jt.jsx)(KL,{source:"uses_allowed",validate:ED,step:1}),(0,Jt.jsx)(zL,{source:"expiry_time",parse:jD,format:CD})]})}),create:e=>(0,Jt.jsx)(_R,{...e,redirect:"list",children:(0,Jt.jsxs)(jR,{toolbar:(0,Jt.jsx)($P,{children:(0,Jt.jsx)(hP,{alwaysEnable:!0})}),children:[(0,Jt.jsx)(cx,{source:"token",autoComplete:"off",validate:_D,resettable:!0}),(0,Jt.jsx)(KL,{source:"length",validate:kD,helperText:"resources.registration_tokens.helper.length",step:1}),(0,Jt.jsx)(KL,{source:"uses_allowed",validate:ED,step:1}),(0,Jt.jsx)(zL,{source:"expiry_time",parse:jD})]})})};function TD(e){return(0,Pn.Ay)("MuiCardActions",e)}(0,Cn.A)("MuiCardActions",["root","spacing"]);const ID=["disableSpacing","className"],MD=(0,En.Ay)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,Se.A)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),ND=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiCardActions"}),{disableSpacing:n=!1,className:o}=r,a=(0,Kt.A)(r,ID),i=(0,Se.A)({},r,{disableSpacing:n}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,On.A)(n,TD,t)})(i);return(0,Jt.jsx)(MD,(0,Se.A)({className:(0,Sn.A)(s.root,o),ownerState:i,ref:t},a))})),LD=ND,FD=(0,En.Ay)(wd)((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1em)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{minWidth:"30em",marginTop:"6em",marginBottom:"6em"},"& .avatar":{margin:"1em",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:t.palette.grey[500]},"& .hint":{marginTop:"1em",display:"flex",justifyContent:"center",color:t.palette.grey[600]},"& .form":{padding:"0 1em 1em 1em"},"& .input":{marginTop:"1em"},"& .actions":{padding:"0 1em 1em 1em"},"& .serverVersion":{color:t.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginBottom:"1em",marginLeft:"0.5em"}}})),zD=()=>{const e=Kv(),r=Rt(),[n,o]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!0),[s,l]=fd(),c=Ps(),u=localStorage.getItem("base_url"),d={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER,[p,f]=(0,t.useState)(""),m=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(m){const t=m[1];console.log("SSO token is",t),window.history.replaceState({},"",window.location.href.replace(m[0],"#").split("#")[0]);const r=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),r){const n={base_url:r,username:null,password:null,loginToken:t};console.log("Base URL is:",r),console.log("SSO Token is:",t),console.log("Let's try token login..."),e(n).catch((e=>{alert("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error"),console.error(e)}))}}const h=e=>{let{meta:{touched:t,error:r}={},input:{...n},...o}=e;return(0,Jt.jsx)($m,{error:!(!t||!r),helperText:t&&r,...n,...o,fullWidth:!0})},v=e=>e.match(/^(http|https):\/\//)?e.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:c("synapseadmin.auth.url_error"):c("synapseadmin.auth.protocol_error"),y=e=>{let{formData:r}=e;const o=My(),[s,l]=(0,t.useState)("");return(0,t.useEffect)((()=>{var e;(e=r.base_url,/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e))&&((async e=>{const t="".concat(e,"/_synapse/admin/v1/server_version");return(await Zx(t,{method:"GET"})).json.server_version})(r.base_url).then((e=>l("".concat(c("synapseadmin.auth.server_version")," ").concat(e)))).catch((()=>l(""))),(async e=>{const t="".concat(e,"/_matrix/client/r0/login");return(await Zx(t,{method:"GET"})).json.flows})(r.base_url).then((e=>{const t=void 0!==e.find((e=>"m.login.password"===e.type)),n=void 0!==e.find((e=>"m.login.sso"===e.type));i(t),f(n?r.base_url:"")})).catch((()=>f(""))))}),[r.base_url]),(0,Jt.jsxs)(Jt.Fragment,{children:[(0,Jt.jsx)(wd,{children:(0,Jt.jsx)(cx,{autoFocus:!0,name:"username",component:h,label:"ra.auth.username",disabled:n||!a,onBlur:e=>{var t;if(r.base_url||d)return;const n=null===(t=(e=>{var t;return null===(t=/^@(?<name>[a-zA-Z0-9._=\-/]+):(?<domain>[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))||void 0===t?void 0:t.groups})(r.username))||void 0===t?void 0:t.domain;n&&(async e=>{const t="https://".concat(e,"/.well-known/matrix/client");try{return(await Zx(t,{method:"GET"}))["m.homeserver"].base_url}catch{return"https://".concat(e)}})(n).then((e=>o.setValue("base_url",e)))},resettable:!0,fullWidth:!0,className:"input",validate:ny()})}),(0,Jt.jsx)(wd,{children:(0,Jt.jsx)(LR,{name:"password",component:h,label:"ra.auth.password",type:"password",disabled:n||!a,resettable:!0,fullWidth:!0,className:"input",validate:ny()})}),(0,Jt.jsx)(wd,{children:(0,Jt.jsx)(cx,{name:"base_url",component:h,label:"synapseadmin.auth.base_url",disabled:d||n,resettable:!0,fullWidth:!0,className:"input",validate:[ny(),v]})}),(0,Jt.jsx)(Eu,{className:"serverVersion",children:s})]})};return(0,Jt.jsxs)(gb,{defaultValues:{base_url:d||u},onSubmit:t=>{o(!0),e(t).catch((e=>{o(!1),r("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"warning"})}))},mode:"onTouched",children:[(0,Jt.jsx)(FD,{children:(0,Jt.jsxs)(Vv,{className:"card",children:[(0,Jt.jsx)(wd,{className:"avatar",children:n?(0,Jt.jsx)(el,{size:25,thickness:2}):(0,Jt.jsx)(Ql,{className:"icon",children:(0,Jt.jsx)(Wv.A,{})})}),(0,Jt.jsx)(wd,{className:"hint",children:c("synapseadmin.auth.welcome")}),(0,Jt.jsxs)(wd,{className:"form",children:[(0,Jt.jsxs)(Bm,{value:s,onChange:e=>{l(e.target.value)},fullWidth:!0,disabled:n,className:"input",children:[(0,Jt.jsx)(Bu,{value:"de",children:"Deutsch"}),(0,Jt.jsx)(Bu,{value:"en",children:"English"}),(0,Jt.jsx)(Bu,{value:"fr",children:"Fran\xe7ais"}),(0,Jt.jsx)(Bu,{value:"it",children:"Italiano"}),(0,Jt.jsx)(Bu,{value:"zh",children:"\u7b80\u4f53\u4e2d\u6587"})]}),(0,Jt.jsx)(lI,{children:e=>(0,Jt.jsx)(y,{...e})}),(0,Jt.jsxs)(LD,{className:"actions",children:[(0,Jt.jsx)(Il,{variant:"contained",type:"submit",color:"primary",disabled:n||!a,fullWidth:!0,children:c("ra.auth.sign_in")}),(0,Jt.jsx)(Il,{variant:"contained",color:"secondary",onClick:()=>{localStorage.setItem("sso_base_url",p);const e="".concat(p,"/_matrix/client/r0/login/sso/redirect?redirectUrl=").concat(encodeURIComponent(window.location.href));window.location.href=e},disabled:n||""===p,fullWidth:!0,children:c("synapseadmin.auth.sso_sign_in")})]})]})]})}),(0,Jt.jsx)(Iv,{})]})};var DD=r(3385),BD=r(410);const VD=["className","component","disableGutters","fixed","maxWidth","classes"],WD=(0,dO.A)(),UD=AO("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,BD.A)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),qD=e=>(0,SO.A)({props:e,name:"MuiContainer",defaultTheme:WD});const HD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:r=UD,useThemeProps:n=qD,componentName:o="MuiContainer"}=e,a=r((e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:r}=e;return r.fixed&&Object.keys(t.breakpoints.values).reduce(((e,r)=>{const n=r,o=t.breakpoints.values[n];return 0!==o&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:r}=e;return(0,Se.A)({},"xs"===r.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},r.maxWidth&&"xs"!==r.maxWidth&&{[t.breakpoints.up(r.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}})})),i=t.forwardRef((function(e,t){const r=n(e),{className:i,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=r,d=(0,Kt.A)(r,VD),p=(0,Se.A)({},r,{component:s,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:r,fixed:n,disableGutters:o,maxWidth:a}=e,i={root:["root",a&&"maxWidth".concat((0,BD.A)(String(a))),n&&"fixed",o&&"disableGutters"]};return(0,On.A)(i,(e=>(0,Pn.Ay)(t,e)),r)})(p,o);return(0,Jt.jsx)(a,(0,Se.A)({as:s,ownerState:p,className:(0,Sn.A)(f.root,i),ref:t},d))}));return i}({createStyledComponent:(0,En.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["maxWidth".concat((0,$n.A)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,_n.A)({props:e,name:"MuiContainer"})}),$D=HD;function QD(e){return(0,Pn.Ay)("MuiCardHeader",e)}const KD=(0,Cn.A)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),GD=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],XD=(0,En.Ay)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,Se.A)({["& .".concat(KD.title)]:t.title,["& .".concat(KD.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),YD=(0,En.Ay)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),JD=(0,En.Ay)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),ZD=(0,En.Ay)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),eB=t.forwardRef((function(e,t){const r=(0,_n.A)({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:a,component:i="div",disableTypography:s=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d}=r,p=(0,Kt.A)(r,GD),f=(0,Se.A)({},r,{component:i,disableTypography:s}),m=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},QD,t)})(f);let h=u;null==h||h.type===Eu||s||(h=(0,Jt.jsx)(Eu,(0,Se.A)({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let v=l;return null==v||v.type===Eu||s||(v=(0,Jt.jsx)(Eu,(0,Se.A)({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},c,{children:v}))),(0,Jt.jsxs)(XD,(0,Se.A)({className:(0,Sn.A)(m.root,a),as:i,ref:t,ownerState:f},p,{children:[o&&(0,Jt.jsx)(YD,{className:m.avatar,ownerState:f,children:o}),(0,Jt.jsxs)(ZD,{className:m.content,ownerState:f,children:[h,v]}),n&&(0,Jt.jsx)(JD,{className:m.action,ownerState:f,children:n})]}))})),tB=eB,rB=["className","children","classes","IconComponent","input","inputProps","variant"],nB=["root"],oB=(0,Jt.jsx)(xf,{}),aB=t.forwardRef((function(e,r){const n=(0,_n.A)({name:"MuiNativeSelect",props:e}),{className:o,children:a,classes:i={},IconComponent:s=Tm,input:l=oB,inputProps:c}=n,u=(0,Kt.A)(n,rB),d=Gp({props:n,muiFormControl:Yp(),states:["variant"]}),p=(e=>{const{classes:t}=e;return(0,On.A)({root:["root"]},dm,t)})((0,Se.A)({},n,{classes:i})),f=(0,Kt.A)(i,nB);return(0,Jt.jsx)(t.Fragment,{children:t.cloneElement(l,(0,Se.A)({inputComponent:bm,inputProps:(0,Se.A)({children:a,classes:f,IconComponent:s,variant:d.variant,type:void 0},c,l?l.props.inputProps:{}),ref:r},u,{className:(0,Sn.A)(p.root,l.props.className,o)}))})}));aB.muiName="Select";const iB=aB,sB=["id","displayname"].sort(),lB=["user_type","guest","admin","deactivated","avatar_url","password"].sort();function cB(e){let{value:t,text:r}=e;const n=Ps();return(0,Jt.jsx)("option",{value:t,children:n(r)})}const uB=()=>{const[e,r]=(0,t.useState)(null),[n,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(null),[s,l]=(0,t.useState)(!0),[c,u]=(0,t.useState)(null),[d,p]=(0,t.useState)(null),[f,m]=(0,t.useState)(null),[h,v]=(0,t.useState)("stop"),[y,g]=(0,t.useState)(!0),[b,x]=(0,t.useState)("ignore"),w=Ps(),A=Rt(),S=Ew(),O=(e,t)=>{let{data:r,meta:n,errors:o}=e,{setValues:a,setStats:i,setError:s}=t,l=Array.from(sB),c=Array.from(lB);if(n.fields.forEach((e=>{l.includes(e)&&(l=l.filter((t=>t!==e))),c.includes(e)&&(c=c.filter((t=>t!==e)))})),0!==l.length)return s(w("import_users.error.required_field",{field:l[0]})),!1;let u={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:r.length};return r.forEach(((e,t)=>{void 0===e.user_type||""===e.user_type?u.user_types.default++:u.user_types[e.user_type]+=1,n.fields.includes("name")&&delete e.name,n.fields.includes("user_type")&&delete e.user_type,n.fields.includes("is_admin")&&(e.admin=e.is_admin,delete e.is_admin),["is_guest","admin","deactivated"].forEach((r=>{"true"===e[r]?(u[r]++,e[r]=!0):("false"!==e[r]&&""!==e[r]&&o.push(w("import_users.error.invalid_value",{field:r,row:t})),e[r]=!1)})),void 0!==e.password&&""!==e.password&&u.password++,void 0!==e.avatar_url&&""!==e.avatar_url&&u.avatar_url++,void 0!==e.id&&""!==e.id&&u.id++})),o.length>0&&s(o),i(u),a(r),!0},_=async(e,t,r,n,o,a,i,s)=>{let l=[],c=[],u=0,d=t.length;try{i({done:u,limit:d});for(const s of t){let d={},p={};"ignore"!==o&&void 0!==s.id&&void 0!==s.password&&!1!==n||(p=fF(),"ignore"!==o&&void 0!==s.id&&delete p.id,!1!==n&&void 0!==s.password&&""!==s.password&&delete p.password),Object.assign(d,s),Object.assign(d,p),console.log("will check for existence of record "+JSON.stringify(d));let f=0;const m=t=>e.getOne("users",{id:t.id}).then((async e=>{if(console.log("already existed"),"update"===o||"skip"===r)l.push(t);else{if("stop"===r)throw new Error(w("import_users.error.id_exits",{id:t.id}));{const e=fF(),r=Object.assign({},t,{id:e.id});f++,f>512?(console.warn("retry loop got stuck? pathological situation?"),l.push(t)):await m(r)}}}),(async r=>{console.log("OK to create record "+t.id+" ("+t.displayname+")."),a||await e.create("users",{data:t}),c.push(t)}));await m(d),u++,i({done:u,limit:t.length})}i(null)}catch(AB){s(w("import_users.error.at_entry",{entry:u+1,message:AB.message})),i(null)}return{skippedRecords:l,erroredRecords:[],succeededRecords:c,totalRecordCount:d,changeStats:{toAdmin:0,toGuest:0,toRegular:0,replacedPassword:0},wasDryRun:a}},E=a&&!d&&[(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.importstats.header")}),(0,Jt.jsxs)(Qv,{children:[(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.users_total",a.total)}),(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.guest_count",a.is_guest)}),(0,Jt.jsx)("div",{children:w("import_users.cards.importstats.admin_count",a.admin)})]})]}),(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.ids.header")}),(0,Jt.jsxs)(Qv,{children:[(0,Jt.jsx)("div",{children:a.id===a.total?w("import_users.cards.ids.all_ids_present"):w("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?(0,Jt.jsx)("div",{children:(0,Jt.jsxs)(iB,{onChange:async e=>{if(null!==c)return;const t=e.target.value;x(t)},value:b,enabled:(null!==c).toString(),children:[(0,Jt.jsx)(cB,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),(0,Jt.jsx)(cB,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.passwords.header")}),(0,Jt.jsxs)(Qv,{children:[(0,Jt.jsx)("div",{children:a.password===a.total?w("import_users.cards.passwords.all_passwords_present"):w("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?(0,Jt.jsx)("div",{children:(0,Jt.jsx)(BO,{control:(0,Jt.jsx)(gj,{checked:y,enabled:(null!==c).toString(),onChange:e=>{null===c&&g(e.target.checked)}}),label:w("import_users.cards.passwords.use_passwords")})}):""]})]})];let k=a&&!d&&(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.conflicts.header")}),(0,Jt.jsx)(Qv,{children:(0,Jt.jsx)("div",{children:(0,Jt.jsxs)(iB,{onChange:async e=>{if(null!==c)return;const t=e.target.value;v(t)},value:h,enabled:(null!==c).toString(),children:[(0,Jt.jsx)(cB,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),(0,Jt.jsx)(cB,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),j=n&&(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.error.error")}),(0,Jt.jsx)(Qv,{children:(Array.isArray(n)?n:[n]).map((e=>(0,Jt.jsx)("div",{children:e})))})]}),C=!d&&(0,Jt.jsxs)($D,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.upload.header")}),(0,Jt.jsxs)(Qv,{children:[w("import_users.cards.upload.explanation"),(0,Jt.jsx)("a",{href:"./data/example.csv",children:"example.csv"}),(0,Jt.jsx)("br",{}),(0,Jt.jsx)("br",{}),(0,Jt.jsx)("input",{type:"file",onChange:async e=>{if(null!==c)return;r(null),o(null),i(null),p(null);const t=e.target.files?e.target.files[0]:null;if(t.size>1e8){const e=w("import_users.errors.unreasonably_big",{size:(t.size/1048576).toFixed(2)});return A(e),void o(e)}try{(0,DD.parse)(t,{header:!0,skipEmptyLines:!0,complete:e=>{e.error&&o(e.error),O(e,{setValues:r,setStats:i,setError:o})}})}catch{return o(!0),null}},enabled:(null!==c).toString()})]})]}),P=d&&(0,Jt.jsxs)(Qv,{children:[(0,Jt.jsx)(tB,{title:w("import_users.cards.results.header")}),(0,Jt.jsxs)("div",{children:[w("import_users.cards.results.total",d.totalRecordCount),(0,Jt.jsx)("br",{}),w("import_users.cards.results.successful",d.succeededRecords.length),(0,Jt.jsx)("br",{}),d.skippedRecords.length?[w("import_users.cards.results.skipped",d.skippedRecords.length),(0,Jt.jsx)("div",{children:(0,Jt.jsx)("button",{onClick:()=>{const e=document.createElement("a");console.log(f);const t=new Blob([f],{type:"text/comma-separated-values"});e.href=URL.createObjectURL(t),e.download="skippedRecords.csv",document.body.appendChild(e),e.click()},children:w("import_users.cards.results.download_skipped")})}),(0,Jt.jsx)("br",{})]:"",d.erroredRecords.length?[w("import_users.cards.results.skipped",d.erroredRecords.length),(0,Jt.jsx)("br",{})]:"",(0,Jt.jsx)("br",{}),d.wasDryRun&&[w("import_users.cards.results.simulated_only"),(0,Jt.jsx)("br",{})]]})]}),R=!e||0===e.length||d?void 0:(0,Jt.jsxs)(LD,{children:[(0,Jt.jsx)(BO,{control:(0,Jt.jsx)(gj,{checked:s,onChange:e=>{null===c&&l(e.target.checked)},enabled:(null!==c).toString()}),label:w("import_users.cards.startImport.simulate_only")}),(0,Jt.jsx)(Il,{size:"large",onClick:async t=>{if(null!==c)return void A("import_users.errors.already_in_progress");const r=await _(S,e,h,y,b,s,u,o);p(r),m((0,DD.unparse)(r.skippedRecords)),console.log("Skipped records:"),console.log(f)},enabled:(null!==c).toString(),children:w("import_users.cards.startImport.run_import")}),null!==c?(0,Jt.jsxs)("div",{children:[c.done," of ",c.limit," done"]}):null]}),T=[];C&&T.push(C),j&&T.push(j),k&&T.push(k),E&&T.push(...E),R&&T.push(R),P&&T.push(P);let I=(0,Jt.jsx)(Vv,{children:T});return[(0,Jt.jsx)(yh,{defaultTitle:w("import_users.title")}),I]};var dB=r(3087),pB=r.n(dB);const fB={...pB(),synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",username_error:"Bitte vollst\xe4ndigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine g\xfcltige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ung\xfcltiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu gro\xdf f\xfcr den Import (%{size} Megabytes)",already_in_progress:"Es l\xe4uft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} G\xe4ste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und \xfcberspringe fehlerhafte Eintr\xe4ge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Eintr\xe4ge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passw\xf6rter",all_passwords_present:"Passw\xf6rter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Eintr\xe4ge mit Passw\xf6rtern",use_passwords:"Verwende Passw\xf6rter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier k\xf6nnen Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu \xe4ndern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier k\xf6nnen Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Eintr\xe4ge insgesamt",successful:"%{smart_count} Eintr\xe4ge erfolgreich importiert",skipped:"%{smart_count} Eintr\xe4ge \xfcbersprungen",download_skipped:"\xdcbersprungene Eintr\xe4ge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Eintr\xe4ge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige G\xe4ste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Gesch\xe4ftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die \xc4nderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie m\xfcssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes L\xf6schen der Benutzerdaten"},action:{erase:"L\xf6sche Benutzerdaten"}},rooms:{name:"Raum |||| R\xe4ume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endger\xe4te",state_events:"Zustandsereignisse / Komplexit\xe4t",version:"Version",is_encrypted:"Verschl\xfcsselt",encryption:"Verschl\xfcsselungs-Algorithmus",federatable:"F\xf6\xadde\xadrierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"\xd6ffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"G\xe4ste k\xf6nnen beitreten",forbidden:"G\xe4ste k\xf6nnen nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschl\xfcsselt"},action:{erase:{title:"Raum l\xf6schen",content:"Sind Sie sicher dass Sie den Raum l\xf6schen m\xf6chten? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gel\xf6scht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschl\xfcsselungsalgorithmus"}}},action:{erase:{title:"Gemeldetes Event l\xf6schen",content:"Sind Sie sicher dass Sie das gemeldete Event l\xf6schen m\xf6chten? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Ger\xe4t |||| Ger\xe4te",fields:{device_id:"Ger\xe4te-ID",display_name:"Ger\xe4tename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'M\xf6chten Sie das Ger\xe4t "%{name}" wirklich entfernen?',success:"Ger\xe4t erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Gr\xf6\xdfe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarant\xe4ne hinzugef\xfcgt",safe_from_quarantine:"Schutz vor Quarant\xe4ne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Gr\xf6\xdfer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien l\xf6schen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API l\xf6scht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungesch\xfctzt, Schutz erstellen",delete:"Gesch\xfctzt, Schutz aufheben",none:"In Quarant\xe4ne",send_success:"Erfolgreich den Schutz-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarant\xe4ne",create:"Zur Quarant\xe4ne hinzuf\xfcgen",delete:"In Quarant\xe4ne, Quarant\xe4ne aufheben",none:"Gesch\xfctzt vor Quarant\xe4ne",send_success:"Erfolgreich den Quarant\xe4ne-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Ger\xe4te-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgew\xe4hlten Nutzer. Hierf\xfcr muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Gr\xf6\xdfe der Dateien"}},forward_extremities:{name:"Vorderextremit\xe4ten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer d\xfcrfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer d\xfcrfen beitreten"},action:{title:"Raum aus Verzeichnis l\xf6schen |||| %{smart_count} R\xe4ume aus Verzeichnis l\xf6schen",content:"M\xf6chten Sie den Raum wirklich aus dem Raumverzeichnis l\xf6schen? |||| M\xf6chten Sie die %{smart_count} R\xe4ume wirklich aus dem Raumverzeichnis l\xf6schen?",erase:"L\xf6sche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"F\xf6deration",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"G\xfcltige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"L\xe4nge"},helper:{length:"L\xe4nge des Tokens, wenn kein Token vorgegeben wird."}}},ra:{...pB().ra,action:{...pB().ra.action,unselect:"Abw\xe4hlen"},auth:{...pB().ra.auth,auth_check_error:"Anmeldung fehlgeschlagen"},input:{...pB().ra.input,password:{...pB().ra.input.password,toggle_hidden:"Anzeigen",toggle_visible:"Verstecken"}},notification:{...pB().ra.notification,logged_out:"Abgemeldet"},page:{...pB().ra.page,empty:"Keine Eintr\xe4ge vorhanden",invite:""},navigation:{...pB().ra.navigation,skip_nav:"Zum Inhalt springen"}}},mB={...Nx,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm"}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}};const hB={...{ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} s\xe9lectionn\xe9 |||| %{smart_count} s\xe9lectionn\xe9s",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Cr\xe9er",create_item:"Cr\xe9er %{item}",delete:"Supprimer",edit:"\xc9diter",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout s\xe9lectionner",select_row:"S\xe9lectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"D\xe9s\xe9lectionner",expand:"\xc9tendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"D\xe9placer vers le haut",move_down:"D\xe9placer vers le bas",open:"Ouvrir",toggle_theme:"Th\xe8me clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:"\u2003"},page:{create:"Cr\xe9er %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un probl\xe8me est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en cr\xe9er un ?"},input:{file:{upload_several:"D\xe9posez les fichiers \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez le fichier \xe0 uploader, ou cliquez pour le s\xe9lectionner."},image:{upload_several:"D\xe9posez les images \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez l'image \xe0 uploader, ou cliquez pour la s\xe9lectionner."},references:{all_missing:"Impossible de trouver des donn\xe9es de r\xe9f\xe9rences.",many_missing:"Au moins une des r\xe9f\xe9rences associ\xe9es semble ne plus \xeatre disponible.",single_missing:"La r\xe9f\xe9rence associ\xe9e ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"\xcates-vous s\xfbr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir supprimer ces %{smart_count} \xe9l\xe9ments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"\xcates-vous s\xfbr(e) de vouloir modifier cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir modifier ces %{smart_count} \xe9l\xe9ments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"\xcates-vous s\xfbr(e) de vouloir supprimer tous les \xe9l\xe9ments de la liste ?",delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ?",delete_title:"Supprimer %{name} #%{id}",details:"D\xe9tails",error:"En raison d'une erreur c\xf4t\xe9 navigateur, votre requ\xeate n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas \xe9t\xe9 enregistr\xe9s. \xcates-vous s\xfbr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun r\xe9sultat",no_more_results:"La page num\xe9ro %{page} est en dehors des limites. Essayez la page pr\xe9c\xe9dente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit \xeatre sup\xe9rieure \xe0 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller \xe0 la page %{page}",first:"Aller \xe0 la premi\xe8re page",last:"Aller \xe0 la derni\xe8re page",next:"Aller \xe0 la prochaine page",previous:"Aller \xe0 la page pr\xe9c\xe9dente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"d\xe9croissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"\xc9chec de l'authentification, merci de r\xe9essayer",logout:"D\xe9connexion"},notification:{updated:"\xc9l\xe9ment mis \xe0 jour |||| %{smart_count} \xe9l\xe9ments mis \xe0 jour",created:"\xc9l\xe9ment cr\xe9\xe9",deleted:"\xc9l\xe9ment supprim\xe9 |||| %{smart_count} \xe9l\xe9ments supprim\xe9s",bad_item:"\xc9l\xe9ment inconnu",item_doesnt_exist:"L'\xe9l\xe9ment n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de d\xe9tails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue s\xe9lectionn\xe9e",canceled:"Action annul\xe9e",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'\xeates pas autoris\xe9(e) \xe0 acc\xe9der \xe0 cette ressource.",application_update_available:"Une mise \xe0 jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caract\xe8res",maxLength:"Maximum %{max} caract\xe8res",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit \xeatre un nombre",email:"Doit \xeatre un email",oneOf:"Doit \xeatre au choix: %{options}",regex:"Doit respecter un format sp\xe9cifique (regexp): %{pattern}",unique:"Doit \xeatre unique"},saved_queries:{label:"Mes requ\xeates",query_name:"Nom de la requ\xeate",new_label:"Ajouter \xe0 mes requ\xeates...",new_dialog_title:"Ajouter la requ\xeate en cours \xe0 mes requ\xeates",remove_label:"Retirer de mes requ\xeates",remove_label_with_name:'Retirer "%{name}" des mes requ\xeates',remove_dialog_title:"Effacer de mes requ\xeates ?",remove_message:"Etes-vous s\xfbr(e) de vouloir supprimer cette requ\xeate de votre liste de requ\xeates ?",help:"Filtrez la liste et ajoutez cette requ\xeate \xe0 votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"S\xe9lectionner un composant pour le configurer",reset:"R\xe9initialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}},synapseadmin:{auth:{base_url:"URL du serveur d\u2019accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet\xa0: \xab\xa0@utilisateur:domaine\xa0\xbb",protocol_error:"L'URL doit commencer par \xab\xa0http://\xa0\xbb ou \xab\xa0https://\xa0\xbb",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l\u2019authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d\u2019accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"D\xe9tails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"D\xe9tails"}}},import_users:{error:{at_entry:"Pour l'entr\xe9e %{entry}\xa0: %{message}",error:"Erreur",required_field:"Le champ requis \xab\xa0%{field}\xa0\xbb est manquant",invalid_value:"Valeur non valide \xe0 la ligne %{row}. Le champ \xab\xa0%{field}\xa0\xbb ne peut \xeatre que \xab\xa0true\xa0\xbb ou \xab\xa0false\xa0\xbb",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} m\xe9gaoctets",already_in_progress:"Un import est d\xe9j\xe0 en cours",id_exits:"L'identifiant %{id} d\xe9j\xe0 pr\xe9sent"},title:"Importer des utilisateurs \xe0 partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Strat\xe9gie de r\xe9solution des conflits",mode:{stop:"S'arr\xeater en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants pr\xe9sents pour chaque entr\xe9e",count_ids_present:"%{smart_count} entr\xe9e avec identifiant |||| %{smart_count} entr\xe9es avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en cr\xe9er de nouveaux",update:"Mettre \xe0 jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe pr\xe9sents pour chaque entr\xe9e",count_passwords_present:"%{smart_count} entr\xe9e avec mot de passe |||| %{smart_count} entr\xe9es avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entr\xe9e",explanation:"Vous pouvez t\xe9l\xe9charger ici un fichier contenant des valeurs s\xe9par\xe9es par des virgules qui sera trait\xe9 pour cr\xe9er ou mettre \xe0 jour des utilisateurs. Le fichier doit inclure les champs \xab\xa0id\xa0\xbb et \xab\xa0displayname\xa0\xbb. Vous pouvez t\xe9l\xe9charger et adapter un fichier d'exemple ici\xa0: "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"R\xe9sultats de l'import",total:"%{smart_count} entr\xe9e au total |||| %{smart_count} entr\xe9es au total",successful:"%{smart_count} entr\xe9es import\xe9es avec succ\xe8s",skipped:"%{smart_count} entr\xe9es ignor\xe9es",download_skipped:"T\xe9l\xe9charger les entr\xe9es ignor\xe9es",with_error:"%{smart_count} entr\xe9e avec des erreurs ||| %{smart_count} entr\xe9es avec des erreurs",simulated_only:"L'import \xe9tait simul\xe9"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse \xe9lectronique",msisdn:"Num\xe9ro de t\xe9l\xe9phone",threepid:"Adresse \xe9lectronique\xa0/ Num\xe9ro de t\xe9l\xe9phone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"D\xe9sactiv\xe9",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs d\xe9sactiv\xe9s",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de cr\xe9ation",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identit\xe9"},helper:{deactivate:"Vous devrez fournir un mot de passe pour r\xe9activer le compte.",erase:"Marquer l'utilisateur comme effac\xe9 conform\xe9ment au RGPD"},action:{erase:"Effacer les donn\xe9es de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"\xc9v\xe9nements d'\xc9tat\xa0/ Complexit\xe9",version:"Version",is_encrypted:"Chiffr\xe9",encryption:"Chiffrement",federatable:"F\xe9d\xe9rable",public:"Visible dans le r\xe9pertoire des salons",creator:"Cr\xe9ateur",join_rules:"R\xe8gles d'adh\xe9sion",guest_access:"Acc\xe8s des visiteurs",history_visibility:"Visibilit\xe9 de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extr\xe9mit\xe9s avant sont les \xe9v\xe9nements feuilles \xe0 la fin d'un graphe orient\xe9 acyclique (DAG) dans un salon, c'est-\xe0-dire les \xe9v\xe9nements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la r\xe9solution d'\xe9tat que Synapse doit effectuer est importante (indice\xa0: c'est une op\xe9ration co\xfbteuse). Bien que Synapse dispose d'un algorithme pour \xe9viter qu'un trop grand nombre de ces \xe9v\xe9nements n'existent en m\xeame temps dans un salon, des bogues peuvent parfois les faire r\xe9appara\xeetre. Si un salon pr\xe9sente plus de 10 extr\xe9mit\xe9s avant, cela vaut la peine d'y pr\xeater attention et \xe9ventuellement de les supprimer en utilisant les requ\xeates SQL mentionn\xe9es dans la discussion traitant du probl\xe8me https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Priv\xe9"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adh\xe9sion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffr\xe9"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon\xa0? Cette op\xe9ration ne peut \xeatre annul\xe9e. Tous les messages et m\xe9dias partag\xe9s du salon seront supprim\xe9s du serveur\xa0!"}}},reports:{name:"\xc9v\xe9nement signal\xe9 |||| \xc9v\xe9nements signal\xe9s",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'\xe9v\xe9nement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'\xe9v\xe9nement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil \xab\xa0%{name}\xa0\xbb\xa0?",success:"Appareil supprim\xe9 avec succ\xe8s",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du m\xe9dia",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de cr\xe9ation",last_access_ts:"Dernier acc\xe8s"}},delete_media:{name:"Media",fields:{before_ts:"Dernier acc\xe8s avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le m\xe9dia",send_success:"Requ\xeate envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les m\xe9dias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des m\xe9dias t\xe9l\xe9charg\xe9s. Cette API n'affectera pas les m\xe9dias qui ont \xe9t\xe9 t\xe9l\xe9vers\xe9s dans des d\xe9p\xf4ts de m\xe9dias externes."}},protect_media:{action:{create:"Prot\xe9ger",delete:"R\xe9voquer la protection",none:"En quarantaine",send_success:"Le statut de protection a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"R\xe9voquer la mise en quarantaine",none:"Prot\xe9g\xe9 contre la mise en quarantaine",send_success:"Le statut de la quarantaine a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},pushers:{name:"\xc9metteur de notifications |||| \xc9metteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'\xe9metteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des \xab\xa0Annonces du serveur\xa0\xbb",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs s\xe9lectionn\xe9s. La fonction \xab\xa0Annonces du serveur\xa0\xbb doit \xeatre activ\xe9e sur le serveur."}},user_media_statistics:{name:"M\xe9dias des utilisateurs",fields:{media_count:"Nombre de m\xe9dias",media_length:"Taille des m\xe9dias"}},forward_extremities:{name:"Extr\xe9mit\xe9s avant",fields:{id:"Identifiant de l'\xe9v\xe9nement",received_ts:"Date de r\xe9ception",depth:"Profondeur",state_group:"Groupe d'\xe9tat"}},room_state:{name:"\xc9v\xe9nements d'\xe9tat",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Exp\xe9diteur"}},room_directory:{name:"R\xe9pertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aper\xe7u du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du r\xe9pertoire |||| Supprimer %{smart_count} salons du r\xe9pertoire",content:"Voulez-vous vraiment supprimer ce salon du r\xe9pertoire\xa0? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du r\xe9pertoire\xa0?",erase:"Supprimer du r\xe9pertoire des salons",create:"Publier dans le r\xe9pertoire des salons",send_success:"Salon publi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autoris\xe9es",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton g\xe9n\xe9r\xe9 al\xe9atoirement si aucun jeton n'est pas sp\xe9cifi\xe9"}}};var vB=r(2e3);const yB={...r.n(vB)(),synapseadmin:{auth:{base_url:"\u670d\u52a1\u5668 URL",welcome:"\u6b22\u8fce\u6765\u5230 Synapse-admin",server_version:"Synapse \u7248\u672c",username_error:"\u8bf7\u8f93\u5165\u5b8c\u6574\u6709\u6548\u7684\u7528\u6237 ID: '@user:domain'",protocol_error:"URL \u9700\u8981\u4ee5'http://'\u6216'https://'\u4f5c\u4e3a\u8d77\u59cb",url_error:"\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u670d\u52a1\u5668\u5730\u5740",sso_sign_in:"\u4f7f\u7528 SSO \u767b\u5f55"},users:{invalid_user_id:"\u5fc5\u987b\u8981\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u7528\u6237 ID \uff0c\u4f8b\u5982 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"\u57fa\u672c",members:"\u6210\u5458",detail:"\u7ec6\u8282",permission:"\u6743\u9650"},delete:{title:"\u5220\u9664\u623f\u95f4",message:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u623f\u95f4\u5417\uff1f\u8be5\u64cd\u4f5c\u65e0\u6cd5\u88ab\u64a4\u9500\u3002\u8fd9\u4e2a\u623f\u95f4\u91cc\u6240\u6709\u7684\u6d88\u606f\u548c\u5206\u4eab\u7684\u5a92\u4f53\u90fd\u5c06\u88ab\u4ece\u670d\u52a1\u5668\u4e0a\u5220\u9664\uff01"}},reports:{tabs:{basic:"\u57fa\u672c",detail:"\u7ec6\u8282"}}},import_users:{error:{at_entry:"\u5728\u6761\u76ee %{entry}: %{message}",error:"\u9519\u8bef",required_field:"\u9700\u8981\u7684\u503c '%{field}' \u672a\u88ab\u8bbe\u7f6e\u3002",invalid_value:"\u7b2c %{row} \u884c\u51fa\u73b0\u65e0\u6548\u503c\u3002 '%{field}' \u53ea\u53ef\u4ee5\u662f 'true' \u6216 'false'\u3002",unreasonably_big:"\u62d2\u7edd\u52a0\u8f7d\u8fc7\u5927\u7684\u6587\u4ef6\uff1a %{size} MB",already_in_progress:"\u4e00\u4e2a\u5bfc\u5165\u8fdb\u7a0b\u5df2\u7ecf\u5728\u8fd0\u884c\u4e2d",id_exits:"ID %{id} \u5df2\u7ecf\u5b58\u5728"},title:"\u901a\u8fc7 CSV \u5bfc\u5165\u7528\u6237",goToPdf:"\u8f6c\u5230 PDF",cards:{importstats:{header:"\u5bfc\u5165\u7528\u6237",users_total:"%{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d |||| %{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d",guest_count:"%{smart_count} \u8bbf\u5ba2 |||| %{smart_count} \u8bbf\u5ba2",admin_count:"%{smart_count} \u7ba1\u7406\u5458 |||| %{smart_count} \u7ba1\u7406\u5458"},conflicts:{header:"\u51b2\u7a81\u5904\u7406\u7b56\u7565",mode:{stop:"\u5728\u51b2\u7a81\u5904\u505c\u6b62",skip:"\u663e\u793a\u9519\u8bef\u5e76\u8df3\u8fc7\u51b2\u7a81"}},ids:{header:"IDs",all_ids_present:"\u6bcf\u6761\u8bb0\u5f55\u7684 ID",count_ids_present:"%{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55",mode:{ignore:"\u5ffd\u7565 CSV \u4e2d\u7684 ID \u5e76\u521b\u5efa\u65b0\u7684",update:"\u66f4\u65b0\u5df2\u7ecf\u5b58\u5728\u7684\u8bb0\u5f55"}},passwords:{header:"\u5bc6\u7801",all_passwords_present:"\u6bcf\u6761\u8bb0\u5f55\u7684\u5bc6\u7801",count_passwords_present:"%{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55",use_passwords:"\u4f7f\u7528 CSV \u4e2d\u6807\u8bb0\u7684\u5bc6\u7801"},upload:{header:"\u5bfc\u5165 CSV \u6587\u4ef6",explanation:"\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u4e0a\u4f20\u4e00\u4e2a\u7528\u9017\u53f7\u5206\u9694\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u521b\u5efa\u6216\u66f4\u65b0\u7528\u6237\u3002\u8be5\u6587\u4ef6\u5fc5\u987b\u5305\u62ec 'id' \u548c 'displayname' \u5b57\u6bb5\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u4e0b\u8f7d\u5e76\u4fee\u6539\u4e00\u4e2a\u793a\u4f8b\u6587\u4ef6\uff1a"},startImport:{simulate_only:"\u6a21\u62df\u6a21\u5f0f",run_import:"\u5bfc\u5165"},results:{header:"\u5bfc\u5165\u7ed3\u679c",total:"\u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55 |||| \u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55",successful:"%{smart_count} \u6761\u8bb0\u5f55\u5bfc\u5165\u6210\u529f",skipped:"\u8df3\u8fc7 %{smart_count} \u6761\u8bb0\u5f55",download_skipped:"\u4e0b\u8f7d\u8df3\u8fc7\u7684\u8bb0\u5f55",with_error:"%{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef ||| %{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef",simulated_only:"\u53ea\u662f\u4e00\u6b21\u6a21\u62df\u8fd0\u884c"}}},resources:{users:{name:"\u7528\u6237",email:"\u90ae\u7bb1",msisdn:"\u7535\u8bdd",threepid:"\u90ae\u7bb1 / \u7535\u8bdd",fields:{avatar:"\u90ae\u7bb1",id:"\u7528\u6237 ID",name:"\u7528\u6237\u540d",is_guest:"\u8bbf\u5ba2",admin:"\u670d\u52a1\u5668\u7ba1\u7406\u5458",deactivated:"\u88ab\u7981\u7528",guests:"\u663e\u793a\u8bbf\u5ba2",show_deactivated:"\u663e\u793a\u88ab\u7981\u7528\u7684\u8d26\u6237",user_id:"\u641c\u7d22\u7528\u6237",displayname:"\u663e\u793a\u540d\u5b57",password:"\u5bc6\u7801",avatar_url:"\u5934\u50cf URL",avatar_src:"\u5934\u50cf",medium:"Medium",threepids:"3PIDs",address:"\u5730\u5740",creation_ts_ms:"\u521b\u5efa\u65f6\u95f4\u6233",consent_version:"\u534f\u8bae\u7248\u672c"},helper:{deactivate:"\u60a8\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e32\u5bc6\u7801\u6765\u6fc0\u6d3b\u8d26\u6237\u3002",erase:"\u5c06\u7528\u6237\u6807\u8bb0\u4e3a\u6839\u636e GDPR \u7684\u8981\u6c42\u62b9\u9664\u4e86"},action:{erase:"\u62b9\u9664\u7528\u6237\u4fe1\u606f"}},rooms:{name:"\u623f\u95f4",fields:{room_id:"\u623f\u95f4 ID",name:"\u623f\u95f4\u540d",canonical_alias:"\u522b\u540d",joined_members:"\u6210\u5458",joined_local_members:"\u672c\u5730\u6210\u5458",state_events:"\u72b6\u6001\u4e8b\u4ef6",version:"\u7248\u672c",is_encrypted:"\u5df2\u7ecf\u52a0\u5bc6",encryption:"\u52a0\u5bc6",federatable:"\u53ef\u8054\u5408\u7684",public:"\u516c\u5f00",creator:"\u521b\u5efa\u8005",join_rules:"\u52a0\u5165\u89c4\u5219",guest_access:"\u8bbf\u5ba2\u8bbf\u95ee",history_visibility:"\u5386\u53f2\u53ef\u89c1\u6027"},enums:{join_rules:{public:"\u516c\u5f00",knock:"\u7533\u8bf7",invite:"\u9080\u8bf7",private:"\u79c1\u6709"},guest_access:{can_join:"\u8bbf\u5ba2\u53ef\u4ee5\u52a0\u5165",forbidden:"\u8bbf\u5ba2\u4e0d\u53ef\u52a0\u5165"},history_visibility:{invited:"\u81ea\u4ece\u88ab\u9080\u8bf7",joined:"\u81ea\u4ece\u52a0\u5165",shared:"\u81ea\u4ece\u5206\u4eab",world_readable:"\u4efb\u4f55\u4eba"},unencrypted:"\u672a\u52a0\u5bc6"}},reports:{name:"\u62a5\u544a\u4e8b\u4ef6",fields:{id:"ID",received_ts:"\u62a5\u544a\u65f6\u95f4",user_id:"\u62a5\u544a\u8005",name:"\u623f\u95f4\u540d",score:"\u5206\u6570",reason:"\u539f\u56e0",event_id:"\u4e8b\u4ef6 ID",event_json:{origin:"\u539f\u59cb\u670d\u52a1\u5668",origin_server_ts:"\u53d1\u9001\u65f6\u95f4",type:"\u4e8b\u4ef6\u7c7b\u578b",content:{msgtype:"\u5185\u5bb9\u7c7b\u578b",body:"\u5185\u5bb9",format:"\u683c\u5f0f",formatted_body:"\u683c\u5f0f\u5316\u7684\u6570\u636e",algorithm:"\u7b97\u6cd5"}}}},connections:{name:"\u8fde\u63a5",fields:{last_seen:"\u65e5\u671f",ip:"IP \u5730\u5740",user_agent:"\u7528\u6237\u4ee3\u7406 (UA)"}},devices:{name:"\u8bbe\u5907",fields:{device_id:"\u8bbe\u5907 ID",display_name:"\u8bbe\u5907\u540d",last_seen_ts:"\u65f6\u95f4\u6233",last_seen_ip:"IP \u5730\u5740"},action:{erase:{title:"\u79fb\u9664 %{id}",content:'\u60a8\u786e\u5b9a\u8981\u79fb\u9664\u8bbe\u5907 "%{name}"?',success:"\u8bbe\u5907\u79fb\u9664\u6210\u529f\u3002",failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"}}},users_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{media_id:"\u5a92\u4f53\u6587\u4ef6 ID",media_length:"\u957f\u5ea6",media_type:"\u7c7b\u578b",upload_name:"\u6587\u4ef6\u540d",quarantined_by:"\u88ab\u9694\u79bb",safe_from_quarantine:"\u53d6\u6d88\u9694\u79bb",created_ts:"\u521b\u5efa",last_access_ts:"\u4e0a\u4e00\u6b21\u8bbf\u95ee"}},delete_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{before_ts:"\u6700\u540e\u8bbf\u95ee\u65f6\u95f4",size_gt:"\u5927\u4e8e (\u5b57\u8282)",keep_profiles:"\u4fdd\u7559\u5934\u50cf"},action:{send:"\u5220\u9664\u5a92\u4f53",send_success:"\u8bf7\u6c42\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:"\u8fd9\u4e2aAPI\u4f1a\u5220\u9664\u60a8\u786c\u76d8\u4e0a\u7684\u672c\u5730\u5a92\u4f53\u3002\u5305\u542b\u4e86\u4efb\u4f55\u7684\u672c\u5730\u7f13\u5b58\u548c\u4e0b\u8f7d\u7684\u5a92\u4f53\u5907\u4efd\u3002\u8fd9\u4e2aAPI\u4e0d\u4f1a\u5f71\u54cd\u4e0a\u4f20\u5230\u5916\u90e8\u5a92\u4f53\u5b58\u50a8\u5e93\u4e0a\u7684\u5a92\u4f53\u6587\u4ef6\u3002"}},pushers:{name:"\u53d1\u5e03\u8005",fields:{app:"App",app_display_name:"App \u540d\u79f0",app_id:"App ID",device_display_name:"\u8bbe\u5907\u663e\u793a\u540d",kind:"\u7c7b\u578b",lang:"\u8bed\u8a00",profile_tag:"\u6570\u636e\u6807\u7b7e",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"\u670d\u52a1\u5668\u63d0\u793a",send:"\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a",fields:{body:"\u4fe1\u606f"},action:{send:"\u53d1\u9001\u63d0\u793a",send_success:"\u670d\u52a1\u5668\u63d0\u793a\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:'\u5411\u9009\u4e2d\u7684\u7528\u6237\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a\u3002\u670d\u52a1\u5668\u914d\u7f6e\u4e2d\u7684 "\u670d\u52a1\u5668\u63d0\u793a(Server Notices)" \u9009\u9879\u9700\u8981\u88ab\u8bbe\u7f6e\u4e3a\u542f\u7528\u3002'}},user_media_statistics:{name:"\u7528\u6237\u7684\u5a92\u4f53\u6587\u4ef6",fields:{media_count:"\u5a92\u4f53\u6587\u4ef6\u7edf\u8ba1",media_length:"\u5a92\u4f53\u6587\u4ef6\u957f\u5ea6"}}}};var gB=r(2951);const bB={de:fB,en:mB,fr:hB,it:{...r.n(gB)(),synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non \xe8 presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo pu\xf2 essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file cos\xec grosso (%{size} megabyte)",already_in_progress:"Un import \xe8 attualmente gi\xe0 in caricamento",id_exits:"L'ID %{id} \xe8 gi\xe0 presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verr\xe0 poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verr\xe0 disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessit\xe0",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilit\xe0 temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione \xe8 definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'\xe8 stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Pi\xf9 grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non incider\xe0 sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" \xe8 stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremit\xe0",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondit\xe0",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'\xe8 stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}},zh:yB},xB=Dx((e=>bB[e]?bB[e]:bB.en),function(e,t){var r=window.navigator,n=r.language,o=r.browserLanguage,a=r.userLanguage,i=n||o||a||e||"en";return(null===t||void 0===t?void 0:t.fullLocale)?i:i.split("-")[0]}()),wB=()=>(0,Jt.jsxs)(Wx,{disableTelemetry:!0,requireAuth:!0,loginPage:zD,authProvider:rw,dataProvider:cw,i18nProvider:xB,children:[(0,Jt.jsx)(Ux,{children:(0,Jt.jsx)(ge,{path:"/import_users",element:(0,Jt.jsx)(uB,{})})}),(0,Jt.jsx)(Hx,{...yF}),(0,Jt.jsx)(Hx,{...rD}),(0,Jt.jsx)(Hx,{...sD}),(0,Jt.jsx)(Hx,{...pD}),(0,Jt.jsx)(Hx,{...Kz}),(0,Jt.jsx)(Hx,{...AD}),(0,Jt.jsx)(Hx,{...RD}),(0,Jt.jsx)(Hx,{name:"connections"}),(0,Jt.jsx)(Hx,{name:"devices"}),(0,Jt.jsx)(Hx,{name:"room_members"}),(0,Jt.jsx)(Hx,{name:"users_media"}),(0,Jt.jsx)(Hx,{name:"joined_rooms"}),(0,Jt.jsx)(Hx,{name:"pushers"}),(0,Jt.jsx)(Hx,{name:"servernotices"}),(0,Jt.jsx)(Hx,{name:"forward_extremities"}),(0,Jt.jsx)(Hx,{name:"room_state"}),(0,Jt.jsx)(Hx,{name:"destination_rooms"})]});(0,o.H)(document.getElementById("root")).render((0,Jt.jsx)(t.StrictMode,{children:(0,Jt.jsx)(wB,{})}))})()})();
//# sourceMappingURL=main.96393f02.js.map